OSDN Git Service

2001-05-01 Tom Browder <tbrowder@home.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-target-subdir=SUBDIR
16                            configuring in a subdirectory"
17 ac_help="$ac_help
18   --with-cross-host=HOST  configuring with a cross compiler"
19 ac_help="$ac_help
20   --enable-multilib       build hella library versions (default)"
21 ac_help="$ac_help
22   --enable-maintainer-mode enable make rules and dependencies not useful
23                           (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25   --enable-shared[=PKGS]  build shared libraries [default=yes]"
26 ac_help="$ac_help
27   --enable-static[=PKGS]  build static libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33   --disable-libtool-lock  avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37   --enable-debug          extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39   --enable-cstdio        enable stdio for target io package. 
40      --enable-cstdio=LIB    use LIB target-speific io package. [default=stdio]
41   "
42 ac_help="$ac_help
43   --enable-clocale       enable model for target locale package. 
44      --enable-clocale=MODEL use MODEL target-speific locale package. [default=generic]
45   "
46 ac_help="$ac_help
47   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
48 ac_help="$ac_help
49   --enable-c99      turns on 'ISO/IEC 9899:1999 support' [default=yes]"
50 ac_help="$ac_help
51   --enable-long-long      turns on 'long long' [default=yes]"
52 ac_help="$ac_help
53   --enable-cheaders construct "C" header files for
54                            g++ [default=c_std]"
55 ac_help="$ac_help
56   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
57                                 [default=none]"
58 ac_help="$ac_help
59   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
60 ac_help="$ac_help
61  --with-gxx-include-dir  the installation directory for include files"
62 ac_help="$ac_help
63   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
64
65 # Initialize some variables set by options.
66 # The variables have the same names as the options, with
67 # dashes changed to underlines.
68 build=NONE
69 cache_file=./config.cache
70 exec_prefix=NONE
71 host=NONE
72 no_create=
73 nonopt=NONE
74 no_recursion=
75 prefix=NONE
76 program_prefix=NONE
77 program_suffix=NONE
78 program_transform_name=s,x,x,
79 silent=
80 site=
81 sitefile=
82 srcdir=
83 target=NONE
84 verbose=
85 x_includes=NONE
86 x_libraries=NONE
87 bindir='${exec_prefix}/bin'
88 sbindir='${exec_prefix}/sbin'
89 libexecdir='${exec_prefix}/libexec'
90 datadir='${prefix}/share'
91 sysconfdir='${prefix}/etc'
92 sharedstatedir='${prefix}/com'
93 localstatedir='${prefix}/var'
94 libdir='${exec_prefix}/lib'
95 includedir='${prefix}/include'
96 oldincludedir='/usr/include'
97 infodir='${prefix}/info'
98 mandir='${prefix}/man'
99
100 # Initialize some other variables.
101 subdirs=
102 MFLAGS= MAKEFLAGS=
103 SHELL=${CONFIG_SHELL-/bin/sh}
104 # Maximum number of lines to put in a shell here document.
105 ac_max_here_lines=12
106
107 ac_prev=
108 for ac_option
109 do
110
111   # If the previous option needs an argument, assign it.
112   if test -n "$ac_prev"; then
113     eval "$ac_prev=\$ac_option"
114     ac_prev=
115     continue
116   fi
117
118   case "$ac_option" in
119   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
120   *) ac_optarg= ;;
121   esac
122
123   # Accept the important Cygnus configure options, so we can diagnose typos.
124
125   case "$ac_option" in
126
127   -bindir | --bindir | --bindi | --bind | --bin | --bi)
128     ac_prev=bindir ;;
129   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
130     bindir="$ac_optarg" ;;
131
132   -build | --build | --buil | --bui | --bu)
133     ac_prev=build ;;
134   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
135     build="$ac_optarg" ;;
136
137   -cache-file | --cache-file | --cache-fil | --cache-fi \
138   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
139     ac_prev=cache_file ;;
140   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
141   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
142     cache_file="$ac_optarg" ;;
143
144   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
145     ac_prev=datadir ;;
146   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
147   | --da=*)
148     datadir="$ac_optarg" ;;
149
150   -disable-* | --disable-*)
151     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
152     # Reject names that are not valid shell variable names.
153     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
154       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155     fi
156     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
157     eval "enable_${ac_feature}=no" ;;
158
159   -enable-* | --enable-*)
160     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
161     # Reject names that are not valid shell variable names.
162     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
163       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164     fi
165     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166     case "$ac_option" in
167       *=*) ;;
168       *) ac_optarg=yes ;;
169     esac
170     eval "enable_${ac_feature}='$ac_optarg'" ;;
171
172   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
173   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
174   | --exec | --exe | --ex)
175     ac_prev=exec_prefix ;;
176   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
177   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
178   | --exec=* | --exe=* | --ex=*)
179     exec_prefix="$ac_optarg" ;;
180
181   -gas | --gas | --ga | --g)
182     # Obsolete; use --with-gas.
183     with_gas=yes ;;
184
185   -help | --help | --hel | --he)
186     # Omit some internal or obsolete options to make the list less imposing.
187     # This message is too long to be a string in the A/UX 3.1 sh.
188     cat << EOF
189 Usage: configure [options] [host]
190 Options: [defaults in brackets after descriptions]
191 Configuration:
192   --cache-file=FILE       cache test results in FILE
193   --help                  print this message
194   --no-create             do not create output files
195   --quiet, --silent       do not print \`checking...' messages
196   --site-file=FILE        use FILE as the site file
197   --version               print the version of autoconf that created configure
198 Directory and file names:
199   --prefix=PREFIX         install architecture-independent files in PREFIX
200                           [$ac_default_prefix]
201   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
202                           [same as prefix]
203   --bindir=DIR            user executables in DIR [EPREFIX/bin]
204   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
205   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
206   --datadir=DIR           read-only architecture-independent data in DIR
207                           [PREFIX/share]
208   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
209   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
210                           [PREFIX/com]
211   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
212   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
213   --includedir=DIR        C header files in DIR [PREFIX/include]
214   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
215   --infodir=DIR           info documentation in DIR [PREFIX/info]
216   --mandir=DIR            man documentation in DIR [PREFIX/man]
217   --srcdir=DIR            find the sources in DIR [configure dir or ..]
218   --program-prefix=PREFIX prepend PREFIX to installed program names
219   --program-suffix=SUFFIX append SUFFIX to installed program names
220   --program-transform-name=PROGRAM
221                           run sed PROGRAM on installed program names
222 EOF
223     cat << EOF
224 Host type:
225   --build=BUILD           configure for building on BUILD [BUILD=HOST]
226   --host=HOST             configure for HOST [guessed]
227   --target=TARGET         configure for TARGET [TARGET=HOST]
228 Features and packages:
229   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
230   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
231   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
232   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
233   --x-includes=DIR        X include files are in DIR
234   --x-libraries=DIR       X library files are in DIR
235 EOF
236     if test -n "$ac_help"; then
237       echo "--enable and --with options recognized:$ac_help"
238     fi
239     exit 0 ;;
240
241   -host | --host | --hos | --ho)
242     ac_prev=host ;;
243   -host=* | --host=* | --hos=* | --ho=*)
244     host="$ac_optarg" ;;
245
246   -includedir | --includedir | --includedi | --included | --include \
247   | --includ | --inclu | --incl | --inc)
248     ac_prev=includedir ;;
249   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
250   | --includ=* | --inclu=* | --incl=* | --inc=*)
251     includedir="$ac_optarg" ;;
252
253   -infodir | --infodir | --infodi | --infod | --info | --inf)
254     ac_prev=infodir ;;
255   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
256     infodir="$ac_optarg" ;;
257
258   -libdir | --libdir | --libdi | --libd)
259     ac_prev=libdir ;;
260   -libdir=* | --libdir=* | --libdi=* | --libd=*)
261     libdir="$ac_optarg" ;;
262
263   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
264   | --libexe | --libex | --libe)
265     ac_prev=libexecdir ;;
266   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
267   | --libexe=* | --libex=* | --libe=*)
268     libexecdir="$ac_optarg" ;;
269
270   -localstatedir | --localstatedir | --localstatedi | --localstated \
271   | --localstate | --localstat | --localsta | --localst \
272   | --locals | --local | --loca | --loc | --lo)
273     ac_prev=localstatedir ;;
274   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
275   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
276   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
277     localstatedir="$ac_optarg" ;;
278
279   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
280     ac_prev=mandir ;;
281   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282     mandir="$ac_optarg" ;;
283
284   -nfp | --nfp | --nf)
285     # Obsolete; use --without-fp.
286     with_fp=no ;;
287
288   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
289   | --no-cr | --no-c)
290     no_create=yes ;;
291
292   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
293   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294     no_recursion=yes ;;
295
296   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
297   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
298   | --oldin | --oldi | --old | --ol | --o)
299     ac_prev=oldincludedir ;;
300   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
301   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
302   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
303     oldincludedir="$ac_optarg" ;;
304
305   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
306     ac_prev=prefix ;;
307   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308     prefix="$ac_optarg" ;;
309
310   -program-prefix | --program-prefix | --program-prefi | --program-pref \
311   | --program-pre | --program-pr | --program-p)
312     ac_prev=program_prefix ;;
313   -program-prefix=* | --program-prefix=* | --program-prefi=* \
314   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
315     program_prefix="$ac_optarg" ;;
316
317   -program-suffix | --program-suffix | --program-suffi | --program-suff \
318   | --program-suf | --program-su | --program-s)
319     ac_prev=program_suffix ;;
320   -program-suffix=* | --program-suffix=* | --program-suffi=* \
321   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
322     program_suffix="$ac_optarg" ;;
323
324   -program-transform-name | --program-transform-name \
325   | --program-transform-nam | --program-transform-na \
326   | --program-transform-n | --program-transform- \
327   | --program-transform | --program-transfor \
328   | --program-transfo | --program-transf \
329   | --program-trans | --program-tran \
330   | --progr-tra | --program-tr | --program-t)
331     ac_prev=program_transform_name ;;
332   -program-transform-name=* | --program-transform-name=* \
333   | --program-transform-nam=* | --program-transform-na=* \
334   | --program-transform-n=* | --program-transform-=* \
335   | --program-transform=* | --program-transfor=* \
336   | --program-transfo=* | --program-transf=* \
337   | --program-trans=* | --program-tran=* \
338   | --progr-tra=* | --program-tr=* | --program-t=*)
339     program_transform_name="$ac_optarg" ;;
340
341   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
342   | -silent | --silent | --silen | --sile | --sil)
343     silent=yes ;;
344
345   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
346     ac_prev=sbindir ;;
347   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
348   | --sbi=* | --sb=*)
349     sbindir="$ac_optarg" ;;
350
351   -sharedstatedir | --sharedstatedir | --sharedstatedi \
352   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
353   | --sharedst | --shareds | --shared | --share | --shar \
354   | --sha | --sh)
355     ac_prev=sharedstatedir ;;
356   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
357   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
358   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
359   | --sha=* | --sh=*)
360     sharedstatedir="$ac_optarg" ;;
361
362   -site | --site | --sit)
363     ac_prev=site ;;
364   -site=* | --site=* | --sit=*)
365     site="$ac_optarg" ;;
366
367   -site-file | --site-file | --site-fil | --site-fi | --site-f)
368     ac_prev=sitefile ;;
369   -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
370     sitefile="$ac_optarg" ;;
371
372   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
373     ac_prev=srcdir ;;
374   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
375     srcdir="$ac_optarg" ;;
376
377   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378   | --syscon | --sysco | --sysc | --sys | --sy)
379     ac_prev=sysconfdir ;;
380   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382     sysconfdir="$ac_optarg" ;;
383
384   -target | --target | --targe | --targ | --tar | --ta | --t)
385     ac_prev=target ;;
386   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387     target="$ac_optarg" ;;
388
389   -v | -verbose | --verbose | --verbos | --verbo | --verb)
390     verbose=yes ;;
391
392   -version | --version | --versio | --versi | --vers)
393     echo "configure generated by autoconf version 2.13"
394     exit 0 ;;
395
396   -with-* | --with-*)
397     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398     # Reject names that are not valid shell variable names.
399     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
401     fi
402     ac_package=`echo $ac_package| sed 's/-/_/g'`
403     case "$ac_option" in
404       *=*) ;;
405       *) ac_optarg=yes ;;
406     esac
407     eval "with_${ac_package}='$ac_optarg'" ;;
408
409   -without-* | --without-*)
410     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
411     # Reject names that are not valid shell variable names.
412     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414     fi
415     ac_package=`echo $ac_package| sed 's/-/_/g'`
416     eval "with_${ac_package}=no" ;;
417
418   --x)
419     # Obsolete; use --with-x.
420     with_x=yes ;;
421
422   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423   | --x-incl | --x-inc | --x-in | --x-i)
424     ac_prev=x_includes ;;
425   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427     x_includes="$ac_optarg" ;;
428
429   -x-libraries | --x-libraries | --x-librarie | --x-librari \
430   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431     ac_prev=x_libraries ;;
432   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434     x_libraries="$ac_optarg" ;;
435
436   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437     ;;
438
439   *)
440     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441       echo "configure: warning: $ac_option: invalid host type" 1>&2
442     fi
443     if test "x$nonopt" != xNONE; then
444       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
445     fi
446     nonopt="$ac_option"
447     ;;
448
449   esac
450 done
451
452 if test -n "$ac_prev"; then
453   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
454 fi
455
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
457
458 # File descriptor usage:
459 # 0 standard input
460 # 1 file creation
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
467   exec 6>/dev/null
468 else
469   exec 6>&1
470 fi
471 exec 5>./config.log
472
473 echo "\
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
476 " 1>&5
477
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
480 ac_configure_args=
481 for ac_arg
482 do
483   case "$ac_arg" in
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c) ;;
486   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
488   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
490   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
491   esac
492 done
493
494 # NLS nuisances.
495 # Only set these to C if already set.  These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
500 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
502 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
503
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
507 echo > confdefs.h
508
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file=src/ios.cc
512
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515   ac_srcdir_defaulted=yes
516   # Try the directory containing this script, then its parent.
517   ac_prog=$0
518   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520   srcdir=$ac_confdir
521   if test ! -r $srcdir/$ac_unique_file; then
522     srcdir=..
523   fi
524 else
525   ac_srcdir_defaulted=no
526 fi
527 if test ! -r $srcdir/$ac_unique_file; then
528   if test "$ac_srcdir_defaulted" = yes; then
529     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530   else
531     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
532   fi
533 fi
534 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
535
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$sitefile"; then
538   if test -z "$CONFIG_SITE"; then
539     if test "x$prefix" != xNONE; then
540       CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
541     else
542       CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
543     fi
544   fi
545 else
546   CONFIG_SITE="$sitefile"
547 fi
548 for ac_site_file in $CONFIG_SITE; do
549   if test -r "$ac_site_file"; then
550     echo "loading site script $ac_site_file"
551     . "$ac_site_file"
552   fi
553 done
554
555 if test -r "$cache_file"; then
556   echo "loading cache $cache_file"
557   . $cache_file
558 else
559   echo "creating cache $cache_file"
560   > $cache_file
561 fi
562
563 ac_ext=c
564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
565 ac_cpp='$CPP $CPPFLAGS'
566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
568 cross_compiling=$ac_cv_prog_cc_cross
569
570 ac_exeext=
571 ac_objext=o
572 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
573   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
574   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
575     ac_n= ac_c='
576 ' ac_t='        '
577   else
578     ac_n=-n ac_c= ac_t=
579   fi
580 else
581   ac_n= ac_c='\c' ac_t=
582 fi
583
584
585
586 # When building with srcdir == objdir, links to the source files will
587 # be created in directories within the target_subdir.  We have to
588 # adjust toplevel_srcdir accordingly, so that configure finds
589 # install-sh and other auxiliary files that live in the top-level
590 # source directory.
591 if test "${srcdir}" = "."; then
592   if test -z "${with_target_subdir}"; then
593     toplevel_srcdir="\${top_srcdir}/.."
594     auxdir="${srcdir}/.."
595   else
596     if test "${with_target_subdir}" != "."; then
597       toplevel_srcdir="\${top_srcdir}/${with_multisrctop}../.."
598       auxdir="${srcdir}/${with_multisrctop}../.."
599     else
600       toplevel_srcdir="\${top_srcdir}/${with_multisrctop}.."
601       auxdir="${srcdir}/${with_multisrctop}.."
602     fi
603   fi
604 else
605   toplevel_srcdir="\${top_srcdir}/.."
606   auxdir="${srcdir}/.."
607 fi
608 ac_aux_dir=
609 for ac_dir in $auxdir $srcdir/$auxdir; do
610   if test -f $ac_dir/install-sh; then
611     ac_aux_dir=$ac_dir
612     ac_install_sh="$ac_aux_dir/install-sh -c"
613     break
614   elif test -f $ac_dir/install.sh; then
615     ac_aux_dir=$ac_dir
616     ac_install_sh="$ac_aux_dir/install.sh -c"
617     break
618   fi
619 done
620 if test -z "$ac_aux_dir"; then
621   { echo "configure: error: can not find install-sh or install.sh in $auxdir $srcdir/$auxdir" 1>&2; exit 1; }
622 fi
623 ac_config_guess=$ac_aux_dir/config.guess
624 ac_config_sub=$ac_aux_dir/config.sub
625 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
626
627
628
629
630
631 # Gets and sets build, host, target, *_vendor, *_cpu, *_os, etc.
632
633 # Do some error checking and defaulting for the host and target type.
634 # The inputs are:
635 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
636 #
637 # The rules are:
638 # 1. You are not allowed to specify --host, --target, and nonopt at the
639 #    same time.
640 # 2. Host defaults to nonopt.
641 # 3. If nonopt is not specified, then host defaults to the current host,
642 #    as determined by config.guess.
643 # 4. Target and build default to nonopt.
644 # 5. If nonopt is not specified, then target and build default to host.
645
646 # The aliases save the names the user supplied, while $host etc.
647 # will get canonicalized.
648 case $host---$target---$nonopt in
649 NONE---*---* | *---NONE---* | *---*---NONE) ;;
650 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
651 esac
652
653
654 # Make sure we can run config.sub.
655 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
656 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
657 fi
658
659 echo $ac_n "checking host system type""... $ac_c" 1>&6
660 echo "configure:661: checking host system type" >&5
661
662 host_alias=$host
663 case "$host_alias" in
664 NONE)
665   case $nonopt in
666   NONE)
667     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
668     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
669     fi ;;
670   *) host_alias=$nonopt ;;
671   esac ;;
672 esac
673
674 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
675 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
676 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
677 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
678 echo "$ac_t""$host" 1>&6
679
680 echo $ac_n "checking target system type""... $ac_c" 1>&6
681 echo "configure:682: checking target system type" >&5
682
683 target_alias=$target
684 case "$target_alias" in
685 NONE)
686   case $nonopt in
687   NONE) target_alias=$host_alias ;;
688   *) target_alias=$nonopt ;;
689   esac ;;
690 esac
691
692 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
693 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
694 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
695 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
696 echo "$ac_t""$target" 1>&6
697
698 echo $ac_n "checking build system type""... $ac_c" 1>&6
699 echo "configure:700: checking build system type" >&5
700
701 build_alias=$build
702 case "$build_alias" in
703 NONE)
704   case $nonopt in
705   NONE) build_alias=$host_alias ;;
706   *) build_alias=$nonopt ;;
707   esac ;;
708 esac
709
710 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
711 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
712 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
713 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
714 echo "$ac_t""$build" 1>&6
715
716 test "$host_alias" != "$target_alias" &&
717   test "$program_prefix$program_suffix$program_transform_name" = \
718     NONENONEs,x,x, &&
719   program_prefix=${target_alias}-
720
721
722 # We use these options to decide which functions to include.
723 # Check whether --with-target-subdir or --without-target-subdir was given.
724 if test "${with_target_subdir+set}" = set; then
725   withval="$with_target_subdir"
726   :
727 fi
728
729 # Check whether --with-cross-host or --without-cross-host was given.
730 if test "${with_cross_host+set}" = set; then
731   withval="$with_cross_host"
732   :
733 fi
734
735
736 # Runs configure.host and configure.target. Have to run this before
737 # the GLIBCPP_ENABLE_* macros below.
738 # Find a good install program.  We prefer a C program (faster),
739 # so one script is as good as another.  But avoid the broken or
740 # incompatible versions:
741 # SysV /etc/install, /usr/sbin/install
742 # SunOS /usr/etc/install
743 # IRIX /sbin/install
744 # AIX /bin/install
745 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
746 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
747 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
748 # ./install, which can be erroneously created by make from ./install.sh.
749 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
750 echo "configure:751: checking for a BSD compatible install" >&5
751 if test -z "$INSTALL"; then
752 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
753   echo $ac_n "(cached) $ac_c" 1>&6
754 else
755     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
756   for ac_dir in $PATH; do
757     # Account for people who put trailing slashes in PATH elements.
758     case "$ac_dir/" in
759     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
760     *)
761       # OSF1 and SCO ODT 3.0 have their own names for install.
762       # Don't use installbsd from OSF since it installs stuff as root
763       # by default.
764       for ac_prog in ginstall scoinst install; do
765         if test -f $ac_dir/$ac_prog; then
766           if test $ac_prog = install &&
767             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
768             # AIX install.  It has an incompatible calling convention.
769             :
770           else
771             ac_cv_path_install="$ac_dir/$ac_prog -c"
772             break 2
773           fi
774         fi
775       done
776       ;;
777     esac
778   done
779   IFS="$ac_save_IFS"
780
781 fi
782   if test "${ac_cv_path_install+set}" = set; then
783     INSTALL="$ac_cv_path_install"
784   else
785     # As a last resort, use the slow shell script.  We don't cache a
786     # path for INSTALL within a source directory, because that will
787     # break other packages using the cache if that directory is
788     # removed, or if the path is relative.
789     INSTALL="$ac_install_sh"
790   fi
791 fi
792 echo "$ac_t""$INSTALL" 1>&6
793
794 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
795 # It thinks the first close brace ends the variable substitution.
796 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
797
798 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
799
800 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
801
802 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
803 echo "configure:804: checking whether build environment is sane" >&5
804 # Just in case
805 sleep 1
806 echo timestamp > conftestfile
807 # Do `set' in a subshell so we don't clobber the current shell's
808 # arguments.  Must try -L first in case configure is actually a
809 # symlink; some systems play weird games with the mod time of symlinks
810 # (eg FreeBSD returns the mod time of the symlink's containing
811 # directory).
812 if (
813    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
814    if test "$*" = "X"; then
815       # -L didn't work.
816       set X `ls -t $srcdir/configure conftestfile`
817    fi
818    if test "$*" != "X $srcdir/configure conftestfile" \
819       && test "$*" != "X conftestfile $srcdir/configure"; then
820
821       # If neither matched, then we have a broken ls.  This can happen
822       # if, for instance, CONFIG_SHELL is bash and it inherits a
823       # broken ls alias from the environment.  This has actually
824       # happened.  Such a system could not be considered "sane".
825       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
826 alias in your environment" 1>&2; exit 1; }
827    fi
828
829    test "$2" = conftestfile
830    )
831 then
832    # Ok.
833    :
834 else
835    { echo "configure: error: newly created file is older than distributed files!
836 Check your system clock" 1>&2; exit 1; }
837 fi
838 rm -f conftest*
839 echo "$ac_t""yes" 1>&6
840 if test "$program_transform_name" = s,x,x,; then
841   program_transform_name=
842 else
843   # Double any \ or $.  echo might interpret backslashes.
844   cat <<\EOF_SED > conftestsed
845 s,\\,\\\\,g; s,\$,$$,g
846 EOF_SED
847   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
848   rm -f conftestsed
849 fi
850 test "$program_prefix" != NONE &&
851   program_transform_name="s,^,${program_prefix},; $program_transform_name"
852 # Use a double $ so make ignores it.
853 test "$program_suffix" != NONE &&
854   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
855
856 # sed with no file args requires a program.
857 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
858
859 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
860 echo "configure:861: checking whether ${MAKE-make} sets \${MAKE}" >&5
861 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
862 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
863   echo $ac_n "(cached) $ac_c" 1>&6
864 else
865   cat > conftestmake <<\EOF
866 all:
867         @echo 'ac_maketemp="${MAKE}"'
868 EOF
869 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
870 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
871 if test -n "$ac_maketemp"; then
872   eval ac_cv_prog_make_${ac_make}_set=yes
873 else
874   eval ac_cv_prog_make_${ac_make}_set=no
875 fi
876 rm -f conftestmake
877 fi
878 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
879   echo "$ac_t""yes" 1>&6
880   SET_MAKE=
881 else
882   echo "$ac_t""no" 1>&6
883   SET_MAKE="MAKE=${MAKE-make}"
884 fi
885
886 if test $host != $build; then
887   ac_tool_prefix=${host_alias}-
888 else
889   ac_tool_prefix=
890 fi
891
892 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
893 echo "configure:894: checking for Cygwin environment" >&5
894 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
895   echo $ac_n "(cached) $ac_c" 1>&6
896 else
897   cat > conftest.$ac_ext <<EOF
898 #line 899 "configure"
899 #include "confdefs.h"
900
901 int main() {
902
903 #ifndef __CYGWIN__
904 #define __CYGWIN__ __CYGWIN32__
905 #endif
906 return __CYGWIN__;
907 ; return 0; }
908 EOF
909 if { (eval echo configure:910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
910   rm -rf conftest*
911   ac_cv_cygwin=yes
912 else
913   echo "configure: failed program was:" >&5
914   cat conftest.$ac_ext >&5
915   rm -rf conftest*
916   ac_cv_cygwin=no
917 fi
918 rm -f conftest*
919 rm -f conftest*
920 fi
921
922 echo "$ac_t""$ac_cv_cygwin" 1>&6
923 CYGWIN=
924 test "$ac_cv_cygwin" = yes && CYGWIN=yes
925 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
926 echo "configure:927: checking for mingw32 environment" >&5
927 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
928   echo $ac_n "(cached) $ac_c" 1>&6
929 else
930   cat > conftest.$ac_ext <<EOF
931 #line 932 "configure"
932 #include "confdefs.h"
933
934 int main() {
935 return __MINGW32__;
936 ; return 0; }
937 EOF
938 if { (eval echo configure:939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
939   rm -rf conftest*
940   ac_cv_mingw32=yes
941 else
942   echo "configure: failed program was:" >&5
943   cat conftest.$ac_ext >&5
944   rm -rf conftest*
945   ac_cv_mingw32=no
946 fi
947 rm -f conftest*
948 rm -f conftest*
949 fi
950
951 echo "$ac_t""$ac_cv_mingw32" 1>&6
952 MINGW32=
953 test "$ac_cv_mingw32" = yes && MINGW32=yes
954
955     # Check whether --enable-multilib or --disable-multilib was given.
956 if test "${enable_multilib+set}" = set; then
957   enableval="$enable_multilib"
958   case "${enableval}" in
959     yes) multilib=yes ;;
960     no)  multilib=no ;;
961     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
962    esac
963 else
964   multilib=yes
965 fi
966
967   glibcpp_basedir=$auxdir/./libstdc++-v3
968   
969
970   
971 PACKAGE=libstdc++
972
973 VERSION=2.91
974
975 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
976   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
977 fi
978 cat >> confdefs.h <<EOF
979 #define PACKAGE "$PACKAGE"
980 EOF
981
982 cat >> confdefs.h <<EOF
983 #define VERSION "$VERSION"
984 EOF
985
986
987
988 missing_dir=`cd $ac_aux_dir && pwd`
989 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
990 echo "configure:991: checking for working aclocal" >&5
991 # Run test in a subshell; some versions of sh will print an error if
992 # an executable is not found, even if stderr is redirected.
993 # Redirect stdin to placate older versions of autoconf.  Sigh.
994 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
995    ACLOCAL=aclocal
996    echo "$ac_t""found" 1>&6
997 else
998    ACLOCAL="$missing_dir/missing aclocal"
999    echo "$ac_t""missing" 1>&6
1000 fi
1001
1002 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1003 echo "configure:1004: checking for working autoconf" >&5
1004 # Run test in a subshell; some versions of sh will print an error if
1005 # an executable is not found, even if stderr is redirected.
1006 # Redirect stdin to placate older versions of autoconf.  Sigh.
1007 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1008    AUTOCONF=autoconf
1009    echo "$ac_t""found" 1>&6
1010 else
1011    AUTOCONF="$missing_dir/missing autoconf"
1012    echo "$ac_t""missing" 1>&6
1013 fi
1014
1015 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1016 echo "configure:1017: checking for working automake" >&5
1017 # Run test in a subshell; some versions of sh will print an error if
1018 # an executable is not found, even if stderr is redirected.
1019 # Redirect stdin to placate older versions of autoconf.  Sigh.
1020 if (automake --version) < /dev/null > /dev/null 2>&1; then
1021    AUTOMAKE=automake
1022    echo "$ac_t""found" 1>&6
1023 else
1024    AUTOMAKE="$missing_dir/missing automake"
1025    echo "$ac_t""missing" 1>&6
1026 fi
1027
1028 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1029 echo "configure:1030: checking for working autoheader" >&5
1030 # Run test in a subshell; some versions of sh will print an error if
1031 # an executable is not found, even if stderr is redirected.
1032 # Redirect stdin to placate older versions of autoconf.  Sigh.
1033 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1034    AUTOHEADER=autoheader
1035    echo "$ac_t""found" 1>&6
1036 else
1037    AUTOHEADER="$missing_dir/missing autoheader"
1038    echo "$ac_t""missing" 1>&6
1039 fi
1040
1041 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1042 echo "configure:1043: checking for working makeinfo" >&5
1043 # Run test in a subshell; some versions of sh will print an error if
1044 # an executable is not found, even if stderr is redirected.
1045 # Redirect stdin to placate older versions of autoconf.  Sigh.
1046 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1047    MAKEINFO=makeinfo
1048    echo "$ac_t""found" 1>&6
1049 else
1050    MAKEINFO="$missing_dir/missing makeinfo"
1051    echo "$ac_t""missing" 1>&6
1052 fi
1053
1054
1055
1056   # Never versions of autoconf add an underscore to these functions.
1057   # Prevent future problems ...
1058   
1059   
1060   
1061   
1062
1063 #  AC_PROG_CC
1064
1065 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1066 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1067 # are probably using a cross compiler, which will not be able to fully
1068 # link an executable.  This should really be fixed in autoconf
1069 # itself.
1070
1071
1072
1073
1074 # Extract the first word of "gcc", so it can be a program name with args.
1075 set dummy gcc; ac_word=$2
1076 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1077 echo "configure:1078: checking for $ac_word" >&5
1078 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1079   echo $ac_n "(cached) $ac_c" 1>&6
1080 else
1081   if test -n "$CC"; then
1082   ac_cv_prog_CC="$CC" # Let the user override the test.
1083 else
1084   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1085   ac_dummy="$PATH"
1086   for ac_dir in $ac_dummy; do
1087     test -z "$ac_dir" && ac_dir=.
1088     if test -f $ac_dir/$ac_word; then
1089       ac_cv_prog_CC="gcc"
1090       break
1091     fi
1092   done
1093   IFS="$ac_save_ifs"
1094 fi
1095 fi
1096 CC="$ac_cv_prog_CC"
1097 if test -n "$CC"; then
1098   echo "$ac_t""$CC" 1>&6
1099 else
1100   echo "$ac_t""no" 1>&6
1101 fi
1102
1103 if test -z "$CC"; then
1104   # Extract the first word of "cc", so it can be a program name with args.
1105 set dummy cc; ac_word=$2
1106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1107 echo "configure:1108: checking for $ac_word" >&5
1108 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1109   echo $ac_n "(cached) $ac_c" 1>&6
1110 else
1111   if test -n "$CC"; then
1112   ac_cv_prog_CC="$CC" # Let the user override the test.
1113 else
1114   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1115   ac_prog_rejected=no
1116   ac_dummy="$PATH"
1117   for ac_dir in $ac_dummy; do
1118     test -z "$ac_dir" && ac_dir=.
1119     if test -f $ac_dir/$ac_word; then
1120       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1121         ac_prog_rejected=yes
1122         continue
1123       fi
1124       ac_cv_prog_CC="cc"
1125       break
1126     fi
1127   done
1128   IFS="$ac_save_ifs"
1129 if test $ac_prog_rejected = yes; then
1130   # We found a bogon in the path, so make sure we never use it.
1131   set dummy $ac_cv_prog_CC
1132   shift
1133   if test $# -gt 0; then
1134     # We chose a different compiler from the bogus one.
1135     # However, it has the same basename, so the bogon will be chosen
1136     # first if we set CC to just the basename; use the full file name.
1137     shift
1138     set dummy "$ac_dir/$ac_word" "$@"
1139     shift
1140     ac_cv_prog_CC="$@"
1141   fi
1142 fi
1143 fi
1144 fi
1145 CC="$ac_cv_prog_CC"
1146 if test -n "$CC"; then
1147   echo "$ac_t""$CC" 1>&6
1148 else
1149   echo "$ac_t""no" 1>&6
1150 fi
1151
1152   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1153 fi
1154
1155 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1156 echo "configure:1157: checking whether we are using GNU C" >&5
1157 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1158   echo $ac_n "(cached) $ac_c" 1>&6
1159 else
1160   cat > conftest.c <<EOF
1161 #ifdef __GNUC__
1162   yes;
1163 #endif
1164 EOF
1165 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1166   ac_cv_prog_gcc=yes
1167 else
1168   ac_cv_prog_gcc=no
1169 fi
1170 fi
1171
1172 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1173
1174 if test $ac_cv_prog_gcc = yes; then
1175   GCC=yes
1176   ac_test_CFLAGS="${CFLAGS+set}"
1177   ac_save_CFLAGS="$CFLAGS"
1178   CFLAGS=
1179   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1180 echo "configure:1181: checking whether ${CC-cc} accepts -g" >&5
1181 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1182   echo $ac_n "(cached) $ac_c" 1>&6
1183 else
1184   echo 'void f(){}' > conftest.c
1185 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1186   ac_cv_prog_cc_g=yes
1187 else
1188   ac_cv_prog_cc_g=no
1189 fi
1190 rm -f conftest*
1191
1192 fi
1193
1194 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1195   if test "$ac_test_CFLAGS" = set; then
1196     CFLAGS="$ac_save_CFLAGS"
1197   elif test $ac_cv_prog_cc_g = yes; then
1198     CFLAGS="-g -O2"
1199   else
1200     CFLAGS="-O2"
1201   fi
1202 else
1203   GCC=
1204   test "${CFLAGS+set}" = set || CFLAGS="-g"
1205 fi
1206
1207
1208 # Can't just call these here as g++ requires libstc++ to be built....
1209 #  AC_PROG_CXX
1210
1211 # Likewise for AC_PROG_CXX.
1212
1213
1214
1215 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1216 # flags that come in CXX while configuring libstdc++.  They're different
1217 # from those used for all other target libraries.  If CXX is set in
1218 # the environment, respect that here.
1219 glibcpp_CXX=$CXX
1220 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1221 do
1222 # Extract the first word of "$ac_prog", so it can be a program name with args.
1223 set dummy $ac_prog; ac_word=$2
1224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1225 echo "configure:1226: checking for $ac_word" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1227   echo $ac_n "(cached) $ac_c" 1>&6
1228 else
1229   if test -n "$glibcpp_CXX"; then
1230   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1231 else
1232   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1233   ac_dummy="$PATH"
1234   for ac_dir in $ac_dummy; do
1235     test -z "$ac_dir" && ac_dir=.
1236     if test -f $ac_dir/$ac_word; then
1237       ac_cv_prog_glibcpp_CXX="$ac_prog"
1238       break
1239     fi
1240   done
1241   IFS="$ac_save_ifs"
1242 fi
1243 fi
1244 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1245 if test -n "$glibcpp_CXX"; then
1246   echo "$ac_t""$glibcpp_CXX" 1>&6
1247 else
1248   echo "$ac_t""no" 1>&6
1249 fi
1250
1251 test -n "$glibcpp_CXX" && break
1252 done
1253 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1254
1255
1256 CXX=$glibcpp_CXX
1257 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1258
1259 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1260 echo "configure:1261: checking whether we are using GNU C++" >&5
1261 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1262   echo $ac_n "(cached) $ac_c" 1>&6
1263 else
1264   cat > conftest.C <<EOF
1265 #ifdef __GNUC__
1266   yes;
1267 #endif
1268 EOF
1269 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1270   ac_cv_prog_gxx=yes
1271 else
1272   ac_cv_prog_gxx=no
1273 fi
1274 fi
1275
1276 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1277
1278 if test $ac_cv_prog_gxx = yes; then
1279   GXX=yes
1280   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1281   ac_save_CXXFLAGS="$CXXFLAGS"
1282   CXXFLAGS=
1283   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1284 echo "configure:1285: checking whether ${CXX-g++} accepts -g" >&5
1285 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1286   echo $ac_n "(cached) $ac_c" 1>&6
1287 else
1288   echo 'void f(){}' > conftest.cc
1289 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1290   ac_cv_prog_cxx_g=yes
1291 else
1292   ac_cv_prog_cxx_g=no
1293 fi
1294 rm -f conftest*
1295
1296 fi
1297
1298 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1299   if test "$ac_test_CXXFLAGS" = set; then
1300     CXXFLAGS="$ac_save_CXXFLAGS"
1301   elif test $ac_cv_prog_cxx_g = yes; then
1302     CXXFLAGS="-g -O2"
1303   else
1304     CXXFLAGS="-O2"
1305   fi
1306 else
1307   GXX=
1308   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1309 fi
1310
1311
1312   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1313 set dummy ${ac_tool_prefix}as; ac_word=$2
1314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1315 echo "configure:1316: checking for $ac_word" >&5
1316 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1317   echo $ac_n "(cached) $ac_c" 1>&6
1318 else
1319   if test -n "$AS"; then
1320   ac_cv_prog_AS="$AS" # Let the user override the test.
1321 else
1322   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1323   ac_dummy="$PATH"
1324   for ac_dir in $ac_dummy; do
1325     test -z "$ac_dir" && ac_dir=.
1326     if test -f $ac_dir/$ac_word; then
1327       ac_cv_prog_AS="${ac_tool_prefix}as"
1328       break
1329     fi
1330   done
1331   IFS="$ac_save_ifs"
1332   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1333 fi
1334 fi
1335 AS="$ac_cv_prog_AS"
1336 if test -n "$AS"; then
1337   echo "$ac_t""$AS" 1>&6
1338 else
1339   echo "$ac_t""no" 1>&6
1340 fi
1341
1342
1343
1344   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1345 set dummy ${ac_tool_prefix}ar; ac_word=$2
1346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1347 echo "configure:1348: checking for $ac_word" >&5
1348 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1349   echo $ac_n "(cached) $ac_c" 1>&6
1350 else
1351   if test -n "$AR"; then
1352   ac_cv_prog_AR="$AR" # Let the user override the test.
1353 else
1354   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1355   ac_dummy="$PATH"
1356   for ac_dir in $ac_dummy; do
1357     test -z "$ac_dir" && ac_dir=.
1358     if test -f $ac_dir/$ac_word; then
1359       ac_cv_prog_AR="${ac_tool_prefix}ar"
1360       break
1361     fi
1362   done
1363   IFS="$ac_save_ifs"
1364   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1365 fi
1366 fi
1367 AR="$ac_cv_prog_AR"
1368 if test -n "$AR"; then
1369   echo "$ac_t""$AR" 1>&6
1370 else
1371   echo "$ac_t""no" 1>&6
1372 fi
1373
1374
1375
1376   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1377 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1379 echo "configure:1380: checking for $ac_word" >&5
1380 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1381   echo $ac_n "(cached) $ac_c" 1>&6
1382 else
1383   if test -n "$RANLIB"; then
1384   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1385 else
1386   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1387   ac_dummy="$PATH"
1388   for ac_dir in $ac_dummy; do
1389     test -z "$ac_dir" && ac_dir=.
1390     if test -f $ac_dir/$ac_word; then
1391       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1392       break
1393     fi
1394   done
1395   IFS="$ac_save_ifs"
1396 fi
1397 fi
1398 RANLIB="$ac_cv_prog_RANLIB"
1399 if test -n "$RANLIB"; then
1400   echo "$ac_t""$RANLIB" 1>&6
1401 else
1402   echo "$ac_t""no" 1>&6
1403 fi
1404
1405
1406 if test -z "$ac_cv_prog_RANLIB"; then
1407 if test -n "$ac_tool_prefix"; then
1408   # Extract the first word of "ranlib", so it can be a program name with args.
1409 set dummy ranlib; ac_word=$2
1410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1411 echo "configure:1412: checking for $ac_word" >&5
1412 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1413   echo $ac_n "(cached) $ac_c" 1>&6
1414 else
1415   if test -n "$RANLIB"; then
1416   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1417 else
1418   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1419   ac_dummy="$PATH"
1420   for ac_dir in $ac_dummy; do
1421     test -z "$ac_dir" && ac_dir=.
1422     if test -f $ac_dir/$ac_word; then
1423       ac_cv_prog_RANLIB="ranlib"
1424       break
1425     fi
1426   done
1427   IFS="$ac_save_ifs"
1428   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1429 fi
1430 fi
1431 RANLIB="$ac_cv_prog_RANLIB"
1432 if test -n "$RANLIB"; then
1433   echo "$ac_t""$RANLIB" 1>&6
1434 else
1435   echo "$ac_t""no" 1>&6
1436 fi
1437
1438 else
1439   RANLIB="ranlib-not-found-in-path-error"
1440 fi
1441 fi
1442
1443   # Extract the first word of "${ac_tool_prefix}expect", so it can be a program name with args.
1444 set dummy ${ac_tool_prefix}expect; ac_word=$2
1445 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1446 echo "configure:1447: checking for $ac_word" >&5
1447 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_expect'+set}'`\" = set"; then
1448   echo $ac_n "(cached) $ac_c" 1>&6
1449 else
1450   if test -n "$glibcpp_expect"; then
1451   ac_cv_prog_glibcpp_expect="$glibcpp_expect" # Let the user override the test.
1452 else
1453   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1454   ac_dummy="$PATH"
1455   for ac_dir in $ac_dummy; do
1456     test -z "$ac_dir" && ac_dir=.
1457     if test -f $ac_dir/$ac_word; then
1458       ac_cv_prog_glibcpp_expect="${ac_tool_prefix}expect"
1459       break
1460     fi
1461   done
1462   IFS="$ac_save_ifs"
1463 fi
1464 fi
1465 glibcpp_expect="$ac_cv_prog_glibcpp_expect"
1466 if test -n "$glibcpp_expect"; then
1467   echo "$ac_t""$glibcpp_expect" 1>&6
1468 else
1469   echo "$ac_t""no" 1>&6
1470 fi
1471
1472
1473 if test -z "$ac_cv_prog_glibcpp_expect"; then
1474 if test -n "$ac_tool_prefix"; then
1475   # Extract the first word of "expect", so it can be a program name with args.
1476 set dummy expect; ac_word=$2
1477 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1478 echo "configure:1479: checking for $ac_word" >&5
1479 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_expect'+set}'`\" = set"; then
1480   echo $ac_n "(cached) $ac_c" 1>&6
1481 else
1482   if test -n "$glibcpp_expect"; then
1483   ac_cv_prog_glibcpp_expect="$glibcpp_expect" # Let the user override the test.
1484 else
1485   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1486   ac_dummy="$PATH"
1487   for ac_dir in $ac_dummy; do
1488     test -z "$ac_dir" && ac_dir=.
1489     if test -f $ac_dir/$ac_word; then
1490       ac_cv_prog_glibcpp_expect="expect"
1491       break
1492     fi
1493   done
1494   IFS="$ac_save_ifs"
1495   test -z "$ac_cv_prog_glibcpp_expect" && ac_cv_prog_glibcpp_expect="expect-not-found-in-path-error"
1496 fi
1497 fi
1498 glibcpp_expect="$ac_cv_prog_glibcpp_expect"
1499 if test -n "$glibcpp_expect"; then
1500   echo "$ac_t""$glibcpp_expect" 1>&6
1501 else
1502   echo "$ac_t""no" 1>&6
1503 fi
1504
1505 else
1506   glibcpp_expect="expect-not-found-in-path-error"
1507 fi
1508 fi
1509
1510   # Extract the first word of "${ac_tool_prefix}runtest", so it can be a program name with args.
1511 set dummy ${ac_tool_prefix}runtest; ac_word=$2
1512 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1513 echo "configure:1514: checking for $ac_word" >&5
1514 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_runtest'+set}'`\" = set"; then
1515   echo $ac_n "(cached) $ac_c" 1>&6
1516 else
1517   if test -n "$glibcpp_runtest"; then
1518   ac_cv_prog_glibcpp_runtest="$glibcpp_runtest" # Let the user override the test.
1519 else
1520   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1521   ac_dummy="$PATH"
1522   for ac_dir in $ac_dummy; do
1523     test -z "$ac_dir" && ac_dir=.
1524     if test -f $ac_dir/$ac_word; then
1525       ac_cv_prog_glibcpp_runtest="${ac_tool_prefix}runtest"
1526       break
1527     fi
1528   done
1529   IFS="$ac_save_ifs"
1530 fi
1531 fi
1532 glibcpp_runtest="$ac_cv_prog_glibcpp_runtest"
1533 if test -n "$glibcpp_runtest"; then
1534   echo "$ac_t""$glibcpp_runtest" 1>&6
1535 else
1536   echo "$ac_t""no" 1>&6
1537 fi
1538
1539
1540 if test -z "$ac_cv_prog_glibcpp_runtest"; then
1541 if test -n "$ac_tool_prefix"; then
1542   # Extract the first word of "runtest", so it can be a program name with args.
1543 set dummy runtest; ac_word=$2
1544 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1545 echo "configure:1546: checking for $ac_word" >&5
1546 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_runtest'+set}'`\" = set"; then
1547   echo $ac_n "(cached) $ac_c" 1>&6
1548 else
1549   if test -n "$glibcpp_runtest"; then
1550   ac_cv_prog_glibcpp_runtest="$glibcpp_runtest" # Let the user override the test.
1551 else
1552   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1553   ac_dummy="$PATH"
1554   for ac_dir in $ac_dummy; do
1555     test -z "$ac_dir" && ac_dir=.
1556     if test -f $ac_dir/$ac_word; then
1557       ac_cv_prog_glibcpp_runtest="runtest"
1558       break
1559     fi
1560   done
1561   IFS="$ac_save_ifs"
1562   test -z "$ac_cv_prog_glibcpp_runtest" && ac_cv_prog_glibcpp_runtest="runtest-not-found-in-path-error"
1563 fi
1564 fi
1565 glibcpp_runtest="$ac_cv_prog_glibcpp_runtest"
1566 if test -n "$glibcpp_runtest"; then
1567   echo "$ac_t""$glibcpp_runtest" 1>&6
1568 else
1569   echo "$ac_t""no" 1>&6
1570 fi
1571
1572 else
1573   glibcpp_runtest="runtest-not-found-in-path-error"
1574 fi
1575 fi
1576
1577   
1578   
1579   # Find a good install program.  We prefer a C program (faster),
1580 # so one script is as good as another.  But avoid the broken or
1581 # incompatible versions:
1582 # SysV /etc/install, /usr/sbin/install
1583 # SunOS /usr/etc/install
1584 # IRIX /sbin/install
1585 # AIX /bin/install
1586 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1587 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1588 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1589 # ./install, which can be erroneously created by make from ./install.sh.
1590 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1591 echo "configure:1592: checking for a BSD compatible install" >&5
1592 if test -z "$INSTALL"; then
1593 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1594   echo $ac_n "(cached) $ac_c" 1>&6
1595 else
1596     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1597   for ac_dir in $PATH; do
1598     # Account for people who put trailing slashes in PATH elements.
1599     case "$ac_dir/" in
1600     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1601     *)
1602       # OSF1 and SCO ODT 3.0 have their own names for install.
1603       # Don't use installbsd from OSF since it installs stuff as root
1604       # by default.
1605       for ac_prog in ginstall scoinst install; do
1606         if test -f $ac_dir/$ac_prog; then
1607           if test $ac_prog = install &&
1608             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1609             # AIX install.  It has an incompatible calling convention.
1610             :
1611           else
1612             ac_cv_path_install="$ac_dir/$ac_prog -c"
1613             break 2
1614           fi
1615         fi
1616       done
1617       ;;
1618     esac
1619   done
1620   IFS="$ac_save_IFS"
1621
1622 fi
1623   if test "${ac_cv_path_install+set}" = set; then
1624     INSTALL="$ac_cv_path_install"
1625   else
1626     # As a last resort, use the slow shell script.  We don't cache a
1627     # path for INSTALL within a source directory, because that will
1628     # break other packages using the cache if that directory is
1629     # removed, or if the path is relative.
1630     INSTALL="$ac_install_sh"
1631   fi
1632 fi
1633 echo "$ac_t""$INSTALL" 1>&6
1634
1635 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1636 # It thinks the first close brace ends the variable substitution.
1637 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1638
1639 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1640
1641 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1642
1643
1644   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1645 echo "configure:1646: checking whether to enable maintainer-specific portions of Makefiles" >&5
1646     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1647 if test "${enable_maintainer_mode+set}" = set; then
1648   enableval="$enable_maintainer_mode"
1649   USE_MAINTAINER_MODE=$enableval
1650 else
1651   USE_MAINTAINER_MODE=no
1652 fi
1653
1654   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1655   
1656
1657 if test $USE_MAINTAINER_MODE = yes; then
1658   MAINTAINER_MODE_TRUE=
1659   MAINTAINER_MODE_FALSE='#'
1660 else
1661   MAINTAINER_MODE_TRUE='#'
1662   MAINTAINER_MODE_FALSE=
1663 fi
1664   MAINT=$MAINTAINER_MODE_TRUE
1665   
1666
1667
1668   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1669   # at least currently, we never actually build a program, so we never
1670   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1671   # fails, because we are probably configuring with a cross compiler
1672   # which cant create executables.  So we include AC_EXEEXT to keep
1673   # automake happy, but we dont execute it, since we dont care about
1674   # the result.
1675   if false; then
1676     
1677
1678 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1679 echo "configure:1680: checking for executable suffix" >&5
1680 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1681   echo $ac_n "(cached) $ac_c" 1>&6
1682 else
1683   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1684   ac_cv_exeext=.exe
1685 else
1686   rm -f conftest*
1687   echo 'int main () { return 0; }' > conftest.$ac_ext
1688   ac_cv_exeext=
1689   if { (eval echo configure:1690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1690     for file in conftest.*; do
1691       case $file in
1692       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1693       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1694       esac
1695     done
1696   else
1697     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1698   fi
1699   rm -f conftest*
1700   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1701 fi
1702 fi
1703
1704 EXEEXT=""
1705 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1706 echo "$ac_t""${ac_cv_exeext}" 1>&6
1707 ac_exeext=$EXEEXT
1708
1709   fi
1710
1711   . ${glibcpp_basedir}/configure.host
1712
1713   case ${glibcpp_basedir} in
1714     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1715     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1716   esac
1717
1718   # This does for the target what configure.host does for the host.  In
1719   # addition to possibly modifying the same flags, it also sets up symlinks.
1720   
1721     . ${glibcpp_basedir}/configure.target
1722     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1723     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1724     
1725
1726
1727
1728
1729 # Check whether --enable-shared or --disable-shared was given.
1730 if test "${enable_shared+set}" = set; then
1731   enableval="$enable_shared"
1732   p=${PACKAGE-default}
1733 case $enableval in
1734 yes) enable_shared=yes ;;
1735 no) enable_shared=no ;;
1736 *)
1737   enable_shared=no
1738   # Look at the argument we got.  We use all the common list separators.
1739   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1740   for pkg in $enableval; do
1741     if test "X$pkg" = "X$p"; then
1742       enable_shared=yes
1743     fi
1744   done
1745   IFS="$ac_save_ifs"
1746   ;;
1747 esac
1748 else
1749   enable_shared=yes
1750 fi
1751
1752 # Check whether --enable-static or --disable-static was given.
1753 if test "${enable_static+set}" = set; then
1754   enableval="$enable_static"
1755   p=${PACKAGE-default}
1756 case $enableval in
1757 yes) enable_static=yes ;;
1758 no) enable_static=no ;;
1759 *)
1760   enable_static=no
1761   # Look at the argument we got.  We use all the common list separators.
1762   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1763   for pkg in $enableval; do
1764     if test "X$pkg" = "X$p"; then
1765       enable_static=yes
1766     fi
1767   done
1768   IFS="$ac_save_ifs"
1769   ;;
1770 esac
1771 else
1772   enable_static=yes
1773 fi
1774
1775 # Check whether --enable-fast-install or --disable-fast-install was given.
1776 if test "${enable_fast_install+set}" = set; then
1777   enableval="$enable_fast_install"
1778   p=${PACKAGE-default}
1779 case $enableval in
1780 yes) enable_fast_install=yes ;;
1781 no) enable_fast_install=no ;;
1782 *)
1783   enable_fast_install=no
1784   # Look at the argument we got.  We use all the common list separators.
1785   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1786   for pkg in $enableval; do
1787     if test "X$pkg" = "X$p"; then
1788       enable_fast_install=yes
1789     fi
1790   done
1791   IFS="$ac_save_ifs"
1792   ;;
1793 esac
1794 else
1795   enable_fast_install=yes
1796 fi
1797
1798 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1799 if test "${with_gnu_ld+set}" = set; then
1800   withval="$with_gnu_ld"
1801   test "$withval" = no || with_gnu_ld=yes
1802 else
1803   with_gnu_ld=no
1804 fi
1805
1806 ac_prog=ld
1807 if test "$GCC" = yes; then
1808   # Check if gcc -print-prog-name=ld gives a path.
1809   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1810 echo "configure:1811: checking for ld used by GCC" >&5
1811   case $host in
1812   *-*-mingw*)
1813     # gcc leaves a trailing carriage return which upsets mingw
1814     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1815   *)
1816     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1817   esac
1818   case $ac_prog in
1819     # Accept absolute paths.
1820     [\\/]* | [A-Za-z]:[\\/]*)
1821       re_direlt='/[^/][^/]*/\.\./'
1822       # Canonicalize the path of ld
1823       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1824       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1825         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1826       done
1827       test -z "$LD" && LD="$ac_prog"
1828       ;;
1829   "")
1830     # If it fails, then pretend we aren't using GCC.
1831     ac_prog=ld
1832     ;;
1833   *)
1834     # If it is relative, then search for the first ld in PATH.
1835     with_gnu_ld=unknown
1836     ;;
1837   esac
1838 elif test "$with_gnu_ld" = yes; then
1839   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1840 echo "configure:1841: checking for GNU ld" >&5
1841 else
1842   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1843 echo "configure:1844: checking for non-GNU ld" >&5
1844 fi
1845 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1846   echo $ac_n "(cached) $ac_c" 1>&6
1847 else
1848   if test -z "$LD"; then
1849   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1850   for ac_dir in $PATH; do
1851     test -z "$ac_dir" && ac_dir=.
1852     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1853       lt_cv_path_LD="$ac_dir/$ac_prog"
1854       # Check to see if the program is GNU ld.  I'd rather use --version,
1855       # but apparently some GNU ld's only accept -v.
1856       # Break only if it was the GNU/non-GNU ld that we prefer.
1857       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1858         test "$with_gnu_ld" != no && break
1859       else
1860         test "$with_gnu_ld" != yes && break
1861       fi
1862     fi
1863   done
1864   IFS="$ac_save_ifs"
1865 else
1866   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1867 fi
1868 fi
1869
1870 LD="$lt_cv_path_LD"
1871 if test -n "$LD"; then
1872   echo "$ac_t""$LD" 1>&6
1873 else
1874   echo "$ac_t""no" 1>&6
1875 fi
1876 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1877 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1878 echo "configure:1879: checking if the linker ($LD) is GNU ld" >&5
1879 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1880   echo $ac_n "(cached) $ac_c" 1>&6
1881 else
1882   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1883 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1884   lt_cv_prog_gnu_ld=yes
1885 else
1886   lt_cv_prog_gnu_ld=no
1887 fi
1888 fi
1889
1890 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1891 with_gnu_ld=$lt_cv_prog_gnu_ld
1892
1893
1894 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1895 echo "configure:1896: checking for $LD option to reload object files" >&5
1896 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1897   echo $ac_n "(cached) $ac_c" 1>&6
1898 else
1899   lt_cv_ld_reload_flag='-r'
1900 fi
1901
1902 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1903 reload_flag=$lt_cv_ld_reload_flag
1904 test -n "$reload_flag" && reload_flag=" $reload_flag"
1905
1906 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1907 echo "configure:1908: checking for BSD-compatible nm" >&5
1908 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1909   echo $ac_n "(cached) $ac_c" 1>&6
1910 else
1911   if test -n "$NM"; then
1912   # Let the user override the test.
1913   lt_cv_path_NM="$NM"
1914 else
1915   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1916   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1917     test -z "$ac_dir" && ac_dir=.
1918     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1919     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1920       # Check to see if the nm accepts a BSD-compat flag.
1921       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1922       #   nm: unknown option "B" ignored
1923       # Tru64's nm complains that /dev/null is an invalid object file
1924       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1925         lt_cv_path_NM="$tmp_nm -B"
1926         break
1927       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1928         lt_cv_path_NM="$tmp_nm -p"
1929         break
1930       else
1931         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1932         continue # so that we can try to find one that supports BSD flags
1933       fi
1934     fi
1935   done
1936   IFS="$ac_save_ifs"
1937   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1938 fi
1939 fi
1940
1941 NM="$lt_cv_path_NM"
1942 echo "$ac_t""$NM" 1>&6
1943
1944 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1945 echo "configure:1946: checking whether ln -s works" >&5
1946 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1947   echo $ac_n "(cached) $ac_c" 1>&6
1948 else
1949   rm -f conftestdata
1950 if ln -s X conftestdata 2>/dev/null
1951 then
1952   rm -f conftestdata
1953   ac_cv_prog_LN_S="ln -s"
1954 else
1955   ac_cv_prog_LN_S=ln
1956 fi
1957 fi
1958 LN_S="$ac_cv_prog_LN_S"
1959 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1960   echo "$ac_t""yes" 1>&6
1961 else
1962   echo "$ac_t""no" 1>&6
1963 fi
1964
1965 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1966 echo "configure:1967: checking how to recognise dependant libraries" >&5
1967 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1968   echo $ac_n "(cached) $ac_c" 1>&6
1969 else
1970   lt_cv_file_magic_cmd='$MAGIC_CMD'
1971 lt_cv_file_magic_test_file=
1972 lt_cv_deplibs_check_method='unknown'
1973 # Need to set the preceding variable on all platforms that support
1974 # interlibrary dependencies.
1975 # 'none' -- dependencies not supported.
1976 # `unknown' -- same as none, but documents that we really don't know.
1977 # 'pass_all' -- all dependencies passed with no checks.
1978 # 'test_compile' -- check by making test program.
1979 # 'file_magic [regex]' -- check by looking for files in library path
1980 # which responds to the $file_magic_cmd with a given egrep regex.
1981 # If you have `file' or equivalent on your system and you're not sure
1982 # whether `pass_all' will *always* work, you probably want this one.
1983
1984 case $host_os in
1985 aix*)
1986   lt_cv_deplibs_check_method=pass_all
1987   ;;
1988
1989 beos*)
1990   lt_cv_deplibs_check_method=pass_all
1991   ;;
1992
1993 bsdi4*)
1994   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1995   lt_cv_file_magic_cmd='/usr/bin/file -L'
1996   lt_cv_file_magic_test_file=/shlib/libc.so
1997   ;;
1998
1999 cygwin* | mingw* |pw32*)
2000   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2001   lt_cv_file_magic_cmd='$OBJDUMP -f'
2002   ;;
2003
2004 darwin* | rhapsody*)
2005   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2006   lt_cv_file_magic_cmd='/usr/bin/file -L'
2007   case "$host_os" in
2008   rhapsody* | darwin1.012)
2009     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2010     ;;
2011   *) # Darwin 1.3 on
2012     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2013     ;;
2014   esac
2015   ;;
2016
2017 freebsd* )
2018   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2019     case $host_cpu in
2020     i*86 )
2021       # Not sure whether the presence of OpenBSD here was a mistake.
2022       # Let's accept both of them until this is cleared up.
2023       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2024       lt_cv_file_magic_cmd=/usr/bin/file
2025       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2026       ;;
2027     esac
2028   else
2029     lt_cv_deplibs_check_method=pass_all
2030   fi
2031   ;;
2032
2033 gnu*)
2034   lt_cv_deplibs_check_method=pass_all
2035   ;;
2036
2037 hpux10.20*|hpux11*)
2038   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2039   lt_cv_file_magic_cmd=/usr/bin/file
2040   lt_cv_file_magic_test_file=/usr/lib/libc.sl
2041   ;;
2042
2043 irix5* | irix6*)
2044   case $host_os in
2045   irix5*)
2046     # this will be overridden with pass_all, but let us keep it just in case
2047     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2048     ;;
2049   *)
2050     case $LD in
2051     *-32|*"-32 ") libmagic=32-bit;;
2052     *-n32|*"-n32 ") libmagic=N32;;
2053     *-64|*"-64 ") libmagic=64-bit;;
2054     *) libmagic=never-match;;
2055     esac
2056     # this will be overridden with pass_all, but let us keep it just in case
2057     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2058     ;;
2059   esac
2060   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2061   lt_cv_deplibs_check_method=pass_all
2062   ;;
2063
2064 # This must be Linux ELF.
2065 linux-gnu*)
2066   case $host_cpu in
2067   alpha* | i*86 | powerpc* | sparc* | ia64* )
2068     lt_cv_deplibs_check_method=pass_all ;;
2069   *)
2070     # glibc up to 2.1.1 does not perform some relocations on ARM
2071     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2072   esac
2073   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2074   ;;
2075
2076 netbsd*)
2077   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2078     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2079   else
2080     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2081   fi
2082   ;;
2083
2084 newsos6)
2085   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2086   lt_cv_file_magic_cmd=/usr/bin/file
2087   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2088   ;;
2089
2090 osf3* | osf4* | osf5*)
2091   # this will be overridden with pass_all, but let us keep it just in case
2092   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2093   lt_cv_file_magic_test_file=/shlib/libc.so
2094   lt_cv_deplibs_check_method=pass_all
2095   ;;
2096
2097 sco3.2v5*)
2098   lt_cv_deplibs_check_method=pass_all
2099   ;;
2100
2101 solaris*)
2102   lt_cv_deplibs_check_method=pass_all
2103   lt_cv_file_magic_test_file=/lib/libc.so
2104   ;;
2105
2106 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2107   case $host_vendor in
2108   ncr)
2109     lt_cv_deplibs_check_method=pass_all
2110     ;;
2111   motorola)
2112     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]'
2113     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2114     ;;
2115   esac
2116   ;;
2117 esac
2118
2119 fi
2120
2121 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2122 file_magic_cmd=$lt_cv_file_magic_cmd
2123 deplibs_check_method=$lt_cv_deplibs_check_method
2124
2125 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2126 echo "configure:2127: checking for object suffix" >&5
2127 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2128   echo $ac_n "(cached) $ac_c" 1>&6
2129 else
2130   rm -f conftest*
2131 echo 'int i = 1;' > conftest.$ac_ext
2132 if { (eval echo configure:2133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2133   for ac_file in conftest.*; do
2134     case $ac_file in
2135     *.c) ;;
2136     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2137     esac
2138   done
2139 else
2140   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2141 fi
2142 rm -f conftest*
2143 fi
2144
2145 echo "$ac_t""$ac_cv_objext" 1>&6
2146 OBJEXT=$ac_cv_objext
2147 ac_objext=$ac_cv_objext
2148
2149 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2150
2151 # Only perform the check for file, if the check method requires it
2152 case $deplibs_check_method in
2153 file_magic*)
2154   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2155     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2156 echo "configure:2157: checking for ${ac_tool_prefix}file" >&5
2157 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2158   echo $ac_n "(cached) $ac_c" 1>&6
2159 else
2160   case $MAGIC_CMD in
2161   /*)
2162   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2163   ;;
2164   ?:/*)
2165   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2166   ;;
2167   *)
2168   ac_save_MAGIC_CMD="$MAGIC_CMD"
2169   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2170   ac_dummy="/usr/bin:$PATH"
2171   for ac_dir in $ac_dummy; do
2172     test -z "$ac_dir" && ac_dir=.
2173     if test -f $ac_dir/${ac_tool_prefix}file; then
2174       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2175       if test -n "$file_magic_test_file"; then
2176         case $deplibs_check_method in
2177         "file_magic "*)
2178           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2179           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2180           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2181             egrep "$file_magic_regex" > /dev/null; then
2182             :
2183           else
2184             cat <<EOF 1>&2
2185
2186 *** Warning: the command libtool uses to detect shared libraries,
2187 *** $file_magic_cmd, produces output that libtool cannot recognize.
2188 *** The result is that libtool may fail to recognize shared libraries
2189 *** as such.  This will affect the creation of libtool libraries that
2190 *** depend on shared libraries, but programs linked with such libtool
2191 *** libraries will work regardless of this problem.  Nevertheless, you
2192 *** may want to report the problem to your system manager and/or to
2193 *** bug-libtool@gnu.org
2194
2195 EOF
2196           fi ;;
2197         esac
2198       fi
2199       break
2200     fi
2201   done
2202   IFS="$ac_save_ifs"
2203   MAGIC_CMD="$ac_save_MAGIC_CMD"
2204   ;;
2205 esac
2206 fi
2207
2208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2209 if test -n "$MAGIC_CMD"; then
2210   echo "$ac_t""$MAGIC_CMD" 1>&6
2211 else
2212   echo "$ac_t""no" 1>&6
2213 fi
2214
2215 if test -z "$lt_cv_path_MAGIC_CMD"; then
2216   if test -n "$ac_tool_prefix"; then
2217     echo $ac_n "checking for file""... $ac_c" 1>&6
2218 echo "configure:2219: checking for file" >&5
2219 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2220   echo $ac_n "(cached) $ac_c" 1>&6
2221 else
2222   case $MAGIC_CMD in
2223   /*)
2224   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2225   ;;
2226   ?:/*)
2227   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2228   ;;
2229   *)
2230   ac_save_MAGIC_CMD="$MAGIC_CMD"
2231   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2232   ac_dummy="/usr/bin:$PATH"
2233   for ac_dir in $ac_dummy; do
2234     test -z "$ac_dir" && ac_dir=.
2235     if test -f $ac_dir/file; then
2236       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2237       if test -n "$file_magic_test_file"; then
2238         case $deplibs_check_method in
2239         "file_magic "*)
2240           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2241           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2242           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2243             egrep "$file_magic_regex" > /dev/null; then
2244             :
2245           else
2246             cat <<EOF 1>&2
2247
2248 *** Warning: the command libtool uses to detect shared libraries,
2249 *** $file_magic_cmd, produces output that libtool cannot recognize.
2250 *** The result is that libtool may fail to recognize shared libraries
2251 *** as such.  This will affect the creation of libtool libraries that
2252 *** depend on shared libraries, but programs linked with such libtool
2253 *** libraries will work regardless of this problem.  Nevertheless, you
2254 *** may want to report the problem to your system manager and/or to
2255 *** bug-libtool@gnu.org
2256
2257 EOF
2258           fi ;;
2259         esac
2260       fi
2261       break
2262     fi
2263   done
2264   IFS="$ac_save_ifs"
2265   MAGIC_CMD="$ac_save_MAGIC_CMD"
2266   ;;
2267 esac
2268 fi
2269
2270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2271 if test -n "$MAGIC_CMD"; then
2272   echo "$ac_t""$MAGIC_CMD" 1>&6
2273 else
2274   echo "$ac_t""no" 1>&6
2275 fi
2276
2277   else
2278     MAGIC_CMD=:
2279   fi
2280 fi
2281
2282   fi
2283   ;;
2284 esac
2285
2286 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2287 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2288 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2289 echo "configure:2290: checking for $ac_word" >&5
2290 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2291   echo $ac_n "(cached) $ac_c" 1>&6
2292 else
2293   if test -n "$RANLIB"; then
2294   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2295 else
2296   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2297   ac_dummy="$PATH"
2298   for ac_dir in $ac_dummy; do
2299     test -z "$ac_dir" && ac_dir=.
2300     if test -f $ac_dir/$ac_word; then
2301       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2302       break
2303     fi
2304   done
2305   IFS="$ac_save_ifs"
2306 fi
2307 fi
2308 RANLIB="$ac_cv_prog_RANLIB"
2309 if test -n "$RANLIB"; then
2310   echo "$ac_t""$RANLIB" 1>&6
2311 else
2312   echo "$ac_t""no" 1>&6
2313 fi
2314
2315
2316 if test -z "$ac_cv_prog_RANLIB"; then
2317 if test -n "$ac_tool_prefix"; then
2318   # Extract the first word of "ranlib", so it can be a program name with args.
2319 set dummy ranlib; ac_word=$2
2320 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2321 echo "configure:2322: checking for $ac_word" >&5
2322 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2323   echo $ac_n "(cached) $ac_c" 1>&6
2324 else
2325   if test -n "$RANLIB"; then
2326   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2327 else
2328   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2329   ac_dummy="$PATH"
2330   for ac_dir in $ac_dummy; do
2331     test -z "$ac_dir" && ac_dir=.
2332     if test -f $ac_dir/$ac_word; then
2333       ac_cv_prog_RANLIB="ranlib"
2334       break
2335     fi
2336   done
2337   IFS="$ac_save_ifs"
2338   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2339 fi
2340 fi
2341 RANLIB="$ac_cv_prog_RANLIB"
2342 if test -n "$RANLIB"; then
2343   echo "$ac_t""$RANLIB" 1>&6
2344 else
2345   echo "$ac_t""no" 1>&6
2346 fi
2347
2348 else
2349   RANLIB=":"
2350 fi
2351 fi
2352
2353 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2354 set dummy ${ac_tool_prefix}strip; ac_word=$2
2355 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2356 echo "configure:2357: checking for $ac_word" >&5
2357 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2358   echo $ac_n "(cached) $ac_c" 1>&6
2359 else
2360   if test -n "$STRIP"; then
2361   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2362 else
2363   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2364   ac_dummy="$PATH"
2365   for ac_dir in $ac_dummy; do
2366     test -z "$ac_dir" && ac_dir=.
2367     if test -f $ac_dir/$ac_word; then
2368       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2369       break
2370     fi
2371   done
2372   IFS="$ac_save_ifs"
2373 fi
2374 fi
2375 STRIP="$ac_cv_prog_STRIP"
2376 if test -n "$STRIP"; then
2377   echo "$ac_t""$STRIP" 1>&6
2378 else
2379   echo "$ac_t""no" 1>&6
2380 fi
2381
2382
2383 if test -z "$ac_cv_prog_STRIP"; then
2384 if test -n "$ac_tool_prefix"; then
2385   # Extract the first word of "strip", so it can be a program name with args.
2386 set dummy strip; ac_word=$2
2387 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2388 echo "configure:2389: checking for $ac_word" >&5
2389 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2390   echo $ac_n "(cached) $ac_c" 1>&6
2391 else
2392   if test -n "$STRIP"; then
2393   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2394 else
2395   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2396   ac_dummy="$PATH"
2397   for ac_dir in $ac_dummy; do
2398     test -z "$ac_dir" && ac_dir=.
2399     if test -f $ac_dir/$ac_word; then
2400       ac_cv_prog_STRIP="strip"
2401       break
2402     fi
2403   done
2404   IFS="$ac_save_ifs"
2405   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2406 fi
2407 fi
2408 STRIP="$ac_cv_prog_STRIP"
2409 if test -n "$STRIP"; then
2410   echo "$ac_t""$STRIP" 1>&6
2411 else
2412   echo "$ac_t""no" 1>&6
2413 fi
2414
2415 else
2416   STRIP=":"
2417 fi
2418 fi
2419
2420
2421 # Check for any special flags to pass to ltconfig.
2422 libtool_flags="--cache-file=$cache_file"
2423 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2424 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2425 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2426 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2427 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2428 libtool_flags="$libtool_flags --enable-dlopen"
2429
2430 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2431 if test "${enable_libtool_lock+set}" = set; then
2432   enableval="$enable_libtool_lock"
2433   :
2434 fi
2435
2436 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2437 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2438
2439 # Check whether --with-pic or --without-pic was given.
2440 if test "${with_pic+set}" = set; then
2441   withval="$with_pic"
2442   pic_mode="$withval"
2443 else
2444   pic_mode=default
2445 fi
2446
2447 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2448 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2449
2450 # Some flags need to be propagated to the compiler or linker for good
2451 # libtool support.
2452 case $host in
2453 *-*-irix6*)
2454   # Find out which ABI we are using.
2455   echo '#line 2456 "configure"' > conftest.$ac_ext
2456   if { (eval echo configure:2457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2457     case `/usr/bin/file conftest.$ac_objext` in
2458     *32-bit*)
2459       LD="${LD-ld} -32"
2460       ;;
2461     *N32*)
2462       LD="${LD-ld} -n32"
2463       ;;
2464     *64-bit*)
2465       LD="${LD-ld} -64"
2466       ;;
2467     esac
2468   fi
2469   rm -rf conftest*
2470   ;;
2471
2472 *-*-sco3.2v5*)
2473   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2474   SAVE_CFLAGS="$CFLAGS"
2475   CFLAGS="$CFLAGS -belf"
2476   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2477 echo "configure:2478: checking whether the C compiler needs -belf" >&5
2478 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2479   echo $ac_n "(cached) $ac_c" 1>&6
2480 else
2481   
2482      ac_ext=c
2483 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2484 ac_cpp='$CPP $CPPFLAGS'
2485 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2486 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2487 cross_compiling=$ac_cv_prog_cc_cross
2488
2489      cat > conftest.$ac_ext <<EOF
2490 #line 2491 "configure"
2491 #include "confdefs.h"
2492
2493 int main() {
2494
2495 ; return 0; }
2496 EOF
2497 if { (eval echo configure:2498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2498   rm -rf conftest*
2499   lt_cv_cc_needs_belf=yes
2500 else
2501   echo "configure: failed program was:" >&5
2502   cat conftest.$ac_ext >&5
2503   rm -rf conftest*
2504   lt_cv_cc_needs_belf=no
2505 fi
2506 rm -f conftest*
2507      ac_ext=c
2508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2509 ac_cpp='$CPP $CPPFLAGS'
2510 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2511 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2512 cross_compiling=$ac_cv_prog_cc_cross
2513
2514 fi
2515
2516 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2517   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2518     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2519     CFLAGS="$SAVE_CFLAGS"
2520   fi
2521   ;;
2522
2523
2524 esac
2525
2526 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2527 echo "configure:2528: checking how to run the C++ preprocessor" >&5
2528 if test -z "$CXXCPP"; then
2529 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2530   echo $ac_n "(cached) $ac_c" 1>&6
2531 else
2532   ac_ext=C
2533 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2534 ac_cpp='$CXXCPP $CPPFLAGS'
2535 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2536 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2537 cross_compiling=$ac_cv_prog_cxx_cross
2538   CXXCPP="${CXX-g++} -E"
2539   cat > conftest.$ac_ext <<EOF
2540 #line 2541 "configure"
2541 #include "confdefs.h"
2542 #include <stdlib.h>
2543 EOF
2544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2545 { (eval echo configure:2546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2547 if test -z "$ac_err"; then
2548   :
2549 else
2550   echo "$ac_err" >&5
2551   echo "configure: failed program was:" >&5
2552   cat conftest.$ac_ext >&5
2553   rm -rf conftest*
2554   CXXCPP=/lib/cpp
2555 fi
2556 rm -f conftest*
2557   ac_cv_prog_CXXCPP="$CXXCPP"
2558 ac_ext=c
2559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2560 ac_cpp='$CPP $CPPFLAGS'
2561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2563 cross_compiling=$ac_cv_prog_cc_cross
2564 fi
2565 fi
2566 CXXCPP="$ac_cv_prog_CXXCPP"
2567 echo "$ac_t""$CXXCPP" 1>&6
2568
2569
2570 # Save cache, so that ltconfig can load it
2571 cat > confcache <<\EOF
2572 # This file is a shell script that caches the results of configure
2573 # tests run on this system so they can be shared between configure
2574 # scripts and configure runs.  It is not useful on other systems.
2575 # If it contains results you don't want to keep, you may remove or edit it.
2576 #
2577 # By default, configure uses ./config.cache as the cache file,
2578 # creating it if it does not exist already.  You can give configure
2579 # the --cache-file=FILE option to use a different cache file; that is
2580 # what configure does when it calls configure scripts in
2581 # subdirectories, so they share the cache.
2582 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2583 # config.status only pays attention to the cache file if you give it the
2584 # --recheck option to rerun configure.
2585 #
2586 EOF
2587 # The following way of writing the cache mishandles newlines in values,
2588 # but we know of no workaround that is simple, portable, and efficient.
2589 # So, don't put newlines in cache variables' values.
2590 # Ultrix sh set writes to stderr and can't be redirected directly,
2591 # and sets the high bit in the cache file unless we assign to the vars.
2592 (set) 2>&1 |
2593   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2594   *ac_space=\ *)
2595     # `set' does not quote correctly, so add quotes (double-quote substitution
2596     # turns \\\\ into \\, and sed turns \\ into \).
2597     sed -n \
2598       -e "s/'/'\\\\''/g" \
2599       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2600     ;;
2601   *)
2602     # `set' quotes correctly as required by POSIX, so do not add quotes.
2603     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2604     ;;
2605   esac >> confcache
2606 if cmp -s $cache_file confcache; then
2607   :
2608 else
2609   if test -w $cache_file; then
2610     echo "updating cache $cache_file"
2611     cat confcache > $cache_file
2612   else
2613     echo "not updating unwritable cache $cache_file"
2614   fi
2615 fi
2616 rm -f confcache
2617
2618
2619 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2620 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2621 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2622 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2623 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2624 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2625 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2626 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2627 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2628 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2629
2630 # Reload cache, that may have been modified by ltconfig
2631 if test -r "$cache_file"; then
2632   echo "loading cache $cache_file"
2633   . $cache_file
2634 else
2635   echo "creating cache $cache_file"
2636   > $cache_file
2637 fi
2638
2639
2640 # This can be used to rebuild libtool when needed
2641 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2642
2643 # Always use our own libtool.
2644 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2645
2646 # Redirect the config.log output again, so that the ltconfig log is not
2647 # clobbered by the next message.
2648 exec 5>>./config.log
2649
2650
2651
2652 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2653 lt_save_CC="$CC"
2654 lt_save_CFLAGS="$CFLAGS"
2655 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2656 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2657 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2658 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2659 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2660 deplibs_check_method="$deplibs_check_method" \
2661 file_magic_cmd="$file_magic_cmd" \
2662 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2663 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2664 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2665 CC="$lt_save_CC"
2666 CFLAGS="$lt_save_CFLAGS"
2667
2668 # Redirect the config.log output again, so that the ltconfig log is not
2669 # clobbered by the next message.
2670 exec 5>>./config.log
2671
2672   
2673
2674   
2675          
2676          
2677
2678
2679 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2680 echo "configure:2681: checking for GNU make" >&5
2681 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2682   echo $ac_n "(cached) $ac_c" 1>&6
2683 else
2684   _cv_gnu_make_command='' ;
2685           for a in "${MAKE-make}" make gmake gnumake ; do
2686                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2687                   then
2688                           _cv_gnu_make_command=$a ;
2689                           break;
2690                   fi
2691           done ;
2692   
2693 fi
2694
2695 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2696   if test  "x$_cv_gnu_make_command" != "x"  ; then
2697           ifGNUmake='' ;
2698   else
2699           ifGNUmake='#' ;
2700   fi
2701   
2702
2703   if test "x$_cv_gnu_make_command" = "x"; then
2704     { echo "configure: error: GNU make not found. Please install it or correct your path." 1>&2; exit 1; }
2705   fi
2706
2707
2708
2709
2710 # Check for c++ or library specific bits that don't require linking.
2711
2712 if test ! -f stamp-sanity-compiler; then
2713   echo $ac_n "checking for g++ that will successfully compile libstdc++-v3""... $ac_c" 1>&6
2714 echo "configure:2715: checking for g++ that will successfully compile libstdc++-v3" >&5
2715   
2716   ac_ext=C
2717 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2718 ac_cpp='$CXXCPP $CPPFLAGS'
2719 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2720 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2721 cross_compiling=$ac_cv_prog_cxx_cross
2722
2723   cat > conftest.$ac_ext <<EOF
2724 #line 2725 "configure"
2725 #include "confdefs.h"
2726
2727   #if __GNUC__ >= 3
2728     ok
2729   #endif
2730   
2731 EOF
2732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2733   egrep "ok" >/dev/null 2>&1; then
2734   rm -rf conftest*
2735   gpp_satisfactory=yes
2736 else
2737   rm -rf conftest*
2738   { echo "configure: error: please upgrade to GCC 3.0 or above" 1>&2; exit 1; }
2739 fi
2740 rm -f conftest*
2741
2742   ac_ext=c
2743 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2744 ac_cpp='$CPP $CPPFLAGS'
2745 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2746 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2747 cross_compiling=$ac_cv_prog_cc_cross
2748
2749   echo "$ac_t""$gpp_satisfactory" 1>&6
2750   touch stamp-sanity-compiler
2751 fi
2752
2753
2754 # Enable all the crazy c++ stuff.  C_MBCHAR must come early.
2755 # Check whether --enable-debug or --disable-debug was given.
2756 if test "${enable_debug+set}" = set; then
2757   enableval="$enable_debug"
2758   case "${enableval}" in
2759  yes) enable_debug=yes ;;
2760  no)  enable_debug=no ;;
2761  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2762  esac
2763 else
2764   enable_debug=no
2765 fi
2766
2767 case "${enable_debug}" in
2768     yes) 
2769         DEBUG_FLAGS='-O0 -ggdb3'                        
2770         ;; 
2771     no)   
2772         DEBUG_FLAGS='-g'
2773         ;;
2774 esac
2775
2776
2777 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2778 echo "configure:2779: checking how to run the C preprocessor" >&5
2779 # On Suns, sometimes $CPP names a directory.
2780 if test -n "$CPP" && test -d "$CPP"; then
2781   CPP=
2782 fi
2783 if test -z "$CPP"; then
2784 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2785   echo $ac_n "(cached) $ac_c" 1>&6
2786 else
2787     # This must be in double quotes, not single quotes, because CPP may get
2788   # substituted into the Makefile and "${CC-cc}" will confuse make.
2789   CPP="${CC-cc} -E"
2790   # On the NeXT, cc -E runs the code through the compiler's parser,
2791   # not just through cpp.
2792   cat > conftest.$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2795 #include <assert.h>
2796 Syntax Error
2797 EOF
2798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2799 { (eval echo configure:2800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2801 if test -z "$ac_err"; then
2802   :
2803 else
2804   echo "$ac_err" >&5
2805   echo "configure: failed program was:" >&5
2806   cat conftest.$ac_ext >&5
2807   rm -rf conftest*
2808   CPP="${CC-cc} -E -traditional-cpp"
2809   cat > conftest.$ac_ext <<EOF
2810 #line 2811 "configure"
2811 #include "confdefs.h"
2812 #include <assert.h>
2813 Syntax Error
2814 EOF
2815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2816 { (eval echo configure:2817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2817 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2818 if test -z "$ac_err"; then
2819   :
2820 else
2821   echo "$ac_err" >&5
2822   echo "configure: failed program was:" >&5
2823   cat conftest.$ac_ext >&5
2824   rm -rf conftest*
2825   CPP="${CC-cc} -nologo -E"
2826   cat > conftest.$ac_ext <<EOF
2827 #line 2828 "configure"
2828 #include "confdefs.h"
2829 #include <assert.h>
2830 Syntax Error
2831 EOF
2832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2833 { (eval echo configure:2834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2834 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2835 if test -z "$ac_err"; then
2836   :
2837 else
2838   echo "$ac_err" >&5
2839   echo "configure: failed program was:" >&5
2840   cat conftest.$ac_ext >&5
2841   rm -rf conftest*
2842   CPP=/lib/cpp
2843 fi
2844 rm -f conftest*
2845 fi
2846 rm -f conftest*
2847 fi
2848 rm -f conftest*
2849   ac_cv_prog_CPP="$CPP"
2850 fi
2851   CPP="$ac_cv_prog_CPP"
2852 else
2853   ac_cv_prog_CPP="$CPP"
2854 fi
2855 echo "$ac_t""$CPP" 1>&6
2856
2857
2858   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2859 echo "configure:2860: checking for cstdio to use" >&5
2860   # Check whether --enable-cstdio or --disable-cstdio was given.
2861 if test "${enable_cstdio+set}" = set; then
2862   enableval="$enable_cstdio"
2863   if test x$enable_cstdio = xno; then
2864      enable_cstdio=stdio
2865   fi
2866 else
2867   enable_cstdio=stdio
2868 fi
2869
2870
2871   enable_cstdio_flag=$enable_cstdio
2872
2873     case x${enable_cstdio_flag} in
2874     xlibio)
2875       CSTDIO_H=config/c_io_libio.h
2876       BASIC_FILE_H=config/basic_file_libio.h
2877       BASIC_FILE_CC=config/basic_file_libio.cc
2878       echo "$ac_t""libio" 1>&6
2879
2880       # see if we are on a system with libio native (ie, linux)
2881       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2882 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2883 echo "configure:2884: checking for libio.h" >&5
2884 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2885   echo $ac_n "(cached) $ac_c" 1>&6
2886 else
2887   cat > conftest.$ac_ext <<EOF
2888 #line 2889 "configure"
2889 #include "confdefs.h"
2890 #include <libio.h>
2891 EOF
2892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2893 { (eval echo configure:2894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2895 if test -z "$ac_err"; then
2896   rm -rf conftest*
2897   eval "ac_cv_header_$ac_safe=yes"
2898 else
2899   echo "$ac_err" >&5
2900   echo "configure: failed program was:" >&5
2901   cat conftest.$ac_ext >&5
2902   rm -rf conftest*
2903   eval "ac_cv_header_$ac_safe=no"
2904 fi
2905 rm -f conftest*
2906 fi
2907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2908   echo "$ac_t""yes" 1>&6
2909   has_libio=yes
2910 else
2911   echo "$ac_t""no" 1>&6
2912 has_libio=no
2913 fi
2914
2915
2916       # Need to check and see what version of glibc is being used. If
2917       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2918       # compile most of libio for linux systems.
2919       if test x$has_libio = x"yes"; then
2920         case "$target" in
2921           *-*-linux*)
2922               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2923 echo "configure:2924: checking for glibc version >= 2.2" >&5
2924               cat > conftest.$ac_ext <<EOF
2925 #line 2926 "configure"
2926 #include "confdefs.h"
2927
2928             #include <features.h>
2929               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2930                     ok
2931               #endif
2932               
2933 EOF
2934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2935   egrep "ok" >/dev/null 2>&1; then
2936   rm -rf conftest*
2937   glibc_satisfactory=yes
2938 else
2939   rm -rf conftest*
2940   glibc_satisfactory=no
2941 fi
2942 rm -f conftest*
2943
2944               echo "$ac_t""$glibc_satisfactory" 1>&6
2945             ;;
2946         esac
2947
2948         # XXX at the moment, admit defeat and force the recompilation
2949         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2950         glibc_satisfactory=no        
2951
2952         if test x$glibc_satisfactory = x"yes"; then
2953            need_libio=no
2954            need_wlibio=no        
2955         else
2956            need_libio=yes
2957            # bkoz XXX need to add checks to enable this
2958            # pme XXX here's a first pass at such a check
2959            if test x$enable_c_mbchar != xno; then
2960               need_wlibio=yes
2961            else
2962               need_wlibio=no
2963            fi
2964         fi
2965
2966       else
2967          # Using libio, but <libio.h> doesn't exist on the target system. . .
2968          need_libio=yes
2969          # bkoz XXX need to add checks to enable this
2970          # pme XXX here's a first pass at such a check
2971          if test x$enable_c_mbchar != xno; then
2972              need_wlibio=yes
2973          else
2974              need_wlibio=no
2975          fi
2976       fi
2977       ;;
2978     xstdio | x | xno | xnone | xyes)
2979       # default
2980       CSTDIO_H=config/c_io_stdio.h
2981       BASIC_FILE_H=config/basic_file_stdio.h
2982       BASIC_FILE_CC=config/basic_file_stdio.cc
2983       echo "$ac_t""stdio" 1>&6
2984
2985       # We're not using stdio.
2986       need_libio=no
2987       need_wlibio=no
2988       ;;
2989     *)
2990       echo "$enable_cstdio is an unknown io package" 1>&2
2991       exit 1
2992       ;;
2993   esac
2994   
2995   
2996   
2997
2998   # 2000-08-04 bkoz hack
2999   CCODECVT_C=config/c_io_libio_codecvt.c
3000   
3001   # 2000-08-04 bkoz hack
3002
3003   
3004
3005 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
3006   GLIBCPP_BUILD_LIBIO_TRUE=
3007   GLIBCPP_BUILD_LIBIO_FALSE='#'
3008 else
3009   GLIBCPP_BUILD_LIBIO_TRUE='#'
3010   GLIBCPP_BUILD_LIBIO_FALSE=
3011 fi
3012   
3013
3014 if test "$need_libio" = yes; then
3015   GLIBCPP_NEED_LIBIO_TRUE=
3016   GLIBCPP_NEED_LIBIO_FALSE='#'
3017 else
3018   GLIBCPP_NEED_LIBIO_TRUE='#'
3019   GLIBCPP_NEED_LIBIO_FALSE=
3020 fi
3021   
3022
3023 if test "$need_wlibio" = yes; then
3024   GLIBCPP_NEED_WLIBIO_TRUE=
3025   GLIBCPP_NEED_WLIBIO_FALSE='#'
3026 else
3027   GLIBCPP_NEED_WLIBIO_TRUE='#'
3028   GLIBCPP_NEED_WLIBIO_FALSE=
3029 fi
3030   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
3031     libio_la=../libio/libio.la
3032   else
3033     libio_la=
3034   fi
3035   
3036
3037
3038   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
3039 echo "configure:3040: checking for clocale to use" >&5
3040   # Check whether --enable-clocale or --disable-clocale was given.
3041 if test "${enable_clocale+set}" = set; then
3042   enableval="$enable_clocale"
3043   if test x$enable_clocale = xno; then
3044      enable_clocale=generic
3045   fi
3046 else
3047   enable_clocale=generic
3048 fi
3049
3050
3051   enable_clocale_flag=$enable_clocale
3052
3053     case x${enable_clocale_flag} in
3054     xgnu)
3055       CLOCALE_H=config/c_locale_gnu.h
3056       CLOCALE_CC=config/c_locale_gnu.cc
3057       echo "$ac_t""gnu" 1>&6
3058       ;;
3059     xgeneric)
3060       CLOCALE_H=config/c_locale_generic.h
3061       CLOCALE_CC=config/c_locale_generic.cc
3062       echo "$ac_t""generic" 1>&6
3063       ;;
3064     *)
3065       echo "$enable_clocale is an unknown locale package" 1>&2
3066       exit 1
3067       ;;
3068   esac
3069
3070   
3071   
3072
3073 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3074 if test "${enable_c_mbchar+set}" = set; then
3075   enableval="$enable_c_mbchar"
3076   case "$enableval" in
3077  yes) enable_c_mbchar=yes ;;
3078  no)  enable_c_mbchar=no ;;
3079  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3080  esac
3081 else
3082   enable_c_mbchar=yes
3083 fi
3084
3085   
3086   # Check whether --enable-c99 or --disable-c99 was given.
3087 if test "${enable_c99+set}" = set; then
3088   enableval="$enable_c99"
3089     case "$enableval" in
3090    yes) enable_c99=yes ;;
3091    no)  enable_c99=no ;;
3092    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3093    esac
3094 else
3095   enable_c99=yes
3096 fi
3097  
3098   
3099   ac_ext=C
3100 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3101 ac_cpp='$CXXCPP $CPPFLAGS'
3102 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3103 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3104 cross_compiling=$ac_cv_prog_cxx_cross
3105
3106
3107   # Check for the existence of <math.h> functions used if C99 is enabled.
3108   cat > conftest.$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3111 #include <math.h>
3112 int main() {
3113 fpclassify(0.0);
3114 ; return 0; }
3115 EOF
3116 if { (eval echo configure:3117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3117   :
3118 else
3119   echo "configure: failed program was:" >&5
3120   cat conftest.$ac_ext >&5
3121   rm -rf conftest*
3122   ac_c99_math=no
3123 fi
3124 rm -f conftest*
3125   cat > conftest.$ac_ext <<EOF
3126 #line 3127 "configure"
3127 #include "confdefs.h"
3128 #include <math.h>
3129 int main() {
3130 isfinite(0.0);
3131 ; return 0; }
3132 EOF
3133 if { (eval echo configure:3134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3134   :
3135 else
3136   echo "configure: failed program was:" >&5
3137   cat conftest.$ac_ext >&5
3138   rm -rf conftest*
3139   ac_c99_math=no
3140 fi
3141 rm -f conftest*
3142   cat > conftest.$ac_ext <<EOF
3143 #line 3144 "configure"
3144 #include "confdefs.h"
3145 #include <math.h>
3146 int main() {
3147 isinf(0.0);
3148 ; return 0; }
3149 EOF
3150 if { (eval echo configure:3151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3151   :
3152 else
3153   echo "configure: failed program was:" >&5
3154   cat conftest.$ac_ext >&5
3155   rm -rf conftest*
3156   ac_c99_math=no
3157 fi
3158 rm -f conftest*
3159   cat > conftest.$ac_ext <<EOF
3160 #line 3161 "configure"
3161 #include "confdefs.h"
3162 #include <math.h>
3163 int main() {
3164 isnan(0.0);
3165 ; return 0; }
3166 EOF
3167 if { (eval echo configure:3168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3168   :
3169 else
3170   echo "configure: failed program was:" >&5
3171   cat conftest.$ac_ext >&5
3172   rm -rf conftest*
3173   ac_c99_math=no
3174 fi
3175 rm -f conftest*
3176   cat > conftest.$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3179 #include <math.h>
3180 int main() {
3181 isnormal(0.0);
3182 ; return 0; }
3183 EOF
3184 if { (eval echo configure:3185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3185   :
3186 else
3187   echo "configure: failed program was:" >&5
3188   cat conftest.$ac_ext >&5
3189   rm -rf conftest*
3190   ac_c99_math=no
3191 fi
3192 rm -f conftest*
3193   cat > conftest.$ac_ext <<EOF
3194 #line 3195 "configure"
3195 #include "confdefs.h"
3196 #include <math.h>
3197 int main() {
3198 signbit(0.0);
3199 ; return 0; }
3200 EOF
3201 if { (eval echo configure:3202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3202   :
3203 else
3204   echo "configure: failed program was:" >&5
3205   cat conftest.$ac_ext >&5
3206   rm -rf conftest*
3207   ac_c99_math=no
3208 fi
3209 rm -f conftest*
3210   cat > conftest.$ac_ext <<EOF
3211 #line 3212 "configure"
3212 #include "confdefs.h"
3213 #include <math.h>
3214 int main() {
3215 isgreater(0.0,0.0);
3216 ; return 0; }
3217 EOF
3218 if { (eval echo configure:3219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3219   :
3220 else
3221   echo "configure: failed program was:" >&5
3222   cat conftest.$ac_ext >&5
3223   rm -rf conftest*
3224   ac_c99_math=no
3225 fi
3226 rm -f conftest*
3227   cat > conftest.$ac_ext <<EOF
3228 #line 3229 "configure"
3229 #include "confdefs.h"
3230 #include <math.h>
3231 int main() {
3232 isgreaterequal(0.0,0.0);
3233 ; return 0; }
3234 EOF
3235 if { (eval echo configure:3236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3236   :
3237 else
3238   echo "configure: failed program was:" >&5
3239   cat conftest.$ac_ext >&5
3240   rm -rf conftest*
3241   ac_c99_math=no
3242 fi
3243 rm -f conftest*
3244   cat > conftest.$ac_ext <<EOF
3245 #line 3246 "configure"
3246 #include "confdefs.h"
3247 #include <math.h>
3248 int main() {
3249 isless(0.0,0.0);
3250 ; return 0; }
3251 EOF
3252 if { (eval echo configure:3253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3253   :
3254 else
3255   echo "configure: failed program was:" >&5
3256   cat conftest.$ac_ext >&5
3257   rm -rf conftest*
3258   ac_c99_math=no
3259 fi
3260 rm -f conftest*
3261   cat > conftest.$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3264 #include <math.h>
3265 int main() {
3266 islessequal(0.0,0.0);
3267 ; return 0; }
3268 EOF
3269 if { (eval echo configure:3270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3270   :
3271 else
3272   echo "configure: failed program was:" >&5
3273   cat conftest.$ac_ext >&5
3274   rm -rf conftest*
3275   ac_c99_math=no
3276 fi
3277 rm -f conftest*
3278   cat > conftest.$ac_ext <<EOF
3279 #line 3280 "configure"
3280 #include "confdefs.h"
3281 #include <math.h>
3282 int main() {
3283 islessgreater(0.0,0.0);
3284 ; return 0; }
3285 EOF
3286 if { (eval echo configure:3287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3287   :
3288 else
3289   echo "configure: failed program was:" >&5
3290   cat conftest.$ac_ext >&5
3291   rm -rf conftest*
3292   ac_c99_math=no
3293 fi
3294 rm -f conftest*
3295   cat > conftest.$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3298 #include <math.h>
3299 int main() {
3300 isunordered(0.0,0.0);
3301 ; return 0; }
3302 EOF
3303 if { (eval echo configure:3304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3304   :
3305 else
3306   echo "configure: failed program was:" >&5
3307   cat conftest.$ac_ext >&5
3308   rm -rf conftest*
3309   ac_c99_math=no
3310 fi
3311 rm -f conftest*
3312
3313   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3314   echo $ac_n "checking for strtoll""... $ac_c" 1>&6
3315 echo "configure:3316: checking for strtoll" >&5
3316 if eval "test \"`echo '$''{'ac_cv_func_strtoll'+set}'`\" = set"; then
3317   echo $ac_n "(cached) $ac_c" 1>&6
3318 else
3319   cat > conftest.$ac_ext <<EOF
3320 #line 3321 "configure"
3321 #include "confdefs.h"
3322 /* System header to define __stub macros and hopefully few prototypes,
3323     which can conflict with char strtoll(); below.  */
3324 #include <assert.h>
3325 /* Override any gcc2 internal prototype to avoid an error.  */
3326 #ifdef __cplusplus
3327 extern "C"
3328 #endif
3329 /* We use char because int might match the return type of a gcc2
3330     builtin and then its argument prototype would still apply.  */
3331 char strtoll();
3332
3333 int main() {
3334
3335 /* The GNU C library defines this for functions which it implements
3336     to always fail with ENOSYS.  Some functions are actually named
3337     something starting with __ and the normal name is an alias.  */
3338 #if defined (__stub_strtoll) || defined (__stub___strtoll)
3339 choke me
3340 #else
3341 strtoll();
3342 #endif
3343
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   eval "ac_cv_func_strtoll=yes"
3349 else
3350   echo "configure: failed program was:" >&5
3351   cat conftest.$ac_ext >&5
3352   rm -rf conftest*
3353   eval "ac_cv_func_strtoll=no"
3354 fi
3355 rm -f conftest*
3356 fi
3357
3358 if eval "test \"`echo '$ac_cv_func_'strtoll`\" = yes"; then
3359   echo "$ac_t""yes" 1>&6
3360   :
3361 else
3362   echo "$ac_t""no" 1>&6
3363 ac_c99_stdlib=no
3364 fi
3365
3366   echo $ac_n "checking for strtoull""... $ac_c" 1>&6
3367 echo "configure:3368: checking for strtoull" >&5
3368 if eval "test \"`echo '$''{'ac_cv_func_strtoull'+set}'`\" = set"; then
3369   echo $ac_n "(cached) $ac_c" 1>&6
3370 else
3371   cat > conftest.$ac_ext <<EOF
3372 #line 3373 "configure"
3373 #include "confdefs.h"
3374 /* System header to define __stub macros and hopefully few prototypes,
3375     which can conflict with char strtoull(); below.  */
3376 #include <assert.h>
3377 /* Override any gcc2 internal prototype to avoid an error.  */
3378 #ifdef __cplusplus
3379 extern "C"
3380 #endif
3381 /* We use char because int might match the return type of a gcc2
3382     builtin and then its argument prototype would still apply.  */
3383 char strtoull();
3384
3385 int main() {
3386
3387 /* The GNU C library defines this for functions which it implements
3388     to always fail with ENOSYS.  Some functions are actually named
3389     something starting with __ and the normal name is an alias.  */
3390 #if defined (__stub_strtoull) || defined (__stub___strtoull)
3391 choke me
3392 #else
3393 strtoull();
3394 #endif
3395
3396 ; return 0; }
3397 EOF
3398 if { (eval echo configure:3399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3399   rm -rf conftest*
3400   eval "ac_cv_func_strtoull=yes"
3401 else
3402   echo "configure: failed program was:" >&5
3403   cat conftest.$ac_ext >&5
3404   rm -rf conftest*
3405   eval "ac_cv_func_strtoull=no"
3406 fi
3407 rm -f conftest*
3408 fi
3409
3410 if eval "test \"`echo '$ac_cv_func_'strtoull`\" = yes"; then
3411   echo "$ac_t""yes" 1>&6
3412   :
3413 else
3414   echo "$ac_t""no" 1>&6
3415 ac_c99_stdlib=no
3416 fi
3417
3418   echo $ac_n "checking for llabs""... $ac_c" 1>&6
3419 echo "configure:3420: checking for llabs" >&5
3420 if eval "test \"`echo '$''{'ac_cv_func_llabs'+set}'`\" = set"; then
3421   echo $ac_n "(cached) $ac_c" 1>&6
3422 else
3423   cat > conftest.$ac_ext <<EOF
3424 #line 3425 "configure"
3425 #include "confdefs.h"
3426 /* System header to define __stub macros and hopefully few prototypes,
3427     which can conflict with char llabs(); below.  */
3428 #include <assert.h>
3429 /* Override any gcc2 internal prototype to avoid an error.  */
3430 #ifdef __cplusplus
3431 extern "C"
3432 #endif
3433 /* We use char because int might match the return type of a gcc2
3434     builtin and then its argument prototype would still apply.  */
3435 char llabs();
3436
3437 int main() {
3438
3439 /* The GNU C library defines this for functions which it implements
3440     to always fail with ENOSYS.  Some functions are actually named
3441     something starting with __ and the normal name is an alias.  */
3442 #if defined (__stub_llabs) || defined (__stub___llabs)
3443 choke me
3444 #else
3445 llabs();
3446 #endif
3447
3448 ; return 0; }
3449 EOF
3450 if { (eval echo configure:3451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3451   rm -rf conftest*
3452   eval "ac_cv_func_llabs=yes"
3453 else
3454   echo "configure: failed program was:" >&5
3455   cat conftest.$ac_ext >&5
3456   rm -rf conftest*
3457   eval "ac_cv_func_llabs=no"
3458 fi
3459 rm -f conftest*
3460 fi
3461
3462 if eval "test \"`echo '$ac_cv_func_'llabs`\" = yes"; then
3463   echo "$ac_t""yes" 1>&6
3464   :
3465 else
3466   echo "$ac_t""no" 1>&6
3467 ac_c99_stdlib=no
3468 fi
3469
3470   echo $ac_n "checking for lldiv""... $ac_c" 1>&6
3471 echo "configure:3472: checking for lldiv" >&5
3472 if eval "test \"`echo '$''{'ac_cv_func_lldiv'+set}'`\" = set"; then
3473   echo $ac_n "(cached) $ac_c" 1>&6
3474 else
3475   cat > conftest.$ac_ext <<EOF
3476 #line 3477 "configure"
3477 #include "confdefs.h"
3478 /* System header to define __stub macros and hopefully few prototypes,
3479     which can conflict with char lldiv(); below.  */
3480 #include <assert.h>
3481 /* Override any gcc2 internal prototype to avoid an error.  */
3482 #ifdef __cplusplus
3483 extern "C"
3484 #endif
3485 /* We use char because int might match the return type of a gcc2
3486     builtin and then its argument prototype would still apply.  */
3487 char lldiv();
3488
3489 int main() {
3490
3491 /* The GNU C library defines this for functions which it implements
3492     to always fail with ENOSYS.  Some functions are actually named
3493     something starting with __ and the normal name is an alias.  */
3494 #if defined (__stub_lldiv) || defined (__stub___lldiv)
3495 choke me
3496 #else
3497 lldiv();
3498 #endif
3499
3500 ; return 0; }
3501 EOF
3502 if { (eval echo configure:3503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3503   rm -rf conftest*
3504   eval "ac_cv_func_lldiv=yes"
3505 else
3506   echo "configure: failed program was:" >&5
3507   cat conftest.$ac_ext >&5
3508   rm -rf conftest*
3509   eval "ac_cv_func_lldiv=no"
3510 fi
3511 rm -f conftest*
3512 fi
3513
3514 if eval "test \"`echo '$ac_cv_func_'lldiv`\" = yes"; then
3515   echo "$ac_t""yes" 1>&6
3516   :
3517 else
3518   echo "$ac_t""no" 1>&6
3519 ac_c99_stdlib=no
3520 fi
3521
3522   echo $ac_n "checking for atoll""... $ac_c" 1>&6
3523 echo "configure:3524: checking for atoll" >&5
3524 if eval "test \"`echo '$''{'ac_cv_func_atoll'+set}'`\" = set"; then
3525   echo $ac_n "(cached) $ac_c" 1>&6
3526 else
3527   cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3530 /* System header to define __stub macros and hopefully few prototypes,
3531     which can conflict with char atoll(); below.  */
3532 #include <assert.h>
3533 /* Override any gcc2 internal prototype to avoid an error.  */
3534 #ifdef __cplusplus
3535 extern "C"
3536 #endif
3537 /* We use char because int might match the return type of a gcc2
3538     builtin and then its argument prototype would still apply.  */
3539 char atoll();
3540
3541 int main() {
3542
3543 /* The GNU C library defines this for functions which it implements
3544     to always fail with ENOSYS.  Some functions are actually named
3545     something starting with __ and the normal name is an alias.  */
3546 #if defined (__stub_atoll) || defined (__stub___atoll)
3547 choke me
3548 #else
3549 atoll();
3550 #endif
3551
3552 ; return 0; }
3553 EOF
3554 if { (eval echo configure:3555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3555   rm -rf conftest*
3556   eval "ac_cv_func_atoll=yes"
3557 else
3558   echo "configure: failed program was:" >&5
3559   cat conftest.$ac_ext >&5
3560   rm -rf conftest*
3561   eval "ac_cv_func_atoll=no"
3562 fi
3563 rm -f conftest*
3564 fi
3565
3566 if eval "test \"`echo '$ac_cv_func_'atoll`\" = yes"; then
3567   echo "$ac_t""yes" 1>&6
3568   :
3569 else
3570   echo "$ac_t""no" 1>&6
3571 ac_c99_stdlib=no
3572 fi
3573
3574         
3575   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3576 echo "configure:3577: checking for lldiv_t declaration" >&5
3577   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3578   echo $ac_n "(cached) $ac_c" 1>&6
3579 else
3580   
3581   cat > conftest.$ac_ext <<EOF
3582 #line 3583 "configure"
3583 #include "confdefs.h"
3584 #include <stdlib.h>
3585 int main() {
3586  lldiv_t mydivt;
3587 ; return 0; }
3588 EOF
3589 if { (eval echo configure:3590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3590   rm -rf conftest*
3591   ac_c99_lldiv_t=yes
3592 else
3593   echo "configure: failed program was:" >&5
3594   cat conftest.$ac_ext >&5
3595   rm -rf conftest*
3596   ac_c99_lldiv_t=no
3597 fi
3598 rm -f conftest*
3599   
3600 fi
3601
3602   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3603   if test x"$ac_c99_lldiv_t" = x"no"; then
3604     ac_c99_stdlib=no; 
3605   fi; 
3606
3607   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3608   echo $ac_n "checking for wcstold""... $ac_c" 1>&6
3609 echo "configure:3610: checking for wcstold" >&5
3610 if eval "test \"`echo '$''{'ac_cv_func_wcstold'+set}'`\" = set"; then
3611   echo $ac_n "(cached) $ac_c" 1>&6
3612 else
3613   cat > conftest.$ac_ext <<EOF
3614 #line 3615 "configure"
3615 #include "confdefs.h"
3616 /* System header to define __stub macros and hopefully few prototypes,
3617     which can conflict with char wcstold(); below.  */
3618 #include <assert.h>
3619 /* Override any gcc2 internal prototype to avoid an error.  */
3620 #ifdef __cplusplus
3621 extern "C"
3622 #endif
3623 /* We use char because int might match the return type of a gcc2
3624     builtin and then its argument prototype would still apply.  */
3625 char wcstold();
3626
3627 int main() {
3628
3629 /* The GNU C library defines this for functions which it implements
3630     to always fail with ENOSYS.  Some functions are actually named
3631     something starting with __ and the normal name is an alias.  */
3632 #if defined (__stub_wcstold) || defined (__stub___wcstold)
3633 choke me
3634 #else
3635 wcstold();
3636 #endif
3637
3638 ; return 0; }
3639 EOF
3640 if { (eval echo configure:3641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3641   rm -rf conftest*
3642   eval "ac_cv_func_wcstold=yes"
3643 else
3644   echo "configure: failed program was:" >&5
3645   cat conftest.$ac_ext >&5
3646   rm -rf conftest*
3647   eval "ac_cv_func_wcstold=no"
3648 fi
3649 rm -f conftest*
3650 fi
3651
3652 if eval "test \"`echo '$ac_cv_func_'wcstold`\" = yes"; then
3653   echo "$ac_t""yes" 1>&6
3654   :
3655 else
3656   echo "$ac_t""no" 1>&6
3657 ac_c99_wchar=no
3658 fi
3659
3660   echo $ac_n "checking for wcstoll""... $ac_c" 1>&6
3661 echo "configure:3662: checking for wcstoll" >&5
3662 if eval "test \"`echo '$''{'ac_cv_func_wcstoll'+set}'`\" = set"; then
3663   echo $ac_n "(cached) $ac_c" 1>&6
3664 else
3665   cat > conftest.$ac_ext <<EOF
3666 #line 3667 "configure"
3667 #include "confdefs.h"
3668 /* System header to define __stub macros and hopefully few prototypes,
3669     which can conflict with char wcstoll(); below.  */
3670 #include <assert.h>
3671 /* Override any gcc2 internal prototype to avoid an error.  */
3672 #ifdef __cplusplus
3673 extern "C"
3674 #endif
3675 /* We use char because int might match the return type of a gcc2
3676     builtin and then its argument prototype would still apply.  */
3677 char wcstoll();
3678
3679 int main() {
3680
3681 /* The GNU C library defines this for functions which it implements
3682     to always fail with ENOSYS.  Some functions are actually named
3683     something starting with __ and the normal name is an alias.  */
3684 #if defined (__stub_wcstoll) || defined (__stub___wcstoll)
3685 choke me
3686 #else
3687 wcstoll();
3688 #endif
3689
3690 ; return 0; }
3691 EOF
3692 if { (eval echo configure:3693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3693   rm -rf conftest*
3694   eval "ac_cv_func_wcstoll=yes"
3695 else
3696   echo "configure: failed program was:" >&5
3697   cat conftest.$ac_ext >&5
3698   rm -rf conftest*
3699   eval "ac_cv_func_wcstoll=no"
3700 fi
3701 rm -f conftest*
3702 fi
3703
3704 if eval "test \"`echo '$ac_cv_func_'wcstoll`\" = yes"; then
3705   echo "$ac_t""yes" 1>&6
3706   :
3707 else
3708   echo "$ac_t""no" 1>&6
3709 ac_c99_wchar=no
3710 fi
3711
3712   echo $ac_n "checking for wcstoull""... $ac_c" 1>&6
3713 echo "configure:3714: checking for wcstoull" >&5
3714 if eval "test \"`echo '$''{'ac_cv_func_wcstoull'+set}'`\" = set"; then
3715   echo $ac_n "(cached) $ac_c" 1>&6
3716 else
3717   cat > conftest.$ac_ext <<EOF
3718 #line 3719 "configure"
3719 #include "confdefs.h"
3720 /* System header to define __stub macros and hopefully few prototypes,
3721     which can conflict with char wcstoull(); below.  */
3722 #include <assert.h>
3723 /* Override any gcc2 internal prototype to avoid an error.  */
3724 #ifdef __cplusplus
3725 extern "C"
3726 #endif
3727 /* We use char because int might match the return type of a gcc2
3728     builtin and then its argument prototype would still apply.  */
3729 char wcstoull();
3730
3731 int main() {
3732
3733 /* The GNU C library defines this for functions which it implements
3734     to always fail with ENOSYS.  Some functions are actually named
3735     something starting with __ and the normal name is an alias.  */
3736 #if defined (__stub_wcstoull) || defined (__stub___wcstoull)
3737 choke me
3738 #else
3739 wcstoull();
3740 #endif
3741
3742 ; return 0; }
3743 EOF
3744 if { (eval echo configure:3745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3745   rm -rf conftest*
3746   eval "ac_cv_func_wcstoull=yes"
3747 else
3748   echo "configure: failed program was:" >&5
3749   cat conftest.$ac_ext >&5
3750   rm -rf conftest*
3751   eval "ac_cv_func_wcstoull=no"
3752 fi
3753 rm -f conftest*
3754 fi
3755
3756 if eval "test \"`echo '$ac_cv_func_'wcstoull`\" = yes"; then
3757   echo "$ac_t""yes" 1>&6
3758   :
3759 else
3760   echo "$ac_t""no" 1>&6
3761 ac_c99_wchar=no
3762 fi
3763
3764
3765   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3766 echo "configure:3767: checking for enabled ISO C99 support" >&5
3767   if test x"$ac_c99_math" = x"no" || test x"$ac_c99_wchar" = x"no" \
3768         || test x"$ac_c99_stdlib" = x"no"; then 
3769     enable_c99=no; 
3770   fi; 
3771   echo "$ac_t""$enable_c99" 1>&6
3772
3773   # Option parsed, now set things appropriately
3774   if test x"$enable_c99" = x"yes"; then
3775     cat >> confdefs.h <<\EOF
3776 #define _GLIBCPP_USE_C99 1
3777 EOF
3778
3779   fi
3780
3781   ac_ext=c
3782 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3783 ac_cpp='$CPP $CPPFLAGS'
3784 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3785 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3786 cross_compiling=$ac_cv_prog_cc_cross
3787
3788
3789   
3790   # Check whether --enable-long-long or --disable-long-long was given.
3791 if test "${enable_long_long+set}" = set; then
3792   enableval="$enable_long_long"
3793     case "$enableval" in
3794    yes) enable_long_long=yes ;;
3795    no)  enable_long_long=no ;;
3796    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3797    esac
3798 else
3799   enable_long_long=yes
3800 fi
3801
3802   # iostreams require strtoll, strtoull to compile. If the
3803   # GLIBCPP_ENABLE_C99 tests found these, and if C99 support is enabled,
3804   # go ahead and allow long long to be used.
3805   if test x"$enable_c99" = x"no"; then
3806     enable_long_long=no; 
3807   fi
3808
3809   # Option parsed, now set things appropriately
3810   echo $ac_n "checking for enabled long long support""... $ac_c" 1>&6
3811 echo "configure:3812: checking for enabled long long support" >&5
3812   if test x"$enable_long_long" = xyes; then
3813     cat >> confdefs.h <<\EOF
3814 #define _GLIBCPP_USE_LONG_LONG 1
3815 EOF
3816
3817   fi
3818   echo "$ac_t""$enable_long_long" 1>&6
3819
3820 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3821 echo "configure:3822: checking for c header strategy to use" >&5
3822 # Check whether --enable-cheaders or --disable-cheaders was given.
3823 if test "${enable_cheaders+set}" = set; then
3824   enableval="$enable_cheaders"
3825   
3826   case "$enableval" in
3827    c) 
3828         enable_cheaders=c 
3829         ;;
3830    c_std)  
3831         enable_cheaders=c_std 
3832         ;;
3833    c_shadow)  
3834         enable_cheaders=c_shadow 
3835         ;;
3836    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3837         ;;
3838   esac
3839 else
3840   enable_cheaders=c_std
3841 fi
3842
3843   echo "$ac_t""$enable_cheaders" 1>&6
3844
3845     case "$enable_cheaders" in
3846     c_shadow) 
3847         CSHADOW_FLAGS="-fno-builtin"
3848         C_INCLUDE_DIR='${top_srcdir}/include/c_shadow'
3849         cat >> confdefs.h <<\EOF
3850 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3851 EOF
3852
3853         ;;
3854     c_std)   
3855         CSHADOW_FLAGS=""
3856         C_INCLUDE_DIR='${top_srcdir}/include/c_std'
3857         ;;
3858     c)   
3859         CSHADOW_FLAGS=""
3860         C_INCLUDE_DIR='${top_srcdir}/include/c'
3861         ;;
3862   esac
3863
3864   
3865   
3866   
3867
3868 if test "$enable_cheaders" = c_shadow; then
3869   GLIBCPP_USE_CSHADOW_TRUE=
3870   GLIBCPP_USE_CSHADOW_FALSE='#'
3871 else
3872   GLIBCPP_USE_CSHADOW_TRUE='#'
3873   GLIBCPP_USE_CSHADOW_FALSE=
3874 fi
3875
3876
3877   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3878 echo "configure:3879: checking for thread model used by GCC" >&5
3879   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3880   echo "$ac_t""$target_thread_file" 1>&6
3881
3882     THREADH=
3883   case "$target_thread_file" in
3884     no | none | single)
3885       THREADH=threads-no.h
3886       ;;
3887     posix | pthreads)
3888       THREADH=threads-posix.h
3889       ;;
3890     decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3891       echo "configure: warning: disabling unsupported thread package $target_thread_file" 1>&2
3892       THREADH=threads-no.h
3893       ;;
3894     *)
3895       { echo "configure: error: $target_thread_file: unsupported/unknown thread package" 1>&2; exit 1; }
3896       ;;
3897   esac
3898
3899   
3900   if test $THREADH != threads-no.h; then
3901     cat >> confdefs.h <<\EOF
3902 #define _GLIBCPP_USE_THREADS 1
3903 EOF
3904
3905   fi
3906
3907 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3908 if test "${enable_cxx_flags+set}" = set; then
3909   enableval="$enable_cxx_flags"
3910   case "x$enableval" in
3911  xyes)   
3912         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3913  xno|x)  
3914         enable_cxx_flags='' ;;
3915  *)      
3916         enable_cxx_flags="$enableval" ;;
3917  esac
3918 else
3919   enable_cxx_flags='none'
3920 fi
3921
3922
3923 if test "$enable_cxx_flags" = "none"; then 
3924   enable_cxx_flags=''; 
3925 fi
3926
3927 if test -n "$enable_cxx_flags"; then
3928     for f in $enable_cxx_flags; do
3929         case "$f" in
3930             -fhonor-std)  ;;
3931             -*)  ;;
3932             *)   # and we're trying to pass /what/ exactly?
3933                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3934         esac
3935     done
3936 fi
3937 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3938
3939
3940
3941   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3942 echo "configure:3943: checking for exception model to use" >&5
3943   
3944   ac_ext=C
3945 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3946 ac_cpp='$CXXCPP $CPPFLAGS'
3947 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3948 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3949 cross_compiling=$ac_cv_prog_cxx_cross
3950
3951   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3952 if test "${enable_sjlj_exceptions+set}" = set; then
3953   enableval="$enable_sjlj_exceptions"
3954   :
3955 else
3956                        cat > conftest.$ac_ext << EOF
3957 #line 3958 "configure"
3958 struct S { ~S(); };
3959 void bar();
3960 void foo()
3961 {
3962   S s;
3963   bar();
3964 }
3965 EOF
3966    old_CXXFLAGS="$CXXFLAGS"  
3967    CXXFLAGS=-S
3968    if { (eval echo configure:3969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3969      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3970        enable_sjlj_exceptions=yes
3971      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3972        enable_sjlj_exceptions=no
3973      fi
3974    fi
3975    CXXFLAGS="$old_CXXFLAGS"
3976    rm -f conftest*
3977 fi
3978
3979    if test x$enable_sjlj_exceptions = xyes; then
3980      cat >> confdefs.h <<\EOF
3981 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3982 EOF
3983
3984      ac_exception_model_name=sjlj
3985    elif test x$enable_sjlj_exceptions = xno; then
3986      ac_exception_model_name="call frame"
3987    else
3988      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3989    fi
3990    ac_ext=c
3991 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3992 ac_cpp='$CPP $CPPFLAGS'
3993 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3994 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3995 cross_compiling=$ac_cv_prog_cc_cross
3996
3997    echo "$ac_t""$ac_exception_model_name" 1>&6
3998
3999
4000 if test -n "$with_cross_host"; then
4001
4002   # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
4003   # may not work correctly, because the compiler may not be able to
4004   # link executables.
4005   xcompiling=1
4006   NATIVE=no
4007
4008   # If Canadian cross, then don't pick up tools from the build
4009   # directory.
4010   if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
4011     CANADIAN=yes
4012     NULL_TARGET=yes
4013   else
4014     CANADIAN=no
4015     NULL_TARGET=no
4016   fi
4017
4018   case "$target_alias" in
4019     *-linux*)
4020         # Construct linux crosses by hand, eliminating bits that need ld...
4021         # Check for available headers.
4022         for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4023         machine/endian.h machine/param.h sys/machine.h fp.h locale.h \
4024         float.h inttypes.h
4025 do
4026 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4027 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4028 echo "configure:4029: checking for $ac_hdr" >&5
4029 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4030   echo $ac_n "(cached) $ac_c" 1>&6
4031 else
4032   cat > conftest.$ac_ext <<EOF
4033 #line 4034 "configure"
4034 #include "confdefs.h"
4035 #include <$ac_hdr>
4036 EOF
4037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4038 { (eval echo configure:4039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4040 if test -z "$ac_err"; then
4041   rm -rf conftest*
4042   eval "ac_cv_header_$ac_safe=yes"
4043 else
4044   echo "$ac_err" >&5
4045   echo "configure: failed program was:" >&5
4046   cat conftest.$ac_ext >&5
4047   rm -rf conftest*
4048   eval "ac_cv_header_$ac_safe=no"
4049 fi
4050 rm -f conftest*
4051 fi
4052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4053   echo "$ac_t""yes" 1>&6
4054     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4055   cat >> confdefs.h <<EOF
4056 #define $ac_tr_hdr 1
4057 EOF
4058  
4059 else
4060   echo "$ac_t""no" 1>&6
4061 fi
4062 done
4063
4064
4065         # GLIBCPP_CHECK_COMPILER_FEATURES
4066         SECTION_FLAGS='-ffunction-sections -fdata-sections'
4067         
4068         
4069   # If we're not using GNU ld, then there's no point in even trying these
4070   # tests.  Check for that first.  We should have already tested for gld
4071   # by now (in libtool), but require it now just to be safe...
4072   SECTION_LDFLAGS=''
4073   OPT_LDFLAGS=''
4074   
4075
4076   # Set --gc-sections.
4077   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4078     # GNU ld it is!  Joy and bunny rabbits!
4079
4080     # All these tests are for C++; save the language and the compiler flags.
4081     # Need to do this so that g++ won't try to link in libstdc++
4082     ac_test_CFLAGS="${CFLAGS+set}"
4083     ac_save_CFLAGS="$CFLAGS"
4084     CFLAGS='-x c++  -Wl,--gc-sections'
4085
4086     # Check for -Wl,--gc-sections
4087     # XXX This test is broken at the moment, as symbols required for
4088     # linking are now in libsupc++ (not built yet.....). In addition, 
4089     # this test has cored on solaris in the past. In addition,
4090     # --gc-sections doesn't really work at the moment (keeps on discarding
4091     # used sections, first .eh_frame and now some of the glibc sections for
4092     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4093     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4094 echo "configure:4095: checking for ld that supports -Wl,--gc-sections" >&5
4095     if test "$cross_compiling" = yes; then
4096   ac_sectionLDflags=yes
4097 else
4098   cat > conftest.$ac_ext <<EOF
4099 #line 4100 "configure"
4100 #include "confdefs.h"
4101
4102      int main(void) 
4103      {
4104        try { throw 1; }
4105        catch (...) { };
4106        return 0;
4107      }
4108     
4109 EOF
4110 if { (eval echo configure:4111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4111 then
4112   ac_sectionLDflags=yes
4113 else
4114   echo "configure: failed program was:" >&5
4115   cat conftest.$ac_ext >&5
4116   rm -fr conftest*
4117   ac_sectionLFflags=no
4118 fi
4119 rm -fr conftest*
4120 fi
4121
4122     if test "$ac_test_CFLAGS" = set; then
4123       CFLAGS="$ac_save_CFLAGS"
4124     else
4125       # this is the suspicious part
4126       CFLAGS=''
4127     fi
4128     if test "$ac_sectionLDflags" = "yes"; then
4129       SECTION_LDFLAGS='-Wl,--gc-sections'
4130     fi
4131     echo "$ac_t""$ac_sectionLDflags" 1>&6
4132   fi
4133
4134   # Set linker optimization flags.
4135   if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4136     OPT_LDFLAGS='-Wl,-O1'
4137   fi
4138
4139   
4140   
4141
4142         # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4143         # GLIBCPP_CHECK_MATH_SUPPORT
4144         cat >> confdefs.h <<\EOF
4145 #define HAVE_ACOSF 1
4146 EOF
4147
4148         cat >> confdefs.h <<\EOF
4149 #define HAVE_ASINF 1
4150 EOF
4151
4152         cat >> confdefs.h <<\EOF
4153 #define HAVE_ATAN2F 1
4154 EOF
4155
4156         cat >> confdefs.h <<\EOF
4157 #define HAVE_ATANF 1
4158 EOF
4159
4160         cat >> confdefs.h <<\EOF
4161 #define HAVE_CEILF 1
4162 EOF
4163
4164         cat >> confdefs.h <<\EOF
4165 #define HAVE_COPYSIGN 1
4166 EOF
4167
4168         cat >> confdefs.h <<\EOF
4169 #define HAVE_COPYSIGNF 1
4170 EOF
4171
4172         cat >> confdefs.h <<\EOF
4173 #define HAVE_COSF 1
4174 EOF
4175
4176         cat >> confdefs.h <<\EOF
4177 #define HAVE_COSHF 1
4178 EOF
4179
4180         cat >> confdefs.h <<\EOF
4181 #define HAVE_EXPF 1
4182 EOF
4183
4184         cat >> confdefs.h <<\EOF
4185 #define HAVE_FABSF 1
4186 EOF
4187
4188         cat >> confdefs.h <<\EOF
4189 #define HAVE_FINITE 1
4190 EOF
4191
4192         cat >> confdefs.h <<\EOF
4193 #define HAVE_FINITEF 1
4194 EOF
4195
4196         cat >> confdefs.h <<\EOF
4197 #define HAVE_FLOORF 1
4198 EOF
4199
4200         cat >> confdefs.h <<\EOF
4201 #define HAVE_FMODF 1
4202 EOF
4203
4204         cat >> confdefs.h <<\EOF
4205 #define HAVE_FREXPF 1
4206 EOF
4207
4208         cat >> confdefs.h <<\EOF
4209 #define HAVE_ISINF 1
4210 EOF
4211
4212         cat >> confdefs.h <<\EOF
4213 #define HAVE_ISINFF 1
4214 EOF
4215
4216         cat >> confdefs.h <<\EOF
4217 #define HAVE_ISNAN 1
4218 EOF
4219
4220         cat >> confdefs.h <<\EOF
4221 #define HAVE_ISNANF 1
4222 EOF
4223
4224         cat >> confdefs.h <<\EOF
4225 #define HAVE_LDEXPF 1
4226 EOF
4227
4228         cat >> confdefs.h <<\EOF
4229 #define HAVE_LOG10F 1
4230 EOF
4231
4232         cat >> confdefs.h <<\EOF
4233 #define HAVE_LOGF 1
4234 EOF
4235
4236         cat >> confdefs.h <<\EOF
4237 #define HAVE_MODFF 1
4238 EOF
4239
4240         cat >> confdefs.h <<\EOF
4241 #define HAVE_POWF 1
4242 EOF
4243
4244         cat >> confdefs.h <<\EOF
4245 #define HAVE_SINCOS 1
4246 EOF
4247
4248         cat >> confdefs.h <<\EOF
4249 #define HAVE_SINCOSF 1
4250 EOF
4251
4252         cat >> confdefs.h <<\EOF
4253 #define HAVE_SINF 1
4254 EOF
4255
4256         cat >> confdefs.h <<\EOF
4257 #define HAVE_SINHF 1
4258 EOF
4259
4260         cat >> confdefs.h <<\EOF
4261 #define HAVE_SQRTF 1
4262 EOF
4263
4264         cat >> confdefs.h <<\EOF
4265 #define HAVE_TANF 1
4266 EOF
4267
4268         cat >> confdefs.h <<\EOF
4269 #define HAVE_TANHF 1
4270 EOF
4271
4272
4273         # At some point, we should differentiate between architectures
4274         # like x86, which have long double versions, and alpha/powerpc/etc.,
4275         # which don't. For the time being, punt.
4276         if test x"long_double_math_on_this_cpu" = x"yes"; then
4277           cat >> confdefs.h <<\EOF
4278 #define HAVE_ACOSL 1
4279 EOF
4280
4281           cat >> confdefs.h <<\EOF
4282 #define HAVE_ASINL 1
4283 EOF
4284
4285           cat >> confdefs.h <<\EOF
4286 #define HAVE_ATAN2L 1
4287 EOF
4288
4289           cat >> confdefs.h <<\EOF
4290 #define HAVE_ATANL 1
4291 EOF
4292
4293           cat >> confdefs.h <<\EOF
4294 #define HAVE_CEILL 1
4295 EOF
4296
4297           cat >> confdefs.h <<\EOF
4298 #define HAVE_COPYSIGNL 1
4299 EOF
4300
4301           cat >> confdefs.h <<\EOF
4302 #define HAVE_COSL 1
4303 EOF
4304
4305           cat >> confdefs.h <<\EOF
4306 #define HAVE_COSHL 1
4307 EOF
4308
4309           cat >> confdefs.h <<\EOF
4310 #define HAVE_EXPL 1
4311 EOF
4312
4313           cat >> confdefs.h <<\EOF
4314 #define HAVE_FABSL 1
4315 EOF
4316
4317           cat >> confdefs.h <<\EOF
4318 #define HAVE_FINITEL 1
4319 EOF
4320
4321           cat >> confdefs.h <<\EOF
4322 #define HAVE_FLOORL 1
4323 EOF
4324
4325           cat >> confdefs.h <<\EOF
4326 #define HAVE_FMODL 1
4327 EOF
4328
4329           cat >> confdefs.h <<\EOF
4330 #define HAVE_FREXPL 1
4331 EOF
4332
4333           cat >> confdefs.h <<\EOF
4334 #define HAVE_ISINFL 1
4335 EOF
4336
4337           cat >> confdefs.h <<\EOF
4338 #define HAVE_ISNANL 1
4339 EOF
4340
4341           cat >> confdefs.h <<\EOF
4342 #define HAVE_LDEXPL 1
4343 EOF
4344
4345           cat >> confdefs.h <<\EOF
4346 #define HAVE_LOG10L 1
4347 EOF
4348
4349           cat >> confdefs.h <<\EOF
4350 #define HAVE_LOGL 1
4351 EOF
4352
4353           cat >> confdefs.h <<\EOF
4354 #define HAVE_MODFL 1
4355 EOF
4356
4357           cat >> confdefs.h <<\EOF
4358 #define HAVE_POWL 1
4359 EOF
4360
4361           cat >> confdefs.h <<\EOF
4362 #define HAVE_SINCOSL 1
4363 EOF
4364
4365           cat >> confdefs.h <<\EOF
4366 #define HAVE_SINL 1
4367 EOF
4368
4369           cat >> confdefs.h <<\EOF
4370 #define HAVE_SINHL 1
4371 EOF
4372
4373           cat >> confdefs.h <<\EOF
4374 #define HAVE_SQRTL 1
4375 EOF
4376
4377           cat >> confdefs.h <<\EOF
4378 #define HAVE_TANL 1
4379 EOF
4380
4381           cat >> confdefs.h <<\EOF
4382 #define HAVE_TANHL 1
4383 EOF
4384
4385         fi
4386         
4387     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4388 echo "configure:4389: checking for main in -lm" >&5
4389 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4391   echo $ac_n "(cached) $ac_c" 1>&6
4392 else
4393   ac_save_LIBS="$LIBS"
4394 LIBS="-lm  $LIBS"
4395 cat > conftest.$ac_ext <<EOF
4396 #line 4397 "configure"
4397 #include "confdefs.h"
4398
4399 int main() {
4400 main()
4401 ; return 0; }
4402 EOF
4403 if { (eval echo configure:4404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4404   rm -rf conftest*
4405   eval "ac_cv_lib_$ac_lib_var=yes"
4406 else
4407   echo "configure: failed program was:" >&5
4408   cat conftest.$ac_ext >&5
4409   rm -rf conftest*
4410   eval "ac_cv_lib_$ac_lib_var=no"
4411 fi
4412 rm -f conftest*
4413 LIBS="$ac_save_LIBS"
4414
4415 fi
4416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4417   echo "$ac_t""yes" 1>&6
4418     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4419     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4420   cat >> confdefs.h <<EOF
4421 #define $ac_tr_lib 1
4422 EOF
4423
4424   LIBS="-lm $LIBS"
4425
4426 else
4427   echo "$ac_t""no" 1>&6
4428 fi
4429
4430   for ac_func in nan hypot hypotf atan2f expf copysignf
4431 do
4432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4433 echo "configure:4434: checking for $ac_func" >&5
4434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4435   echo $ac_n "(cached) $ac_c" 1>&6
4436 else
4437   cat > conftest.$ac_ext <<EOF
4438 #line 4439 "configure"
4439 #include "confdefs.h"
4440 /* System header to define __stub macros and hopefully few prototypes,
4441     which can conflict with char $ac_func(); below.  */
4442 #include <assert.h>
4443 /* Override any gcc2 internal prototype to avoid an error.  */
4444 /* We use char because int might match the return type of a gcc2
4445     builtin and then its argument prototype would still apply.  */
4446 char $ac_func();
4447
4448 int main() {
4449
4450 /* The GNU C library defines this for functions which it implements
4451     to always fail with ENOSYS.  Some functions are actually named
4452     something starting with __ and the normal name is an alias.  */
4453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4454 choke me
4455 #else
4456 $ac_func();
4457 #endif
4458
4459 ; return 0; }
4460 EOF
4461 if { (eval echo configure:4462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4462   rm -rf conftest*
4463   eval "ac_cv_func_$ac_func=yes"
4464 else
4465   echo "configure: failed program was:" >&5
4466   cat conftest.$ac_ext >&5
4467   rm -rf conftest*
4468   eval "ac_cv_func_$ac_func=no"
4469 fi
4470 rm -f conftest*
4471 fi
4472
4473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4474   echo "$ac_t""yes" 1>&6
4475     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4476   cat >> confdefs.h <<EOF
4477 #define $ac_tr_func 1
4478 EOF
4479  
4480 else
4481   echo "$ac_t""no" 1>&6
4482 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4483 fi
4484 done
4485
4486
4487
4488           USE_COMPLEX_LONG_DOUBLE=no
4489   if test x$ac_cv_func_atan2l = x"yes" \
4490      && test x$ac_cv_func_copysignl = x"yes"; then
4491     USE_COMPLEX_LONG_DOUBLE=yes
4492     for ac_func in hypotl signbitl
4493 do
4494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4495 echo "configure:4496: checking for $ac_func" >&5
4496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4497   echo $ac_n "(cached) $ac_c" 1>&6
4498 else
4499   cat > conftest.$ac_ext <<EOF
4500 #line 4501 "configure"
4501 #include "confdefs.h"
4502 /* System header to define __stub macros and hopefully few prototypes,
4503     which can conflict with char $ac_func(); below.  */
4504 #include <assert.h>
4505 /* Override any gcc2 internal prototype to avoid an error.  */
4506 /* We use char because int might match the return type of a gcc2
4507     builtin and then its argument prototype would still apply.  */
4508 char $ac_func();
4509
4510 int main() {
4511
4512 /* The GNU C library defines this for functions which it implements
4513     to always fail with ENOSYS.  Some functions are actually named
4514     something starting with __ and the normal name is an alias.  */
4515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4516 choke me
4517 #else
4518 $ac_func();
4519 #endif
4520
4521 ; return 0; }
4522 EOF
4523 if { (eval echo configure:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4524   rm -rf conftest*
4525   eval "ac_cv_func_$ac_func=yes"
4526 else
4527   echo "configure: failed program was:" >&5
4528   cat conftest.$ac_ext >&5
4529   rm -rf conftest*
4530   eval "ac_cv_func_$ac_func=no"
4531 fi
4532 rm -f conftest*
4533 fi
4534
4535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4536   echo "$ac_t""yes" 1>&6
4537     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4538   cat >> confdefs.h <<EOF
4539 #define $ac_tr_func 1
4540 EOF
4541  
4542 else
4543   echo "$ac_t""no" 1>&6
4544 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4545 fi
4546 done
4547
4548
4549   fi
4550
4551   
4552
4553         
4554   
4555
4556   echo $ac_n "checking for GNU C++ __complex__ support""... $ac_c" 1>&6
4557 echo "configure:4558: checking for GNU C++ __complex__ support" >&5
4558   if eval "test \"`echo '$''{'glibcpp_cv_complex'+set}'`\" = set"; then
4559   echo $ac_n "(cached) $ac_c" 1>&6
4560 else
4561   
4562     
4563     ac_ext=C
4564 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4565 ac_cpp='$CXXCPP $CPPFLAGS'
4566 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4567 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4568 cross_compiling=$ac_cv_prog_cxx_cross
4569
4570     cat > conftest.$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4573 struct dcomplex { __complex__ double x; }; \
4574                     dcomplex f(const dcomplex& x) { return dcomplex(x); }
4575 int main() {
4576 \
4577                      dcomplex x; f(x); 
4578 ; return 0; }
4579 EOF
4580 if { (eval echo configure:4581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4581   rm -rf conftest*
4582   glibcpp_cv_complex=ok
4583 else
4584   echo "configure: failed program was:" >&5
4585   cat conftest.$ac_ext >&5
4586   rm -rf conftest*
4587   glibcpp_cv_complex=buggy
4588     
4589 fi
4590 rm -f conftest*
4591     ac_ext=c
4592 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4593 ac_cpp='$CPP $CPPFLAGS'
4594 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4595 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4596 cross_compiling=$ac_cv_prog_cc_cross
4597
4598   
4599 fi
4600
4601   echo "$ac_t""$glibcpp_cv_complex" 1>&6
4602   if test $glibcpp_cv_complex = buggy; then
4603     cat >> confdefs.h <<\EOF
4604 #define _GLIBCPP_BUGGY_COMPLEX 1
4605 EOF
4606
4607   fi
4608
4609   echo $ac_n "checking for GNU C++ __complex__ float support""... $ac_c" 1>&6
4610 echo "configure:4611: checking for GNU C++ __complex__ float support" >&5
4611   if eval "test \"`echo '$''{'glibcpp_cv_float_complex'+set}'`\" = set"; then
4612   echo $ac_n "(cached) $ac_c" 1>&6
4613 else
4614   
4615     
4616     ac_ext=C
4617 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4618 ac_cpp='$CXXCPP $CPPFLAGS'
4619 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4620 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4621 cross_compiling=$ac_cv_prog_cxx_cross
4622
4623     rm -f conftest.h
4624     cat > conftest.h <<EOB
4625       //
4626       // Check for buggy __complex__ that causes ICE in most versions of egcs
4627       // and gcc-2.95.x on certain platforms (eg., x86-win32).
4628       //
4629       // See http://gcc.gnu.org/ml/gcc-bugs/1999-07n/msg00845.html for
4630       // more info on the bug itself.
4631       //
4632       struct
4633       float_complex
4634       {
4635        __complex__ float m_value;
4636        float_complex (float = 0.0f, float = 0.0f);
4637        float_complex (__complex__ float val) : m_value (val) {}
4638        float_complex foo (const float_complex &val)
4639          { return float_complex (~val.m_value); }
4640       };
4641 EOB
4642     cat > conftest.$ac_ext <<EOF
4643 #line 4644 "configure"
4644 #include "confdefs.h"
4645 #include "conftest.h"
4646 int main() {
4647
4648 ; return 0; }
4649 EOF
4650 if { (eval echo configure:4651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4651   rm -rf conftest*
4652   glibcpp_cv_float_complex=ok
4653 else
4654   echo "configure: failed program was:" >&5
4655   cat conftest.$ac_ext >&5
4656   rm -rf conftest*
4657   glibcpp_cv_float_complex=buggy
4658     
4659 fi
4660 rm -f conftest*
4661     ac_ext=c
4662 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4663 ac_cpp='$CPP $CPPFLAGS'
4664 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4665 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4666 cross_compiling=$ac_cv_prog_cc_cross
4667
4668   
4669 fi
4670
4671   echo "$ac_t""$glibcpp_cv_float_complex" 1>&6
4672   if test $glibcpp_cv_float_complex = buggy; then
4673     cat >> confdefs.h <<\EOF
4674 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
4675 EOF
4676
4677   fi
4678
4679         
4680
4681       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4682 echo "configure:4683: checking for mbstate_t" >&5
4683   cat > conftest.$ac_ext <<EOF
4684 #line 4685 "configure"
4685 #include "confdefs.h"
4686 #include <wchar.h>
4687 int main() {
4688 mbstate_t teststate;
4689 ; return 0; }
4690 EOF
4691 if { (eval echo configure:4692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4692   rm -rf conftest*
4693   have_mbstate_t=yes
4694 else
4695   echo "configure: failed program was:" >&5
4696   cat conftest.$ac_ext >&5
4697   rm -rf conftest*
4698   have_mbstate_t=no
4699 fi
4700 rm -f conftest*
4701   echo "$ac_t""$have_mbstate_t" 1>&6
4702   if test x"$have_mbstate_t" = xyes; then
4703     cat >> confdefs.h <<\EOF
4704 #define HAVE_MBSTATE_T 1
4705 EOF
4706
4707   fi
4708
4709     for ac_hdr in wchar.h
4710 do
4711 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4712 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4713 echo "configure:4714: checking for $ac_hdr" >&5
4714 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4715   echo $ac_n "(cached) $ac_c" 1>&6
4716 else
4717   cat > conftest.$ac_ext <<EOF
4718 #line 4719 "configure"
4719 #include "confdefs.h"
4720 #include <$ac_hdr>
4721 EOF
4722 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4723 { (eval echo configure:4724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4724 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4725 if test -z "$ac_err"; then
4726   rm -rf conftest*
4727   eval "ac_cv_header_$ac_safe=yes"
4728 else
4729   echo "$ac_err" >&5
4730   echo "configure: failed program was:" >&5
4731   cat conftest.$ac_ext >&5
4732   rm -rf conftest*
4733   eval "ac_cv_header_$ac_safe=no"
4734 fi
4735 rm -f conftest*
4736 fi
4737 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4738   echo "$ac_t""yes" 1>&6
4739     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4740   cat >> confdefs.h <<EOF
4741 #define $ac_tr_hdr 1
4742 EOF
4743  ac_has_wchar_h=yes
4744 else
4745   echo "$ac_t""no" 1>&6
4746 ac_has_wchar_h=no
4747 fi
4748 done
4749
4750   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4751 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4752 echo "configure:4753: checking for wctype.h" >&5
4753 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4754   echo $ac_n "(cached) $ac_c" 1>&6
4755 else
4756   cat > conftest.$ac_ext <<EOF
4757 #line 4758 "configure"
4758 #include "confdefs.h"
4759 #include <wctype.h>
4760 EOF
4761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4762 { (eval echo configure:4763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4764 if test -z "$ac_err"; then
4765   rm -rf conftest*
4766   eval "ac_cv_header_$ac_safe=yes"
4767 else
4768   echo "$ac_err" >&5
4769   echo "configure: failed program was:" >&5
4770   cat conftest.$ac_ext >&5
4771   rm -rf conftest*
4772   eval "ac_cv_header_$ac_safe=no"
4773 fi
4774 rm -f conftest*
4775 fi
4776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4777   echo "$ac_t""yes" 1>&6
4778   ac_has_wctype_h=yes
4779 else
4780   echo "$ac_t""no" 1>&6
4781 ac_has_wctype_h=no
4782 fi
4783
4784   
4785     if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
4786      && test x"$enable_c_mbchar" != xno; then
4787       
4788             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4789 echo "configure:4790: checking for WCHAR_MIN and WCHAR_MAX" >&5
4790     cat > conftest.$ac_ext <<EOF
4791 #line 4792 "configure"
4792 #include "confdefs.h"
4793 #include <wchar.h>
4794 int main() {
4795 int i = WCHAR_MIN; int j = WCHAR_MAX;
4796 ; return 0; }
4797 EOF
4798 if { (eval echo configure:4799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4799   rm -rf conftest*
4800   has_wchar_minmax=yes
4801 else
4802   echo "configure: failed program was:" >&5
4803   cat conftest.$ac_ext >&5
4804   rm -rf conftest*
4805   has_wchar_minmax=no
4806 fi
4807 rm -f conftest*
4808     echo "$ac_t""$has_wchar_minmax" 1>&6
4809     
4810             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4811 echo "configure:4812: checking for WEOF" >&5
4812     cat > conftest.$ac_ext <<EOF
4813 #line 4814 "configure"
4814 #include "confdefs.h"
4815
4816       #include <wchar.h>
4817       #include <stddef.h>
4818 int main() {
4819 wint_t i = WEOF;
4820 ; return 0; }
4821 EOF
4822 if { (eval echo configure:4823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4823   rm -rf conftest*
4824   has_weof=yes
4825 else
4826   echo "configure: failed program was:" >&5
4827   cat conftest.$ac_ext >&5
4828   rm -rf conftest*
4829   has_weof=no
4830 fi
4831 rm -f conftest*
4832     echo "$ac_t""$has_weof" 1>&6
4833   
4834         for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \
4835     wcsrtombs mbsrtowcs
4836 do
4837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4838 echo "configure:4839: checking for $ac_func" >&5
4839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4840   echo $ac_n "(cached) $ac_c" 1>&6
4841 else
4842   cat > conftest.$ac_ext <<EOF
4843 #line 4844 "configure"
4844 #include "confdefs.h"
4845 /* System header to define __stub macros and hopefully few prototypes,
4846     which can conflict with char $ac_func(); below.  */
4847 #include <assert.h>
4848 /* Override any gcc2 internal prototype to avoid an error.  */
4849 /* We use char because int might match the return type of a gcc2
4850     builtin and then its argument prototype would still apply.  */
4851 char $ac_func();
4852
4853 int main() {
4854
4855 /* The GNU C library defines this for functions which it implements
4856     to always fail with ENOSYS.  Some functions are actually named
4857     something starting with __ and the normal name is an alias.  */
4858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4859 choke me
4860 #else
4861 $ac_func();
4862 #endif
4863
4864 ; return 0; }
4865 EOF
4866 if { (eval echo configure:4867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4867   rm -rf conftest*
4868   eval "ac_cv_func_$ac_func=yes"
4869 else
4870   echo "configure: failed program was:" >&5
4871   cat conftest.$ac_ext >&5
4872   rm -rf conftest*
4873   eval "ac_cv_func_$ac_func=no"
4874 fi
4875 rm -f conftest*
4876 fi
4877
4878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4879   echo "$ac_t""yes" 1>&6
4880     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4881   cat >> confdefs.h <<EOF
4882 #define $ac_tr_func 1
4883 EOF
4884  ac_wfuncs=yes
4885 else
4886   echo "$ac_t""no" 1>&6
4887 ac_wfuncs=no
4888 fi
4889 done
4890
4891   
4892     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4893 echo "configure:4894: checking for ISO C99 wchar_t support" >&5
4894     if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
4895        && test x"$ac_wfuncs" = xyes; then
4896       ac_isoC99_wchar_t=yes
4897     else
4898       ac_isoC99_wchar_t=no
4899     fi
4900     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4901   
4902             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4903 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4904 echo "configure:4905: checking for iconv.h" >&5
4905 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4906   echo $ac_n "(cached) $ac_c" 1>&6
4907 else
4908   cat > conftest.$ac_ext <<EOF
4909 #line 4910 "configure"
4910 #include "confdefs.h"
4911 #include <iconv.h>
4912 EOF
4913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4914 { (eval echo configure:4915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4916 if test -z "$ac_err"; then
4917   rm -rf conftest*
4918   eval "ac_cv_header_$ac_safe=yes"
4919 else
4920   echo "$ac_err" >&5
4921   echo "configure: failed program was:" >&5
4922   cat conftest.$ac_ext >&5
4923   rm -rf conftest*
4924   eval "ac_cv_header_$ac_safe=no"
4925 fi
4926 rm -f conftest*
4927 fi
4928 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4929   echo "$ac_t""yes" 1>&6
4930   ac_has_iconv_h=yes
4931 else
4932   echo "$ac_t""no" 1>&6
4933 ac_has_iconv_h=no
4934 fi
4935
4936     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4937 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4938 echo "configure:4939: checking for langinfo.h" >&5
4939 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4940   echo $ac_n "(cached) $ac_c" 1>&6
4941 else
4942   cat > conftest.$ac_ext <<EOF
4943 #line 4944 "configure"
4944 #include "confdefs.h"
4945 #include <langinfo.h>
4946 EOF
4947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4948 { (eval echo configure:4949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4950 if test -z "$ac_err"; then
4951   rm -rf conftest*
4952   eval "ac_cv_header_$ac_safe=yes"
4953 else
4954   echo "$ac_err" >&5
4955   echo "configure: failed program was:" >&5
4956   cat conftest.$ac_ext >&5
4957   rm -rf conftest*
4958   eval "ac_cv_header_$ac_safe=no"
4959 fi
4960 rm -f conftest*
4961 fi
4962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4963   echo "$ac_t""yes" 1>&6
4964   ac_has_langinfo_h=yes
4965 else
4966   echo "$ac_t""no" 1>&6
4967 ac_has_langinfo_h=no
4968 fi
4969
4970
4971         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4972 echo "configure:4973: checking for iconv in -liconv" >&5
4973 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4974 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4975   echo $ac_n "(cached) $ac_c" 1>&6
4976 else
4977   ac_save_LIBS="$LIBS"
4978 LIBS="-liconv  $LIBS"
4979 cat > conftest.$ac_ext <<EOF
4980 #line 4981 "configure"
4981 #include "confdefs.h"
4982 /* Override any gcc2 internal prototype to avoid an error.  */
4983 /* We use char because int might match the return type of a gcc2
4984     builtin and then its argument prototype would still apply.  */
4985 char iconv();
4986
4987 int main() {
4988 iconv()
4989 ; return 0; }
4990 EOF
4991 if { (eval echo configure:4992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4992   rm -rf conftest*
4993   eval "ac_cv_lib_$ac_lib_var=yes"
4994 else
4995   echo "configure: failed program was:" >&5
4996   cat conftest.$ac_ext >&5
4997   rm -rf conftest*
4998   eval "ac_cv_lib_$ac_lib_var=no"
4999 fi
5000 rm -f conftest*
5001 LIBS="$ac_save_LIBS"
5002
5003 fi
5004 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5005   echo "$ac_t""yes" 1>&6
5006   libiconv="-liconv"
5007 else
5008   echo "$ac_t""no" 1>&6
5009 fi
5010
5011     ac_save_LIBS="$LIBS"
5012     LIBS="$LIBS $libiconv"
5013
5014     for ac_func in iconv_open iconv_close iconv nl_langinfo
5015 do
5016 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5017 echo "configure:5018: checking for $ac_func" >&5
5018 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5019   echo $ac_n "(cached) $ac_c" 1>&6
5020 else
5021   cat > conftest.$ac_ext <<EOF
5022 #line 5023 "configure"
5023 #include "confdefs.h"
5024 /* System header to define __stub macros and hopefully few prototypes,
5025     which can conflict with char $ac_func(); below.  */
5026 #include <assert.h>
5027 /* Override any gcc2 internal prototype to avoid an error.  */
5028 /* We use char because int might match the return type of a gcc2
5029     builtin and then its argument prototype would still apply.  */
5030 char $ac_func();
5031
5032 int main() {
5033
5034 /* The GNU C library defines this for functions which it implements
5035     to always fail with ENOSYS.  Some functions are actually named
5036     something starting with __ and the normal name is an alias.  */
5037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5038 choke me
5039 #else
5040 $ac_func();
5041 #endif
5042
5043 ; return 0; }
5044 EOF
5045 if { (eval echo configure:5046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5046   rm -rf conftest*
5047   eval "ac_cv_func_$ac_func=yes"
5048 else
5049   echo "configure: failed program was:" >&5
5050   cat conftest.$ac_ext >&5
5051   rm -rf conftest*
5052   eval "ac_cv_func_$ac_func=no"
5053 fi
5054 rm -f conftest*
5055 fi
5056
5057 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5058   echo "$ac_t""yes" 1>&6
5059     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5060   cat >> confdefs.h <<EOF
5061 #define $ac_tr_func 1
5062 EOF
5063  \
5064     ac_XPG2funcs=yes
5065 else
5066   echo "$ac_t""no" 1>&6
5067 ac_XPG2funcs=no
5068 fi
5069 done
5070
5071   
5072     LIBS="$ac_save_LIBS"
5073
5074     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5075 echo "configure:5076: checking for XPG2 wchar_t support" >&5
5076     if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
5077        && test x"$ac_XPG2funcs" = xyes; then
5078       ac_XPG2_wchar_t=yes
5079     else
5080       ac_XPG2_wchar_t=no
5081     fi
5082     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5083   
5084             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5085 echo "configure:5086: checking for enabled wchar_t specializations" >&5
5086     if test x"$ac_isoC99_wchar_t" = xyes \
5087        && test x"$ac_XPG2_wchar_t" = xyes; then
5088       cat >> confdefs.h <<\EOF
5089 #define _GLIBCPP_USE_WCHAR_T 1
5090 EOF
5091
5092       echo "$ac_t"""yes"" 1>&6
5093     else
5094       echo "$ac_t"""no"" 1>&6
5095     fi
5096   else
5097         echo "configure: warning: wchar_t support disabled." 1>&2
5098   fi
5099
5100         os_include_dir="config/os/gnu-linux"
5101         # GLIBCPP_CHECK_STDLIB_SUPPORT
5102         cat >> confdefs.h <<\EOF
5103 #define HAVE_STRTOF 1
5104 EOF
5105         
5106         cat >> confdefs.h <<\EOF
5107 #define HAVE_STRTOLD 1
5108 EOF
5109         
5110         # AC_FUNC_MMAP
5111         cat >> confdefs.h <<\EOF
5112 #define HAVE_MMAP 1
5113 EOF
5114
5115         ;;
5116     *)
5117         # We assume newlib.  This lets us hard-code the functions we know
5118         # we'll have.
5119         cat >> confdefs.h <<\EOF
5120 #define HAVE_FINITE 1
5121 EOF
5122
5123         cat >> confdefs.h <<\EOF
5124 #define HAVE_ISNAN 1
5125 EOF
5126
5127         cat >> confdefs.h <<\EOF
5128 #define HAVE_ISNANF 1
5129 EOF
5130
5131         cat >> confdefs.h <<\EOF
5132 #define HAVE_ISINF 1
5133 EOF
5134
5135         cat >> confdefs.h <<\EOF
5136 #define HAVE_ISINFF 1
5137 EOF
5138
5139
5140         os_include_dir="config/os/newlib"
5141
5142         cat >> confdefs.h <<\EOF
5143 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
5144 EOF
5145
5146         cat >> confdefs.h <<\EOF
5147 #define _GLIBCPP_BUGGY_COMPLEX 1
5148 EOF
5149
5150         # need to check for faster f versions of math functions, ie sinf?
5151         ;;
5152   esac
5153 else
5154
5155   # We are being configured natively. We can do more elaborate tests
5156   # that include AC_TRY_COMPILE now, as the linker is assumed to be
5157   # working.
5158   xcompiling=0
5159   NATIVE=yes
5160   CANADIAN=no
5161   NULL_TARGET=no
5162
5163   # Check for available headers.
5164   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
5165   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
5166 do
5167 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5168 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5169 echo "configure:5170: checking for $ac_hdr" >&5
5170 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5171   echo $ac_n "(cached) $ac_c" 1>&6
5172 else
5173   cat > conftest.$ac_ext <<EOF
5174 #line 5175 "configure"
5175 #include "confdefs.h"
5176 #include <$ac_hdr>
5177 EOF
5178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5179 { (eval echo configure:5180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5181 if test -z "$ac_err"; then
5182   rm -rf conftest*
5183   eval "ac_cv_header_$ac_safe=yes"
5184 else
5185   echo "$ac_err" >&5
5186   echo "configure: failed program was:" >&5
5187   cat conftest.$ac_ext >&5
5188   rm -rf conftest*
5189   eval "ac_cv_header_$ac_safe=no"
5190 fi
5191 rm -f conftest*
5192 fi
5193 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5194   echo "$ac_t""yes" 1>&6
5195     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5196   cat >> confdefs.h <<EOF
5197 #define $ac_tr_hdr 1
5198 EOF
5199  
5200 else
5201   echo "$ac_t""no" 1>&6
5202 fi
5203 done
5204
5205
5206   
5207   # All these tests are for C++; save the language and the compiler flags.
5208   # The CXXFLAGS thing is suspicious, but based on similar bits 
5209   # found in GLIBCPP_CONFIGURE.
5210   
5211   ac_ext=C
5212 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5213 ac_cpp='$CXXCPP $CPPFLAGS'
5214 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5215 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5216 cross_compiling=$ac_cv_prog_cxx_cross
5217
5218   ac_test_CXXFLAGS="${CXXFLAGS+set}"
5219   ac_save_CXXFLAGS="$CXXFLAGS"
5220
5221   # Check for maintainer-mode bits.
5222   if test x"$USE_MAINTAINER_MODE" = xno; then
5223     WERROR=''
5224   else
5225     WERROR='-Werror'
5226   fi
5227
5228   # Check for -ffunction-sections -fdata-sections
5229   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
5230 echo "configure:5231: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
5231   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
5232   cat > conftest.$ac_ext <<EOF
5233 #line 5234 "configure"
5234 #include "confdefs.h"
5235
5236 int main() {
5237 int foo;
5238   
5239 ; return 0; }
5240 EOF
5241 if { (eval echo configure:5242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5242   rm -rf conftest*
5243   ac_fdsections=yes
5244 else
5245   echo "configure: failed program was:" >&5
5246   cat conftest.$ac_ext >&5
5247   rm -rf conftest*
5248   ac_fdsections=no
5249 fi
5250 rm -f conftest*
5251   if test "$ac_test_CXXFLAGS" = set; then
5252     CXXFLAGS="$ac_save_CXXFLAGS"
5253   else
5254     # this is the suspicious part
5255     CXXFLAGS=''
5256   fi
5257   if test x"$ac_fdsections" = x"yes" && test x"$enable_debug" = x"no"; then
5258     SECTION_FLAGS='-ffunction-sections -fdata-sections'
5259   fi
5260   echo "$ac_t""$ac_fdsections" 1>&6
5261
5262   ac_ext=c
5263 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5264 ac_cpp='$CPP $CPPFLAGS'
5265 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5266 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5267 cross_compiling=$ac_cv_prog_cc_cross
5268
5269   
5270   
5271
5272   
5273   # If we're not using GNU ld, then there's no point in even trying these
5274   # tests.  Check for that first.  We should have already tested for gld
5275   # by now (in libtool), but require it now just to be safe...
5276   SECTION_LDFLAGS=''
5277   OPT_LDFLAGS=''
5278   
5279
5280   # Set --gc-sections.
5281   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
5282     # GNU ld it is!  Joy and bunny rabbits!
5283
5284     # All these tests are for C++; save the language and the compiler flags.
5285     # Need to do this so that g++ won't try to link in libstdc++
5286     ac_test_CFLAGS="${CFLAGS+set}"
5287     ac_save_CFLAGS="$CFLAGS"
5288     CFLAGS='-x c++  -Wl,--gc-sections'
5289
5290     # Check for -Wl,--gc-sections
5291     # XXX This test is broken at the moment, as symbols required for
5292     # linking are now in libsupc++ (not built yet.....). In addition, 
5293     # this test has cored on solaris in the past. In addition,
5294     # --gc-sections doesn't really work at the moment (keeps on discarding
5295     # used sections, first .eh_frame and now some of the glibc sections for
5296     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5297     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5298 echo "configure:5299: checking for ld that supports -Wl,--gc-sections" >&5
5299     if test "$cross_compiling" = yes; then
5300   ac_sectionLDflags=yes
5301 else
5302   cat > conftest.$ac_ext <<EOF
5303 #line 5304 "configure"
5304 #include "confdefs.h"
5305
5306      int main(void) 
5307      {
5308        try { throw 1; }
5309        catch (...) { };
5310        return 0;
5311      }
5312     
5313 EOF
5314 if { (eval echo configure:5315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5315 then
5316   ac_sectionLDflags=yes
5317 else
5318   echo "configure: failed program was:" >&5
5319   cat conftest.$ac_ext >&5
5320   rm -fr conftest*
5321   ac_sectionLFflags=no
5322 fi
5323 rm -fr conftest*
5324 fi
5325
5326     if test "$ac_test_CFLAGS" = set; then
5327       CFLAGS="$ac_save_CFLAGS"
5328     else
5329       # this is the suspicious part
5330       CFLAGS=''
5331     fi
5332     if test "$ac_sectionLDflags" = "yes"; then
5333       SECTION_LDFLAGS='-Wl,--gc-sections'
5334     fi
5335     echo "$ac_t""$ac_sectionLDflags" 1>&6
5336   fi
5337
5338   # Set linker optimization flags.
5339   if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5340     OPT_LDFLAGS='-Wl,-O1'
5341   fi
5342
5343   
5344   
5345
5346   
5347       
5348   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
5349 echo "configure:5350: checking for __builtin_abs declaration" >&5
5350   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
5351     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
5352   echo $ac_n "(cached) $ac_c" 1>&6
5353 else
5354   
5355       
5356       ac_ext=C
5357 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5358 ac_cpp='$CXXCPP $CPPFLAGS'
5359 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5360 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5361 cross_compiling=$ac_cv_prog_cxx_cross
5362
5363       cat > conftest.$ac_ext <<EOF
5364 #line 5365 "configure"
5365 #include "confdefs.h"
5366 #include <math.h>
5367 int main() {
5368  __builtin_abs(0);
5369 ; return 0; }
5370 EOF
5371 if { (eval echo configure:5372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5372   rm -rf conftest*
5373   glibcpp_cv_func___builtin_abs_use=yes
5374 else
5375   echo "configure: failed program was:" >&5
5376   cat conftest.$ac_ext >&5
5377   rm -rf conftest*
5378   glibcpp_cv_func___builtin_abs_use=no
5379 fi
5380 rm -f conftest*
5381       ac_ext=c
5382 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5383 ac_cpp='$CPP $CPPFLAGS'
5384 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5385 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5386 cross_compiling=$ac_cv_prog_cc_cross
5387
5388     
5389 fi
5390
5391   fi
5392   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
5393   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
5394     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
5395 echo "configure:5396: checking for __builtin_abs linkage" >&5
5396     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
5397       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
5398   echo $ac_n "(cached) $ac_c" 1>&6
5399 else
5400   
5401         cat > conftest.$ac_ext <<EOF
5402 #line 5403 "configure"
5403 #include "confdefs.h"
5404 #include <math.h>
5405 int main() {
5406  __builtin_abs(0);
5407 ; return 0; }
5408 EOF
5409 if { (eval echo configure:5410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5410   rm -rf conftest*
5411   glibcpp_cv_func___builtin_abs_link=yes
5412 else
5413   echo "configure: failed program was:" >&5
5414   cat conftest.$ac_ext >&5
5415   rm -rf conftest*
5416   glibcpp_cv_func___builtin_abs_link=no
5417 fi
5418 rm -f conftest*
5419       
5420 fi
5421
5422     fi
5423     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
5424     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
5425       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5426       cat >> confdefs.h <<EOF
5427 #define ${ac_tr_func} 1
5428 EOF
5429
5430     fi
5431   fi
5432
5433   
5434   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
5435 echo "configure:5436: checking for __builtin_fabsf declaration" >&5
5436   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
5437     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
5438   echo $ac_n "(cached) $ac_c" 1>&6
5439 else
5440   
5441       
5442       ac_ext=C
5443 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5444 ac_cpp='$CXXCPP $CPPFLAGS'
5445 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5446 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5447 cross_compiling=$ac_cv_prog_cxx_cross
5448
5449       cat > conftest.$ac_ext <<EOF
5450 #line 5451 "configure"
5451 #include "confdefs.h"
5452 #include <math.h>
5453 int main() {
5454  __builtin_fabsf(0);
5455 ; return 0; }
5456 EOF
5457 if { (eval echo configure:5458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5458   rm -rf conftest*
5459   glibcpp_cv_func___builtin_fabsf_use=yes
5460 else
5461   echo "configure: failed program was:" >&5
5462   cat conftest.$ac_ext >&5
5463   rm -rf conftest*
5464   glibcpp_cv_func___builtin_fabsf_use=no
5465 fi
5466 rm -f conftest*
5467       ac_ext=c
5468 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5469 ac_cpp='$CPP $CPPFLAGS'
5470 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5471 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5472 cross_compiling=$ac_cv_prog_cc_cross
5473
5474     
5475 fi
5476
5477   fi
5478   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
5479   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
5480     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
5481 echo "configure:5482: checking for __builtin_fabsf linkage" >&5
5482     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
5483       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
5484   echo $ac_n "(cached) $ac_c" 1>&6
5485 else
5486   
5487         cat > conftest.$ac_ext <<EOF
5488 #line 5489 "configure"
5489 #include "confdefs.h"
5490 #include <math.h>
5491 int main() {
5492  __builtin_fabsf(0);
5493 ; return 0; }
5494 EOF
5495 if { (eval echo configure:5496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5496   rm -rf conftest*
5497   glibcpp_cv_func___builtin_fabsf_link=yes
5498 else
5499   echo "configure: failed program was:" >&5
5500   cat conftest.$ac_ext >&5
5501   rm -rf conftest*
5502   glibcpp_cv_func___builtin_fabsf_link=no
5503 fi
5504 rm -f conftest*
5505       
5506 fi
5507
5508     fi
5509     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
5510     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
5511       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5512       cat >> confdefs.h <<EOF
5513 #define ${ac_tr_func} 1
5514 EOF
5515
5516     fi
5517   fi
5518
5519   
5520   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
5521 echo "configure:5522: checking for __builtin_fabs declaration" >&5
5522   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
5523     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
5524   echo $ac_n "(cached) $ac_c" 1>&6
5525 else
5526   
5527       
5528       ac_ext=C
5529 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5530 ac_cpp='$CXXCPP $CPPFLAGS'
5531 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5532 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5533 cross_compiling=$ac_cv_prog_cxx_cross
5534
5535       cat > conftest.$ac_ext <<EOF
5536 #line 5537 "configure"
5537 #include "confdefs.h"
5538 #include <math.h>
5539 int main() {
5540  __builtin_fabs(0);
5541 ; return 0; }
5542 EOF
5543 if { (eval echo configure:5544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5544   rm -rf conftest*
5545   glibcpp_cv_func___builtin_fabs_use=yes
5546 else
5547   echo "configure: failed program was:" >&5
5548   cat conftest.$ac_ext >&5
5549   rm -rf conftest*
5550   glibcpp_cv_func___builtin_fabs_use=no
5551 fi
5552 rm -f conftest*
5553       ac_ext=c
5554 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5555 ac_cpp='$CPP $CPPFLAGS'
5556 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5557 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5558 cross_compiling=$ac_cv_prog_cc_cross
5559
5560     
5561 fi
5562
5563   fi
5564   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
5565   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
5566     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
5567 echo "configure:5568: checking for __builtin_fabs linkage" >&5
5568     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
5569       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
5570   echo $ac_n "(cached) $ac_c" 1>&6
5571 else
5572   
5573         cat > conftest.$ac_ext <<EOF
5574 #line 5575 "configure"
5575 #include "confdefs.h"
5576 #include <math.h>
5577 int main() {
5578  __builtin_fabs(0);
5579 ; return 0; }
5580 EOF
5581 if { (eval echo configure:5582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5582   rm -rf conftest*
5583   glibcpp_cv_func___builtin_fabs_link=yes
5584 else
5585   echo "configure: failed program was:" >&5
5586   cat conftest.$ac_ext >&5
5587   rm -rf conftest*
5588   glibcpp_cv_func___builtin_fabs_link=no
5589 fi
5590 rm -f conftest*
5591       
5592 fi
5593
5594     fi
5595     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
5596     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
5597       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5598       cat >> confdefs.h <<EOF
5599 #define ${ac_tr_func} 1
5600 EOF
5601
5602     fi
5603   fi
5604
5605   
5606   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
5607 echo "configure:5608: checking for __builtin_fabsl declaration" >&5
5608   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
5609     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
5610   echo $ac_n "(cached) $ac_c" 1>&6
5611 else
5612   
5613       
5614       ac_ext=C
5615 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5616 ac_cpp='$CXXCPP $CPPFLAGS'
5617 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5618 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5619 cross_compiling=$ac_cv_prog_cxx_cross
5620
5621       cat > conftest.$ac_ext <<EOF
5622 #line 5623 "configure"
5623 #include "confdefs.h"
5624 #include <math.h>
5625 int main() {
5626  __builtin_fabsl(0);
5627 ; return 0; }
5628 EOF
5629 if { (eval echo configure:5630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5630   rm -rf conftest*
5631   glibcpp_cv_func___builtin_fabsl_use=yes
5632 else
5633   echo "configure: failed program was:" >&5
5634   cat conftest.$ac_ext >&5
5635   rm -rf conftest*
5636   glibcpp_cv_func___builtin_fabsl_use=no
5637 fi
5638 rm -f conftest*
5639       ac_ext=c
5640 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5641 ac_cpp='$CPP $CPPFLAGS'
5642 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5643 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5644 cross_compiling=$ac_cv_prog_cc_cross
5645
5646     
5647 fi
5648
5649   fi
5650   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
5651   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
5652     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
5653 echo "configure:5654: checking for __builtin_fabsl linkage" >&5
5654     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
5655       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
5656   echo $ac_n "(cached) $ac_c" 1>&6
5657 else
5658   
5659         cat > conftest.$ac_ext <<EOF
5660 #line 5661 "configure"
5661 #include "confdefs.h"
5662 #include <math.h>
5663 int main() {
5664  __builtin_fabsl(0);
5665 ; return 0; }
5666 EOF
5667 if { (eval echo configure:5668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5668   rm -rf conftest*
5669   glibcpp_cv_func___builtin_fabsl_link=yes
5670 else
5671   echo "configure: failed program was:" >&5
5672   cat conftest.$ac_ext >&5
5673   rm -rf conftest*
5674   glibcpp_cv_func___builtin_fabsl_link=no
5675 fi
5676 rm -f conftest*
5677       
5678 fi
5679
5680     fi
5681     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
5682     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
5683       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5684       cat >> confdefs.h <<EOF
5685 #define ${ac_tr_func} 1
5686 EOF
5687
5688     fi
5689   fi
5690
5691   
5692   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
5693 echo "configure:5694: checking for __builtin_labs declaration" >&5
5694   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
5695     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
5696   echo $ac_n "(cached) $ac_c" 1>&6
5697 else
5698   
5699       
5700       ac_ext=C
5701 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5702 ac_cpp='$CXXCPP $CPPFLAGS'
5703 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5704 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5705 cross_compiling=$ac_cv_prog_cxx_cross
5706
5707       cat > conftest.$ac_ext <<EOF
5708 #line 5709 "configure"
5709 #include "confdefs.h"
5710 #include <math.h>
5711 int main() {
5712  __builtin_labs(0);
5713 ; return 0; }
5714 EOF
5715 if { (eval echo configure:5716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5716   rm -rf conftest*
5717   glibcpp_cv_func___builtin_labs_use=yes
5718 else
5719   echo "configure: failed program was:" >&5
5720   cat conftest.$ac_ext >&5
5721   rm -rf conftest*
5722   glibcpp_cv_func___builtin_labs_use=no
5723 fi
5724 rm -f conftest*
5725       ac_ext=c
5726 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5727 ac_cpp='$CPP $CPPFLAGS'
5728 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5729 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5730 cross_compiling=$ac_cv_prog_cc_cross
5731
5732     
5733 fi
5734
5735   fi
5736   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
5737   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
5738     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
5739 echo "configure:5740: checking for __builtin_labs linkage" >&5
5740     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
5741       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
5742   echo $ac_n "(cached) $ac_c" 1>&6
5743 else
5744   
5745         cat > conftest.$ac_ext <<EOF
5746 #line 5747 "configure"
5747 #include "confdefs.h"
5748 #include <math.h>
5749 int main() {
5750  __builtin_labs(0);
5751 ; return 0; }
5752 EOF
5753 if { (eval echo configure:5754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5754   rm -rf conftest*
5755   glibcpp_cv_func___builtin_labs_link=yes
5756 else
5757   echo "configure: failed program was:" >&5
5758   cat conftest.$ac_ext >&5
5759   rm -rf conftest*
5760   glibcpp_cv_func___builtin_labs_link=no
5761 fi
5762 rm -f conftest*
5763       
5764 fi
5765
5766     fi
5767     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5768     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5769       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5770       cat >> confdefs.h <<EOF
5771 #define ${ac_tr_func} 1
5772 EOF
5773
5774     fi
5775   fi
5776
5777
5778   
5779   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5780 echo "configure:5781: checking for __builtin_sqrtf declaration" >&5
5781   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5782     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
5783   echo $ac_n "(cached) $ac_c" 1>&6
5784 else
5785   
5786       
5787       ac_ext=C
5788 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5789 ac_cpp='$CXXCPP $CPPFLAGS'
5790 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5791 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5792 cross_compiling=$ac_cv_prog_cxx_cross
5793
5794       cat > conftest.$ac_ext <<EOF
5795 #line 5796 "configure"
5796 #include "confdefs.h"
5797 #include <math.h>
5798 int main() {
5799  __builtin_sqrtf(0);
5800 ; return 0; }
5801 EOF
5802 if { (eval echo configure:5803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5803   rm -rf conftest*
5804   glibcpp_cv_func___builtin_sqrtf_use=yes
5805 else
5806   echo "configure: failed program was:" >&5
5807   cat conftest.$ac_ext >&5
5808   rm -rf conftest*
5809   glibcpp_cv_func___builtin_sqrtf_use=no
5810 fi
5811 rm -f conftest*
5812       ac_ext=c
5813 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5814 ac_cpp='$CPP $CPPFLAGS'
5815 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5816 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5817 cross_compiling=$ac_cv_prog_cc_cross
5818
5819     
5820 fi
5821
5822   fi
5823   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
5824   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5825     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5826 echo "configure:5827: checking for __builtin_sqrtf linkage" >&5
5827     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5828       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
5829   echo $ac_n "(cached) $ac_c" 1>&6
5830 else
5831   
5832         cat > conftest.$ac_ext <<EOF
5833 #line 5834 "configure"
5834 #include "confdefs.h"
5835 #include <math.h>
5836 int main() {
5837  __builtin_sqrtf(0);
5838 ; return 0; }
5839 EOF
5840 if { (eval echo configure:5841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5841   rm -rf conftest*
5842   glibcpp_cv_func___builtin_sqrtf_link=yes
5843 else
5844   echo "configure: failed program was:" >&5
5845   cat conftest.$ac_ext >&5
5846   rm -rf conftest*
5847   glibcpp_cv_func___builtin_sqrtf_link=no
5848 fi
5849 rm -f conftest*
5850       
5851 fi
5852
5853     fi
5854     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5855     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5856       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5857       cat >> confdefs.h <<EOF
5858 #define ${ac_tr_func} 1
5859 EOF
5860
5861     fi
5862   fi
5863
5864   
5865   echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5866 echo "configure:5867: checking for __builtin_fsqrt declaration" >&5
5867   if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5868     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
5869   echo $ac_n "(cached) $ac_c" 1>&6
5870 else
5871   
5872       
5873       ac_ext=C
5874 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5875 ac_cpp='$CXXCPP $CPPFLAGS'
5876 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5877 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5878 cross_compiling=$ac_cv_prog_cxx_cross
5879
5880       cat > conftest.$ac_ext <<EOF
5881 #line 5882 "configure"
5882 #include "confdefs.h"
5883 #include <math.h>
5884 int main() {
5885  __builtin_fsqrt(0);
5886 ; return 0; }
5887 EOF
5888 if { (eval echo configure:5889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5889   rm -rf conftest*
5890   glibcpp_cv_func___builtin_fsqrt_use=yes
5891 else
5892   echo "configure: failed program was:" >&5
5893   cat conftest.$ac_ext >&5
5894   rm -rf conftest*
5895   glibcpp_cv_func___builtin_fsqrt_use=no
5896 fi
5897 rm -f conftest*
5898       ac_ext=c
5899 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5900 ac_cpp='$CPP $CPPFLAGS'
5901 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5902 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5903 cross_compiling=$ac_cv_prog_cc_cross
5904
5905     
5906 fi
5907
5908   fi
5909   echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
5910   if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5911     echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5912 echo "configure:5913: checking for __builtin_fsqrt linkage" >&5
5913     if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5914       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
5915   echo $ac_n "(cached) $ac_c" 1>&6
5916 else
5917   
5918         cat > conftest.$ac_ext <<EOF
5919 #line 5920 "configure"
5920 #include "confdefs.h"
5921 #include <math.h>
5922 int main() {
5923  __builtin_fsqrt(0);
5924 ; return 0; }
5925 EOF
5926 if { (eval echo configure:5927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5927   rm -rf conftest*
5928   glibcpp_cv_func___builtin_fsqrt_link=yes
5929 else
5930   echo "configure: failed program was:" >&5
5931   cat conftest.$ac_ext >&5
5932   rm -rf conftest*
5933   glibcpp_cv_func___builtin_fsqrt_link=no
5934 fi
5935 rm -f conftest*
5936       
5937 fi
5938
5939     fi
5940     echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5941     if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5942       ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5943       cat >> confdefs.h <<EOF
5944 #define ${ac_tr_func} 1
5945 EOF
5946
5947     fi
5948   fi
5949
5950   
5951   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5952 echo "configure:5953: checking for __builtin_sqrtl declaration" >&5
5953   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5954     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5955   echo $ac_n "(cached) $ac_c" 1>&6
5956 else
5957   
5958       
5959       ac_ext=C
5960 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5961 ac_cpp='$CXXCPP $CPPFLAGS'
5962 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5963 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5964 cross_compiling=$ac_cv_prog_cxx_cross
5965
5966       cat > conftest.$ac_ext <<EOF
5967 #line 5968 "configure"
5968 #include "confdefs.h"
5969 #include <math.h>
5970 int main() {
5971  __builtin_sqrtl(0);
5972 ; return 0; }
5973 EOF
5974 if { (eval echo configure:5975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5975   rm -rf conftest*
5976   glibcpp_cv_func___builtin_sqrtl_use=yes
5977 else
5978   echo "configure: failed program was:" >&5
5979   cat conftest.$ac_ext >&5
5980   rm -rf conftest*
5981   glibcpp_cv_func___builtin_sqrtl_use=no
5982 fi
5983 rm -f conftest*
5984       ac_ext=c
5985 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5986 ac_cpp='$CPP $CPPFLAGS'
5987 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5988 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5989 cross_compiling=$ac_cv_prog_cc_cross
5990
5991     
5992 fi
5993
5994   fi
5995   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
5996   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5997     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5998 echo "configure:5999: checking for __builtin_sqrtl linkage" >&5
5999     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
6000       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
6001   echo $ac_n "(cached) $ac_c" 1>&6
6002 else
6003   
6004         cat > conftest.$ac_ext <<EOF
6005 #line 6006 "configure"
6006 #include "confdefs.h"
6007 #include <math.h>
6008 int main() {
6009  __builtin_sqrtl(0);
6010 ; return 0; }
6011 EOF
6012 if { (eval echo configure:6013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6013   rm -rf conftest*
6014   glibcpp_cv_func___builtin_sqrtl_link=yes
6015 else
6016   echo "configure: failed program was:" >&5
6017   cat conftest.$ac_ext >&5
6018   rm -rf conftest*
6019   glibcpp_cv_func___builtin_sqrtl_link=no
6020 fi
6021 rm -f conftest*
6022       
6023 fi
6024
6025     fi
6026     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
6027     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
6028       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6029       cat >> confdefs.h <<EOF
6030 #define ${ac_tr_func} 1
6031 EOF
6032
6033     fi
6034   fi
6035
6036
6037   
6038   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
6039 echo "configure:6040: checking for __builtin_sinf declaration" >&5
6040   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
6041     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
6042   echo $ac_n "(cached) $ac_c" 1>&6
6043 else
6044   
6045       
6046       ac_ext=C
6047 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6048 ac_cpp='$CXXCPP $CPPFLAGS'
6049 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6050 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6051 cross_compiling=$ac_cv_prog_cxx_cross
6052
6053       cat > conftest.$ac_ext <<EOF
6054 #line 6055 "configure"
6055 #include "confdefs.h"
6056 #include <math.h>
6057 int main() {
6058  __builtin_sinf(0);
6059 ; return 0; }
6060 EOF
6061 if { (eval echo configure:6062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6062   rm -rf conftest*
6063   glibcpp_cv_func___builtin_sinf_use=yes
6064 else
6065   echo "configure: failed program was:" >&5
6066   cat conftest.$ac_ext >&5
6067   rm -rf conftest*
6068   glibcpp_cv_func___builtin_sinf_use=no
6069 fi
6070 rm -f conftest*
6071       ac_ext=c
6072 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6073 ac_cpp='$CPP $CPPFLAGS'
6074 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6075 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6076 cross_compiling=$ac_cv_prog_cc_cross
6077
6078     
6079 fi
6080
6081   fi
6082   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
6083   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
6084     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
6085 echo "configure:6086: checking for __builtin_sinf linkage" >&5
6086     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
6087       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
6088   echo $ac_n "(cached) $ac_c" 1>&6
6089 else
6090   
6091         cat > conftest.$ac_ext <<EOF
6092 #line 6093 "configure"
6093 #include "confdefs.h"
6094 #include <math.h>
6095 int main() {
6096  __builtin_sinf(0);
6097 ; return 0; }
6098 EOF
6099 if { (eval echo configure:6100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6100   rm -rf conftest*
6101   glibcpp_cv_func___builtin_sinf_link=yes
6102 else
6103   echo "configure: failed program was:" >&5
6104   cat conftest.$ac_ext >&5
6105   rm -rf conftest*
6106   glibcpp_cv_func___builtin_sinf_link=no
6107 fi
6108 rm -f conftest*
6109       
6110 fi
6111
6112     fi
6113     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
6114     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
6115       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6116       cat >> confdefs.h <<EOF
6117 #define ${ac_tr_func} 1
6118 EOF
6119
6120     fi
6121   fi
6122
6123   
6124   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
6125 echo "configure:6126: checking for __builtin_sin declaration" >&5
6126   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
6127     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
6128   echo $ac_n "(cached) $ac_c" 1>&6
6129 else
6130   
6131       
6132       ac_ext=C
6133 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6134 ac_cpp='$CXXCPP $CPPFLAGS'
6135 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6136 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6137 cross_compiling=$ac_cv_prog_cxx_cross
6138
6139       cat > conftest.$ac_ext <<EOF
6140 #line 6141 "configure"
6141 #include "confdefs.h"
6142 #include <math.h>
6143 int main() {
6144  __builtin_sin(0);
6145 ; return 0; }
6146 EOF
6147 if { (eval echo configure:6148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6148   rm -rf conftest*
6149   glibcpp_cv_func___builtin_sin_use=yes
6150 else
6151   echo "configure: failed program was:" >&5
6152   cat conftest.$ac_ext >&5
6153   rm -rf conftest*
6154   glibcpp_cv_func___builtin_sin_use=no
6155 fi
6156 rm -f conftest*
6157       ac_ext=c
6158 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6159 ac_cpp='$CPP $CPPFLAGS'
6160 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6161 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6162 cross_compiling=$ac_cv_prog_cc_cross
6163
6164     
6165 fi
6166
6167   fi
6168   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
6169   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
6170     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
6171 echo "configure:6172: checking for __builtin_sin linkage" >&5
6172     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
6173       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
6174   echo $ac_n "(cached) $ac_c" 1>&6
6175 else
6176   
6177         cat > conftest.$ac_ext <<EOF
6178 #line 6179 "configure"
6179 #include "confdefs.h"
6180 #include <math.h>
6181 int main() {
6182  __builtin_sin(0);
6183 ; return 0; }
6184 EOF
6185 if { (eval echo configure:6186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6186   rm -rf conftest*
6187   glibcpp_cv_func___builtin_sin_link=yes
6188 else
6189   echo "configure: failed program was:" >&5
6190   cat conftest.$ac_ext >&5
6191   rm -rf conftest*
6192   glibcpp_cv_func___builtin_sin_link=no
6193 fi
6194 rm -f conftest*
6195       
6196 fi
6197
6198     fi
6199     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
6200     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
6201       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6202       cat >> confdefs.h <<EOF
6203 #define ${ac_tr_func} 1
6204 EOF
6205
6206     fi
6207   fi
6208
6209   
6210   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
6211 echo "configure:6212: checking for __builtin_sinl declaration" >&5
6212   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
6213     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
6214   echo $ac_n "(cached) $ac_c" 1>&6
6215 else
6216   
6217       
6218       ac_ext=C
6219 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6220 ac_cpp='$CXXCPP $CPPFLAGS'
6221 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6222 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6223 cross_compiling=$ac_cv_prog_cxx_cross
6224
6225       cat > conftest.$ac_ext <<EOF
6226 #line 6227 "configure"
6227 #include "confdefs.h"
6228 #include <math.h>
6229 int main() {
6230  __builtin_sinl(0);
6231 ; return 0; }
6232 EOF
6233 if { (eval echo configure:6234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6234   rm -rf conftest*
6235   glibcpp_cv_func___builtin_sinl_use=yes
6236 else
6237   echo "configure: failed program was:" >&5
6238   cat conftest.$ac_ext >&5
6239   rm -rf conftest*
6240   glibcpp_cv_func___builtin_sinl_use=no
6241 fi
6242 rm -f conftest*
6243       ac_ext=c
6244 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6245 ac_cpp='$CPP $CPPFLAGS'
6246 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6247 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6248 cross_compiling=$ac_cv_prog_cc_cross
6249
6250     
6251 fi
6252
6253   fi
6254   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
6255   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
6256     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
6257 echo "configure:6258: checking for __builtin_sinl linkage" >&5
6258     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
6259       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
6260   echo $ac_n "(cached) $ac_c" 1>&6
6261 else
6262   
6263         cat > conftest.$ac_ext <<EOF
6264 #line 6265 "configure"
6265 #include "confdefs.h"
6266 #include <math.h>
6267 int main() {
6268  __builtin_sinl(0);
6269 ; return 0; }
6270 EOF
6271 if { (eval echo configure:6272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6272   rm -rf conftest*
6273   glibcpp_cv_func___builtin_sinl_link=yes
6274 else
6275   echo "configure: failed program was:" >&5
6276   cat conftest.$ac_ext >&5
6277   rm -rf conftest*
6278   glibcpp_cv_func___builtin_sinl_link=no
6279 fi
6280 rm -f conftest*
6281       
6282 fi
6283
6284     fi
6285     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
6286     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
6287       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6288       cat >> confdefs.h <<EOF
6289 #define ${ac_tr_func} 1
6290 EOF
6291
6292     fi
6293   fi
6294
6295
6296   
6297   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
6298 echo "configure:6299: checking for __builtin_cosf declaration" >&5
6299   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
6300     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
6301   echo $ac_n "(cached) $ac_c" 1>&6
6302 else
6303   
6304       
6305       ac_ext=C
6306 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6307 ac_cpp='$CXXCPP $CPPFLAGS'
6308 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6309 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6310 cross_compiling=$ac_cv_prog_cxx_cross
6311
6312       cat > conftest.$ac_ext <<EOF
6313 #line 6314 "configure"
6314 #include "confdefs.h"
6315 #include <math.h>
6316 int main() {
6317  __builtin_cosf(0);
6318 ; return 0; }
6319 EOF
6320 if { (eval echo configure:6321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6321   rm -rf conftest*
6322   glibcpp_cv_func___builtin_cosf_use=yes
6323 else
6324   echo "configure: failed program was:" >&5
6325   cat conftest.$ac_ext >&5
6326   rm -rf conftest*
6327   glibcpp_cv_func___builtin_cosf_use=no
6328 fi
6329 rm -f conftest*
6330       ac_ext=c
6331 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6332 ac_cpp='$CPP $CPPFLAGS'
6333 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6334 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6335 cross_compiling=$ac_cv_prog_cc_cross
6336
6337     
6338 fi
6339
6340   fi
6341   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
6342   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
6343     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
6344 echo "configure:6345: checking for __builtin_cosf linkage" >&5
6345     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
6346       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
6347   echo $ac_n "(cached) $ac_c" 1>&6
6348 else
6349   
6350         cat > conftest.$ac_ext <<EOF
6351 #line 6352 "configure"
6352 #include "confdefs.h"
6353 #include <math.h>
6354 int main() {
6355  __builtin_cosf(0);
6356 ; return 0; }
6357 EOF
6358 if { (eval echo configure:6359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6359   rm -rf conftest*
6360   glibcpp_cv_func___builtin_cosf_link=yes
6361 else
6362   echo "configure: failed program was:" >&5
6363   cat conftest.$ac_ext >&5
6364   rm -rf conftest*
6365   glibcpp_cv_func___builtin_cosf_link=no
6366 fi
6367 rm -f conftest*
6368       
6369 fi
6370
6371     fi
6372     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
6373     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
6374       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6375       cat >> confdefs.h <<EOF
6376 #define ${ac_tr_func} 1
6377 EOF
6378
6379     fi
6380   fi
6381
6382   
6383   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
6384 echo "configure:6385: checking for __builtin_cos declaration" >&5
6385   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
6386     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
6387   echo $ac_n "(cached) $ac_c" 1>&6
6388 else
6389   
6390       
6391       ac_ext=C
6392 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6393 ac_cpp='$CXXCPP $CPPFLAGS'
6394 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6395 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6396 cross_compiling=$ac_cv_prog_cxx_cross
6397
6398       cat > conftest.$ac_ext <<EOF
6399 #line 6400 "configure"
6400 #include "confdefs.h"
6401 #include <math.h>
6402 int main() {
6403  __builtin_cos(0);
6404 ; return 0; }
6405 EOF
6406 if { (eval echo configure:6407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6407   rm -rf conftest*
6408   glibcpp_cv_func___builtin_cos_use=yes
6409 else
6410   echo "configure: failed program was:" >&5
6411   cat conftest.$ac_ext >&5
6412   rm -rf conftest*
6413   glibcpp_cv_func___builtin_cos_use=no
6414 fi
6415 rm -f conftest*
6416       ac_ext=c
6417 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6418 ac_cpp='$CPP $CPPFLAGS'
6419 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6420 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6421 cross_compiling=$ac_cv_prog_cc_cross
6422
6423     
6424 fi
6425
6426   fi
6427   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
6428   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
6429     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
6430 echo "configure:6431: checking for __builtin_cos linkage" >&5
6431     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
6432       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
6433   echo $ac_n "(cached) $ac_c" 1>&6
6434 else
6435   
6436         cat > conftest.$ac_ext <<EOF
6437 #line 6438 "configure"
6438 #include "confdefs.h"
6439 #include <math.h>
6440 int main() {
6441  __builtin_cos(0);
6442 ; return 0; }
6443 EOF
6444 if { (eval echo configure:6445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6445   rm -rf conftest*
6446   glibcpp_cv_func___builtin_cos_link=yes
6447 else
6448   echo "configure: failed program was:" >&5
6449   cat conftest.$ac_ext >&5
6450   rm -rf conftest*
6451   glibcpp_cv_func___builtin_cos_link=no
6452 fi
6453 rm -f conftest*
6454       
6455 fi
6456
6457     fi
6458     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
6459     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
6460       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6461       cat >> confdefs.h <<EOF
6462 #define ${ac_tr_func} 1
6463 EOF
6464
6465     fi
6466   fi
6467
6468   
6469   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
6470 echo "configure:6471: checking for __builtin_cosl declaration" >&5
6471   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
6472     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
6473   echo $ac_n "(cached) $ac_c" 1>&6
6474 else
6475   
6476       
6477       ac_ext=C
6478 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6479 ac_cpp='$CXXCPP $CPPFLAGS'
6480 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6481 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6482 cross_compiling=$ac_cv_prog_cxx_cross
6483
6484       cat > conftest.$ac_ext <<EOF
6485 #line 6486 "configure"
6486 #include "confdefs.h"
6487 #include <math.h>
6488 int main() {
6489  __builtin_cosl(0);
6490 ; return 0; }
6491 EOF
6492 if { (eval echo configure:6493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6493   rm -rf conftest*
6494   glibcpp_cv_func___builtin_cosl_use=yes
6495 else
6496   echo "configure: failed program was:" >&5
6497   cat conftest.$ac_ext >&5
6498   rm -rf conftest*
6499   glibcpp_cv_func___builtin_cosl_use=no
6500 fi
6501 rm -f conftest*
6502       ac_ext=c
6503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6504 ac_cpp='$CPP $CPPFLAGS'
6505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6506 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6507 cross_compiling=$ac_cv_prog_cc_cross
6508
6509     
6510 fi
6511
6512   fi
6513   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
6514   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
6515     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
6516 echo "configure:6517: checking for __builtin_cosl linkage" >&5
6517     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
6518       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
6519   echo $ac_n "(cached) $ac_c" 1>&6
6520 else
6521   
6522         cat > conftest.$ac_ext <<EOF
6523 #line 6524 "configure"
6524 #include "confdefs.h"
6525 #include <math.h>
6526 int main() {
6527  __builtin_cosl(0);
6528 ; return 0; }
6529 EOF
6530 if { (eval echo configure:6531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6531   rm -rf conftest*
6532   glibcpp_cv_func___builtin_cosl_link=yes
6533 else
6534   echo "configure: failed program was:" >&5
6535   cat conftest.$ac_ext >&5
6536   rm -rf conftest*
6537   glibcpp_cv_func___builtin_cosl_link=no
6538 fi
6539 rm -f conftest*
6540       
6541 fi
6542
6543     fi
6544     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
6545     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
6546       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6547       cat >> confdefs.h <<EOF
6548 #define ${ac_tr_func} 1
6549 EOF
6550
6551     fi
6552   fi
6553
6554
6555               dummyvar=no
6556   if test x$dummyvar = x"yes"; then
6557     cat >> confdefs.h <<\EOF
6558 #define HAVE___BUILTIN_ABS 1
6559 EOF
6560
6561     cat >> confdefs.h <<\EOF
6562 #define HAVE___BUILTIN_LABS 1
6563 EOF
6564
6565     cat >> confdefs.h <<\EOF
6566 #define HAVE___BUILTIN_COS 1
6567 EOF
6568
6569     cat >> confdefs.h <<\EOF
6570 #define HAVE___BUILTIN_COSF 1
6571 EOF
6572
6573     cat >> confdefs.h <<\EOF
6574 #define HAVE___BUILTIN_COSL 1
6575 EOF
6576
6577     cat >> confdefs.h <<\EOF
6578 #define HAVE___BUILTIN_FABS 1
6579 EOF
6580
6581     cat >> confdefs.h <<\EOF
6582 #define HAVE___BUILTIN_FABSF 1
6583 EOF
6584
6585     cat >> confdefs.h <<\EOF
6586 #define HAVE___BUILTIN_FABSL 1
6587 EOF
6588
6589     cat >> confdefs.h <<\EOF
6590 #define HAVE___BUILTIN_SIN 1
6591 EOF
6592
6593     cat >> confdefs.h <<\EOF
6594 #define HAVE___BUILTIN_SINF 1
6595 EOF
6596
6597     cat >> confdefs.h <<\EOF
6598 #define HAVE___BUILTIN_SINL 1
6599 EOF
6600
6601     cat >> confdefs.h <<\EOF
6602 #define HAVE___BUILTIN_FSQRT 1
6603 EOF
6604
6605     cat >> confdefs.h <<\EOF
6606 #define HAVE___BUILTIN_SQRTF 1
6607 EOF
6608
6609     cat >> confdefs.h <<\EOF
6610 #define HAVE___BUILTIN_SQRTL 1
6611 EOF
6612
6613   fi
6614
6615   
6616   ac_test_CXXFLAGS="${CXXFLAGS+set}"
6617   ac_save_CXXFLAGS="$CXXFLAGS"
6618   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
6619
6620     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
6621 echo "configure:6622: checking for sin in -lm" >&5
6622 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
6623 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6624   echo $ac_n "(cached) $ac_c" 1>&6
6625 else
6626   ac_save_LIBS="$LIBS"
6627 LIBS="-lm  $LIBS"
6628 cat > conftest.$ac_ext <<EOF
6629 #line 6630 "configure"
6630 #include "confdefs.h"
6631 /* Override any gcc2 internal prototype to avoid an error.  */
6632 /* We use char because int might match the return type of a gcc2
6633     builtin and then its argument prototype would still apply.  */
6634 char sin();
6635
6636 int main() {
6637 sin()
6638 ; return 0; }
6639 EOF
6640 if { (eval echo configure:6641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6641   rm -rf conftest*
6642   eval "ac_cv_lib_$ac_lib_var=yes"
6643 else
6644   echo "configure: failed program was:" >&5
6645   cat conftest.$ac_ext >&5
6646   rm -rf conftest*
6647   eval "ac_cv_lib_$ac_lib_var=no"
6648 fi
6649 rm -f conftest*
6650 LIBS="$ac_save_LIBS"
6651
6652 fi
6653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6654   echo "$ac_t""yes" 1>&6
6655   libm="-lm"
6656 else
6657   echo "$ac_t""no" 1>&6
6658 fi
6659
6660   ac_save_LIBS="$LIBS"
6661   LIBS="$LIBS $libm"
6662
6663     
6664   
6665   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
6666 echo "configure:6667: checking for isinf declaration" >&5
6667   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
6668     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
6669   echo $ac_n "(cached) $ac_c" 1>&6
6670 else
6671   
6672       
6673       ac_ext=C
6674 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6675 ac_cpp='$CXXCPP $CPPFLAGS'
6676 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6677 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6678 cross_compiling=$ac_cv_prog_cxx_cross
6679
6680       cat > conftest.$ac_ext <<EOF
6681 #line 6682 "configure"
6682 #include "confdefs.h"
6683 #include <math.h>
6684                       #ifdef HAVE_IEEEFP_H
6685                       #include <ieeefp.h>
6686                       #endif
6687                      
6688 int main() {
6689  isinf(0);
6690 ; return 0; }
6691 EOF
6692 if { (eval echo configure:6693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6693   rm -rf conftest*
6694   glibcpp_cv_func_isinf_use=yes
6695 else
6696   echo "configure: failed program was:" >&5
6697   cat conftest.$ac_ext >&5
6698   rm -rf conftest*
6699   glibcpp_cv_func_isinf_use=no
6700 fi
6701 rm -f conftest*
6702       ac_ext=c
6703 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6704 ac_cpp='$CPP $CPPFLAGS'
6705 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6706 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6707 cross_compiling=$ac_cv_prog_cc_cross
6708
6709     
6710 fi
6711
6712   fi
6713   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
6714
6715   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
6716     for ac_func in isinf
6717 do
6718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6719 echo "configure:6720: checking for $ac_func" >&5
6720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6721   echo $ac_n "(cached) $ac_c" 1>&6
6722 else
6723   cat > conftest.$ac_ext <<EOF
6724 #line 6725 "configure"
6725 #include "confdefs.h"
6726 /* System header to define __stub macros and hopefully few prototypes,
6727     which can conflict with char $ac_func(); below.  */
6728 #include <assert.h>
6729 /* Override any gcc2 internal prototype to avoid an error.  */
6730 /* We use char because int might match the return type of a gcc2
6731     builtin and then its argument prototype would still apply.  */
6732 char $ac_func();
6733
6734 int main() {
6735
6736 /* The GNU C library defines this for functions which it implements
6737     to always fail with ENOSYS.  Some functions are actually named
6738     something starting with __ and the normal name is an alias.  */
6739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6740 choke me
6741 #else
6742 $ac_func();
6743 #endif
6744
6745 ; return 0; }
6746 EOF
6747 if { (eval echo configure:6748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6748   rm -rf conftest*
6749   eval "ac_cv_func_$ac_func=yes"
6750 else
6751   echo "configure: failed program was:" >&5
6752   cat conftest.$ac_ext >&5
6753   rm -rf conftest*
6754   eval "ac_cv_func_$ac_func=no"
6755 fi
6756 rm -f conftest*
6757 fi
6758
6759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6760   echo "$ac_t""yes" 1>&6
6761     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6762   cat >> confdefs.h <<EOF
6763 #define $ac_tr_func 1
6764 EOF
6765  
6766 else
6767   echo "$ac_t""no" 1>&6
6768 fi
6769 done
6770     
6771   else
6772     
6773   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6774 echo "configure:6775: checking for _isinf declaration" >&5
6775   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6776     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6777   echo $ac_n "(cached) $ac_c" 1>&6
6778 else
6779   
6780       
6781       ac_ext=C
6782 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6783 ac_cpp='$CXXCPP $CPPFLAGS'
6784 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6785 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6786 cross_compiling=$ac_cv_prog_cxx_cross
6787
6788       cat > conftest.$ac_ext <<EOF
6789 #line 6790 "configure"
6790 #include "confdefs.h"
6791 #include <math.h>
6792                       #ifdef HAVE_IEEEFP_H
6793                       #include <ieeefp.h>
6794                       #endif
6795                      
6796 int main() {
6797  _isinf(0);
6798 ; return 0; }
6799 EOF
6800 if { (eval echo configure:6801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6801   rm -rf conftest*
6802   glibcpp_cv_func__isinf_use=yes
6803 else
6804   echo "configure: failed program was:" >&5
6805   cat conftest.$ac_ext >&5
6806   rm -rf conftest*
6807   glibcpp_cv_func__isinf_use=no
6808 fi
6809 rm -f conftest*
6810       ac_ext=c
6811 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6812 ac_cpp='$CPP $CPPFLAGS'
6813 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6814 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6815 cross_compiling=$ac_cv_prog_cc_cross
6816
6817     
6818 fi
6819
6820   fi
6821   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6822
6823     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6824       for ac_func in _isinf
6825 do
6826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6827 echo "configure:6828: checking for $ac_func" >&5
6828 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6829   echo $ac_n "(cached) $ac_c" 1>&6
6830 else
6831   cat > conftest.$ac_ext <<EOF
6832 #line 6833 "configure"
6833 #include "confdefs.h"
6834 /* System header to define __stub macros and hopefully few prototypes,
6835     which can conflict with char $ac_func(); below.  */
6836 #include <assert.h>
6837 /* Override any gcc2 internal prototype to avoid an error.  */
6838 /* We use char because int might match the return type of a gcc2
6839     builtin and then its argument prototype would still apply.  */
6840 char $ac_func();
6841
6842 int main() {
6843
6844 /* The GNU C library defines this for functions which it implements
6845     to always fail with ENOSYS.  Some functions are actually named
6846     something starting with __ and the normal name is an alias.  */
6847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6848 choke me
6849 #else
6850 $ac_func();
6851 #endif
6852
6853 ; return 0; }
6854 EOF
6855 if { (eval echo configure:6856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6856   rm -rf conftest*
6857   eval "ac_cv_func_$ac_func=yes"
6858 else
6859   echo "configure: failed program was:" >&5
6860   cat conftest.$ac_ext >&5
6861   rm -rf conftest*
6862   eval "ac_cv_func_$ac_func=no"
6863 fi
6864 rm -f conftest*
6865 fi
6866
6867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6868   echo "$ac_t""yes" 1>&6
6869     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6870   cat >> confdefs.h <<EOF
6871 #define $ac_tr_func 1
6872 EOF
6873  
6874 else
6875   echo "$ac_t""no" 1>&6
6876 fi
6877 done
6878     
6879     fi  
6880   fi
6881
6882   
6883   
6884   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6885 echo "configure:6886: checking for isnan declaration" >&5
6886   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6887     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6888   echo $ac_n "(cached) $ac_c" 1>&6
6889 else
6890   
6891       
6892       ac_ext=C
6893 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6894 ac_cpp='$CXXCPP $CPPFLAGS'
6895 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6896 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6897 cross_compiling=$ac_cv_prog_cxx_cross
6898
6899       cat > conftest.$ac_ext <<EOF
6900 #line 6901 "configure"
6901 #include "confdefs.h"
6902 #include <math.h>
6903                       #ifdef HAVE_IEEEFP_H
6904                       #include <ieeefp.h>
6905                       #endif
6906                      
6907 int main() {
6908  isnan(0);
6909 ; return 0; }
6910 EOF
6911 if { (eval echo configure:6912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6912   rm -rf conftest*
6913   glibcpp_cv_func_isnan_use=yes
6914 else
6915   echo "configure: failed program was:" >&5
6916   cat conftest.$ac_ext >&5
6917   rm -rf conftest*
6918   glibcpp_cv_func_isnan_use=no
6919 fi
6920 rm -f conftest*
6921       ac_ext=c
6922 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6923 ac_cpp='$CPP $CPPFLAGS'
6924 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6925 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6926 cross_compiling=$ac_cv_prog_cc_cross
6927
6928     
6929 fi
6930
6931   fi
6932   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6933
6934   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6935     for ac_func in isnan
6936 do
6937 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6938 echo "configure:6939: checking for $ac_func" >&5
6939 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6940   echo $ac_n "(cached) $ac_c" 1>&6
6941 else
6942   cat > conftest.$ac_ext <<EOF
6943 #line 6944 "configure"
6944 #include "confdefs.h"
6945 /* System header to define __stub macros and hopefully few prototypes,
6946     which can conflict with char $ac_func(); below.  */
6947 #include <assert.h>
6948 /* Override any gcc2 internal prototype to avoid an error.  */
6949 /* We use char because int might match the return type of a gcc2
6950     builtin and then its argument prototype would still apply.  */
6951 char $ac_func();
6952
6953 int main() {
6954
6955 /* The GNU C library defines this for functions which it implements
6956     to always fail with ENOSYS.  Some functions are actually named
6957     something starting with __ and the normal name is an alias.  */
6958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6959 choke me
6960 #else
6961 $ac_func();
6962 #endif
6963
6964 ; return 0; }
6965 EOF
6966 if { (eval echo configure:6967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6967   rm -rf conftest*
6968   eval "ac_cv_func_$ac_func=yes"
6969 else
6970   echo "configure: failed program was:" >&5
6971   cat conftest.$ac_ext >&5
6972   rm -rf conftest*
6973   eval "ac_cv_func_$ac_func=no"
6974 fi
6975 rm -f conftest*
6976 fi
6977
6978 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6979   echo "$ac_t""yes" 1>&6
6980     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6981   cat >> confdefs.h <<EOF
6982 #define $ac_tr_func 1
6983 EOF
6984  
6985 else
6986   echo "$ac_t""no" 1>&6
6987 fi
6988 done
6989     
6990   else
6991     
6992   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6993 echo "configure:6994: checking for _isnan declaration" >&5
6994   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6995     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6996   echo $ac_n "(cached) $ac_c" 1>&6
6997 else
6998   
6999       
7000       ac_ext=C
7001 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7002 ac_cpp='$CXXCPP $CPPFLAGS'
7003 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7004 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7005 cross_compiling=$ac_cv_prog_cxx_cross
7006
7007       cat > conftest.$ac_ext <<EOF
7008 #line 7009 "configure"
7009 #include "confdefs.h"
7010 #include <math.h>
7011                       #ifdef HAVE_IEEEFP_H
7012                       #include <ieeefp.h>
7013                       #endif
7014                      
7015 int main() {
7016  _isnan(0);
7017 ; return 0; }
7018 EOF
7019 if { (eval echo configure:7020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7020   rm -rf conftest*
7021   glibcpp_cv_func__isnan_use=yes
7022 else
7023   echo "configure: failed program was:" >&5
7024   cat conftest.$ac_ext >&5
7025   rm -rf conftest*
7026   glibcpp_cv_func__isnan_use=no
7027 fi
7028 rm -f conftest*
7029       ac_ext=c
7030 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7031 ac_cpp='$CPP $CPPFLAGS'
7032 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7033 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7034 cross_compiling=$ac_cv_prog_cc_cross
7035
7036     
7037 fi
7038
7039   fi
7040   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
7041
7042     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
7043       for ac_func in _isnan
7044 do
7045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7046 echo "configure:7047: checking for $ac_func" >&5
7047 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7048   echo $ac_n "(cached) $ac_c" 1>&6
7049 else
7050   cat > conftest.$ac_ext <<EOF
7051 #line 7052 "configure"
7052 #include "confdefs.h"
7053 /* System header to define __stub macros and hopefully few prototypes,
7054     which can conflict with char $ac_func(); below.  */
7055 #include <assert.h>
7056 /* Override any gcc2 internal prototype to avoid an error.  */
7057 /* We use char because int might match the return type of a gcc2
7058     builtin and then its argument prototype would still apply.  */
7059 char $ac_func();
7060
7061 int main() {
7062
7063 /* The GNU C library defines this for functions which it implements
7064     to always fail with ENOSYS.  Some functions are actually named
7065     something starting with __ and the normal name is an alias.  */
7066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7067 choke me
7068 #else
7069 $ac_func();
7070 #endif
7071
7072 ; return 0; }
7073 EOF
7074 if { (eval echo configure:7075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7075   rm -rf conftest*
7076   eval "ac_cv_func_$ac_func=yes"
7077 else
7078   echo "configure: failed program was:" >&5
7079   cat conftest.$ac_ext >&5
7080   rm -rf conftest*
7081   eval "ac_cv_func_$ac_func=no"
7082 fi
7083 rm -f conftest*
7084 fi
7085
7086 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7087   echo "$ac_t""yes" 1>&6
7088     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7089   cat >> confdefs.h <<EOF
7090 #define $ac_tr_func 1
7091 EOF
7092  
7093 else
7094   echo "$ac_t""no" 1>&6
7095 fi
7096 done
7097     
7098     fi  
7099   fi
7100
7101   
7102   
7103   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
7104 echo "configure:7105: checking for finite declaration" >&5
7105   if test x${glibcpp_cv_func_finite_use+set} != xset; then
7106     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
7107   echo $ac_n "(cached) $ac_c" 1>&6
7108 else
7109   
7110       
7111       ac_ext=C
7112 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7113 ac_cpp='$CXXCPP $CPPFLAGS'
7114 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7115 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7116 cross_compiling=$ac_cv_prog_cxx_cross
7117
7118       cat > conftest.$ac_ext <<EOF
7119 #line 7120 "configure"
7120 #include "confdefs.h"
7121 #include <math.h>
7122                       #ifdef HAVE_IEEEFP_H
7123                       #include <ieeefp.h>
7124                       #endif
7125                      
7126 int main() {
7127  finite(0);
7128 ; return 0; }
7129 EOF
7130 if { (eval echo configure:7131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7131   rm -rf conftest*
7132   glibcpp_cv_func_finite_use=yes
7133 else
7134   echo "configure: failed program was:" >&5
7135   cat conftest.$ac_ext >&5
7136   rm -rf conftest*
7137   glibcpp_cv_func_finite_use=no
7138 fi
7139 rm -f conftest*
7140       ac_ext=c
7141 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7142 ac_cpp='$CPP $CPPFLAGS'
7143 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7144 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7145 cross_compiling=$ac_cv_prog_cc_cross
7146
7147     
7148 fi
7149
7150   fi
7151   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
7152
7153   if test x$glibcpp_cv_func_finite_use = x"yes"; then
7154     for ac_func in finite
7155 do
7156 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7157 echo "configure:7158: checking for $ac_func" >&5
7158 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7159   echo $ac_n "(cached) $ac_c" 1>&6
7160 else
7161   cat > conftest.$ac_ext <<EOF
7162 #line 7163 "configure"
7163 #include "confdefs.h"
7164 /* System header to define __stub macros and hopefully few prototypes,
7165     which can conflict with char $ac_func(); below.  */
7166 #include <assert.h>
7167 /* Override any gcc2 internal prototype to avoid an error.  */
7168 /* We use char because int might match the return type of a gcc2
7169     builtin and then its argument prototype would still apply.  */
7170 char $ac_func();
7171
7172 int main() {
7173
7174 /* The GNU C library defines this for functions which it implements
7175     to always fail with ENOSYS.  Some functions are actually named
7176     something starting with __ and the normal name is an alias.  */
7177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7178 choke me
7179 #else
7180 $ac_func();
7181 #endif
7182
7183 ; return 0; }
7184 EOF
7185 if { (eval echo configure:7186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7186   rm -rf conftest*
7187   eval "ac_cv_func_$ac_func=yes"
7188 else
7189   echo "configure: failed program was:" >&5
7190   cat conftest.$ac_ext >&5
7191   rm -rf conftest*
7192   eval "ac_cv_func_$ac_func=no"
7193 fi
7194 rm -f conftest*
7195 fi
7196
7197 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7198   echo "$ac_t""yes" 1>&6
7199     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7200   cat >> confdefs.h <<EOF
7201 #define $ac_tr_func 1
7202 EOF
7203  
7204 else
7205   echo "$ac_t""no" 1>&6
7206 fi
7207 done
7208     
7209   else
7210     
7211   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
7212 echo "configure:7213: checking for _finite declaration" >&5
7213   if test x${glibcpp_cv_func__finite_use+set} != xset; then
7214     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
7215   echo $ac_n "(cached) $ac_c" 1>&6
7216 else
7217   
7218       
7219       ac_ext=C
7220 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7221 ac_cpp='$CXXCPP $CPPFLAGS'
7222 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7223 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7224 cross_compiling=$ac_cv_prog_cxx_cross
7225
7226       cat > conftest.$ac_ext <<EOF
7227 #line 7228 "configure"
7228 #include "confdefs.h"
7229 #include <math.h>
7230                       #ifdef HAVE_IEEEFP_H
7231                       #include <ieeefp.h>
7232                       #endif
7233                      
7234 int main() {
7235  _finite(0);
7236 ; return 0; }
7237 EOF
7238 if { (eval echo configure:7239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7239   rm -rf conftest*
7240   glibcpp_cv_func__finite_use=yes
7241 else
7242   echo "configure: failed program was:" >&5
7243   cat conftest.$ac_ext >&5
7244   rm -rf conftest*
7245   glibcpp_cv_func__finite_use=no
7246 fi
7247 rm -f conftest*
7248       ac_ext=c
7249 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7250 ac_cpp='$CPP $CPPFLAGS'
7251 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7252 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7253 cross_compiling=$ac_cv_prog_cc_cross
7254
7255     
7256 fi
7257
7258   fi
7259   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
7260
7261     if test x$glibcpp_cv_func__finite_use = x"yes"; then
7262       for ac_func in _finite
7263 do
7264 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7265 echo "configure:7266: checking for $ac_func" >&5
7266 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7267   echo $ac_n "(cached) $ac_c" 1>&6
7268 else
7269   cat > conftest.$ac_ext <<EOF
7270 #line 7271 "configure"
7271 #include "confdefs.h"
7272 /* System header to define __stub macros and hopefully few prototypes,
7273     which can conflict with char $ac_func(); below.  */
7274 #include <assert.h>
7275 /* Override any gcc2 internal prototype to avoid an error.  */
7276 /* We use char because int might match the return type of a gcc2
7277     builtin and then its argument prototype would still apply.  */
7278 char $ac_func();
7279
7280 int main() {
7281
7282 /* The GNU C library defines this for functions which it implements
7283     to always fail with ENOSYS.  Some functions are actually named
7284     something starting with __ and the normal name is an alias.  */
7285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7286 choke me
7287 #else
7288 $ac_func();
7289 #endif
7290
7291 ; return 0; }
7292 EOF
7293 if { (eval echo configure:7294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7294   rm -rf conftest*
7295   eval "ac_cv_func_$ac_func=yes"
7296 else
7297   echo "configure: failed program was:" >&5
7298   cat conftest.$ac_ext >&5
7299   rm -rf conftest*
7300   eval "ac_cv_func_$ac_func=no"
7301 fi
7302 rm -f conftest*
7303 fi
7304
7305 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7306   echo "$ac_t""yes" 1>&6
7307     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7308   cat >> confdefs.h <<EOF
7309 #define $ac_tr_func 1
7310 EOF
7311  
7312 else
7313   echo "$ac_t""no" 1>&6
7314 fi
7315 done
7316     
7317     fi  
7318   fi
7319
7320   
7321   
7322   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
7323 echo "configure:7324: checking for copysign declaration" >&5
7324   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
7325     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
7326   echo $ac_n "(cached) $ac_c" 1>&6
7327 else
7328   
7329       
7330       ac_ext=C
7331 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7332 ac_cpp='$CXXCPP $CPPFLAGS'
7333 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7334 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7335 cross_compiling=$ac_cv_prog_cxx_cross
7336
7337       cat > conftest.$ac_ext <<EOF
7338 #line 7339 "configure"
7339 #include "confdefs.h"
7340 #include <math.h>
7341 int main() {
7342  copysign(0, 0);
7343 ; return 0; }
7344 EOF
7345 if { (eval echo configure:7346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7346   rm -rf conftest*
7347   glibcpp_cv_func_copysign_use=yes
7348 else
7349   echo "configure: failed program was:" >&5
7350   cat conftest.$ac_ext >&5
7351   rm -rf conftest*
7352   glibcpp_cv_func_copysign_use=no
7353 fi
7354 rm -f conftest*
7355       ac_ext=c
7356 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7357 ac_cpp='$CPP $CPPFLAGS'
7358 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7359 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7360 cross_compiling=$ac_cv_prog_cc_cross
7361
7362     
7363 fi
7364
7365   fi
7366   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
7367
7368   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
7369     for ac_func in copysign
7370 do
7371 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7372 echo "configure:7373: checking for $ac_func" >&5
7373 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7374   echo $ac_n "(cached) $ac_c" 1>&6
7375 else
7376   cat > conftest.$ac_ext <<EOF
7377 #line 7378 "configure"
7378 #include "confdefs.h"
7379 /* System header to define __stub macros and hopefully few prototypes,
7380     which can conflict with char $ac_func(); below.  */
7381 #include <assert.h>
7382 /* Override any gcc2 internal prototype to avoid an error.  */
7383 /* We use char because int might match the return type of a gcc2
7384     builtin and then its argument prototype would still apply.  */
7385 char $ac_func();
7386
7387 int main() {
7388
7389 /* The GNU C library defines this for functions which it implements
7390     to always fail with ENOSYS.  Some functions are actually named
7391     something starting with __ and the normal name is an alias.  */
7392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7393 choke me
7394 #else
7395 $ac_func();
7396 #endif
7397
7398 ; return 0; }
7399 EOF
7400 if { (eval echo configure:7401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7401   rm -rf conftest*
7402   eval "ac_cv_func_$ac_func=yes"
7403 else
7404   echo "configure: failed program was:" >&5
7405   cat conftest.$ac_ext >&5
7406   rm -rf conftest*
7407   eval "ac_cv_func_$ac_func=no"
7408 fi
7409 rm -f conftest*
7410 fi
7411
7412 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7413   echo "$ac_t""yes" 1>&6
7414     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7415   cat >> confdefs.h <<EOF
7416 #define $ac_tr_func 1
7417 EOF
7418  
7419 else
7420   echo "$ac_t""no" 1>&6
7421 fi
7422 done
7423     
7424   else
7425     
7426   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
7427 echo "configure:7428: checking for _copysign declaration" >&5
7428   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
7429     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
7430   echo $ac_n "(cached) $ac_c" 1>&6
7431 else
7432   
7433       
7434       ac_ext=C
7435 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7436 ac_cpp='$CXXCPP $CPPFLAGS'
7437 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7438 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7439 cross_compiling=$ac_cv_prog_cxx_cross
7440
7441       cat > conftest.$ac_ext <<EOF
7442 #line 7443 "configure"
7443 #include "confdefs.h"
7444 #include <math.h>
7445 int main() {
7446  _copysign(0, 0);
7447 ; return 0; }
7448 EOF
7449 if { (eval echo configure:7450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7450   rm -rf conftest*
7451   glibcpp_cv_func__copysign_use=yes
7452 else
7453   echo "configure: failed program was:" >&5
7454   cat conftest.$ac_ext >&5
7455   rm -rf conftest*
7456   glibcpp_cv_func__copysign_use=no
7457 fi
7458 rm -f conftest*
7459       ac_ext=c
7460 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7461 ac_cpp='$CPP $CPPFLAGS'
7462 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7463 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7464 cross_compiling=$ac_cv_prog_cc_cross
7465
7466     
7467 fi
7468
7469   fi
7470   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
7471
7472     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
7473       for ac_func in _copysign
7474 do
7475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7476 echo "configure:7477: checking for $ac_func" >&5
7477 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7478   echo $ac_n "(cached) $ac_c" 1>&6
7479 else
7480   cat > conftest.$ac_ext <<EOF
7481 #line 7482 "configure"
7482 #include "confdefs.h"
7483 /* System header to define __stub macros and hopefully few prototypes,
7484     which can conflict with char $ac_func(); below.  */
7485 #include <assert.h>
7486 /* Override any gcc2 internal prototype to avoid an error.  */
7487 /* We use char because int might match the return type of a gcc2
7488     builtin and then its argument prototype would still apply.  */
7489 char $ac_func();
7490
7491 int main() {
7492
7493 /* The GNU C library defines this for functions which it implements
7494     to always fail with ENOSYS.  Some functions are actually named
7495     something starting with __ and the normal name is an alias.  */
7496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7497 choke me
7498 #else
7499 $ac_func();
7500 #endif
7501
7502 ; return 0; }
7503 EOF
7504 if { (eval echo configure:7505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7505   rm -rf conftest*
7506   eval "ac_cv_func_$ac_func=yes"
7507 else
7508   echo "configure: failed program was:" >&5
7509   cat conftest.$ac_ext >&5
7510   rm -rf conftest*
7511   eval "ac_cv_func_$ac_func=no"
7512 fi
7513 rm -f conftest*
7514 fi
7515
7516 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7517   echo "$ac_t""yes" 1>&6
7518     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7519   cat >> confdefs.h <<EOF
7520 #define $ac_tr_func 1
7521 EOF
7522  
7523 else
7524   echo "$ac_t""no" 1>&6
7525 fi
7526 done
7527     
7528     fi  
7529   fi
7530
7531   
7532   
7533   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
7534 echo "configure:7535: checking for sincos declaration" >&5
7535   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
7536     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
7537   echo $ac_n "(cached) $ac_c" 1>&6
7538 else
7539   
7540       
7541       ac_ext=C
7542 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7543 ac_cpp='$CXXCPP $CPPFLAGS'
7544 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7545 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7546 cross_compiling=$ac_cv_prog_cxx_cross
7547
7548       cat > conftest.$ac_ext <<EOF
7549 #line 7550 "configure"
7550 #include "confdefs.h"
7551 #include <math.h>
7552 int main() {
7553  sincos(0, 0, 0);
7554 ; return 0; }
7555 EOF
7556 if { (eval echo configure:7557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7557   rm -rf conftest*
7558   glibcpp_cv_func_sincos_use=yes
7559 else
7560   echo "configure: failed program was:" >&5
7561   cat conftest.$ac_ext >&5
7562   rm -rf conftest*
7563   glibcpp_cv_func_sincos_use=no
7564 fi
7565 rm -f conftest*
7566       ac_ext=c
7567 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7568 ac_cpp='$CPP $CPPFLAGS'
7569 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7570 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7571 cross_compiling=$ac_cv_prog_cc_cross
7572
7573     
7574 fi
7575
7576   fi
7577   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
7578
7579   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
7580     for ac_func in sincos
7581 do
7582 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7583 echo "configure:7584: checking for $ac_func" >&5
7584 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7585   echo $ac_n "(cached) $ac_c" 1>&6
7586 else
7587   cat > conftest.$ac_ext <<EOF
7588 #line 7589 "configure"
7589 #include "confdefs.h"
7590 /* System header to define __stub macros and hopefully few prototypes,
7591     which can conflict with char $ac_func(); below.  */
7592 #include <assert.h>
7593 /* Override any gcc2 internal prototype to avoid an error.  */
7594 /* We use char because int might match the return type of a gcc2
7595     builtin and then its argument prototype would still apply.  */
7596 char $ac_func();
7597
7598 int main() {
7599
7600 /* The GNU C library defines this for functions which it implements
7601     to always fail with ENOSYS.  Some functions are actually named
7602     something starting with __ and the normal name is an alias.  */
7603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7604 choke me
7605 #else
7606 $ac_func();
7607 #endif
7608
7609 ; return 0; }
7610 EOF
7611 if { (eval echo configure:7612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7612   rm -rf conftest*
7613   eval "ac_cv_func_$ac_func=yes"
7614 else
7615   echo "configure: failed program was:" >&5
7616   cat conftest.$ac_ext >&5
7617   rm -rf conftest*
7618   eval "ac_cv_func_$ac_func=no"
7619 fi
7620 rm -f conftest*
7621 fi
7622
7623 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7624   echo "$ac_t""yes" 1>&6
7625     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7626   cat >> confdefs.h <<EOF
7627 #define $ac_tr_func 1
7628 EOF
7629  
7630 else
7631   echo "$ac_t""no" 1>&6
7632 fi
7633 done
7634     
7635   else
7636     
7637   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
7638 echo "configure:7639: checking for _sincos declaration" >&5
7639   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
7640     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
7641   echo $ac_n "(cached) $ac_c" 1>&6
7642 else
7643   
7644       
7645       ac_ext=C
7646 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7647 ac_cpp='$CXXCPP $CPPFLAGS'
7648 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7649 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7650 cross_compiling=$ac_cv_prog_cxx_cross
7651
7652       cat > conftest.$ac_ext <<EOF
7653 #line 7654 "configure"
7654 #include "confdefs.h"
7655 #include <math.h>
7656 int main() {
7657  _sincos(0, 0, 0);
7658 ; return 0; }
7659 EOF
7660 if { (eval echo configure:7661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7661   rm -rf conftest*
7662   glibcpp_cv_func__sincos_use=yes
7663 else
7664   echo "configure: failed program was:" >&5
7665   cat conftest.$ac_ext >&5
7666   rm -rf conftest*
7667   glibcpp_cv_func__sincos_use=no
7668 fi
7669 rm -f conftest*
7670       ac_ext=c
7671 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7672 ac_cpp='$CPP $CPPFLAGS'
7673 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7674 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7675 cross_compiling=$ac_cv_prog_cc_cross
7676
7677     
7678 fi
7679
7680   fi
7681   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
7682
7683     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
7684       for ac_func in _sincos
7685 do
7686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7687 echo "configure:7688: checking for $ac_func" >&5
7688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7689   echo $ac_n "(cached) $ac_c" 1>&6
7690 else
7691   cat > conftest.$ac_ext <<EOF
7692 #line 7693 "configure"
7693 #include "confdefs.h"
7694 /* System header to define __stub macros and hopefully few prototypes,
7695     which can conflict with char $ac_func(); below.  */
7696 #include <assert.h>
7697 /* Override any gcc2 internal prototype to avoid an error.  */
7698 /* We use char because int might match the return type of a gcc2
7699     builtin and then its argument prototype would still apply.  */
7700 char $ac_func();
7701
7702 int main() {
7703
7704 /* The GNU C library defines this for functions which it implements
7705     to always fail with ENOSYS.  Some functions are actually named
7706     something starting with __ and the normal name is an alias.  */
7707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7708 choke me
7709 #else
7710 $ac_func();
7711 #endif
7712
7713 ; return 0; }
7714 EOF
7715 if { (eval echo configure:7716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7716   rm -rf conftest*
7717   eval "ac_cv_func_$ac_func=yes"
7718 else
7719   echo "configure: failed program was:" >&5
7720   cat conftest.$ac_ext >&5
7721   rm -rf conftest*
7722   eval "ac_cv_func_$ac_func=no"
7723 fi
7724 rm -f conftest*
7725 fi
7726
7727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7728   echo "$ac_t""yes" 1>&6
7729     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7730   cat >> confdefs.h <<EOF
7731 #define $ac_tr_func 1
7732 EOF
7733  
7734 else
7735   echo "$ac_t""no" 1>&6
7736 fi
7737 done
7738     
7739     fi  
7740   fi
7741
7742   
7743   
7744   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
7745 echo "configure:7746: checking for fpclass declaration" >&5
7746   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7747     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7748   echo $ac_n "(cached) $ac_c" 1>&6
7749 else
7750   
7751       
7752       ac_ext=C
7753 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7754 ac_cpp='$CXXCPP $CPPFLAGS'
7755 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7756 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7757 cross_compiling=$ac_cv_prog_cxx_cross
7758
7759       cat > conftest.$ac_ext <<EOF
7760 #line 7761 "configure"
7761 #include "confdefs.h"
7762 #include <math.h>
7763                       #ifdef HAVE_IEEEFP_H
7764                       #include <ieeefp.h>
7765                       #endif
7766                      
7767 int main() {
7768  fpclass(0);
7769 ; return 0; }
7770 EOF
7771 if { (eval echo configure:7772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7772   rm -rf conftest*
7773   glibcpp_cv_func_fpclass_use=yes
7774 else
7775   echo "configure: failed program was:" >&5
7776   cat conftest.$ac_ext >&5
7777   rm -rf conftest*
7778   glibcpp_cv_func_fpclass_use=no
7779 fi
7780 rm -f conftest*
7781       ac_ext=c
7782 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7783 ac_cpp='$CPP $CPPFLAGS'
7784 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7785 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7786 cross_compiling=$ac_cv_prog_cc_cross
7787
7788     
7789 fi
7790
7791   fi
7792   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7793
7794   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7795     for ac_func in fpclass
7796 do
7797 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7798 echo "configure:7799: checking for $ac_func" >&5
7799 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7800   echo $ac_n "(cached) $ac_c" 1>&6
7801 else
7802   cat > conftest.$ac_ext <<EOF
7803 #line 7804 "configure"
7804 #include "confdefs.h"
7805 /* System header to define __stub macros and hopefully few prototypes,
7806     which can conflict with char $ac_func(); below.  */
7807 #include <assert.h>
7808 /* Override any gcc2 internal prototype to avoid an error.  */
7809 /* We use char because int might match the return type of a gcc2
7810     builtin and then its argument prototype would still apply.  */
7811 char $ac_func();
7812
7813 int main() {
7814
7815 /* The GNU C library defines this for functions which it implements
7816     to always fail with ENOSYS.  Some functions are actually named
7817     something starting with __ and the normal name is an alias.  */
7818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7819 choke me
7820 #else
7821 $ac_func();
7822 #endif
7823
7824 ; return 0; }
7825 EOF
7826 if { (eval echo configure:7827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7827   rm -rf conftest*
7828   eval "ac_cv_func_$ac_func=yes"
7829 else
7830   echo "configure: failed program was:" >&5
7831   cat conftest.$ac_ext >&5
7832   rm -rf conftest*
7833   eval "ac_cv_func_$ac_func=no"
7834 fi
7835 rm -f conftest*
7836 fi
7837
7838 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7839   echo "$ac_t""yes" 1>&6
7840     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7841   cat >> confdefs.h <<EOF
7842 #define $ac_tr_func 1
7843 EOF
7844  
7845 else
7846   echo "$ac_t""no" 1>&6
7847 fi
7848 done
7849     
7850   else
7851     
7852   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7853 echo "configure:7854: checking for _fpclass declaration" >&5
7854   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7855     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7856   echo $ac_n "(cached) $ac_c" 1>&6
7857 else
7858   
7859       
7860       ac_ext=C
7861 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7862 ac_cpp='$CXXCPP $CPPFLAGS'
7863 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7864 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7865 cross_compiling=$ac_cv_prog_cxx_cross
7866
7867       cat > conftest.$ac_ext <<EOF
7868 #line 7869 "configure"
7869 #include "confdefs.h"
7870 #include <math.h>
7871                       #ifdef HAVE_IEEEFP_H
7872                       #include <ieeefp.h>
7873                       #endif
7874                      
7875 int main() {
7876  _fpclass(0);
7877 ; return 0; }
7878 EOF
7879 if { (eval echo configure:7880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7880   rm -rf conftest*
7881   glibcpp_cv_func__fpclass_use=yes
7882 else
7883   echo "configure: failed program was:" >&5
7884   cat conftest.$ac_ext >&5
7885   rm -rf conftest*
7886   glibcpp_cv_func__fpclass_use=no
7887 fi
7888 rm -f conftest*
7889       ac_ext=c
7890 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7891 ac_cpp='$CPP $CPPFLAGS'
7892 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7893 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7894 cross_compiling=$ac_cv_prog_cc_cross
7895
7896     
7897 fi
7898
7899   fi
7900   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7901
7902     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7903       for ac_func in _fpclass
7904 do
7905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7906 echo "configure:7907: checking for $ac_func" >&5
7907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7908   echo $ac_n "(cached) $ac_c" 1>&6
7909 else
7910   cat > conftest.$ac_ext <<EOF
7911 #line 7912 "configure"
7912 #include "confdefs.h"
7913 /* System header to define __stub macros and hopefully few prototypes,
7914     which can conflict with char $ac_func(); below.  */
7915 #include <assert.h>
7916 /* Override any gcc2 internal prototype to avoid an error.  */
7917 /* We use char because int might match the return type of a gcc2
7918     builtin and then its argument prototype would still apply.  */
7919 char $ac_func();
7920
7921 int main() {
7922
7923 /* The GNU C library defines this for functions which it implements
7924     to always fail with ENOSYS.  Some functions are actually named
7925     something starting with __ and the normal name is an alias.  */
7926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7927 choke me
7928 #else
7929 $ac_func();
7930 #endif
7931
7932 ; return 0; }
7933 EOF
7934 if { (eval echo configure:7935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7935   rm -rf conftest*
7936   eval "ac_cv_func_$ac_func=yes"
7937 else
7938   echo "configure: failed program was:" >&5
7939   cat conftest.$ac_ext >&5
7940   rm -rf conftest*
7941   eval "ac_cv_func_$ac_func=no"
7942 fi
7943 rm -f conftest*
7944 fi
7945
7946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7947   echo "$ac_t""yes" 1>&6
7948     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7949   cat >> confdefs.h <<EOF
7950 #define $ac_tr_func 1
7951 EOF
7952  
7953 else
7954   echo "$ac_t""no" 1>&6
7955 fi
7956 done
7957     
7958     fi  
7959   fi
7960
7961   
7962   
7963   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7964 echo "configure:7965: checking for qfpclass declaration" >&5
7965   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7966     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7967   echo $ac_n "(cached) $ac_c" 1>&6
7968 else
7969   
7970       
7971       ac_ext=C
7972 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7973 ac_cpp='$CXXCPP $CPPFLAGS'
7974 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7975 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7976 cross_compiling=$ac_cv_prog_cxx_cross
7977
7978       cat > conftest.$ac_ext <<EOF
7979 #line 7980 "configure"
7980 #include "confdefs.h"
7981 #include <math.h>
7982                       #ifdef HAVE_IEEEFP_H
7983                       #include <ieeefp.h>
7984                       #endif
7985                      
7986 int main() {
7987  qfpclass(0);
7988 ; return 0; }
7989 EOF
7990 if { (eval echo configure:7991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7991   rm -rf conftest*
7992   glibcpp_cv_func_qfpclass_use=yes
7993 else
7994   echo "configure: failed program was:" >&5
7995   cat conftest.$ac_ext >&5
7996   rm -rf conftest*
7997   glibcpp_cv_func_qfpclass_use=no
7998 fi
7999 rm -f conftest*
8000       ac_ext=c
8001 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8002 ac_cpp='$CPP $CPPFLAGS'
8003 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8004 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8005 cross_compiling=$ac_cv_prog_cc_cross
8006
8007     
8008 fi
8009
8010   fi
8011   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
8012
8013   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
8014     for ac_func in qfpclass
8015 do
8016 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8017 echo "configure:8018: checking for $ac_func" >&5
8018 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8019   echo $ac_n "(cached) $ac_c" 1>&6
8020 else
8021   cat > conftest.$ac_ext <<EOF
8022 #line 8023 "configure"
8023 #include "confdefs.h"
8024 /* System header to define __stub macros and hopefully few prototypes,
8025     which can conflict with char $ac_func(); below.  */
8026 #include <assert.h>
8027 /* Override any gcc2 internal prototype to avoid an error.  */
8028 /* We use char because int might match the return type of a gcc2
8029     builtin and then its argument prototype would still apply.  */
8030 char $ac_func();
8031
8032 int main() {
8033
8034 /* The GNU C library defines this for functions which it implements
8035     to always fail with ENOSYS.  Some functions are actually named
8036     something starting with __ and the normal name is an alias.  */
8037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8038 choke me
8039 #else
8040 $ac_func();
8041 #endif
8042
8043 ; return 0; }
8044 EOF
8045 if { (eval echo configure:8046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8046   rm -rf conftest*
8047   eval "ac_cv_func_$ac_func=yes"
8048 else
8049   echo "configure: failed program was:" >&5
8050   cat conftest.$ac_ext >&5
8051   rm -rf conftest*
8052   eval "ac_cv_func_$ac_func=no"
8053 fi
8054 rm -f conftest*
8055 fi
8056
8057 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8058   echo "$ac_t""yes" 1>&6
8059     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8060   cat >> confdefs.h <<EOF
8061 #define $ac_tr_func 1
8062 EOF
8063  
8064 else
8065   echo "$ac_t""no" 1>&6
8066 fi
8067 done
8068     
8069   else
8070     
8071   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
8072 echo "configure:8073: checking for _qfpclass declaration" >&5
8073   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
8074     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
8075   echo $ac_n "(cached) $ac_c" 1>&6
8076 else
8077   
8078       
8079       ac_ext=C
8080 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8081 ac_cpp='$CXXCPP $CPPFLAGS'
8082 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8083 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8084 cross_compiling=$ac_cv_prog_cxx_cross
8085
8086       cat > conftest.$ac_ext <<EOF
8087 #line 8088 "configure"
8088 #include "confdefs.h"
8089 #include <math.h>
8090                       #ifdef HAVE_IEEEFP_H
8091                       #include <ieeefp.h>
8092                       #endif
8093                      
8094 int main() {
8095  _qfpclass(0);
8096 ; return 0; }
8097 EOF
8098 if { (eval echo configure:8099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8099   rm -rf conftest*
8100   glibcpp_cv_func__qfpclass_use=yes
8101 else
8102   echo "configure: failed program was:" >&5
8103   cat conftest.$ac_ext >&5
8104   rm -rf conftest*
8105   glibcpp_cv_func__qfpclass_use=no
8106 fi
8107 rm -f conftest*
8108       ac_ext=c
8109 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8110 ac_cpp='$CPP $CPPFLAGS'
8111 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8112 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8113 cross_compiling=$ac_cv_prog_cc_cross
8114
8115     
8116 fi
8117
8118   fi
8119   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
8120
8121     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
8122       for ac_func in _qfpclass
8123 do
8124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8125 echo "configure:8126: checking for $ac_func" >&5
8126 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8127   echo $ac_n "(cached) $ac_c" 1>&6
8128 else
8129   cat > conftest.$ac_ext <<EOF
8130 #line 8131 "configure"
8131 #include "confdefs.h"
8132 /* System header to define __stub macros and hopefully few prototypes,
8133     which can conflict with char $ac_func(); below.  */
8134 #include <assert.h>
8135 /* Override any gcc2 internal prototype to avoid an error.  */
8136 /* We use char because int might match the return type of a gcc2
8137     builtin and then its argument prototype would still apply.  */
8138 char $ac_func();
8139
8140 int main() {
8141
8142 /* The GNU C library defines this for functions which it implements
8143     to always fail with ENOSYS.  Some functions are actually named
8144     something starting with __ and the normal name is an alias.  */
8145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8146 choke me
8147 #else
8148 $ac_func();
8149 #endif
8150
8151 ; return 0; }
8152 EOF
8153 if { (eval echo configure:8154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8154   rm -rf conftest*
8155   eval "ac_cv_func_$ac_func=yes"
8156 else
8157   echo "configure: failed program was:" >&5
8158   cat conftest.$ac_ext >&5
8159   rm -rf conftest*
8160   eval "ac_cv_func_$ac_func=no"
8161 fi
8162 rm -f conftest*
8163 fi
8164
8165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8166   echo "$ac_t""yes" 1>&6
8167     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8168   cat >> confdefs.h <<EOF
8169 #define $ac_tr_func 1
8170 EOF
8171  
8172 else
8173   echo "$ac_t""no" 1>&6
8174 fi
8175 done
8176     
8177     fi  
8178   fi
8179
8180
8181     
8182   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
8183 echo "configure:8184: checking for float trig functions" >&5
8184   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
8185   echo $ac_n "(cached) $ac_c" 1>&6
8186 else
8187   
8188     
8189     ac_ext=C
8190 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8191 ac_cpp='$CXXCPP $CPPFLAGS'
8192 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8193 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8194 cross_compiling=$ac_cv_prog_cxx_cross
8195
8196     cat > conftest.$ac_ext <<EOF
8197 #line 8198 "configure"
8198 #include "confdefs.h"
8199 #include <math.h>
8200 int main() {
8201  `for x in acosf asinf atanf \
8202                                           cosf sinf tanf \
8203                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
8204 ; return 0; }
8205 EOF
8206 if { (eval echo configure:8207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8207   rm -rf conftest*
8208   glibcpp_cv_func_float_trig_use=yes
8209 else
8210   echo "configure: failed program was:" >&5
8211   cat conftest.$ac_ext >&5
8212   rm -rf conftest*
8213   glibcpp_cv_func_float_trig_use=no
8214 fi
8215 rm -f conftest*
8216     ac_ext=c
8217 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8218 ac_cpp='$CPP $CPPFLAGS'
8219 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8220 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8221 cross_compiling=$ac_cv_prog_cc_cross
8222
8223 fi
8224
8225   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
8226   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
8227     for ac_func in acosf asinf atanf \
8228                                           cosf sinf tanf \
8229                                           coshf sinhf tanhf
8230 do
8231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8232 echo "configure:8233: checking for $ac_func" >&5
8233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8234   echo $ac_n "(cached) $ac_c" 1>&6
8235 else
8236   cat > conftest.$ac_ext <<EOF
8237 #line 8238 "configure"
8238 #include "confdefs.h"
8239 /* System header to define __stub macros and hopefully few prototypes,
8240     which can conflict with char $ac_func(); below.  */
8241 #include <assert.h>
8242 /* Override any gcc2 internal prototype to avoid an error.  */
8243 /* We use char because int might match the return type of a gcc2
8244     builtin and then its argument prototype would still apply.  */
8245 char $ac_func();
8246
8247 int main() {
8248
8249 /* The GNU C library defines this for functions which it implements
8250     to always fail with ENOSYS.  Some functions are actually named
8251     something starting with __ and the normal name is an alias.  */
8252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8253 choke me
8254 #else
8255 $ac_func();
8256 #endif
8257
8258 ; return 0; }
8259 EOF
8260 if { (eval echo configure:8261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8261   rm -rf conftest*
8262   eval "ac_cv_func_$ac_func=yes"
8263 else
8264   echo "configure: failed program was:" >&5
8265   cat conftest.$ac_ext >&5
8266   rm -rf conftest*
8267   eval "ac_cv_func_$ac_func=no"
8268 fi
8269 rm -f conftest*
8270 fi
8271
8272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8273   echo "$ac_t""yes" 1>&6
8274     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8275   cat >> confdefs.h <<EOF
8276 #define $ac_tr_func 1
8277 EOF
8278  
8279 else
8280   echo "$ac_t""no" 1>&6
8281 fi
8282 done
8283
8284   fi
8285
8286   
8287   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
8288 echo "configure:8289: checking for float round functions" >&5
8289   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
8290   echo $ac_n "(cached) $ac_c" 1>&6
8291 else
8292   
8293     
8294     ac_ext=C
8295 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8296 ac_cpp='$CXXCPP $CPPFLAGS'
8297 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8298 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8299 cross_compiling=$ac_cv_prog_cxx_cross
8300
8301     cat > conftest.$ac_ext <<EOF
8302 #line 8303 "configure"
8303 #include "confdefs.h"
8304 #include <math.h>
8305 int main() {
8306  `for x in ceilf floorf; do echo "$x (0);"; done` 
8307 ; return 0; }
8308 EOF
8309 if { (eval echo configure:8310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8310   rm -rf conftest*
8311   glibcpp_cv_func_float_round_use=yes
8312 else
8313   echo "configure: failed program was:" >&5
8314   cat conftest.$ac_ext >&5
8315   rm -rf conftest*
8316   glibcpp_cv_func_float_round_use=no
8317 fi
8318 rm -f conftest*
8319     ac_ext=c
8320 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8321 ac_cpp='$CPP $CPPFLAGS'
8322 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8323 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8324 cross_compiling=$ac_cv_prog_cc_cross
8325
8326 fi
8327
8328   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
8329   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
8330     for ac_func in ceilf floorf
8331 do
8332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8333 echo "configure:8334: checking for $ac_func" >&5
8334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8335   echo $ac_n "(cached) $ac_c" 1>&6
8336 else
8337   cat > conftest.$ac_ext <<EOF
8338 #line 8339 "configure"
8339 #include "confdefs.h"
8340 /* System header to define __stub macros and hopefully few prototypes,
8341     which can conflict with char $ac_func(); below.  */
8342 #include <assert.h>
8343 /* Override any gcc2 internal prototype to avoid an error.  */
8344 /* We use char because int might match the return type of a gcc2
8345     builtin and then its argument prototype would still apply.  */
8346 char $ac_func();
8347
8348 int main() {
8349
8350 /* The GNU C library defines this for functions which it implements
8351     to always fail with ENOSYS.  Some functions are actually named
8352     something starting with __ and the normal name is an alias.  */
8353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8354 choke me
8355 #else
8356 $ac_func();
8357 #endif
8358
8359 ; return 0; }
8360 EOF
8361 if { (eval echo configure:8362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8362   rm -rf conftest*
8363   eval "ac_cv_func_$ac_func=yes"
8364 else
8365   echo "configure: failed program was:" >&5
8366   cat conftest.$ac_ext >&5
8367   rm -rf conftest*
8368   eval "ac_cv_func_$ac_func=no"
8369 fi
8370 rm -f conftest*
8371 fi
8372
8373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8374   echo "$ac_t""yes" 1>&6
8375     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8376   cat >> confdefs.h <<EOF
8377 #define $ac_tr_func 1
8378 EOF
8379  
8380 else
8381   echo "$ac_t""no" 1>&6
8382 fi
8383 done
8384
8385   fi
8386
8387   
8388   
8389   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
8390 echo "configure:8391: checking for isnanf declaration" >&5
8391   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
8392     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
8393   echo $ac_n "(cached) $ac_c" 1>&6
8394 else
8395   
8396       
8397       ac_ext=C
8398 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8399 ac_cpp='$CXXCPP $CPPFLAGS'
8400 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8401 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8402 cross_compiling=$ac_cv_prog_cxx_cross
8403
8404       cat > conftest.$ac_ext <<EOF
8405 #line 8406 "configure"
8406 #include "confdefs.h"
8407 #include <math.h>
8408                       #ifdef HAVE_IEEEFP_H
8409                       #include <ieeefp.h>
8410                       #endif
8411                      
8412 int main() {
8413  isnanf(0);
8414 ; return 0; }
8415 EOF
8416 if { (eval echo configure:8417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8417   rm -rf conftest*
8418   glibcpp_cv_func_isnanf_use=yes
8419 else
8420   echo "configure: failed program was:" >&5
8421   cat conftest.$ac_ext >&5
8422   rm -rf conftest*
8423   glibcpp_cv_func_isnanf_use=no
8424 fi
8425 rm -f conftest*
8426       ac_ext=c
8427 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8428 ac_cpp='$CPP $CPPFLAGS'
8429 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8430 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8431 cross_compiling=$ac_cv_prog_cc_cross
8432
8433     
8434 fi
8435
8436   fi
8437   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
8438
8439   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
8440     for ac_func in isnanf
8441 do
8442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8443 echo "configure:8444: checking for $ac_func" >&5
8444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8445   echo $ac_n "(cached) $ac_c" 1>&6
8446 else
8447   cat > conftest.$ac_ext <<EOF
8448 #line 8449 "configure"
8449 #include "confdefs.h"
8450 /* System header to define __stub macros and hopefully few prototypes,
8451     which can conflict with char $ac_func(); below.  */
8452 #include <assert.h>
8453 /* Override any gcc2 internal prototype to avoid an error.  */
8454 /* We use char because int might match the return type of a gcc2
8455     builtin and then its argument prototype would still apply.  */
8456 char $ac_func();
8457
8458 int main() {
8459
8460 /* The GNU C library defines this for functions which it implements
8461     to always fail with ENOSYS.  Some functions are actually named
8462     something starting with __ and the normal name is an alias.  */
8463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8464 choke me
8465 #else
8466 $ac_func();
8467 #endif
8468
8469 ; return 0; }
8470 EOF
8471 if { (eval echo configure:8472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8472   rm -rf conftest*
8473   eval "ac_cv_func_$ac_func=yes"
8474 else
8475   echo "configure: failed program was:" >&5
8476   cat conftest.$ac_ext >&5
8477   rm -rf conftest*
8478   eval "ac_cv_func_$ac_func=no"
8479 fi
8480 rm -f conftest*
8481 fi
8482
8483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8484   echo "$ac_t""yes" 1>&6
8485     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8486   cat >> confdefs.h <<EOF
8487 #define $ac_tr_func 1
8488 EOF
8489  
8490 else
8491   echo "$ac_t""no" 1>&6
8492 fi
8493 done
8494     
8495   else
8496     
8497   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
8498 echo "configure:8499: checking for _isnanf declaration" >&5
8499   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
8500     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
8501   echo $ac_n "(cached) $ac_c" 1>&6
8502 else
8503   
8504       
8505       ac_ext=C
8506 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8507 ac_cpp='$CXXCPP $CPPFLAGS'
8508 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8509 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8510 cross_compiling=$ac_cv_prog_cxx_cross
8511
8512       cat > conftest.$ac_ext <<EOF
8513 #line 8514 "configure"
8514 #include "confdefs.h"
8515 #include <math.h>
8516                       #ifdef HAVE_IEEEFP_H
8517                       #include <ieeefp.h>
8518                       #endif
8519                      
8520 int main() {
8521  _isnanf(0);
8522 ; return 0; }
8523 EOF
8524 if { (eval echo configure:8525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8525   rm -rf conftest*
8526   glibcpp_cv_func__isnanf_use=yes
8527 else
8528   echo "configure: failed program was:" >&5
8529   cat conftest.$ac_ext >&5
8530   rm -rf conftest*
8531   glibcpp_cv_func__isnanf_use=no
8532 fi
8533 rm -f conftest*
8534       ac_ext=c
8535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8536 ac_cpp='$CPP $CPPFLAGS'
8537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8539 cross_compiling=$ac_cv_prog_cc_cross
8540
8541     
8542 fi
8543
8544   fi
8545   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
8546
8547     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
8548       for ac_func in _isnanf
8549 do
8550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8551 echo "configure:8552: checking for $ac_func" >&5
8552 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8553   echo $ac_n "(cached) $ac_c" 1>&6
8554 else
8555   cat > conftest.$ac_ext <<EOF
8556 #line 8557 "configure"
8557 #include "confdefs.h"
8558 /* System header to define __stub macros and hopefully few prototypes,
8559     which can conflict with char $ac_func(); below.  */
8560 #include <assert.h>
8561 /* Override any gcc2 internal prototype to avoid an error.  */
8562 /* We use char because int might match the return type of a gcc2
8563     builtin and then its argument prototype would still apply.  */
8564 char $ac_func();
8565
8566 int main() {
8567
8568 /* The GNU C library defines this for functions which it implements
8569     to always fail with ENOSYS.  Some functions are actually named
8570     something starting with __ and the normal name is an alias.  */
8571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8572 choke me
8573 #else
8574 $ac_func();
8575 #endif
8576
8577 ; return 0; }
8578 EOF
8579 if { (eval echo configure:8580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8580   rm -rf conftest*
8581   eval "ac_cv_func_$ac_func=yes"
8582 else
8583   echo "configure: failed program was:" >&5
8584   cat conftest.$ac_ext >&5
8585   rm -rf conftest*
8586   eval "ac_cv_func_$ac_func=no"
8587 fi
8588 rm -f conftest*
8589 fi
8590
8591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8592   echo "$ac_t""yes" 1>&6
8593     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8594   cat >> confdefs.h <<EOF
8595 #define $ac_tr_func 1
8596 EOF
8597  
8598 else
8599   echo "$ac_t""no" 1>&6
8600 fi
8601 done
8602     
8603     fi  
8604   fi
8605
8606   
8607   
8608   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
8609 echo "configure:8610: checking for isinff declaration" >&5
8610   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
8611     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
8612   echo $ac_n "(cached) $ac_c" 1>&6
8613 else
8614   
8615       
8616       ac_ext=C
8617 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8618 ac_cpp='$CXXCPP $CPPFLAGS'
8619 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8620 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8621 cross_compiling=$ac_cv_prog_cxx_cross
8622
8623       cat > conftest.$ac_ext <<EOF
8624 #line 8625 "configure"
8625 #include "confdefs.h"
8626 #include <math.h>
8627                       #ifdef HAVE_IEEEFP_H
8628                       #include <ieeefp.h>
8629                       #endif
8630                      
8631 int main() {
8632  isinff(0);
8633 ; return 0; }
8634 EOF
8635 if { (eval echo configure:8636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8636   rm -rf conftest*
8637   glibcpp_cv_func_isinff_use=yes
8638 else
8639   echo "configure: failed program was:" >&5
8640   cat conftest.$ac_ext >&5
8641   rm -rf conftest*
8642   glibcpp_cv_func_isinff_use=no
8643 fi
8644 rm -f conftest*
8645       ac_ext=c
8646 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8647 ac_cpp='$CPP $CPPFLAGS'
8648 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8649 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8650 cross_compiling=$ac_cv_prog_cc_cross
8651
8652     
8653 fi
8654
8655   fi
8656   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
8657
8658   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
8659     for ac_func in isinff
8660 do
8661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8662 echo "configure:8663: checking for $ac_func" >&5
8663 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8664   echo $ac_n "(cached) $ac_c" 1>&6
8665 else
8666   cat > conftest.$ac_ext <<EOF
8667 #line 8668 "configure"
8668 #include "confdefs.h"
8669 /* System header to define __stub macros and hopefully few prototypes,
8670     which can conflict with char $ac_func(); below.  */
8671 #include <assert.h>
8672 /* Override any gcc2 internal prototype to avoid an error.  */
8673 /* We use char because int might match the return type of a gcc2
8674     builtin and then its argument prototype would still apply.  */
8675 char $ac_func();
8676
8677 int main() {
8678
8679 /* The GNU C library defines this for functions which it implements
8680     to always fail with ENOSYS.  Some functions are actually named
8681     something starting with __ and the normal name is an alias.  */
8682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8683 choke me
8684 #else
8685 $ac_func();
8686 #endif
8687
8688 ; return 0; }
8689 EOF
8690 if { (eval echo configure:8691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8691   rm -rf conftest*
8692   eval "ac_cv_func_$ac_func=yes"
8693 else
8694   echo "configure: failed program was:" >&5
8695   cat conftest.$ac_ext >&5
8696   rm -rf conftest*
8697   eval "ac_cv_func_$ac_func=no"
8698 fi
8699 rm -f conftest*
8700 fi
8701
8702 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8703   echo "$ac_t""yes" 1>&6
8704     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8705   cat >> confdefs.h <<EOF
8706 #define $ac_tr_func 1
8707 EOF
8708  
8709 else
8710   echo "$ac_t""no" 1>&6
8711 fi
8712 done
8713     
8714   else
8715     
8716   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
8717 echo "configure:8718: checking for _isinff declaration" >&5
8718   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
8719     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
8720   echo $ac_n "(cached) $ac_c" 1>&6
8721 else
8722   
8723       
8724       ac_ext=C
8725 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8726 ac_cpp='$CXXCPP $CPPFLAGS'
8727 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8728 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8729 cross_compiling=$ac_cv_prog_cxx_cross
8730
8731       cat > conftest.$ac_ext <<EOF
8732 #line 8733 "configure"
8733 #include "confdefs.h"
8734 #include <math.h>
8735                       #ifdef HAVE_IEEEFP_H
8736                       #include <ieeefp.h>
8737                       #endif
8738                      
8739 int main() {
8740  _isinff(0);
8741 ; return 0; }
8742 EOF
8743 if { (eval echo configure:8744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8744   rm -rf conftest*
8745   glibcpp_cv_func__isinff_use=yes
8746 else
8747   echo "configure: failed program was:" >&5
8748   cat conftest.$ac_ext >&5
8749   rm -rf conftest*
8750   glibcpp_cv_func__isinff_use=no
8751 fi
8752 rm -f conftest*
8753       ac_ext=c
8754 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8755 ac_cpp='$CPP $CPPFLAGS'
8756 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8757 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8758 cross_compiling=$ac_cv_prog_cc_cross
8759
8760     
8761 fi
8762
8763   fi
8764   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8765
8766     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8767       for ac_func in _isinff
8768 do
8769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8770 echo "configure:8771: checking for $ac_func" >&5
8771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8772   echo $ac_n "(cached) $ac_c" 1>&6
8773 else
8774   cat > conftest.$ac_ext <<EOF
8775 #line 8776 "configure"
8776 #include "confdefs.h"
8777 /* System header to define __stub macros and hopefully few prototypes,
8778     which can conflict with char $ac_func(); below.  */
8779 #include <assert.h>
8780 /* Override any gcc2 internal prototype to avoid an error.  */
8781 /* We use char because int might match the return type of a gcc2
8782     builtin and then its argument prototype would still apply.  */
8783 char $ac_func();
8784
8785 int main() {
8786
8787 /* The GNU C library defines this for functions which it implements
8788     to always fail with ENOSYS.  Some functions are actually named
8789     something starting with __ and the normal name is an alias.  */
8790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8791 choke me
8792 #else
8793 $ac_func();
8794 #endif
8795
8796 ; return 0; }
8797 EOF
8798 if { (eval echo configure:8799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8799   rm -rf conftest*
8800   eval "ac_cv_func_$ac_func=yes"
8801 else
8802   echo "configure: failed program was:" >&5
8803   cat conftest.$ac_ext >&5
8804   rm -rf conftest*
8805   eval "ac_cv_func_$ac_func=no"
8806 fi
8807 rm -f conftest*
8808 fi
8809
8810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8811   echo "$ac_t""yes" 1>&6
8812     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8813   cat >> confdefs.h <<EOF
8814 #define $ac_tr_func 1
8815 EOF
8816  
8817 else
8818   echo "$ac_t""no" 1>&6
8819 fi
8820 done
8821     
8822     fi  
8823   fi
8824
8825   
8826   
8827   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
8828 echo "configure:8829: checking for fabsf declaration" >&5
8829   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
8830     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
8831   echo $ac_n "(cached) $ac_c" 1>&6
8832 else
8833   
8834       
8835       ac_ext=C
8836 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8837 ac_cpp='$CXXCPP $CPPFLAGS'
8838 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8839 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8840 cross_compiling=$ac_cv_prog_cxx_cross
8841
8842       cat > conftest.$ac_ext <<EOF
8843 #line 8844 "configure"
8844 #include "confdefs.h"
8845 #include <math.h>
8846                       #ifdef HAVE_IEEEFP_H
8847                       #include <ieeefp.h>
8848                       #endif
8849                      
8850 int main() {
8851  fabsf(0);
8852 ; return 0; }
8853 EOF
8854 if { (eval echo configure:8855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8855   rm -rf conftest*
8856   glibcpp_cv_func_fabsf_use=yes
8857 else
8858   echo "configure: failed program was:" >&5
8859   cat conftest.$ac_ext >&5
8860   rm -rf conftest*
8861   glibcpp_cv_func_fabsf_use=no
8862 fi
8863 rm -f conftest*
8864       ac_ext=c
8865 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8866 ac_cpp='$CPP $CPPFLAGS'
8867 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8868 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8869 cross_compiling=$ac_cv_prog_cc_cross
8870
8871     
8872 fi
8873
8874   fi
8875   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
8876
8877   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
8878     for ac_func in fabsf
8879 do
8880 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8881 echo "configure:8882: checking for $ac_func" >&5
8882 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8883   echo $ac_n "(cached) $ac_c" 1>&6
8884 else
8885   cat > conftest.$ac_ext <<EOF
8886 #line 8887 "configure"
8887 #include "confdefs.h"
8888 /* System header to define __stub macros and hopefully few prototypes,
8889     which can conflict with char $ac_func(); below.  */
8890 #include <assert.h>
8891 /* Override any gcc2 internal prototype to avoid an error.  */
8892 /* We use char because int might match the return type of a gcc2
8893     builtin and then its argument prototype would still apply.  */
8894 char $ac_func();
8895
8896 int main() {
8897
8898 /* The GNU C library defines this for functions which it implements
8899     to always fail with ENOSYS.  Some functions are actually named
8900     something starting with __ and the normal name is an alias.  */
8901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8902 choke me
8903 #else
8904 $ac_func();
8905 #endif
8906
8907 ; return 0; }
8908 EOF
8909 if { (eval echo configure:8910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8910   rm -rf conftest*
8911   eval "ac_cv_func_$ac_func=yes"
8912 else
8913   echo "configure: failed program was:" >&5
8914   cat conftest.$ac_ext >&5
8915   rm -rf conftest*
8916   eval "ac_cv_func_$ac_func=no"
8917 fi
8918 rm -f conftest*
8919 fi
8920
8921 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8922   echo "$ac_t""yes" 1>&6
8923     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8924   cat >> confdefs.h <<EOF
8925 #define $ac_tr_func 1
8926 EOF
8927  
8928 else
8929   echo "$ac_t""no" 1>&6
8930 fi
8931 done
8932     
8933   else
8934     
8935   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
8936 echo "configure:8937: checking for _fabsf declaration" >&5
8937   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
8938     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
8939   echo $ac_n "(cached) $ac_c" 1>&6
8940 else
8941   
8942       
8943       ac_ext=C
8944 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8945 ac_cpp='$CXXCPP $CPPFLAGS'
8946 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8947 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8948 cross_compiling=$ac_cv_prog_cxx_cross
8949
8950       cat > conftest.$ac_ext <<EOF
8951 #line 8952 "configure"
8952 #include "confdefs.h"
8953 #include <math.h>
8954                       #ifdef HAVE_IEEEFP_H
8955                       #include <ieeefp.h>
8956                       #endif
8957                      
8958 int main() {
8959  _fabsf(0);
8960 ; return 0; }
8961 EOF
8962 if { (eval echo configure:8963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8963   rm -rf conftest*
8964   glibcpp_cv_func__fabsf_use=yes
8965 else
8966   echo "configure: failed program was:" >&5
8967   cat conftest.$ac_ext >&5
8968   rm -rf conftest*
8969   glibcpp_cv_func__fabsf_use=no
8970 fi
8971 rm -f conftest*
8972       ac_ext=c
8973 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8974 ac_cpp='$CPP $CPPFLAGS'
8975 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8976 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8977 cross_compiling=$ac_cv_prog_cc_cross
8978
8979     
8980 fi
8981
8982   fi
8983   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
8984
8985     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
8986       for ac_func in _fabsf
8987 do
8988 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8989 echo "configure:8990: checking for $ac_func" >&5
8990 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8991   echo $ac_n "(cached) $ac_c" 1>&6
8992 else
8993   cat > conftest.$ac_ext <<EOF
8994 #line 8995 "configure"
8995 #include "confdefs.h"
8996 /* System header to define __stub macros and hopefully few prototypes,
8997     which can conflict with char $ac_func(); below.  */
8998 #include <assert.h>
8999 /* Override any gcc2 internal prototype to avoid an error.  */
9000 /* We use char because int might match the return type of a gcc2
9001     builtin and then its argument prototype would still apply.  */
9002 char $ac_func();
9003
9004 int main() {
9005
9006 /* The GNU C library defines this for functions which it implements
9007     to always fail with ENOSYS.  Some functions are actually named
9008     something starting with __ and the normal name is an alias.  */
9009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9010 choke me
9011 #else
9012 $ac_func();
9013 #endif
9014
9015 ; return 0; }
9016 EOF
9017 if { (eval echo configure:9018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9018   rm -rf conftest*
9019   eval "ac_cv_func_$ac_func=yes"
9020 else
9021   echo "configure: failed program was:" >&5
9022   cat conftest.$ac_ext >&5
9023   rm -rf conftest*
9024   eval "ac_cv_func_$ac_func=no"
9025 fi
9026 rm -f conftest*
9027 fi
9028
9029 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9030   echo "$ac_t""yes" 1>&6
9031     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9032   cat >> confdefs.h <<EOF
9033 #define $ac_tr_func 1
9034 EOF
9035  
9036 else
9037   echo "$ac_t""no" 1>&6
9038 fi
9039 done
9040     
9041     fi  
9042   fi
9043
9044   
9045   
9046   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
9047 echo "configure:9048: checking for fmodf declaration" >&5
9048   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
9049     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
9050   echo $ac_n "(cached) $ac_c" 1>&6
9051 else
9052   
9053       
9054       ac_ext=C
9055 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9056 ac_cpp='$CXXCPP $CPPFLAGS'
9057 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9058 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9059 cross_compiling=$ac_cv_prog_cxx_cross
9060
9061       cat > conftest.$ac_ext <<EOF
9062 #line 9063 "configure"
9063 #include "confdefs.h"
9064 #include <math.h>
9065 int main() {
9066  fmodf(0, 0);
9067 ; return 0; }
9068 EOF
9069 if { (eval echo configure:9070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9070   rm -rf conftest*
9071   glibcpp_cv_func_fmodf_use=yes
9072 else
9073   echo "configure: failed program was:" >&5
9074   cat conftest.$ac_ext >&5
9075   rm -rf conftest*
9076   glibcpp_cv_func_fmodf_use=no
9077 fi
9078 rm -f conftest*
9079       ac_ext=c
9080 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9081 ac_cpp='$CPP $CPPFLAGS'
9082 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9083 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9084 cross_compiling=$ac_cv_prog_cc_cross
9085
9086     
9087 fi
9088
9089   fi
9090   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
9091
9092   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
9093     for ac_func in fmodf
9094 do
9095 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9096 echo "configure:9097: checking for $ac_func" >&5
9097 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9098   echo $ac_n "(cached) $ac_c" 1>&6
9099 else
9100   cat > conftest.$ac_ext <<EOF
9101 #line 9102 "configure"
9102 #include "confdefs.h"
9103 /* System header to define __stub macros and hopefully few prototypes,
9104     which can conflict with char $ac_func(); below.  */
9105 #include <assert.h>
9106 /* Override any gcc2 internal prototype to avoid an error.  */
9107 /* We use char because int might match the return type of a gcc2
9108     builtin and then its argument prototype would still apply.  */
9109 char $ac_func();
9110
9111 int main() {
9112
9113 /* The GNU C library defines this for functions which it implements
9114     to always fail with ENOSYS.  Some functions are actually named
9115     something starting with __ and the normal name is an alias.  */
9116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9117 choke me
9118 #else
9119 $ac_func();
9120 #endif
9121
9122 ; return 0; }
9123 EOF
9124 if { (eval echo configure:9125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9125   rm -rf conftest*
9126   eval "ac_cv_func_$ac_func=yes"
9127 else
9128   echo "configure: failed program was:" >&5
9129   cat conftest.$ac_ext >&5
9130   rm -rf conftest*
9131   eval "ac_cv_func_$ac_func=no"
9132 fi
9133 rm -f conftest*
9134 fi
9135
9136 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9137   echo "$ac_t""yes" 1>&6
9138     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9139   cat >> confdefs.h <<EOF
9140 #define $ac_tr_func 1
9141 EOF
9142  
9143 else
9144   echo "$ac_t""no" 1>&6
9145 fi
9146 done
9147     
9148   else
9149     
9150   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
9151 echo "configure:9152: checking for _fmodf declaration" >&5
9152   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
9153     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
9154   echo $ac_n "(cached) $ac_c" 1>&6
9155 else
9156   
9157       
9158       ac_ext=C
9159 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9160 ac_cpp='$CXXCPP $CPPFLAGS'
9161 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9162 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9163 cross_compiling=$ac_cv_prog_cxx_cross
9164
9165       cat > conftest.$ac_ext <<EOF
9166 #line 9167 "configure"
9167 #include "confdefs.h"
9168 #include <math.h>
9169 int main() {
9170  _fmodf(0, 0);
9171 ; return 0; }
9172 EOF
9173 if { (eval echo configure:9174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9174   rm -rf conftest*
9175   glibcpp_cv_func__fmodf_use=yes
9176 else
9177   echo "configure: failed program was:" >&5
9178   cat conftest.$ac_ext >&5
9179   rm -rf conftest*
9180   glibcpp_cv_func__fmodf_use=no
9181 fi
9182 rm -f conftest*
9183       ac_ext=c
9184 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9185 ac_cpp='$CPP $CPPFLAGS'
9186 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9187 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9188 cross_compiling=$ac_cv_prog_cc_cross
9189
9190     
9191 fi
9192
9193   fi
9194   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
9195
9196     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
9197       for ac_func in _fmodf
9198 do
9199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9200 echo "configure:9201: checking for $ac_func" >&5
9201 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9202   echo $ac_n "(cached) $ac_c" 1>&6
9203 else
9204   cat > conftest.$ac_ext <<EOF
9205 #line 9206 "configure"
9206 #include "confdefs.h"
9207 /* System header to define __stub macros and hopefully few prototypes,
9208     which can conflict with char $ac_func(); below.  */
9209 #include <assert.h>
9210 /* Override any gcc2 internal prototype to avoid an error.  */
9211 /* We use char because int might match the return type of a gcc2
9212     builtin and then its argument prototype would still apply.  */
9213 char $ac_func();
9214
9215 int main() {
9216
9217 /* The GNU C library defines this for functions which it implements
9218     to always fail with ENOSYS.  Some functions are actually named
9219     something starting with __ and the normal name is an alias.  */
9220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9221 choke me
9222 #else
9223 $ac_func();
9224 #endif
9225
9226 ; return 0; }
9227 EOF
9228 if { (eval echo configure:9229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9229   rm -rf conftest*
9230   eval "ac_cv_func_$ac_func=yes"
9231 else
9232   echo "configure: failed program was:" >&5
9233   cat conftest.$ac_ext >&5
9234   rm -rf conftest*
9235   eval "ac_cv_func_$ac_func=no"
9236 fi
9237 rm -f conftest*
9238 fi
9239
9240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9241   echo "$ac_t""yes" 1>&6
9242     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9243   cat >> confdefs.h <<EOF
9244 #define $ac_tr_func 1
9245 EOF
9246  
9247 else
9248   echo "$ac_t""no" 1>&6
9249 fi
9250 done
9251     
9252     fi  
9253   fi
9254
9255   
9256   
9257   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
9258 echo "configure:9259: checking for frexpf declaration" >&5
9259   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
9260     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
9261   echo $ac_n "(cached) $ac_c" 1>&6
9262 else
9263   
9264       
9265       ac_ext=C
9266 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9267 ac_cpp='$CXXCPP $CPPFLAGS'
9268 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9269 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9270 cross_compiling=$ac_cv_prog_cxx_cross
9271
9272       cat > conftest.$ac_ext <<EOF
9273 #line 9274 "configure"
9274 #include "confdefs.h"
9275 #include <math.h>
9276 int main() {
9277  frexpf(0, 0);
9278 ; return 0; }
9279 EOF
9280 if { (eval echo configure:9281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9281   rm -rf conftest*
9282   glibcpp_cv_func_frexpf_use=yes
9283 else
9284   echo "configure: failed program was:" >&5
9285   cat conftest.$ac_ext >&5
9286   rm -rf conftest*
9287   glibcpp_cv_func_frexpf_use=no
9288 fi
9289 rm -f conftest*
9290       ac_ext=c
9291 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9292 ac_cpp='$CPP $CPPFLAGS'
9293 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9294 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9295 cross_compiling=$ac_cv_prog_cc_cross
9296
9297     
9298 fi
9299
9300   fi
9301   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
9302
9303   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
9304     for ac_func in frexpf
9305 do
9306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9307 echo "configure:9308: checking for $ac_func" >&5
9308 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9309   echo $ac_n "(cached) $ac_c" 1>&6
9310 else
9311   cat > conftest.$ac_ext <<EOF
9312 #line 9313 "configure"
9313 #include "confdefs.h"
9314 /* System header to define __stub macros and hopefully few prototypes,
9315     which can conflict with char $ac_func(); below.  */
9316 #include <assert.h>
9317 /* Override any gcc2 internal prototype to avoid an error.  */
9318 /* We use char because int might match the return type of a gcc2
9319     builtin and then its argument prototype would still apply.  */
9320 char $ac_func();
9321
9322 int main() {
9323
9324 /* The GNU C library defines this for functions which it implements
9325     to always fail with ENOSYS.  Some functions are actually named
9326     something starting with __ and the normal name is an alias.  */
9327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9328 choke me
9329 #else
9330 $ac_func();
9331 #endif
9332
9333 ; return 0; }
9334 EOF
9335 if { (eval echo configure:9336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9336   rm -rf conftest*
9337   eval "ac_cv_func_$ac_func=yes"
9338 else
9339   echo "configure: failed program was:" >&5
9340   cat conftest.$ac_ext >&5
9341   rm -rf conftest*
9342   eval "ac_cv_func_$ac_func=no"
9343 fi
9344 rm -f conftest*
9345 fi
9346
9347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9348   echo "$ac_t""yes" 1>&6
9349     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9350   cat >> confdefs.h <<EOF
9351 #define $ac_tr_func 1
9352 EOF
9353  
9354 else
9355   echo "$ac_t""no" 1>&6
9356 fi
9357 done
9358     
9359   else
9360     
9361   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
9362 echo "configure:9363: checking for _frexpf declaration" >&5
9363   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
9364     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
9365   echo $ac_n "(cached) $ac_c" 1>&6
9366 else
9367   
9368       
9369       ac_ext=C
9370 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9371 ac_cpp='$CXXCPP $CPPFLAGS'
9372 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9373 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9374 cross_compiling=$ac_cv_prog_cxx_cross
9375
9376       cat > conftest.$ac_ext <<EOF
9377 #line 9378 "configure"
9378 #include "confdefs.h"
9379 #include <math.h>
9380 int main() {
9381  _frexpf(0, 0);
9382 ; return 0; }
9383 EOF
9384 if { (eval echo configure:9385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9385   rm -rf conftest*
9386   glibcpp_cv_func__frexpf_use=yes
9387 else
9388   echo "configure: failed program was:" >&5
9389   cat conftest.$ac_ext >&5
9390   rm -rf conftest*
9391   glibcpp_cv_func__frexpf_use=no
9392 fi
9393 rm -f conftest*
9394       ac_ext=c
9395 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9396 ac_cpp='$CPP $CPPFLAGS'
9397 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9398 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9399 cross_compiling=$ac_cv_prog_cc_cross
9400
9401     
9402 fi
9403
9404   fi
9405   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
9406
9407     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
9408       for ac_func in _frexpf
9409 do
9410 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9411 echo "configure:9412: checking for $ac_func" >&5
9412 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9413   echo $ac_n "(cached) $ac_c" 1>&6
9414 else
9415   cat > conftest.$ac_ext <<EOF
9416 #line 9417 "configure"
9417 #include "confdefs.h"
9418 /* System header to define __stub macros and hopefully few prototypes,
9419     which can conflict with char $ac_func(); below.  */
9420 #include <assert.h>
9421 /* Override any gcc2 internal prototype to avoid an error.  */
9422 /* We use char because int might match the return type of a gcc2
9423     builtin and then its argument prototype would still apply.  */
9424 char $ac_func();
9425
9426 int main() {
9427
9428 /* The GNU C library defines this for functions which it implements
9429     to always fail with ENOSYS.  Some functions are actually named
9430     something starting with __ and the normal name is an alias.  */
9431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9432 choke me
9433 #else
9434 $ac_func();
9435 #endif
9436
9437 ; return 0; }
9438 EOF
9439 if { (eval echo configure:9440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9440   rm -rf conftest*
9441   eval "ac_cv_func_$ac_func=yes"
9442 else
9443   echo "configure: failed program was:" >&5
9444   cat conftest.$ac_ext >&5
9445   rm -rf conftest*
9446   eval "ac_cv_func_$ac_func=no"
9447 fi
9448 rm -f conftest*
9449 fi
9450
9451 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9452   echo "$ac_t""yes" 1>&6
9453     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9454   cat >> confdefs.h <<EOF
9455 #define $ac_tr_func 1
9456 EOF
9457  
9458 else
9459   echo "$ac_t""no" 1>&6
9460 fi
9461 done
9462     
9463     fi  
9464   fi
9465
9466   
9467   
9468   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
9469 echo "configure:9470: checking for ldexpf declaration" >&5
9470   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
9471     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
9472   echo $ac_n "(cached) $ac_c" 1>&6
9473 else
9474   
9475       
9476       ac_ext=C
9477 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9478 ac_cpp='$CXXCPP $CPPFLAGS'
9479 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9480 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9481 cross_compiling=$ac_cv_prog_cxx_cross
9482
9483       cat > conftest.$ac_ext <<EOF
9484 #line 9485 "configure"
9485 #include "confdefs.h"
9486 #include <math.h>
9487 int main() {
9488  ldexpf(0, 0);
9489 ; return 0; }
9490 EOF
9491 if { (eval echo configure:9492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9492   rm -rf conftest*
9493   glibcpp_cv_func_ldexpf_use=yes
9494 else
9495   echo "configure: failed program was:" >&5
9496   cat conftest.$ac_ext >&5
9497   rm -rf conftest*
9498   glibcpp_cv_func_ldexpf_use=no
9499 fi
9500 rm -f conftest*
9501       ac_ext=c
9502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9503 ac_cpp='$CPP $CPPFLAGS'
9504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9505 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9506 cross_compiling=$ac_cv_prog_cc_cross
9507
9508     
9509 fi
9510
9511   fi
9512   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
9513
9514   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
9515     for ac_func in ldexpf
9516 do
9517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9518 echo "configure:9519: checking for $ac_func" >&5
9519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9520   echo $ac_n "(cached) $ac_c" 1>&6
9521 else
9522   cat > conftest.$ac_ext <<EOF
9523 #line 9524 "configure"
9524 #include "confdefs.h"
9525 /* System header to define __stub macros and hopefully few prototypes,
9526     which can conflict with char $ac_func(); below.  */
9527 #include <assert.h>
9528 /* Override any gcc2 internal prototype to avoid an error.  */
9529 /* We use char because int might match the return type of a gcc2
9530     builtin and then its argument prototype would still apply.  */
9531 char $ac_func();
9532
9533 int main() {
9534
9535 /* The GNU C library defines this for functions which it implements
9536     to always fail with ENOSYS.  Some functions are actually named
9537     something starting with __ and the normal name is an alias.  */
9538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9539 choke me
9540 #else
9541 $ac_func();
9542 #endif
9543
9544 ; return 0; }
9545 EOF
9546 if { (eval echo configure:9547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9547   rm -rf conftest*
9548   eval "ac_cv_func_$ac_func=yes"
9549 else
9550   echo "configure: failed program was:" >&5
9551   cat conftest.$ac_ext >&5
9552   rm -rf conftest*
9553   eval "ac_cv_func_$ac_func=no"
9554 fi
9555 rm -f conftest*
9556 fi
9557
9558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9559   echo "$ac_t""yes" 1>&6
9560     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9561   cat >> confdefs.h <<EOF
9562 #define $ac_tr_func 1
9563 EOF
9564  
9565 else
9566   echo "$ac_t""no" 1>&6
9567 fi
9568 done
9569     
9570   else
9571     
9572   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
9573 echo "configure:9574: checking for _ldexpf declaration" >&5
9574   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
9575     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
9576   echo $ac_n "(cached) $ac_c" 1>&6
9577 else
9578   
9579       
9580       ac_ext=C
9581 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9582 ac_cpp='$CXXCPP $CPPFLAGS'
9583 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9584 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9585 cross_compiling=$ac_cv_prog_cxx_cross
9586
9587       cat > conftest.$ac_ext <<EOF
9588 #line 9589 "configure"
9589 #include "confdefs.h"
9590 #include <math.h>
9591 int main() {
9592  _ldexpf(0, 0);
9593 ; return 0; }
9594 EOF
9595 if { (eval echo configure:9596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9596   rm -rf conftest*
9597   glibcpp_cv_func__ldexpf_use=yes
9598 else
9599   echo "configure: failed program was:" >&5
9600   cat conftest.$ac_ext >&5
9601   rm -rf conftest*
9602   glibcpp_cv_func__ldexpf_use=no
9603 fi
9604 rm -f conftest*
9605       ac_ext=c
9606 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9607 ac_cpp='$CPP $CPPFLAGS'
9608 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9609 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9610 cross_compiling=$ac_cv_prog_cc_cross
9611
9612     
9613 fi
9614
9615   fi
9616   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
9617
9618     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
9619       for ac_func in _ldexpf
9620 do
9621 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9622 echo "configure:9623: checking for $ac_func" >&5
9623 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9624   echo $ac_n "(cached) $ac_c" 1>&6
9625 else
9626   cat > conftest.$ac_ext <<EOF
9627 #line 9628 "configure"
9628 #include "confdefs.h"
9629 /* System header to define __stub macros and hopefully few prototypes,
9630     which can conflict with char $ac_func(); below.  */
9631 #include <assert.h>
9632 /* Override any gcc2 internal prototype to avoid an error.  */
9633 /* We use char because int might match the return type of a gcc2
9634     builtin and then its argument prototype would still apply.  */
9635 char $ac_func();
9636
9637 int main() {
9638
9639 /* The GNU C library defines this for functions which it implements
9640     to always fail with ENOSYS.  Some functions are actually named
9641     something starting with __ and the normal name is an alias.  */
9642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9643 choke me
9644 #else
9645 $ac_func();
9646 #endif
9647
9648 ; return 0; }
9649 EOF
9650 if { (eval echo configure:9651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9651   rm -rf conftest*
9652   eval "ac_cv_func_$ac_func=yes"
9653 else
9654   echo "configure: failed program was:" >&5
9655   cat conftest.$ac_ext >&5
9656   rm -rf conftest*
9657   eval "ac_cv_func_$ac_func=no"
9658 fi
9659 rm -f conftest*
9660 fi
9661
9662 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9663   echo "$ac_t""yes" 1>&6
9664     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9665   cat >> confdefs.h <<EOF
9666 #define $ac_tr_func 1
9667 EOF
9668  
9669 else
9670   echo "$ac_t""no" 1>&6
9671 fi
9672 done
9673     
9674     fi  
9675   fi
9676
9677   
9678   
9679   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
9680 echo "configure:9681: checking for logf declaration" >&5
9681   if test x${glibcpp_cv_func_logf_use+set} != xset; then
9682     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
9683   echo $ac_n "(cached) $ac_c" 1>&6
9684 else
9685   
9686       
9687       ac_ext=C
9688 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9689 ac_cpp='$CXXCPP $CPPFLAGS'
9690 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9691 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9692 cross_compiling=$ac_cv_prog_cxx_cross
9693
9694       cat > conftest.$ac_ext <<EOF
9695 #line 9696 "configure"
9696 #include "confdefs.h"
9697 #include <math.h>
9698                       #ifdef HAVE_IEEEFP_H
9699                       #include <ieeefp.h>
9700                       #endif
9701                      
9702 int main() {
9703  logf(0);
9704 ; return 0; }
9705 EOF
9706 if { (eval echo configure:9707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9707   rm -rf conftest*
9708   glibcpp_cv_func_logf_use=yes
9709 else
9710   echo "configure: failed program was:" >&5
9711   cat conftest.$ac_ext >&5
9712   rm -rf conftest*
9713   glibcpp_cv_func_logf_use=no
9714 fi
9715 rm -f conftest*
9716       ac_ext=c
9717 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9718 ac_cpp='$CPP $CPPFLAGS'
9719 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9720 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9721 cross_compiling=$ac_cv_prog_cc_cross
9722
9723     
9724 fi
9725
9726   fi
9727   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
9728
9729   if test x$glibcpp_cv_func_logf_use = x"yes"; then
9730     for ac_func in logf
9731 do
9732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9733 echo "configure:9734: checking for $ac_func" >&5
9734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9735   echo $ac_n "(cached) $ac_c" 1>&6
9736 else
9737   cat > conftest.$ac_ext <<EOF
9738 #line 9739 "configure"
9739 #include "confdefs.h"
9740 /* System header to define __stub macros and hopefully few prototypes,
9741     which can conflict with char $ac_func(); below.  */
9742 #include <assert.h>
9743 /* Override any gcc2 internal prototype to avoid an error.  */
9744 /* We use char because int might match the return type of a gcc2
9745     builtin and then its argument prototype would still apply.  */
9746 char $ac_func();
9747
9748 int main() {
9749
9750 /* The GNU C library defines this for functions which it implements
9751     to always fail with ENOSYS.  Some functions are actually named
9752     something starting with __ and the normal name is an alias.  */
9753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9754 choke me
9755 #else
9756 $ac_func();
9757 #endif
9758
9759 ; return 0; }
9760 EOF
9761 if { (eval echo configure:9762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9762   rm -rf conftest*
9763   eval "ac_cv_func_$ac_func=yes"
9764 else
9765   echo "configure: failed program was:" >&5
9766   cat conftest.$ac_ext >&5
9767   rm -rf conftest*
9768   eval "ac_cv_func_$ac_func=no"
9769 fi
9770 rm -f conftest*
9771 fi
9772
9773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9774   echo "$ac_t""yes" 1>&6
9775     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9776   cat >> confdefs.h <<EOF
9777 #define $ac_tr_func 1
9778 EOF
9779  
9780 else
9781   echo "$ac_t""no" 1>&6
9782 fi
9783 done
9784     
9785   else
9786     
9787   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
9788 echo "configure:9789: checking for _logf declaration" >&5
9789   if test x${glibcpp_cv_func__logf_use+set} != xset; then
9790     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
9791   echo $ac_n "(cached) $ac_c" 1>&6
9792 else
9793   
9794       
9795       ac_ext=C
9796 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9797 ac_cpp='$CXXCPP $CPPFLAGS'
9798 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9799 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9800 cross_compiling=$ac_cv_prog_cxx_cross
9801
9802       cat > conftest.$ac_ext <<EOF
9803 #line 9804 "configure"
9804 #include "confdefs.h"
9805 #include <math.h>
9806                       #ifdef HAVE_IEEEFP_H
9807                       #include <ieeefp.h>
9808                       #endif
9809                      
9810 int main() {
9811  _logf(0);
9812 ; return 0; }
9813 EOF
9814 if { (eval echo configure:9815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9815   rm -rf conftest*
9816   glibcpp_cv_func__logf_use=yes
9817 else
9818   echo "configure: failed program was:" >&5
9819   cat conftest.$ac_ext >&5
9820   rm -rf conftest*
9821   glibcpp_cv_func__logf_use=no
9822 fi
9823 rm -f conftest*
9824       ac_ext=c
9825 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9826 ac_cpp='$CPP $CPPFLAGS'
9827 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9828 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9829 cross_compiling=$ac_cv_prog_cc_cross
9830
9831     
9832 fi
9833
9834   fi
9835   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
9836
9837     if test x$glibcpp_cv_func__logf_use = x"yes"; then
9838       for ac_func in _logf
9839 do
9840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9841 echo "configure:9842: checking for $ac_func" >&5
9842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9843   echo $ac_n "(cached) $ac_c" 1>&6
9844 else
9845   cat > conftest.$ac_ext <<EOF
9846 #line 9847 "configure"
9847 #include "confdefs.h"
9848 /* System header to define __stub macros and hopefully few prototypes,
9849     which can conflict with char $ac_func(); below.  */
9850 #include <assert.h>
9851 /* Override any gcc2 internal prototype to avoid an error.  */
9852 /* We use char because int might match the return type of a gcc2
9853     builtin and then its argument prototype would still apply.  */
9854 char $ac_func();
9855
9856 int main() {
9857
9858 /* The GNU C library defines this for functions which it implements
9859     to always fail with ENOSYS.  Some functions are actually named
9860     something starting with __ and the normal name is an alias.  */
9861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9862 choke me
9863 #else
9864 $ac_func();
9865 #endif
9866
9867 ; return 0; }
9868 EOF
9869 if { (eval echo configure:9870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9870   rm -rf conftest*
9871   eval "ac_cv_func_$ac_func=yes"
9872 else
9873   echo "configure: failed program was:" >&5
9874   cat conftest.$ac_ext >&5
9875   rm -rf conftest*
9876   eval "ac_cv_func_$ac_func=no"
9877 fi
9878 rm -f conftest*
9879 fi
9880
9881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9882   echo "$ac_t""yes" 1>&6
9883     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9884   cat >> confdefs.h <<EOF
9885 #define $ac_tr_func 1
9886 EOF
9887  
9888 else
9889   echo "$ac_t""no" 1>&6
9890 fi
9891 done
9892     
9893     fi  
9894   fi
9895
9896   
9897   
9898   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
9899 echo "configure:9900: checking for log10f declaration" >&5
9900   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
9901     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
9902   echo $ac_n "(cached) $ac_c" 1>&6
9903 else
9904   
9905       
9906       ac_ext=C
9907 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9908 ac_cpp='$CXXCPP $CPPFLAGS'
9909 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9910 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9911 cross_compiling=$ac_cv_prog_cxx_cross
9912
9913       cat > conftest.$ac_ext <<EOF
9914 #line 9915 "configure"
9915 #include "confdefs.h"
9916 #include <math.h>
9917                       #ifdef HAVE_IEEEFP_H
9918                       #include <ieeefp.h>
9919                       #endif
9920                      
9921 int main() {
9922  log10f(0);
9923 ; return 0; }
9924 EOF
9925 if { (eval echo configure:9926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9926   rm -rf conftest*
9927   glibcpp_cv_func_log10f_use=yes
9928 else
9929   echo "configure: failed program was:" >&5
9930   cat conftest.$ac_ext >&5
9931   rm -rf conftest*
9932   glibcpp_cv_func_log10f_use=no
9933 fi
9934 rm -f conftest*
9935       ac_ext=c
9936 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9937 ac_cpp='$CPP $CPPFLAGS'
9938 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9939 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9940 cross_compiling=$ac_cv_prog_cc_cross
9941
9942     
9943 fi
9944
9945   fi
9946   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
9947
9948   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
9949     for ac_func in log10f
9950 do
9951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9952 echo "configure:9953: checking for $ac_func" >&5
9953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9954   echo $ac_n "(cached) $ac_c" 1>&6
9955 else
9956   cat > conftest.$ac_ext <<EOF
9957 #line 9958 "configure"
9958 #include "confdefs.h"
9959 /* System header to define __stub macros and hopefully few prototypes,
9960     which can conflict with char $ac_func(); below.  */
9961 #include <assert.h>
9962 /* Override any gcc2 internal prototype to avoid an error.  */
9963 /* We use char because int might match the return type of a gcc2
9964     builtin and then its argument prototype would still apply.  */
9965 char $ac_func();
9966
9967 int main() {
9968
9969 /* The GNU C library defines this for functions which it implements
9970     to always fail with ENOSYS.  Some functions are actually named
9971     something starting with __ and the normal name is an alias.  */
9972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9973 choke me
9974 #else
9975 $ac_func();
9976 #endif
9977
9978 ; return 0; }
9979 EOF
9980 if { (eval echo configure:9981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9981   rm -rf conftest*
9982   eval "ac_cv_func_$ac_func=yes"
9983 else
9984   echo "configure: failed program was:" >&5
9985   cat conftest.$ac_ext >&5
9986   rm -rf conftest*
9987   eval "ac_cv_func_$ac_func=no"
9988 fi
9989 rm -f conftest*
9990 fi
9991
9992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9993   echo "$ac_t""yes" 1>&6
9994     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9995   cat >> confdefs.h <<EOF
9996 #define $ac_tr_func 1
9997 EOF
9998  
9999 else
10000   echo "$ac_t""no" 1>&6
10001 fi
10002 done
10003     
10004   else
10005     
10006   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
10007 echo "configure:10008: checking for _log10f declaration" >&5
10008   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
10009     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
10010   echo $ac_n "(cached) $ac_c" 1>&6
10011 else
10012   
10013       
10014       ac_ext=C
10015 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10016 ac_cpp='$CXXCPP $CPPFLAGS'
10017 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10018 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10019 cross_compiling=$ac_cv_prog_cxx_cross
10020
10021       cat > conftest.$ac_ext <<EOF
10022 #line 10023 "configure"
10023 #include "confdefs.h"
10024 #include <math.h>
10025                       #ifdef HAVE_IEEEFP_H
10026                       #include <ieeefp.h>
10027                       #endif
10028                      
10029 int main() {
10030  _log10f(0);
10031 ; return 0; }
10032 EOF
10033 if { (eval echo configure:10034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10034   rm -rf conftest*
10035   glibcpp_cv_func__log10f_use=yes
10036 else
10037   echo "configure: failed program was:" >&5
10038   cat conftest.$ac_ext >&5
10039   rm -rf conftest*
10040   glibcpp_cv_func__log10f_use=no
10041 fi
10042 rm -f conftest*
10043       ac_ext=c
10044 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10045 ac_cpp='$CPP $CPPFLAGS'
10046 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10047 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10048 cross_compiling=$ac_cv_prog_cc_cross
10049
10050     
10051 fi
10052
10053   fi
10054   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
10055
10056     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
10057       for ac_func in _log10f
10058 do
10059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10060 echo "configure:10061: checking for $ac_func" >&5
10061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10062   echo $ac_n "(cached) $ac_c" 1>&6
10063 else
10064   cat > conftest.$ac_ext <<EOF
10065 #line 10066 "configure"
10066 #include "confdefs.h"
10067 /* System header to define __stub macros and hopefully few prototypes,
10068     which can conflict with char $ac_func(); below.  */
10069 #include <assert.h>
10070 /* Override any gcc2 internal prototype to avoid an error.  */
10071 /* We use char because int might match the return type of a gcc2
10072     builtin and then its argument prototype would still apply.  */
10073 char $ac_func();
10074
10075 int main() {
10076
10077 /* The GNU C library defines this for functions which it implements
10078     to always fail with ENOSYS.  Some functions are actually named
10079     something starting with __ and the normal name is an alias.  */
10080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10081 choke me
10082 #else
10083 $ac_func();
10084 #endif
10085
10086 ; return 0; }
10087 EOF
10088 if { (eval echo configure:10089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10089   rm -rf conftest*
10090   eval "ac_cv_func_$ac_func=yes"
10091 else
10092   echo "configure: failed program was:" >&5
10093   cat conftest.$ac_ext >&5
10094   rm -rf conftest*
10095   eval "ac_cv_func_$ac_func=no"
10096 fi
10097 rm -f conftest*
10098 fi
10099
10100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10101   echo "$ac_t""yes" 1>&6
10102     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10103   cat >> confdefs.h <<EOF
10104 #define $ac_tr_func 1
10105 EOF
10106  
10107 else
10108   echo "$ac_t""no" 1>&6
10109 fi
10110 done
10111     
10112     fi  
10113   fi
10114
10115   
10116   
10117   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
10118 echo "configure:10119: checking for modff declaration" >&5
10119   if test x${glibcpp_cv_func_modff_use+set} != xset; then
10120     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
10121   echo $ac_n "(cached) $ac_c" 1>&6
10122 else
10123   
10124       
10125       ac_ext=C
10126 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10127 ac_cpp='$CXXCPP $CPPFLAGS'
10128 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10129 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10130 cross_compiling=$ac_cv_prog_cxx_cross
10131
10132       cat > conftest.$ac_ext <<EOF
10133 #line 10134 "configure"
10134 #include "confdefs.h"
10135 #include <math.h>
10136 int main() {
10137  modff(0, 0);
10138 ; return 0; }
10139 EOF
10140 if { (eval echo configure:10141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10141   rm -rf conftest*
10142   glibcpp_cv_func_modff_use=yes
10143 else
10144   echo "configure: failed program was:" >&5
10145   cat conftest.$ac_ext >&5
10146   rm -rf conftest*
10147   glibcpp_cv_func_modff_use=no
10148 fi
10149 rm -f conftest*
10150       ac_ext=c
10151 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10152 ac_cpp='$CPP $CPPFLAGS'
10153 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10154 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10155 cross_compiling=$ac_cv_prog_cc_cross
10156
10157     
10158 fi
10159
10160   fi
10161   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
10162
10163   if test x$glibcpp_cv_func_modff_use = x"yes"; then
10164     for ac_func in modff
10165 do
10166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10167 echo "configure:10168: checking for $ac_func" >&5
10168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10169   echo $ac_n "(cached) $ac_c" 1>&6
10170 else
10171   cat > conftest.$ac_ext <<EOF
10172 #line 10173 "configure"
10173 #include "confdefs.h"
10174 /* System header to define __stub macros and hopefully few prototypes,
10175     which can conflict with char $ac_func(); below.  */
10176 #include <assert.h>
10177 /* Override any gcc2 internal prototype to avoid an error.  */
10178 /* We use char because int might match the return type of a gcc2
10179     builtin and then its argument prototype would still apply.  */
10180 char $ac_func();
10181
10182 int main() {
10183
10184 /* The GNU C library defines this for functions which it implements
10185     to always fail with ENOSYS.  Some functions are actually named
10186     something starting with __ and the normal name is an alias.  */
10187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10188 choke me
10189 #else
10190 $ac_func();
10191 #endif
10192
10193 ; return 0; }
10194 EOF
10195 if { (eval echo configure:10196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10196   rm -rf conftest*
10197   eval "ac_cv_func_$ac_func=yes"
10198 else
10199   echo "configure: failed program was:" >&5
10200   cat conftest.$ac_ext >&5
10201   rm -rf conftest*
10202   eval "ac_cv_func_$ac_func=no"
10203 fi
10204 rm -f conftest*
10205 fi
10206
10207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10208   echo "$ac_t""yes" 1>&6
10209     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10210   cat >> confdefs.h <<EOF
10211 #define $ac_tr_func 1
10212 EOF
10213  
10214 else
10215   echo "$ac_t""no" 1>&6
10216 fi
10217 done
10218     
10219   else
10220     
10221   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
10222 echo "configure:10223: checking for _modff declaration" >&5
10223   if test x${glibcpp_cv_func__modff_use+set} != xset; then
10224     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
10225   echo $ac_n "(cached) $ac_c" 1>&6
10226 else
10227   
10228       
10229       ac_ext=C
10230 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10231 ac_cpp='$CXXCPP $CPPFLAGS'
10232 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10233 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10234 cross_compiling=$ac_cv_prog_cxx_cross
10235
10236       cat > conftest.$ac_ext <<EOF
10237 #line 10238 "configure"
10238 #include "confdefs.h"
10239 #include <math.h>
10240 int main() {
10241  _modff(0, 0);
10242 ; return 0; }
10243 EOF
10244 if { (eval echo configure:10245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10245   rm -rf conftest*
10246   glibcpp_cv_func__modff_use=yes
10247 else
10248   echo "configure: failed program was:" >&5
10249   cat conftest.$ac_ext >&5
10250   rm -rf conftest*
10251   glibcpp_cv_func__modff_use=no
10252 fi
10253 rm -f conftest*
10254       ac_ext=c
10255 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10256 ac_cpp='$CPP $CPPFLAGS'
10257 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10258 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10259 cross_compiling=$ac_cv_prog_cc_cross
10260
10261     
10262 fi
10263
10264   fi
10265   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
10266
10267     if test x$glibcpp_cv_func__modff_use = x"yes"; then
10268       for ac_func in _modff
10269 do
10270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10271 echo "configure:10272: checking for $ac_func" >&5
10272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10273   echo $ac_n "(cached) $ac_c" 1>&6
10274 else
10275   cat > conftest.$ac_ext <<EOF
10276 #line 10277 "configure"
10277 #include "confdefs.h"
10278 /* System header to define __stub macros and hopefully few prototypes,
10279     which can conflict with char $ac_func(); below.  */
10280 #include <assert.h>
10281 /* Override any gcc2 internal prototype to avoid an error.  */
10282 /* We use char because int might match the return type of a gcc2
10283     builtin and then its argument prototype would still apply.  */
10284 char $ac_func();
10285
10286 int main() {
10287
10288 /* The GNU C library defines this for functions which it implements
10289     to always fail with ENOSYS.  Some functions are actually named
10290     something starting with __ and the normal name is an alias.  */
10291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10292 choke me
10293 #else
10294 $ac_func();
10295 #endif
10296
10297 ; return 0; }
10298 EOF
10299 if { (eval echo configure:10300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10300   rm -rf conftest*
10301   eval "ac_cv_func_$ac_func=yes"
10302 else
10303   echo "configure: failed program was:" >&5
10304   cat conftest.$ac_ext >&5
10305   rm -rf conftest*
10306   eval "ac_cv_func_$ac_func=no"
10307 fi
10308 rm -f conftest*
10309 fi
10310
10311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10312   echo "$ac_t""yes" 1>&6
10313     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10314   cat >> confdefs.h <<EOF
10315 #define $ac_tr_func 1
10316 EOF
10317  
10318 else
10319   echo "$ac_t""no" 1>&6
10320 fi
10321 done
10322     
10323     fi  
10324   fi
10325
10326   
10327   
10328   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
10329 echo "configure:10330: checking for powf declaration" >&5
10330   if test x${glibcpp_cv_func_powf_use+set} != xset; then
10331     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
10332   echo $ac_n "(cached) $ac_c" 1>&6
10333 else
10334   
10335       
10336       ac_ext=C
10337 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10338 ac_cpp='$CXXCPP $CPPFLAGS'
10339 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10340 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10341 cross_compiling=$ac_cv_prog_cxx_cross
10342
10343       cat > conftest.$ac_ext <<EOF
10344 #line 10345 "configure"
10345 #include "confdefs.h"
10346 #include <math.h>
10347 int main() {
10348  powf(0, 0);
10349 ; return 0; }
10350 EOF
10351 if { (eval echo configure:10352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10352   rm -rf conftest*
10353   glibcpp_cv_func_powf_use=yes
10354 else
10355   echo "configure: failed program was:" >&5
10356   cat conftest.$ac_ext >&5
10357   rm -rf conftest*
10358   glibcpp_cv_func_powf_use=no
10359 fi
10360 rm -f conftest*
10361       ac_ext=c
10362 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10363 ac_cpp='$CPP $CPPFLAGS'
10364 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10365 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10366 cross_compiling=$ac_cv_prog_cc_cross
10367
10368     
10369 fi
10370
10371   fi
10372   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
10373
10374   if test x$glibcpp_cv_func_powf_use = x"yes"; then
10375     for ac_func in powf
10376 do
10377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10378 echo "configure:10379: checking for $ac_func" >&5
10379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10380   echo $ac_n "(cached) $ac_c" 1>&6
10381 else
10382   cat > conftest.$ac_ext <<EOF
10383 #line 10384 "configure"
10384 #include "confdefs.h"
10385 /* System header to define __stub macros and hopefully few prototypes,
10386     which can conflict with char $ac_func(); below.  */
10387 #include <assert.h>
10388 /* Override any gcc2 internal prototype to avoid an error.  */
10389 /* We use char because int might match the return type of a gcc2
10390     builtin and then its argument prototype would still apply.  */
10391 char $ac_func();
10392
10393 int main() {
10394
10395 /* The GNU C library defines this for functions which it implements
10396     to always fail with ENOSYS.  Some functions are actually named
10397     something starting with __ and the normal name is an alias.  */
10398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10399 choke me
10400 #else
10401 $ac_func();
10402 #endif
10403
10404 ; return 0; }
10405 EOF
10406 if { (eval echo configure:10407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10407   rm -rf conftest*
10408   eval "ac_cv_func_$ac_func=yes"
10409 else
10410   echo "configure: failed program was:" >&5
10411   cat conftest.$ac_ext >&5
10412   rm -rf conftest*
10413   eval "ac_cv_func_$ac_func=no"
10414 fi
10415 rm -f conftest*
10416 fi
10417
10418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10419   echo "$ac_t""yes" 1>&6
10420     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10421   cat >> confdefs.h <<EOF
10422 #define $ac_tr_func 1
10423 EOF
10424  
10425 else
10426   echo "$ac_t""no" 1>&6
10427 fi
10428 done
10429     
10430   else
10431     
10432   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
10433 echo "configure:10434: checking for _powf declaration" >&5
10434   if test x${glibcpp_cv_func__powf_use+set} != xset; then
10435     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
10436   echo $ac_n "(cached) $ac_c" 1>&6
10437 else
10438   
10439       
10440       ac_ext=C
10441 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10442 ac_cpp='$CXXCPP $CPPFLAGS'
10443 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10444 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10445 cross_compiling=$ac_cv_prog_cxx_cross
10446
10447       cat > conftest.$ac_ext <<EOF
10448 #line 10449 "configure"
10449 #include "confdefs.h"
10450 #include <math.h>
10451 int main() {
10452  _powf(0, 0);
10453 ; return 0; }
10454 EOF
10455 if { (eval echo configure:10456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10456   rm -rf conftest*
10457   glibcpp_cv_func__powf_use=yes
10458 else
10459   echo "configure: failed program was:" >&5
10460   cat conftest.$ac_ext >&5
10461   rm -rf conftest*
10462   glibcpp_cv_func__powf_use=no
10463 fi
10464 rm -f conftest*
10465       ac_ext=c
10466 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10467 ac_cpp='$CPP $CPPFLAGS'
10468 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10469 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10470 cross_compiling=$ac_cv_prog_cc_cross
10471
10472     
10473 fi
10474
10475   fi
10476   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
10477
10478     if test x$glibcpp_cv_func__powf_use = x"yes"; then
10479       for ac_func in _powf
10480 do
10481 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10482 echo "configure:10483: checking for $ac_func" >&5
10483 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10484   echo $ac_n "(cached) $ac_c" 1>&6
10485 else
10486   cat > conftest.$ac_ext <<EOF
10487 #line 10488 "configure"
10488 #include "confdefs.h"
10489 /* System header to define __stub macros and hopefully few prototypes,
10490     which can conflict with char $ac_func(); below.  */
10491 #include <assert.h>
10492 /* Override any gcc2 internal prototype to avoid an error.  */
10493 /* We use char because int might match the return type of a gcc2
10494     builtin and then its argument prototype would still apply.  */
10495 char $ac_func();
10496
10497 int main() {
10498
10499 /* The GNU C library defines this for functions which it implements
10500     to always fail with ENOSYS.  Some functions are actually named
10501     something starting with __ and the normal name is an alias.  */
10502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10503 choke me
10504 #else
10505 $ac_func();
10506 #endif
10507
10508 ; return 0; }
10509 EOF
10510 if { (eval echo configure:10511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10511   rm -rf conftest*
10512   eval "ac_cv_func_$ac_func=yes"
10513 else
10514   echo "configure: failed program was:" >&5
10515   cat conftest.$ac_ext >&5
10516   rm -rf conftest*
10517   eval "ac_cv_func_$ac_func=no"
10518 fi
10519 rm -f conftest*
10520 fi
10521
10522 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10523   echo "$ac_t""yes" 1>&6
10524     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10525   cat >> confdefs.h <<EOF
10526 #define $ac_tr_func 1
10527 EOF
10528  
10529 else
10530   echo "$ac_t""no" 1>&6
10531 fi
10532 done
10533     
10534     fi  
10535   fi
10536
10537   
10538   
10539   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
10540 echo "configure:10541: checking for sqrtf declaration" >&5
10541   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
10542     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
10543   echo $ac_n "(cached) $ac_c" 1>&6
10544 else
10545   
10546       
10547       ac_ext=C
10548 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10549 ac_cpp='$CXXCPP $CPPFLAGS'
10550 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10551 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10552 cross_compiling=$ac_cv_prog_cxx_cross
10553
10554       cat > conftest.$ac_ext <<EOF
10555 #line 10556 "configure"
10556 #include "confdefs.h"
10557 #include <math.h>
10558                       #ifdef HAVE_IEEEFP_H
10559                       #include <ieeefp.h>
10560                       #endif
10561                      
10562 int main() {
10563  sqrtf(0);
10564 ; return 0; }
10565 EOF
10566 if { (eval echo configure:10567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10567   rm -rf conftest*
10568   glibcpp_cv_func_sqrtf_use=yes
10569 else
10570   echo "configure: failed program was:" >&5
10571   cat conftest.$ac_ext >&5
10572   rm -rf conftest*
10573   glibcpp_cv_func_sqrtf_use=no
10574 fi
10575 rm -f conftest*
10576       ac_ext=c
10577 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10578 ac_cpp='$CPP $CPPFLAGS'
10579 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10580 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10581 cross_compiling=$ac_cv_prog_cc_cross
10582
10583     
10584 fi
10585
10586   fi
10587   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
10588
10589   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
10590     for ac_func in sqrtf
10591 do
10592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10593 echo "configure:10594: checking for $ac_func" >&5
10594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10595   echo $ac_n "(cached) $ac_c" 1>&6
10596 else
10597   cat > conftest.$ac_ext <<EOF
10598 #line 10599 "configure"
10599 #include "confdefs.h"
10600 /* System header to define __stub macros and hopefully few prototypes,
10601     which can conflict with char $ac_func(); below.  */
10602 #include <assert.h>
10603 /* Override any gcc2 internal prototype to avoid an error.  */
10604 /* We use char because int might match the return type of a gcc2
10605     builtin and then its argument prototype would still apply.  */
10606 char $ac_func();
10607
10608 int main() {
10609
10610 /* The GNU C library defines this for functions which it implements
10611     to always fail with ENOSYS.  Some functions are actually named
10612     something starting with __ and the normal name is an alias.  */
10613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10614 choke me
10615 #else
10616 $ac_func();
10617 #endif
10618
10619 ; return 0; }
10620 EOF
10621 if { (eval echo configure:10622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10622   rm -rf conftest*
10623   eval "ac_cv_func_$ac_func=yes"
10624 else
10625   echo "configure: failed program was:" >&5
10626   cat conftest.$ac_ext >&5
10627   rm -rf conftest*
10628   eval "ac_cv_func_$ac_func=no"
10629 fi
10630 rm -f conftest*
10631 fi
10632
10633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10634   echo "$ac_t""yes" 1>&6
10635     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10636   cat >> confdefs.h <<EOF
10637 #define $ac_tr_func 1
10638 EOF
10639  
10640 else
10641   echo "$ac_t""no" 1>&6
10642 fi
10643 done
10644     
10645   else
10646     
10647   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
10648 echo "configure:10649: checking for _sqrtf declaration" >&5
10649   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
10650     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
10651   echo $ac_n "(cached) $ac_c" 1>&6
10652 else
10653   
10654       
10655       ac_ext=C
10656 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10657 ac_cpp='$CXXCPP $CPPFLAGS'
10658 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10659 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10660 cross_compiling=$ac_cv_prog_cxx_cross
10661
10662       cat > conftest.$ac_ext <<EOF
10663 #line 10664 "configure"
10664 #include "confdefs.h"
10665 #include <math.h>
10666                       #ifdef HAVE_IEEEFP_H
10667                       #include <ieeefp.h>
10668                       #endif
10669                      
10670 int main() {
10671  _sqrtf(0);
10672 ; return 0; }
10673 EOF
10674 if { (eval echo configure:10675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10675   rm -rf conftest*
10676   glibcpp_cv_func__sqrtf_use=yes
10677 else
10678   echo "configure: failed program was:" >&5
10679   cat conftest.$ac_ext >&5
10680   rm -rf conftest*
10681   glibcpp_cv_func__sqrtf_use=no
10682 fi
10683 rm -f conftest*
10684       ac_ext=c
10685 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10686 ac_cpp='$CPP $CPPFLAGS'
10687 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10688 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10689 cross_compiling=$ac_cv_prog_cc_cross
10690
10691     
10692 fi
10693
10694   fi
10695   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
10696
10697     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
10698       for ac_func in _sqrtf
10699 do
10700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10701 echo "configure:10702: checking for $ac_func" >&5
10702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10703   echo $ac_n "(cached) $ac_c" 1>&6
10704 else
10705   cat > conftest.$ac_ext <<EOF
10706 #line 10707 "configure"
10707 #include "confdefs.h"
10708 /* System header to define __stub macros and hopefully few prototypes,
10709     which can conflict with char $ac_func(); below.  */
10710 #include <assert.h>
10711 /* Override any gcc2 internal prototype to avoid an error.  */
10712 /* We use char because int might match the return type of a gcc2
10713     builtin and then its argument prototype would still apply.  */
10714 char $ac_func();
10715
10716 int main() {
10717
10718 /* The GNU C library defines this for functions which it implements
10719     to always fail with ENOSYS.  Some functions are actually named
10720     something starting with __ and the normal name is an alias.  */
10721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10722 choke me
10723 #else
10724 $ac_func();
10725 #endif
10726
10727 ; return 0; }
10728 EOF
10729 if { (eval echo configure:10730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10730   rm -rf conftest*
10731   eval "ac_cv_func_$ac_func=yes"
10732 else
10733   echo "configure: failed program was:" >&5
10734   cat conftest.$ac_ext >&5
10735   rm -rf conftest*
10736   eval "ac_cv_func_$ac_func=no"
10737 fi
10738 rm -f conftest*
10739 fi
10740
10741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10742   echo "$ac_t""yes" 1>&6
10743     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10744   cat >> confdefs.h <<EOF
10745 #define $ac_tr_func 1
10746 EOF
10747  
10748 else
10749   echo "$ac_t""no" 1>&6
10750 fi
10751 done
10752     
10753     fi  
10754   fi
10755
10756   
10757   
10758   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
10759 echo "configure:10760: checking for sincosf declaration" >&5
10760   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
10761     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
10762   echo $ac_n "(cached) $ac_c" 1>&6
10763 else
10764   
10765       
10766       ac_ext=C
10767 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10768 ac_cpp='$CXXCPP $CPPFLAGS'
10769 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10770 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10771 cross_compiling=$ac_cv_prog_cxx_cross
10772
10773       cat > conftest.$ac_ext <<EOF
10774 #line 10775 "configure"
10775 #include "confdefs.h"
10776 #include <math.h>
10777 int main() {
10778  sincosf(0, 0, 0);
10779 ; return 0; }
10780 EOF
10781 if { (eval echo configure:10782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10782   rm -rf conftest*
10783   glibcpp_cv_func_sincosf_use=yes
10784 else
10785   echo "configure: failed program was:" >&5
10786   cat conftest.$ac_ext >&5
10787   rm -rf conftest*
10788   glibcpp_cv_func_sincosf_use=no
10789 fi
10790 rm -f conftest*
10791       ac_ext=c
10792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10793 ac_cpp='$CPP $CPPFLAGS'
10794 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10795 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10796 cross_compiling=$ac_cv_prog_cc_cross
10797
10798     
10799 fi
10800
10801   fi
10802   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
10803
10804   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
10805     for ac_func in sincosf
10806 do
10807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10808 echo "configure:10809: checking for $ac_func" >&5
10809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10810   echo $ac_n "(cached) $ac_c" 1>&6
10811 else
10812   cat > conftest.$ac_ext <<EOF
10813 #line 10814 "configure"
10814 #include "confdefs.h"
10815 /* System header to define __stub macros and hopefully few prototypes,
10816     which can conflict with char $ac_func(); below.  */
10817 #include <assert.h>
10818 /* Override any gcc2 internal prototype to avoid an error.  */
10819 /* We use char because int might match the return type of a gcc2
10820     builtin and then its argument prototype would still apply.  */
10821 char $ac_func();
10822
10823 int main() {
10824
10825 /* The GNU C library defines this for functions which it implements
10826     to always fail with ENOSYS.  Some functions are actually named
10827     something starting with __ and the normal name is an alias.  */
10828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10829 choke me
10830 #else
10831 $ac_func();
10832 #endif
10833
10834 ; return 0; }
10835 EOF
10836 if { (eval echo configure:10837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10837   rm -rf conftest*
10838   eval "ac_cv_func_$ac_func=yes"
10839 else
10840   echo "configure: failed program was:" >&5
10841   cat conftest.$ac_ext >&5
10842   rm -rf conftest*
10843   eval "ac_cv_func_$ac_func=no"
10844 fi
10845 rm -f conftest*
10846 fi
10847
10848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10849   echo "$ac_t""yes" 1>&6
10850     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10851   cat >> confdefs.h <<EOF
10852 #define $ac_tr_func 1
10853 EOF
10854  
10855 else
10856   echo "$ac_t""no" 1>&6
10857 fi
10858 done
10859     
10860   else
10861     
10862   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
10863 echo "configure:10864: checking for _sincosf declaration" >&5
10864   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
10865     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
10866   echo $ac_n "(cached) $ac_c" 1>&6
10867 else
10868   
10869       
10870       ac_ext=C
10871 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10872 ac_cpp='$CXXCPP $CPPFLAGS'
10873 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10874 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10875 cross_compiling=$ac_cv_prog_cxx_cross
10876
10877       cat > conftest.$ac_ext <<EOF
10878 #line 10879 "configure"
10879 #include "confdefs.h"
10880 #include <math.h>
10881 int main() {
10882  _sincosf(0, 0, 0);
10883 ; return 0; }
10884 EOF
10885 if { (eval echo configure:10886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10886   rm -rf conftest*
10887   glibcpp_cv_func__sincosf_use=yes
10888 else
10889   echo "configure: failed program was:" >&5
10890   cat conftest.$ac_ext >&5
10891   rm -rf conftest*
10892   glibcpp_cv_func__sincosf_use=no
10893 fi
10894 rm -f conftest*
10895       ac_ext=c
10896 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10897 ac_cpp='$CPP $CPPFLAGS'
10898 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10899 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10900 cross_compiling=$ac_cv_prog_cc_cross
10901
10902     
10903 fi
10904
10905   fi
10906   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
10907
10908     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
10909       for ac_func in _sincosf
10910 do
10911 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10912 echo "configure:10913: checking for $ac_func" >&5
10913 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10914   echo $ac_n "(cached) $ac_c" 1>&6
10915 else
10916   cat > conftest.$ac_ext <<EOF
10917 #line 10918 "configure"
10918 #include "confdefs.h"
10919 /* System header to define __stub macros and hopefully few prototypes,
10920     which can conflict with char $ac_func(); below.  */
10921 #include <assert.h>
10922 /* Override any gcc2 internal prototype to avoid an error.  */
10923 /* We use char because int might match the return type of a gcc2
10924     builtin and then its argument prototype would still apply.  */
10925 char $ac_func();
10926
10927 int main() {
10928
10929 /* The GNU C library defines this for functions which it implements
10930     to always fail with ENOSYS.  Some functions are actually named
10931     something starting with __ and the normal name is an alias.  */
10932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10933 choke me
10934 #else
10935 $ac_func();
10936 #endif
10937
10938 ; return 0; }
10939 EOF
10940 if { (eval echo configure:10941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10941   rm -rf conftest*
10942   eval "ac_cv_func_$ac_func=yes"
10943 else
10944   echo "configure: failed program was:" >&5
10945   cat conftest.$ac_ext >&5
10946   rm -rf conftest*
10947   eval "ac_cv_func_$ac_func=no"
10948 fi
10949 rm -f conftest*
10950 fi
10951
10952 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10953   echo "$ac_t""yes" 1>&6
10954     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10955   cat >> confdefs.h <<EOF
10956 #define $ac_tr_func 1
10957 EOF
10958  
10959 else
10960   echo "$ac_t""no" 1>&6
10961 fi
10962 done
10963     
10964     fi  
10965   fi
10966
10967   
10968   
10969   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
10970 echo "configure:10971: checking for finitef declaration" >&5
10971   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
10972     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
10973   echo $ac_n "(cached) $ac_c" 1>&6
10974 else
10975   
10976       
10977       ac_ext=C
10978 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10979 ac_cpp='$CXXCPP $CPPFLAGS'
10980 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10981 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10982 cross_compiling=$ac_cv_prog_cxx_cross
10983
10984       cat > conftest.$ac_ext <<EOF
10985 #line 10986 "configure"
10986 #include "confdefs.h"
10987 #include <math.h>
10988                       #ifdef HAVE_IEEEFP_H
10989                       #include <ieeefp.h>
10990                       #endif
10991                      
10992 int main() {
10993  finitef(0);
10994 ; return 0; }
10995 EOF
10996 if { (eval echo configure:10997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10997   rm -rf conftest*
10998   glibcpp_cv_func_finitef_use=yes
10999 else
11000   echo "configure: failed program was:" >&5
11001   cat conftest.$ac_ext >&5
11002   rm -rf conftest*
11003   glibcpp_cv_func_finitef_use=no
11004 fi
11005 rm -f conftest*
11006       ac_ext=c
11007 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11008 ac_cpp='$CPP $CPPFLAGS'
11009 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11010 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11011 cross_compiling=$ac_cv_prog_cc_cross
11012
11013     
11014 fi
11015
11016   fi
11017   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
11018
11019   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
11020     for ac_func in finitef
11021 do
11022 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11023 echo "configure:11024: checking for $ac_func" >&5
11024 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11025   echo $ac_n "(cached) $ac_c" 1>&6
11026 else
11027   cat > conftest.$ac_ext <<EOF
11028 #line 11029 "configure"
11029 #include "confdefs.h"
11030 /* System header to define __stub macros and hopefully few prototypes,
11031     which can conflict with char $ac_func(); below.  */
11032 #include <assert.h>
11033 /* Override any gcc2 internal prototype to avoid an error.  */
11034 /* We use char because int might match the return type of a gcc2
11035     builtin and then its argument prototype would still apply.  */
11036 char $ac_func();
11037
11038 int main() {
11039
11040 /* The GNU C library defines this for functions which it implements
11041     to always fail with ENOSYS.  Some functions are actually named
11042     something starting with __ and the normal name is an alias.  */
11043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11044 choke me
11045 #else
11046 $ac_func();
11047 #endif
11048
11049 ; return 0; }
11050 EOF
11051 if { (eval echo configure:11052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11052   rm -rf conftest*
11053   eval "ac_cv_func_$ac_func=yes"
11054 else
11055   echo "configure: failed program was:" >&5
11056   cat conftest.$ac_ext >&5
11057   rm -rf conftest*
11058   eval "ac_cv_func_$ac_func=no"
11059 fi
11060 rm -f conftest*
11061 fi
11062
11063 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11064   echo "$ac_t""yes" 1>&6
11065     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11066   cat >> confdefs.h <<EOF
11067 #define $ac_tr_func 1
11068 EOF
11069  
11070 else
11071   echo "$ac_t""no" 1>&6
11072 fi
11073 done
11074     
11075   else
11076     
11077   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
11078 echo "configure:11079: checking for _finitef declaration" >&5
11079   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
11080     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
11081   echo $ac_n "(cached) $ac_c" 1>&6
11082 else
11083   
11084       
11085       ac_ext=C
11086 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11087 ac_cpp='$CXXCPP $CPPFLAGS'
11088 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11089 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11090 cross_compiling=$ac_cv_prog_cxx_cross
11091
11092       cat > conftest.$ac_ext <<EOF
11093 #line 11094 "configure"
11094 #include "confdefs.h"
11095 #include <math.h>
11096                       #ifdef HAVE_IEEEFP_H
11097                       #include <ieeefp.h>
11098                       #endif
11099                      
11100 int main() {
11101  _finitef(0);
11102 ; return 0; }
11103 EOF
11104 if { (eval echo configure:11105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11105   rm -rf conftest*
11106   glibcpp_cv_func__finitef_use=yes
11107 else
11108   echo "configure: failed program was:" >&5
11109   cat conftest.$ac_ext >&5
11110   rm -rf conftest*
11111   glibcpp_cv_func__finitef_use=no
11112 fi
11113 rm -f conftest*
11114       ac_ext=c
11115 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11116 ac_cpp='$CPP $CPPFLAGS'
11117 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11118 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11119 cross_compiling=$ac_cv_prog_cc_cross
11120
11121     
11122 fi
11123
11124   fi
11125   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
11126
11127     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
11128       for ac_func in _finitef
11129 do
11130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11131 echo "configure:11132: checking for $ac_func" >&5
11132 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11133   echo $ac_n "(cached) $ac_c" 1>&6
11134 else
11135   cat > conftest.$ac_ext <<EOF
11136 #line 11137 "configure"
11137 #include "confdefs.h"
11138 /* System header to define __stub macros and hopefully few prototypes,
11139     which can conflict with char $ac_func(); below.  */
11140 #include <assert.h>
11141 /* Override any gcc2 internal prototype to avoid an error.  */
11142 /* We use char because int might match the return type of a gcc2
11143     builtin and then its argument prototype would still apply.  */
11144 char $ac_func();
11145
11146 int main() {
11147
11148 /* The GNU C library defines this for functions which it implements
11149     to always fail with ENOSYS.  Some functions are actually named
11150     something starting with __ and the normal name is an alias.  */
11151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11152 choke me
11153 #else
11154 $ac_func();
11155 #endif
11156
11157 ; return 0; }
11158 EOF
11159 if { (eval echo configure:11160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11160   rm -rf conftest*
11161   eval "ac_cv_func_$ac_func=yes"
11162 else
11163   echo "configure: failed program was:" >&5
11164   cat conftest.$ac_ext >&5
11165   rm -rf conftest*
11166   eval "ac_cv_func_$ac_func=no"
11167 fi
11168 rm -f conftest*
11169 fi
11170
11171 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11172   echo "$ac_t""yes" 1>&6
11173     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11174   cat >> confdefs.h <<EOF
11175 #define $ac_tr_func 1
11176 EOF
11177  
11178 else
11179   echo "$ac_t""no" 1>&6
11180 fi
11181 done
11182     
11183     fi  
11184   fi
11185
11186
11187     
11188   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
11189 echo "configure:11190: checking for long double trig functions" >&5
11190   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
11191   echo $ac_n "(cached) $ac_c" 1>&6
11192 else
11193   
11194     
11195     ac_ext=C
11196 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11197 ac_cpp='$CXXCPP $CPPFLAGS'
11198 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11199 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11200 cross_compiling=$ac_cv_prog_cxx_cross
11201
11202     cat > conftest.$ac_ext <<EOF
11203 #line 11204 "configure"
11204 #include "confdefs.h"
11205 #include <math.h>
11206 int main() {
11207  `for x in acosl asinl atanl \
11208                                           cosl sinl tanl \
11209                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
11210 ; return 0; }
11211 EOF
11212 if { (eval echo configure:11213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11213   rm -rf conftest*
11214   glibcpp_cv_func_long_double_trig_use=yes
11215 else
11216   echo "configure: failed program was:" >&5
11217   cat conftest.$ac_ext >&5
11218   rm -rf conftest*
11219   glibcpp_cv_func_long_double_trig_use=no
11220 fi
11221 rm -f conftest*
11222     ac_ext=c
11223 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11224 ac_cpp='$CPP $CPPFLAGS'
11225 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11226 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11227 cross_compiling=$ac_cv_prog_cc_cross
11228
11229 fi
11230
11231   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
11232   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
11233     for ac_func in acosl asinl atanl \
11234                                           cosl sinl tanl \
11235                                           coshl sinhl tanhl
11236 do
11237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11238 echo "configure:11239: checking for $ac_func" >&5
11239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11240   echo $ac_n "(cached) $ac_c" 1>&6
11241 else
11242   cat > conftest.$ac_ext <<EOF
11243 #line 11244 "configure"
11244 #include "confdefs.h"
11245 /* System header to define __stub macros and hopefully few prototypes,
11246     which can conflict with char $ac_func(); below.  */
11247 #include <assert.h>
11248 /* Override any gcc2 internal prototype to avoid an error.  */
11249 /* We use char because int might match the return type of a gcc2
11250     builtin and then its argument prototype would still apply.  */
11251 char $ac_func();
11252
11253 int main() {
11254
11255 /* The GNU C library defines this for functions which it implements
11256     to always fail with ENOSYS.  Some functions are actually named
11257     something starting with __ and the normal name is an alias.  */
11258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11259 choke me
11260 #else
11261 $ac_func();
11262 #endif
11263
11264 ; return 0; }
11265 EOF
11266 if { (eval echo configure:11267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11267   rm -rf conftest*
11268   eval "ac_cv_func_$ac_func=yes"
11269 else
11270   echo "configure: failed program was:" >&5
11271   cat conftest.$ac_ext >&5
11272   rm -rf conftest*
11273   eval "ac_cv_func_$ac_func=no"
11274 fi
11275 rm -f conftest*
11276 fi
11277
11278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11279   echo "$ac_t""yes" 1>&6
11280     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11281   cat >> confdefs.h <<EOF
11282 #define $ac_tr_func 1
11283 EOF
11284  
11285 else
11286   echo "$ac_t""no" 1>&6
11287 fi
11288 done
11289
11290   fi
11291
11292   
11293   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
11294 echo "configure:11295: checking for long double round functions" >&5
11295   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
11296   echo $ac_n "(cached) $ac_c" 1>&6
11297 else
11298   
11299     
11300     ac_ext=C
11301 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11302 ac_cpp='$CXXCPP $CPPFLAGS'
11303 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11304 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11305 cross_compiling=$ac_cv_prog_cxx_cross
11306
11307     cat > conftest.$ac_ext <<EOF
11308 #line 11309 "configure"
11309 #include "confdefs.h"
11310 #include <math.h>
11311 int main() {
11312  `for x in ceill floorl; do echo "$x (0);"; done` 
11313 ; return 0; }
11314 EOF
11315 if { (eval echo configure:11316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11316   rm -rf conftest*
11317   glibcpp_cv_func_long_double_round_use=yes
11318 else
11319   echo "configure: failed program was:" >&5
11320   cat conftest.$ac_ext >&5
11321   rm -rf conftest*
11322   glibcpp_cv_func_long_double_round_use=no
11323 fi
11324 rm -f conftest*
11325     ac_ext=c
11326 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11327 ac_cpp='$CPP $CPPFLAGS'
11328 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11329 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11330 cross_compiling=$ac_cv_prog_cc_cross
11331
11332 fi
11333
11334   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
11335   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
11336     for ac_func in ceill floorl
11337 do
11338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11339 echo "configure:11340: checking for $ac_func" >&5
11340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11341   echo $ac_n "(cached) $ac_c" 1>&6
11342 else
11343   cat > conftest.$ac_ext <<EOF
11344 #line 11345 "configure"
11345 #include "confdefs.h"
11346 /* System header to define __stub macros and hopefully few prototypes,
11347     which can conflict with char $ac_func(); below.  */
11348 #include <assert.h>
11349 /* Override any gcc2 internal prototype to avoid an error.  */
11350 /* We use char because int might match the return type of a gcc2
11351     builtin and then its argument prototype would still apply.  */
11352 char $ac_func();
11353
11354 int main() {
11355
11356 /* The GNU C library defines this for functions which it implements
11357     to always fail with ENOSYS.  Some functions are actually named
11358     something starting with __ and the normal name is an alias.  */
11359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11360 choke me
11361 #else
11362 $ac_func();
11363 #endif
11364
11365 ; return 0; }
11366 EOF
11367 if { (eval echo configure:11368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11368   rm -rf conftest*
11369   eval "ac_cv_func_$ac_func=yes"
11370 else
11371   echo "configure: failed program was:" >&5
11372   cat conftest.$ac_ext >&5
11373   rm -rf conftest*
11374   eval "ac_cv_func_$ac_func=no"
11375 fi
11376 rm -f conftest*
11377 fi
11378
11379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11380   echo "$ac_t""yes" 1>&6
11381     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11382   cat >> confdefs.h <<EOF
11383 #define $ac_tr_func 1
11384 EOF
11385  
11386 else
11387   echo "$ac_t""no" 1>&6
11388 fi
11389 done
11390
11391   fi
11392
11393   
11394   
11395   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
11396 echo "configure:11397: checking for isnanl declaration" >&5
11397   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
11398     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
11399   echo $ac_n "(cached) $ac_c" 1>&6
11400 else
11401   
11402       
11403       ac_ext=C
11404 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11405 ac_cpp='$CXXCPP $CPPFLAGS'
11406 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11407 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11408 cross_compiling=$ac_cv_prog_cxx_cross
11409
11410       cat > conftest.$ac_ext <<EOF
11411 #line 11412 "configure"
11412 #include "confdefs.h"
11413 #include <math.h>
11414                       #ifdef HAVE_IEEEFP_H
11415                       #include <ieeefp.h>
11416                       #endif
11417                      
11418 int main() {
11419  isnanl(0);
11420 ; return 0; }
11421 EOF
11422 if { (eval echo configure:11423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11423   rm -rf conftest*
11424   glibcpp_cv_func_isnanl_use=yes
11425 else
11426   echo "configure: failed program was:" >&5
11427   cat conftest.$ac_ext >&5
11428   rm -rf conftest*
11429   glibcpp_cv_func_isnanl_use=no
11430 fi
11431 rm -f conftest*
11432       ac_ext=c
11433 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11434 ac_cpp='$CPP $CPPFLAGS'
11435 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11436 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11437 cross_compiling=$ac_cv_prog_cc_cross
11438
11439     
11440 fi
11441
11442   fi
11443   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
11444
11445   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
11446     for ac_func in isnanl
11447 do
11448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11449 echo "configure:11450: checking for $ac_func" >&5
11450 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11451   echo $ac_n "(cached) $ac_c" 1>&6
11452 else
11453   cat > conftest.$ac_ext <<EOF
11454 #line 11455 "configure"
11455 #include "confdefs.h"
11456 /* System header to define __stub macros and hopefully few prototypes,
11457     which can conflict with char $ac_func(); below.  */
11458 #include <assert.h>
11459 /* Override any gcc2 internal prototype to avoid an error.  */
11460 /* We use char because int might match the return type of a gcc2
11461     builtin and then its argument prototype would still apply.  */
11462 char $ac_func();
11463
11464 int main() {
11465
11466 /* The GNU C library defines this for functions which it implements
11467     to always fail with ENOSYS.  Some functions are actually named
11468     something starting with __ and the normal name is an alias.  */
11469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11470 choke me
11471 #else
11472 $ac_func();
11473 #endif
11474
11475 ; return 0; }
11476 EOF
11477 if { (eval echo configure:11478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11478   rm -rf conftest*
11479   eval "ac_cv_func_$ac_func=yes"
11480 else
11481   echo "configure: failed program was:" >&5
11482   cat conftest.$ac_ext >&5
11483   rm -rf conftest*
11484   eval "ac_cv_func_$ac_func=no"
11485 fi
11486 rm -f conftest*
11487 fi
11488
11489 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11490   echo "$ac_t""yes" 1>&6
11491     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11492   cat >> confdefs.h <<EOF
11493 #define $ac_tr_func 1
11494 EOF
11495  
11496 else
11497   echo "$ac_t""no" 1>&6
11498 fi
11499 done
11500     
11501   else
11502     
11503   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
11504 echo "configure:11505: checking for _isnanl declaration" >&5
11505   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
11506     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
11507   echo $ac_n "(cached) $ac_c" 1>&6
11508 else
11509   
11510       
11511       ac_ext=C
11512 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11513 ac_cpp='$CXXCPP $CPPFLAGS'
11514 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11515 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11516 cross_compiling=$ac_cv_prog_cxx_cross
11517
11518       cat > conftest.$ac_ext <<EOF
11519 #line 11520 "configure"
11520 #include "confdefs.h"
11521 #include <math.h>
11522                       #ifdef HAVE_IEEEFP_H
11523                       #include <ieeefp.h>
11524                       #endif
11525                      
11526 int main() {
11527  _isnanl(0);
11528 ; return 0; }
11529 EOF
11530 if { (eval echo configure:11531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11531   rm -rf conftest*
11532   glibcpp_cv_func__isnanl_use=yes
11533 else
11534   echo "configure: failed program was:" >&5
11535   cat conftest.$ac_ext >&5
11536   rm -rf conftest*
11537   glibcpp_cv_func__isnanl_use=no
11538 fi
11539 rm -f conftest*
11540       ac_ext=c
11541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11542 ac_cpp='$CPP $CPPFLAGS'
11543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11545 cross_compiling=$ac_cv_prog_cc_cross
11546
11547     
11548 fi
11549
11550   fi
11551   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
11552
11553     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
11554       for ac_func in _isnanl
11555 do
11556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11557 echo "configure:11558: checking for $ac_func" >&5
11558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11559   echo $ac_n "(cached) $ac_c" 1>&6
11560 else
11561   cat > conftest.$ac_ext <<EOF
11562 #line 11563 "configure"
11563 #include "confdefs.h"
11564 /* System header to define __stub macros and hopefully few prototypes,
11565     which can conflict with char $ac_func(); below.  */
11566 #include <assert.h>
11567 /* Override any gcc2 internal prototype to avoid an error.  */
11568 /* We use char because int might match the return type of a gcc2
11569     builtin and then its argument prototype would still apply.  */
11570 char $ac_func();
11571
11572 int main() {
11573
11574 /* The GNU C library defines this for functions which it implements
11575     to always fail with ENOSYS.  Some functions are actually named
11576     something starting with __ and the normal name is an alias.  */
11577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11578 choke me
11579 #else
11580 $ac_func();
11581 #endif
11582
11583 ; return 0; }
11584 EOF
11585 if { (eval echo configure:11586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11586   rm -rf conftest*
11587   eval "ac_cv_func_$ac_func=yes"
11588 else
11589   echo "configure: failed program was:" >&5
11590   cat conftest.$ac_ext >&5
11591   rm -rf conftest*
11592   eval "ac_cv_func_$ac_func=no"
11593 fi
11594 rm -f conftest*
11595 fi
11596
11597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11598   echo "$ac_t""yes" 1>&6
11599     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11600   cat >> confdefs.h <<EOF
11601 #define $ac_tr_func 1
11602 EOF
11603  
11604 else
11605   echo "$ac_t""no" 1>&6
11606 fi
11607 done
11608     
11609     fi  
11610   fi
11611
11612   
11613   
11614   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
11615 echo "configure:11616: checking for isinfl declaration" >&5
11616   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
11617     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
11618   echo $ac_n "(cached) $ac_c" 1>&6
11619 else
11620   
11621       
11622       ac_ext=C
11623 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11624 ac_cpp='$CXXCPP $CPPFLAGS'
11625 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11626 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11627 cross_compiling=$ac_cv_prog_cxx_cross
11628
11629       cat > conftest.$ac_ext <<EOF
11630 #line 11631 "configure"
11631 #include "confdefs.h"
11632 #include <math.h>
11633                       #ifdef HAVE_IEEEFP_H
11634                       #include <ieeefp.h>
11635                       #endif
11636                      
11637 int main() {
11638  isinfl(0);
11639 ; return 0; }
11640 EOF
11641 if { (eval echo configure:11642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11642   rm -rf conftest*
11643   glibcpp_cv_func_isinfl_use=yes
11644 else
11645   echo "configure: failed program was:" >&5
11646   cat conftest.$ac_ext >&5
11647   rm -rf conftest*
11648   glibcpp_cv_func_isinfl_use=no
11649 fi
11650 rm -f conftest*
11651       ac_ext=c
11652 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11653 ac_cpp='$CPP $CPPFLAGS'
11654 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11655 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11656 cross_compiling=$ac_cv_prog_cc_cross
11657
11658     
11659 fi
11660
11661   fi
11662   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
11663
11664   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
11665     for ac_func in isinfl
11666 do
11667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11668 echo "configure:11669: checking for $ac_func" >&5
11669 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11670   echo $ac_n "(cached) $ac_c" 1>&6
11671 else
11672   cat > conftest.$ac_ext <<EOF
11673 #line 11674 "configure"
11674 #include "confdefs.h"
11675 /* System header to define __stub macros and hopefully few prototypes,
11676     which can conflict with char $ac_func(); below.  */
11677 #include <assert.h>
11678 /* Override any gcc2 internal prototype to avoid an error.  */
11679 /* We use char because int might match the return type of a gcc2
11680     builtin and then its argument prototype would still apply.  */
11681 char $ac_func();
11682
11683 int main() {
11684
11685 /* The GNU C library defines this for functions which it implements
11686     to always fail with ENOSYS.  Some functions are actually named
11687     something starting with __ and the normal name is an alias.  */
11688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11689 choke me
11690 #else
11691 $ac_func();
11692 #endif
11693
11694 ; return 0; }
11695 EOF
11696 if { (eval echo configure:11697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11697   rm -rf conftest*
11698   eval "ac_cv_func_$ac_func=yes"
11699 else
11700   echo "configure: failed program was:" >&5
11701   cat conftest.$ac_ext >&5
11702   rm -rf conftest*
11703   eval "ac_cv_func_$ac_func=no"
11704 fi
11705 rm -f conftest*
11706 fi
11707
11708 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11709   echo "$ac_t""yes" 1>&6
11710     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11711   cat >> confdefs.h <<EOF
11712 #define $ac_tr_func 1
11713 EOF
11714  
11715 else
11716   echo "$ac_t""no" 1>&6
11717 fi
11718 done
11719     
11720   else
11721     
11722   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
11723 echo "configure:11724: checking for _isinfl declaration" >&5
11724   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
11725     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
11726   echo $ac_n "(cached) $ac_c" 1>&6
11727 else
11728   
11729       
11730       ac_ext=C
11731 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11732 ac_cpp='$CXXCPP $CPPFLAGS'
11733 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11734 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11735 cross_compiling=$ac_cv_prog_cxx_cross
11736
11737       cat > conftest.$ac_ext <<EOF
11738 #line 11739 "configure"
11739 #include "confdefs.h"
11740 #include <math.h>
11741                       #ifdef HAVE_IEEEFP_H
11742                       #include <ieeefp.h>
11743                       #endif
11744                      
11745 int main() {
11746  _isinfl(0);
11747 ; return 0; }
11748 EOF
11749 if { (eval echo configure:11750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11750   rm -rf conftest*
11751   glibcpp_cv_func__isinfl_use=yes
11752 else
11753   echo "configure: failed program was:" >&5
11754   cat conftest.$ac_ext >&5
11755   rm -rf conftest*
11756   glibcpp_cv_func__isinfl_use=no
11757 fi
11758 rm -f conftest*
11759       ac_ext=c
11760 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11761 ac_cpp='$CPP $CPPFLAGS'
11762 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11763 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11764 cross_compiling=$ac_cv_prog_cc_cross
11765
11766     
11767 fi
11768
11769   fi
11770   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
11771
11772     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
11773       for ac_func in _isinfl
11774 do
11775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11776 echo "configure:11777: checking for $ac_func" >&5
11777 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11778   echo $ac_n "(cached) $ac_c" 1>&6
11779 else
11780   cat > conftest.$ac_ext <<EOF
11781 #line 11782 "configure"
11782 #include "confdefs.h"
11783 /* System header to define __stub macros and hopefully few prototypes,
11784     which can conflict with char $ac_func(); below.  */
11785 #include <assert.h>
11786 /* Override any gcc2 internal prototype to avoid an error.  */
11787 /* We use char because int might match the return type of a gcc2
11788     builtin and then its argument prototype would still apply.  */
11789 char $ac_func();
11790
11791 int main() {
11792
11793 /* The GNU C library defines this for functions which it implements
11794     to always fail with ENOSYS.  Some functions are actually named
11795     something starting with __ and the normal name is an alias.  */
11796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11797 choke me
11798 #else
11799 $ac_func();
11800 #endif
11801
11802 ; return 0; }
11803 EOF
11804 if { (eval echo configure:11805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11805   rm -rf conftest*
11806   eval "ac_cv_func_$ac_func=yes"
11807 else
11808   echo "configure: failed program was:" >&5
11809   cat conftest.$ac_ext >&5
11810   rm -rf conftest*
11811   eval "ac_cv_func_$ac_func=no"
11812 fi
11813 rm -f conftest*
11814 fi
11815
11816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11817   echo "$ac_t""yes" 1>&6
11818     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11819   cat >> confdefs.h <<EOF
11820 #define $ac_tr_func 1
11821 EOF
11822  
11823 else
11824   echo "$ac_t""no" 1>&6
11825 fi
11826 done
11827     
11828     fi  
11829   fi
11830
11831   
11832   
11833   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
11834 echo "configure:11835: checking for copysignl declaration" >&5
11835   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
11836     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
11837   echo $ac_n "(cached) $ac_c" 1>&6
11838 else
11839   
11840       
11841       ac_ext=C
11842 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11843 ac_cpp='$CXXCPP $CPPFLAGS'
11844 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11845 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11846 cross_compiling=$ac_cv_prog_cxx_cross
11847
11848       cat > conftest.$ac_ext <<EOF
11849 #line 11850 "configure"
11850 #include "confdefs.h"
11851 #include <math.h>
11852 int main() {
11853  copysignl(0, 0);
11854 ; return 0; }
11855 EOF
11856 if { (eval echo configure:11857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11857   rm -rf conftest*
11858   glibcpp_cv_func_copysignl_use=yes
11859 else
11860   echo "configure: failed program was:" >&5
11861   cat conftest.$ac_ext >&5
11862   rm -rf conftest*
11863   glibcpp_cv_func_copysignl_use=no
11864 fi
11865 rm -f conftest*
11866       ac_ext=c
11867 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11868 ac_cpp='$CPP $CPPFLAGS'
11869 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11870 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11871 cross_compiling=$ac_cv_prog_cc_cross
11872
11873     
11874 fi
11875
11876   fi
11877   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
11878
11879   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
11880     for ac_func in copysignl
11881 do
11882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11883 echo "configure:11884: checking for $ac_func" >&5
11884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11885   echo $ac_n "(cached) $ac_c" 1>&6
11886 else
11887   cat > conftest.$ac_ext <<EOF
11888 #line 11889 "configure"
11889 #include "confdefs.h"
11890 /* System header to define __stub macros and hopefully few prototypes,
11891     which can conflict with char $ac_func(); below.  */
11892 #include <assert.h>
11893 /* Override any gcc2 internal prototype to avoid an error.  */
11894 /* We use char because int might match the return type of a gcc2
11895     builtin and then its argument prototype would still apply.  */
11896 char $ac_func();
11897
11898 int main() {
11899
11900 /* The GNU C library defines this for functions which it implements
11901     to always fail with ENOSYS.  Some functions are actually named
11902     something starting with __ and the normal name is an alias.  */
11903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11904 choke me
11905 #else
11906 $ac_func();
11907 #endif
11908
11909 ; return 0; }
11910 EOF
11911 if { (eval echo configure:11912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11912   rm -rf conftest*
11913   eval "ac_cv_func_$ac_func=yes"
11914 else
11915   echo "configure: failed program was:" >&5
11916   cat conftest.$ac_ext >&5
11917   rm -rf conftest*
11918   eval "ac_cv_func_$ac_func=no"
11919 fi
11920 rm -f conftest*
11921 fi
11922
11923 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11924   echo "$ac_t""yes" 1>&6
11925     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11926   cat >> confdefs.h <<EOF
11927 #define $ac_tr_func 1
11928 EOF
11929  
11930 else
11931   echo "$ac_t""no" 1>&6
11932 fi
11933 done
11934     
11935   else
11936     
11937   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
11938 echo "configure:11939: checking for _copysignl declaration" >&5
11939   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
11940     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
11941   echo $ac_n "(cached) $ac_c" 1>&6
11942 else
11943   
11944       
11945       ac_ext=C
11946 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11947 ac_cpp='$CXXCPP $CPPFLAGS'
11948 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11949 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11950 cross_compiling=$ac_cv_prog_cxx_cross
11951
11952       cat > conftest.$ac_ext <<EOF
11953 #line 11954 "configure"
11954 #include "confdefs.h"
11955 #include <math.h>
11956 int main() {
11957  _copysignl(0, 0);
11958 ; return 0; }
11959 EOF
11960 if { (eval echo configure:11961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11961   rm -rf conftest*
11962   glibcpp_cv_func__copysignl_use=yes
11963 else
11964   echo "configure: failed program was:" >&5
11965   cat conftest.$ac_ext >&5
11966   rm -rf conftest*
11967   glibcpp_cv_func__copysignl_use=no
11968 fi
11969 rm -f conftest*
11970       ac_ext=c
11971 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11972 ac_cpp='$CPP $CPPFLAGS'
11973 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11974 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11975 cross_compiling=$ac_cv_prog_cc_cross
11976
11977     
11978 fi
11979
11980   fi
11981   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
11982
11983     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
11984       for ac_func in _copysignl
11985 do
11986 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11987 echo "configure:11988: checking for $ac_func" >&5
11988 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11989   echo $ac_n "(cached) $ac_c" 1>&6
11990 else
11991   cat > conftest.$ac_ext <<EOF
11992 #line 11993 "configure"
11993 #include "confdefs.h"
11994 /* System header to define __stub macros and hopefully few prototypes,
11995     which can conflict with char $ac_func(); below.  */
11996 #include <assert.h>
11997 /* Override any gcc2 internal prototype to avoid an error.  */
11998 /* We use char because int might match the return type of a gcc2
11999     builtin and then its argument prototype would still apply.  */
12000 char $ac_func();
12001
12002 int main() {
12003
12004 /* The GNU C library defines this for functions which it implements
12005     to always fail with ENOSYS.  Some functions are actually named
12006     something starting with __ and the normal name is an alias.  */
12007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12008 choke me
12009 #else
12010 $ac_func();
12011 #endif
12012
12013 ; return 0; }
12014 EOF
12015 if { (eval echo configure:12016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12016   rm -rf conftest*
12017   eval "ac_cv_func_$ac_func=yes"
12018 else
12019   echo "configure: failed program was:" >&5
12020   cat conftest.$ac_ext >&5
12021   rm -rf conftest*
12022   eval "ac_cv_func_$ac_func=no"
12023 fi
12024 rm -f conftest*
12025 fi
12026
12027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12028   echo "$ac_t""yes" 1>&6
12029     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12030   cat >> confdefs.h <<EOF
12031 #define $ac_tr_func 1
12032 EOF
12033  
12034 else
12035   echo "$ac_t""no" 1>&6
12036 fi
12037 done
12038     
12039     fi  
12040   fi
12041
12042   
12043   
12044   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
12045 echo "configure:12046: checking for atan2l declaration" >&5
12046   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
12047     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
12048   echo $ac_n "(cached) $ac_c" 1>&6
12049 else
12050   
12051       
12052       ac_ext=C
12053 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12054 ac_cpp='$CXXCPP $CPPFLAGS'
12055 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12056 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12057 cross_compiling=$ac_cv_prog_cxx_cross
12058
12059       cat > conftest.$ac_ext <<EOF
12060 #line 12061 "configure"
12061 #include "confdefs.h"
12062 #include <math.h>
12063 int main() {
12064  atan2l(0, 0);
12065 ; return 0; }
12066 EOF
12067 if { (eval echo configure:12068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12068   rm -rf conftest*
12069   glibcpp_cv_func_atan2l_use=yes
12070 else
12071   echo "configure: failed program was:" >&5
12072   cat conftest.$ac_ext >&5
12073   rm -rf conftest*
12074   glibcpp_cv_func_atan2l_use=no
12075 fi
12076 rm -f conftest*
12077       ac_ext=c
12078 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12079 ac_cpp='$CPP $CPPFLAGS'
12080 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12081 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12082 cross_compiling=$ac_cv_prog_cc_cross
12083
12084     
12085 fi
12086
12087   fi
12088   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
12089
12090   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
12091     for ac_func in atan2l
12092 do
12093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12094 echo "configure:12095: checking for $ac_func" >&5
12095 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12096   echo $ac_n "(cached) $ac_c" 1>&6
12097 else
12098   cat > conftest.$ac_ext <<EOF
12099 #line 12100 "configure"
12100 #include "confdefs.h"
12101 /* System header to define __stub macros and hopefully few prototypes,
12102     which can conflict with char $ac_func(); below.  */
12103 #include <assert.h>
12104 /* Override any gcc2 internal prototype to avoid an error.  */
12105 /* We use char because int might match the return type of a gcc2
12106     builtin and then its argument prototype would still apply.  */
12107 char $ac_func();
12108
12109 int main() {
12110
12111 /* The GNU C library defines this for functions which it implements
12112     to always fail with ENOSYS.  Some functions are actually named
12113     something starting with __ and the normal name is an alias.  */
12114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12115 choke me
12116 #else
12117 $ac_func();
12118 #endif
12119
12120 ; return 0; }
12121 EOF
12122 if { (eval echo configure:12123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12123   rm -rf conftest*
12124   eval "ac_cv_func_$ac_func=yes"
12125 else
12126   echo "configure: failed program was:" >&5
12127   cat conftest.$ac_ext >&5
12128   rm -rf conftest*
12129   eval "ac_cv_func_$ac_func=no"
12130 fi
12131 rm -f conftest*
12132 fi
12133
12134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12135   echo "$ac_t""yes" 1>&6
12136     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12137   cat >> confdefs.h <<EOF
12138 #define $ac_tr_func 1
12139 EOF
12140  
12141 else
12142   echo "$ac_t""no" 1>&6
12143 fi
12144 done
12145     
12146   else
12147     
12148   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
12149 echo "configure:12150: checking for _atan2l declaration" >&5
12150   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
12151     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
12152   echo $ac_n "(cached) $ac_c" 1>&6
12153 else
12154   
12155       
12156       ac_ext=C
12157 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12158 ac_cpp='$CXXCPP $CPPFLAGS'
12159 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12160 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12161 cross_compiling=$ac_cv_prog_cxx_cross
12162
12163       cat > conftest.$ac_ext <<EOF
12164 #line 12165 "configure"
12165 #include "confdefs.h"
12166 #include <math.h>
12167 int main() {
12168  _atan2l(0, 0);
12169 ; return 0; }
12170 EOF
12171 if { (eval echo configure:12172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12172   rm -rf conftest*
12173   glibcpp_cv_func__atan2l_use=yes
12174 else
12175   echo "configure: failed program was:" >&5
12176   cat conftest.$ac_ext >&5
12177   rm -rf conftest*
12178   glibcpp_cv_func__atan2l_use=no
12179 fi
12180 rm -f conftest*
12181       ac_ext=c
12182 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12183 ac_cpp='$CPP $CPPFLAGS'
12184 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12185 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12186 cross_compiling=$ac_cv_prog_cc_cross
12187
12188     
12189 fi
12190
12191   fi
12192   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
12193
12194     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
12195       for ac_func in _atan2l
12196 do
12197 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12198 echo "configure:12199: checking for $ac_func" >&5
12199 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12200   echo $ac_n "(cached) $ac_c" 1>&6
12201 else
12202   cat > conftest.$ac_ext <<EOF
12203 #line 12204 "configure"
12204 #include "confdefs.h"
12205 /* System header to define __stub macros and hopefully few prototypes,
12206     which can conflict with char $ac_func(); below.  */
12207 #include <assert.h>
12208 /* Override any gcc2 internal prototype to avoid an error.  */
12209 /* We use char because int might match the return type of a gcc2
12210     builtin and then its argument prototype would still apply.  */
12211 char $ac_func();
12212
12213 int main() {
12214
12215 /* The GNU C library defines this for functions which it implements
12216     to always fail with ENOSYS.  Some functions are actually named
12217     something starting with __ and the normal name is an alias.  */
12218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12219 choke me
12220 #else
12221 $ac_func();
12222 #endif
12223
12224 ; return 0; }
12225 EOF
12226 if { (eval echo configure:12227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12227   rm -rf conftest*
12228   eval "ac_cv_func_$ac_func=yes"
12229 else
12230   echo "configure: failed program was:" >&5
12231   cat conftest.$ac_ext >&5
12232   rm -rf conftest*
12233   eval "ac_cv_func_$ac_func=no"
12234 fi
12235 rm -f conftest*
12236 fi
12237
12238 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12239   echo "$ac_t""yes" 1>&6
12240     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12241   cat >> confdefs.h <<EOF
12242 #define $ac_tr_func 1
12243 EOF
12244  
12245 else
12246   echo "$ac_t""no" 1>&6
12247 fi
12248 done
12249     
12250     fi  
12251   fi
12252
12253   
12254   
12255   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
12256 echo "configure:12257: checking for expl declaration" >&5
12257   if test x${glibcpp_cv_func_expl_use+set} != xset; then
12258     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
12259   echo $ac_n "(cached) $ac_c" 1>&6
12260 else
12261   
12262       
12263       ac_ext=C
12264 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12265 ac_cpp='$CXXCPP $CPPFLAGS'
12266 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12267 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12268 cross_compiling=$ac_cv_prog_cxx_cross
12269
12270       cat > conftest.$ac_ext <<EOF
12271 #line 12272 "configure"
12272 #include "confdefs.h"
12273 #include <math.h>
12274                       #ifdef HAVE_IEEEFP_H
12275                       #include <ieeefp.h>
12276                       #endif
12277                      
12278 int main() {
12279  expl(0);
12280 ; return 0; }
12281 EOF
12282 if { (eval echo configure:12283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12283   rm -rf conftest*
12284   glibcpp_cv_func_expl_use=yes
12285 else
12286   echo "configure: failed program was:" >&5
12287   cat conftest.$ac_ext >&5
12288   rm -rf conftest*
12289   glibcpp_cv_func_expl_use=no
12290 fi
12291 rm -f conftest*
12292       ac_ext=c
12293 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12294 ac_cpp='$CPP $CPPFLAGS'
12295 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12296 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12297 cross_compiling=$ac_cv_prog_cc_cross
12298
12299     
12300 fi
12301
12302   fi
12303   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
12304
12305   if test x$glibcpp_cv_func_expl_use = x"yes"; then
12306     for ac_func in expl
12307 do
12308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12309 echo "configure:12310: checking for $ac_func" >&5
12310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12311   echo $ac_n "(cached) $ac_c" 1>&6
12312 else
12313   cat > conftest.$ac_ext <<EOF
12314 #line 12315 "configure"
12315 #include "confdefs.h"
12316 /* System header to define __stub macros and hopefully few prototypes,
12317     which can conflict with char $ac_func(); below.  */
12318 #include <assert.h>
12319 /* Override any gcc2 internal prototype to avoid an error.  */
12320 /* We use char because int might match the return type of a gcc2
12321     builtin and then its argument prototype would still apply.  */
12322 char $ac_func();
12323
12324 int main() {
12325
12326 /* The GNU C library defines this for functions which it implements
12327     to always fail with ENOSYS.  Some functions are actually named
12328     something starting with __ and the normal name is an alias.  */
12329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12330 choke me
12331 #else
12332 $ac_func();
12333 #endif
12334
12335 ; return 0; }
12336 EOF
12337 if { (eval echo configure:12338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12338   rm -rf conftest*
12339   eval "ac_cv_func_$ac_func=yes"
12340 else
12341   echo "configure: failed program was:" >&5
12342   cat conftest.$ac_ext >&5
12343   rm -rf conftest*
12344   eval "ac_cv_func_$ac_func=no"
12345 fi
12346 rm -f conftest*
12347 fi
12348
12349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12350   echo "$ac_t""yes" 1>&6
12351     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12352   cat >> confdefs.h <<EOF
12353 #define $ac_tr_func 1
12354 EOF
12355  
12356 else
12357   echo "$ac_t""no" 1>&6
12358 fi
12359 done
12360     
12361   else
12362     
12363   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
12364 echo "configure:12365: checking for _expl declaration" >&5
12365   if test x${glibcpp_cv_func__expl_use+set} != xset; then
12366     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
12367   echo $ac_n "(cached) $ac_c" 1>&6
12368 else
12369   
12370       
12371       ac_ext=C
12372 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12373 ac_cpp='$CXXCPP $CPPFLAGS'
12374 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12375 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12376 cross_compiling=$ac_cv_prog_cxx_cross
12377
12378       cat > conftest.$ac_ext <<EOF
12379 #line 12380 "configure"
12380 #include "confdefs.h"
12381 #include <math.h>
12382                       #ifdef HAVE_IEEEFP_H
12383                       #include <ieeefp.h>
12384                       #endif
12385                      
12386 int main() {
12387  _expl(0);
12388 ; return 0; }
12389 EOF
12390 if { (eval echo configure:12391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12391   rm -rf conftest*
12392   glibcpp_cv_func__expl_use=yes
12393 else
12394   echo "configure: failed program was:" >&5
12395   cat conftest.$ac_ext >&5
12396   rm -rf conftest*
12397   glibcpp_cv_func__expl_use=no
12398 fi
12399 rm -f conftest*
12400       ac_ext=c
12401 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12402 ac_cpp='$CPP $CPPFLAGS'
12403 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12404 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12405 cross_compiling=$ac_cv_prog_cc_cross
12406
12407     
12408 fi
12409
12410   fi
12411   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
12412
12413     if test x$glibcpp_cv_func__expl_use = x"yes"; then
12414       for ac_func in _expl
12415 do
12416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12417 echo "configure:12418: checking for $ac_func" >&5
12418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12419   echo $ac_n "(cached) $ac_c" 1>&6
12420 else
12421   cat > conftest.$ac_ext <<EOF
12422 #line 12423 "configure"
12423 #include "confdefs.h"
12424 /* System header to define __stub macros and hopefully few prototypes,
12425     which can conflict with char $ac_func(); below.  */
12426 #include <assert.h>
12427 /* Override any gcc2 internal prototype to avoid an error.  */
12428 /* We use char because int might match the return type of a gcc2
12429     builtin and then its argument prototype would still apply.  */
12430 char $ac_func();
12431
12432 int main() {
12433
12434 /* The GNU C library defines this for functions which it implements
12435     to always fail with ENOSYS.  Some functions are actually named
12436     something starting with __ and the normal name is an alias.  */
12437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12438 choke me
12439 #else
12440 $ac_func();
12441 #endif
12442
12443 ; return 0; }
12444 EOF
12445 if { (eval echo configure:12446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12446   rm -rf conftest*
12447   eval "ac_cv_func_$ac_func=yes"
12448 else
12449   echo "configure: failed program was:" >&5
12450   cat conftest.$ac_ext >&5
12451   rm -rf conftest*
12452   eval "ac_cv_func_$ac_func=no"
12453 fi
12454 rm -f conftest*
12455 fi
12456
12457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12458   echo "$ac_t""yes" 1>&6
12459     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12460   cat >> confdefs.h <<EOF
12461 #define $ac_tr_func 1
12462 EOF
12463  
12464 else
12465   echo "$ac_t""no" 1>&6
12466 fi
12467 done
12468     
12469     fi  
12470   fi
12471
12472   
12473   
12474   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
12475 echo "configure:12476: checking for fabsl declaration" >&5
12476   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
12477     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
12478   echo $ac_n "(cached) $ac_c" 1>&6
12479 else
12480   
12481       
12482       ac_ext=C
12483 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12484 ac_cpp='$CXXCPP $CPPFLAGS'
12485 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12486 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12487 cross_compiling=$ac_cv_prog_cxx_cross
12488
12489       cat > conftest.$ac_ext <<EOF
12490 #line 12491 "configure"
12491 #include "confdefs.h"
12492 #include <math.h>
12493                       #ifdef HAVE_IEEEFP_H
12494                       #include <ieeefp.h>
12495                       #endif
12496                      
12497 int main() {
12498  fabsl(0);
12499 ; return 0; }
12500 EOF
12501 if { (eval echo configure:12502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12502   rm -rf conftest*
12503   glibcpp_cv_func_fabsl_use=yes
12504 else
12505   echo "configure: failed program was:" >&5
12506   cat conftest.$ac_ext >&5
12507   rm -rf conftest*
12508   glibcpp_cv_func_fabsl_use=no
12509 fi
12510 rm -f conftest*
12511       ac_ext=c
12512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12513 ac_cpp='$CPP $CPPFLAGS'
12514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12515 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12516 cross_compiling=$ac_cv_prog_cc_cross
12517
12518     
12519 fi
12520
12521   fi
12522   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
12523
12524   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
12525     for ac_func in fabsl
12526 do
12527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12528 echo "configure:12529: checking for $ac_func" >&5
12529 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12530   echo $ac_n "(cached) $ac_c" 1>&6
12531 else
12532   cat > conftest.$ac_ext <<EOF
12533 #line 12534 "configure"
12534 #include "confdefs.h"
12535 /* System header to define __stub macros and hopefully few prototypes,
12536     which can conflict with char $ac_func(); below.  */
12537 #include <assert.h>
12538 /* Override any gcc2 internal prototype to avoid an error.  */
12539 /* We use char because int might match the return type of a gcc2
12540     builtin and then its argument prototype would still apply.  */
12541 char $ac_func();
12542
12543 int main() {
12544
12545 /* The GNU C library defines this for functions which it implements
12546     to always fail with ENOSYS.  Some functions are actually named
12547     something starting with __ and the normal name is an alias.  */
12548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12549 choke me
12550 #else
12551 $ac_func();
12552 #endif
12553
12554 ; return 0; }
12555 EOF
12556 if { (eval echo configure:12557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12557   rm -rf conftest*
12558   eval "ac_cv_func_$ac_func=yes"
12559 else
12560   echo "configure: failed program was:" >&5
12561   cat conftest.$ac_ext >&5
12562   rm -rf conftest*
12563   eval "ac_cv_func_$ac_func=no"
12564 fi
12565 rm -f conftest*
12566 fi
12567
12568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12569   echo "$ac_t""yes" 1>&6
12570     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12571   cat >> confdefs.h <<EOF
12572 #define $ac_tr_func 1
12573 EOF
12574  
12575 else
12576   echo "$ac_t""no" 1>&6
12577 fi
12578 done
12579     
12580   else
12581     
12582   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
12583 echo "configure:12584: checking for _fabsl declaration" >&5
12584   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
12585     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
12586   echo $ac_n "(cached) $ac_c" 1>&6
12587 else
12588   
12589       
12590       ac_ext=C
12591 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12592 ac_cpp='$CXXCPP $CPPFLAGS'
12593 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12594 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12595 cross_compiling=$ac_cv_prog_cxx_cross
12596
12597       cat > conftest.$ac_ext <<EOF
12598 #line 12599 "configure"
12599 #include "confdefs.h"
12600 #include <math.h>
12601                       #ifdef HAVE_IEEEFP_H
12602                       #include <ieeefp.h>
12603                       #endif
12604                      
12605 int main() {
12606  _fabsl(0);
12607 ; return 0; }
12608 EOF
12609 if { (eval echo configure:12610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12610   rm -rf conftest*
12611   glibcpp_cv_func__fabsl_use=yes
12612 else
12613   echo "configure: failed program was:" >&5
12614   cat conftest.$ac_ext >&5
12615   rm -rf conftest*
12616   glibcpp_cv_func__fabsl_use=no
12617 fi
12618 rm -f conftest*
12619       ac_ext=c
12620 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12621 ac_cpp='$CPP $CPPFLAGS'
12622 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12623 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12624 cross_compiling=$ac_cv_prog_cc_cross
12625
12626     
12627 fi
12628
12629   fi
12630   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
12631
12632     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
12633       for ac_func in _fabsl
12634 do
12635 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12636 echo "configure:12637: checking for $ac_func" >&5
12637 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12638   echo $ac_n "(cached) $ac_c" 1>&6
12639 else
12640   cat > conftest.$ac_ext <<EOF
12641 #line 12642 "configure"
12642 #include "confdefs.h"
12643 /* System header to define __stub macros and hopefully few prototypes,
12644     which can conflict with char $ac_func(); below.  */
12645 #include <assert.h>
12646 /* Override any gcc2 internal prototype to avoid an error.  */
12647 /* We use char because int might match the return type of a gcc2
12648     builtin and then its argument prototype would still apply.  */
12649 char $ac_func();
12650
12651 int main() {
12652
12653 /* The GNU C library defines this for functions which it implements
12654     to always fail with ENOSYS.  Some functions are actually named
12655     something starting with __ and the normal name is an alias.  */
12656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12657 choke me
12658 #else
12659 $ac_func();
12660 #endif
12661
12662 ; return 0; }
12663 EOF
12664 if { (eval echo configure:12665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12665   rm -rf conftest*
12666   eval "ac_cv_func_$ac_func=yes"
12667 else
12668   echo "configure: failed program was:" >&5
12669   cat conftest.$ac_ext >&5
12670   rm -rf conftest*
12671   eval "ac_cv_func_$ac_func=no"
12672 fi
12673 rm -f conftest*
12674 fi
12675
12676 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12677   echo "$ac_t""yes" 1>&6
12678     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12679   cat >> confdefs.h <<EOF
12680 #define $ac_tr_func 1
12681 EOF
12682  
12683 else
12684   echo "$ac_t""no" 1>&6
12685 fi
12686 done
12687     
12688     fi  
12689   fi
12690
12691   
12692   
12693   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
12694 echo "configure:12695: checking for fmodl declaration" >&5
12695   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
12696     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
12697   echo $ac_n "(cached) $ac_c" 1>&6
12698 else
12699   
12700       
12701       ac_ext=C
12702 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12703 ac_cpp='$CXXCPP $CPPFLAGS'
12704 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12705 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12706 cross_compiling=$ac_cv_prog_cxx_cross
12707
12708       cat > conftest.$ac_ext <<EOF
12709 #line 12710 "configure"
12710 #include "confdefs.h"
12711 #include <math.h>
12712 int main() {
12713  fmodl(0, 0);
12714 ; return 0; }
12715 EOF
12716 if { (eval echo configure:12717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12717   rm -rf conftest*
12718   glibcpp_cv_func_fmodl_use=yes
12719 else
12720   echo "configure: failed program was:" >&5
12721   cat conftest.$ac_ext >&5
12722   rm -rf conftest*
12723   glibcpp_cv_func_fmodl_use=no
12724 fi
12725 rm -f conftest*
12726       ac_ext=c
12727 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12728 ac_cpp='$CPP $CPPFLAGS'
12729 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12730 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12731 cross_compiling=$ac_cv_prog_cc_cross
12732
12733     
12734 fi
12735
12736   fi
12737   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
12738
12739   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
12740     for ac_func in fmodl
12741 do
12742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12743 echo "configure:12744: checking for $ac_func" >&5
12744 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12745   echo $ac_n "(cached) $ac_c" 1>&6
12746 else
12747   cat > conftest.$ac_ext <<EOF
12748 #line 12749 "configure"
12749 #include "confdefs.h"
12750 /* System header to define __stub macros and hopefully few prototypes,
12751     which can conflict with char $ac_func(); below.  */
12752 #include <assert.h>
12753 /* Override any gcc2 internal prototype to avoid an error.  */
12754 /* We use char because int might match the return type of a gcc2
12755     builtin and then its argument prototype would still apply.  */
12756 char $ac_func();
12757
12758 int main() {
12759
12760 /* The GNU C library defines this for functions which it implements
12761     to always fail with ENOSYS.  Some functions are actually named
12762     something starting with __ and the normal name is an alias.  */
12763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12764 choke me
12765 #else
12766 $ac_func();
12767 #endif
12768
12769 ; return 0; }
12770 EOF
12771 if { (eval echo configure:12772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12772   rm -rf conftest*
12773   eval "ac_cv_func_$ac_func=yes"
12774 else
12775   echo "configure: failed program was:" >&5
12776   cat conftest.$ac_ext >&5
12777   rm -rf conftest*
12778   eval "ac_cv_func_$ac_func=no"
12779 fi
12780 rm -f conftest*
12781 fi
12782
12783 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12784   echo "$ac_t""yes" 1>&6
12785     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12786   cat >> confdefs.h <<EOF
12787 #define $ac_tr_func 1
12788 EOF
12789  
12790 else
12791   echo "$ac_t""no" 1>&6
12792 fi
12793 done
12794     
12795   else
12796     
12797   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
12798 echo "configure:12799: checking for _fmodl declaration" >&5
12799   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
12800     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
12801   echo $ac_n "(cached) $ac_c" 1>&6
12802 else
12803   
12804       
12805       ac_ext=C
12806 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12807 ac_cpp='$CXXCPP $CPPFLAGS'
12808 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12809 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12810 cross_compiling=$ac_cv_prog_cxx_cross
12811
12812       cat > conftest.$ac_ext <<EOF
12813 #line 12814 "configure"
12814 #include "confdefs.h"
12815 #include <math.h>
12816 int main() {
12817  _fmodl(0, 0);
12818 ; return 0; }
12819 EOF
12820 if { (eval echo configure:12821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12821   rm -rf conftest*
12822   glibcpp_cv_func__fmodl_use=yes
12823 else
12824   echo "configure: failed program was:" >&5
12825   cat conftest.$ac_ext >&5
12826   rm -rf conftest*
12827   glibcpp_cv_func__fmodl_use=no
12828 fi
12829 rm -f conftest*
12830       ac_ext=c
12831 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12832 ac_cpp='$CPP $CPPFLAGS'
12833 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12834 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12835 cross_compiling=$ac_cv_prog_cc_cross
12836
12837     
12838 fi
12839
12840   fi
12841   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
12842
12843     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
12844       for ac_func in _fmodl
12845 do
12846 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12847 echo "configure:12848: checking for $ac_func" >&5
12848 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12849   echo $ac_n "(cached) $ac_c" 1>&6
12850 else
12851   cat > conftest.$ac_ext <<EOF
12852 #line 12853 "configure"
12853 #include "confdefs.h"
12854 /* System header to define __stub macros and hopefully few prototypes,
12855     which can conflict with char $ac_func(); below.  */
12856 #include <assert.h>
12857 /* Override any gcc2 internal prototype to avoid an error.  */
12858 /* We use char because int might match the return type of a gcc2
12859     builtin and then its argument prototype would still apply.  */
12860 char $ac_func();
12861
12862 int main() {
12863
12864 /* The GNU C library defines this for functions which it implements
12865     to always fail with ENOSYS.  Some functions are actually named
12866     something starting with __ and the normal name is an alias.  */
12867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12868 choke me
12869 #else
12870 $ac_func();
12871 #endif
12872
12873 ; return 0; }
12874 EOF
12875 if { (eval echo configure:12876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12876   rm -rf conftest*
12877   eval "ac_cv_func_$ac_func=yes"
12878 else
12879   echo "configure: failed program was:" >&5
12880   cat conftest.$ac_ext >&5
12881   rm -rf conftest*
12882   eval "ac_cv_func_$ac_func=no"
12883 fi
12884 rm -f conftest*
12885 fi
12886
12887 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12888   echo "$ac_t""yes" 1>&6
12889     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12890   cat >> confdefs.h <<EOF
12891 #define $ac_tr_func 1
12892 EOF
12893  
12894 else
12895   echo "$ac_t""no" 1>&6
12896 fi
12897 done
12898     
12899     fi  
12900   fi
12901
12902   
12903   
12904   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
12905 echo "configure:12906: checking for frexpl declaration" >&5
12906   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
12907     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
12908   echo $ac_n "(cached) $ac_c" 1>&6
12909 else
12910   
12911       
12912       ac_ext=C
12913 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12914 ac_cpp='$CXXCPP $CPPFLAGS'
12915 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12916 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12917 cross_compiling=$ac_cv_prog_cxx_cross
12918
12919       cat > conftest.$ac_ext <<EOF
12920 #line 12921 "configure"
12921 #include "confdefs.h"
12922 #include <math.h>
12923 int main() {
12924  frexpl(0, 0);
12925 ; return 0; }
12926 EOF
12927 if { (eval echo configure:12928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12928   rm -rf conftest*
12929   glibcpp_cv_func_frexpl_use=yes
12930 else
12931   echo "configure: failed program was:" >&5
12932   cat conftest.$ac_ext >&5
12933   rm -rf conftest*
12934   glibcpp_cv_func_frexpl_use=no
12935 fi
12936 rm -f conftest*
12937       ac_ext=c
12938 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12939 ac_cpp='$CPP $CPPFLAGS'
12940 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12941 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12942 cross_compiling=$ac_cv_prog_cc_cross
12943
12944     
12945 fi
12946
12947   fi
12948   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
12949
12950   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
12951     for ac_func in frexpl
12952 do
12953 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12954 echo "configure:12955: checking for $ac_func" >&5
12955 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12956   echo $ac_n "(cached) $ac_c" 1>&6
12957 else
12958   cat > conftest.$ac_ext <<EOF
12959 #line 12960 "configure"
12960 #include "confdefs.h"
12961 /* System header to define __stub macros and hopefully few prototypes,
12962     which can conflict with char $ac_func(); below.  */
12963 #include <assert.h>
12964 /* Override any gcc2 internal prototype to avoid an error.  */
12965 /* We use char because int might match the return type of a gcc2
12966     builtin and then its argument prototype would still apply.  */
12967 char $ac_func();
12968
12969 int main() {
12970
12971 /* The GNU C library defines this for functions which it implements
12972     to always fail with ENOSYS.  Some functions are actually named
12973     something starting with __ and the normal name is an alias.  */
12974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12975 choke me
12976 #else
12977 $ac_func();
12978 #endif
12979
12980 ; return 0; }
12981 EOF
12982 if { (eval echo configure:12983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12983   rm -rf conftest*
12984   eval "ac_cv_func_$ac_func=yes"
12985 else
12986   echo "configure: failed program was:" >&5
12987   cat conftest.$ac_ext >&5
12988   rm -rf conftest*
12989   eval "ac_cv_func_$ac_func=no"
12990 fi
12991 rm -f conftest*
12992 fi
12993
12994 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12995   echo "$ac_t""yes" 1>&6
12996     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12997   cat >> confdefs.h <<EOF
12998 #define $ac_tr_func 1
12999 EOF
13000  
13001 else
13002   echo "$ac_t""no" 1>&6
13003 fi
13004 done
13005     
13006   else
13007     
13008   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
13009 echo "configure:13010: checking for _frexpl declaration" >&5
13010   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
13011     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
13012   echo $ac_n "(cached) $ac_c" 1>&6
13013 else
13014   
13015       
13016       ac_ext=C
13017 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13018 ac_cpp='$CXXCPP $CPPFLAGS'
13019 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13020 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13021 cross_compiling=$ac_cv_prog_cxx_cross
13022
13023       cat > conftest.$ac_ext <<EOF
13024 #line 13025 "configure"
13025 #include "confdefs.h"
13026 #include <math.h>
13027 int main() {
13028  _frexpl(0, 0);
13029 ; return 0; }
13030 EOF
13031 if { (eval echo configure:13032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13032   rm -rf conftest*
13033   glibcpp_cv_func__frexpl_use=yes
13034 else
13035   echo "configure: failed program was:" >&5
13036   cat conftest.$ac_ext >&5
13037   rm -rf conftest*
13038   glibcpp_cv_func__frexpl_use=no
13039 fi
13040 rm -f conftest*
13041       ac_ext=c
13042 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13043 ac_cpp='$CPP $CPPFLAGS'
13044 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13045 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13046 cross_compiling=$ac_cv_prog_cc_cross
13047
13048     
13049 fi
13050
13051   fi
13052   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
13053
13054     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
13055       for ac_func in _frexpl
13056 do
13057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13058 echo "configure:13059: checking for $ac_func" >&5
13059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13060   echo $ac_n "(cached) $ac_c" 1>&6
13061 else
13062   cat > conftest.$ac_ext <<EOF
13063 #line 13064 "configure"
13064 #include "confdefs.h"
13065 /* System header to define __stub macros and hopefully few prototypes,
13066     which can conflict with char $ac_func(); below.  */
13067 #include <assert.h>
13068 /* Override any gcc2 internal prototype to avoid an error.  */
13069 /* We use char because int might match the return type of a gcc2
13070     builtin and then its argument prototype would still apply.  */
13071 char $ac_func();
13072
13073 int main() {
13074
13075 /* The GNU C library defines this for functions which it implements
13076     to always fail with ENOSYS.  Some functions are actually named
13077     something starting with __ and the normal name is an alias.  */
13078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13079 choke me
13080 #else
13081 $ac_func();
13082 #endif
13083
13084 ; return 0; }
13085 EOF
13086 if { (eval echo configure:13087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13087   rm -rf conftest*
13088   eval "ac_cv_func_$ac_func=yes"
13089 else
13090   echo "configure: failed program was:" >&5
13091   cat conftest.$ac_ext >&5
13092   rm -rf conftest*
13093   eval "ac_cv_func_$ac_func=no"
13094 fi
13095 rm -f conftest*
13096 fi
13097
13098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13099   echo "$ac_t""yes" 1>&6
13100     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13101   cat >> confdefs.h <<EOF
13102 #define $ac_tr_func 1
13103 EOF
13104  
13105 else
13106   echo "$ac_t""no" 1>&6
13107 fi
13108 done
13109     
13110     fi  
13111   fi
13112
13113   
13114   
13115   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
13116 echo "configure:13117: checking for ldexpl declaration" >&5
13117   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
13118     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
13119   echo $ac_n "(cached) $ac_c" 1>&6
13120 else
13121   
13122       
13123       ac_ext=C
13124 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13125 ac_cpp='$CXXCPP $CPPFLAGS'
13126 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13127 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13128 cross_compiling=$ac_cv_prog_cxx_cross
13129
13130       cat > conftest.$ac_ext <<EOF
13131 #line 13132 "configure"
13132 #include "confdefs.h"
13133 #include <math.h>
13134 int main() {
13135  ldexpl(0, 0);
13136 ; return 0; }
13137 EOF
13138 if { (eval echo configure:13139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13139   rm -rf conftest*
13140   glibcpp_cv_func_ldexpl_use=yes
13141 else
13142   echo "configure: failed program was:" >&5
13143   cat conftest.$ac_ext >&5
13144   rm -rf conftest*
13145   glibcpp_cv_func_ldexpl_use=no
13146 fi
13147 rm -f conftest*
13148       ac_ext=c
13149 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13150 ac_cpp='$CPP $CPPFLAGS'
13151 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13152 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13153 cross_compiling=$ac_cv_prog_cc_cross
13154
13155     
13156 fi
13157
13158   fi
13159   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
13160
13161   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
13162     for ac_func in ldexpl
13163 do
13164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13165 echo "configure:13166: checking for $ac_func" >&5
13166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13167   echo $ac_n "(cached) $ac_c" 1>&6
13168 else
13169   cat > conftest.$ac_ext <<EOF
13170 #line 13171 "configure"
13171 #include "confdefs.h"
13172 /* System header to define __stub macros and hopefully few prototypes,
13173     which can conflict with char $ac_func(); below.  */
13174 #include <assert.h>
13175 /* Override any gcc2 internal prototype to avoid an error.  */
13176 /* We use char because int might match the return type of a gcc2
13177     builtin and then its argument prototype would still apply.  */
13178 char $ac_func();
13179
13180 int main() {
13181
13182 /* The GNU C library defines this for functions which it implements
13183     to always fail with ENOSYS.  Some functions are actually named
13184     something starting with __ and the normal name is an alias.  */
13185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13186 choke me
13187 #else
13188 $ac_func();
13189 #endif
13190
13191 ; return 0; }
13192 EOF
13193 if { (eval echo configure:13194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13194   rm -rf conftest*
13195   eval "ac_cv_func_$ac_func=yes"
13196 else
13197   echo "configure: failed program was:" >&5
13198   cat conftest.$ac_ext >&5
13199   rm -rf conftest*
13200   eval "ac_cv_func_$ac_func=no"
13201 fi
13202 rm -f conftest*
13203 fi
13204
13205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13206   echo "$ac_t""yes" 1>&6
13207     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13208   cat >> confdefs.h <<EOF
13209 #define $ac_tr_func 1
13210 EOF
13211  
13212 else
13213   echo "$ac_t""no" 1>&6
13214 fi
13215 done
13216     
13217   else
13218     
13219   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
13220 echo "configure:13221: checking for _ldexpl declaration" >&5
13221   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
13222     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
13223   echo $ac_n "(cached) $ac_c" 1>&6
13224 else
13225   
13226       
13227       ac_ext=C
13228 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13229 ac_cpp='$CXXCPP $CPPFLAGS'
13230 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13231 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13232 cross_compiling=$ac_cv_prog_cxx_cross
13233
13234       cat > conftest.$ac_ext <<EOF
13235 #line 13236 "configure"
13236 #include "confdefs.h"
13237 #include <math.h>
13238 int main() {
13239  _ldexpl(0, 0);
13240 ; return 0; }
13241 EOF
13242 if { (eval echo configure:13243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13243   rm -rf conftest*
13244   glibcpp_cv_func__ldexpl_use=yes
13245 else
13246   echo "configure: failed program was:" >&5
13247   cat conftest.$ac_ext >&5
13248   rm -rf conftest*
13249   glibcpp_cv_func__ldexpl_use=no
13250 fi
13251 rm -f conftest*
13252       ac_ext=c
13253 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13254 ac_cpp='$CPP $CPPFLAGS'
13255 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13256 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13257 cross_compiling=$ac_cv_prog_cc_cross
13258
13259     
13260 fi
13261
13262   fi
13263   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
13264
13265     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
13266       for ac_func in _ldexpl
13267 do
13268 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13269 echo "configure:13270: checking for $ac_func" >&5
13270 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13271   echo $ac_n "(cached) $ac_c" 1>&6
13272 else
13273   cat > conftest.$ac_ext <<EOF
13274 #line 13275 "configure"
13275 #include "confdefs.h"
13276 /* System header to define __stub macros and hopefully few prototypes,
13277     which can conflict with char $ac_func(); below.  */
13278 #include <assert.h>
13279 /* Override any gcc2 internal prototype to avoid an error.  */
13280 /* We use char because int might match the return type of a gcc2
13281     builtin and then its argument prototype would still apply.  */
13282 char $ac_func();
13283
13284 int main() {
13285
13286 /* The GNU C library defines this for functions which it implements
13287     to always fail with ENOSYS.  Some functions are actually named
13288     something starting with __ and the normal name is an alias.  */
13289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13290 choke me
13291 #else
13292 $ac_func();
13293 #endif
13294
13295 ; return 0; }
13296 EOF
13297 if { (eval echo configure:13298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13298   rm -rf conftest*
13299   eval "ac_cv_func_$ac_func=yes"
13300 else
13301   echo "configure: failed program was:" >&5
13302   cat conftest.$ac_ext >&5
13303   rm -rf conftest*
13304   eval "ac_cv_func_$ac_func=no"
13305 fi
13306 rm -f conftest*
13307 fi
13308
13309 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13310   echo "$ac_t""yes" 1>&6
13311     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13312   cat >> confdefs.h <<EOF
13313 #define $ac_tr_func 1
13314 EOF
13315  
13316 else
13317   echo "$ac_t""no" 1>&6
13318 fi
13319 done
13320     
13321     fi  
13322   fi
13323
13324   
13325   
13326   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
13327 echo "configure:13328: checking for logl declaration" >&5
13328   if test x${glibcpp_cv_func_logl_use+set} != xset; then
13329     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
13330   echo $ac_n "(cached) $ac_c" 1>&6
13331 else
13332   
13333       
13334       ac_ext=C
13335 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13336 ac_cpp='$CXXCPP $CPPFLAGS'
13337 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13338 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13339 cross_compiling=$ac_cv_prog_cxx_cross
13340
13341       cat > conftest.$ac_ext <<EOF
13342 #line 13343 "configure"
13343 #include "confdefs.h"
13344 #include <math.h>
13345                       #ifdef HAVE_IEEEFP_H
13346                       #include <ieeefp.h>
13347                       #endif
13348                      
13349 int main() {
13350  logl(0);
13351 ; return 0; }
13352 EOF
13353 if { (eval echo configure:13354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13354   rm -rf conftest*
13355   glibcpp_cv_func_logl_use=yes
13356 else
13357   echo "configure: failed program was:" >&5
13358   cat conftest.$ac_ext >&5
13359   rm -rf conftest*
13360   glibcpp_cv_func_logl_use=no
13361 fi
13362 rm -f conftest*
13363       ac_ext=c
13364 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13365 ac_cpp='$CPP $CPPFLAGS'
13366 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13367 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13368 cross_compiling=$ac_cv_prog_cc_cross
13369
13370     
13371 fi
13372
13373   fi
13374   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
13375
13376   if test x$glibcpp_cv_func_logl_use = x"yes"; then
13377     for ac_func in logl
13378 do
13379 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13380 echo "configure:13381: checking for $ac_func" >&5
13381 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13382   echo $ac_n "(cached) $ac_c" 1>&6
13383 else
13384   cat > conftest.$ac_ext <<EOF
13385 #line 13386 "configure"
13386 #include "confdefs.h"
13387 /* System header to define __stub macros and hopefully few prototypes,
13388     which can conflict with char $ac_func(); below.  */
13389 #include <assert.h>
13390 /* Override any gcc2 internal prototype to avoid an error.  */
13391 /* We use char because int might match the return type of a gcc2
13392     builtin and then its argument prototype would still apply.  */
13393 char $ac_func();
13394
13395 int main() {
13396
13397 /* The GNU C library defines this for functions which it implements
13398     to always fail with ENOSYS.  Some functions are actually named
13399     something starting with __ and the normal name is an alias.  */
13400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13401 choke me
13402 #else
13403 $ac_func();
13404 #endif
13405
13406 ; return 0; }
13407 EOF
13408 if { (eval echo configure:13409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13409   rm -rf conftest*
13410   eval "ac_cv_func_$ac_func=yes"
13411 else
13412   echo "configure: failed program was:" >&5
13413   cat conftest.$ac_ext >&5
13414   rm -rf conftest*
13415   eval "ac_cv_func_$ac_func=no"
13416 fi
13417 rm -f conftest*
13418 fi
13419
13420 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13421   echo "$ac_t""yes" 1>&6
13422     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13423   cat >> confdefs.h <<EOF
13424 #define $ac_tr_func 1
13425 EOF
13426  
13427 else
13428   echo "$ac_t""no" 1>&6
13429 fi
13430 done
13431     
13432   else
13433     
13434   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
13435 echo "configure:13436: checking for _logl declaration" >&5
13436   if test x${glibcpp_cv_func__logl_use+set} != xset; then
13437     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
13438   echo $ac_n "(cached) $ac_c" 1>&6
13439 else
13440   
13441       
13442       ac_ext=C
13443 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13444 ac_cpp='$CXXCPP $CPPFLAGS'
13445 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13446 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13447 cross_compiling=$ac_cv_prog_cxx_cross
13448
13449       cat > conftest.$ac_ext <<EOF
13450 #line 13451 "configure"
13451 #include "confdefs.h"
13452 #include <math.h>
13453                       #ifdef HAVE_IEEEFP_H
13454                       #include <ieeefp.h>
13455                       #endif
13456                      
13457 int main() {
13458  _logl(0);
13459 ; return 0; }
13460 EOF
13461 if { (eval echo configure:13462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13462   rm -rf conftest*
13463   glibcpp_cv_func__logl_use=yes
13464 else
13465   echo "configure: failed program was:" >&5
13466   cat conftest.$ac_ext >&5
13467   rm -rf conftest*
13468   glibcpp_cv_func__logl_use=no
13469 fi
13470 rm -f conftest*
13471       ac_ext=c
13472 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13473 ac_cpp='$CPP $CPPFLAGS'
13474 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13475 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13476 cross_compiling=$ac_cv_prog_cc_cross
13477
13478     
13479 fi
13480
13481   fi
13482   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
13483
13484     if test x$glibcpp_cv_func__logl_use = x"yes"; then
13485       for ac_func in _logl
13486 do
13487 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13488 echo "configure:13489: checking for $ac_func" >&5
13489 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13490   echo $ac_n "(cached) $ac_c" 1>&6
13491 else
13492   cat > conftest.$ac_ext <<EOF
13493 #line 13494 "configure"
13494 #include "confdefs.h"
13495 /* System header to define __stub macros and hopefully few prototypes,
13496     which can conflict with char $ac_func(); below.  */
13497 #include <assert.h>
13498 /* Override any gcc2 internal prototype to avoid an error.  */
13499 /* We use char because int might match the return type of a gcc2
13500     builtin and then its argument prototype would still apply.  */
13501 char $ac_func();
13502
13503 int main() {
13504
13505 /* The GNU C library defines this for functions which it implements
13506     to always fail with ENOSYS.  Some functions are actually named
13507     something starting with __ and the normal name is an alias.  */
13508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13509 choke me
13510 #else
13511 $ac_func();
13512 #endif
13513
13514 ; return 0; }
13515 EOF
13516 if { (eval echo configure:13517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13517   rm -rf conftest*
13518   eval "ac_cv_func_$ac_func=yes"
13519 else
13520   echo "configure: failed program was:" >&5
13521   cat conftest.$ac_ext >&5
13522   rm -rf conftest*
13523   eval "ac_cv_func_$ac_func=no"
13524 fi
13525 rm -f conftest*
13526 fi
13527
13528 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13529   echo "$ac_t""yes" 1>&6
13530     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13531   cat >> confdefs.h <<EOF
13532 #define $ac_tr_func 1
13533 EOF
13534  
13535 else
13536   echo "$ac_t""no" 1>&6
13537 fi
13538 done
13539     
13540     fi  
13541   fi
13542
13543   
13544   
13545   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
13546 echo "configure:13547: checking for log10l declaration" >&5
13547   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
13548     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
13549   echo $ac_n "(cached) $ac_c" 1>&6
13550 else
13551   
13552       
13553       ac_ext=C
13554 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13555 ac_cpp='$CXXCPP $CPPFLAGS'
13556 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13557 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13558 cross_compiling=$ac_cv_prog_cxx_cross
13559
13560       cat > conftest.$ac_ext <<EOF
13561 #line 13562 "configure"
13562 #include "confdefs.h"
13563 #include <math.h>
13564                       #ifdef HAVE_IEEEFP_H
13565                       #include <ieeefp.h>
13566                       #endif
13567                      
13568 int main() {
13569  log10l(0);
13570 ; return 0; }
13571 EOF
13572 if { (eval echo configure:13573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13573   rm -rf conftest*
13574   glibcpp_cv_func_log10l_use=yes
13575 else
13576   echo "configure: failed program was:" >&5
13577   cat conftest.$ac_ext >&5
13578   rm -rf conftest*
13579   glibcpp_cv_func_log10l_use=no
13580 fi
13581 rm -f conftest*
13582       ac_ext=c
13583 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13584 ac_cpp='$CPP $CPPFLAGS'
13585 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13586 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13587 cross_compiling=$ac_cv_prog_cc_cross
13588
13589     
13590 fi
13591
13592   fi
13593   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
13594
13595   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
13596     for ac_func in log10l
13597 do
13598 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13599 echo "configure:13600: checking for $ac_func" >&5
13600 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13601   echo $ac_n "(cached) $ac_c" 1>&6
13602 else
13603   cat > conftest.$ac_ext <<EOF
13604 #line 13605 "configure"
13605 #include "confdefs.h"
13606 /* System header to define __stub macros and hopefully few prototypes,
13607     which can conflict with char $ac_func(); below.  */
13608 #include <assert.h>
13609 /* Override any gcc2 internal prototype to avoid an error.  */
13610 /* We use char because int might match the return type of a gcc2
13611     builtin and then its argument prototype would still apply.  */
13612 char $ac_func();
13613
13614 int main() {
13615
13616 /* The GNU C library defines this for functions which it implements
13617     to always fail with ENOSYS.  Some functions are actually named
13618     something starting with __ and the normal name is an alias.  */
13619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13620 choke me
13621 #else
13622 $ac_func();
13623 #endif
13624
13625 ; return 0; }
13626 EOF
13627 if { (eval echo configure:13628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13628   rm -rf conftest*
13629   eval "ac_cv_func_$ac_func=yes"
13630 else
13631   echo "configure: failed program was:" >&5
13632   cat conftest.$ac_ext >&5
13633   rm -rf conftest*
13634   eval "ac_cv_func_$ac_func=no"
13635 fi
13636 rm -f conftest*
13637 fi
13638
13639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13640   echo "$ac_t""yes" 1>&6
13641     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13642   cat >> confdefs.h <<EOF
13643 #define $ac_tr_func 1
13644 EOF
13645  
13646 else
13647   echo "$ac_t""no" 1>&6
13648 fi
13649 done
13650     
13651   else
13652     
13653   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
13654 echo "configure:13655: checking for _log10l declaration" >&5
13655   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
13656     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
13657   echo $ac_n "(cached) $ac_c" 1>&6
13658 else
13659   
13660       
13661       ac_ext=C
13662 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13663 ac_cpp='$CXXCPP $CPPFLAGS'
13664 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13665 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13666 cross_compiling=$ac_cv_prog_cxx_cross
13667
13668       cat > conftest.$ac_ext <<EOF
13669 #line 13670 "configure"
13670 #include "confdefs.h"
13671 #include <math.h>
13672                       #ifdef HAVE_IEEEFP_H
13673                       #include <ieeefp.h>
13674                       #endif
13675                      
13676 int main() {
13677  _log10l(0);
13678 ; return 0; }
13679 EOF
13680 if { (eval echo configure:13681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13681   rm -rf conftest*
13682   glibcpp_cv_func__log10l_use=yes
13683 else
13684   echo "configure: failed program was:" >&5
13685   cat conftest.$ac_ext >&5
13686   rm -rf conftest*
13687   glibcpp_cv_func__log10l_use=no
13688 fi
13689 rm -f conftest*
13690       ac_ext=c
13691 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13692 ac_cpp='$CPP $CPPFLAGS'
13693 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13694 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13695 cross_compiling=$ac_cv_prog_cc_cross
13696
13697     
13698 fi
13699
13700   fi
13701   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
13702
13703     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
13704       for ac_func in _log10l
13705 do
13706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13707 echo "configure:13708: checking for $ac_func" >&5
13708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13709   echo $ac_n "(cached) $ac_c" 1>&6
13710 else
13711   cat > conftest.$ac_ext <<EOF
13712 #line 13713 "configure"
13713 #include "confdefs.h"
13714 /* System header to define __stub macros and hopefully few prototypes,
13715     which can conflict with char $ac_func(); below.  */
13716 #include <assert.h>
13717 /* Override any gcc2 internal prototype to avoid an error.  */
13718 /* We use char because int might match the return type of a gcc2
13719     builtin and then its argument prototype would still apply.  */
13720 char $ac_func();
13721
13722 int main() {
13723
13724 /* The GNU C library defines this for functions which it implements
13725     to always fail with ENOSYS.  Some functions are actually named
13726     something starting with __ and the normal name is an alias.  */
13727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13728 choke me
13729 #else
13730 $ac_func();
13731 #endif
13732
13733 ; return 0; }
13734 EOF
13735 if { (eval echo configure:13736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13736   rm -rf conftest*
13737   eval "ac_cv_func_$ac_func=yes"
13738 else
13739   echo "configure: failed program was:" >&5
13740   cat conftest.$ac_ext >&5
13741   rm -rf conftest*
13742   eval "ac_cv_func_$ac_func=no"
13743 fi
13744 rm -f conftest*
13745 fi
13746
13747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13748   echo "$ac_t""yes" 1>&6
13749     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13750   cat >> confdefs.h <<EOF
13751 #define $ac_tr_func 1
13752 EOF
13753  
13754 else
13755   echo "$ac_t""no" 1>&6
13756 fi
13757 done
13758     
13759     fi  
13760   fi
13761
13762   
13763   
13764   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
13765 echo "configure:13766: checking for modfl declaration" >&5
13766   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
13767     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
13768   echo $ac_n "(cached) $ac_c" 1>&6
13769 else
13770   
13771       
13772       ac_ext=C
13773 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13774 ac_cpp='$CXXCPP $CPPFLAGS'
13775 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13776 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13777 cross_compiling=$ac_cv_prog_cxx_cross
13778
13779       cat > conftest.$ac_ext <<EOF
13780 #line 13781 "configure"
13781 #include "confdefs.h"
13782 #include <math.h>
13783 int main() {
13784  modfl(0, 0);
13785 ; return 0; }
13786 EOF
13787 if { (eval echo configure:13788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13788   rm -rf conftest*
13789   glibcpp_cv_func_modfl_use=yes
13790 else
13791   echo "configure: failed program was:" >&5
13792   cat conftest.$ac_ext >&5
13793   rm -rf conftest*
13794   glibcpp_cv_func_modfl_use=no
13795 fi
13796 rm -f conftest*
13797       ac_ext=c
13798 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13799 ac_cpp='$CPP $CPPFLAGS'
13800 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13801 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13802 cross_compiling=$ac_cv_prog_cc_cross
13803
13804     
13805 fi
13806
13807   fi
13808   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
13809
13810   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
13811     for ac_func in modfl
13812 do
13813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13814 echo "configure:13815: checking for $ac_func" >&5
13815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13816   echo $ac_n "(cached) $ac_c" 1>&6
13817 else
13818   cat > conftest.$ac_ext <<EOF
13819 #line 13820 "configure"
13820 #include "confdefs.h"
13821 /* System header to define __stub macros and hopefully few prototypes,
13822     which can conflict with char $ac_func(); below.  */
13823 #include <assert.h>
13824 /* Override any gcc2 internal prototype to avoid an error.  */
13825 /* We use char because int might match the return type of a gcc2
13826     builtin and then its argument prototype would still apply.  */
13827 char $ac_func();
13828
13829 int main() {
13830
13831 /* The GNU C library defines this for functions which it implements
13832     to always fail with ENOSYS.  Some functions are actually named
13833     something starting with __ and the normal name is an alias.  */
13834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13835 choke me
13836 #else
13837 $ac_func();
13838 #endif
13839
13840 ; return 0; }
13841 EOF
13842 if { (eval echo configure:13843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13843   rm -rf conftest*
13844   eval "ac_cv_func_$ac_func=yes"
13845 else
13846   echo "configure: failed program was:" >&5
13847   cat conftest.$ac_ext >&5
13848   rm -rf conftest*
13849   eval "ac_cv_func_$ac_func=no"
13850 fi
13851 rm -f conftest*
13852 fi
13853
13854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13855   echo "$ac_t""yes" 1>&6
13856     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13857   cat >> confdefs.h <<EOF
13858 #define $ac_tr_func 1
13859 EOF
13860  
13861 else
13862   echo "$ac_t""no" 1>&6
13863 fi
13864 done
13865     
13866   else
13867     
13868   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
13869 echo "configure:13870: checking for _modfl declaration" >&5
13870   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
13871     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
13872   echo $ac_n "(cached) $ac_c" 1>&6
13873 else
13874   
13875       
13876       ac_ext=C
13877 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13878 ac_cpp='$CXXCPP $CPPFLAGS'
13879 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13880 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13881 cross_compiling=$ac_cv_prog_cxx_cross
13882
13883       cat > conftest.$ac_ext <<EOF
13884 #line 13885 "configure"
13885 #include "confdefs.h"
13886 #include <math.h>
13887 int main() {
13888  _modfl(0, 0);
13889 ; return 0; }
13890 EOF
13891 if { (eval echo configure:13892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13892   rm -rf conftest*
13893   glibcpp_cv_func__modfl_use=yes
13894 else
13895   echo "configure: failed program was:" >&5
13896   cat conftest.$ac_ext >&5
13897   rm -rf conftest*
13898   glibcpp_cv_func__modfl_use=no
13899 fi
13900 rm -f conftest*
13901       ac_ext=c
13902 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13903 ac_cpp='$CPP $CPPFLAGS'
13904 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13905 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13906 cross_compiling=$ac_cv_prog_cc_cross
13907
13908     
13909 fi
13910
13911   fi
13912   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
13913
13914     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
13915       for ac_func in _modfl
13916 do
13917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13918 echo "configure:13919: checking for $ac_func" >&5
13919 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13920   echo $ac_n "(cached) $ac_c" 1>&6
13921 else
13922   cat > conftest.$ac_ext <<EOF
13923 #line 13924 "configure"
13924 #include "confdefs.h"
13925 /* System header to define __stub macros and hopefully few prototypes,
13926     which can conflict with char $ac_func(); below.  */
13927 #include <assert.h>
13928 /* Override any gcc2 internal prototype to avoid an error.  */
13929 /* We use char because int might match the return type of a gcc2
13930     builtin and then its argument prototype would still apply.  */
13931 char $ac_func();
13932
13933 int main() {
13934
13935 /* The GNU C library defines this for functions which it implements
13936     to always fail with ENOSYS.  Some functions are actually named
13937     something starting with __ and the normal name is an alias.  */
13938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13939 choke me
13940 #else
13941 $ac_func();
13942 #endif
13943
13944 ; return 0; }
13945 EOF
13946 if { (eval echo configure:13947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13947   rm -rf conftest*
13948   eval "ac_cv_func_$ac_func=yes"
13949 else
13950   echo "configure: failed program was:" >&5
13951   cat conftest.$ac_ext >&5
13952   rm -rf conftest*
13953   eval "ac_cv_func_$ac_func=no"
13954 fi
13955 rm -f conftest*
13956 fi
13957
13958 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13959   echo "$ac_t""yes" 1>&6
13960     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13961   cat >> confdefs.h <<EOF
13962 #define $ac_tr_func 1
13963 EOF
13964  
13965 else
13966   echo "$ac_t""no" 1>&6
13967 fi
13968 done
13969     
13970     fi  
13971   fi
13972
13973   
13974   
13975   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
13976 echo "configure:13977: checking for powl declaration" >&5
13977   if test x${glibcpp_cv_func_powl_use+set} != xset; then
13978     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
13979   echo $ac_n "(cached) $ac_c" 1>&6
13980 else
13981   
13982       
13983       ac_ext=C
13984 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13985 ac_cpp='$CXXCPP $CPPFLAGS'
13986 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13987 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13988 cross_compiling=$ac_cv_prog_cxx_cross
13989
13990       cat > conftest.$ac_ext <<EOF
13991 #line 13992 "configure"
13992 #include "confdefs.h"
13993 #include <math.h>
13994 int main() {
13995  powl(0, 0);
13996 ; return 0; }
13997 EOF
13998 if { (eval echo configure:13999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13999   rm -rf conftest*
14000   glibcpp_cv_func_powl_use=yes
14001 else
14002   echo "configure: failed program was:" >&5
14003   cat conftest.$ac_ext >&5
14004   rm -rf conftest*
14005   glibcpp_cv_func_powl_use=no
14006 fi
14007 rm -f conftest*
14008       ac_ext=c
14009 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14010 ac_cpp='$CPP $CPPFLAGS'
14011 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14012 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14013 cross_compiling=$ac_cv_prog_cc_cross
14014
14015     
14016 fi
14017
14018   fi
14019   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
14020
14021   if test x$glibcpp_cv_func_powl_use = x"yes"; then
14022     for ac_func in powl
14023 do
14024 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14025 echo "configure:14026: checking for $ac_func" >&5
14026 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14027   echo $ac_n "(cached) $ac_c" 1>&6
14028 else
14029   cat > conftest.$ac_ext <<EOF
14030 #line 14031 "configure"
14031 #include "confdefs.h"
14032 /* System header to define __stub macros and hopefully few prototypes,
14033     which can conflict with char $ac_func(); below.  */
14034 #include <assert.h>
14035 /* Override any gcc2 internal prototype to avoid an error.  */
14036 /* We use char because int might match the return type of a gcc2
14037     builtin and then its argument prototype would still apply.  */
14038 char $ac_func();
14039
14040 int main() {
14041
14042 /* The GNU C library defines this for functions which it implements
14043     to always fail with ENOSYS.  Some functions are actually named
14044     something starting with __ and the normal name is an alias.  */
14045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14046 choke me
14047 #else
14048 $ac_func();
14049 #endif
14050
14051 ; return 0; }
14052 EOF
14053 if { (eval echo configure:14054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14054   rm -rf conftest*
14055   eval "ac_cv_func_$ac_func=yes"
14056 else
14057   echo "configure: failed program was:" >&5
14058   cat conftest.$ac_ext >&5
14059   rm -rf conftest*
14060   eval "ac_cv_func_$ac_func=no"
14061 fi
14062 rm -f conftest*
14063 fi
14064
14065 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14066   echo "$ac_t""yes" 1>&6
14067     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14068   cat >> confdefs.h <<EOF
14069 #define $ac_tr_func 1
14070 EOF
14071  
14072 else
14073   echo "$ac_t""no" 1>&6
14074 fi
14075 done
14076     
14077   else
14078     
14079   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
14080 echo "configure:14081: checking for _powl declaration" >&5
14081   if test x${glibcpp_cv_func__powl_use+set} != xset; then
14082     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
14083   echo $ac_n "(cached) $ac_c" 1>&6
14084 else
14085   
14086       
14087       ac_ext=C
14088 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14089 ac_cpp='$CXXCPP $CPPFLAGS'
14090 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14091 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14092 cross_compiling=$ac_cv_prog_cxx_cross
14093
14094       cat > conftest.$ac_ext <<EOF
14095 #line 14096 "configure"
14096 #include "confdefs.h"
14097 #include <math.h>
14098 int main() {
14099  _powl(0, 0);
14100 ; return 0; }
14101 EOF
14102 if { (eval echo configure:14103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14103   rm -rf conftest*
14104   glibcpp_cv_func__powl_use=yes
14105 else
14106   echo "configure: failed program was:" >&5
14107   cat conftest.$ac_ext >&5
14108   rm -rf conftest*
14109   glibcpp_cv_func__powl_use=no
14110 fi
14111 rm -f conftest*
14112       ac_ext=c
14113 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14114 ac_cpp='$CPP $CPPFLAGS'
14115 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14116 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14117 cross_compiling=$ac_cv_prog_cc_cross
14118
14119     
14120 fi
14121
14122   fi
14123   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
14124
14125     if test x$glibcpp_cv_func__powl_use = x"yes"; then
14126       for ac_func in _powl
14127 do
14128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14129 echo "configure:14130: checking for $ac_func" >&5
14130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14131   echo $ac_n "(cached) $ac_c" 1>&6
14132 else
14133   cat > conftest.$ac_ext <<EOF
14134 #line 14135 "configure"
14135 #include "confdefs.h"
14136 /* System header to define __stub macros and hopefully few prototypes,
14137     which can conflict with char $ac_func(); below.  */
14138 #include <assert.h>
14139 /* Override any gcc2 internal prototype to avoid an error.  */
14140 /* We use char because int might match the return type of a gcc2
14141     builtin and then its argument prototype would still apply.  */
14142 char $ac_func();
14143
14144 int main() {
14145
14146 /* The GNU C library defines this for functions which it implements
14147     to always fail with ENOSYS.  Some functions are actually named
14148     something starting with __ and the normal name is an alias.  */
14149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14150 choke me
14151 #else
14152 $ac_func();
14153 #endif
14154
14155 ; return 0; }
14156 EOF
14157 if { (eval echo configure:14158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14158   rm -rf conftest*
14159   eval "ac_cv_func_$ac_func=yes"
14160 else
14161   echo "configure: failed program was:" >&5
14162   cat conftest.$ac_ext >&5
14163   rm -rf conftest*
14164   eval "ac_cv_func_$ac_func=no"
14165 fi
14166 rm -f conftest*
14167 fi
14168
14169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14170   echo "$ac_t""yes" 1>&6
14171     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14172   cat >> confdefs.h <<EOF
14173 #define $ac_tr_func 1
14174 EOF
14175  
14176 else
14177   echo "$ac_t""no" 1>&6
14178 fi
14179 done
14180     
14181     fi  
14182   fi
14183
14184   
14185   
14186   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
14187 echo "configure:14188: checking for sqrtl declaration" >&5
14188   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
14189     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
14190   echo $ac_n "(cached) $ac_c" 1>&6
14191 else
14192   
14193       
14194       ac_ext=C
14195 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14196 ac_cpp='$CXXCPP $CPPFLAGS'
14197 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14198 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14199 cross_compiling=$ac_cv_prog_cxx_cross
14200
14201       cat > conftest.$ac_ext <<EOF
14202 #line 14203 "configure"
14203 #include "confdefs.h"
14204 #include <math.h>
14205                       #ifdef HAVE_IEEEFP_H
14206                       #include <ieeefp.h>
14207                       #endif
14208                      
14209 int main() {
14210  sqrtl(0);
14211 ; return 0; }
14212 EOF
14213 if { (eval echo configure:14214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14214   rm -rf conftest*
14215   glibcpp_cv_func_sqrtl_use=yes
14216 else
14217   echo "configure: failed program was:" >&5
14218   cat conftest.$ac_ext >&5
14219   rm -rf conftest*
14220   glibcpp_cv_func_sqrtl_use=no
14221 fi
14222 rm -f conftest*
14223       ac_ext=c
14224 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14225 ac_cpp='$CPP $CPPFLAGS'
14226 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14227 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14228 cross_compiling=$ac_cv_prog_cc_cross
14229
14230     
14231 fi
14232
14233   fi
14234   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
14235
14236   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
14237     for ac_func in sqrtl
14238 do
14239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14240 echo "configure:14241: checking for $ac_func" >&5
14241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14242   echo $ac_n "(cached) $ac_c" 1>&6
14243 else
14244   cat > conftest.$ac_ext <<EOF
14245 #line 14246 "configure"
14246 #include "confdefs.h"
14247 /* System header to define __stub macros and hopefully few prototypes,
14248     which can conflict with char $ac_func(); below.  */
14249 #include <assert.h>
14250 /* Override any gcc2 internal prototype to avoid an error.  */
14251 /* We use char because int might match the return type of a gcc2
14252     builtin and then its argument prototype would still apply.  */
14253 char $ac_func();
14254
14255 int main() {
14256
14257 /* The GNU C library defines this for functions which it implements
14258     to always fail with ENOSYS.  Some functions are actually named
14259     something starting with __ and the normal name is an alias.  */
14260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14261 choke me
14262 #else
14263 $ac_func();
14264 #endif
14265
14266 ; return 0; }
14267 EOF
14268 if { (eval echo configure:14269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14269   rm -rf conftest*
14270   eval "ac_cv_func_$ac_func=yes"
14271 else
14272   echo "configure: failed program was:" >&5
14273   cat conftest.$ac_ext >&5
14274   rm -rf conftest*
14275   eval "ac_cv_func_$ac_func=no"
14276 fi
14277 rm -f conftest*
14278 fi
14279
14280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14281   echo "$ac_t""yes" 1>&6
14282     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14283   cat >> confdefs.h <<EOF
14284 #define $ac_tr_func 1
14285 EOF
14286  
14287 else
14288   echo "$ac_t""no" 1>&6
14289 fi
14290 done
14291     
14292   else
14293     
14294   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
14295 echo "configure:14296: checking for _sqrtl declaration" >&5
14296   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
14297     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
14298   echo $ac_n "(cached) $ac_c" 1>&6
14299 else
14300   
14301       
14302       ac_ext=C
14303 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14304 ac_cpp='$CXXCPP $CPPFLAGS'
14305 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14306 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14307 cross_compiling=$ac_cv_prog_cxx_cross
14308
14309       cat > conftest.$ac_ext <<EOF
14310 #line 14311 "configure"
14311 #include "confdefs.h"
14312 #include <math.h>
14313                       #ifdef HAVE_IEEEFP_H
14314                       #include <ieeefp.h>
14315                       #endif
14316                      
14317 int main() {
14318  _sqrtl(0);
14319 ; return 0; }
14320 EOF
14321 if { (eval echo configure:14322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14322   rm -rf conftest*
14323   glibcpp_cv_func__sqrtl_use=yes
14324 else
14325   echo "configure: failed program was:" >&5
14326   cat conftest.$ac_ext >&5
14327   rm -rf conftest*
14328   glibcpp_cv_func__sqrtl_use=no
14329 fi
14330 rm -f conftest*
14331       ac_ext=c
14332 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14333 ac_cpp='$CPP $CPPFLAGS'
14334 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14335 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14336 cross_compiling=$ac_cv_prog_cc_cross
14337
14338     
14339 fi
14340
14341   fi
14342   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
14343
14344     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
14345       for ac_func in _sqrtl
14346 do
14347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14348 echo "configure:14349: checking for $ac_func" >&5
14349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14350   echo $ac_n "(cached) $ac_c" 1>&6
14351 else
14352   cat > conftest.$ac_ext <<EOF
14353 #line 14354 "configure"
14354 #include "confdefs.h"
14355 /* System header to define __stub macros and hopefully few prototypes,
14356     which can conflict with char $ac_func(); below.  */
14357 #include <assert.h>
14358 /* Override any gcc2 internal prototype to avoid an error.  */
14359 /* We use char because int might match the return type of a gcc2
14360     builtin and then its argument prototype would still apply.  */
14361 char $ac_func();
14362
14363 int main() {
14364
14365 /* The GNU C library defines this for functions which it implements
14366     to always fail with ENOSYS.  Some functions are actually named
14367     something starting with __ and the normal name is an alias.  */
14368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14369 choke me
14370 #else
14371 $ac_func();
14372 #endif
14373
14374 ; return 0; }
14375 EOF
14376 if { (eval echo configure:14377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14377   rm -rf conftest*
14378   eval "ac_cv_func_$ac_func=yes"
14379 else
14380   echo "configure: failed program was:" >&5
14381   cat conftest.$ac_ext >&5
14382   rm -rf conftest*
14383   eval "ac_cv_func_$ac_func=no"
14384 fi
14385 rm -f conftest*
14386 fi
14387
14388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14389   echo "$ac_t""yes" 1>&6
14390     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14391   cat >> confdefs.h <<EOF
14392 #define $ac_tr_func 1
14393 EOF
14394  
14395 else
14396   echo "$ac_t""no" 1>&6
14397 fi
14398 done
14399     
14400     fi  
14401   fi
14402
14403   
14404   
14405   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
14406 echo "configure:14407: checking for sincosl declaration" >&5
14407   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
14408     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
14409   echo $ac_n "(cached) $ac_c" 1>&6
14410 else
14411   
14412       
14413       ac_ext=C
14414 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14415 ac_cpp='$CXXCPP $CPPFLAGS'
14416 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14417 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14418 cross_compiling=$ac_cv_prog_cxx_cross
14419
14420       cat > conftest.$ac_ext <<EOF
14421 #line 14422 "configure"
14422 #include "confdefs.h"
14423 #include <math.h>
14424 int main() {
14425  sincosl(0, 0, 0);
14426 ; return 0; }
14427 EOF
14428 if { (eval echo configure:14429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14429   rm -rf conftest*
14430   glibcpp_cv_func_sincosl_use=yes
14431 else
14432   echo "configure: failed program was:" >&5
14433   cat conftest.$ac_ext >&5
14434   rm -rf conftest*
14435   glibcpp_cv_func_sincosl_use=no
14436 fi
14437 rm -f conftest*
14438       ac_ext=c
14439 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14440 ac_cpp='$CPP $CPPFLAGS'
14441 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14442 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14443 cross_compiling=$ac_cv_prog_cc_cross
14444
14445     
14446 fi
14447
14448   fi
14449   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
14450
14451   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
14452     for ac_func in sincosl
14453 do
14454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14455 echo "configure:14456: checking for $ac_func" >&5
14456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14457   echo $ac_n "(cached) $ac_c" 1>&6
14458 else
14459   cat > conftest.$ac_ext <<EOF
14460 #line 14461 "configure"
14461 #include "confdefs.h"
14462 /* System header to define __stub macros and hopefully few prototypes,
14463     which can conflict with char $ac_func(); below.  */
14464 #include <assert.h>
14465 /* Override any gcc2 internal prototype to avoid an error.  */
14466 /* We use char because int might match the return type of a gcc2
14467     builtin and then its argument prototype would still apply.  */
14468 char $ac_func();
14469
14470 int main() {
14471
14472 /* The GNU C library defines this for functions which it implements
14473     to always fail with ENOSYS.  Some functions are actually named
14474     something starting with __ and the normal name is an alias.  */
14475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14476 choke me
14477 #else
14478 $ac_func();
14479 #endif
14480
14481 ; return 0; }
14482 EOF
14483 if { (eval echo configure:14484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14484   rm -rf conftest*
14485   eval "ac_cv_func_$ac_func=yes"
14486 else
14487   echo "configure: failed program was:" >&5
14488   cat conftest.$ac_ext >&5
14489   rm -rf conftest*
14490   eval "ac_cv_func_$ac_func=no"
14491 fi
14492 rm -f conftest*
14493 fi
14494
14495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14496   echo "$ac_t""yes" 1>&6
14497     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14498   cat >> confdefs.h <<EOF
14499 #define $ac_tr_func 1
14500 EOF
14501  
14502 else
14503   echo "$ac_t""no" 1>&6
14504 fi
14505 done
14506     
14507   else
14508     
14509   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
14510 echo "configure:14511: checking for _sincosl declaration" >&5
14511   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
14512     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
14513   echo $ac_n "(cached) $ac_c" 1>&6
14514 else
14515   
14516       
14517       ac_ext=C
14518 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14519 ac_cpp='$CXXCPP $CPPFLAGS'
14520 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14521 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14522 cross_compiling=$ac_cv_prog_cxx_cross
14523
14524       cat > conftest.$ac_ext <<EOF
14525 #line 14526 "configure"
14526 #include "confdefs.h"
14527 #include <math.h>
14528 int main() {
14529  _sincosl(0, 0, 0);
14530 ; return 0; }
14531 EOF
14532 if { (eval echo configure:14533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14533   rm -rf conftest*
14534   glibcpp_cv_func__sincosl_use=yes
14535 else
14536   echo "configure: failed program was:" >&5
14537   cat conftest.$ac_ext >&5
14538   rm -rf conftest*
14539   glibcpp_cv_func__sincosl_use=no
14540 fi
14541 rm -f conftest*
14542       ac_ext=c
14543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14544 ac_cpp='$CPP $CPPFLAGS'
14545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14547 cross_compiling=$ac_cv_prog_cc_cross
14548
14549     
14550 fi
14551
14552   fi
14553   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
14554
14555     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
14556       for ac_func in _sincosl
14557 do
14558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14559 echo "configure:14560: checking for $ac_func" >&5
14560 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14561   echo $ac_n "(cached) $ac_c" 1>&6
14562 else
14563   cat > conftest.$ac_ext <<EOF
14564 #line 14565 "configure"
14565 #include "confdefs.h"
14566 /* System header to define __stub macros and hopefully few prototypes,
14567     which can conflict with char $ac_func(); below.  */
14568 #include <assert.h>
14569 /* Override any gcc2 internal prototype to avoid an error.  */
14570 /* We use char because int might match the return type of a gcc2
14571     builtin and then its argument prototype would still apply.  */
14572 char $ac_func();
14573
14574 int main() {
14575
14576 /* The GNU C library defines this for functions which it implements
14577     to always fail with ENOSYS.  Some functions are actually named
14578     something starting with __ and the normal name is an alias.  */
14579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14580 choke me
14581 #else
14582 $ac_func();
14583 #endif
14584
14585 ; return 0; }
14586 EOF
14587 if { (eval echo configure:14588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14588   rm -rf conftest*
14589   eval "ac_cv_func_$ac_func=yes"
14590 else
14591   echo "configure: failed program was:" >&5
14592   cat conftest.$ac_ext >&5
14593   rm -rf conftest*
14594   eval "ac_cv_func_$ac_func=no"
14595 fi
14596 rm -f conftest*
14597 fi
14598
14599 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14600   echo "$ac_t""yes" 1>&6
14601     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14602   cat >> confdefs.h <<EOF
14603 #define $ac_tr_func 1
14604 EOF
14605  
14606 else
14607   echo "$ac_t""no" 1>&6
14608 fi
14609 done
14610     
14611     fi  
14612   fi
14613
14614   
14615   
14616   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
14617 echo "configure:14618: checking for finitel declaration" >&5
14618   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
14619     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
14620   echo $ac_n "(cached) $ac_c" 1>&6
14621 else
14622   
14623       
14624       ac_ext=C
14625 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14626 ac_cpp='$CXXCPP $CPPFLAGS'
14627 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14628 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14629 cross_compiling=$ac_cv_prog_cxx_cross
14630
14631       cat > conftest.$ac_ext <<EOF
14632 #line 14633 "configure"
14633 #include "confdefs.h"
14634 #include <math.h>
14635                       #ifdef HAVE_IEEEFP_H
14636                       #include <ieeefp.h>
14637                       #endif
14638                      
14639 int main() {
14640  finitel(0);
14641 ; return 0; }
14642 EOF
14643 if { (eval echo configure:14644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14644   rm -rf conftest*
14645   glibcpp_cv_func_finitel_use=yes
14646 else
14647   echo "configure: failed program was:" >&5
14648   cat conftest.$ac_ext >&5
14649   rm -rf conftest*
14650   glibcpp_cv_func_finitel_use=no
14651 fi
14652 rm -f conftest*
14653       ac_ext=c
14654 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14655 ac_cpp='$CPP $CPPFLAGS'
14656 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14657 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14658 cross_compiling=$ac_cv_prog_cc_cross
14659
14660     
14661 fi
14662
14663   fi
14664   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
14665
14666   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
14667     for ac_func in finitel
14668 do
14669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14670 echo "configure:14671: checking for $ac_func" >&5
14671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14672   echo $ac_n "(cached) $ac_c" 1>&6
14673 else
14674   cat > conftest.$ac_ext <<EOF
14675 #line 14676 "configure"
14676 #include "confdefs.h"
14677 /* System header to define __stub macros and hopefully few prototypes,
14678     which can conflict with char $ac_func(); below.  */
14679 #include <assert.h>
14680 /* Override any gcc2 internal prototype to avoid an error.  */
14681 /* We use char because int might match the return type of a gcc2
14682     builtin and then its argument prototype would still apply.  */
14683 char $ac_func();
14684
14685 int main() {
14686
14687 /* The GNU C library defines this for functions which it implements
14688     to always fail with ENOSYS.  Some functions are actually named
14689     something starting with __ and the normal name is an alias.  */
14690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14691 choke me
14692 #else
14693 $ac_func();
14694 #endif
14695
14696 ; return 0; }
14697 EOF
14698 if { (eval echo configure:14699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14699   rm -rf conftest*
14700   eval "ac_cv_func_$ac_func=yes"
14701 else
14702   echo "configure: failed program was:" >&5
14703   cat conftest.$ac_ext >&5
14704   rm -rf conftest*
14705   eval "ac_cv_func_$ac_func=no"
14706 fi
14707 rm -f conftest*
14708 fi
14709
14710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14711   echo "$ac_t""yes" 1>&6
14712     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14713   cat >> confdefs.h <<EOF
14714 #define $ac_tr_func 1
14715 EOF
14716  
14717 else
14718   echo "$ac_t""no" 1>&6
14719 fi
14720 done
14721     
14722   else
14723     
14724   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
14725 echo "configure:14726: checking for _finitel declaration" >&5
14726   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
14727     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
14728   echo $ac_n "(cached) $ac_c" 1>&6
14729 else
14730   
14731       
14732       ac_ext=C
14733 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14734 ac_cpp='$CXXCPP $CPPFLAGS'
14735 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14736 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14737 cross_compiling=$ac_cv_prog_cxx_cross
14738
14739       cat > conftest.$ac_ext <<EOF
14740 #line 14741 "configure"
14741 #include "confdefs.h"
14742 #include <math.h>
14743                       #ifdef HAVE_IEEEFP_H
14744                       #include <ieeefp.h>
14745                       #endif
14746                      
14747 int main() {
14748  _finitel(0);
14749 ; return 0; }
14750 EOF
14751 if { (eval echo configure:14752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14752   rm -rf conftest*
14753   glibcpp_cv_func__finitel_use=yes
14754 else
14755   echo "configure: failed program was:" >&5
14756   cat conftest.$ac_ext >&5
14757   rm -rf conftest*
14758   glibcpp_cv_func__finitel_use=no
14759 fi
14760 rm -f conftest*
14761       ac_ext=c
14762 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14763 ac_cpp='$CPP $CPPFLAGS'
14764 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14765 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14766 cross_compiling=$ac_cv_prog_cc_cross
14767
14768     
14769 fi
14770
14771   fi
14772   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
14773
14774     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
14775       for ac_func in _finitel
14776 do
14777 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14778 echo "configure:14779: checking for $ac_func" >&5
14779 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14780   echo $ac_n "(cached) $ac_c" 1>&6
14781 else
14782   cat > conftest.$ac_ext <<EOF
14783 #line 14784 "configure"
14784 #include "confdefs.h"
14785 /* System header to define __stub macros and hopefully few prototypes,
14786     which can conflict with char $ac_func(); below.  */
14787 #include <assert.h>
14788 /* Override any gcc2 internal prototype to avoid an error.  */
14789 /* We use char because int might match the return type of a gcc2
14790     builtin and then its argument prototype would still apply.  */
14791 char $ac_func();
14792
14793 int main() {
14794
14795 /* The GNU C library defines this for functions which it implements
14796     to always fail with ENOSYS.  Some functions are actually named
14797     something starting with __ and the normal name is an alias.  */
14798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14799 choke me
14800 #else
14801 $ac_func();
14802 #endif
14803
14804 ; return 0; }
14805 EOF
14806 if { (eval echo configure:14807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14807   rm -rf conftest*
14808   eval "ac_cv_func_$ac_func=yes"
14809 else
14810   echo "configure: failed program was:" >&5
14811   cat conftest.$ac_ext >&5
14812   rm -rf conftest*
14813   eval "ac_cv_func_$ac_func=no"
14814 fi
14815 rm -f conftest*
14816 fi
14817
14818 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14819   echo "$ac_t""yes" 1>&6
14820     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14821   cat >> confdefs.h <<EOF
14822 #define $ac_tr_func 1
14823 EOF
14824  
14825 else
14826   echo "$ac_t""no" 1>&6
14827 fi
14828 done
14829     
14830     fi  
14831   fi
14832
14833
14834         
14835     
14836   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
14837 echo "configure:14838: checking for _float trig functions" >&5
14838   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
14839   echo $ac_n "(cached) $ac_c" 1>&6
14840 else
14841   
14842     
14843     ac_ext=C
14844 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14845 ac_cpp='$CXXCPP $CPPFLAGS'
14846 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14847 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14848 cross_compiling=$ac_cv_prog_cxx_cross
14849
14850     cat > conftest.$ac_ext <<EOF
14851 #line 14852 "configure"
14852 #include "confdefs.h"
14853 #include <math.h>
14854 int main() {
14855  `for x in _acosf _asinf _atanf \
14856                                           _cosf _sinf _tanf \
14857                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
14858 ; return 0; }
14859 EOF
14860 if { (eval echo configure:14861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14861   rm -rf conftest*
14862   glibcpp_cv_func__float_trig_use=yes
14863 else
14864   echo "configure: failed program was:" >&5
14865   cat conftest.$ac_ext >&5
14866   rm -rf conftest*
14867   glibcpp_cv_func__float_trig_use=no
14868 fi
14869 rm -f conftest*
14870     ac_ext=c
14871 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14872 ac_cpp='$CPP $CPPFLAGS'
14873 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14874 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14875 cross_compiling=$ac_cv_prog_cc_cross
14876
14877 fi
14878
14879   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
14880   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
14881     for ac_func in _acosf _asinf _atanf \
14882                                           _cosf _sinf _tanf \
14883                                           _coshf _sinhf _tanhf
14884 do
14885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14886 echo "configure:14887: checking for $ac_func" >&5
14887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14888   echo $ac_n "(cached) $ac_c" 1>&6
14889 else
14890   cat > conftest.$ac_ext <<EOF
14891 #line 14892 "configure"
14892 #include "confdefs.h"
14893 /* System header to define __stub macros and hopefully few prototypes,
14894     which can conflict with char $ac_func(); below.  */
14895 #include <assert.h>
14896 /* Override any gcc2 internal prototype to avoid an error.  */
14897 /* We use char because int might match the return type of a gcc2
14898     builtin and then its argument prototype would still apply.  */
14899 char $ac_func();
14900
14901 int main() {
14902
14903 /* The GNU C library defines this for functions which it implements
14904     to always fail with ENOSYS.  Some functions are actually named
14905     something starting with __ and the normal name is an alias.  */
14906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14907 choke me
14908 #else
14909 $ac_func();
14910 #endif
14911
14912 ; return 0; }
14913 EOF
14914 if { (eval echo configure:14915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14915   rm -rf conftest*
14916   eval "ac_cv_func_$ac_func=yes"
14917 else
14918   echo "configure: failed program was:" >&5
14919   cat conftest.$ac_ext >&5
14920   rm -rf conftest*
14921   eval "ac_cv_func_$ac_func=no"
14922 fi
14923 rm -f conftest*
14924 fi
14925
14926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14927   echo "$ac_t""yes" 1>&6
14928     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14929   cat >> confdefs.h <<EOF
14930 #define $ac_tr_func 1
14931 EOF
14932  
14933 else
14934   echo "$ac_t""no" 1>&6
14935 fi
14936 done
14937
14938   fi
14939
14940   
14941   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
14942 echo "configure:14943: checking for _float round functions" >&5
14943   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
14944   echo $ac_n "(cached) $ac_c" 1>&6
14945 else
14946   
14947     
14948     ac_ext=C
14949 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14950 ac_cpp='$CXXCPP $CPPFLAGS'
14951 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14952 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14953 cross_compiling=$ac_cv_prog_cxx_cross
14954
14955     cat > conftest.$ac_ext <<EOF
14956 #line 14957 "configure"
14957 #include "confdefs.h"
14958 #include <math.h>
14959 int main() {
14960  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
14961 ; return 0; }
14962 EOF
14963 if { (eval echo configure:14964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14964   rm -rf conftest*
14965   glibcpp_cv_func__float_round_use=yes
14966 else
14967   echo "configure: failed program was:" >&5
14968   cat conftest.$ac_ext >&5
14969   rm -rf conftest*
14970   glibcpp_cv_func__float_round_use=no
14971 fi
14972 rm -f conftest*
14973     ac_ext=c
14974 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14975 ac_cpp='$CPP $CPPFLAGS'
14976 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14977 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14978 cross_compiling=$ac_cv_prog_cc_cross
14979
14980 fi
14981
14982   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
14983   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
14984     for ac_func in _ceilf _floorf
14985 do
14986 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14987 echo "configure:14988: checking for $ac_func" >&5
14988 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14989   echo $ac_n "(cached) $ac_c" 1>&6
14990 else
14991   cat > conftest.$ac_ext <<EOF
14992 #line 14993 "configure"
14993 #include "confdefs.h"
14994 /* System header to define __stub macros and hopefully few prototypes,
14995     which can conflict with char $ac_func(); below.  */
14996 #include <assert.h>
14997 /* Override any gcc2 internal prototype to avoid an error.  */
14998 /* We use char because int might match the return type of a gcc2
14999     builtin and then its argument prototype would still apply.  */
15000 char $ac_func();
15001
15002 int main() {
15003
15004 /* The GNU C library defines this for functions which it implements
15005     to always fail with ENOSYS.  Some functions are actually named
15006     something starting with __ and the normal name is an alias.  */
15007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15008 choke me
15009 #else
15010 $ac_func();
15011 #endif
15012
15013 ; return 0; }
15014 EOF
15015 if { (eval echo configure:15016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15016   rm -rf conftest*
15017   eval "ac_cv_func_$ac_func=yes"
15018 else
15019   echo "configure: failed program was:" >&5
15020   cat conftest.$ac_ext >&5
15021   rm -rf conftest*
15022   eval "ac_cv_func_$ac_func=no"
15023 fi
15024 rm -f conftest*
15025 fi
15026
15027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15028   echo "$ac_t""yes" 1>&6
15029     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15030   cat >> confdefs.h <<EOF
15031 #define $ac_tr_func 1
15032 EOF
15033  
15034 else
15035   echo "$ac_t""no" 1>&6
15036 fi
15037 done
15038
15039   fi
15040
15041
15042     
15043   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
15044 echo "configure:15045: checking for _long double trig functions" >&5
15045   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
15046   echo $ac_n "(cached) $ac_c" 1>&6
15047 else
15048   
15049     
15050     ac_ext=C
15051 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15052 ac_cpp='$CXXCPP $CPPFLAGS'
15053 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15054 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15055 cross_compiling=$ac_cv_prog_cxx_cross
15056
15057     cat > conftest.$ac_ext <<EOF
15058 #line 15059 "configure"
15059 #include "confdefs.h"
15060 #include <math.h>
15061 int main() {
15062  `for x in _acosl _asinl _atanl \
15063                                           _cosl _sinl _tanl \
15064                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
15065 ; return 0; }
15066 EOF
15067 if { (eval echo configure:15068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15068   rm -rf conftest*
15069   glibcpp_cv_func__long_double_trig_use=yes
15070 else
15071   echo "configure: failed program was:" >&5
15072   cat conftest.$ac_ext >&5
15073   rm -rf conftest*
15074   glibcpp_cv_func__long_double_trig_use=no
15075 fi
15076 rm -f conftest*
15077     ac_ext=c
15078 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15079 ac_cpp='$CPP $CPPFLAGS'
15080 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15081 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15082 cross_compiling=$ac_cv_prog_cc_cross
15083
15084 fi
15085
15086   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
15087   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
15088     for ac_func in _acosl _asinl _atanl \
15089                                           _cosl _sinl _tanl \
15090                                           _coshl _sinhl _tanhl
15091 do
15092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15093 echo "configure:15094: checking for $ac_func" >&5
15094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15095   echo $ac_n "(cached) $ac_c" 1>&6
15096 else
15097   cat > conftest.$ac_ext <<EOF
15098 #line 15099 "configure"
15099 #include "confdefs.h"
15100 /* System header to define __stub macros and hopefully few prototypes,
15101     which can conflict with char $ac_func(); below.  */
15102 #include <assert.h>
15103 /* Override any gcc2 internal prototype to avoid an error.  */
15104 /* We use char because int might match the return type of a gcc2
15105     builtin and then its argument prototype would still apply.  */
15106 char $ac_func();
15107
15108 int main() {
15109
15110 /* The GNU C library defines this for functions which it implements
15111     to always fail with ENOSYS.  Some functions are actually named
15112     something starting with __ and the normal name is an alias.  */
15113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15114 choke me
15115 #else
15116 $ac_func();
15117 #endif
15118
15119 ; return 0; }
15120 EOF
15121 if { (eval echo configure:15122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15122   rm -rf conftest*
15123   eval "ac_cv_func_$ac_func=yes"
15124 else
15125   echo "configure: failed program was:" >&5
15126   cat conftest.$ac_ext >&5
15127   rm -rf conftest*
15128   eval "ac_cv_func_$ac_func=no"
15129 fi
15130 rm -f conftest*
15131 fi
15132
15133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15134   echo "$ac_t""yes" 1>&6
15135     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15136   cat >> confdefs.h <<EOF
15137 #define $ac_tr_func 1
15138 EOF
15139  
15140 else
15141   echo "$ac_t""no" 1>&6
15142 fi
15143 done
15144
15145   fi
15146
15147   
15148   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
15149 echo "configure:15150: checking for _long double round functions" >&5
15150   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_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  `for x in _ceill _floorl; do echo "$x (0);"; done` 
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__long_double_round_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__long_double_round_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 fi
15188
15189   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
15190   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
15191     for ac_func in _ceill _floorl
15192 do
15193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15194 echo "configure:15195: checking for $ac_func" >&5
15195 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15196   echo $ac_n "(cached) $ac_c" 1>&6
15197 else
15198   cat > conftest.$ac_ext <<EOF
15199 #line 15200 "configure"
15200 #include "confdefs.h"
15201 /* System header to define __stub macros and hopefully few prototypes,
15202     which can conflict with char $ac_func(); below.  */
15203 #include <assert.h>
15204 /* Override any gcc2 internal prototype to avoid an error.  */
15205 /* We use char because int might match the return type of a gcc2
15206     builtin and then its argument prototype would still apply.  */
15207 char $ac_func();
15208
15209 int main() {
15210
15211 /* The GNU C library defines this for functions which it implements
15212     to always fail with ENOSYS.  Some functions are actually named
15213     something starting with __ and the normal name is an alias.  */
15214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15215 choke me
15216 #else
15217 $ac_func();
15218 #endif
15219
15220 ; return 0; }
15221 EOF
15222 if { (eval echo configure:15223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15223   rm -rf conftest*
15224   eval "ac_cv_func_$ac_func=yes"
15225 else
15226   echo "configure: failed program was:" >&5
15227   cat conftest.$ac_ext >&5
15228   rm -rf conftest*
15229   eval "ac_cv_func_$ac_func=no"
15230 fi
15231 rm -f conftest*
15232 fi
15233
15234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15235   echo "$ac_t""yes" 1>&6
15236     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15237   cat >> confdefs.h <<EOF
15238 #define $ac_tr_func 1
15239 EOF
15240  
15241 else
15242   echo "$ac_t""no" 1>&6
15243 fi
15244 done
15245
15246   fi
15247
15248
15249   LIBS="$ac_save_LIBS"
15250   CXXFLAGS="$ac_save_CXXFLAGS"
15251
15252   
15253     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
15254 echo "configure:15255: checking for main in -lm" >&5
15255 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
15256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15257   echo $ac_n "(cached) $ac_c" 1>&6
15258 else
15259   ac_save_LIBS="$LIBS"
15260 LIBS="-lm  $LIBS"
15261 cat > conftest.$ac_ext <<EOF
15262 #line 15263 "configure"
15263 #include "confdefs.h"
15264
15265 int main() {
15266 main()
15267 ; return 0; }
15268 EOF
15269 if { (eval echo configure:15270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15270   rm -rf conftest*
15271   eval "ac_cv_lib_$ac_lib_var=yes"
15272 else
15273   echo "configure: failed program was:" >&5
15274   cat conftest.$ac_ext >&5
15275   rm -rf conftest*
15276   eval "ac_cv_lib_$ac_lib_var=no"
15277 fi
15278 rm -f conftest*
15279 LIBS="$ac_save_LIBS"
15280
15281 fi
15282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15283   echo "$ac_t""yes" 1>&6
15284     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
15285     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
15286   cat >> confdefs.h <<EOF
15287 #define $ac_tr_lib 1
15288 EOF
15289
15290   LIBS="-lm $LIBS"
15291
15292 else
15293   echo "$ac_t""no" 1>&6
15294 fi
15295
15296   for ac_func in nan hypot hypotf atan2f expf copysignf
15297 do
15298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15299 echo "configure:15300: checking for $ac_func" >&5
15300 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15301   echo $ac_n "(cached) $ac_c" 1>&6
15302 else
15303   cat > conftest.$ac_ext <<EOF
15304 #line 15305 "configure"
15305 #include "confdefs.h"
15306 /* System header to define __stub macros and hopefully few prototypes,
15307     which can conflict with char $ac_func(); below.  */
15308 #include <assert.h>
15309 /* Override any gcc2 internal prototype to avoid an error.  */
15310 /* We use char because int might match the return type of a gcc2
15311     builtin and then its argument prototype would still apply.  */
15312 char $ac_func();
15313
15314 int main() {
15315
15316 /* The GNU C library defines this for functions which it implements
15317     to always fail with ENOSYS.  Some functions are actually named
15318     something starting with __ and the normal name is an alias.  */
15319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15320 choke me
15321 #else
15322 $ac_func();
15323 #endif
15324
15325 ; return 0; }
15326 EOF
15327 if { (eval echo configure:15328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15328   rm -rf conftest*
15329   eval "ac_cv_func_$ac_func=yes"
15330 else
15331   echo "configure: failed program was:" >&5
15332   cat conftest.$ac_ext >&5
15333   rm -rf conftest*
15334   eval "ac_cv_func_$ac_func=no"
15335 fi
15336 rm -f conftest*
15337 fi
15338
15339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15340   echo "$ac_t""yes" 1>&6
15341     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15342   cat >> confdefs.h <<EOF
15343 #define $ac_tr_func 1
15344 EOF
15345  
15346 else
15347   echo "$ac_t""no" 1>&6
15348 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15349 fi
15350 done
15351
15352
15353
15354           USE_COMPLEX_LONG_DOUBLE=no
15355   if test x$ac_cv_func_atan2l = x"yes" \
15356      && test x$ac_cv_func_copysignl = x"yes"; then
15357     USE_COMPLEX_LONG_DOUBLE=yes
15358     for ac_func in hypotl signbitl
15359 do
15360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15361 echo "configure:15362: checking for $ac_func" >&5
15362 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15363   echo $ac_n "(cached) $ac_c" 1>&6
15364 else
15365   cat > conftest.$ac_ext <<EOF
15366 #line 15367 "configure"
15367 #include "confdefs.h"
15368 /* System header to define __stub macros and hopefully few prototypes,
15369     which can conflict with char $ac_func(); below.  */
15370 #include <assert.h>
15371 /* Override any gcc2 internal prototype to avoid an error.  */
15372 /* We use char because int might match the return type of a gcc2
15373     builtin and then its argument prototype would still apply.  */
15374 char $ac_func();
15375
15376 int main() {
15377
15378 /* The GNU C library defines this for functions which it implements
15379     to always fail with ENOSYS.  Some functions are actually named
15380     something starting with __ and the normal name is an alias.  */
15381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15382 choke me
15383 #else
15384 $ac_func();
15385 #endif
15386
15387 ; return 0; }
15388 EOF
15389 if { (eval echo configure:15390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15390   rm -rf conftest*
15391   eval "ac_cv_func_$ac_func=yes"
15392 else
15393   echo "configure: failed program was:" >&5
15394   cat conftest.$ac_ext >&5
15395   rm -rf conftest*
15396   eval "ac_cv_func_$ac_func=no"
15397 fi
15398 rm -f conftest*
15399 fi
15400
15401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15402   echo "$ac_t""yes" 1>&6
15403     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15404   cat >> confdefs.h <<EOF
15405 #define $ac_tr_func 1
15406 EOF
15407  
15408 else
15409   echo "$ac_t""no" 1>&6
15410 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15411 fi
15412 done
15413
15414
15415   fi
15416
15417   
15418
15419   
15420   
15421
15422   echo $ac_n "checking for GNU C++ __complex__ support""... $ac_c" 1>&6
15423 echo "configure:15424: checking for GNU C++ __complex__ support" >&5
15424   if eval "test \"`echo '$''{'glibcpp_cv_complex'+set}'`\" = set"; then
15425   echo $ac_n "(cached) $ac_c" 1>&6
15426 else
15427   
15428     
15429     ac_ext=C
15430 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15431 ac_cpp='$CXXCPP $CPPFLAGS'
15432 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15433 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15434 cross_compiling=$ac_cv_prog_cxx_cross
15435
15436     cat > conftest.$ac_ext <<EOF
15437 #line 15438 "configure"
15438 #include "confdefs.h"
15439 struct dcomplex { __complex__ double x; }; \
15440                     dcomplex f(const dcomplex& x) { return dcomplex(x); }
15441 int main() {
15442 \
15443                      dcomplex x; f(x); 
15444 ; return 0; }
15445 EOF
15446 if { (eval echo configure:15447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15447   rm -rf conftest*
15448   glibcpp_cv_complex=ok
15449 else
15450   echo "configure: failed program was:" >&5
15451   cat conftest.$ac_ext >&5
15452   rm -rf conftest*
15453   glibcpp_cv_complex=buggy
15454     
15455 fi
15456 rm -f conftest*
15457     ac_ext=c
15458 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15459 ac_cpp='$CPP $CPPFLAGS'
15460 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15461 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15462 cross_compiling=$ac_cv_prog_cc_cross
15463
15464   
15465 fi
15466
15467   echo "$ac_t""$glibcpp_cv_complex" 1>&6
15468   if test $glibcpp_cv_complex = buggy; then
15469     cat >> confdefs.h <<\EOF
15470 #define _GLIBCPP_BUGGY_COMPLEX 1
15471 EOF
15472
15473   fi
15474
15475   echo $ac_n "checking for GNU C++ __complex__ float support""... $ac_c" 1>&6
15476 echo "configure:15477: checking for GNU C++ __complex__ float support" >&5
15477   if eval "test \"`echo '$''{'glibcpp_cv_float_complex'+set}'`\" = set"; then
15478   echo $ac_n "(cached) $ac_c" 1>&6
15479 else
15480   
15481     
15482     ac_ext=C
15483 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15484 ac_cpp='$CXXCPP $CPPFLAGS'
15485 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15486 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15487 cross_compiling=$ac_cv_prog_cxx_cross
15488
15489     rm -f conftest.h
15490     cat > conftest.h <<EOB
15491       //
15492       // Check for buggy __complex__ that causes ICE in most versions of egcs
15493       // and gcc-2.95.x on certain platforms (eg., x86-win32).
15494       //
15495       // See http://gcc.gnu.org/ml/gcc-bugs/1999-07n/msg00845.html for
15496       // more info on the bug itself.
15497       //
15498       struct
15499       float_complex
15500       {
15501        __complex__ float m_value;
15502        float_complex (float = 0.0f, float = 0.0f);
15503        float_complex (__complex__ float val) : m_value (val) {}
15504        float_complex foo (const float_complex &val)
15505          { return float_complex (~val.m_value); }
15506       };
15507 EOB
15508     cat > conftest.$ac_ext <<EOF
15509 #line 15510 "configure"
15510 #include "confdefs.h"
15511 #include "conftest.h"
15512 int main() {
15513
15514 ; return 0; }
15515 EOF
15516 if { (eval echo configure:15517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15517   rm -rf conftest*
15518   glibcpp_cv_float_complex=ok
15519 else
15520   echo "configure: failed program was:" >&5
15521   cat conftest.$ac_ext >&5
15522   rm -rf conftest*
15523   glibcpp_cv_float_complex=buggy
15524     
15525 fi
15526 rm -f conftest*
15527     ac_ext=c
15528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15529 ac_cpp='$CPP $CPPFLAGS'
15530 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15531 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15532 cross_compiling=$ac_cv_prog_cc_cross
15533
15534   
15535 fi
15536
15537   echo "$ac_t""$glibcpp_cv_float_complex" 1>&6
15538   if test $glibcpp_cv_float_complex = buggy; then
15539     cat >> confdefs.h <<\EOF
15540 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
15541 EOF
15542
15543   fi
15544
15545   
15546
15547       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
15548 echo "configure:15549: checking for mbstate_t" >&5
15549   cat > conftest.$ac_ext <<EOF
15550 #line 15551 "configure"
15551 #include "confdefs.h"
15552 #include <wchar.h>
15553 int main() {
15554 mbstate_t teststate;
15555 ; return 0; }
15556 EOF
15557 if { (eval echo configure:15558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15558   rm -rf conftest*
15559   have_mbstate_t=yes
15560 else
15561   echo "configure: failed program was:" >&5
15562   cat conftest.$ac_ext >&5
15563   rm -rf conftest*
15564   have_mbstate_t=no
15565 fi
15566 rm -f conftest*
15567   echo "$ac_t""$have_mbstate_t" 1>&6
15568   if test x"$have_mbstate_t" = xyes; then
15569     cat >> confdefs.h <<\EOF
15570 #define HAVE_MBSTATE_T 1
15571 EOF
15572
15573   fi
15574
15575     for ac_hdr in wchar.h
15576 do
15577 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15578 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15579 echo "configure:15580: checking for $ac_hdr" >&5
15580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15581   echo $ac_n "(cached) $ac_c" 1>&6
15582 else
15583   cat > conftest.$ac_ext <<EOF
15584 #line 15585 "configure"
15585 #include "confdefs.h"
15586 #include <$ac_hdr>
15587 EOF
15588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15589 { (eval echo configure:15590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15591 if test -z "$ac_err"; then
15592   rm -rf conftest*
15593   eval "ac_cv_header_$ac_safe=yes"
15594 else
15595   echo "$ac_err" >&5
15596   echo "configure: failed program was:" >&5
15597   cat conftest.$ac_ext >&5
15598   rm -rf conftest*
15599   eval "ac_cv_header_$ac_safe=no"
15600 fi
15601 rm -f conftest*
15602 fi
15603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15604   echo "$ac_t""yes" 1>&6
15605     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15606   cat >> confdefs.h <<EOF
15607 #define $ac_tr_hdr 1
15608 EOF
15609  ac_has_wchar_h=yes
15610 else
15611   echo "$ac_t""no" 1>&6
15612 ac_has_wchar_h=no
15613 fi
15614 done
15615
15616   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
15617 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
15618 echo "configure:15619: checking for wctype.h" >&5
15619 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15620   echo $ac_n "(cached) $ac_c" 1>&6
15621 else
15622   cat > conftest.$ac_ext <<EOF
15623 #line 15624 "configure"
15624 #include "confdefs.h"
15625 #include <wctype.h>
15626 EOF
15627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15628 { (eval echo configure:15629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15630 if test -z "$ac_err"; then
15631   rm -rf conftest*
15632   eval "ac_cv_header_$ac_safe=yes"
15633 else
15634   echo "$ac_err" >&5
15635   echo "configure: failed program was:" >&5
15636   cat conftest.$ac_ext >&5
15637   rm -rf conftest*
15638   eval "ac_cv_header_$ac_safe=no"
15639 fi
15640 rm -f conftest*
15641 fi
15642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15643   echo "$ac_t""yes" 1>&6
15644   ac_has_wctype_h=yes
15645 else
15646   echo "$ac_t""no" 1>&6
15647 ac_has_wctype_h=no
15648 fi
15649
15650   
15651     if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
15652      && test x"$enable_c_mbchar" != xno; then
15653       
15654             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
15655 echo "configure:15656: checking for WCHAR_MIN and WCHAR_MAX" >&5
15656     cat > conftest.$ac_ext <<EOF
15657 #line 15658 "configure"
15658 #include "confdefs.h"
15659 #include <wchar.h>
15660 int main() {
15661 int i = WCHAR_MIN; int j = WCHAR_MAX;
15662 ; return 0; }
15663 EOF
15664 if { (eval echo configure:15665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15665   rm -rf conftest*
15666   has_wchar_minmax=yes
15667 else
15668   echo "configure: failed program was:" >&5
15669   cat conftest.$ac_ext >&5
15670   rm -rf conftest*
15671   has_wchar_minmax=no
15672 fi
15673 rm -f conftest*
15674     echo "$ac_t""$has_wchar_minmax" 1>&6
15675     
15676             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
15677 echo "configure:15678: checking for WEOF" >&5
15678     cat > conftest.$ac_ext <<EOF
15679 #line 15680 "configure"
15680 #include "confdefs.h"
15681
15682       #include <wchar.h>
15683       #include <stddef.h>
15684 int main() {
15685 wint_t i = WEOF;
15686 ; return 0; }
15687 EOF
15688 if { (eval echo configure:15689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15689   rm -rf conftest*
15690   has_weof=yes
15691 else
15692   echo "configure: failed program was:" >&5
15693   cat conftest.$ac_ext >&5
15694   rm -rf conftest*
15695   has_weof=no
15696 fi
15697 rm -f conftest*
15698     echo "$ac_t""$has_weof" 1>&6
15699   
15700         for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \
15701     wcsrtombs mbsrtowcs
15702 do
15703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15704 echo "configure:15705: checking for $ac_func" >&5
15705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15706   echo $ac_n "(cached) $ac_c" 1>&6
15707 else
15708   cat > conftest.$ac_ext <<EOF
15709 #line 15710 "configure"
15710 #include "confdefs.h"
15711 /* System header to define __stub macros and hopefully few prototypes,
15712     which can conflict with char $ac_func(); below.  */
15713 #include <assert.h>
15714 /* Override any gcc2 internal prototype to avoid an error.  */
15715 /* We use char because int might match the return type of a gcc2
15716     builtin and then its argument prototype would still apply.  */
15717 char $ac_func();
15718
15719 int main() {
15720
15721 /* The GNU C library defines this for functions which it implements
15722     to always fail with ENOSYS.  Some functions are actually named
15723     something starting with __ and the normal name is an alias.  */
15724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15725 choke me
15726 #else
15727 $ac_func();
15728 #endif
15729
15730 ; return 0; }
15731 EOF
15732 if { (eval echo configure:15733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15733   rm -rf conftest*
15734   eval "ac_cv_func_$ac_func=yes"
15735 else
15736   echo "configure: failed program was:" >&5
15737   cat conftest.$ac_ext >&5
15738   rm -rf conftest*
15739   eval "ac_cv_func_$ac_func=no"
15740 fi
15741 rm -f conftest*
15742 fi
15743
15744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15745   echo "$ac_t""yes" 1>&6
15746     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15747   cat >> confdefs.h <<EOF
15748 #define $ac_tr_func 1
15749 EOF
15750  ac_wfuncs=yes
15751 else
15752   echo "$ac_t""no" 1>&6
15753 ac_wfuncs=no
15754 fi
15755 done
15756
15757   
15758     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
15759 echo "configure:15760: checking for ISO C99 wchar_t support" >&5
15760     if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
15761        && test x"$ac_wfuncs" = xyes; then
15762       ac_isoC99_wchar_t=yes
15763     else
15764       ac_isoC99_wchar_t=no
15765     fi
15766     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
15767   
15768             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
15769 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
15770 echo "configure:15771: checking for iconv.h" >&5
15771 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15772   echo $ac_n "(cached) $ac_c" 1>&6
15773 else
15774   cat > conftest.$ac_ext <<EOF
15775 #line 15776 "configure"
15776 #include "confdefs.h"
15777 #include <iconv.h>
15778 EOF
15779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15780 { (eval echo configure:15781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15782 if test -z "$ac_err"; then
15783   rm -rf conftest*
15784   eval "ac_cv_header_$ac_safe=yes"
15785 else
15786   echo "$ac_err" >&5
15787   echo "configure: failed program was:" >&5
15788   cat conftest.$ac_ext >&5
15789   rm -rf conftest*
15790   eval "ac_cv_header_$ac_safe=no"
15791 fi
15792 rm -f conftest*
15793 fi
15794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15795   echo "$ac_t""yes" 1>&6
15796   ac_has_iconv_h=yes
15797 else
15798   echo "$ac_t""no" 1>&6
15799 ac_has_iconv_h=no
15800 fi
15801
15802     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
15803 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
15804 echo "configure:15805: checking for langinfo.h" >&5
15805 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15806   echo $ac_n "(cached) $ac_c" 1>&6
15807 else
15808   cat > conftest.$ac_ext <<EOF
15809 #line 15810 "configure"
15810 #include "confdefs.h"
15811 #include <langinfo.h>
15812 EOF
15813 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15814 { (eval echo configure:15815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15815 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15816 if test -z "$ac_err"; then
15817   rm -rf conftest*
15818   eval "ac_cv_header_$ac_safe=yes"
15819 else
15820   echo "$ac_err" >&5
15821   echo "configure: failed program was:" >&5
15822   cat conftest.$ac_ext >&5
15823   rm -rf conftest*
15824   eval "ac_cv_header_$ac_safe=no"
15825 fi
15826 rm -f conftest*
15827 fi
15828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15829   echo "$ac_t""yes" 1>&6
15830   ac_has_langinfo_h=yes
15831 else
15832   echo "$ac_t""no" 1>&6
15833 ac_has_langinfo_h=no
15834 fi
15835
15836
15837         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
15838 echo "configure:15839: checking for iconv in -liconv" >&5
15839 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
15840 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15841   echo $ac_n "(cached) $ac_c" 1>&6
15842 else
15843   ac_save_LIBS="$LIBS"
15844 LIBS="-liconv  $LIBS"
15845 cat > conftest.$ac_ext <<EOF
15846 #line 15847 "configure"
15847 #include "confdefs.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 iconv();
15852
15853 int main() {
15854 iconv()
15855 ; return 0; }
15856 EOF
15857 if { (eval echo configure:15858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15858   rm -rf conftest*
15859   eval "ac_cv_lib_$ac_lib_var=yes"
15860 else
15861   echo "configure: failed program was:" >&5
15862   cat conftest.$ac_ext >&5
15863   rm -rf conftest*
15864   eval "ac_cv_lib_$ac_lib_var=no"
15865 fi
15866 rm -f conftest*
15867 LIBS="$ac_save_LIBS"
15868
15869 fi
15870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15871   echo "$ac_t""yes" 1>&6
15872   libiconv="-liconv"
15873 else
15874   echo "$ac_t""no" 1>&6
15875 fi
15876
15877     ac_save_LIBS="$LIBS"
15878     LIBS="$LIBS $libiconv"
15879
15880     for ac_func in iconv_open iconv_close iconv nl_langinfo
15881 do
15882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15883 echo "configure:15884: checking for $ac_func" >&5
15884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15885   echo $ac_n "(cached) $ac_c" 1>&6
15886 else
15887   cat > conftest.$ac_ext <<EOF
15888 #line 15889 "configure"
15889 #include "confdefs.h"
15890 /* System header to define __stub macros and hopefully few prototypes,
15891     which can conflict with char $ac_func(); below.  */
15892 #include <assert.h>
15893 /* Override any gcc2 internal prototype to avoid an error.  */
15894 /* We use char because int might match the return type of a gcc2
15895     builtin and then its argument prototype would still apply.  */
15896 char $ac_func();
15897
15898 int main() {
15899
15900 /* The GNU C library defines this for functions which it implements
15901     to always fail with ENOSYS.  Some functions are actually named
15902     something starting with __ and the normal name is an alias.  */
15903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15904 choke me
15905 #else
15906 $ac_func();
15907 #endif
15908
15909 ; return 0; }
15910 EOF
15911 if { (eval echo configure:15912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15912   rm -rf conftest*
15913   eval "ac_cv_func_$ac_func=yes"
15914 else
15915   echo "configure: failed program was:" >&5
15916   cat conftest.$ac_ext >&5
15917   rm -rf conftest*
15918   eval "ac_cv_func_$ac_func=no"
15919 fi
15920 rm -f conftest*
15921 fi
15922
15923 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15924   echo "$ac_t""yes" 1>&6
15925     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15926   cat >> confdefs.h <<EOF
15927 #define $ac_tr_func 1
15928 EOF
15929  \
15930     ac_XPG2funcs=yes
15931 else
15932   echo "$ac_t""no" 1>&6
15933 ac_XPG2funcs=no
15934 fi
15935 done
15936
15937   
15938     LIBS="$ac_save_LIBS"
15939
15940     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
15941 echo "configure:15942: checking for XPG2 wchar_t support" >&5
15942     if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
15943        && test x"$ac_XPG2funcs" = xyes; then
15944       ac_XPG2_wchar_t=yes
15945     else
15946       ac_XPG2_wchar_t=no
15947     fi
15948     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
15949   
15950             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
15951 echo "configure:15952: checking for enabled wchar_t specializations" >&5
15952     if test x"$ac_isoC99_wchar_t" = xyes \
15953        && test x"$ac_XPG2_wchar_t" = xyes; then
15954       cat >> confdefs.h <<\EOF
15955 #define _GLIBCPP_USE_WCHAR_T 1
15956 EOF
15957
15958       echo "$ac_t"""yes"" 1>&6
15959     else
15960       echo "$ac_t"""no"" 1>&6
15961     fi
15962   else
15963         echo "configure: warning: wchar_t support disabled." 1>&2
15964   fi
15965
15966   
15967   ac_test_CXXFLAGS="${CXXFLAGS+set}"
15968   ac_save_CXXFLAGS="$CXXFLAGS"
15969   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
15970
15971   for ac_func in strtof
15972 do
15973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15974 echo "configure:15975: checking for $ac_func" >&5
15975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15976   echo $ac_n "(cached) $ac_c" 1>&6
15977 else
15978   cat > conftest.$ac_ext <<EOF
15979 #line 15980 "configure"
15980 #include "confdefs.h"
15981 /* System header to define __stub macros and hopefully few prototypes,
15982     which can conflict with char $ac_func(); below.  */
15983 #include <assert.h>
15984 /* Override any gcc2 internal prototype to avoid an error.  */
15985 /* We use char because int might match the return type of a gcc2
15986     builtin and then its argument prototype would still apply.  */
15987 char $ac_func();
15988
15989 int main() {
15990
15991 /* The GNU C library defines this for functions which it implements
15992     to always fail with ENOSYS.  Some functions are actually named
15993     something starting with __ and the normal name is an alias.  */
15994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15995 choke me
15996 #else
15997 $ac_func();
15998 #endif
15999
16000 ; return 0; }
16001 EOF
16002 if { (eval echo configure:16003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16003   rm -rf conftest*
16004   eval "ac_cv_func_$ac_func=yes"
16005 else
16006   echo "configure: failed program was:" >&5
16007   cat conftest.$ac_ext >&5
16008   rm -rf conftest*
16009   eval "ac_cv_func_$ac_func=no"
16010 fi
16011 rm -f conftest*
16012 fi
16013
16014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16015   echo "$ac_t""yes" 1>&6
16016     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16017   cat >> confdefs.h <<EOF
16018 #define $ac_tr_func 1
16019 EOF
16020  
16021 else
16022   echo "$ac_t""no" 1>&6
16023 fi
16024 done
16025
16026   
16027   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
16028 echo "configure:16029: checking for strtold declaration" >&5
16029   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
16030     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
16031   echo $ac_n "(cached) $ac_c" 1>&6
16032 else
16033   
16034       
16035       ac_ext=C
16036 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16037 ac_cpp='$CXXCPP $CPPFLAGS'
16038 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16039 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16040 cross_compiling=$ac_cv_prog_cxx_cross
16041
16042       cat > conftest.$ac_ext <<EOF
16043 #line 16044 "configure"
16044 #include "confdefs.h"
16045 #include <stdlib.h>
16046 int main() {
16047  strtold(0, 0);
16048 ; return 0; }
16049 EOF
16050 if { (eval echo configure:16051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16051   rm -rf conftest*
16052   glibcpp_cv_func_strtold_use=yes
16053 else
16054   echo "configure: failed program was:" >&5
16055   cat conftest.$ac_ext >&5
16056   rm -rf conftest*
16057   glibcpp_cv_func_strtold_use=no
16058 fi
16059 rm -f conftest*
16060       ac_ext=c
16061 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16062 ac_cpp='$CPP $CPPFLAGS'
16063 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16064 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16065 cross_compiling=$ac_cv_prog_cc_cross
16066
16067     
16068 fi
16069
16070   fi
16071   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
16072   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
16073     for ac_func in strtold
16074 do
16075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16076 echo "configure:16077: checking for $ac_func" >&5
16077 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16078   echo $ac_n "(cached) $ac_c" 1>&6
16079 else
16080   cat > conftest.$ac_ext <<EOF
16081 #line 16082 "configure"
16082 #include "confdefs.h"
16083 /* System header to define __stub macros and hopefully few prototypes,
16084     which can conflict with char $ac_func(); below.  */
16085 #include <assert.h>
16086 /* Override any gcc2 internal prototype to avoid an error.  */
16087 /* We use char because int might match the return type of a gcc2
16088     builtin and then its argument prototype would still apply.  */
16089 char $ac_func();
16090
16091 int main() {
16092
16093 /* The GNU C library defines this for functions which it implements
16094     to always fail with ENOSYS.  Some functions are actually named
16095     something starting with __ and the normal name is an alias.  */
16096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16097 choke me
16098 #else
16099 $ac_func();
16100 #endif
16101
16102 ; return 0; }
16103 EOF
16104 if { (eval echo configure:16105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16105   rm -rf conftest*
16106   eval "ac_cv_func_$ac_func=yes"
16107 else
16108   echo "configure: failed program was:" >&5
16109   cat conftest.$ac_ext >&5
16110   rm -rf conftest*
16111   eval "ac_cv_func_$ac_func=no"
16112 fi
16113 rm -f conftest*
16114 fi
16115
16116 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16117   echo "$ac_t""yes" 1>&6
16118     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16119   cat >> confdefs.h <<EOF
16120 #define $ac_tr_func 1
16121 EOF
16122  
16123 else
16124   echo "$ac_t""no" 1>&6
16125 fi
16126 done
16127     
16128   fi
16129
16130   for ac_func in drand48
16131 do
16132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16133 echo "configure:16134: checking for $ac_func" >&5
16134 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16135   echo $ac_n "(cached) $ac_c" 1>&6
16136 else
16137   cat > conftest.$ac_ext <<EOF
16138 #line 16139 "configure"
16139 #include "confdefs.h"
16140 /* System header to define __stub macros and hopefully few prototypes,
16141     which can conflict with char $ac_func(); below.  */
16142 #include <assert.h>
16143 /* Override any gcc2 internal prototype to avoid an error.  */
16144 /* We use char because int might match the return type of a gcc2
16145     builtin and then its argument prototype would still apply.  */
16146 char $ac_func();
16147
16148 int main() {
16149
16150 /* The GNU C library defines this for functions which it implements
16151     to always fail with ENOSYS.  Some functions are actually named
16152     something starting with __ and the normal name is an alias.  */
16153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16154 choke me
16155 #else
16156 $ac_func();
16157 #endif
16158
16159 ; return 0; }
16160 EOF
16161 if { (eval echo configure:16162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16162   rm -rf conftest*
16163   eval "ac_cv_func_$ac_func=yes"
16164 else
16165   echo "configure: failed program was:" >&5
16166   cat conftest.$ac_ext >&5
16167   rm -rf conftest*
16168   eval "ac_cv_func_$ac_func=no"
16169 fi
16170 rm -f conftest*
16171 fi
16172
16173 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16174   echo "$ac_t""yes" 1>&6
16175     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16176   cat >> confdefs.h <<EOF
16177 #define $ac_tr_func 1
16178 EOF
16179  
16180 else
16181   echo "$ac_t""no" 1>&6
16182 fi
16183 done
16184
16185
16186   CXXFLAGS="$ac_save_CXXFLAGS"
16187
16188
16189   cat > conftest.$ac_ext <<EOF
16190 #line 16191 "configure"
16191 #include "confdefs.h"
16192
16193 #include <setjmp.h>
16194
16195 int main() {
16196 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16197 ; return 0; }
16198 EOF
16199 if { (eval echo configure:16200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16200   rm -rf conftest*
16201   cat >> confdefs.h <<\EOF
16202 #define HAVE_SIGSETJMP 1
16203 EOF
16204
16205 else
16206   echo "configure: failed program was:" >&5
16207   cat conftest.$ac_ext >&5
16208 fi
16209 rm -f conftest*
16210
16211   for ac_hdr in unistd.h
16212 do
16213 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16214 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16215 echo "configure:16216: checking for $ac_hdr" >&5
16216 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16217   echo $ac_n "(cached) $ac_c" 1>&6
16218 else
16219   cat > conftest.$ac_ext <<EOF
16220 #line 16221 "configure"
16221 #include "confdefs.h"
16222 #include <$ac_hdr>
16223 EOF
16224 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16225 { (eval echo configure:16226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16226 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16227 if test -z "$ac_err"; then
16228   rm -rf conftest*
16229   eval "ac_cv_header_$ac_safe=yes"
16230 else
16231   echo "$ac_err" >&5
16232   echo "configure: failed program was:" >&5
16233   cat conftest.$ac_ext >&5
16234   rm -rf conftest*
16235   eval "ac_cv_header_$ac_safe=no"
16236 fi
16237 rm -f conftest*
16238 fi
16239 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16240   echo "$ac_t""yes" 1>&6
16241     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16242   cat >> confdefs.h <<EOF
16243 #define $ac_tr_hdr 1
16244 EOF
16245  
16246 else
16247   echo "$ac_t""no" 1>&6
16248 fi
16249 done
16250
16251 for ac_func in getpagesize
16252 do
16253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16254 echo "configure:16255: checking for $ac_func" >&5
16255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16256   echo $ac_n "(cached) $ac_c" 1>&6
16257 else
16258   cat > conftest.$ac_ext <<EOF
16259 #line 16260 "configure"
16260 #include "confdefs.h"
16261 /* System header to define __stub macros and hopefully few prototypes,
16262     which can conflict with char $ac_func(); below.  */
16263 #include <assert.h>
16264 /* Override any gcc2 internal prototype to avoid an error.  */
16265 /* We use char because int might match the return type of a gcc2
16266     builtin and then its argument prototype would still apply.  */
16267 char $ac_func();
16268
16269 int main() {
16270
16271 /* The GNU C library defines this for functions which it implements
16272     to always fail with ENOSYS.  Some functions are actually named
16273     something starting with __ and the normal name is an alias.  */
16274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16275 choke me
16276 #else
16277 $ac_func();
16278 #endif
16279
16280 ; return 0; }
16281 EOF
16282 if { (eval echo configure:16283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16283   rm -rf conftest*
16284   eval "ac_cv_func_$ac_func=yes"
16285 else
16286   echo "configure: failed program was:" >&5
16287   cat conftest.$ac_ext >&5
16288   rm -rf conftest*
16289   eval "ac_cv_func_$ac_func=no"
16290 fi
16291 rm -f conftest*
16292 fi
16293
16294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16295   echo "$ac_t""yes" 1>&6
16296     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16297   cat >> confdefs.h <<EOF
16298 #define $ac_tr_func 1
16299 EOF
16300  
16301 else
16302   echo "$ac_t""no" 1>&6
16303 fi
16304 done
16305
16306 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
16307 echo "configure:16308: checking for working mmap" >&5
16308 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
16309   echo $ac_n "(cached) $ac_c" 1>&6
16310 else
16311   if test "$cross_compiling" = yes; then
16312   ac_cv_func_mmap_fixed_mapped=no
16313 else
16314   cat > conftest.$ac_ext <<EOF
16315 #line 16316 "configure"
16316 #include "confdefs.h"
16317
16318 /* Thanks to Mike Haertel and Jim Avera for this test.
16319    Here is a matrix of mmap possibilities:
16320         mmap private not fixed
16321         mmap private fixed at somewhere currently unmapped
16322         mmap private fixed at somewhere already mapped
16323         mmap shared not fixed
16324         mmap shared fixed at somewhere currently unmapped
16325         mmap shared fixed at somewhere already mapped
16326    For private mappings, we should verify that changes cannot be read()
16327    back from the file, nor mmap's back from the file at a different
16328    address.  (There have been systems where private was not correctly
16329    implemented like the infamous i386 svr4.0, and systems where the
16330    VM page cache was not coherent with the filesystem buffer cache
16331    like early versions of FreeBSD and possibly contemporary NetBSD.)
16332    For shared mappings, we should conversely verify that changes get
16333    propogated back to all the places they're supposed to be.
16334
16335    Grep wants private fixed already mapped.
16336    The main things grep needs to know about mmap are:
16337    * does it exist and is it safe to write into the mmap'd area
16338    * how to use it (BSD variants)  */
16339 #include <sys/types.h>
16340 #include <fcntl.h>
16341 #include <sys/mman.h>
16342
16343 /* This mess was copied from the GNU getpagesize.h.  */
16344 #ifndef HAVE_GETPAGESIZE
16345 # ifdef HAVE_UNISTD_H
16346 #  include <unistd.h>
16347 # endif
16348
16349 /* Assume that all systems that can run configure have sys/param.h.  */
16350 # ifndef HAVE_SYS_PARAM_H
16351 #  define HAVE_SYS_PARAM_H 1
16352 # endif
16353
16354 # ifdef _SC_PAGESIZE
16355 #  define getpagesize() sysconf(_SC_PAGESIZE)
16356 # else /* no _SC_PAGESIZE */
16357 #  ifdef HAVE_SYS_PARAM_H
16358 #   include <sys/param.h>
16359 #   ifdef EXEC_PAGESIZE
16360 #    define getpagesize() EXEC_PAGESIZE
16361 #   else /* no EXEC_PAGESIZE */
16362 #    ifdef NBPG
16363 #     define getpagesize() NBPG * CLSIZE
16364 #     ifndef CLSIZE
16365 #      define CLSIZE 1
16366 #     endif /* no CLSIZE */
16367 #    else /* no NBPG */
16368 #     ifdef NBPC
16369 #      define getpagesize() NBPC
16370 #     else /* no NBPC */
16371 #      ifdef PAGESIZE
16372 #       define getpagesize() PAGESIZE
16373 #      endif /* PAGESIZE */
16374 #     endif /* no NBPC */
16375 #    endif /* no NBPG */
16376 #   endif /* no EXEC_PAGESIZE */
16377 #  else /* no HAVE_SYS_PARAM_H */
16378 #   define getpagesize() 8192   /* punt totally */
16379 #  endif /* no HAVE_SYS_PARAM_H */
16380 # endif /* no _SC_PAGESIZE */
16381
16382 #endif /* no HAVE_GETPAGESIZE */
16383
16384 #ifdef __cplusplus
16385 extern "C" { void *malloc(unsigned); }
16386 #else
16387 char *malloc();
16388 #endif
16389
16390 int
16391 main()
16392 {
16393         char *data, *data2, *data3;
16394         int i, pagesize;
16395         int fd;
16396
16397         pagesize = getpagesize();
16398
16399         /*
16400          * First, make a file with some known garbage in it.
16401          */
16402         data = malloc(pagesize);
16403         if (!data)
16404                 exit(1);
16405         for (i = 0; i < pagesize; ++i)
16406                 *(data + i) = rand();
16407         umask(0);
16408         fd = creat("conftestmmap", 0600);
16409         if (fd < 0)
16410                 exit(1);
16411         if (write(fd, data, pagesize) != pagesize)
16412                 exit(1);
16413         close(fd);
16414
16415         /*
16416          * Next, try to mmap the file at a fixed address which
16417          * already has something else allocated at it.  If we can,
16418          * also make sure that we see the same garbage.
16419          */
16420         fd = open("conftestmmap", O_RDWR);
16421         if (fd < 0)
16422                 exit(1);
16423         data2 = malloc(2 * pagesize);
16424         if (!data2)
16425                 exit(1);
16426         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
16427         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
16428             MAP_PRIVATE | MAP_FIXED, fd, 0L))
16429                 exit(1);
16430         for (i = 0; i < pagesize; ++i)
16431                 if (*(data + i) != *(data2 + i))
16432                         exit(1);
16433
16434         /*
16435          * Finally, make sure that changes to the mapped area
16436          * do not percolate back to the file as seen by read().
16437          * (This is a bug on some variants of i386 svr4.0.)
16438          */
16439         for (i = 0; i < pagesize; ++i)
16440                 *(data2 + i) = *(data2 + i) + 1;
16441         data3 = malloc(pagesize);
16442         if (!data3)
16443                 exit(1);
16444         if (read(fd, data3, pagesize) != pagesize)
16445                 exit(1);
16446         for (i = 0; i < pagesize; ++i)
16447                 if (*(data + i) != *(data3 + i))
16448                         exit(1);
16449         close(fd);
16450         unlink("conftestmmap");
16451         exit(0);
16452 }
16453
16454 EOF
16455 if { (eval echo configure:16456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16456 then
16457   ac_cv_func_mmap_fixed_mapped=yes
16458 else
16459   echo "configure: failed program was:" >&5
16460   cat conftest.$ac_ext >&5
16461   rm -fr conftest*
16462   ac_cv_func_mmap_fixed_mapped=no
16463 fi
16464 rm -fr conftest*
16465 fi
16466
16467 fi
16468
16469 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
16470 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16471   cat >> confdefs.h <<\EOF
16472 #define HAVE_MMAP 1
16473 EOF
16474
16475 fi
16476
16477 fi
16478
16479 # Now that ctype is determined for all possible targets, we can do this...
16480
16481
16482
16483
16484
16485
16486
16487 if test "$NULL_TARGET" = yes; then
16488   NULL_TARGET_TRUE=
16489   NULL_TARGET_FALSE='#'
16490 else
16491   NULL_TARGET_TRUE='#'
16492   NULL_TARGET_FALSE=
16493 fi
16494
16495
16496 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
16497   NATIVE_TRUE=
16498   NATIVE_FALSE='#'
16499 else
16500   NATIVE_TRUE='#'
16501   NATIVE_FALSE=
16502 fi
16503
16504
16505 if test "$CANADIAN" = yes; then
16506   CANADIAN_TRUE=
16507   CANADIAN_FALSE='#'
16508 else
16509   CANADIAN_TRUE='#'
16510   CANADIAN_FALSE=
16511 fi
16512  
16513 cat > confcache <<\EOF
16514 # This file is a shell script that caches the results of configure
16515 # tests run on this system so they can be shared between configure
16516 # scripts and configure runs.  It is not useful on other systems.
16517 # If it contains results you don't want to keep, you may remove or edit it.
16518 #
16519 # By default, configure uses ./config.cache as the cache file,
16520 # creating it if it does not exist already.  You can give configure
16521 # the --cache-file=FILE option to use a different cache file; that is
16522 # what configure does when it calls configure scripts in
16523 # subdirectories, so they share the cache.
16524 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16525 # config.status only pays attention to the cache file if you give it the
16526 # --recheck option to rerun configure.
16527 #
16528 EOF
16529 # The following way of writing the cache mishandles newlines in values,
16530 # but we know of no workaround that is simple, portable, and efficient.
16531 # So, don't put newlines in cache variables' values.
16532 # Ultrix sh set writes to stderr and can't be redirected directly,
16533 # and sets the high bit in the cache file unless we assign to the vars.
16534 (set) 2>&1 |
16535   case `(ac_space=' '; set | grep ac_space) 2>&1` in
16536   *ac_space=\ *)
16537     # `set' does not quote correctly, so add quotes (double-quote substitution
16538     # turns \\\\ into \\, and sed turns \\ into \).
16539     sed -n \
16540       -e "s/'/'\\\\''/g" \
16541       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16542     ;;
16543   *)
16544     # `set' quotes correctly as required by POSIX, so do not add quotes.
16545     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16546     ;;
16547   esac >> confcache
16548 if cmp -s $cache_file confcache; then
16549   :
16550 else
16551   if test -w $cache_file; then
16552     echo "updating cache $cache_file"
16553     cat confcache > $cache_file
16554   else
16555     echo "not updating unwritable cache $cache_file"
16556   fi
16557 fi
16558 rm -f confcache
16559
16560
16561   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
16562 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
16563 echo "configure:16564: checking for locale.h" >&5
16564 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16565   echo $ac_n "(cached) $ac_c" 1>&6
16566 else
16567   cat > conftest.$ac_ext <<EOF
16568 #line 16569 "configure"
16569 #include "confdefs.h"
16570 #include <locale.h>
16571 EOF
16572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16573 { (eval echo configure:16574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16575 if test -z "$ac_err"; then
16576   rm -rf conftest*
16577   eval "ac_cv_header_$ac_safe=yes"
16578 else
16579   echo "$ac_err" >&5
16580   echo "configure: failed program was:" >&5
16581   cat conftest.$ac_ext >&5
16582   rm -rf conftest*
16583   eval "ac_cv_header_$ac_safe=no"
16584 fi
16585 rm -f conftest*
16586 fi
16587 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16588   echo "$ac_t""yes" 1>&6
16589   
16590     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
16591 echo "configure:16592: checking for LC_MESSAGES" >&5
16592 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
16593   echo $ac_n "(cached) $ac_c" 1>&6
16594 else
16595   cat > conftest.$ac_ext <<EOF
16596 #line 16597 "configure"
16597 #include "confdefs.h"
16598 #include <locale.h>
16599 int main() {
16600 return LC_MESSAGES
16601 ; return 0; }
16602 EOF
16603 if { (eval echo configure:16604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16604   rm -rf conftest*
16605   ac_cv_val_LC_MESSAGES=yes
16606 else
16607   echo "configure: failed program was:" >&5
16608   cat conftest.$ac_ext >&5
16609   rm -rf conftest*
16610   ac_cv_val_LC_MESSAGES=no
16611 fi
16612 rm -f conftest*
16613 fi
16614
16615 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
16616     if test $ac_cv_val_LC_MESSAGES = yes; then
16617       cat >> confdefs.h <<\EOF
16618 #define HAVE_LC_MESSAGES 1
16619 EOF
16620
16621     fi
16622   
16623 else
16624   echo "$ac_t""no" 1>&6
16625 fi
16626
16627
16628
16629 if test "${multilib}" = "yes"; then
16630   multilib_arg="--enable-multilib"
16631 else
16632   multilib_arg=
16633 fi
16634
16635
16636 # Generate the various Makefiles, include files, and scripts.
16637
16638 # Needed so that g++ can find the correct include subdir automatically.
16639 INTERFACE=v3
16640
16641 # Export all the install information
16642
16643
16644 glibcpp_toolexecdir=no
16645 glibcpp_toolexeclibdir=no
16646
16647 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
16648 echo "configure:16649: checking for interface version number" >&5
16649 libstdcxx_interface=$INTERFACE
16650 echo "$ac_t""$libstdcxx_interface" 1>&6
16651
16652 # Process the option --with-gxx-include-dir=<path to include-files directory>
16653 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
16654 echo "configure:16655: checking for --with-gxx-include-dir" >&5
16655 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
16656 if test "${with_gxx_include_dir+set}" = set; then
16657   withval="$with_gxx_include_dir"
16658   case "${withval}" in
16659   yes)
16660     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
16661     gxx_include_dir=no
16662     ;;
16663   no)
16664     gxx_include_dir=no
16665     ;;
16666   *)
16667     gxx_include_dir=${withval}
16668     ;;
16669 esac
16670 else
16671   gxx_include_dir=no
16672 fi
16673
16674 echo "$ac_t""$gxx_include_dir" 1>&6
16675
16676 # Process the option "--enable-version-specific-runtime-libs"
16677 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
16678 echo "configure:16679: checking for --enable-version-specific-runtime-libs" >&5
16679 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16680 if test "${enable_version_specific_runtime_libs+set}" = set; then
16681   enableval="$enable_version_specific_runtime_libs"
16682     version_specific_libs=yes
16683 # Need the gcc compiler version to know where to install libraries
16684 # and header files if --enable-version-specific-runtime-libs option
16685 # is selected.
16686 gcc_version_trigger=${srcdir}/../gcc/version.c
16687 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
16688 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
16689 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
16690 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16691 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}
16692
16693 else
16694   version_specific_libs=no
16695 fi
16696
16697 echo "$ac_t""$version_specific_libs" 1>&6
16698
16699 # Default case for install directory for include files.
16700 if test x"$version_specific_libs" = x"no" \
16701    && test x"$gxx_include_dir" = x"no"; then
16702   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
16703 fi
16704
16705 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
16706 # Install a library built with a cross compiler in tooldir, not libdir.
16707 if test x"$glibcpp_toolexecdir" = x"no"; then 
16708   if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
16709     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
16710     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
16711   else
16712     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16713     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
16714   fi
16715 fi
16716
16717 echo $ac_n "checking for install location""... $ac_c" 1>&6
16718 echo "configure:16719: checking for install location" >&5
16719 echo "$ac_t""$gxx_include_dir" 1>&6
16720
16721
16722
16723
16724
16725
16726 # Export all the include and flag information to makefiles.
16727
16728   # Root level of the include sources.
16729   GLIBCPP_INCLUDE_DIR='$(top_srcdir)/include'
16730
16731   # Can either use include/c or include/c_std to grab "C" headers. This
16732   # variable is set to the include directory currently in use.
16733   # set with C_INCLUDE_DIR in GLIBCPP_ENABLE_CHEADERS
16734    
16735   # Passed down for canadian crosses.
16736   if  test x"$CANADIAN" = xyes; then
16737     TOPLEVEL_INCLUDES='-I$(includedir)'
16738   fi
16739
16740   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
16741
16742   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
16743
16744   #if GLIBCPP_NEED_LIBIO
16745   LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
16746   #else
16747   #LIBIO_INCLUDES='-I$(top_srcdir)/libio'
16748   #endif
16749
16750   #if GLIBCPP_USE_CSHADOW
16751   #  CSHADOW_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR) \
16752   #                   -I$(top_blddir)/cshadow'
16753   #else
16754   CSTD_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR)'
16755   #endif
16756
16757   # Now, export this to all the little Makefiles....
16758   
16759   
16760   
16761   
16762   
16763   
16764
16765
16766   # Optimization flags that are probably a good idea for thrill-seekers. Just
16767   # uncomment the lines below and make, everything else is ready to go... 
16768   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
16769   OPTIMIZE_CXXFLAGS=
16770   
16771
16772   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
16773   
16774
16775
16776 # This should be done by mkincludedir, but hack around it now.
16777 blddir=`pwd`
16778 echo "checking for $blddir/include"
16779
16780 if test ! -d "$blddir/include"; then
16781   mkdir "$blddir/include"
16782 fi
16783
16784 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
16785 # and libsupc++/Makefile.am so that multilib installs will end up
16786 # installed in the correct place. To work around this not being passed
16787 # down from config-ml.in -> top_srcdir/Makefile.am ->
16788 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
16789 trap '' 1 2 15
16790 cat > confcache <<\EOF
16791 # This file is a shell script that caches the results of configure
16792 # tests run on this system so they can be shared between configure
16793 # scripts and configure runs.  It is not useful on other systems.
16794 # If it contains results you don't want to keep, you may remove or edit it.
16795 #
16796 # By default, configure uses ./config.cache as the cache file,
16797 # creating it if it does not exist already.  You can give configure
16798 # the --cache-file=FILE option to use a different cache file; that is
16799 # what configure does when it calls configure scripts in
16800 # subdirectories, so they share the cache.
16801 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16802 # config.status only pays attention to the cache file if you give it the
16803 # --recheck option to rerun configure.
16804 #
16805 EOF
16806 # The following way of writing the cache mishandles newlines in values,
16807 # but we know of no workaround that is simple, portable, and efficient.
16808 # So, don't put newlines in cache variables' values.
16809 # Ultrix sh set writes to stderr and can't be redirected directly,
16810 # and sets the high bit in the cache file unless we assign to the vars.
16811 (set) 2>&1 |
16812   case `(ac_space=' '; set | grep ac_space) 2>&1` in
16813   *ac_space=\ *)
16814     # `set' does not quote correctly, so add quotes (double-quote substitution
16815     # turns \\\\ into \\, and sed turns \\ into \).
16816     sed -n \
16817       -e "s/'/'\\\\''/g" \
16818       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16819     ;;
16820   *)
16821     # `set' quotes correctly as required by POSIX, so do not add quotes.
16822     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16823     ;;
16824   esac >> confcache
16825 if cmp -s $cache_file confcache; then
16826   :
16827 else
16828   if test -w $cache_file; then
16829     echo "updating cache $cache_file"
16830     cat confcache > $cache_file
16831   else
16832     echo "not updating unwritable cache $cache_file"
16833   fi
16834 fi
16835 rm -f confcache
16836
16837 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16838
16839 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16840 # Let make expand exec_prefix.
16841 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16842
16843 # Any assignment to VPATH causes Sun make to only execute
16844 # the first set of double-colon rules, so remove it if not needed.
16845 # If there is a colon in the path, we need to keep it.
16846 if test "x$srcdir" = x.; then
16847   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
16848 fi
16849
16850 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16851
16852 DEFS=-DHAVE_CONFIG_H
16853
16854 # Without the "./", some shells look in PATH for config.status.
16855 : ${CONFIG_STATUS=./config.status}
16856
16857 echo creating $CONFIG_STATUS
16858 rm -f $CONFIG_STATUS
16859 cat > $CONFIG_STATUS <<EOF
16860 #! /bin/sh
16861 # Generated automatically by configure.
16862 # Run this file to recreate the current configuration.
16863 # This directory was configured as follows,
16864 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16865 #
16866 # $0 $ac_configure_args
16867 #
16868 # Compiler output produced by configure, useful for debugging
16869 # configure, is in ./config.log if it exists.
16870
16871 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16872 for ac_option
16873 do
16874   case "\$ac_option" in
16875   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16876     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16877     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16878   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16879     echo "$CONFIG_STATUS generated by autoconf version 2.13"
16880     exit 0 ;;
16881   -help | --help | --hel | --he | --h)
16882     echo "\$ac_cs_usage"; exit 0 ;;
16883   *) echo "\$ac_cs_usage"; exit 1 ;;
16884   esac
16885 done
16886
16887 ac_given_srcdir=$srcdir
16888 ac_given_INSTALL="$INSTALL"
16889
16890 trap 'rm -fr `echo "tests_flags mkcheck Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile testsuite/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16891 EOF
16892 cat >> $CONFIG_STATUS <<EOF
16893
16894 # Protect against being on the right side of a sed subst in config.status.
16895 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16896  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16897 $ac_vpsub
16898 $extrasub
16899 s%@SHELL@%$SHELL%g
16900 s%@CFLAGS@%$CFLAGS%g
16901 s%@CPPFLAGS@%$CPPFLAGS%g
16902 s%@CXXFLAGS@%$CXXFLAGS%g
16903 s%@FFLAGS@%$FFLAGS%g
16904 s%@DEFS@%$DEFS%g
16905 s%@LDFLAGS@%$LDFLAGS%g
16906 s%@LIBS@%$LIBS%g
16907 s%@exec_prefix@%$exec_prefix%g
16908 s%@prefix@%$prefix%g
16909 s%@program_transform_name@%$program_transform_name%g
16910 s%@bindir@%$bindir%g
16911 s%@sbindir@%$sbindir%g
16912 s%@libexecdir@%$libexecdir%g
16913 s%@datadir@%$datadir%g
16914 s%@sysconfdir@%$sysconfdir%g
16915 s%@sharedstatedir@%$sharedstatedir%g
16916 s%@localstatedir@%$localstatedir%g
16917 s%@libdir@%$libdir%g
16918 s%@includedir@%$includedir%g
16919 s%@oldincludedir@%$oldincludedir%g
16920 s%@infodir@%$infodir%g
16921 s%@mandir@%$mandir%g
16922 s%@toplevel_srcdir@%$toplevel_srcdir%g
16923 s%@host@%$host%g
16924 s%@host_alias@%$host_alias%g
16925 s%@host_cpu@%$host_cpu%g
16926 s%@host_vendor@%$host_vendor%g
16927 s%@host_os@%$host_os%g
16928 s%@target@%$target%g
16929 s%@target_alias@%$target_alias%g
16930 s%@target_cpu@%$target_cpu%g
16931 s%@target_vendor@%$target_vendor%g
16932 s%@target_os@%$target_os%g
16933 s%@build@%$build%g
16934 s%@build_alias@%$build_alias%g
16935 s%@build_cpu@%$build_cpu%g
16936 s%@build_vendor@%$build_vendor%g
16937 s%@build_os@%$build_os%g
16938 s%@glibcpp_basedir@%$glibcpp_basedir%g
16939 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16940 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16941 s%@INSTALL_DATA@%$INSTALL_DATA%g
16942 s%@PACKAGE@%$PACKAGE%g
16943 s%@VERSION@%$VERSION%g
16944 s%@ACLOCAL@%$ACLOCAL%g
16945 s%@AUTOCONF@%$AUTOCONF%g
16946 s%@AUTOMAKE@%$AUTOMAKE%g
16947 s%@AUTOHEADER@%$AUTOHEADER%g
16948 s%@MAKEINFO@%$MAKEINFO%g
16949 s%@SET_MAKE@%$SET_MAKE%g
16950 s%@CC@%$CC%g
16951 s%@glibcpp_CXX@%$glibcpp_CXX%g
16952 s%@AS@%$AS%g
16953 s%@AR@%$AR%g
16954 s%@RANLIB@%$RANLIB%g
16955 s%@glibcpp_expect@%$glibcpp_expect%g
16956 s%@glibcpp_runtest@%$glibcpp_runtest%g
16957 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
16958 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
16959 s%@MAINT@%$MAINT%g
16960 s%@EXEEXT@%$EXEEXT%g
16961 s%@LN_S@%$LN_S%g
16962 s%@OBJEXT@%$OBJEXT%g
16963 s%@STRIP@%$STRIP%g
16964 s%@LIBTOOL@%$LIBTOOL%g
16965 s%@CXXCPP@%$CXXCPP%g
16966 s%@enable_shared@%$enable_shared%g
16967 s%@enable_static@%$enable_static%g
16968 s%@ifGNUmake@%$ifGNUmake%g
16969 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
16970 s%@CPP@%$CPP%g
16971 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
16972 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
16973 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
16974 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
16975 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
16976 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
16977 s%@libio_la@%$libio_la%g
16978 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
16979 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
16980 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
16981 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
16982 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
16983 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
16984 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
16985 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
16986 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
16987 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
16988 s%@WERROR@%$WERROR%g
16989 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
16990 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
16991 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
16992 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
16993 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
16994 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
16995 s%@gxx_include_dir@%$gxx_include_dir%g
16996 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
16997 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
16998 s%@GLIBCPP_INCLUDE_DIR@%$GLIBCPP_INCLUDE_DIR%g
16999 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
17000 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
17001 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
17002 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
17003 s%@CSTD_INCLUDES@%$CSTD_INCLUDES%g
17004 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
17005 s%@WARN_FLAGS@%$WARN_FLAGS%g
17006
17007 CEOF
17008 EOF
17009
17010 cat >> $CONFIG_STATUS <<\EOF
17011
17012 # Split the substitutions into bite-sized pieces for seds with
17013 # small command number limits, like on Digital OSF/1 and HP-UX.
17014 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17015 ac_file=1 # Number of current file.
17016 ac_beg=1 # First line for current file.
17017 ac_end=$ac_max_sed_cmds # Line after last line for current file.
17018 ac_more_lines=:
17019 ac_sed_cmds=""
17020 while $ac_more_lines; do
17021   if test $ac_beg -gt 1; then
17022     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17023   else
17024     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17025   fi
17026   if test ! -s conftest.s$ac_file; then
17027     ac_more_lines=false
17028     rm -f conftest.s$ac_file
17029   else
17030     if test -z "$ac_sed_cmds"; then
17031       ac_sed_cmds="sed -f conftest.s$ac_file"
17032     else
17033       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17034     fi
17035     ac_file=`expr $ac_file + 1`
17036     ac_beg=$ac_end
17037     ac_end=`expr $ac_end + $ac_max_sed_cmds`
17038   fi
17039 done
17040 if test -z "$ac_sed_cmds"; then
17041   ac_sed_cmds=cat
17042 fi
17043 EOF
17044
17045 cat >> $CONFIG_STATUS <<EOF
17046
17047 CONFIG_FILES=\${CONFIG_FILES-"tests_flags mkcheck Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile testsuite/Makefile"}
17048 EOF
17049 cat >> $CONFIG_STATUS <<\EOF
17050 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17051   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17052   case "$ac_file" in
17053   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17054        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17055   *) ac_file_in="${ac_file}.in" ;;
17056   esac
17057
17058   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17059
17060   # Remove last slash and all that follows it.  Not all systems have dirname.
17061   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17062   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17063     # The file is in a subdirectory.
17064     test ! -d "$ac_dir" && mkdir "$ac_dir"
17065     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17066     # A "../" for each directory in $ac_dir_suffix.
17067     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17068   else
17069     ac_dir_suffix= ac_dots=
17070   fi
17071
17072   case "$ac_given_srcdir" in
17073   .)  srcdir=.
17074       if test -z "$ac_dots"; then top_srcdir=.
17075       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17076   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17077   *) # Relative path.
17078     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17079     top_srcdir="$ac_dots$ac_given_srcdir" ;;
17080   esac
17081
17082   case "$ac_given_INSTALL" in
17083   [/$]*) INSTALL="$ac_given_INSTALL" ;;
17084   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17085   esac
17086
17087   echo creating "$ac_file"
17088   rm -f "$ac_file"
17089   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17090   case "$ac_file" in
17091   *Makefile*) ac_comsub="1i\\
17092 # $configure_input" ;;
17093   *) ac_comsub= ;;
17094   esac
17095
17096   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17097   sed -e "$ac_comsub
17098 s%@configure_input@%$configure_input%g
17099 s%@srcdir@%$srcdir%g
17100 s%@top_srcdir@%$top_srcdir%g
17101 s%@INSTALL@%$INSTALL%g
17102 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17103 fi; done
17104 rm -f conftest.s*
17105
17106 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17107 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17108 #
17109 # ac_d sets the value in "#define NAME VALUE" lines.
17110 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17111 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
17112 ac_dC='\3'
17113 ac_dD='%g'
17114 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17115 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17116 ac_uB='\([      ]\)%\1#\2define\3'
17117 ac_uC=' '
17118 ac_uD='\4%g'
17119 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17120 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17121 ac_eB='$%\1#\2define\3'
17122 ac_eC=' '
17123 ac_eD='%g'
17124
17125 if test "${CONFIG_HEADERS+set}" != set; then
17126 EOF
17127 cat >> $CONFIG_STATUS <<EOF
17128   CONFIG_HEADERS="config.h"
17129 EOF
17130 cat >> $CONFIG_STATUS <<\EOF
17131 fi
17132 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17133   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17134   case "$ac_file" in
17135   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17136        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17137   *) ac_file_in="${ac_file}.in" ;;
17138   esac
17139
17140   echo creating $ac_file
17141
17142   rm -f conftest.frag conftest.in conftest.out
17143   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17144   cat $ac_file_inputs > conftest.in
17145
17146 EOF
17147
17148 # Transform confdefs.h into a sed script conftest.vals that substitutes
17149 # the proper values into config.h.in to produce config.h.  And first:
17150 # Protect against being on the right side of a sed subst in config.status.
17151 # Protect against being in an unquoted here document in config.status.
17152 rm -f conftest.vals
17153 cat > conftest.hdr <<\EOF
17154 s/[\\&%]/\\&/g
17155 s%[\\$`]%\\&%g
17156 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17157 s%ac_d%ac_u%gp
17158 s%ac_u%ac_e%gp
17159 EOF
17160 sed -n -f conftest.hdr confdefs.h > conftest.vals
17161 rm -f conftest.hdr
17162
17163 # This sed command replaces #undef with comments.  This is necessary, for
17164 # example, in the case of _POSIX_SOURCE, which is predefined and required
17165 # on some systems where configure will not decide to define it.
17166 cat >> conftest.vals <<\EOF
17167 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17168 EOF
17169
17170 # Break up conftest.vals because some shells have a limit on
17171 # the size of here documents, and old seds have small limits too.
17172
17173 rm -f conftest.tail
17174 while :
17175 do
17176   ac_lines=`grep -c . conftest.vals`
17177   # grep -c gives empty output for an empty file on some AIX systems.
17178   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17179   # Write a limited-size here document to conftest.frag.
17180   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17181   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17182   echo 'CEOF
17183   sed -f conftest.frag conftest.in > conftest.out
17184   rm -f conftest.in
17185   mv conftest.out conftest.in
17186 ' >> $CONFIG_STATUS
17187   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17188   rm -f conftest.vals
17189   mv conftest.tail conftest.vals
17190 done
17191 rm -f conftest.vals
17192
17193 cat >> $CONFIG_STATUS <<\EOF
17194   rm -f conftest.frag conftest.h
17195   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
17196   cat conftest.in >> conftest.h
17197   rm -f conftest.in
17198   if cmp -s $ac_file conftest.h 2>/dev/null; then
17199     echo "$ac_file is unchanged"
17200     rm -f conftest.h
17201   else
17202     # Remove last slash and all that follows it.  Not all systems have dirname.
17203       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17204       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17205       # The file is in a subdirectory.
17206       test ! -d "$ac_dir" && mkdir "$ac_dir"
17207     fi
17208     rm -f $ac_file
17209     mv conftest.h $ac_file
17210   fi
17211 fi; done
17212
17213 EOF
17214
17215 cat >> $CONFIG_STATUS <<EOF
17216 ac_sources="$os_include_dir/bits/os_defines.h $CSTDIO_H $BASIC_FILE_H $BASIC_FILE_CC $CCODECVT_C $CLOCALE_H $CLOCALE_CC config/$THREADH $os_include_dir/bits/ctype_base.h $os_include_dir/bits/ctype_inline.h $os_include_dir/bits/ctype_noninline.h $ATOMICITYH/bits/atomicity.h"
17217 ac_dests="include/bits/os_defines.h include/bits/c++io.h include/bits/basic_file_model.h src/basic_file.cc libio/c_codecvt.c include/bits/c++locale.h src/c++locale.cc include/bits/c++threads.h \
17218 include/bits/ctype_base.h \
17219 include/bits/ctype_inline.h \
17220 include/bits/ctype_noninline.h include/bits/atomicity.h"
17221 EOF
17222
17223 cat >> $CONFIG_STATUS <<\EOF
17224 srcdir=$ac_given_srcdir
17225 while test -n "$ac_sources"; do
17226   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
17227   set $ac_sources; ac_source=$1; shift; ac_sources=$*
17228
17229   echo "linking $srcdir/$ac_source to $ac_dest"
17230
17231   if test ! -r $srcdir/$ac_source; then
17232     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
17233   fi
17234   rm -f $ac_dest
17235
17236   # Make relative symlinks.
17237   # Remove last slash and all that follows it.  Not all systems have dirname.
17238   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
17239   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
17240     # The dest file is in a subdirectory.
17241     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
17242     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
17243     # A "../" for each directory in $ac_dest_dir_suffix.
17244     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
17245   else
17246     ac_dest_dir_suffix= ac_dots=
17247   fi
17248
17249   case "$srcdir" in
17250   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
17251   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
17252   esac
17253
17254   # Make a symlink if possible; otherwise try a hard link.
17255   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17256     ln $srcdir/$ac_source $ac_dest; then :
17257   else
17258     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
17259   fi
17260 done
17261 EOF
17262 cat >> $CONFIG_STATUS <<EOF
17263
17264 srcdir=${srcdir}
17265 host=${host}
17266 target=${target}
17267 with_multisubdir=${with_multisubdir}
17268 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17269 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17270 glibcpp_basedir=${glibcpp_basedir}
17271 CC="${CC}"
17272 CXX="${CXX}"
17273
17274 EOF
17275 cat >> $CONFIG_STATUS <<\EOF
17276 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
17277 if test -n "$CONFIG_FILES"; then
17278   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
17279   grep '^MULTISUBDIR =' Makefile >> src/Makefile
17280   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
17281 fi
17282 chmod +x tests_flags
17283 chmod +x mkcheck
17284
17285 exit 0
17286 EOF
17287 chmod +x $CONFIG_STATUS
17288 rm -fr confdefs* $ac_clean_files
17289 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
17290
17291
17292
17293 # Generate bits/c++config.h
17294 # NB: This must be the first generated file as others include it. . .
17295 $srcdir/mkc++config $blddir $srcdir
17296
17297 # Generate bits/std_limits.h and src/limitsMEMBERS.cc
17298 if test ! -f stamp-limits; then
17299   $srcdir/mknumeric_limits $blddir $srcdir $xcompiling
17300   if test ! -f include/bits/std_limits.h; then
17301     echo "mknumeric_limits failed to execute properly: exiting"
17302     exit 1
17303   else
17304     touch stamp-limits 
17305   fi
17306 fi
17307
17308
17309 # Sanity checking & User-visible messages.
17310 # Checks down here, otherwise they get scrolled off before
17311 # the user will notice.
17312
17313 # Trying to get more people to read documentation.  Possibly remove
17314 # check and warn all the time. There is no "informational" AC_MSG_
17315 # macro, so these are going to be printed even when --quiet/--silent
17316 # is given.
17317 if test ! -f stamp-sanity-warned; then
17318   touch stamp-sanity-warned
17319   echo ""
17320   echo "Please make certain that you read the installation information here:"
17321   echo "  faster => ${srcdir}/docs/install.html"
17322   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
17323   echo ""
17324   echo "and the configuration information here:"
17325   echo "  faster => ${srcdir}/docs/configopts.html"
17326   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
17327   echo ""
17328   echo "before proceeding with ${_cv_gnu_make_command}."
17329   echo ""
17330 fi