OSDN Git Service

85cd0283d8a180096cd11760c57ded0ccdd2e7dc
[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 g++ [default=c_std]"
54 ac_help="$ac_help
55   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
56                                 [default=none]"
57 ac_help="$ac_help
58   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
59 ac_help="$ac_help
60   --with-gxx-include-dir  the installation directory for include files"
61 ac_help="$ac_help
62   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
63
64 # Initialize some variables set by options.
65 # The variables have the same names as the options, with
66 # dashes changed to underlines.
67 build=NONE
68 cache_file=./config.cache
69 exec_prefix=NONE
70 host=NONE
71 no_create=
72 nonopt=NONE
73 no_recursion=
74 prefix=NONE
75 program_prefix=NONE
76 program_suffix=NONE
77 program_transform_name=s,x,x,
78 silent=
79 site=
80 sitefile=
81 srcdir=
82 target=NONE
83 verbose=
84 x_includes=NONE
85 x_libraries=NONE
86 bindir='${exec_prefix}/bin'
87 sbindir='${exec_prefix}/sbin'
88 libexecdir='${exec_prefix}/libexec'
89 datadir='${prefix}/share'
90 sysconfdir='${prefix}/etc'
91 sharedstatedir='${prefix}/com'
92 localstatedir='${prefix}/var'
93 libdir='${exec_prefix}/lib'
94 includedir='${prefix}/include'
95 oldincludedir='/usr/include'
96 infodir='${prefix}/info'
97 mandir='${prefix}/man'
98
99 # Initialize some other variables.
100 subdirs=
101 MFLAGS= MAKEFLAGS=
102 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 ac_max_here_lines=12
105
106 ac_prev=
107 for ac_option
108 do
109
110   # If the previous option needs an argument, assign it.
111   if test -n "$ac_prev"; then
112     eval "$ac_prev=\$ac_option"
113     ac_prev=
114     continue
115   fi
116
117   case "$ac_option" in
118   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
119   *) ac_optarg= ;;
120   esac
121
122   # Accept the important Cygnus configure options, so we can diagnose typos.
123
124   case "$ac_option" in
125
126   -bindir | --bindir | --bindi | --bind | --bin | --bi)
127     ac_prev=bindir ;;
128   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
129     bindir="$ac_optarg" ;;
130
131   -build | --build | --buil | --bui | --bu)
132     ac_prev=build ;;
133   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
134     build="$ac_optarg" ;;
135
136   -cache-file | --cache-file | --cache-fil | --cache-fi \
137   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
138     ac_prev=cache_file ;;
139   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
140   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
141     cache_file="$ac_optarg" ;;
142
143   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
144     ac_prev=datadir ;;
145   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
146   | --da=*)
147     datadir="$ac_optarg" ;;
148
149   -disable-* | --disable-*)
150     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
151     # Reject names that are not valid shell variable names.
152     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
153       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154     fi
155     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
156     eval "enable_${ac_feature}=no" ;;
157
158   -enable-* | --enable-*)
159     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
160     # Reject names that are not valid shell variable names.
161     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
162       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163     fi
164     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165     case "$ac_option" in
166       *=*) ;;
167       *) ac_optarg=yes ;;
168     esac
169     eval "enable_${ac_feature}='$ac_optarg'" ;;
170
171   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
172   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
173   | --exec | --exe | --ex)
174     ac_prev=exec_prefix ;;
175   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
176   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
177   | --exec=* | --exe=* | --ex=*)
178     exec_prefix="$ac_optarg" ;;
179
180   -gas | --gas | --ga | --g)
181     # Obsolete; use --with-gas.
182     with_gas=yes ;;
183
184   -help | --help | --hel | --he)
185     # Omit some internal or obsolete options to make the list less imposing.
186     # This message is too long to be a string in the A/UX 3.1 sh.
187     cat << EOF
188 Usage: configure [options] [host]
189 Options: [defaults in brackets after descriptions]
190 Configuration:
191   --cache-file=FILE       cache test results in FILE
192   --help                  print this message
193   --no-create             do not create output files
194   --quiet, --silent       do not print \`checking...' messages
195   --site-file=FILE        use FILE as the site file
196   --version               print the version of autoconf that created configure
197 Directory and file names:
198   --prefix=PREFIX         install architecture-independent files in PREFIX
199                           [$ac_default_prefix]
200   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
201                           [same as prefix]
202   --bindir=DIR            user executables in DIR [EPREFIX/bin]
203   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
204   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
205   --datadir=DIR           read-only architecture-independent data in DIR
206                           [PREFIX/share]
207   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
208   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
209                           [PREFIX/com]
210   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
211   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
212   --includedir=DIR        C header files in DIR [PREFIX/include]
213   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
214   --infodir=DIR           info documentation in DIR [PREFIX/info]
215   --mandir=DIR            man documentation in DIR [PREFIX/man]
216   --srcdir=DIR            find the sources in DIR [configure dir or ..]
217   --program-prefix=PREFIX prepend PREFIX to installed program names
218   --program-suffix=SUFFIX append SUFFIX to installed program names
219   --program-transform-name=PROGRAM
220                           run sed PROGRAM on installed program names
221 EOF
222     cat << EOF
223 Host type:
224   --build=BUILD           configure for building on BUILD [BUILD=HOST]
225   --host=HOST             configure for HOST [guessed]
226   --target=TARGET         configure for TARGET [TARGET=HOST]
227 Features and packages:
228   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
229   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
230   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
231   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
232   --x-includes=DIR        X include files are in DIR
233   --x-libraries=DIR       X library files are in DIR
234 EOF
235     if test -n "$ac_help"; then
236       echo "--enable and --with options recognized:$ac_help"
237     fi
238     exit 0 ;;
239
240   -host | --host | --hos | --ho)
241     ac_prev=host ;;
242   -host=* | --host=* | --hos=* | --ho=*)
243     host="$ac_optarg" ;;
244
245   -includedir | --includedir | --includedi | --included | --include \
246   | --includ | --inclu | --incl | --inc)
247     ac_prev=includedir ;;
248   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
249   | --includ=* | --inclu=* | --incl=* | --inc=*)
250     includedir="$ac_optarg" ;;
251
252   -infodir | --infodir | --infodi | --infod | --info | --inf)
253     ac_prev=infodir ;;
254   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
255     infodir="$ac_optarg" ;;
256
257   -libdir | --libdir | --libdi | --libd)
258     ac_prev=libdir ;;
259   -libdir=* | --libdir=* | --libdi=* | --libd=*)
260     libdir="$ac_optarg" ;;
261
262   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
263   | --libexe | --libex | --libe)
264     ac_prev=libexecdir ;;
265   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
266   | --libexe=* | --libex=* | --libe=*)
267     libexecdir="$ac_optarg" ;;
268
269   -localstatedir | --localstatedir | --localstatedi | --localstated \
270   | --localstate | --localstat | --localsta | --localst \
271   | --locals | --local | --loca | --loc | --lo)
272     ac_prev=localstatedir ;;
273   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
274   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
275   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
276     localstatedir="$ac_optarg" ;;
277
278   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279     ac_prev=mandir ;;
280   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
281     mandir="$ac_optarg" ;;
282
283   -nfp | --nfp | --nf)
284     # Obsolete; use --without-fp.
285     with_fp=no ;;
286
287   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
288   | --no-cr | --no-c)
289     no_create=yes ;;
290
291   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
292   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
293     no_recursion=yes ;;
294
295   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
296   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
297   | --oldin | --oldi | --old | --ol | --o)
298     ac_prev=oldincludedir ;;
299   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
300   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
301   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
302     oldincludedir="$ac_optarg" ;;
303
304   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305     ac_prev=prefix ;;
306   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
307     prefix="$ac_optarg" ;;
308
309   -program-prefix | --program-prefix | --program-prefi | --program-pref \
310   | --program-pre | --program-pr | --program-p)
311     ac_prev=program_prefix ;;
312   -program-prefix=* | --program-prefix=* | --program-prefi=* \
313   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
314     program_prefix="$ac_optarg" ;;
315
316   -program-suffix | --program-suffix | --program-suffi | --program-suff \
317   | --program-suf | --program-su | --program-s)
318     ac_prev=program_suffix ;;
319   -program-suffix=* | --program-suffix=* | --program-suffi=* \
320   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
321     program_suffix="$ac_optarg" ;;
322
323   -program-transform-name | --program-transform-name \
324   | --program-transform-nam | --program-transform-na \
325   | --program-transform-n | --program-transform- \
326   | --program-transform | --program-transfor \
327   | --program-transfo | --program-transf \
328   | --program-trans | --program-tran \
329   | --progr-tra | --program-tr | --program-t)
330     ac_prev=program_transform_name ;;
331   -program-transform-name=* | --program-transform-name=* \
332   | --program-transform-nam=* | --program-transform-na=* \
333   | --program-transform-n=* | --program-transform-=* \
334   | --program-transform=* | --program-transfor=* \
335   | --program-transfo=* | --program-transf=* \
336   | --program-trans=* | --program-tran=* \
337   | --progr-tra=* | --program-tr=* | --program-t=*)
338     program_transform_name="$ac_optarg" ;;
339
340   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
341   | -silent | --silent | --silen | --sile | --sil)
342     silent=yes ;;
343
344   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345     ac_prev=sbindir ;;
346   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347   | --sbi=* | --sb=*)
348     sbindir="$ac_optarg" ;;
349
350   -sharedstatedir | --sharedstatedir | --sharedstatedi \
351   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
352   | --sharedst | --shareds | --shared | --share | --shar \
353   | --sha | --sh)
354     ac_prev=sharedstatedir ;;
355   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
356   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
357   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358   | --sha=* | --sh=*)
359     sharedstatedir="$ac_optarg" ;;
360
361   -site | --site | --sit)
362     ac_prev=site ;;
363   -site=* | --site=* | --sit=*)
364     site="$ac_optarg" ;;
365
366   -site-file | --site-file | --site-fil | --site-fi | --site-f)
367     ac_prev=sitefile ;;
368   -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
369     sitefile="$ac_optarg" ;;
370
371   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
372     ac_prev=srcdir ;;
373   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
374     srcdir="$ac_optarg" ;;
375
376   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
377   | --syscon | --sysco | --sysc | --sys | --sy)
378     ac_prev=sysconfdir ;;
379   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
380   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
381     sysconfdir="$ac_optarg" ;;
382
383   -target | --target | --targe | --targ | --tar | --ta | --t)
384     ac_prev=target ;;
385   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
386     target="$ac_optarg" ;;
387
388   -v | -verbose | --verbose | --verbos | --verbo | --verb)
389     verbose=yes ;;
390
391   -version | --version | --versio | --versi | --vers)
392     echo "configure generated by autoconf version 2.13"
393     exit 0 ;;
394
395   -with-* | --with-*)
396     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
397     # Reject names that are not valid shell variable names.
398     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
399       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
400     fi
401     ac_package=`echo $ac_package| sed 's/-/_/g'`
402     case "$ac_option" in
403       *=*) ;;
404       *) ac_optarg=yes ;;
405     esac
406     eval "with_${ac_package}='$ac_optarg'" ;;
407
408   -without-* | --without-*)
409     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
410     # Reject names that are not valid shell variable names.
411     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
412       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
413     fi
414     ac_package=`echo $ac_package| sed 's/-/_/g'`
415     eval "with_${ac_package}=no" ;;
416
417   --x)
418     # Obsolete; use --with-x.
419     with_x=yes ;;
420
421   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
422   | --x-incl | --x-inc | --x-in | --x-i)
423     ac_prev=x_includes ;;
424   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
425   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
426     x_includes="$ac_optarg" ;;
427
428   -x-libraries | --x-libraries | --x-librarie | --x-librari \
429   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
430     ac_prev=x_libraries ;;
431   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
432   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
433     x_libraries="$ac_optarg" ;;
434
435   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
436     ;;
437
438   *)
439     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
440       echo "configure: warning: $ac_option: invalid host type" 1>&2
441     fi
442     if test "x$nonopt" != xNONE; then
443       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
444     fi
445     nonopt="$ac_option"
446     ;;
447
448   esac
449 done
450
451 if test -n "$ac_prev"; then
452   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
453 fi
454
455 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
456
457 # File descriptor usage:
458 # 0 standard input
459 # 1 file creation
460 # 2 errors and warnings
461 # 3 some systems may open it to /dev/tty
462 # 4 used on the Kubota Titan
463 # 6 checking for... messages and results
464 # 5 compiler messages saved in config.log
465 if test "$silent" = yes; then
466   exec 6>/dev/null
467 else
468   exec 6>&1
469 fi
470 exec 5>./config.log
471
472 echo "\
473 This file contains any messages produced by compilers while
474 running configure, to aid debugging if configure makes a mistake.
475 " 1>&5
476
477 # Strip out --no-create and --no-recursion so they do not pile up.
478 # Also quote any args containing shell metacharacters.
479 ac_configure_args=
480 for ac_arg
481 do
482   case "$ac_arg" in
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c) ;;
485   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
486   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
487   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
488   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
489   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
490   esac
491 done
492
493 # NLS nuisances.
494 # Only set these to C if already set.  These must not be set unconditionally
495 # because not all systems understand e.g. LANG=C (notably SCO).
496 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
497 # Non-C LC_CTYPE values break the ctype check.
498 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
499 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
500 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
501 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
502
503 # confdefs.h avoids OS command line length limits that DEFS can exceed.
504 rm -rf conftest* confdefs.h
505 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
506 echo > confdefs.h
507
508 # A filename unique to this package, relative to the directory that
509 # configure is in, which we can look for to find out if srcdir is correct.
510 ac_unique_file=src/ios.cc
511
512 # Find the source files, if location was not specified.
513 if test -z "$srcdir"; then
514   ac_srcdir_defaulted=yes
515   # Try the directory containing this script, then its parent.
516   ac_prog=$0
517   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
518   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
519   srcdir=$ac_confdir
520   if test ! -r $srcdir/$ac_unique_file; then
521     srcdir=..
522   fi
523 else
524   ac_srcdir_defaulted=no
525 fi
526 if test ! -r $srcdir/$ac_unique_file; then
527   if test "$ac_srcdir_defaulted" = yes; then
528     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
529   else
530     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531   fi
532 fi
533 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
534
535 # Prefer explicitly selected file to automatically selected ones.
536 if test -z "$sitefile"; then
537   if test -z "$CONFIG_SITE"; then
538     if test "x$prefix" != xNONE; then
539       CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540     else
541       CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
542     fi
543   fi
544 else
545   CONFIG_SITE="$sitefile"
546 fi
547 for ac_site_file in $CONFIG_SITE; do
548   if test -r "$ac_site_file"; then
549     echo "loading site script $ac_site_file"
550     . "$ac_site_file"
551   fi
552 done
553
554 if test -r "$cache_file"; then
555   echo "loading cache $cache_file"
556   . $cache_file
557 else
558   echo "creating cache $cache_file"
559   > $cache_file
560 fi
561
562 ac_ext=c
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp='$CPP $CPPFLAGS'
565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling=$ac_cv_prog_cc_cross
568
569 ac_exeext=
570 ac_objext=o
571 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
572   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574     ac_n= ac_c='
575 ' ac_t='        '
576   else
577     ac_n=-n ac_c= ac_t=
578   fi
579 else
580   ac_n= ac_c='\c' ac_t=
581 fi
582
583
584
585 # When building with srcdir == objdir, links to the source files will
586 # be created in directories within the target_subdir.  We have to
587 # adjust toplevel_srcdir accordingly, so that configure finds
588 # install-sh and other auxiliary files that live in the top-level
589 # source directory.
590 if test "${srcdir}" = "."; then
591   if test -z "${with_target_subdir}"; then
592     toplevel_srcdir="\${top_srcdir}/.."
593     auxdir="${srcdir}/.."
594   else
595     if test "${with_target_subdir}" != "."; then
596       toplevel_srcdir="\${top_srcdir}/${with_multisrctop}../.."
597       auxdir="${srcdir}/${with_multisrctop}../.."
598     else
599       toplevel_srcdir="\${top_srcdir}/${with_multisrctop}.."
600       auxdir="${srcdir}/${with_multisrctop}.."
601     fi
602   fi
603 else
604   toplevel_srcdir="\${top_srcdir}/.."
605   auxdir="${srcdir}/.."
606 fi
607 ac_aux_dir=
608 for ac_dir in $auxdir $srcdir/$auxdir; do
609   if test -f $ac_dir/install-sh; then
610     ac_aux_dir=$ac_dir
611     ac_install_sh="$ac_aux_dir/install-sh -c"
612     break
613   elif test -f $ac_dir/install.sh; then
614     ac_aux_dir=$ac_dir
615     ac_install_sh="$ac_aux_dir/install.sh -c"
616     break
617   fi
618 done
619 if test -z "$ac_aux_dir"; then
620   { echo "configure: error: can not find install-sh or install.sh in $auxdir $srcdir/$auxdir" 1>&2; exit 1; }
621 fi
622 ac_config_guess=$ac_aux_dir/config.guess
623 ac_config_sub=$ac_aux_dir/config.sub
624 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
625
626
627
628
629
630 # Gets and sets build, host, target, *_vendor, *_cpu, *_os, etc.
631
632 # Do some error checking and defaulting for the host and target type.
633 # The inputs are:
634 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
635 #
636 # The rules are:
637 # 1. You are not allowed to specify --host, --target, and nonopt at the
638 #    same time.
639 # 2. Host defaults to nonopt.
640 # 3. If nonopt is not specified, then host defaults to the current host,
641 #    as determined by config.guess.
642 # 4. Target and build default to nonopt.
643 # 5. If nonopt is not specified, then target and build default to host.
644
645 # The aliases save the names the user supplied, while $host etc.
646 # will get canonicalized.
647 case $host---$target---$nonopt in
648 NONE---*---* | *---NONE---* | *---*---NONE) ;;
649 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
650 esac
651
652
653 # Make sure we can run config.sub.
654 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
655 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
656 fi
657
658 echo $ac_n "checking host system type""... $ac_c" 1>&6
659 echo "configure:660: checking host system type" >&5
660
661 host_alias=$host
662 case "$host_alias" in
663 NONE)
664   case $nonopt in
665   NONE)
666     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
667     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
668     fi ;;
669   *) host_alias=$nonopt ;;
670   esac ;;
671 esac
672
673 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
674 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
675 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
676 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
677 echo "$ac_t""$host" 1>&6
678
679 echo $ac_n "checking target system type""... $ac_c" 1>&6
680 echo "configure:681: checking target system type" >&5
681
682 target_alias=$target
683 case "$target_alias" in
684 NONE)
685   case $nonopt in
686   NONE) target_alias=$host_alias ;;
687   *) target_alias=$nonopt ;;
688   esac ;;
689 esac
690
691 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
692 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
693 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
694 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
695 echo "$ac_t""$target" 1>&6
696
697 echo $ac_n "checking build system type""... $ac_c" 1>&6
698 echo "configure:699: checking build system type" >&5
699
700 build_alias=$build
701 case "$build_alias" in
702 NONE)
703   case $nonopt in
704   NONE) build_alias=$host_alias ;;
705   *) build_alias=$nonopt ;;
706   esac ;;
707 esac
708
709 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
710 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
711 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
712 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
713 echo "$ac_t""$build" 1>&6
714
715 test "$host_alias" != "$target_alias" &&
716   test "$program_prefix$program_suffix$program_transform_name" = \
717     NONENONEs,x,x, &&
718   program_prefix=${target_alias}-
719
720
721 # We use these options to decide which functions to include.
722 # Check whether --with-target-subdir or --without-target-subdir was given.
723 if test "${with_target_subdir+set}" = set; then
724   withval="$with_target_subdir"
725   :
726 fi
727
728 # Check whether --with-cross-host or --without-cross-host was given.
729 if test "${with_cross_host+set}" = set; then
730   withval="$with_cross_host"
731   :
732 fi
733
734
735 # Runs configure.host and configure.target. Have to run this before
736 # the GLIBCPP_ENABLE_* macros below.
737 # Find a good install program.  We prefer a C program (faster),
738 # so one script is as good as another.  But avoid the broken or
739 # incompatible versions:
740 # SysV /etc/install, /usr/sbin/install
741 # SunOS /usr/etc/install
742 # IRIX /sbin/install
743 # AIX /bin/install
744 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
745 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
746 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
747 # ./install, which can be erroneously created by make from ./install.sh.
748 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
749 echo "configure:750: checking for a BSD compatible install" >&5
750 if test -z "$INSTALL"; then
751 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
752   echo $ac_n "(cached) $ac_c" 1>&6
753 else
754     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
755   for ac_dir in $PATH; do
756     # Account for people who put trailing slashes in PATH elements.
757     case "$ac_dir/" in
758     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
759     *)
760       # OSF1 and SCO ODT 3.0 have their own names for install.
761       # Don't use installbsd from OSF since it installs stuff as root
762       # by default.
763       for ac_prog in ginstall scoinst install; do
764         if test -f $ac_dir/$ac_prog; then
765           if test $ac_prog = install &&
766             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
767             # AIX install.  It has an incompatible calling convention.
768             :
769           else
770             ac_cv_path_install="$ac_dir/$ac_prog -c"
771             break 2
772           fi
773         fi
774       done
775       ;;
776     esac
777   done
778   IFS="$ac_save_IFS"
779
780 fi
781   if test "${ac_cv_path_install+set}" = set; then
782     INSTALL="$ac_cv_path_install"
783   else
784     # As a last resort, use the slow shell script.  We don't cache a
785     # path for INSTALL within a source directory, because that will
786     # break other packages using the cache if that directory is
787     # removed, or if the path is relative.
788     INSTALL="$ac_install_sh"
789   fi
790 fi
791 echo "$ac_t""$INSTALL" 1>&6
792
793 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
794 # It thinks the first close brace ends the variable substitution.
795 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
796
797 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
798
799 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
800
801 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
802 echo "configure:803: checking whether build environment is sane" >&5
803 # Just in case
804 sleep 1
805 echo timestamp > conftestfile
806 # Do `set' in a subshell so we don't clobber the current shell's
807 # arguments.  Must try -L first in case configure is actually a
808 # symlink; some systems play weird games with the mod time of symlinks
809 # (eg FreeBSD returns the mod time of the symlink's containing
810 # directory).
811 if (
812    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
813    if test "$*" = "X"; then
814       # -L didn't work.
815       set X `ls -t $srcdir/configure conftestfile`
816    fi
817    if test "$*" != "X $srcdir/configure conftestfile" \
818       && test "$*" != "X conftestfile $srcdir/configure"; then
819
820       # If neither matched, then we have a broken ls.  This can happen
821       # if, for instance, CONFIG_SHELL is bash and it inherits a
822       # broken ls alias from the environment.  This has actually
823       # happened.  Such a system could not be considered "sane".
824       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
825 alias in your environment" 1>&2; exit 1; }
826    fi
827
828    test "$2" = conftestfile
829    )
830 then
831    # Ok.
832    :
833 else
834    { echo "configure: error: newly created file is older than distributed files!
835 Check your system clock" 1>&2; exit 1; }
836 fi
837 rm -f conftest*
838 echo "$ac_t""yes" 1>&6
839 if test "$program_transform_name" = s,x,x,; then
840   program_transform_name=
841 else
842   # Double any \ or $.  echo might interpret backslashes.
843   cat <<\EOF_SED > conftestsed
844 s,\\,\\\\,g; s,\$,$$,g
845 EOF_SED
846   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
847   rm -f conftestsed
848 fi
849 test "$program_prefix" != NONE &&
850   program_transform_name="s,^,${program_prefix},; $program_transform_name"
851 # Use a double $ so make ignores it.
852 test "$program_suffix" != NONE &&
853   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
854
855 # sed with no file args requires a program.
856 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
857
858 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
859 echo "configure:860: checking whether ${MAKE-make} sets \${MAKE}" >&5
860 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
861 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
862   echo $ac_n "(cached) $ac_c" 1>&6
863 else
864   cat > conftestmake <<\EOF
865 all:
866         @echo 'ac_maketemp="${MAKE}"'
867 EOF
868 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
869 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
870 if test -n "$ac_maketemp"; then
871   eval ac_cv_prog_make_${ac_make}_set=yes
872 else
873   eval ac_cv_prog_make_${ac_make}_set=no
874 fi
875 rm -f conftestmake
876 fi
877 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
878   echo "$ac_t""yes" 1>&6
879   SET_MAKE=
880 else
881   echo "$ac_t""no" 1>&6
882   SET_MAKE="MAKE=${MAKE-make}"
883 fi
884
885 if test $host != $build; then
886   ac_tool_prefix=${host_alias}-
887 else
888   ac_tool_prefix=
889 fi
890
891 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
892 echo "configure:893: checking for Cygwin environment" >&5
893 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
894   echo $ac_n "(cached) $ac_c" 1>&6
895 else
896   cat > conftest.$ac_ext <<EOF
897 #line 898 "configure"
898 #include "confdefs.h"
899
900 int main() {
901
902 #ifndef __CYGWIN__
903 #define __CYGWIN__ __CYGWIN32__
904 #endif
905 return __CYGWIN__;
906 ; return 0; }
907 EOF
908 if { (eval echo configure:909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
909   rm -rf conftest*
910   ac_cv_cygwin=yes
911 else
912   echo "configure: failed program was:" >&5
913   cat conftest.$ac_ext >&5
914   rm -rf conftest*
915   ac_cv_cygwin=no
916 fi
917 rm -f conftest*
918 rm -f conftest*
919 fi
920
921 echo "$ac_t""$ac_cv_cygwin" 1>&6
922 CYGWIN=
923 test "$ac_cv_cygwin" = yes && CYGWIN=yes
924 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
925 echo "configure:926: checking for mingw32 environment" >&5
926 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
927   echo $ac_n "(cached) $ac_c" 1>&6
928 else
929   cat > conftest.$ac_ext <<EOF
930 #line 931 "configure"
931 #include "confdefs.h"
932
933 int main() {
934 return __MINGW32__;
935 ; return 0; }
936 EOF
937 if { (eval echo configure:938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
938   rm -rf conftest*
939   ac_cv_mingw32=yes
940 else
941   echo "configure: failed program was:" >&5
942   cat conftest.$ac_ext >&5
943   rm -rf conftest*
944   ac_cv_mingw32=no
945 fi
946 rm -f conftest*
947 rm -f conftest*
948 fi
949
950 echo "$ac_t""$ac_cv_mingw32" 1>&6
951 MINGW32=
952 test "$ac_cv_mingw32" = yes && MINGW32=yes
953
954     # Check whether --enable-multilib or --disable-multilib was given.
955 if test "${enable_multilib+set}" = set; then
956   enableval="$enable_multilib"
957   case "${enableval}" in
958     yes) multilib=yes ;;
959     no)  multilib=no ;;
960     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
961    esac
962 else
963   multilib=yes
964 fi
965
966   glibcpp_basedir=$auxdir/./libstdc++-v3
967   
968
969   
970 PACKAGE=libstdc++
971
972 VERSION=2.92
973
974 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
975   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
976 fi
977 cat >> confdefs.h <<EOF
978 #define PACKAGE "$PACKAGE"
979 EOF
980
981 cat >> confdefs.h <<EOF
982 #define VERSION "$VERSION"
983 EOF
984
985
986
987 missing_dir=`cd $ac_aux_dir && pwd`
988 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
989 echo "configure:990: checking for working aclocal" >&5
990 # Run test in a subshell; some versions of sh will print an error if
991 # an executable is not found, even if stderr is redirected.
992 # Redirect stdin to placate older versions of autoconf.  Sigh.
993 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
994    ACLOCAL=aclocal
995    echo "$ac_t""found" 1>&6
996 else
997    ACLOCAL="$missing_dir/missing aclocal"
998    echo "$ac_t""missing" 1>&6
999 fi
1000
1001 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1002 echo "configure:1003: checking for working autoconf" >&5
1003 # Run test in a subshell; some versions of sh will print an error if
1004 # an executable is not found, even if stderr is redirected.
1005 # Redirect stdin to placate older versions of autoconf.  Sigh.
1006 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1007    AUTOCONF=autoconf
1008    echo "$ac_t""found" 1>&6
1009 else
1010    AUTOCONF="$missing_dir/missing autoconf"
1011    echo "$ac_t""missing" 1>&6
1012 fi
1013
1014 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1015 echo "configure:1016: checking for working automake" >&5
1016 # Run test in a subshell; some versions of sh will print an error if
1017 # an executable is not found, even if stderr is redirected.
1018 # Redirect stdin to placate older versions of autoconf.  Sigh.
1019 if (automake --version) < /dev/null > /dev/null 2>&1; then
1020    AUTOMAKE=automake
1021    echo "$ac_t""found" 1>&6
1022 else
1023    AUTOMAKE="$missing_dir/missing automake"
1024    echo "$ac_t""missing" 1>&6
1025 fi
1026
1027 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1028 echo "configure:1029: checking for working autoheader" >&5
1029 # Run test in a subshell; some versions of sh will print an error if
1030 # an executable is not found, even if stderr is redirected.
1031 # Redirect stdin to placate older versions of autoconf.  Sigh.
1032 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1033    AUTOHEADER=autoheader
1034    echo "$ac_t""found" 1>&6
1035 else
1036    AUTOHEADER="$missing_dir/missing autoheader"
1037    echo "$ac_t""missing" 1>&6
1038 fi
1039
1040 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1041 echo "configure:1042: checking for working makeinfo" >&5
1042 # Run test in a subshell; some versions of sh will print an error if
1043 # an executable is not found, even if stderr is redirected.
1044 # Redirect stdin to placate older versions of autoconf.  Sigh.
1045 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1046    MAKEINFO=makeinfo
1047    echo "$ac_t""found" 1>&6
1048 else
1049    MAKEINFO="$missing_dir/missing makeinfo"
1050    echo "$ac_t""missing" 1>&6
1051 fi
1052
1053
1054
1055   # Never versions of autoconf add an underscore to these functions.
1056   # Prevent future problems ...
1057   
1058   
1059   
1060   
1061
1062 #  AC_PROG_CC
1063
1064 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1065 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1066 # are probably using a cross compiler, which will not be able to fully
1067 # link an executable.  This should really be fixed in autoconf
1068 # itself.
1069
1070
1071
1072
1073 # Extract the first word of "gcc", so it can be a program name with args.
1074 set dummy gcc; ac_word=$2
1075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1076 echo "configure:1077: checking for $ac_word" >&5
1077 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1078   echo $ac_n "(cached) $ac_c" 1>&6
1079 else
1080   if test -n "$CC"; then
1081   ac_cv_prog_CC="$CC" # Let the user override the test.
1082 else
1083   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1084   ac_dummy="$PATH"
1085   for ac_dir in $ac_dummy; do
1086     test -z "$ac_dir" && ac_dir=.
1087     if test -f $ac_dir/$ac_word; then
1088       ac_cv_prog_CC="gcc"
1089       break
1090     fi
1091   done
1092   IFS="$ac_save_ifs"
1093 fi
1094 fi
1095 CC="$ac_cv_prog_CC"
1096 if test -n "$CC"; then
1097   echo "$ac_t""$CC" 1>&6
1098 else
1099   echo "$ac_t""no" 1>&6
1100 fi
1101
1102 if test -z "$CC"; then
1103   # Extract the first word of "cc", so it can be a program name with args.
1104 set dummy cc; ac_word=$2
1105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1106 echo "configure:1107: checking for $ac_word" >&5
1107 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1108   echo $ac_n "(cached) $ac_c" 1>&6
1109 else
1110   if test -n "$CC"; then
1111   ac_cv_prog_CC="$CC" # Let the user override the test.
1112 else
1113   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1114   ac_prog_rejected=no
1115   ac_dummy="$PATH"
1116   for ac_dir in $ac_dummy; do
1117     test -z "$ac_dir" && ac_dir=.
1118     if test -f $ac_dir/$ac_word; then
1119       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1120         ac_prog_rejected=yes
1121         continue
1122       fi
1123       ac_cv_prog_CC="cc"
1124       break
1125     fi
1126   done
1127   IFS="$ac_save_ifs"
1128 if test $ac_prog_rejected = yes; then
1129   # We found a bogon in the path, so make sure we never use it.
1130   set dummy $ac_cv_prog_CC
1131   shift
1132   if test $# -gt 0; then
1133     # We chose a different compiler from the bogus one.
1134     # However, it has the same basename, so the bogon will be chosen
1135     # first if we set CC to just the basename; use the full file name.
1136     shift
1137     set dummy "$ac_dir/$ac_word" "$@"
1138     shift
1139     ac_cv_prog_CC="$@"
1140   fi
1141 fi
1142 fi
1143 fi
1144 CC="$ac_cv_prog_CC"
1145 if test -n "$CC"; then
1146   echo "$ac_t""$CC" 1>&6
1147 else
1148   echo "$ac_t""no" 1>&6
1149 fi
1150
1151   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1152 fi
1153
1154 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1155 echo "configure:1156: checking whether we are using GNU C" >&5
1156 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1157   echo $ac_n "(cached) $ac_c" 1>&6
1158 else
1159   cat > conftest.c <<EOF
1160 #ifdef __GNUC__
1161   yes;
1162 #endif
1163 EOF
1164 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1165   ac_cv_prog_gcc=yes
1166 else
1167   ac_cv_prog_gcc=no
1168 fi
1169 fi
1170
1171 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1172
1173 if test $ac_cv_prog_gcc = yes; then
1174   GCC=yes
1175   ac_test_CFLAGS="${CFLAGS+set}"
1176   ac_save_CFLAGS="$CFLAGS"
1177   CFLAGS=
1178   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1179 echo "configure:1180: checking whether ${CC-cc} accepts -g" >&5
1180 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1181   echo $ac_n "(cached) $ac_c" 1>&6
1182 else
1183   echo 'void f(){}' > conftest.c
1184 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1185   ac_cv_prog_cc_g=yes
1186 else
1187   ac_cv_prog_cc_g=no
1188 fi
1189 rm -f conftest*
1190
1191 fi
1192
1193 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1194   if test "$ac_test_CFLAGS" = set; then
1195     CFLAGS="$ac_save_CFLAGS"
1196   elif test $ac_cv_prog_cc_g = yes; then
1197     CFLAGS="-g -O2"
1198   else
1199     CFLAGS="-O2"
1200   fi
1201 else
1202   GCC=
1203   test "${CFLAGS+set}" = set || CFLAGS="-g"
1204 fi
1205
1206
1207 # Can't just call these here as g++ requires libstc++ to be built....
1208 #  AC_PROG_CXX
1209
1210 # Likewise for AC_PROG_CXX.
1211
1212
1213
1214 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1215 # flags that come in CXX while configuring libstdc++.  They're different
1216 # from those used for all other target libraries.  If CXX is set in
1217 # the environment, respect that here.
1218 glibcpp_CXX=$CXX
1219 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1220 do
1221 # Extract the first word of "$ac_prog", so it can be a program name with args.
1222 set dummy $ac_prog; ac_word=$2
1223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1224 echo "configure:1225: checking for $ac_word" >&5
1225 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1226   echo $ac_n "(cached) $ac_c" 1>&6
1227 else
1228   if test -n "$glibcpp_CXX"; then
1229   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1230 else
1231   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1232   ac_dummy="$PATH"
1233   for ac_dir in $ac_dummy; do
1234     test -z "$ac_dir" && ac_dir=.
1235     if test -f $ac_dir/$ac_word; then
1236       ac_cv_prog_glibcpp_CXX="$ac_prog"
1237       break
1238     fi
1239   done
1240   IFS="$ac_save_ifs"
1241 fi
1242 fi
1243 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1244 if test -n "$glibcpp_CXX"; then
1245   echo "$ac_t""$glibcpp_CXX" 1>&6
1246 else
1247   echo "$ac_t""no" 1>&6
1248 fi
1249
1250 test -n "$glibcpp_CXX" && break
1251 done
1252 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1253
1254
1255 CXX=$glibcpp_CXX
1256 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1257
1258 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1259 echo "configure:1260: checking whether we are using GNU C++" >&5
1260 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1261   echo $ac_n "(cached) $ac_c" 1>&6
1262 else
1263   cat > conftest.C <<EOF
1264 #ifdef __GNUC__
1265   yes;
1266 #endif
1267 EOF
1268 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1269   ac_cv_prog_gxx=yes
1270 else
1271   ac_cv_prog_gxx=no
1272 fi
1273 fi
1274
1275 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1276
1277 if test $ac_cv_prog_gxx = yes; then
1278   GXX=yes
1279   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1280   ac_save_CXXFLAGS="$CXXFLAGS"
1281   CXXFLAGS=
1282   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1283 echo "configure:1284: checking whether ${CXX-g++} accepts -g" >&5
1284 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1285   echo $ac_n "(cached) $ac_c" 1>&6
1286 else
1287   echo 'void f(){}' > conftest.cc
1288 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1289   ac_cv_prog_cxx_g=yes
1290 else
1291   ac_cv_prog_cxx_g=no
1292 fi
1293 rm -f conftest*
1294
1295 fi
1296
1297 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1298   if test "$ac_test_CXXFLAGS" = set; then
1299     CXXFLAGS="$ac_save_CXXFLAGS"
1300   elif test $ac_cv_prog_cxx_g = yes; then
1301     CXXFLAGS="-g -O2"
1302   else
1303     CXXFLAGS="-O2"
1304   fi
1305 else
1306   GXX=
1307   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1308 fi
1309
1310
1311   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1312 set dummy ${ac_tool_prefix}as; ac_word=$2
1313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1314 echo "configure:1315: checking for $ac_word" >&5
1315 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1316   echo $ac_n "(cached) $ac_c" 1>&6
1317 else
1318   if test -n "$AS"; then
1319   ac_cv_prog_AS="$AS" # Let the user override the test.
1320 else
1321   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1322   ac_dummy="$PATH"
1323   for ac_dir in $ac_dummy; do
1324     test -z "$ac_dir" && ac_dir=.
1325     if test -f $ac_dir/$ac_word; then
1326       ac_cv_prog_AS="${ac_tool_prefix}as"
1327       break
1328     fi
1329   done
1330   IFS="$ac_save_ifs"
1331   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1332 fi
1333 fi
1334 AS="$ac_cv_prog_AS"
1335 if test -n "$AS"; then
1336   echo "$ac_t""$AS" 1>&6
1337 else
1338   echo "$ac_t""no" 1>&6
1339 fi
1340
1341
1342
1343   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1344 set dummy ${ac_tool_prefix}ar; ac_word=$2
1345 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1346 echo "configure:1347: checking for $ac_word" >&5
1347 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1348   echo $ac_n "(cached) $ac_c" 1>&6
1349 else
1350   if test -n "$AR"; then
1351   ac_cv_prog_AR="$AR" # Let the user override the test.
1352 else
1353   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1354   ac_dummy="$PATH"
1355   for ac_dir in $ac_dummy; do
1356     test -z "$ac_dir" && ac_dir=.
1357     if test -f $ac_dir/$ac_word; then
1358       ac_cv_prog_AR="${ac_tool_prefix}ar"
1359       break
1360     fi
1361   done
1362   IFS="$ac_save_ifs"
1363   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1364 fi
1365 fi
1366 AR="$ac_cv_prog_AR"
1367 if test -n "$AR"; then
1368   echo "$ac_t""$AR" 1>&6
1369 else
1370   echo "$ac_t""no" 1>&6
1371 fi
1372
1373
1374
1375   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1376 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1377 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1378 echo "configure:1379: checking for $ac_word" >&5
1379 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1380   echo $ac_n "(cached) $ac_c" 1>&6
1381 else
1382   if test -n "$RANLIB"; then
1383   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1384 else
1385   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1386   ac_dummy="$PATH"
1387   for ac_dir in $ac_dummy; do
1388     test -z "$ac_dir" && ac_dir=.
1389     if test -f $ac_dir/$ac_word; then
1390       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1391       break
1392     fi
1393   done
1394   IFS="$ac_save_ifs"
1395 fi
1396 fi
1397 RANLIB="$ac_cv_prog_RANLIB"
1398 if test -n "$RANLIB"; then
1399   echo "$ac_t""$RANLIB" 1>&6
1400 else
1401   echo "$ac_t""no" 1>&6
1402 fi
1403
1404
1405 if test -z "$ac_cv_prog_RANLIB"; then
1406 if test -n "$ac_tool_prefix"; then
1407   # Extract the first word of "ranlib", so it can be a program name with args.
1408 set dummy ranlib; ac_word=$2
1409 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1410 echo "configure:1411: checking for $ac_word" >&5
1411 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1412   echo $ac_n "(cached) $ac_c" 1>&6
1413 else
1414   if test -n "$RANLIB"; then
1415   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1416 else
1417   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1418   ac_dummy="$PATH"
1419   for ac_dir in $ac_dummy; do
1420     test -z "$ac_dir" && ac_dir=.
1421     if test -f $ac_dir/$ac_word; then
1422       ac_cv_prog_RANLIB="ranlib"
1423       break
1424     fi
1425   done
1426   IFS="$ac_save_ifs"
1427   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1428 fi
1429 fi
1430 RANLIB="$ac_cv_prog_RANLIB"
1431 if test -n "$RANLIB"; then
1432   echo "$ac_t""$RANLIB" 1>&6
1433 else
1434   echo "$ac_t""no" 1>&6
1435 fi
1436
1437 else
1438   RANLIB="ranlib-not-found-in-path-error"
1439 fi
1440 fi
1441
1442   # Find a good install program.  We prefer a C program (faster),
1443 # so one script is as good as another.  But avoid the broken or
1444 # incompatible versions:
1445 # SysV /etc/install, /usr/sbin/install
1446 # SunOS /usr/etc/install
1447 # IRIX /sbin/install
1448 # AIX /bin/install
1449 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1450 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1451 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1452 # ./install, which can be erroneously created by make from ./install.sh.
1453 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1454 echo "configure:1455: checking for a BSD compatible install" >&5
1455 if test -z "$INSTALL"; then
1456 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1457   echo $ac_n "(cached) $ac_c" 1>&6
1458 else
1459     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1460   for ac_dir in $PATH; do
1461     # Account for people who put trailing slashes in PATH elements.
1462     case "$ac_dir/" in
1463     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1464     *)
1465       # OSF1 and SCO ODT 3.0 have their own names for install.
1466       # Don't use installbsd from OSF since it installs stuff as root
1467       # by default.
1468       for ac_prog in ginstall scoinst install; do
1469         if test -f $ac_dir/$ac_prog; then
1470           if test $ac_prog = install &&
1471             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1472             # AIX install.  It has an incompatible calling convention.
1473             :
1474           else
1475             ac_cv_path_install="$ac_dir/$ac_prog -c"
1476             break 2
1477           fi
1478         fi
1479       done
1480       ;;
1481     esac
1482   done
1483   IFS="$ac_save_IFS"
1484
1485 fi
1486   if test "${ac_cv_path_install+set}" = set; then
1487     INSTALL="$ac_cv_path_install"
1488   else
1489     # As a last resort, use the slow shell script.  We don't cache a
1490     # path for INSTALL within a source directory, because that will
1491     # break other packages using the cache if that directory is
1492     # removed, or if the path is relative.
1493     INSTALL="$ac_install_sh"
1494   fi
1495 fi
1496 echo "$ac_t""$INSTALL" 1>&6
1497
1498 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1499 # It thinks the first close brace ends the variable substitution.
1500 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1501
1502 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1503
1504 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1505
1506
1507   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1508 echo "configure:1509: checking whether to enable maintainer-specific portions of Makefiles" >&5
1509     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1510 if test "${enable_maintainer_mode+set}" = set; then
1511   enableval="$enable_maintainer_mode"
1512   USE_MAINTAINER_MODE=$enableval
1513 else
1514   USE_MAINTAINER_MODE=no
1515 fi
1516
1517   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1518   
1519
1520 if test $USE_MAINTAINER_MODE = yes; then
1521   MAINTAINER_MODE_TRUE=
1522   MAINTAINER_MODE_FALSE='#'
1523 else
1524   MAINTAINER_MODE_TRUE='#'
1525   MAINTAINER_MODE_FALSE=
1526 fi
1527   MAINT=$MAINTAINER_MODE_TRUE
1528   
1529
1530
1531   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1532   # at least currently, we never actually build a program, so we never
1533   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1534   # fails, because we are probably configuring with a cross compiler
1535   # which cant create executables.  So we include AC_EXEEXT to keep
1536   # automake happy, but we dont execute it, since we dont care about
1537   # the result.
1538   if false; then
1539     
1540
1541 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1542 echo "configure:1543: checking for executable suffix" >&5
1543 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1544   echo $ac_n "(cached) $ac_c" 1>&6
1545 else
1546   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1547   ac_cv_exeext=.exe
1548 else
1549   rm -f conftest*
1550   echo 'int main () { return 0; }' > conftest.$ac_ext
1551   ac_cv_exeext=
1552   if { (eval echo configure:1553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1553     for file in conftest.*; do
1554       case $file in
1555       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1556       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1557       esac
1558     done
1559   else
1560     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1561   fi
1562   rm -f conftest*
1563   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1564 fi
1565 fi
1566
1567 EXEEXT=""
1568 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1569 echo "$ac_t""${ac_cv_exeext}" 1>&6
1570 ac_exeext=$EXEEXT
1571
1572   fi
1573
1574   . ${glibcpp_basedir}/configure.host
1575
1576   case ${glibcpp_basedir} in
1577     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1578     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1579   esac
1580
1581   # This does for the target what configure.host does for the host.  In
1582   # addition to possibly modifying the same flags, it also sets up symlinks.
1583   
1584     . ${glibcpp_basedir}/configure.target
1585     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1586     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1587     
1588
1589
1590
1591
1592 # Check whether --enable-shared or --disable-shared was given.
1593 if test "${enable_shared+set}" = set; then
1594   enableval="$enable_shared"
1595   p=${PACKAGE-default}
1596 case $enableval in
1597 yes) enable_shared=yes ;;
1598 no) enable_shared=no ;;
1599 *)
1600   enable_shared=no
1601   # Look at the argument we got.  We use all the common list separators.
1602   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1603   for pkg in $enableval; do
1604     if test "X$pkg" = "X$p"; then
1605       enable_shared=yes
1606     fi
1607   done
1608   IFS="$ac_save_ifs"
1609   ;;
1610 esac
1611 else
1612   enable_shared=yes
1613 fi
1614
1615 # Check whether --enable-static or --disable-static was given.
1616 if test "${enable_static+set}" = set; then
1617   enableval="$enable_static"
1618   p=${PACKAGE-default}
1619 case $enableval in
1620 yes) enable_static=yes ;;
1621 no) enable_static=no ;;
1622 *)
1623   enable_static=no
1624   # Look at the argument we got.  We use all the common list separators.
1625   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1626   for pkg in $enableval; do
1627     if test "X$pkg" = "X$p"; then
1628       enable_static=yes
1629     fi
1630   done
1631   IFS="$ac_save_ifs"
1632   ;;
1633 esac
1634 else
1635   enable_static=yes
1636 fi
1637
1638 # Check whether --enable-fast-install or --disable-fast-install was given.
1639 if test "${enable_fast_install+set}" = set; then
1640   enableval="$enable_fast_install"
1641   p=${PACKAGE-default}
1642 case $enableval in
1643 yes) enable_fast_install=yes ;;
1644 no) enable_fast_install=no ;;
1645 *)
1646   enable_fast_install=no
1647   # Look at the argument we got.  We use all the common list separators.
1648   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1649   for pkg in $enableval; do
1650     if test "X$pkg" = "X$p"; then
1651       enable_fast_install=yes
1652     fi
1653   done
1654   IFS="$ac_save_ifs"
1655   ;;
1656 esac
1657 else
1658   enable_fast_install=yes
1659 fi
1660
1661 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1662 if test "${with_gnu_ld+set}" = set; then
1663   withval="$with_gnu_ld"
1664   test "$withval" = no || with_gnu_ld=yes
1665 else
1666   with_gnu_ld=no
1667 fi
1668
1669 ac_prog=ld
1670 if test "$GCC" = yes; then
1671   # Check if gcc -print-prog-name=ld gives a path.
1672   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1673 echo "configure:1674: checking for ld used by GCC" >&5
1674   case $host in
1675   *-*-mingw*)
1676     # gcc leaves a trailing carriage return which upsets mingw
1677     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1678   *)
1679     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1680   esac
1681   case $ac_prog in
1682     # Accept absolute paths.
1683     [\\/]* | [A-Za-z]:[\\/]*)
1684       re_direlt='/[^/][^/]*/\.\./'
1685       # Canonicalize the path of ld
1686       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1687       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1688         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1689       done
1690       test -z "$LD" && LD="$ac_prog"
1691       ;;
1692   "")
1693     # If it fails, then pretend we aren't using GCC.
1694     ac_prog=ld
1695     ;;
1696   *)
1697     # If it is relative, then search for the first ld in PATH.
1698     with_gnu_ld=unknown
1699     ;;
1700   esac
1701 elif test "$with_gnu_ld" = yes; then
1702   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1703 echo "configure:1704: checking for GNU ld" >&5
1704 else
1705   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1706 echo "configure:1707: checking for non-GNU ld" >&5
1707 fi
1708 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1709   echo $ac_n "(cached) $ac_c" 1>&6
1710 else
1711   if test -z "$LD"; then
1712   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1713   for ac_dir in $PATH; do
1714     test -z "$ac_dir" && ac_dir=.
1715     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1716       lt_cv_path_LD="$ac_dir/$ac_prog"
1717       # Check to see if the program is GNU ld.  I'd rather use --version,
1718       # but apparently some GNU ld's only accept -v.
1719       # Break only if it was the GNU/non-GNU ld that we prefer.
1720       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1721         test "$with_gnu_ld" != no && break
1722       else
1723         test "$with_gnu_ld" != yes && break
1724       fi
1725     fi
1726   done
1727   IFS="$ac_save_ifs"
1728 else
1729   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1730 fi
1731 fi
1732
1733 LD="$lt_cv_path_LD"
1734 if test -n "$LD"; then
1735   echo "$ac_t""$LD" 1>&6
1736 else
1737   echo "$ac_t""no" 1>&6
1738 fi
1739 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1740 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1741 echo "configure:1742: checking if the linker ($LD) is GNU ld" >&5
1742 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1743   echo $ac_n "(cached) $ac_c" 1>&6
1744 else
1745   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1746 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1747   lt_cv_prog_gnu_ld=yes
1748 else
1749   lt_cv_prog_gnu_ld=no
1750 fi
1751 fi
1752
1753 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1754 with_gnu_ld=$lt_cv_prog_gnu_ld
1755
1756
1757 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1758 echo "configure:1759: checking for $LD option to reload object files" >&5
1759 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1760   echo $ac_n "(cached) $ac_c" 1>&6
1761 else
1762   lt_cv_ld_reload_flag='-r'
1763 fi
1764
1765 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1766 reload_flag=$lt_cv_ld_reload_flag
1767 test -n "$reload_flag" && reload_flag=" $reload_flag"
1768
1769 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1770 echo "configure:1771: checking for BSD-compatible nm" >&5
1771 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1772   echo $ac_n "(cached) $ac_c" 1>&6
1773 else
1774   if test -n "$NM"; then
1775   # Let the user override the test.
1776   lt_cv_path_NM="$NM"
1777 else
1778   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1779   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1780     test -z "$ac_dir" && ac_dir=.
1781     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1782     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1783       # Check to see if the nm accepts a BSD-compat flag.
1784       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1785       #   nm: unknown option "B" ignored
1786       # Tru64's nm complains that /dev/null is an invalid object file
1787       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1788         lt_cv_path_NM="$tmp_nm -B"
1789         break
1790       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1791         lt_cv_path_NM="$tmp_nm -p"
1792         break
1793       else
1794         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1795         continue # so that we can try to find one that supports BSD flags
1796       fi
1797     fi
1798   done
1799   IFS="$ac_save_ifs"
1800   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1801 fi
1802 fi
1803
1804 NM="$lt_cv_path_NM"
1805 echo "$ac_t""$NM" 1>&6
1806
1807 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1808 echo "configure:1809: checking whether ln -s works" >&5
1809 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1810   echo $ac_n "(cached) $ac_c" 1>&6
1811 else
1812   rm -f conftestdata
1813 if ln -s X conftestdata 2>/dev/null
1814 then
1815   rm -f conftestdata
1816   ac_cv_prog_LN_S="ln -s"
1817 else
1818   ac_cv_prog_LN_S=ln
1819 fi
1820 fi
1821 LN_S="$ac_cv_prog_LN_S"
1822 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1823   echo "$ac_t""yes" 1>&6
1824 else
1825   echo "$ac_t""no" 1>&6
1826 fi
1827
1828 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1829 echo "configure:1830: checking how to recognise dependant libraries" >&5
1830 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1831   echo $ac_n "(cached) $ac_c" 1>&6
1832 else
1833   lt_cv_file_magic_cmd='$MAGIC_CMD'
1834 lt_cv_file_magic_test_file=
1835 lt_cv_deplibs_check_method='unknown'
1836 # Need to set the preceding variable on all platforms that support
1837 # interlibrary dependencies.
1838 # 'none' -- dependencies not supported.
1839 # `unknown' -- same as none, but documents that we really don't know.
1840 # 'pass_all' -- all dependencies passed with no checks.
1841 # 'test_compile' -- check by making test program.
1842 # 'file_magic [regex]' -- check by looking for files in library path
1843 # which responds to the $file_magic_cmd with a given egrep regex.
1844 # If you have `file' or equivalent on your system and you're not sure
1845 # whether `pass_all' will *always* work, you probably want this one.
1846
1847 case $host_os in
1848 aix*)
1849   lt_cv_deplibs_check_method=pass_all
1850   ;;
1851
1852 beos*)
1853   lt_cv_deplibs_check_method=pass_all
1854   ;;
1855
1856 bsdi4*)
1857   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1858   lt_cv_file_magic_cmd='/usr/bin/file -L'
1859   lt_cv_file_magic_test_file=/shlib/libc.so
1860   ;;
1861
1862 cygwin* | mingw* |pw32*)
1863   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1864   lt_cv_file_magic_cmd='$OBJDUMP -f'
1865   ;;
1866
1867 darwin* | rhapsody*)
1868   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1869   lt_cv_file_magic_cmd='/usr/bin/file -L'
1870   case "$host_os" in
1871   rhapsody* | darwin1.012)
1872     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1873     ;;
1874   *) # Darwin 1.3 on
1875     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1876     ;;
1877   esac
1878   ;;
1879
1880 freebsd* )
1881   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1882     case $host_cpu in
1883     i*86 )
1884       # Not sure whether the presence of OpenBSD here was a mistake.
1885       # Let's accept both of them until this is cleared up.
1886       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1887       lt_cv_file_magic_cmd=/usr/bin/file
1888       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1889       ;;
1890     esac
1891   else
1892     lt_cv_deplibs_check_method=pass_all
1893   fi
1894   ;;
1895
1896 gnu*)
1897   lt_cv_deplibs_check_method=pass_all
1898   ;;
1899
1900 hpux10.20*|hpux11*)
1901   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1902   lt_cv_file_magic_cmd=/usr/bin/file
1903   lt_cv_file_magic_test_file=/usr/lib/libc.sl
1904   ;;
1905
1906 irix5* | irix6*)
1907   case $host_os in
1908   irix5*)
1909     # this will be overridden with pass_all, but let us keep it just in case
1910     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1911     ;;
1912   *)
1913     case $LD in
1914     *-32|*"-32 ") libmagic=32-bit;;
1915     *-n32|*"-n32 ") libmagic=N32;;
1916     *-64|*"-64 ") libmagic=64-bit;;
1917     *) libmagic=never-match;;
1918     esac
1919     # this will be overridden with pass_all, but let us keep it just in case
1920     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1921     ;;
1922   esac
1923   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1924   lt_cv_deplibs_check_method=pass_all
1925   ;;
1926
1927 # This must be Linux ELF.
1928 linux-gnu*)
1929   case $host_cpu in
1930   alpha* | i*86 | powerpc* | sparc* | ia64* )
1931     lt_cv_deplibs_check_method=pass_all ;;
1932   *)
1933     # glibc up to 2.1.1 does not perform some relocations on ARM
1934     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1935   esac
1936   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1937   ;;
1938
1939 netbsd*)
1940   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1941     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1942   else
1943     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1944   fi
1945   ;;
1946
1947 newsos6)
1948   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1949   lt_cv_file_magic_cmd=/usr/bin/file
1950   lt_cv_file_magic_test_file=/usr/lib/libnls.so
1951   ;;
1952
1953 osf3* | osf4* | osf5*)
1954   # this will be overridden with pass_all, but let us keep it just in case
1955   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1956   lt_cv_file_magic_test_file=/shlib/libc.so
1957   lt_cv_deplibs_check_method=pass_all
1958   ;;
1959
1960 sco3.2v5*)
1961   lt_cv_deplibs_check_method=pass_all
1962   ;;
1963
1964 solaris*)
1965   lt_cv_deplibs_check_method=pass_all
1966   lt_cv_file_magic_test_file=/lib/libc.so
1967   ;;
1968
1969 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1970   case $host_vendor in
1971   ncr)
1972     lt_cv_deplibs_check_method=pass_all
1973     ;;
1974   motorola)
1975     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]'
1976     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1977     ;;
1978   esac
1979   ;;
1980 esac
1981
1982 fi
1983
1984 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1985 file_magic_cmd=$lt_cv_file_magic_cmd
1986 deplibs_check_method=$lt_cv_deplibs_check_method
1987
1988 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1989 echo "configure:1990: checking for object suffix" >&5
1990 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1991   echo $ac_n "(cached) $ac_c" 1>&6
1992 else
1993   rm -f conftest*
1994 echo 'int i = 1;' > conftest.$ac_ext
1995 if { (eval echo configure:1996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1996   for ac_file in conftest.*; do
1997     case $ac_file in
1998     *.c) ;;
1999     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2000     esac
2001   done
2002 else
2003   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2004 fi
2005 rm -f conftest*
2006 fi
2007
2008 echo "$ac_t""$ac_cv_objext" 1>&6
2009 OBJEXT=$ac_cv_objext
2010 ac_objext=$ac_cv_objext
2011
2012 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2013
2014 # Only perform the check for file, if the check method requires it
2015 case $deplibs_check_method in
2016 file_magic*)
2017   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2018     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2019 echo "configure:2020: checking for ${ac_tool_prefix}file" >&5
2020 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2021   echo $ac_n "(cached) $ac_c" 1>&6
2022 else
2023   case $MAGIC_CMD in
2024   /*)
2025   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2026   ;;
2027   ?:/*)
2028   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2029   ;;
2030   *)
2031   ac_save_MAGIC_CMD="$MAGIC_CMD"
2032   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2033   ac_dummy="/usr/bin:$PATH"
2034   for ac_dir in $ac_dummy; do
2035     test -z "$ac_dir" && ac_dir=.
2036     if test -f $ac_dir/${ac_tool_prefix}file; then
2037       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2038       if test -n "$file_magic_test_file"; then
2039         case $deplibs_check_method in
2040         "file_magic "*)
2041           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2042           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2043           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2044             egrep "$file_magic_regex" > /dev/null; then
2045             :
2046           else
2047             cat <<EOF 1>&2
2048
2049 *** Warning: the command libtool uses to detect shared libraries,
2050 *** $file_magic_cmd, produces output that libtool cannot recognize.
2051 *** The result is that libtool may fail to recognize shared libraries
2052 *** as such.  This will affect the creation of libtool libraries that
2053 *** depend on shared libraries, but programs linked with such libtool
2054 *** libraries will work regardless of this problem.  Nevertheless, you
2055 *** may want to report the problem to your system manager and/or to
2056 *** bug-libtool@gnu.org
2057
2058 EOF
2059           fi ;;
2060         esac
2061       fi
2062       break
2063     fi
2064   done
2065   IFS="$ac_save_ifs"
2066   MAGIC_CMD="$ac_save_MAGIC_CMD"
2067   ;;
2068 esac
2069 fi
2070
2071 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2072 if test -n "$MAGIC_CMD"; then
2073   echo "$ac_t""$MAGIC_CMD" 1>&6
2074 else
2075   echo "$ac_t""no" 1>&6
2076 fi
2077
2078 if test -z "$lt_cv_path_MAGIC_CMD"; then
2079   if test -n "$ac_tool_prefix"; then
2080     echo $ac_n "checking for file""... $ac_c" 1>&6
2081 echo "configure:2082: checking for file" >&5
2082 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2083   echo $ac_n "(cached) $ac_c" 1>&6
2084 else
2085   case $MAGIC_CMD in
2086   /*)
2087   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2088   ;;
2089   ?:/*)
2090   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2091   ;;
2092   *)
2093   ac_save_MAGIC_CMD="$MAGIC_CMD"
2094   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2095   ac_dummy="/usr/bin:$PATH"
2096   for ac_dir in $ac_dummy; do
2097     test -z "$ac_dir" && ac_dir=.
2098     if test -f $ac_dir/file; then
2099       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2100       if test -n "$file_magic_test_file"; then
2101         case $deplibs_check_method in
2102         "file_magic "*)
2103           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2104           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2105           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2106             egrep "$file_magic_regex" > /dev/null; then
2107             :
2108           else
2109             cat <<EOF 1>&2
2110
2111 *** Warning: the command libtool uses to detect shared libraries,
2112 *** $file_magic_cmd, produces output that libtool cannot recognize.
2113 *** The result is that libtool may fail to recognize shared libraries
2114 *** as such.  This will affect the creation of libtool libraries that
2115 *** depend on shared libraries, but programs linked with such libtool
2116 *** libraries will work regardless of this problem.  Nevertheless, you
2117 *** may want to report the problem to your system manager and/or to
2118 *** bug-libtool@gnu.org
2119
2120 EOF
2121           fi ;;
2122         esac
2123       fi
2124       break
2125     fi
2126   done
2127   IFS="$ac_save_ifs"
2128   MAGIC_CMD="$ac_save_MAGIC_CMD"
2129   ;;
2130 esac
2131 fi
2132
2133 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2134 if test -n "$MAGIC_CMD"; then
2135   echo "$ac_t""$MAGIC_CMD" 1>&6
2136 else
2137   echo "$ac_t""no" 1>&6
2138 fi
2139
2140   else
2141     MAGIC_CMD=:
2142   fi
2143 fi
2144
2145   fi
2146   ;;
2147 esac
2148
2149 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2150 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2151 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2152 echo "configure:2153: checking for $ac_word" >&5
2153 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2154   echo $ac_n "(cached) $ac_c" 1>&6
2155 else
2156   if test -n "$RANLIB"; then
2157   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2158 else
2159   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2160   ac_dummy="$PATH"
2161   for ac_dir in $ac_dummy; do
2162     test -z "$ac_dir" && ac_dir=.
2163     if test -f $ac_dir/$ac_word; then
2164       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2165       break
2166     fi
2167   done
2168   IFS="$ac_save_ifs"
2169 fi
2170 fi
2171 RANLIB="$ac_cv_prog_RANLIB"
2172 if test -n "$RANLIB"; then
2173   echo "$ac_t""$RANLIB" 1>&6
2174 else
2175   echo "$ac_t""no" 1>&6
2176 fi
2177
2178
2179 if test -z "$ac_cv_prog_RANLIB"; then
2180 if test -n "$ac_tool_prefix"; then
2181   # Extract the first word of "ranlib", so it can be a program name with args.
2182 set dummy ranlib; ac_word=$2
2183 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2184 echo "configure:2185: checking for $ac_word" >&5
2185 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2186   echo $ac_n "(cached) $ac_c" 1>&6
2187 else
2188   if test -n "$RANLIB"; then
2189   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2190 else
2191   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2192   ac_dummy="$PATH"
2193   for ac_dir in $ac_dummy; do
2194     test -z "$ac_dir" && ac_dir=.
2195     if test -f $ac_dir/$ac_word; then
2196       ac_cv_prog_RANLIB="ranlib"
2197       break
2198     fi
2199   done
2200   IFS="$ac_save_ifs"
2201   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2202 fi
2203 fi
2204 RANLIB="$ac_cv_prog_RANLIB"
2205 if test -n "$RANLIB"; then
2206   echo "$ac_t""$RANLIB" 1>&6
2207 else
2208   echo "$ac_t""no" 1>&6
2209 fi
2210
2211 else
2212   RANLIB=":"
2213 fi
2214 fi
2215
2216 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2217 set dummy ${ac_tool_prefix}strip; ac_word=$2
2218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2219 echo "configure:2220: checking for $ac_word" >&5
2220 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2221   echo $ac_n "(cached) $ac_c" 1>&6
2222 else
2223   if test -n "$STRIP"; then
2224   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2225 else
2226   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2227   ac_dummy="$PATH"
2228   for ac_dir in $ac_dummy; do
2229     test -z "$ac_dir" && ac_dir=.
2230     if test -f $ac_dir/$ac_word; then
2231       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2232       break
2233     fi
2234   done
2235   IFS="$ac_save_ifs"
2236 fi
2237 fi
2238 STRIP="$ac_cv_prog_STRIP"
2239 if test -n "$STRIP"; then
2240   echo "$ac_t""$STRIP" 1>&6
2241 else
2242   echo "$ac_t""no" 1>&6
2243 fi
2244
2245
2246 if test -z "$ac_cv_prog_STRIP"; then
2247 if test -n "$ac_tool_prefix"; then
2248   # Extract the first word of "strip", so it can be a program name with args.
2249 set dummy strip; ac_word=$2
2250 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2251 echo "configure:2252: checking for $ac_word" >&5
2252 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2253   echo $ac_n "(cached) $ac_c" 1>&6
2254 else
2255   if test -n "$STRIP"; then
2256   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2257 else
2258   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2259   ac_dummy="$PATH"
2260   for ac_dir in $ac_dummy; do
2261     test -z "$ac_dir" && ac_dir=.
2262     if test -f $ac_dir/$ac_word; then
2263       ac_cv_prog_STRIP="strip"
2264       break
2265     fi
2266   done
2267   IFS="$ac_save_ifs"
2268   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2269 fi
2270 fi
2271 STRIP="$ac_cv_prog_STRIP"
2272 if test -n "$STRIP"; then
2273   echo "$ac_t""$STRIP" 1>&6
2274 else
2275   echo "$ac_t""no" 1>&6
2276 fi
2277
2278 else
2279   STRIP=":"
2280 fi
2281 fi
2282
2283
2284 # Check for any special flags to pass to ltconfig.
2285 libtool_flags="--cache-file=$cache_file"
2286 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2287 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2288 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2289 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2290 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2291 libtool_flags="$libtool_flags --enable-dlopen"
2292
2293 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2294 if test "${enable_libtool_lock+set}" = set; then
2295   enableval="$enable_libtool_lock"
2296   :
2297 fi
2298
2299 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2300 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2301
2302 # Check whether --with-pic or --without-pic was given.
2303 if test "${with_pic+set}" = set; then
2304   withval="$with_pic"
2305   pic_mode="$withval"
2306 else
2307   pic_mode=default
2308 fi
2309
2310 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2311 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2312
2313 # Some flags need to be propagated to the compiler or linker for good
2314 # libtool support.
2315 case $host in
2316 *-*-irix6*)
2317   # Find out which ABI we are using.
2318   echo '#line 2319 "configure"' > conftest.$ac_ext
2319   if { (eval echo configure:2320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2320     case `/usr/bin/file conftest.$ac_objext` in
2321     *32-bit*)
2322       LD="${LD-ld} -32"
2323       ;;
2324     *N32*)
2325       LD="${LD-ld} -n32"
2326       ;;
2327     *64-bit*)
2328       LD="${LD-ld} -64"
2329       ;;
2330     esac
2331   fi
2332   rm -rf conftest*
2333   ;;
2334
2335 *-*-sco3.2v5*)
2336   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2337   SAVE_CFLAGS="$CFLAGS"
2338   CFLAGS="$CFLAGS -belf"
2339   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2340 echo "configure:2341: checking whether the C compiler needs -belf" >&5
2341 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2342   echo $ac_n "(cached) $ac_c" 1>&6
2343 else
2344   
2345      ac_ext=c
2346 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2347 ac_cpp='$CPP $CPPFLAGS'
2348 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2349 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2350 cross_compiling=$ac_cv_prog_cc_cross
2351
2352      cat > conftest.$ac_ext <<EOF
2353 #line 2354 "configure"
2354 #include "confdefs.h"
2355
2356 int main() {
2357
2358 ; return 0; }
2359 EOF
2360 if { (eval echo configure:2361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2361   rm -rf conftest*
2362   lt_cv_cc_needs_belf=yes
2363 else
2364   echo "configure: failed program was:" >&5
2365   cat conftest.$ac_ext >&5
2366   rm -rf conftest*
2367   lt_cv_cc_needs_belf=no
2368 fi
2369 rm -f conftest*
2370      ac_ext=c
2371 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2372 ac_cpp='$CPP $CPPFLAGS'
2373 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2374 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2375 cross_compiling=$ac_cv_prog_cc_cross
2376
2377 fi
2378
2379 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2380   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2381     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2382     CFLAGS="$SAVE_CFLAGS"
2383   fi
2384   ;;
2385
2386
2387 esac
2388
2389 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2390 echo "configure:2391: checking how to run the C++ preprocessor" >&5
2391 if test -z "$CXXCPP"; then
2392 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2393   echo $ac_n "(cached) $ac_c" 1>&6
2394 else
2395   ac_ext=C
2396 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2397 ac_cpp='$CXXCPP $CPPFLAGS'
2398 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2399 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2400 cross_compiling=$ac_cv_prog_cxx_cross
2401   CXXCPP="${CXX-g++} -E"
2402   cat > conftest.$ac_ext <<EOF
2403 #line 2404 "configure"
2404 #include "confdefs.h"
2405 #include <stdlib.h>
2406 EOF
2407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2408 { (eval echo configure:2409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2410 if test -z "$ac_err"; then
2411   :
2412 else
2413   echo "$ac_err" >&5
2414   echo "configure: failed program was:" >&5
2415   cat conftest.$ac_ext >&5
2416   rm -rf conftest*
2417   CXXCPP=/lib/cpp
2418 fi
2419 rm -f conftest*
2420   ac_cv_prog_CXXCPP="$CXXCPP"
2421 ac_ext=c
2422 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2423 ac_cpp='$CPP $CPPFLAGS'
2424 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2425 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2426 cross_compiling=$ac_cv_prog_cc_cross
2427 fi
2428 fi
2429 CXXCPP="$ac_cv_prog_CXXCPP"
2430 echo "$ac_t""$CXXCPP" 1>&6
2431
2432
2433 # Save cache, so that ltconfig can load it
2434 cat > confcache <<\EOF
2435 # This file is a shell script that caches the results of configure
2436 # tests run on this system so they can be shared between configure
2437 # scripts and configure runs.  It is not useful on other systems.
2438 # If it contains results you don't want to keep, you may remove or edit it.
2439 #
2440 # By default, configure uses ./config.cache as the cache file,
2441 # creating it if it does not exist already.  You can give configure
2442 # the --cache-file=FILE option to use a different cache file; that is
2443 # what configure does when it calls configure scripts in
2444 # subdirectories, so they share the cache.
2445 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2446 # config.status only pays attention to the cache file if you give it the
2447 # --recheck option to rerun configure.
2448 #
2449 EOF
2450 # The following way of writing the cache mishandles newlines in values,
2451 # but we know of no workaround that is simple, portable, and efficient.
2452 # So, don't put newlines in cache variables' values.
2453 # Ultrix sh set writes to stderr and can't be redirected directly,
2454 # and sets the high bit in the cache file unless we assign to the vars.
2455 (set) 2>&1 |
2456   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2457   *ac_space=\ *)
2458     # `set' does not quote correctly, so add quotes (double-quote substitution
2459     # turns \\\\ into \\, and sed turns \\ into \).
2460     sed -n \
2461       -e "s/'/'\\\\''/g" \
2462       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2463     ;;
2464   *)
2465     # `set' quotes correctly as required by POSIX, so do not add quotes.
2466     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2467     ;;
2468   esac >> confcache
2469 if cmp -s $cache_file confcache; then
2470   :
2471 else
2472   if test -w $cache_file; then
2473     echo "updating cache $cache_file"
2474     cat confcache > $cache_file
2475   else
2476     echo "not updating unwritable cache $cache_file"
2477   fi
2478 fi
2479 rm -f confcache
2480
2481
2482 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2483 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2484 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2485 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2486 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2487 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2488 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2489 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2490 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2491 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2492
2493 # Reload cache, that may have been modified by ltconfig
2494 if test -r "$cache_file"; then
2495   echo "loading cache $cache_file"
2496   . $cache_file
2497 else
2498   echo "creating cache $cache_file"
2499   > $cache_file
2500 fi
2501
2502
2503 # This can be used to rebuild libtool when needed
2504 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2505
2506 # Always use our own libtool.
2507 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2508
2509 # Redirect the config.log output again, so that the ltconfig log is not
2510 # clobbered by the next message.
2511 exec 5>>./config.log
2512
2513
2514
2515 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2516 lt_save_CC="$CC"
2517 lt_save_CFLAGS="$CFLAGS"
2518 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2519 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2520 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2521 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2522 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2523 deplibs_check_method="$deplibs_check_method" \
2524 file_magic_cmd="$file_magic_cmd" \
2525 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2526 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2527 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2528 CC="$lt_save_CC"
2529 CFLAGS="$lt_save_CFLAGS"
2530
2531 # Redirect the config.log output again, so that the ltconfig log is not
2532 # clobbered by the next message.
2533 exec 5>>./config.log
2534
2535   
2536
2537   
2538          
2539          
2540
2541
2542 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2543 echo "configure:2544: checking for GNU make" >&5
2544 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2545   echo $ac_n "(cached) $ac_c" 1>&6
2546 else
2547   _cv_gnu_make_command='' ;
2548           for a in "${MAKE-make}" make gmake gnumake ; do
2549                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2550                   then
2551                           _cv_gnu_make_command=$a ;
2552                           break;
2553                   fi
2554           done ;
2555   
2556 fi
2557
2558 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2559   if test  "x$_cv_gnu_make_command" != "x"  ; then
2560           ifGNUmake='' ;
2561   else
2562           ifGNUmake='#' ;
2563   fi
2564   
2565
2566   if test "x$_cv_gnu_make_command" = "x"; then
2567     { echo "configure: error: GNU make not found. Please install it or correct your path." 1>&2; exit 1; }
2568   fi
2569
2570
2571
2572
2573 # Check for c++ or library specific bits that don't require linking.
2574
2575 if test ! -f stamp-sanity-compiler; then
2576   echo $ac_n "checking for g++ that will successfully compile libstdc++-v3""... $ac_c" 1>&6
2577 echo "configure:2578: checking for g++ that will successfully compile libstdc++-v3" >&5
2578   
2579   ac_ext=C
2580 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2581 ac_cpp='$CXXCPP $CPPFLAGS'
2582 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2583 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2584 cross_compiling=$ac_cv_prog_cxx_cross
2585
2586   cat > conftest.$ac_ext <<EOF
2587 #line 2588 "configure"
2588 #include "confdefs.h"
2589
2590   #if __GNUC__ >= 3
2591     ok
2592   #endif
2593   
2594 EOF
2595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2596   egrep "ok" >/dev/null 2>&1; then
2597   rm -rf conftest*
2598   gpp_satisfactory=yes
2599 else
2600   rm -rf conftest*
2601   { echo "configure: error: please upgrade to GCC 3.0 or above" 1>&2; exit 1; }
2602 fi
2603 rm -f conftest*
2604
2605   ac_ext=c
2606 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2607 ac_cpp='$CPP $CPPFLAGS'
2608 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2609 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2610 cross_compiling=$ac_cv_prog_cc_cross
2611
2612   echo "$ac_t""$gpp_satisfactory" 1>&6
2613   touch stamp-sanity-compiler
2614 fi
2615
2616
2617 # Enable all the crazy c++ stuff.  C_MBCHAR must come early.
2618 # Check whether --enable-debug or --disable-debug was given.
2619 if test "${enable_debug+set}" = set; then
2620   enableval="$enable_debug"
2621   case "${enableval}" in
2622  yes) enable_debug=yes ;;
2623  no)  enable_debug=no ;;
2624  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2625  esac
2626 else
2627   enable_debug=no
2628 fi
2629
2630 case "${enable_debug}" in
2631     yes) 
2632         DEBUG_FLAGS='-O0 -ggdb3'                        
2633         ;; 
2634     no)   
2635         DEBUG_FLAGS='-g'
2636         ;;
2637 esac
2638
2639
2640 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2641 echo "configure:2642: checking how to run the C preprocessor" >&5
2642 # On Suns, sometimes $CPP names a directory.
2643 if test -n "$CPP" && test -d "$CPP"; then
2644   CPP=
2645 fi
2646 if test -z "$CPP"; then
2647 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2648   echo $ac_n "(cached) $ac_c" 1>&6
2649 else
2650     # This must be in double quotes, not single quotes, because CPP may get
2651   # substituted into the Makefile and "${CC-cc}" will confuse make.
2652   CPP="${CC-cc} -E"
2653   # On the NeXT, cc -E runs the code through the compiler's parser,
2654   # not just through cpp.
2655   cat > conftest.$ac_ext <<EOF
2656 #line 2657 "configure"
2657 #include "confdefs.h"
2658 #include <assert.h>
2659 Syntax Error
2660 EOF
2661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2662 { (eval echo configure:2663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2664 if test -z "$ac_err"; then
2665   :
2666 else
2667   echo "$ac_err" >&5
2668   echo "configure: failed program was:" >&5
2669   cat conftest.$ac_ext >&5
2670   rm -rf conftest*
2671   CPP="${CC-cc} -E -traditional-cpp"
2672   cat > conftest.$ac_ext <<EOF
2673 #line 2674 "configure"
2674 #include "confdefs.h"
2675 #include <assert.h>
2676 Syntax Error
2677 EOF
2678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2679 { (eval echo configure:2680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2681 if test -z "$ac_err"; then
2682   :
2683 else
2684   echo "$ac_err" >&5
2685   echo "configure: failed program was:" >&5
2686   cat conftest.$ac_ext >&5
2687   rm -rf conftest*
2688   CPP="${CC-cc} -nologo -E"
2689   cat > conftest.$ac_ext <<EOF
2690 #line 2691 "configure"
2691 #include "confdefs.h"
2692 #include <assert.h>
2693 Syntax Error
2694 EOF
2695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2696 { (eval echo configure:2697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2697 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2698 if test -z "$ac_err"; then
2699   :
2700 else
2701   echo "$ac_err" >&5
2702   echo "configure: failed program was:" >&5
2703   cat conftest.$ac_ext >&5
2704   rm -rf conftest*
2705   CPP=/lib/cpp
2706 fi
2707 rm -f conftest*
2708 fi
2709 rm -f conftest*
2710 fi
2711 rm -f conftest*
2712   ac_cv_prog_CPP="$CPP"
2713 fi
2714   CPP="$ac_cv_prog_CPP"
2715 else
2716   ac_cv_prog_CPP="$CPP"
2717 fi
2718 echo "$ac_t""$CPP" 1>&6
2719
2720
2721   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2722 echo "configure:2723: checking for cstdio to use" >&5
2723   # Check whether --enable-cstdio or --disable-cstdio was given.
2724 if test "${enable_cstdio+set}" = set; then
2725   enableval="$enable_cstdio"
2726   if test x$enable_cstdio = xno; then
2727      enable_cstdio=stdio
2728   fi
2729 else
2730   enable_cstdio=stdio
2731 fi
2732
2733
2734   enable_cstdio_flag=$enable_cstdio
2735
2736     case x${enable_cstdio_flag} in
2737     xlibio)
2738       CSTDIO_H=config/c_io_libio.h
2739       BASIC_FILE_H=config/basic_file_libio.h
2740       BASIC_FILE_CC=config/basic_file_libio.cc
2741       echo "$ac_t""libio" 1>&6
2742
2743       # see if we are on a system with libio native (ie, linux)
2744       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2745 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2746 echo "configure:2747: checking for libio.h" >&5
2747 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2748   echo $ac_n "(cached) $ac_c" 1>&6
2749 else
2750   cat > conftest.$ac_ext <<EOF
2751 #line 2752 "configure"
2752 #include "confdefs.h"
2753 #include <libio.h>
2754 EOF
2755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2756 { (eval echo configure:2757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2758 if test -z "$ac_err"; then
2759   rm -rf conftest*
2760   eval "ac_cv_header_$ac_safe=yes"
2761 else
2762   echo "$ac_err" >&5
2763   echo "configure: failed program was:" >&5
2764   cat conftest.$ac_ext >&5
2765   rm -rf conftest*
2766   eval "ac_cv_header_$ac_safe=no"
2767 fi
2768 rm -f conftest*
2769 fi
2770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2771   echo "$ac_t""yes" 1>&6
2772   has_libio=yes
2773 else
2774   echo "$ac_t""no" 1>&6
2775 has_libio=no
2776 fi
2777
2778
2779       # Need to check and see what version of glibc is being used. If
2780       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2781       # compile most of libio for linux systems.
2782       if test x$has_libio = x"yes"; then
2783         case "$target" in
2784           *-*-linux*)
2785               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2786 echo "configure:2787: checking for glibc version >= 2.2" >&5
2787               cat > conftest.$ac_ext <<EOF
2788 #line 2789 "configure"
2789 #include "confdefs.h"
2790
2791             #include <features.h>
2792               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2793                     ok
2794               #endif
2795               
2796 EOF
2797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2798   egrep "ok" >/dev/null 2>&1; then
2799   rm -rf conftest*
2800   glibc_satisfactory=yes
2801 else
2802   rm -rf conftest*
2803   glibc_satisfactory=no
2804 fi
2805 rm -f conftest*
2806
2807               echo "$ac_t""$glibc_satisfactory" 1>&6
2808             ;;
2809         esac
2810
2811         # XXX at the moment, admit defeat and force the recompilation
2812         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2813         glibc_satisfactory=no        
2814
2815         if test x$glibc_satisfactory = x"yes"; then
2816            need_libio=no
2817            need_wlibio=no        
2818         else
2819            need_libio=yes
2820            # bkoz XXX need to add checks to enable this
2821            # pme XXX here's a first pass at such a check
2822            if test x$enable_c_mbchar != xno; then
2823               need_wlibio=yes
2824            else
2825               need_wlibio=no
2826            fi
2827         fi
2828
2829       else
2830          # Using libio, but <libio.h> doesn't exist on the target system. . .
2831          need_libio=yes
2832          # bkoz XXX need to add checks to enable this
2833          # pme XXX here's a first pass at such a check
2834          if test x$enable_c_mbchar != xno; then
2835              need_wlibio=yes
2836          else
2837              need_wlibio=no
2838          fi
2839       fi
2840       ;;
2841     xstdio | x | xno | xnone | xyes)
2842       # default
2843       CSTDIO_H=config/c_io_stdio.h
2844       BASIC_FILE_H=config/basic_file_stdio.h
2845       BASIC_FILE_CC=config/basic_file_stdio.cc
2846       echo "$ac_t""stdio" 1>&6
2847
2848       # We're not using stdio.
2849       need_libio=no
2850       need_wlibio=no
2851       ;;
2852     *)
2853       echo "$enable_cstdio is an unknown io package" 1>&2
2854       exit 1
2855       ;;
2856   esac
2857   
2858   
2859   
2860
2861   # 2000-08-04 bkoz hack
2862   CCODECVT_C=config/c_io_libio_codecvt.c
2863   
2864   # 2000-08-04 bkoz hack
2865
2866   
2867
2868 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2869   GLIBCPP_BUILD_LIBIO_TRUE=
2870   GLIBCPP_BUILD_LIBIO_FALSE='#'
2871 else
2872   GLIBCPP_BUILD_LIBIO_TRUE='#'
2873   GLIBCPP_BUILD_LIBIO_FALSE=
2874 fi
2875   
2876
2877 if test "$need_libio" = yes; then
2878   GLIBCPP_NEED_LIBIO_TRUE=
2879   GLIBCPP_NEED_LIBIO_FALSE='#'
2880 else
2881   GLIBCPP_NEED_LIBIO_TRUE='#'
2882   GLIBCPP_NEED_LIBIO_FALSE=
2883 fi
2884   
2885
2886 if test "$need_wlibio" = yes; then
2887   GLIBCPP_NEED_WLIBIO_TRUE=
2888   GLIBCPP_NEED_WLIBIO_FALSE='#'
2889 else
2890   GLIBCPP_NEED_WLIBIO_TRUE='#'
2891   GLIBCPP_NEED_WLIBIO_FALSE=
2892 fi
2893   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2894     libio_la=../libio/libio.la
2895   else
2896     libio_la=
2897   fi
2898   
2899
2900
2901   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2902 echo "configure:2903: checking for clocale to use" >&5
2903   # Check whether --enable-clocale or --disable-clocale was given.
2904 if test "${enable_clocale+set}" = set; then
2905   enableval="$enable_clocale"
2906   if test x$enable_clocale = xno; then
2907      enable_clocale=generic
2908   fi
2909 else
2910   enable_clocale=generic
2911 fi
2912
2913
2914   enable_clocale_flag=$enable_clocale
2915
2916     case x${enable_clocale_flag} in
2917     xgnu)
2918       CLOCALE_H=config/c_locale_gnu.h
2919       CLOCALE_CC=config/c_locale_gnu.cc
2920       echo "$ac_t""gnu" 1>&6
2921       ;;
2922     xgeneric)
2923       CLOCALE_H=config/c_locale_generic.h
2924       CLOCALE_CC=config/c_locale_generic.cc
2925       echo "$ac_t""generic" 1>&6
2926       ;;
2927     *)
2928       echo "$enable_clocale is an unknown locale package" 1>&2
2929       exit 1
2930       ;;
2931   esac
2932
2933   
2934   
2935
2936 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
2937 if test "${enable_c_mbchar+set}" = set; then
2938   enableval="$enable_c_mbchar"
2939   case "$enableval" in
2940  yes) enable_c_mbchar=yes ;;
2941  no)  enable_c_mbchar=no ;;
2942  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
2943  esac
2944 else
2945   enable_c_mbchar=yes
2946 fi
2947
2948   
2949   # Check whether --enable-c99 or --disable-c99 was given.
2950 if test "${enable_c99+set}" = set; then
2951   enableval="$enable_c99"
2952     case "$enableval" in
2953    yes) enable_c99=yes ;;
2954    no)  enable_c99=no ;;
2955    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
2956    esac
2957 else
2958   enable_c99=yes
2959 fi
2960  
2961   
2962   ac_ext=C
2963 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2964 ac_cpp='$CXXCPP $CPPFLAGS'
2965 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2966 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2967 cross_compiling=$ac_cv_prog_cxx_cross
2968
2969
2970   # Check for the existence of <math.h> functions used if C99 is enabled.
2971   cat > conftest.$ac_ext <<EOF
2972 #line 2973 "configure"
2973 #include "confdefs.h"
2974 #include <math.h>
2975 int main() {
2976 fpclassify(0.0);
2977 ; return 0; }
2978 EOF
2979 if { (eval echo configure:2980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2980   :
2981 else
2982   echo "configure: failed program was:" >&5
2983   cat conftest.$ac_ext >&5
2984   rm -rf conftest*
2985   ac_c99_math=no
2986 fi
2987 rm -f conftest*
2988   cat > conftest.$ac_ext <<EOF
2989 #line 2990 "configure"
2990 #include "confdefs.h"
2991 #include <math.h>
2992 int main() {
2993 isfinite(0.0);
2994 ; return 0; }
2995 EOF
2996 if { (eval echo configure:2997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2997   :
2998 else
2999   echo "configure: failed program was:" >&5
3000   cat conftest.$ac_ext >&5
3001   rm -rf conftest*
3002   ac_c99_math=no
3003 fi
3004 rm -f conftest*
3005   cat > conftest.$ac_ext <<EOF
3006 #line 3007 "configure"
3007 #include "confdefs.h"
3008 #include <math.h>
3009 int main() {
3010 isinf(0.0);
3011 ; return 0; }
3012 EOF
3013 if { (eval echo configure:3014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3014   :
3015 else
3016   echo "configure: failed program was:" >&5
3017   cat conftest.$ac_ext >&5
3018   rm -rf conftest*
3019   ac_c99_math=no
3020 fi
3021 rm -f conftest*
3022   cat > conftest.$ac_ext <<EOF
3023 #line 3024 "configure"
3024 #include "confdefs.h"
3025 #include <math.h>
3026 int main() {
3027 isnan(0.0);
3028 ; return 0; }
3029 EOF
3030 if { (eval echo configure:3031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3031   :
3032 else
3033   echo "configure: failed program was:" >&5
3034   cat conftest.$ac_ext >&5
3035   rm -rf conftest*
3036   ac_c99_math=no
3037 fi
3038 rm -f conftest*
3039   cat > conftest.$ac_ext <<EOF
3040 #line 3041 "configure"
3041 #include "confdefs.h"
3042 #include <math.h>
3043 int main() {
3044 isnormal(0.0);
3045 ; return 0; }
3046 EOF
3047 if { (eval echo configure:3048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3048   :
3049 else
3050   echo "configure: failed program was:" >&5
3051   cat conftest.$ac_ext >&5
3052   rm -rf conftest*
3053   ac_c99_math=no
3054 fi
3055 rm -f conftest*
3056   cat > conftest.$ac_ext <<EOF
3057 #line 3058 "configure"
3058 #include "confdefs.h"
3059 #include <math.h>
3060 int main() {
3061 signbit(0.0);
3062 ; return 0; }
3063 EOF
3064 if { (eval echo configure:3065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3065   :
3066 else
3067   echo "configure: failed program was:" >&5
3068   cat conftest.$ac_ext >&5
3069   rm -rf conftest*
3070   ac_c99_math=no
3071 fi
3072 rm -f conftest*
3073   cat > conftest.$ac_ext <<EOF
3074 #line 3075 "configure"
3075 #include "confdefs.h"
3076 #include <math.h>
3077 int main() {
3078 isgreater(0.0,0.0);
3079 ; return 0; }
3080 EOF
3081 if { (eval echo configure:3082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3082   :
3083 else
3084   echo "configure: failed program was:" >&5
3085   cat conftest.$ac_ext >&5
3086   rm -rf conftest*
3087   ac_c99_math=no
3088 fi
3089 rm -f conftest*
3090   cat > conftest.$ac_ext <<EOF
3091 #line 3092 "configure"
3092 #include "confdefs.h"
3093 #include <math.h>
3094 int main() {
3095 isgreaterequal(0.0,0.0);
3096 ; return 0; }
3097 EOF
3098 if { (eval echo configure:3099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3099   :
3100 else
3101   echo "configure: failed program was:" >&5
3102   cat conftest.$ac_ext >&5
3103   rm -rf conftest*
3104   ac_c99_math=no
3105 fi
3106 rm -f conftest*
3107   cat > conftest.$ac_ext <<EOF
3108 #line 3109 "configure"
3109 #include "confdefs.h"
3110 #include <math.h>
3111 int main() {
3112 isless(0.0,0.0);
3113 ; return 0; }
3114 EOF
3115 if { (eval echo configure:3116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3116   :
3117 else
3118   echo "configure: failed program was:" >&5
3119   cat conftest.$ac_ext >&5
3120   rm -rf conftest*
3121   ac_c99_math=no
3122 fi
3123 rm -f conftest*
3124   cat > conftest.$ac_ext <<EOF
3125 #line 3126 "configure"
3126 #include "confdefs.h"
3127 #include <math.h>
3128 int main() {
3129 islessequal(0.0,0.0);
3130 ; return 0; }
3131 EOF
3132 if { (eval echo configure:3133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3133   :
3134 else
3135   echo "configure: failed program was:" >&5
3136   cat conftest.$ac_ext >&5
3137   rm -rf conftest*
3138   ac_c99_math=no
3139 fi
3140 rm -f conftest*
3141   cat > conftest.$ac_ext <<EOF
3142 #line 3143 "configure"
3143 #include "confdefs.h"
3144 #include <math.h>
3145 int main() {
3146 islessgreater(0.0,0.0);
3147 ; return 0; }
3148 EOF
3149 if { (eval echo configure:3150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3150   :
3151 else
3152   echo "configure: failed program was:" >&5
3153   cat conftest.$ac_ext >&5
3154   rm -rf conftest*
3155   ac_c99_math=no
3156 fi
3157 rm -f conftest*
3158   cat > conftest.$ac_ext <<EOF
3159 #line 3160 "configure"
3160 #include "confdefs.h"
3161 #include <math.h>
3162 int main() {
3163 isunordered(0.0,0.0);
3164 ; return 0; }
3165 EOF
3166 if { (eval echo configure:3167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3167   :
3168 else
3169   echo "configure: failed program was:" >&5
3170   cat conftest.$ac_ext >&5
3171   rm -rf conftest*
3172   ac_c99_math=no
3173 fi
3174 rm -f conftest*
3175
3176   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3177   echo $ac_n "checking for strtoll""... $ac_c" 1>&6
3178 echo "configure:3179: checking for strtoll" >&5
3179 if eval "test \"`echo '$''{'ac_cv_func_strtoll'+set}'`\" = set"; then
3180   echo $ac_n "(cached) $ac_c" 1>&6
3181 else
3182   cat > conftest.$ac_ext <<EOF
3183 #line 3184 "configure"
3184 #include "confdefs.h"
3185 /* System header to define __stub macros and hopefully few prototypes,
3186     which can conflict with char strtoll(); below.  */
3187 #include <assert.h>
3188 /* Override any gcc2 internal prototype to avoid an error.  */
3189 #ifdef __cplusplus
3190 extern "C"
3191 #endif
3192 /* We use char because int might match the return type of a gcc2
3193     builtin and then its argument prototype would still apply.  */
3194 char strtoll();
3195
3196 int main() {
3197
3198 /* The GNU C library defines this for functions which it implements
3199     to always fail with ENOSYS.  Some functions are actually named
3200     something starting with __ and the normal name is an alias.  */
3201 #if defined (__stub_strtoll) || defined (__stub___strtoll)
3202 choke me
3203 #else
3204 strtoll();
3205 #endif
3206
3207 ; return 0; }
3208 EOF
3209 if { (eval echo configure:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3210   rm -rf conftest*
3211   eval "ac_cv_func_strtoll=yes"
3212 else
3213   echo "configure: failed program was:" >&5
3214   cat conftest.$ac_ext >&5
3215   rm -rf conftest*
3216   eval "ac_cv_func_strtoll=no"
3217 fi
3218 rm -f conftest*
3219 fi
3220
3221 if eval "test \"`echo '$ac_cv_func_'strtoll`\" = yes"; then
3222   echo "$ac_t""yes" 1>&6
3223   :
3224 else
3225   echo "$ac_t""no" 1>&6
3226 ac_c99_stdlib=no
3227 fi
3228
3229   echo $ac_n "checking for strtoull""... $ac_c" 1>&6
3230 echo "configure:3231: checking for strtoull" >&5
3231 if eval "test \"`echo '$''{'ac_cv_func_strtoull'+set}'`\" = set"; then
3232   echo $ac_n "(cached) $ac_c" 1>&6
3233 else
3234   cat > conftest.$ac_ext <<EOF
3235 #line 3236 "configure"
3236 #include "confdefs.h"
3237 /* System header to define __stub macros and hopefully few prototypes,
3238     which can conflict with char strtoull(); below.  */
3239 #include <assert.h>
3240 /* Override any gcc2 internal prototype to avoid an error.  */
3241 #ifdef __cplusplus
3242 extern "C"
3243 #endif
3244 /* We use char because int might match the return type of a gcc2
3245     builtin and then its argument prototype would still apply.  */
3246 char strtoull();
3247
3248 int main() {
3249
3250 /* The GNU C library defines this for functions which it implements
3251     to always fail with ENOSYS.  Some functions are actually named
3252     something starting with __ and the normal name is an alias.  */
3253 #if defined (__stub_strtoull) || defined (__stub___strtoull)
3254 choke me
3255 #else
3256 strtoull();
3257 #endif
3258
3259 ; return 0; }
3260 EOF
3261 if { (eval echo configure:3262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3262   rm -rf conftest*
3263   eval "ac_cv_func_strtoull=yes"
3264 else
3265   echo "configure: failed program was:" >&5
3266   cat conftest.$ac_ext >&5
3267   rm -rf conftest*
3268   eval "ac_cv_func_strtoull=no"
3269 fi
3270 rm -f conftest*
3271 fi
3272
3273 if eval "test \"`echo '$ac_cv_func_'strtoull`\" = yes"; then
3274   echo "$ac_t""yes" 1>&6
3275   :
3276 else
3277   echo "$ac_t""no" 1>&6
3278 ac_c99_stdlib=no
3279 fi
3280
3281   echo $ac_n "checking for llabs""... $ac_c" 1>&6
3282 echo "configure:3283: checking for llabs" >&5
3283 if eval "test \"`echo '$''{'ac_cv_func_llabs'+set}'`\" = set"; then
3284   echo $ac_n "(cached) $ac_c" 1>&6
3285 else
3286   cat > conftest.$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3289 /* System header to define __stub macros and hopefully few prototypes,
3290     which can conflict with char llabs(); below.  */
3291 #include <assert.h>
3292 /* Override any gcc2 internal prototype to avoid an error.  */
3293 #ifdef __cplusplus
3294 extern "C"
3295 #endif
3296 /* We use char because int might match the return type of a gcc2
3297     builtin and then its argument prototype would still apply.  */
3298 char llabs();
3299
3300 int main() {
3301
3302 /* The GNU C library defines this for functions which it implements
3303     to always fail with ENOSYS.  Some functions are actually named
3304     something starting with __ and the normal name is an alias.  */
3305 #if defined (__stub_llabs) || defined (__stub___llabs)
3306 choke me
3307 #else
3308 llabs();
3309 #endif
3310
3311 ; return 0; }
3312 EOF
3313 if { (eval echo configure:3314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3314   rm -rf conftest*
3315   eval "ac_cv_func_llabs=yes"
3316 else
3317   echo "configure: failed program was:" >&5
3318   cat conftest.$ac_ext >&5
3319   rm -rf conftest*
3320   eval "ac_cv_func_llabs=no"
3321 fi
3322 rm -f conftest*
3323 fi
3324
3325 if eval "test \"`echo '$ac_cv_func_'llabs`\" = yes"; then
3326   echo "$ac_t""yes" 1>&6
3327   :
3328 else
3329   echo "$ac_t""no" 1>&6
3330 ac_c99_stdlib=no
3331 fi
3332
3333   echo $ac_n "checking for lldiv""... $ac_c" 1>&6
3334 echo "configure:3335: checking for lldiv" >&5
3335 if eval "test \"`echo '$''{'ac_cv_func_lldiv'+set}'`\" = set"; then
3336   echo $ac_n "(cached) $ac_c" 1>&6
3337 else
3338   cat > conftest.$ac_ext <<EOF
3339 #line 3340 "configure"
3340 #include "confdefs.h"
3341 /* System header to define __stub macros and hopefully few prototypes,
3342     which can conflict with char lldiv(); below.  */
3343 #include <assert.h>
3344 /* Override any gcc2 internal prototype to avoid an error.  */
3345 #ifdef __cplusplus
3346 extern "C"
3347 #endif
3348 /* We use char because int might match the return type of a gcc2
3349     builtin and then its argument prototype would still apply.  */
3350 char lldiv();
3351
3352 int main() {
3353
3354 /* The GNU C library defines this for functions which it implements
3355     to always fail with ENOSYS.  Some functions are actually named
3356     something starting with __ and the normal name is an alias.  */
3357 #if defined (__stub_lldiv) || defined (__stub___lldiv)
3358 choke me
3359 #else
3360 lldiv();
3361 #endif
3362
3363 ; return 0; }
3364 EOF
3365 if { (eval echo configure:3366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3366   rm -rf conftest*
3367   eval "ac_cv_func_lldiv=yes"
3368 else
3369   echo "configure: failed program was:" >&5
3370   cat conftest.$ac_ext >&5
3371   rm -rf conftest*
3372   eval "ac_cv_func_lldiv=no"
3373 fi
3374 rm -f conftest*
3375 fi
3376
3377 if eval "test \"`echo '$ac_cv_func_'lldiv`\" = yes"; then
3378   echo "$ac_t""yes" 1>&6
3379   :
3380 else
3381   echo "$ac_t""no" 1>&6
3382 ac_c99_stdlib=no
3383 fi
3384
3385   echo $ac_n "checking for atoll""... $ac_c" 1>&6
3386 echo "configure:3387: checking for atoll" >&5
3387 if eval "test \"`echo '$''{'ac_cv_func_atoll'+set}'`\" = set"; then
3388   echo $ac_n "(cached) $ac_c" 1>&6
3389 else
3390   cat > conftest.$ac_ext <<EOF
3391 #line 3392 "configure"
3392 #include "confdefs.h"
3393 /* System header to define __stub macros and hopefully few prototypes,
3394     which can conflict with char atoll(); below.  */
3395 #include <assert.h>
3396 /* Override any gcc2 internal prototype to avoid an error.  */
3397 #ifdef __cplusplus
3398 extern "C"
3399 #endif
3400 /* We use char because int might match the return type of a gcc2
3401     builtin and then its argument prototype would still apply.  */
3402 char atoll();
3403
3404 int main() {
3405
3406 /* The GNU C library defines this for functions which it implements
3407     to always fail with ENOSYS.  Some functions are actually named
3408     something starting with __ and the normal name is an alias.  */
3409 #if defined (__stub_atoll) || defined (__stub___atoll)
3410 choke me
3411 #else
3412 atoll();
3413 #endif
3414
3415 ; return 0; }
3416 EOF
3417 if { (eval echo configure:3418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3418   rm -rf conftest*
3419   eval "ac_cv_func_atoll=yes"
3420 else
3421   echo "configure: failed program was:" >&5
3422   cat conftest.$ac_ext >&5
3423   rm -rf conftest*
3424   eval "ac_cv_func_atoll=no"
3425 fi
3426 rm -f conftest*
3427 fi
3428
3429 if eval "test \"`echo '$ac_cv_func_'atoll`\" = yes"; then
3430   echo "$ac_t""yes" 1>&6
3431   :
3432 else
3433   echo "$ac_t""no" 1>&6
3434 ac_c99_stdlib=no
3435 fi
3436
3437         
3438   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3439 echo "configure:3440: checking for lldiv_t declaration" >&5
3440   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3441   echo $ac_n "(cached) $ac_c" 1>&6
3442 else
3443   
3444   cat > conftest.$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3447 #include <stdlib.h>
3448 int main() {
3449  lldiv_t mydivt;
3450 ; return 0; }
3451 EOF
3452 if { (eval echo configure:3453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3453   rm -rf conftest*
3454   ac_c99_lldiv_t=yes
3455 else
3456   echo "configure: failed program was:" >&5
3457   cat conftest.$ac_ext >&5
3458   rm -rf conftest*
3459   ac_c99_lldiv_t=no
3460 fi
3461 rm -f conftest*
3462   
3463 fi
3464
3465   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3466   if test x"$ac_c99_lldiv_t" = x"no"; then
3467     ac_c99_stdlib=no; 
3468   fi; 
3469
3470   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3471   echo $ac_n "checking for wcstold""... $ac_c" 1>&6
3472 echo "configure:3473: checking for wcstold" >&5
3473 if eval "test \"`echo '$''{'ac_cv_func_wcstold'+set}'`\" = set"; then
3474   echo $ac_n "(cached) $ac_c" 1>&6
3475 else
3476   cat > conftest.$ac_ext <<EOF
3477 #line 3478 "configure"
3478 #include "confdefs.h"
3479 /* System header to define __stub macros and hopefully few prototypes,
3480     which can conflict with char wcstold(); below.  */
3481 #include <assert.h>
3482 /* Override any gcc2 internal prototype to avoid an error.  */
3483 #ifdef __cplusplus
3484 extern "C"
3485 #endif
3486 /* We use char because int might match the return type of a gcc2
3487     builtin and then its argument prototype would still apply.  */
3488 char wcstold();
3489
3490 int main() {
3491
3492 /* The GNU C library defines this for functions which it implements
3493     to always fail with ENOSYS.  Some functions are actually named
3494     something starting with __ and the normal name is an alias.  */
3495 #if defined (__stub_wcstold) || defined (__stub___wcstold)
3496 choke me
3497 #else
3498 wcstold();
3499 #endif
3500
3501 ; return 0; }
3502 EOF
3503 if { (eval echo configure:3504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3504   rm -rf conftest*
3505   eval "ac_cv_func_wcstold=yes"
3506 else
3507   echo "configure: failed program was:" >&5
3508   cat conftest.$ac_ext >&5
3509   rm -rf conftest*
3510   eval "ac_cv_func_wcstold=no"
3511 fi
3512 rm -f conftest*
3513 fi
3514
3515 if eval "test \"`echo '$ac_cv_func_'wcstold`\" = yes"; then
3516   echo "$ac_t""yes" 1>&6
3517   :
3518 else
3519   echo "$ac_t""no" 1>&6
3520 ac_c99_wchar=no
3521 fi
3522
3523   echo $ac_n "checking for wcstoll""... $ac_c" 1>&6
3524 echo "configure:3525: checking for wcstoll" >&5
3525 if eval "test \"`echo '$''{'ac_cv_func_wcstoll'+set}'`\" = set"; then
3526   echo $ac_n "(cached) $ac_c" 1>&6
3527 else
3528   cat > conftest.$ac_ext <<EOF
3529 #line 3530 "configure"
3530 #include "confdefs.h"
3531 /* System header to define __stub macros and hopefully few prototypes,
3532     which can conflict with char wcstoll(); below.  */
3533 #include <assert.h>
3534 /* Override any gcc2 internal prototype to avoid an error.  */
3535 #ifdef __cplusplus
3536 extern "C"
3537 #endif
3538 /* We use char because int might match the return type of a gcc2
3539     builtin and then its argument prototype would still apply.  */
3540 char wcstoll();
3541
3542 int main() {
3543
3544 /* The GNU C library defines this for functions which it implements
3545     to always fail with ENOSYS.  Some functions are actually named
3546     something starting with __ and the normal name is an alias.  */
3547 #if defined (__stub_wcstoll) || defined (__stub___wcstoll)
3548 choke me
3549 #else
3550 wcstoll();
3551 #endif
3552
3553 ; return 0; }
3554 EOF
3555 if { (eval echo configure:3556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3556   rm -rf conftest*
3557   eval "ac_cv_func_wcstoll=yes"
3558 else
3559   echo "configure: failed program was:" >&5
3560   cat conftest.$ac_ext >&5
3561   rm -rf conftest*
3562   eval "ac_cv_func_wcstoll=no"
3563 fi
3564 rm -f conftest*
3565 fi
3566
3567 if eval "test \"`echo '$ac_cv_func_'wcstoll`\" = yes"; then
3568   echo "$ac_t""yes" 1>&6
3569   :
3570 else
3571   echo "$ac_t""no" 1>&6
3572 ac_c99_wchar=no
3573 fi
3574
3575   echo $ac_n "checking for wcstoull""... $ac_c" 1>&6
3576 echo "configure:3577: checking for wcstoull" >&5
3577 if eval "test \"`echo '$''{'ac_cv_func_wcstoull'+set}'`\" = set"; then
3578   echo $ac_n "(cached) $ac_c" 1>&6
3579 else
3580   cat > conftest.$ac_ext <<EOF
3581 #line 3582 "configure"
3582 #include "confdefs.h"
3583 /* System header to define __stub macros and hopefully few prototypes,
3584     which can conflict with char wcstoull(); below.  */
3585 #include <assert.h>
3586 /* Override any gcc2 internal prototype to avoid an error.  */
3587 #ifdef __cplusplus
3588 extern "C"
3589 #endif
3590 /* We use char because int might match the return type of a gcc2
3591     builtin and then its argument prototype would still apply.  */
3592 char wcstoull();
3593
3594 int main() {
3595
3596 /* The GNU C library defines this for functions which it implements
3597     to always fail with ENOSYS.  Some functions are actually named
3598     something starting with __ and the normal name is an alias.  */
3599 #if defined (__stub_wcstoull) || defined (__stub___wcstoull)
3600 choke me
3601 #else
3602 wcstoull();
3603 #endif
3604
3605 ; return 0; }
3606 EOF
3607 if { (eval echo configure:3608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3608   rm -rf conftest*
3609   eval "ac_cv_func_wcstoull=yes"
3610 else
3611   echo "configure: failed program was:" >&5
3612   cat conftest.$ac_ext >&5
3613   rm -rf conftest*
3614   eval "ac_cv_func_wcstoull=no"
3615 fi
3616 rm -f conftest*
3617 fi
3618
3619 if eval "test \"`echo '$ac_cv_func_'wcstoull`\" = yes"; then
3620   echo "$ac_t""yes" 1>&6
3621   :
3622 else
3623   echo "$ac_t""no" 1>&6
3624 ac_c99_wchar=no
3625 fi
3626
3627
3628   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3629 echo "configure:3630: checking for enabled ISO C99 support" >&5
3630   if test x"$ac_c99_math" = x"no" || test x"$ac_c99_wchar" = x"no" \
3631         || test x"$ac_c99_stdlib" = x"no"; then 
3632     enable_c99=no; 
3633   fi; 
3634   echo "$ac_t""$enable_c99" 1>&6
3635
3636   # Option parsed, now set things appropriately
3637   if test x"$enable_c99" = x"yes"; then
3638     cat >> confdefs.h <<\EOF
3639 #define _GLIBCPP_USE_C99 1
3640 EOF
3641
3642   fi
3643
3644   ac_ext=c
3645 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3648 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3649 cross_compiling=$ac_cv_prog_cc_cross
3650
3651
3652   
3653   # Check whether --enable-long-long or --disable-long-long was given.
3654 if test "${enable_long_long+set}" = set; then
3655   enableval="$enable_long_long"
3656     case "$enableval" in
3657    yes) enable_long_long=yes ;;
3658    no)  enable_long_long=no ;;
3659    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3660    esac
3661 else
3662   enable_long_long=yes
3663 fi
3664
3665   # iostreams require strtoll, strtoull to compile. If the
3666   # GLIBCPP_ENABLE_C99 tests found these, and if C99 support is enabled,
3667   # go ahead and allow long long to be used.
3668   if test x"$enable_c99" = x"no"; then
3669     enable_long_long=no; 
3670   fi
3671
3672   # Option parsed, now set things appropriately
3673   echo $ac_n "checking for enabled long long support""... $ac_c" 1>&6
3674 echo "configure:3675: checking for enabled long long support" >&5
3675   if test x"$enable_long_long" = xyes; then
3676     cat >> confdefs.h <<\EOF
3677 #define _GLIBCPP_USE_LONG_LONG 1
3678 EOF
3679
3680   fi
3681   echo "$ac_t""$enable_long_long" 1>&6
3682
3683 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3684 echo "configure:3685: checking for c header strategy to use" >&5
3685 # Check whether --enable-cheaders or --disable-cheaders was given.
3686 if test "${enable_cheaders+set}" = set; then
3687   enableval="$enable_cheaders"
3688   
3689   case "$enableval" in
3690    c) 
3691         enable_cheaders=c 
3692         ;;
3693    c_std)  
3694         enable_cheaders=c_std 
3695         ;;
3696    c_shadow)  
3697         enable_cheaders=c_shadow 
3698         ;;
3699    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3700         ;;
3701   esac
3702 else
3703   enable_cheaders=c_std
3704 fi
3705
3706   echo "$ac_t""$enable_cheaders" 1>&6
3707
3708     case "$enable_cheaders" in
3709     c_shadow) 
3710         CSHADOW_FLAGS="-fno-builtin"
3711         C_INCLUDE_DIR='${top_srcdir}/include/c_shadow'
3712         cat >> confdefs.h <<\EOF
3713 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3714 EOF
3715
3716         ;;
3717     c_std)   
3718         CSHADOW_FLAGS=""
3719         C_INCLUDE_DIR='${top_srcdir}/include/c_std'
3720         ;;
3721     c)   
3722         CSHADOW_FLAGS=""
3723         C_INCLUDE_DIR='${top_srcdir}/include/c'
3724         ;;
3725   esac
3726
3727   
3728   
3729   
3730
3731 if test "$enable_cheaders" = c_shadow; then
3732   GLIBCPP_USE_CSHADOW_TRUE=
3733   GLIBCPP_USE_CSHADOW_FALSE='#'
3734 else
3735   GLIBCPP_USE_CSHADOW_TRUE='#'
3736   GLIBCPP_USE_CSHADOW_FALSE=
3737 fi
3738
3739
3740   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3741 echo "configure:3742: checking for thread model used by GCC" >&5
3742   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3743   echo "$ac_t""$target_thread_file" 1>&6
3744
3745     THREADH=
3746   case "$target_thread_file" in
3747     no | none | single)
3748       THREADH=threads-no.h
3749       ;;
3750     posix | pthreads)
3751       THREADH=threads-posix.h
3752       ;;
3753     decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3754       echo "configure: warning: disabling unsupported thread package $target_thread_file" 1>&2
3755       THREADH=threads-no.h
3756       ;;
3757     *)
3758       { echo "configure: error: $target_thread_file: unsupported/unknown thread package" 1>&2; exit 1; }
3759       ;;
3760   esac
3761
3762   
3763   if test $THREADH != threads-no.h; then
3764     cat >> confdefs.h <<\EOF
3765 #define _GLIBCPP_USE_THREADS 1
3766 EOF
3767
3768   fi
3769
3770 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3771 if test "${enable_cxx_flags+set}" = set; then
3772   enableval="$enable_cxx_flags"
3773   case "x$enableval" in
3774  xyes)   
3775         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3776  xno|x)  
3777         enable_cxx_flags='' ;;
3778  *)      
3779         enable_cxx_flags="$enableval" ;;
3780  esac
3781 else
3782   enable_cxx_flags='none'
3783 fi
3784
3785
3786 if test "$enable_cxx_flags" = "none"; then 
3787   enable_cxx_flags=''; 
3788 fi
3789
3790 if test -n "$enable_cxx_flags"; then
3791     for f in $enable_cxx_flags; do
3792         case "$f" in
3793             -fhonor-std)  ;;
3794             -*)  ;;
3795             *)   # and we're trying to pass /what/ exactly?
3796                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3797         esac
3798     done
3799 fi
3800 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3801
3802
3803
3804   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3805 echo "configure:3806: checking for exception model to use" >&5
3806   
3807   ac_ext=C
3808 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3809 ac_cpp='$CXXCPP $CPPFLAGS'
3810 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3811 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3812 cross_compiling=$ac_cv_prog_cxx_cross
3813
3814   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3815 if test "${enable_sjlj_exceptions+set}" = set; then
3816   enableval="$enable_sjlj_exceptions"
3817   :
3818 else
3819                        cat > conftest.$ac_ext << EOF
3820 #line 3821 "configure"
3821 struct S { ~S(); };
3822 void bar();
3823 void foo()
3824 {
3825   S s;
3826   bar();
3827 }
3828 EOF
3829    old_CXXFLAGS="$CXXFLAGS"  
3830    CXXFLAGS=-S
3831    if { (eval echo configure:3832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3832      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3833        enable_sjlj_exceptions=yes
3834      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3835        enable_sjlj_exceptions=no
3836      fi
3837    fi
3838    CXXFLAGS="$old_CXXFLAGS"
3839    rm -f conftest*
3840 fi
3841
3842    if test x$enable_sjlj_exceptions = xyes; then
3843      cat >> confdefs.h <<\EOF
3844 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3845 EOF
3846
3847      ac_exception_model_name=sjlj
3848    elif test x$enable_sjlj_exceptions = xno; then
3849      ac_exception_model_name="call frame"
3850    else
3851      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3852    fi
3853    ac_ext=c
3854 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3855 ac_cpp='$CPP $CPPFLAGS'
3856 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3857 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3858 cross_compiling=$ac_cv_prog_cc_cross
3859
3860    echo "$ac_t""$ac_exception_model_name" 1>&6
3861
3862
3863 if test -n "$with_cross_host"; then
3864
3865   # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
3866   # may not work correctly, because the compiler may not be able to
3867   # link executables.
3868   xcompiling=1
3869   NATIVE=no
3870
3871   # If Canadian cross, then don't pick up tools from the build
3872   # directory.
3873   if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3874     CANADIAN=yes
3875     NULL_TARGET=yes
3876   else
3877     CANADIAN=no
3878     NULL_TARGET=no
3879   fi
3880
3881   case "$target_alias" in
3882     *-linux*)
3883         # Construct linux crosses by hand, eliminating bits that need ld...
3884         # Check for available headers.
3885         for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3886         machine/endian.h machine/param.h sys/machine.h fp.h locale.h \
3887         float.h inttypes.h
3888 do
3889 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3890 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3891 echo "configure:3892: checking for $ac_hdr" >&5
3892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3893   echo $ac_n "(cached) $ac_c" 1>&6
3894 else
3895   cat > conftest.$ac_ext <<EOF
3896 #line 3897 "configure"
3897 #include "confdefs.h"
3898 #include <$ac_hdr>
3899 EOF
3900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3901 { (eval echo configure:3902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3903 if test -z "$ac_err"; then
3904   rm -rf conftest*
3905   eval "ac_cv_header_$ac_safe=yes"
3906 else
3907   echo "$ac_err" >&5
3908   echo "configure: failed program was:" >&5
3909   cat conftest.$ac_ext >&5
3910   rm -rf conftest*
3911   eval "ac_cv_header_$ac_safe=no"
3912 fi
3913 rm -f conftest*
3914 fi
3915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3916   echo "$ac_t""yes" 1>&6
3917     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3918   cat >> confdefs.h <<EOF
3919 #define $ac_tr_hdr 1
3920 EOF
3921  
3922 else
3923   echo "$ac_t""no" 1>&6
3924 fi
3925 done
3926
3927
3928         # GLIBCPP_CHECK_COMPILER_FEATURES
3929         SECTION_FLAGS='-ffunction-sections -fdata-sections'
3930         
3931         
3932   # If we're not using GNU ld, then there's no point in even trying these
3933   # tests.  Check for that first.  We should have already tested for gld
3934   # by now (in libtool), but require it now just to be safe...
3935   SECTION_LDFLAGS=''
3936   OPT_LDFLAGS=''
3937   
3938
3939   # Set --gc-sections.
3940   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3941     # GNU ld it is!  Joy and bunny rabbits!
3942
3943     # All these tests are for C++; save the language and the compiler flags.
3944     # Need to do this so that g++ won't try to link in libstdc++
3945     ac_test_CFLAGS="${CFLAGS+set}"
3946     ac_save_CFLAGS="$CFLAGS"
3947     CFLAGS='-x c++  -Wl,--gc-sections'
3948
3949     # Check for -Wl,--gc-sections
3950     # XXX This test is broken at the moment, as symbols required for
3951     # linking are now in libsupc++ (not built yet.....). In addition, 
3952     # this test has cored on solaris in the past. In addition,
3953     # --gc-sections doesn't really work at the moment (keeps on discarding
3954     # used sections, first .eh_frame and now some of the glibc sections for
3955     # iconv). Bzzzzt. Thanks for playing, maybe next time.
3956     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3957 echo "configure:3958: checking for ld that supports -Wl,--gc-sections" >&5
3958     if test "$cross_compiling" = yes; then
3959   ac_sectionLDflags=yes
3960 else
3961   cat > conftest.$ac_ext <<EOF
3962 #line 3963 "configure"
3963 #include "confdefs.h"
3964
3965      int main(void) 
3966      {
3967        try { throw 1; }
3968        catch (...) { };
3969        return 0;
3970      }
3971     
3972 EOF
3973 if { (eval echo configure:3974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3974 then
3975   ac_sectionLDflags=yes
3976 else
3977   echo "configure: failed program was:" >&5
3978   cat conftest.$ac_ext >&5
3979   rm -fr conftest*
3980   ac_sectionLFflags=no
3981 fi
3982 rm -fr conftest*
3983 fi
3984
3985     if test "$ac_test_CFLAGS" = set; then
3986       CFLAGS="$ac_save_CFLAGS"
3987     else
3988       # this is the suspicious part
3989       CFLAGS=''
3990     fi
3991     if test "$ac_sectionLDflags" = "yes"; then
3992       SECTION_LDFLAGS='-Wl,--gc-sections'
3993     fi
3994     echo "$ac_t""$ac_sectionLDflags" 1>&6
3995   fi
3996
3997   # Set linker optimization flags.
3998   if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
3999     OPT_LDFLAGS='-Wl,-O1'
4000   fi
4001
4002   
4003   
4004
4005         # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4006         # GLIBCPP_CHECK_MATH_SUPPORT
4007         cat >> confdefs.h <<\EOF
4008 #define HAVE_ACOSF 1
4009 EOF
4010
4011         cat >> confdefs.h <<\EOF
4012 #define HAVE_ASINF 1
4013 EOF
4014
4015         cat >> confdefs.h <<\EOF
4016 #define HAVE_ATAN2F 1
4017 EOF
4018
4019         cat >> confdefs.h <<\EOF
4020 #define HAVE_ATANF 1
4021 EOF
4022
4023         cat >> confdefs.h <<\EOF
4024 #define HAVE_CEILF 1
4025 EOF
4026
4027         cat >> confdefs.h <<\EOF
4028 #define HAVE_COPYSIGN 1
4029 EOF
4030
4031         cat >> confdefs.h <<\EOF
4032 #define HAVE_COPYSIGNF 1
4033 EOF
4034
4035         cat >> confdefs.h <<\EOF
4036 #define HAVE_COSF 1
4037 EOF
4038
4039         cat >> confdefs.h <<\EOF
4040 #define HAVE_COSHF 1
4041 EOF
4042
4043         cat >> confdefs.h <<\EOF
4044 #define HAVE_EXPF 1
4045 EOF
4046
4047         cat >> confdefs.h <<\EOF
4048 #define HAVE_FABSF 1
4049 EOF
4050
4051         cat >> confdefs.h <<\EOF
4052 #define HAVE_FINITE 1
4053 EOF
4054
4055         cat >> confdefs.h <<\EOF
4056 #define HAVE_FINITEF 1
4057 EOF
4058
4059         cat >> confdefs.h <<\EOF
4060 #define HAVE_FLOORF 1
4061 EOF
4062
4063         cat >> confdefs.h <<\EOF
4064 #define HAVE_FMODF 1
4065 EOF
4066
4067         cat >> confdefs.h <<\EOF
4068 #define HAVE_FREXPF 1
4069 EOF
4070
4071         cat >> confdefs.h <<\EOF
4072 #define HAVE_ISINF 1
4073 EOF
4074
4075         cat >> confdefs.h <<\EOF
4076 #define HAVE_ISINFF 1
4077 EOF
4078
4079         cat >> confdefs.h <<\EOF
4080 #define HAVE_ISNAN 1
4081 EOF
4082
4083         cat >> confdefs.h <<\EOF
4084 #define HAVE_ISNANF 1
4085 EOF
4086
4087         cat >> confdefs.h <<\EOF
4088 #define HAVE_LDEXPF 1
4089 EOF
4090
4091         cat >> confdefs.h <<\EOF
4092 #define HAVE_LOG10F 1
4093 EOF
4094
4095         cat >> confdefs.h <<\EOF
4096 #define HAVE_LOGF 1
4097 EOF
4098
4099         cat >> confdefs.h <<\EOF
4100 #define HAVE_MODFF 1
4101 EOF
4102
4103         cat >> confdefs.h <<\EOF
4104 #define HAVE_POWF 1
4105 EOF
4106
4107         cat >> confdefs.h <<\EOF
4108 #define HAVE_SINCOS 1
4109 EOF
4110
4111         cat >> confdefs.h <<\EOF
4112 #define HAVE_SINCOSF 1
4113 EOF
4114
4115         cat >> confdefs.h <<\EOF
4116 #define HAVE_SINF 1
4117 EOF
4118
4119         cat >> confdefs.h <<\EOF
4120 #define HAVE_SINHF 1
4121 EOF
4122
4123         cat >> confdefs.h <<\EOF
4124 #define HAVE_SQRTF 1
4125 EOF
4126
4127         cat >> confdefs.h <<\EOF
4128 #define HAVE_TANF 1
4129 EOF
4130
4131         cat >> confdefs.h <<\EOF
4132 #define HAVE_TANHF 1
4133 EOF
4134
4135
4136         # At some point, we should differentiate between architectures
4137         # like x86, which have long double versions, and alpha/powerpc/etc.,
4138         # which don't. For the time being, punt.
4139         if test x"long_double_math_on_this_cpu" = x"yes"; then
4140           cat >> confdefs.h <<\EOF
4141 #define HAVE_ACOSL 1
4142 EOF
4143
4144           cat >> confdefs.h <<\EOF
4145 #define HAVE_ASINL 1
4146 EOF
4147
4148           cat >> confdefs.h <<\EOF
4149 #define HAVE_ATAN2L 1
4150 EOF
4151
4152           cat >> confdefs.h <<\EOF
4153 #define HAVE_ATANL 1
4154 EOF
4155
4156           cat >> confdefs.h <<\EOF
4157 #define HAVE_CEILL 1
4158 EOF
4159
4160           cat >> confdefs.h <<\EOF
4161 #define HAVE_COPYSIGNL 1
4162 EOF
4163
4164           cat >> confdefs.h <<\EOF
4165 #define HAVE_COSL 1
4166 EOF
4167
4168           cat >> confdefs.h <<\EOF
4169 #define HAVE_COSHL 1
4170 EOF
4171
4172           cat >> confdefs.h <<\EOF
4173 #define HAVE_EXPL 1
4174 EOF
4175
4176           cat >> confdefs.h <<\EOF
4177 #define HAVE_FABSL 1
4178 EOF
4179
4180           cat >> confdefs.h <<\EOF
4181 #define HAVE_FINITEL 1
4182 EOF
4183
4184           cat >> confdefs.h <<\EOF
4185 #define HAVE_FLOORL 1
4186 EOF
4187
4188           cat >> confdefs.h <<\EOF
4189 #define HAVE_FMODL 1
4190 EOF
4191
4192           cat >> confdefs.h <<\EOF
4193 #define HAVE_FREXPL 1
4194 EOF
4195
4196           cat >> confdefs.h <<\EOF
4197 #define HAVE_ISINFL 1
4198 EOF
4199
4200           cat >> confdefs.h <<\EOF
4201 #define HAVE_ISNANL 1
4202 EOF
4203
4204           cat >> confdefs.h <<\EOF
4205 #define HAVE_LDEXPL 1
4206 EOF
4207
4208           cat >> confdefs.h <<\EOF
4209 #define HAVE_LOG10L 1
4210 EOF
4211
4212           cat >> confdefs.h <<\EOF
4213 #define HAVE_LOGL 1
4214 EOF
4215
4216           cat >> confdefs.h <<\EOF
4217 #define HAVE_MODFL 1
4218 EOF
4219
4220           cat >> confdefs.h <<\EOF
4221 #define HAVE_POWL 1
4222 EOF
4223
4224           cat >> confdefs.h <<\EOF
4225 #define HAVE_SINCOSL 1
4226 EOF
4227
4228           cat >> confdefs.h <<\EOF
4229 #define HAVE_SINL 1
4230 EOF
4231
4232           cat >> confdefs.h <<\EOF
4233 #define HAVE_SINHL 1
4234 EOF
4235
4236           cat >> confdefs.h <<\EOF
4237 #define HAVE_SQRTL 1
4238 EOF
4239
4240           cat >> confdefs.h <<\EOF
4241 #define HAVE_TANL 1
4242 EOF
4243
4244           cat >> confdefs.h <<\EOF
4245 #define HAVE_TANHL 1
4246 EOF
4247
4248         fi
4249         
4250     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4251 echo "configure:4252: checking for main in -lm" >&5
4252 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4253 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4254   echo $ac_n "(cached) $ac_c" 1>&6
4255 else
4256   ac_save_LIBS="$LIBS"
4257 LIBS="-lm  $LIBS"
4258 cat > conftest.$ac_ext <<EOF
4259 #line 4260 "configure"
4260 #include "confdefs.h"
4261
4262 int main() {
4263 main()
4264 ; return 0; }
4265 EOF
4266 if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4267   rm -rf conftest*
4268   eval "ac_cv_lib_$ac_lib_var=yes"
4269 else
4270   echo "configure: failed program was:" >&5
4271   cat conftest.$ac_ext >&5
4272   rm -rf conftest*
4273   eval "ac_cv_lib_$ac_lib_var=no"
4274 fi
4275 rm -f conftest*
4276 LIBS="$ac_save_LIBS"
4277
4278 fi
4279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4280   echo "$ac_t""yes" 1>&6
4281     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4282     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4283   cat >> confdefs.h <<EOF
4284 #define $ac_tr_lib 1
4285 EOF
4286
4287   LIBS="-lm $LIBS"
4288
4289 else
4290   echo "$ac_t""no" 1>&6
4291 fi
4292
4293   for ac_func in nan hypot hypotf atan2f expf copysignf
4294 do
4295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4296 echo "configure:4297: checking for $ac_func" >&5
4297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4298   echo $ac_n "(cached) $ac_c" 1>&6
4299 else
4300   cat > conftest.$ac_ext <<EOF
4301 #line 4302 "configure"
4302 #include "confdefs.h"
4303 /* System header to define __stub macros and hopefully few prototypes,
4304     which can conflict with char $ac_func(); below.  */
4305 #include <assert.h>
4306 /* Override any gcc2 internal prototype to avoid an error.  */
4307 /* We use char because int might match the return type of a gcc2
4308     builtin and then its argument prototype would still apply.  */
4309 char $ac_func();
4310
4311 int main() {
4312
4313 /* The GNU C library defines this for functions which it implements
4314     to always fail with ENOSYS.  Some functions are actually named
4315     something starting with __ and the normal name is an alias.  */
4316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4317 choke me
4318 #else
4319 $ac_func();
4320 #endif
4321
4322 ; return 0; }
4323 EOF
4324 if { (eval echo configure:4325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4325   rm -rf conftest*
4326   eval "ac_cv_func_$ac_func=yes"
4327 else
4328   echo "configure: failed program was:" >&5
4329   cat conftest.$ac_ext >&5
4330   rm -rf conftest*
4331   eval "ac_cv_func_$ac_func=no"
4332 fi
4333 rm -f conftest*
4334 fi
4335
4336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4337   echo "$ac_t""yes" 1>&6
4338     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4339   cat >> confdefs.h <<EOF
4340 #define $ac_tr_func 1
4341 EOF
4342  
4343 else
4344   echo "$ac_t""no" 1>&6
4345 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4346 fi
4347 done
4348
4349
4350
4351           USE_COMPLEX_LONG_DOUBLE=no
4352   if test x$ac_cv_func_atan2l = x"yes" \
4353      && test x$ac_cv_func_copysignl = x"yes"; then
4354     USE_COMPLEX_LONG_DOUBLE=yes
4355     for ac_func in hypotl signbitl
4356 do
4357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4358 echo "configure:4359: checking for $ac_func" >&5
4359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4360   echo $ac_n "(cached) $ac_c" 1>&6
4361 else
4362   cat > conftest.$ac_ext <<EOF
4363 #line 4364 "configure"
4364 #include "confdefs.h"
4365 /* System header to define __stub macros and hopefully few prototypes,
4366     which can conflict with char $ac_func(); below.  */
4367 #include <assert.h>
4368 /* Override any gcc2 internal prototype to avoid an error.  */
4369 /* We use char because int might match the return type of a gcc2
4370     builtin and then its argument prototype would still apply.  */
4371 char $ac_func();
4372
4373 int main() {
4374
4375 /* The GNU C library defines this for functions which it implements
4376     to always fail with ENOSYS.  Some functions are actually named
4377     something starting with __ and the normal name is an alias.  */
4378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4379 choke me
4380 #else
4381 $ac_func();
4382 #endif
4383
4384 ; return 0; }
4385 EOF
4386 if { (eval echo configure:4387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4387   rm -rf conftest*
4388   eval "ac_cv_func_$ac_func=yes"
4389 else
4390   echo "configure: failed program was:" >&5
4391   cat conftest.$ac_ext >&5
4392   rm -rf conftest*
4393   eval "ac_cv_func_$ac_func=no"
4394 fi
4395 rm -f conftest*
4396 fi
4397
4398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4399   echo "$ac_t""yes" 1>&6
4400     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4401   cat >> confdefs.h <<EOF
4402 #define $ac_tr_func 1
4403 EOF
4404  
4405 else
4406   echo "$ac_t""no" 1>&6
4407 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4408 fi
4409 done
4410
4411
4412   fi
4413
4414   
4415
4416         
4417   
4418
4419   echo $ac_n "checking for GNU C++ __complex__ support""... $ac_c" 1>&6
4420 echo "configure:4421: checking for GNU C++ __complex__ support" >&5
4421   if eval "test \"`echo '$''{'glibcpp_cv_complex'+set}'`\" = set"; then
4422   echo $ac_n "(cached) $ac_c" 1>&6
4423 else
4424   
4425     
4426     ac_ext=C
4427 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4428 ac_cpp='$CXXCPP $CPPFLAGS'
4429 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4430 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4431 cross_compiling=$ac_cv_prog_cxx_cross
4432
4433     cat > conftest.$ac_ext <<EOF
4434 #line 4435 "configure"
4435 #include "confdefs.h"
4436 struct dcomplex { __complex__ double x; }; \
4437                     dcomplex f(const dcomplex& x) { return dcomplex(x); }
4438 int main() {
4439 \
4440                      dcomplex x; f(x); 
4441 ; return 0; }
4442 EOF
4443 if { (eval echo configure:4444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4444   rm -rf conftest*
4445   glibcpp_cv_complex=ok
4446 else
4447   echo "configure: failed program was:" >&5
4448   cat conftest.$ac_ext >&5
4449   rm -rf conftest*
4450   glibcpp_cv_complex=buggy
4451     
4452 fi
4453 rm -f conftest*
4454     ac_ext=c
4455 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4456 ac_cpp='$CPP $CPPFLAGS'
4457 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4458 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4459 cross_compiling=$ac_cv_prog_cc_cross
4460
4461   
4462 fi
4463
4464   echo "$ac_t""$glibcpp_cv_complex" 1>&6
4465   if test $glibcpp_cv_complex = buggy; then
4466     cat >> confdefs.h <<\EOF
4467 #define _GLIBCPP_BUGGY_COMPLEX 1
4468 EOF
4469
4470   fi
4471
4472   echo $ac_n "checking for GNU C++ __complex__ float support""... $ac_c" 1>&6
4473 echo "configure:4474: checking for GNU C++ __complex__ float support" >&5
4474   if eval "test \"`echo '$''{'glibcpp_cv_float_complex'+set}'`\" = set"; then
4475   echo $ac_n "(cached) $ac_c" 1>&6
4476 else
4477   
4478     
4479     ac_ext=C
4480 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4481 ac_cpp='$CXXCPP $CPPFLAGS'
4482 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4483 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4484 cross_compiling=$ac_cv_prog_cxx_cross
4485
4486     rm -f conftest.h
4487     cat > conftest.h <<EOB
4488       //
4489       // Check for buggy __complex__ that causes ICE in most versions of egcs
4490       // and gcc-2.95.x on certain platforms (eg., x86-win32).
4491       //
4492       // See http://gcc.gnu.org/ml/gcc-bugs/1999-07n/msg00845.html for
4493       // more info on the bug itself.
4494       //
4495       struct
4496       float_complex
4497       {
4498        __complex__ float m_value;
4499        float_complex (float = 0.0f, float = 0.0f);
4500        float_complex (__complex__ float val) : m_value (val) {}
4501        float_complex foo (const float_complex &val)
4502          { return float_complex (~val.m_value); }
4503       };
4504 EOB
4505     cat > conftest.$ac_ext <<EOF
4506 #line 4507 "configure"
4507 #include "confdefs.h"
4508 #include "conftest.h"
4509 int main() {
4510
4511 ; return 0; }
4512 EOF
4513 if { (eval echo configure:4514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4514   rm -rf conftest*
4515   glibcpp_cv_float_complex=ok
4516 else
4517   echo "configure: failed program was:" >&5
4518   cat conftest.$ac_ext >&5
4519   rm -rf conftest*
4520   glibcpp_cv_float_complex=buggy
4521     
4522 fi
4523 rm -f conftest*
4524     ac_ext=c
4525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4526 ac_cpp='$CPP $CPPFLAGS'
4527 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4528 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4529 cross_compiling=$ac_cv_prog_cc_cross
4530
4531   
4532 fi
4533
4534   echo "$ac_t""$glibcpp_cv_float_complex" 1>&6
4535   if test $glibcpp_cv_float_complex = buggy; then
4536     cat >> confdefs.h <<\EOF
4537 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
4538 EOF
4539
4540   fi
4541
4542         
4543
4544       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4545 echo "configure:4546: checking for mbstate_t" >&5
4546   cat > conftest.$ac_ext <<EOF
4547 #line 4548 "configure"
4548 #include "confdefs.h"
4549 #include <wchar.h>
4550 int main() {
4551 mbstate_t teststate;
4552 ; return 0; }
4553 EOF
4554 if { (eval echo configure:4555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4555   rm -rf conftest*
4556   have_mbstate_t=yes
4557 else
4558   echo "configure: failed program was:" >&5
4559   cat conftest.$ac_ext >&5
4560   rm -rf conftest*
4561   have_mbstate_t=no
4562 fi
4563 rm -f conftest*
4564   echo "$ac_t""$have_mbstate_t" 1>&6
4565   if test x"$have_mbstate_t" = xyes; then
4566     cat >> confdefs.h <<\EOF
4567 #define HAVE_MBSTATE_T 1
4568 EOF
4569
4570   fi
4571
4572     for ac_hdr in wchar.h
4573 do
4574 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4575 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4576 echo "configure:4577: checking for $ac_hdr" >&5
4577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4578   echo $ac_n "(cached) $ac_c" 1>&6
4579 else
4580   cat > conftest.$ac_ext <<EOF
4581 #line 4582 "configure"
4582 #include "confdefs.h"
4583 #include <$ac_hdr>
4584 EOF
4585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4586 { (eval echo configure:4587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4588 if test -z "$ac_err"; then
4589   rm -rf conftest*
4590   eval "ac_cv_header_$ac_safe=yes"
4591 else
4592   echo "$ac_err" >&5
4593   echo "configure: failed program was:" >&5
4594   cat conftest.$ac_ext >&5
4595   rm -rf conftest*
4596   eval "ac_cv_header_$ac_safe=no"
4597 fi
4598 rm -f conftest*
4599 fi
4600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4601   echo "$ac_t""yes" 1>&6
4602     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4603   cat >> confdefs.h <<EOF
4604 #define $ac_tr_hdr 1
4605 EOF
4606  ac_has_wchar_h=yes
4607 else
4608   echo "$ac_t""no" 1>&6
4609 ac_has_wchar_h=no
4610 fi
4611 done
4612
4613   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4614 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4615 echo "configure:4616: checking for wctype.h" >&5
4616 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4617   echo $ac_n "(cached) $ac_c" 1>&6
4618 else
4619   cat > conftest.$ac_ext <<EOF
4620 #line 4621 "configure"
4621 #include "confdefs.h"
4622 #include <wctype.h>
4623 EOF
4624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4625 { (eval echo configure:4626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4627 if test -z "$ac_err"; then
4628   rm -rf conftest*
4629   eval "ac_cv_header_$ac_safe=yes"
4630 else
4631   echo "$ac_err" >&5
4632   echo "configure: failed program was:" >&5
4633   cat conftest.$ac_ext >&5
4634   rm -rf conftest*
4635   eval "ac_cv_header_$ac_safe=no"
4636 fi
4637 rm -f conftest*
4638 fi
4639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4640   echo "$ac_t""yes" 1>&6
4641   ac_has_wctype_h=yes
4642 else
4643   echo "$ac_t""no" 1>&6
4644 ac_has_wctype_h=no
4645 fi
4646
4647   
4648     if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
4649      && test x"$enable_c_mbchar" != xno; then
4650       
4651             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4652 echo "configure:4653: checking for WCHAR_MIN and WCHAR_MAX" >&5
4653     cat > conftest.$ac_ext <<EOF
4654 #line 4655 "configure"
4655 #include "confdefs.h"
4656 #include <wchar.h>
4657 int main() {
4658 int i = WCHAR_MIN; int j = WCHAR_MAX;
4659 ; return 0; }
4660 EOF
4661 if { (eval echo configure:4662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4662   rm -rf conftest*
4663   has_wchar_minmax=yes
4664 else
4665   echo "configure: failed program was:" >&5
4666   cat conftest.$ac_ext >&5
4667   rm -rf conftest*
4668   has_wchar_minmax=no
4669 fi
4670 rm -f conftest*
4671     echo "$ac_t""$has_wchar_minmax" 1>&6
4672     
4673             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4674 echo "configure:4675: checking for WEOF" >&5
4675     cat > conftest.$ac_ext <<EOF
4676 #line 4677 "configure"
4677 #include "confdefs.h"
4678
4679       #include <wchar.h>
4680       #include <stddef.h>
4681 int main() {
4682 wint_t i = WEOF;
4683 ; return 0; }
4684 EOF
4685 if { (eval echo configure:4686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4686   rm -rf conftest*
4687   has_weof=yes
4688 else
4689   echo "configure: failed program was:" >&5
4690   cat conftest.$ac_ext >&5
4691   rm -rf conftest*
4692   has_weof=no
4693 fi
4694 rm -f conftest*
4695     echo "$ac_t""$has_weof" 1>&6
4696   
4697         for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \
4698     wcsrtombs mbsrtowcs
4699 do
4700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4701 echo "configure:4702: checking for $ac_func" >&5
4702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4703   echo $ac_n "(cached) $ac_c" 1>&6
4704 else
4705   cat > conftest.$ac_ext <<EOF
4706 #line 4707 "configure"
4707 #include "confdefs.h"
4708 /* System header to define __stub macros and hopefully few prototypes,
4709     which can conflict with char $ac_func(); below.  */
4710 #include <assert.h>
4711 /* Override any gcc2 internal prototype to avoid an error.  */
4712 /* We use char because int might match the return type of a gcc2
4713     builtin and then its argument prototype would still apply.  */
4714 char $ac_func();
4715
4716 int main() {
4717
4718 /* The GNU C library defines this for functions which it implements
4719     to always fail with ENOSYS.  Some functions are actually named
4720     something starting with __ and the normal name is an alias.  */
4721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4722 choke me
4723 #else
4724 $ac_func();
4725 #endif
4726
4727 ; return 0; }
4728 EOF
4729 if { (eval echo configure:4730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4730   rm -rf conftest*
4731   eval "ac_cv_func_$ac_func=yes"
4732 else
4733   echo "configure: failed program was:" >&5
4734   cat conftest.$ac_ext >&5
4735   rm -rf conftest*
4736   eval "ac_cv_func_$ac_func=no"
4737 fi
4738 rm -f conftest*
4739 fi
4740
4741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4742   echo "$ac_t""yes" 1>&6
4743     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4744   cat >> confdefs.h <<EOF
4745 #define $ac_tr_func 1
4746 EOF
4747  ac_wfuncs=yes
4748 else
4749   echo "$ac_t""no" 1>&6
4750 ac_wfuncs=no
4751 fi
4752 done
4753
4754   
4755     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4756 echo "configure:4757: checking for ISO C99 wchar_t support" >&5
4757     if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
4758        && test x"$ac_wfuncs" = xyes; then
4759       ac_isoC99_wchar_t=yes
4760     else
4761       ac_isoC99_wchar_t=no
4762     fi
4763     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4764   
4765             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4766 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4767 echo "configure:4768: checking for iconv.h" >&5
4768 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4769   echo $ac_n "(cached) $ac_c" 1>&6
4770 else
4771   cat > conftest.$ac_ext <<EOF
4772 #line 4773 "configure"
4773 #include "confdefs.h"
4774 #include <iconv.h>
4775 EOF
4776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4777 { (eval echo configure:4778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4779 if test -z "$ac_err"; then
4780   rm -rf conftest*
4781   eval "ac_cv_header_$ac_safe=yes"
4782 else
4783   echo "$ac_err" >&5
4784   echo "configure: failed program was:" >&5
4785   cat conftest.$ac_ext >&5
4786   rm -rf conftest*
4787   eval "ac_cv_header_$ac_safe=no"
4788 fi
4789 rm -f conftest*
4790 fi
4791 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4792   echo "$ac_t""yes" 1>&6
4793   ac_has_iconv_h=yes
4794 else
4795   echo "$ac_t""no" 1>&6
4796 ac_has_iconv_h=no
4797 fi
4798
4799     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4800 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4801 echo "configure:4802: checking for langinfo.h" >&5
4802 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4803   echo $ac_n "(cached) $ac_c" 1>&6
4804 else
4805   cat > conftest.$ac_ext <<EOF
4806 #line 4807 "configure"
4807 #include "confdefs.h"
4808 #include <langinfo.h>
4809 EOF
4810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4811 { (eval echo configure:4812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4812 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4813 if test -z "$ac_err"; then
4814   rm -rf conftest*
4815   eval "ac_cv_header_$ac_safe=yes"
4816 else
4817   echo "$ac_err" >&5
4818   echo "configure: failed program was:" >&5
4819   cat conftest.$ac_ext >&5
4820   rm -rf conftest*
4821   eval "ac_cv_header_$ac_safe=no"
4822 fi
4823 rm -f conftest*
4824 fi
4825 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4826   echo "$ac_t""yes" 1>&6
4827   ac_has_langinfo_h=yes
4828 else
4829   echo "$ac_t""no" 1>&6
4830 ac_has_langinfo_h=no
4831 fi
4832
4833
4834         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4835 echo "configure:4836: checking for iconv in -liconv" >&5
4836 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4837 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4838   echo $ac_n "(cached) $ac_c" 1>&6
4839 else
4840   ac_save_LIBS="$LIBS"
4841 LIBS="-liconv  $LIBS"
4842 cat > conftest.$ac_ext <<EOF
4843 #line 4844 "configure"
4844 #include "confdefs.h"
4845 /* Override any gcc2 internal prototype to avoid an error.  */
4846 /* We use char because int might match the return type of a gcc2
4847     builtin and then its argument prototype would still apply.  */
4848 char iconv();
4849
4850 int main() {
4851 iconv()
4852 ; return 0; }
4853 EOF
4854 if { (eval echo configure:4855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4855   rm -rf conftest*
4856   eval "ac_cv_lib_$ac_lib_var=yes"
4857 else
4858   echo "configure: failed program was:" >&5
4859   cat conftest.$ac_ext >&5
4860   rm -rf conftest*
4861   eval "ac_cv_lib_$ac_lib_var=no"
4862 fi
4863 rm -f conftest*
4864 LIBS="$ac_save_LIBS"
4865
4866 fi
4867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4868   echo "$ac_t""yes" 1>&6
4869   libiconv="-liconv"
4870 else
4871   echo "$ac_t""no" 1>&6
4872 fi
4873
4874     ac_save_LIBS="$LIBS"
4875     LIBS="$LIBS $libiconv"
4876
4877     for ac_func in iconv_open iconv_close iconv nl_langinfo
4878 do
4879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4880 echo "configure:4881: checking for $ac_func" >&5
4881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4882   echo $ac_n "(cached) $ac_c" 1>&6
4883 else
4884   cat > conftest.$ac_ext <<EOF
4885 #line 4886 "configure"
4886 #include "confdefs.h"
4887 /* System header to define __stub macros and hopefully few prototypes,
4888     which can conflict with char $ac_func(); below.  */
4889 #include <assert.h>
4890 /* Override any gcc2 internal prototype to avoid an error.  */
4891 /* We use char because int might match the return type of a gcc2
4892     builtin and then its argument prototype would still apply.  */
4893 char $ac_func();
4894
4895 int main() {
4896
4897 /* The GNU C library defines this for functions which it implements
4898     to always fail with ENOSYS.  Some functions are actually named
4899     something starting with __ and the normal name is an alias.  */
4900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4901 choke me
4902 #else
4903 $ac_func();
4904 #endif
4905
4906 ; return 0; }
4907 EOF
4908 if { (eval echo configure:4909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4909   rm -rf conftest*
4910   eval "ac_cv_func_$ac_func=yes"
4911 else
4912   echo "configure: failed program was:" >&5
4913   cat conftest.$ac_ext >&5
4914   rm -rf conftest*
4915   eval "ac_cv_func_$ac_func=no"
4916 fi
4917 rm -f conftest*
4918 fi
4919
4920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4921   echo "$ac_t""yes" 1>&6
4922     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4923   cat >> confdefs.h <<EOF
4924 #define $ac_tr_func 1
4925 EOF
4926  \
4927     ac_XPG2funcs=yes
4928 else
4929   echo "$ac_t""no" 1>&6
4930 ac_XPG2funcs=no
4931 fi
4932 done
4933
4934   
4935     LIBS="$ac_save_LIBS"
4936
4937     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4938 echo "configure:4939: checking for XPG2 wchar_t support" >&5
4939     if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
4940        && test x"$ac_XPG2funcs" = xyes; then
4941       ac_XPG2_wchar_t=yes
4942     else
4943       ac_XPG2_wchar_t=no
4944     fi
4945     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4946   
4947             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4948 echo "configure:4949: checking for enabled wchar_t specializations" >&5
4949     if test x"$ac_isoC99_wchar_t" = xyes \
4950        && test x"$ac_XPG2_wchar_t" = xyes; then
4951       cat >> confdefs.h <<\EOF
4952 #define _GLIBCPP_USE_WCHAR_T 1
4953 EOF
4954
4955       echo "$ac_t"""yes"" 1>&6
4956     else
4957       echo "$ac_t"""no"" 1>&6
4958     fi
4959   else
4960         echo "configure: warning: wchar_t support disabled." 1>&2
4961   fi
4962
4963         os_include_dir="config/os/gnu-linux"
4964         # GLIBCPP_CHECK_STDLIB_SUPPORT
4965         cat >> confdefs.h <<\EOF
4966 #define HAVE_STRTOF 1
4967 EOF
4968         
4969         cat >> confdefs.h <<\EOF
4970 #define HAVE_STRTOLD 1
4971 EOF
4972         
4973         # AC_FUNC_MMAP
4974         cat >> confdefs.h <<\EOF
4975 #define HAVE_MMAP 1
4976 EOF
4977
4978         ;;
4979     *)
4980         # We assume newlib.  This lets us hard-code the functions we know
4981         # we'll have.
4982         cat >> confdefs.h <<\EOF
4983 #define HAVE_FINITE 1
4984 EOF
4985
4986         cat >> confdefs.h <<\EOF
4987 #define HAVE_ISNAN 1
4988 EOF
4989
4990         cat >> confdefs.h <<\EOF
4991 #define HAVE_ISNANF 1
4992 EOF
4993
4994         cat >> confdefs.h <<\EOF
4995 #define HAVE_ISINF 1
4996 EOF
4997
4998         cat >> confdefs.h <<\EOF
4999 #define HAVE_ISINFF 1
5000 EOF
5001
5002
5003         os_include_dir="config/os/newlib"
5004
5005         cat >> confdefs.h <<\EOF
5006 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
5007 EOF
5008
5009         cat >> confdefs.h <<\EOF
5010 #define _GLIBCPP_BUGGY_COMPLEX 1
5011 EOF
5012
5013         # need to check for faster f versions of math functions, ie sinf?
5014         ;;
5015   esac
5016 else
5017
5018   # We are being configured natively. We can do more elaborate tests
5019   # that include AC_TRY_COMPILE now, as the linker is assumed to be
5020   # working.
5021   xcompiling=0
5022   NATIVE=yes
5023   CANADIAN=no
5024   NULL_TARGET=no
5025
5026   # Check for available headers.
5027   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
5028   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
5029 do
5030 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5031 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5032 echo "configure:5033: checking for $ac_hdr" >&5
5033 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5034   echo $ac_n "(cached) $ac_c" 1>&6
5035 else
5036   cat > conftest.$ac_ext <<EOF
5037 #line 5038 "configure"
5038 #include "confdefs.h"
5039 #include <$ac_hdr>
5040 EOF
5041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5042 { (eval echo configure:5043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5043 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5044 if test -z "$ac_err"; then
5045   rm -rf conftest*
5046   eval "ac_cv_header_$ac_safe=yes"
5047 else
5048   echo "$ac_err" >&5
5049   echo "configure: failed program was:" >&5
5050   cat conftest.$ac_ext >&5
5051   rm -rf conftest*
5052   eval "ac_cv_header_$ac_safe=no"
5053 fi
5054 rm -f conftest*
5055 fi
5056 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5057   echo "$ac_t""yes" 1>&6
5058     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5059   cat >> confdefs.h <<EOF
5060 #define $ac_tr_hdr 1
5061 EOF
5062  
5063 else
5064   echo "$ac_t""no" 1>&6
5065 fi
5066 done
5067
5068
5069   
5070   # All these tests are for C++; save the language and the compiler flags.
5071   # The CXXFLAGS thing is suspicious, but based on similar bits 
5072   # found in GLIBCPP_CONFIGURE.
5073   
5074   ac_ext=C
5075 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5076 ac_cpp='$CXXCPP $CPPFLAGS'
5077 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5078 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5079 cross_compiling=$ac_cv_prog_cxx_cross
5080
5081   ac_test_CXXFLAGS="${CXXFLAGS+set}"
5082   ac_save_CXXFLAGS="$CXXFLAGS"
5083
5084   # Check for maintainer-mode bits.
5085   if test x"$USE_MAINTAINER_MODE" = xno; then
5086     WERROR=''
5087   else
5088     WERROR='-Werror'
5089   fi
5090
5091   # Check for -ffunction-sections -fdata-sections
5092   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
5093 echo "configure:5094: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
5094   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
5095   cat > conftest.$ac_ext <<EOF
5096 #line 5097 "configure"
5097 #include "confdefs.h"
5098
5099 int main() {
5100 int foo;
5101   
5102 ; return 0; }
5103 EOF
5104 if { (eval echo configure:5105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5105   rm -rf conftest*
5106   ac_fdsections=yes
5107 else
5108   echo "configure: failed program was:" >&5
5109   cat conftest.$ac_ext >&5
5110   rm -rf conftest*
5111   ac_fdsections=no
5112 fi
5113 rm -f conftest*
5114   if test "$ac_test_CXXFLAGS" = set; then
5115     CXXFLAGS="$ac_save_CXXFLAGS"
5116   else
5117     # this is the suspicious part
5118     CXXFLAGS=''
5119   fi
5120   if test x"$ac_fdsections" = x"yes" && test x"$enable_debug" = x"no"; then
5121     SECTION_FLAGS='-ffunction-sections -fdata-sections'
5122   fi
5123   echo "$ac_t""$ac_fdsections" 1>&6
5124
5125   ac_ext=c
5126 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5127 ac_cpp='$CPP $CPPFLAGS'
5128 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5129 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5130 cross_compiling=$ac_cv_prog_cc_cross
5131
5132   
5133   
5134
5135   
5136   # If we're not using GNU ld, then there's no point in even trying these
5137   # tests.  Check for that first.  We should have already tested for gld
5138   # by now (in libtool), but require it now just to be safe...
5139   SECTION_LDFLAGS=''
5140   OPT_LDFLAGS=''
5141   
5142
5143   # Set --gc-sections.
5144   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
5145     # GNU ld it is!  Joy and bunny rabbits!
5146
5147     # All these tests are for C++; save the language and the compiler flags.
5148     # Need to do this so that g++ won't try to link in libstdc++
5149     ac_test_CFLAGS="${CFLAGS+set}"
5150     ac_save_CFLAGS="$CFLAGS"
5151     CFLAGS='-x c++  -Wl,--gc-sections'
5152
5153     # Check for -Wl,--gc-sections
5154     # XXX This test is broken at the moment, as symbols required for
5155     # linking are now in libsupc++ (not built yet.....). In addition, 
5156     # this test has cored on solaris in the past. In addition,
5157     # --gc-sections doesn't really work at the moment (keeps on discarding
5158     # used sections, first .eh_frame and now some of the glibc sections for
5159     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5160     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5161 echo "configure:5162: checking for ld that supports -Wl,--gc-sections" >&5
5162     if test "$cross_compiling" = yes; then
5163   ac_sectionLDflags=yes
5164 else
5165   cat > conftest.$ac_ext <<EOF
5166 #line 5167 "configure"
5167 #include "confdefs.h"
5168
5169      int main(void) 
5170      {
5171        try { throw 1; }
5172        catch (...) { };
5173        return 0;
5174      }
5175     
5176 EOF
5177 if { (eval echo configure:5178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5178 then
5179   ac_sectionLDflags=yes
5180 else
5181   echo "configure: failed program was:" >&5
5182   cat conftest.$ac_ext >&5
5183   rm -fr conftest*
5184   ac_sectionLFflags=no
5185 fi
5186 rm -fr conftest*
5187 fi
5188
5189     if test "$ac_test_CFLAGS" = set; then
5190       CFLAGS="$ac_save_CFLAGS"
5191     else
5192       # this is the suspicious part
5193       CFLAGS=''
5194     fi
5195     if test "$ac_sectionLDflags" = "yes"; then
5196       SECTION_LDFLAGS='-Wl,--gc-sections'
5197     fi
5198     echo "$ac_t""$ac_sectionLDflags" 1>&6
5199   fi
5200
5201   # Set linker optimization flags.
5202   if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5203     OPT_LDFLAGS='-Wl,-O1'
5204   fi
5205
5206   
5207   
5208
5209   
5210       
5211   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
5212 echo "configure:5213: checking for __builtin_abs declaration" >&5
5213   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
5214     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
5215   echo $ac_n "(cached) $ac_c" 1>&6
5216 else
5217   
5218       
5219       ac_ext=C
5220 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5221 ac_cpp='$CXXCPP $CPPFLAGS'
5222 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5223 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5224 cross_compiling=$ac_cv_prog_cxx_cross
5225
5226       cat > conftest.$ac_ext <<EOF
5227 #line 5228 "configure"
5228 #include "confdefs.h"
5229 #include <math.h>
5230 int main() {
5231  __builtin_abs(0);
5232 ; return 0; }
5233 EOF
5234 if { (eval echo configure:5235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5235   rm -rf conftest*
5236   glibcpp_cv_func___builtin_abs_use=yes
5237 else
5238   echo "configure: failed program was:" >&5
5239   cat conftest.$ac_ext >&5
5240   rm -rf conftest*
5241   glibcpp_cv_func___builtin_abs_use=no
5242 fi
5243 rm -f conftest*
5244       ac_ext=c
5245 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5246 ac_cpp='$CPP $CPPFLAGS'
5247 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5248 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5249 cross_compiling=$ac_cv_prog_cc_cross
5250
5251     
5252 fi
5253
5254   fi
5255   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
5256   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
5257     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
5258 echo "configure:5259: checking for __builtin_abs linkage" >&5
5259     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
5260       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
5261   echo $ac_n "(cached) $ac_c" 1>&6
5262 else
5263   
5264         cat > conftest.$ac_ext <<EOF
5265 #line 5266 "configure"
5266 #include "confdefs.h"
5267 #include <math.h>
5268 int main() {
5269  __builtin_abs(0);
5270 ; return 0; }
5271 EOF
5272 if { (eval echo configure:5273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5273   rm -rf conftest*
5274   glibcpp_cv_func___builtin_abs_link=yes
5275 else
5276   echo "configure: failed program was:" >&5
5277   cat conftest.$ac_ext >&5
5278   rm -rf conftest*
5279   glibcpp_cv_func___builtin_abs_link=no
5280 fi
5281 rm -f conftest*
5282       
5283 fi
5284
5285     fi
5286     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
5287     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
5288       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5289       cat >> confdefs.h <<EOF
5290 #define ${ac_tr_func} 1
5291 EOF
5292
5293     fi
5294   fi
5295
5296   
5297   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
5298 echo "configure:5299: checking for __builtin_fabsf declaration" >&5
5299   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
5300     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
5301   echo $ac_n "(cached) $ac_c" 1>&6
5302 else
5303   
5304       
5305       ac_ext=C
5306 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5307 ac_cpp='$CXXCPP $CPPFLAGS'
5308 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5309 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5310 cross_compiling=$ac_cv_prog_cxx_cross
5311
5312       cat > conftest.$ac_ext <<EOF
5313 #line 5314 "configure"
5314 #include "confdefs.h"
5315 #include <math.h>
5316 int main() {
5317  __builtin_fabsf(0);
5318 ; return 0; }
5319 EOF
5320 if { (eval echo configure:5321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5321   rm -rf conftest*
5322   glibcpp_cv_func___builtin_fabsf_use=yes
5323 else
5324   echo "configure: failed program was:" >&5
5325   cat conftest.$ac_ext >&5
5326   rm -rf conftest*
5327   glibcpp_cv_func___builtin_fabsf_use=no
5328 fi
5329 rm -f conftest*
5330       ac_ext=c
5331 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5332 ac_cpp='$CPP $CPPFLAGS'
5333 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5334 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5335 cross_compiling=$ac_cv_prog_cc_cross
5336
5337     
5338 fi
5339
5340   fi
5341   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
5342   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
5343     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
5344 echo "configure:5345: checking for __builtin_fabsf linkage" >&5
5345     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
5346       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
5347   echo $ac_n "(cached) $ac_c" 1>&6
5348 else
5349   
5350         cat > conftest.$ac_ext <<EOF
5351 #line 5352 "configure"
5352 #include "confdefs.h"
5353 #include <math.h>
5354 int main() {
5355  __builtin_fabsf(0);
5356 ; return 0; }
5357 EOF
5358 if { (eval echo configure:5359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5359   rm -rf conftest*
5360   glibcpp_cv_func___builtin_fabsf_link=yes
5361 else
5362   echo "configure: failed program was:" >&5
5363   cat conftest.$ac_ext >&5
5364   rm -rf conftest*
5365   glibcpp_cv_func___builtin_fabsf_link=no
5366 fi
5367 rm -f conftest*
5368       
5369 fi
5370
5371     fi
5372     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
5373     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
5374       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5375       cat >> confdefs.h <<EOF
5376 #define ${ac_tr_func} 1
5377 EOF
5378
5379     fi
5380   fi
5381
5382   
5383   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
5384 echo "configure:5385: checking for __builtin_fabs declaration" >&5
5385   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
5386     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
5387   echo $ac_n "(cached) $ac_c" 1>&6
5388 else
5389   
5390       
5391       ac_ext=C
5392 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5393 ac_cpp='$CXXCPP $CPPFLAGS'
5394 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5395 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5396 cross_compiling=$ac_cv_prog_cxx_cross
5397
5398       cat > conftest.$ac_ext <<EOF
5399 #line 5400 "configure"
5400 #include "confdefs.h"
5401 #include <math.h>
5402 int main() {
5403  __builtin_fabs(0);
5404 ; return 0; }
5405 EOF
5406 if { (eval echo configure:5407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5407   rm -rf conftest*
5408   glibcpp_cv_func___builtin_fabs_use=yes
5409 else
5410   echo "configure: failed program was:" >&5
5411   cat conftest.$ac_ext >&5
5412   rm -rf conftest*
5413   glibcpp_cv_func___builtin_fabs_use=no
5414 fi
5415 rm -f conftest*
5416       ac_ext=c
5417 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5418 ac_cpp='$CPP $CPPFLAGS'
5419 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5420 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5421 cross_compiling=$ac_cv_prog_cc_cross
5422
5423     
5424 fi
5425
5426   fi
5427   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
5428   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
5429     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
5430 echo "configure:5431: checking for __builtin_fabs linkage" >&5
5431     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
5432       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
5433   echo $ac_n "(cached) $ac_c" 1>&6
5434 else
5435   
5436         cat > conftest.$ac_ext <<EOF
5437 #line 5438 "configure"
5438 #include "confdefs.h"
5439 #include <math.h>
5440 int main() {
5441  __builtin_fabs(0);
5442 ; return 0; }
5443 EOF
5444 if { (eval echo configure:5445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5445   rm -rf conftest*
5446   glibcpp_cv_func___builtin_fabs_link=yes
5447 else
5448   echo "configure: failed program was:" >&5
5449   cat conftest.$ac_ext >&5
5450   rm -rf conftest*
5451   glibcpp_cv_func___builtin_fabs_link=no
5452 fi
5453 rm -f conftest*
5454       
5455 fi
5456
5457     fi
5458     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
5459     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
5460       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5461       cat >> confdefs.h <<EOF
5462 #define ${ac_tr_func} 1
5463 EOF
5464
5465     fi
5466   fi
5467
5468   
5469   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
5470 echo "configure:5471: checking for __builtin_fabsl declaration" >&5
5471   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
5472     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
5473   echo $ac_n "(cached) $ac_c" 1>&6
5474 else
5475   
5476       
5477       ac_ext=C
5478 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5479 ac_cpp='$CXXCPP $CPPFLAGS'
5480 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5481 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5482 cross_compiling=$ac_cv_prog_cxx_cross
5483
5484       cat > conftest.$ac_ext <<EOF
5485 #line 5486 "configure"
5486 #include "confdefs.h"
5487 #include <math.h>
5488 int main() {
5489  __builtin_fabsl(0);
5490 ; return 0; }
5491 EOF
5492 if { (eval echo configure:5493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5493   rm -rf conftest*
5494   glibcpp_cv_func___builtin_fabsl_use=yes
5495 else
5496   echo "configure: failed program was:" >&5
5497   cat conftest.$ac_ext >&5
5498   rm -rf conftest*
5499   glibcpp_cv_func___builtin_fabsl_use=no
5500 fi
5501 rm -f conftest*
5502       ac_ext=c
5503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5504 ac_cpp='$CPP $CPPFLAGS'
5505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5506 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5507 cross_compiling=$ac_cv_prog_cc_cross
5508
5509     
5510 fi
5511
5512   fi
5513   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
5514   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
5515     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
5516 echo "configure:5517: checking for __builtin_fabsl linkage" >&5
5517     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
5518       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
5519   echo $ac_n "(cached) $ac_c" 1>&6
5520 else
5521   
5522         cat > conftest.$ac_ext <<EOF
5523 #line 5524 "configure"
5524 #include "confdefs.h"
5525 #include <math.h>
5526 int main() {
5527  __builtin_fabsl(0);
5528 ; return 0; }
5529 EOF
5530 if { (eval echo configure:5531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5531   rm -rf conftest*
5532   glibcpp_cv_func___builtin_fabsl_link=yes
5533 else
5534   echo "configure: failed program was:" >&5
5535   cat conftest.$ac_ext >&5
5536   rm -rf conftest*
5537   glibcpp_cv_func___builtin_fabsl_link=no
5538 fi
5539 rm -f conftest*
5540       
5541 fi
5542
5543     fi
5544     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
5545     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
5546       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5547       cat >> confdefs.h <<EOF
5548 #define ${ac_tr_func} 1
5549 EOF
5550
5551     fi
5552   fi
5553
5554   
5555   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
5556 echo "configure:5557: checking for __builtin_labs declaration" >&5
5557   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
5558     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
5559   echo $ac_n "(cached) $ac_c" 1>&6
5560 else
5561   
5562       
5563       ac_ext=C
5564 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5565 ac_cpp='$CXXCPP $CPPFLAGS'
5566 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5567 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5568 cross_compiling=$ac_cv_prog_cxx_cross
5569
5570       cat > conftest.$ac_ext <<EOF
5571 #line 5572 "configure"
5572 #include "confdefs.h"
5573 #include <math.h>
5574 int main() {
5575  __builtin_labs(0);
5576 ; return 0; }
5577 EOF
5578 if { (eval echo configure:5579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5579   rm -rf conftest*
5580   glibcpp_cv_func___builtin_labs_use=yes
5581 else
5582   echo "configure: failed program was:" >&5
5583   cat conftest.$ac_ext >&5
5584   rm -rf conftest*
5585   glibcpp_cv_func___builtin_labs_use=no
5586 fi
5587 rm -f conftest*
5588       ac_ext=c
5589 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5590 ac_cpp='$CPP $CPPFLAGS'
5591 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5592 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5593 cross_compiling=$ac_cv_prog_cc_cross
5594
5595     
5596 fi
5597
5598   fi
5599   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
5600   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
5601     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
5602 echo "configure:5603: checking for __builtin_labs linkage" >&5
5603     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
5604       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
5605   echo $ac_n "(cached) $ac_c" 1>&6
5606 else
5607   
5608         cat > conftest.$ac_ext <<EOF
5609 #line 5610 "configure"
5610 #include "confdefs.h"
5611 #include <math.h>
5612 int main() {
5613  __builtin_labs(0);
5614 ; return 0; }
5615 EOF
5616 if { (eval echo configure:5617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5617   rm -rf conftest*
5618   glibcpp_cv_func___builtin_labs_link=yes
5619 else
5620   echo "configure: failed program was:" >&5
5621   cat conftest.$ac_ext >&5
5622   rm -rf conftest*
5623   glibcpp_cv_func___builtin_labs_link=no
5624 fi
5625 rm -f conftest*
5626       
5627 fi
5628
5629     fi
5630     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5631     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5632       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5633       cat >> confdefs.h <<EOF
5634 #define ${ac_tr_func} 1
5635 EOF
5636
5637     fi
5638   fi
5639
5640
5641   
5642   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5643 echo "configure:5644: checking for __builtin_sqrtf declaration" >&5
5644   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5645     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
5646   echo $ac_n "(cached) $ac_c" 1>&6
5647 else
5648   
5649       
5650       ac_ext=C
5651 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5652 ac_cpp='$CXXCPP $CPPFLAGS'
5653 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5654 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5655 cross_compiling=$ac_cv_prog_cxx_cross
5656
5657       cat > conftest.$ac_ext <<EOF
5658 #line 5659 "configure"
5659 #include "confdefs.h"
5660 #include <math.h>
5661 int main() {
5662  __builtin_sqrtf(0);
5663 ; return 0; }
5664 EOF
5665 if { (eval echo configure:5666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5666   rm -rf conftest*
5667   glibcpp_cv_func___builtin_sqrtf_use=yes
5668 else
5669   echo "configure: failed program was:" >&5
5670   cat conftest.$ac_ext >&5
5671   rm -rf conftest*
5672   glibcpp_cv_func___builtin_sqrtf_use=no
5673 fi
5674 rm -f conftest*
5675       ac_ext=c
5676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5677 ac_cpp='$CPP $CPPFLAGS'
5678 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5679 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5680 cross_compiling=$ac_cv_prog_cc_cross
5681
5682     
5683 fi
5684
5685   fi
5686   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
5687   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5688     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5689 echo "configure:5690: checking for __builtin_sqrtf linkage" >&5
5690     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5691       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
5692   echo $ac_n "(cached) $ac_c" 1>&6
5693 else
5694   
5695         cat > conftest.$ac_ext <<EOF
5696 #line 5697 "configure"
5697 #include "confdefs.h"
5698 #include <math.h>
5699 int main() {
5700  __builtin_sqrtf(0);
5701 ; return 0; }
5702 EOF
5703 if { (eval echo configure:5704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5704   rm -rf conftest*
5705   glibcpp_cv_func___builtin_sqrtf_link=yes
5706 else
5707   echo "configure: failed program was:" >&5
5708   cat conftest.$ac_ext >&5
5709   rm -rf conftest*
5710   glibcpp_cv_func___builtin_sqrtf_link=no
5711 fi
5712 rm -f conftest*
5713       
5714 fi
5715
5716     fi
5717     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5718     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5719       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5720       cat >> confdefs.h <<EOF
5721 #define ${ac_tr_func} 1
5722 EOF
5723
5724     fi
5725   fi
5726
5727   
5728   echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5729 echo "configure:5730: checking for __builtin_fsqrt declaration" >&5
5730   if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5731     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
5732   echo $ac_n "(cached) $ac_c" 1>&6
5733 else
5734   
5735       
5736       ac_ext=C
5737 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5738 ac_cpp='$CXXCPP $CPPFLAGS'
5739 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5740 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5741 cross_compiling=$ac_cv_prog_cxx_cross
5742
5743       cat > conftest.$ac_ext <<EOF
5744 #line 5745 "configure"
5745 #include "confdefs.h"
5746 #include <math.h>
5747 int main() {
5748  __builtin_fsqrt(0);
5749 ; return 0; }
5750 EOF
5751 if { (eval echo configure:5752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5752   rm -rf conftest*
5753   glibcpp_cv_func___builtin_fsqrt_use=yes
5754 else
5755   echo "configure: failed program was:" >&5
5756   cat conftest.$ac_ext >&5
5757   rm -rf conftest*
5758   glibcpp_cv_func___builtin_fsqrt_use=no
5759 fi
5760 rm -f conftest*
5761       ac_ext=c
5762 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5763 ac_cpp='$CPP $CPPFLAGS'
5764 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5765 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5766 cross_compiling=$ac_cv_prog_cc_cross
5767
5768     
5769 fi
5770
5771   fi
5772   echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
5773   if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5774     echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5775 echo "configure:5776: checking for __builtin_fsqrt linkage" >&5
5776     if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5777       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
5778   echo $ac_n "(cached) $ac_c" 1>&6
5779 else
5780   
5781         cat > conftest.$ac_ext <<EOF
5782 #line 5783 "configure"
5783 #include "confdefs.h"
5784 #include <math.h>
5785 int main() {
5786  __builtin_fsqrt(0);
5787 ; return 0; }
5788 EOF
5789 if { (eval echo configure:5790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5790   rm -rf conftest*
5791   glibcpp_cv_func___builtin_fsqrt_link=yes
5792 else
5793   echo "configure: failed program was:" >&5
5794   cat conftest.$ac_ext >&5
5795   rm -rf conftest*
5796   glibcpp_cv_func___builtin_fsqrt_link=no
5797 fi
5798 rm -f conftest*
5799       
5800 fi
5801
5802     fi
5803     echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5804     if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5805       ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5806       cat >> confdefs.h <<EOF
5807 #define ${ac_tr_func} 1
5808 EOF
5809
5810     fi
5811   fi
5812
5813   
5814   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5815 echo "configure:5816: checking for __builtin_sqrtl declaration" >&5
5816   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5817     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5818   echo $ac_n "(cached) $ac_c" 1>&6
5819 else
5820   
5821       
5822       ac_ext=C
5823 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5824 ac_cpp='$CXXCPP $CPPFLAGS'
5825 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5826 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5827 cross_compiling=$ac_cv_prog_cxx_cross
5828
5829       cat > conftest.$ac_ext <<EOF
5830 #line 5831 "configure"
5831 #include "confdefs.h"
5832 #include <math.h>
5833 int main() {
5834  __builtin_sqrtl(0);
5835 ; return 0; }
5836 EOF
5837 if { (eval echo configure:5838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5838   rm -rf conftest*
5839   glibcpp_cv_func___builtin_sqrtl_use=yes
5840 else
5841   echo "configure: failed program was:" >&5
5842   cat conftest.$ac_ext >&5
5843   rm -rf conftest*
5844   glibcpp_cv_func___builtin_sqrtl_use=no
5845 fi
5846 rm -f conftest*
5847       ac_ext=c
5848 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5849 ac_cpp='$CPP $CPPFLAGS'
5850 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5851 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5852 cross_compiling=$ac_cv_prog_cc_cross
5853
5854     
5855 fi
5856
5857   fi
5858   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
5859   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5860     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5861 echo "configure:5862: checking for __builtin_sqrtl linkage" >&5
5862     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
5863       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
5864   echo $ac_n "(cached) $ac_c" 1>&6
5865 else
5866   
5867         cat > conftest.$ac_ext <<EOF
5868 #line 5869 "configure"
5869 #include "confdefs.h"
5870 #include <math.h>
5871 int main() {
5872  __builtin_sqrtl(0);
5873 ; return 0; }
5874 EOF
5875 if { (eval echo configure:5876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5876   rm -rf conftest*
5877   glibcpp_cv_func___builtin_sqrtl_link=yes
5878 else
5879   echo "configure: failed program was:" >&5
5880   cat conftest.$ac_ext >&5
5881   rm -rf conftest*
5882   glibcpp_cv_func___builtin_sqrtl_link=no
5883 fi
5884 rm -f conftest*
5885       
5886 fi
5887
5888     fi
5889     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
5890     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
5891       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5892       cat >> confdefs.h <<EOF
5893 #define ${ac_tr_func} 1
5894 EOF
5895
5896     fi
5897   fi
5898
5899
5900   
5901   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
5902 echo "configure:5903: checking for __builtin_sinf declaration" >&5
5903   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
5904     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
5905   echo $ac_n "(cached) $ac_c" 1>&6
5906 else
5907   
5908       
5909       ac_ext=C
5910 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5911 ac_cpp='$CXXCPP $CPPFLAGS'
5912 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5913 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5914 cross_compiling=$ac_cv_prog_cxx_cross
5915
5916       cat > conftest.$ac_ext <<EOF
5917 #line 5918 "configure"
5918 #include "confdefs.h"
5919 #include <math.h>
5920 int main() {
5921  __builtin_sinf(0);
5922 ; return 0; }
5923 EOF
5924 if { (eval echo configure:5925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5925   rm -rf conftest*
5926   glibcpp_cv_func___builtin_sinf_use=yes
5927 else
5928   echo "configure: failed program was:" >&5
5929   cat conftest.$ac_ext >&5
5930   rm -rf conftest*
5931   glibcpp_cv_func___builtin_sinf_use=no
5932 fi
5933 rm -f conftest*
5934       ac_ext=c
5935 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5936 ac_cpp='$CPP $CPPFLAGS'
5937 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5938 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5939 cross_compiling=$ac_cv_prog_cc_cross
5940
5941     
5942 fi
5943
5944   fi
5945   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
5946   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
5947     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
5948 echo "configure:5949: checking for __builtin_sinf linkage" >&5
5949     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
5950       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
5951   echo $ac_n "(cached) $ac_c" 1>&6
5952 else
5953   
5954         cat > conftest.$ac_ext <<EOF
5955 #line 5956 "configure"
5956 #include "confdefs.h"
5957 #include <math.h>
5958 int main() {
5959  __builtin_sinf(0);
5960 ; return 0; }
5961 EOF
5962 if { (eval echo configure:5963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5963   rm -rf conftest*
5964   glibcpp_cv_func___builtin_sinf_link=yes
5965 else
5966   echo "configure: failed program was:" >&5
5967   cat conftest.$ac_ext >&5
5968   rm -rf conftest*
5969   glibcpp_cv_func___builtin_sinf_link=no
5970 fi
5971 rm -f conftest*
5972       
5973 fi
5974
5975     fi
5976     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
5977     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
5978       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5979       cat >> confdefs.h <<EOF
5980 #define ${ac_tr_func} 1
5981 EOF
5982
5983     fi
5984   fi
5985
5986   
5987   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
5988 echo "configure:5989: checking for __builtin_sin declaration" >&5
5989   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
5990     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
5991   echo $ac_n "(cached) $ac_c" 1>&6
5992 else
5993   
5994       
5995       ac_ext=C
5996 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5997 ac_cpp='$CXXCPP $CPPFLAGS'
5998 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5999 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6000 cross_compiling=$ac_cv_prog_cxx_cross
6001
6002       cat > conftest.$ac_ext <<EOF
6003 #line 6004 "configure"
6004 #include "confdefs.h"
6005 #include <math.h>
6006 int main() {
6007  __builtin_sin(0);
6008 ; return 0; }
6009 EOF
6010 if { (eval echo configure:6011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6011   rm -rf conftest*
6012   glibcpp_cv_func___builtin_sin_use=yes
6013 else
6014   echo "configure: failed program was:" >&5
6015   cat conftest.$ac_ext >&5
6016   rm -rf conftest*
6017   glibcpp_cv_func___builtin_sin_use=no
6018 fi
6019 rm -f conftest*
6020       ac_ext=c
6021 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6022 ac_cpp='$CPP $CPPFLAGS'
6023 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6024 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6025 cross_compiling=$ac_cv_prog_cc_cross
6026
6027     
6028 fi
6029
6030   fi
6031   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
6032   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
6033     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
6034 echo "configure:6035: checking for __builtin_sin linkage" >&5
6035     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
6036       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
6037   echo $ac_n "(cached) $ac_c" 1>&6
6038 else
6039   
6040         cat > conftest.$ac_ext <<EOF
6041 #line 6042 "configure"
6042 #include "confdefs.h"
6043 #include <math.h>
6044 int main() {
6045  __builtin_sin(0);
6046 ; return 0; }
6047 EOF
6048 if { (eval echo configure:6049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6049   rm -rf conftest*
6050   glibcpp_cv_func___builtin_sin_link=yes
6051 else
6052   echo "configure: failed program was:" >&5
6053   cat conftest.$ac_ext >&5
6054   rm -rf conftest*
6055   glibcpp_cv_func___builtin_sin_link=no
6056 fi
6057 rm -f conftest*
6058       
6059 fi
6060
6061     fi
6062     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
6063     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
6064       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6065       cat >> confdefs.h <<EOF
6066 #define ${ac_tr_func} 1
6067 EOF
6068
6069     fi
6070   fi
6071
6072   
6073   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
6074 echo "configure:6075: checking for __builtin_sinl declaration" >&5
6075   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
6076     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
6077   echo $ac_n "(cached) $ac_c" 1>&6
6078 else
6079   
6080       
6081       ac_ext=C
6082 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6083 ac_cpp='$CXXCPP $CPPFLAGS'
6084 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6085 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6086 cross_compiling=$ac_cv_prog_cxx_cross
6087
6088       cat > conftest.$ac_ext <<EOF
6089 #line 6090 "configure"
6090 #include "confdefs.h"
6091 #include <math.h>
6092 int main() {
6093  __builtin_sinl(0);
6094 ; return 0; }
6095 EOF
6096 if { (eval echo configure:6097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6097   rm -rf conftest*
6098   glibcpp_cv_func___builtin_sinl_use=yes
6099 else
6100   echo "configure: failed program was:" >&5
6101   cat conftest.$ac_ext >&5
6102   rm -rf conftest*
6103   glibcpp_cv_func___builtin_sinl_use=no
6104 fi
6105 rm -f conftest*
6106       ac_ext=c
6107 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6108 ac_cpp='$CPP $CPPFLAGS'
6109 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6110 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6111 cross_compiling=$ac_cv_prog_cc_cross
6112
6113     
6114 fi
6115
6116   fi
6117   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
6118   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
6119     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
6120 echo "configure:6121: checking for __builtin_sinl linkage" >&5
6121     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
6122       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
6123   echo $ac_n "(cached) $ac_c" 1>&6
6124 else
6125   
6126         cat > conftest.$ac_ext <<EOF
6127 #line 6128 "configure"
6128 #include "confdefs.h"
6129 #include <math.h>
6130 int main() {
6131  __builtin_sinl(0);
6132 ; return 0; }
6133 EOF
6134 if { (eval echo configure:6135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6135   rm -rf conftest*
6136   glibcpp_cv_func___builtin_sinl_link=yes
6137 else
6138   echo "configure: failed program was:" >&5
6139   cat conftest.$ac_ext >&5
6140   rm -rf conftest*
6141   glibcpp_cv_func___builtin_sinl_link=no
6142 fi
6143 rm -f conftest*
6144       
6145 fi
6146
6147     fi
6148     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
6149     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
6150       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6151       cat >> confdefs.h <<EOF
6152 #define ${ac_tr_func} 1
6153 EOF
6154
6155     fi
6156   fi
6157
6158
6159   
6160   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
6161 echo "configure:6162: checking for __builtin_cosf declaration" >&5
6162   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
6163     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
6164   echo $ac_n "(cached) $ac_c" 1>&6
6165 else
6166   
6167       
6168       ac_ext=C
6169 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6170 ac_cpp='$CXXCPP $CPPFLAGS'
6171 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6172 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6173 cross_compiling=$ac_cv_prog_cxx_cross
6174
6175       cat > conftest.$ac_ext <<EOF
6176 #line 6177 "configure"
6177 #include "confdefs.h"
6178 #include <math.h>
6179 int main() {
6180  __builtin_cosf(0);
6181 ; return 0; }
6182 EOF
6183 if { (eval echo configure:6184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6184   rm -rf conftest*
6185   glibcpp_cv_func___builtin_cosf_use=yes
6186 else
6187   echo "configure: failed program was:" >&5
6188   cat conftest.$ac_ext >&5
6189   rm -rf conftest*
6190   glibcpp_cv_func___builtin_cosf_use=no
6191 fi
6192 rm -f conftest*
6193       ac_ext=c
6194 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6195 ac_cpp='$CPP $CPPFLAGS'
6196 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6197 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6198 cross_compiling=$ac_cv_prog_cc_cross
6199
6200     
6201 fi
6202
6203   fi
6204   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
6205   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
6206     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
6207 echo "configure:6208: checking for __builtin_cosf linkage" >&5
6208     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
6209       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
6210   echo $ac_n "(cached) $ac_c" 1>&6
6211 else
6212   
6213         cat > conftest.$ac_ext <<EOF
6214 #line 6215 "configure"
6215 #include "confdefs.h"
6216 #include <math.h>
6217 int main() {
6218  __builtin_cosf(0);
6219 ; return 0; }
6220 EOF
6221 if { (eval echo configure:6222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6222   rm -rf conftest*
6223   glibcpp_cv_func___builtin_cosf_link=yes
6224 else
6225   echo "configure: failed program was:" >&5
6226   cat conftest.$ac_ext >&5
6227   rm -rf conftest*
6228   glibcpp_cv_func___builtin_cosf_link=no
6229 fi
6230 rm -f conftest*
6231       
6232 fi
6233
6234     fi
6235     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
6236     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
6237       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6238       cat >> confdefs.h <<EOF
6239 #define ${ac_tr_func} 1
6240 EOF
6241
6242     fi
6243   fi
6244
6245   
6246   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
6247 echo "configure:6248: checking for __builtin_cos declaration" >&5
6248   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
6249     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
6250   echo $ac_n "(cached) $ac_c" 1>&6
6251 else
6252   
6253       
6254       ac_ext=C
6255 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6256 ac_cpp='$CXXCPP $CPPFLAGS'
6257 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6258 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6259 cross_compiling=$ac_cv_prog_cxx_cross
6260
6261       cat > conftest.$ac_ext <<EOF
6262 #line 6263 "configure"
6263 #include "confdefs.h"
6264 #include <math.h>
6265 int main() {
6266  __builtin_cos(0);
6267 ; return 0; }
6268 EOF
6269 if { (eval echo configure:6270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6270   rm -rf conftest*
6271   glibcpp_cv_func___builtin_cos_use=yes
6272 else
6273   echo "configure: failed program was:" >&5
6274   cat conftest.$ac_ext >&5
6275   rm -rf conftest*
6276   glibcpp_cv_func___builtin_cos_use=no
6277 fi
6278 rm -f conftest*
6279       ac_ext=c
6280 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6281 ac_cpp='$CPP $CPPFLAGS'
6282 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6283 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6284 cross_compiling=$ac_cv_prog_cc_cross
6285
6286     
6287 fi
6288
6289   fi
6290   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
6291   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
6292     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
6293 echo "configure:6294: checking for __builtin_cos linkage" >&5
6294     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
6295       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
6296   echo $ac_n "(cached) $ac_c" 1>&6
6297 else
6298   
6299         cat > conftest.$ac_ext <<EOF
6300 #line 6301 "configure"
6301 #include "confdefs.h"
6302 #include <math.h>
6303 int main() {
6304  __builtin_cos(0);
6305 ; return 0; }
6306 EOF
6307 if { (eval echo configure:6308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6308   rm -rf conftest*
6309   glibcpp_cv_func___builtin_cos_link=yes
6310 else
6311   echo "configure: failed program was:" >&5
6312   cat conftest.$ac_ext >&5
6313   rm -rf conftest*
6314   glibcpp_cv_func___builtin_cos_link=no
6315 fi
6316 rm -f conftest*
6317       
6318 fi
6319
6320     fi
6321     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
6322     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
6323       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6324       cat >> confdefs.h <<EOF
6325 #define ${ac_tr_func} 1
6326 EOF
6327
6328     fi
6329   fi
6330
6331   
6332   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
6333 echo "configure:6334: checking for __builtin_cosl declaration" >&5
6334   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
6335     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
6336   echo $ac_n "(cached) $ac_c" 1>&6
6337 else
6338   
6339       
6340       ac_ext=C
6341 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6342 ac_cpp='$CXXCPP $CPPFLAGS'
6343 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6344 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6345 cross_compiling=$ac_cv_prog_cxx_cross
6346
6347       cat > conftest.$ac_ext <<EOF
6348 #line 6349 "configure"
6349 #include "confdefs.h"
6350 #include <math.h>
6351 int main() {
6352  __builtin_cosl(0);
6353 ; return 0; }
6354 EOF
6355 if { (eval echo configure:6356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6356   rm -rf conftest*
6357   glibcpp_cv_func___builtin_cosl_use=yes
6358 else
6359   echo "configure: failed program was:" >&5
6360   cat conftest.$ac_ext >&5
6361   rm -rf conftest*
6362   glibcpp_cv_func___builtin_cosl_use=no
6363 fi
6364 rm -f conftest*
6365       ac_ext=c
6366 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6367 ac_cpp='$CPP $CPPFLAGS'
6368 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6369 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6370 cross_compiling=$ac_cv_prog_cc_cross
6371
6372     
6373 fi
6374
6375   fi
6376   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
6377   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
6378     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
6379 echo "configure:6380: checking for __builtin_cosl linkage" >&5
6380     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
6381       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
6382   echo $ac_n "(cached) $ac_c" 1>&6
6383 else
6384   
6385         cat > conftest.$ac_ext <<EOF
6386 #line 6387 "configure"
6387 #include "confdefs.h"
6388 #include <math.h>
6389 int main() {
6390  __builtin_cosl(0);
6391 ; return 0; }
6392 EOF
6393 if { (eval echo configure:6394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6394   rm -rf conftest*
6395   glibcpp_cv_func___builtin_cosl_link=yes
6396 else
6397   echo "configure: failed program was:" >&5
6398   cat conftest.$ac_ext >&5
6399   rm -rf conftest*
6400   glibcpp_cv_func___builtin_cosl_link=no
6401 fi
6402 rm -f conftest*
6403       
6404 fi
6405
6406     fi
6407     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
6408     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
6409       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6410       cat >> confdefs.h <<EOF
6411 #define ${ac_tr_func} 1
6412 EOF
6413
6414     fi
6415   fi
6416
6417
6418               dummyvar=no
6419   if test x$dummyvar = x"yes"; then
6420     cat >> confdefs.h <<\EOF
6421 #define HAVE___BUILTIN_ABS 1
6422 EOF
6423
6424     cat >> confdefs.h <<\EOF
6425 #define HAVE___BUILTIN_LABS 1
6426 EOF
6427
6428     cat >> confdefs.h <<\EOF
6429 #define HAVE___BUILTIN_COS 1
6430 EOF
6431
6432     cat >> confdefs.h <<\EOF
6433 #define HAVE___BUILTIN_COSF 1
6434 EOF
6435
6436     cat >> confdefs.h <<\EOF
6437 #define HAVE___BUILTIN_COSL 1
6438 EOF
6439
6440     cat >> confdefs.h <<\EOF
6441 #define HAVE___BUILTIN_FABS 1
6442 EOF
6443
6444     cat >> confdefs.h <<\EOF
6445 #define HAVE___BUILTIN_FABSF 1
6446 EOF
6447
6448     cat >> confdefs.h <<\EOF
6449 #define HAVE___BUILTIN_FABSL 1
6450 EOF
6451
6452     cat >> confdefs.h <<\EOF
6453 #define HAVE___BUILTIN_SIN 1
6454 EOF
6455
6456     cat >> confdefs.h <<\EOF
6457 #define HAVE___BUILTIN_SINF 1
6458 EOF
6459
6460     cat >> confdefs.h <<\EOF
6461 #define HAVE___BUILTIN_SINL 1
6462 EOF
6463
6464     cat >> confdefs.h <<\EOF
6465 #define HAVE___BUILTIN_FSQRT 1
6466 EOF
6467
6468     cat >> confdefs.h <<\EOF
6469 #define HAVE___BUILTIN_SQRTF 1
6470 EOF
6471
6472     cat >> confdefs.h <<\EOF
6473 #define HAVE___BUILTIN_SQRTL 1
6474 EOF
6475
6476   fi
6477
6478   
6479   ac_test_CXXFLAGS="${CXXFLAGS+set}"
6480   ac_save_CXXFLAGS="$CXXFLAGS"
6481   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
6482
6483     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
6484 echo "configure:6485: checking for sin in -lm" >&5
6485 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
6486 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6487   echo $ac_n "(cached) $ac_c" 1>&6
6488 else
6489   ac_save_LIBS="$LIBS"
6490 LIBS="-lm  $LIBS"
6491 cat > conftest.$ac_ext <<EOF
6492 #line 6493 "configure"
6493 #include "confdefs.h"
6494 /* Override any gcc2 internal prototype to avoid an error.  */
6495 /* We use char because int might match the return type of a gcc2
6496     builtin and then its argument prototype would still apply.  */
6497 char sin();
6498
6499 int main() {
6500 sin()
6501 ; return 0; }
6502 EOF
6503 if { (eval echo configure:6504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6504   rm -rf conftest*
6505   eval "ac_cv_lib_$ac_lib_var=yes"
6506 else
6507   echo "configure: failed program was:" >&5
6508   cat conftest.$ac_ext >&5
6509   rm -rf conftest*
6510   eval "ac_cv_lib_$ac_lib_var=no"
6511 fi
6512 rm -f conftest*
6513 LIBS="$ac_save_LIBS"
6514
6515 fi
6516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6517   echo "$ac_t""yes" 1>&6
6518   libm="-lm"
6519 else
6520   echo "$ac_t""no" 1>&6
6521 fi
6522
6523   ac_save_LIBS="$LIBS"
6524   LIBS="$LIBS $libm"
6525
6526     
6527   
6528   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
6529 echo "configure:6530: checking for isinf declaration" >&5
6530   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
6531     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
6532   echo $ac_n "(cached) $ac_c" 1>&6
6533 else
6534   
6535       
6536       ac_ext=C
6537 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6538 ac_cpp='$CXXCPP $CPPFLAGS'
6539 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6540 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6541 cross_compiling=$ac_cv_prog_cxx_cross
6542
6543       cat > conftest.$ac_ext <<EOF
6544 #line 6545 "configure"
6545 #include "confdefs.h"
6546 #include <math.h>
6547                       #ifdef HAVE_IEEEFP_H
6548                       #include <ieeefp.h>
6549                       #endif
6550                      
6551 int main() {
6552  isinf(0);
6553 ; return 0; }
6554 EOF
6555 if { (eval echo configure:6556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6556   rm -rf conftest*
6557   glibcpp_cv_func_isinf_use=yes
6558 else
6559   echo "configure: failed program was:" >&5
6560   cat conftest.$ac_ext >&5
6561   rm -rf conftest*
6562   glibcpp_cv_func_isinf_use=no
6563 fi
6564 rm -f conftest*
6565       ac_ext=c
6566 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6567 ac_cpp='$CPP $CPPFLAGS'
6568 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6569 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6570 cross_compiling=$ac_cv_prog_cc_cross
6571
6572     
6573 fi
6574
6575   fi
6576   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
6577
6578   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
6579     for ac_func in isinf
6580 do
6581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6582 echo "configure:6583: checking for $ac_func" >&5
6583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6584   echo $ac_n "(cached) $ac_c" 1>&6
6585 else
6586   cat > conftest.$ac_ext <<EOF
6587 #line 6588 "configure"
6588 #include "confdefs.h"
6589 /* System header to define __stub macros and hopefully few prototypes,
6590     which can conflict with char $ac_func(); below.  */
6591 #include <assert.h>
6592 /* Override any gcc2 internal prototype to avoid an error.  */
6593 /* We use char because int might match the return type of a gcc2
6594     builtin and then its argument prototype would still apply.  */
6595 char $ac_func();
6596
6597 int main() {
6598
6599 /* The GNU C library defines this for functions which it implements
6600     to always fail with ENOSYS.  Some functions are actually named
6601     something starting with __ and the normal name is an alias.  */
6602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6603 choke me
6604 #else
6605 $ac_func();
6606 #endif
6607
6608 ; return 0; }
6609 EOF
6610 if { (eval echo configure:6611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6611   rm -rf conftest*
6612   eval "ac_cv_func_$ac_func=yes"
6613 else
6614   echo "configure: failed program was:" >&5
6615   cat conftest.$ac_ext >&5
6616   rm -rf conftest*
6617   eval "ac_cv_func_$ac_func=no"
6618 fi
6619 rm -f conftest*
6620 fi
6621
6622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6623   echo "$ac_t""yes" 1>&6
6624     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6625   cat >> confdefs.h <<EOF
6626 #define $ac_tr_func 1
6627 EOF
6628  
6629 else
6630   echo "$ac_t""no" 1>&6
6631 fi
6632 done
6633     
6634   else
6635     
6636   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6637 echo "configure:6638: checking for _isinf declaration" >&5
6638   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6639     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6640   echo $ac_n "(cached) $ac_c" 1>&6
6641 else
6642   
6643       
6644       ac_ext=C
6645 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6646 ac_cpp='$CXXCPP $CPPFLAGS'
6647 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6648 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6649 cross_compiling=$ac_cv_prog_cxx_cross
6650
6651       cat > conftest.$ac_ext <<EOF
6652 #line 6653 "configure"
6653 #include "confdefs.h"
6654 #include <math.h>
6655                       #ifdef HAVE_IEEEFP_H
6656                       #include <ieeefp.h>
6657                       #endif
6658                      
6659 int main() {
6660  _isinf(0);
6661 ; return 0; }
6662 EOF
6663 if { (eval echo configure:6664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6664   rm -rf conftest*
6665   glibcpp_cv_func__isinf_use=yes
6666 else
6667   echo "configure: failed program was:" >&5
6668   cat conftest.$ac_ext >&5
6669   rm -rf conftest*
6670   glibcpp_cv_func__isinf_use=no
6671 fi
6672 rm -f conftest*
6673       ac_ext=c
6674 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6675 ac_cpp='$CPP $CPPFLAGS'
6676 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6677 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6678 cross_compiling=$ac_cv_prog_cc_cross
6679
6680     
6681 fi
6682
6683   fi
6684   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6685
6686     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6687       for ac_func in _isinf
6688 do
6689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6690 echo "configure:6691: checking for $ac_func" >&5
6691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6692   echo $ac_n "(cached) $ac_c" 1>&6
6693 else
6694   cat > conftest.$ac_ext <<EOF
6695 #line 6696 "configure"
6696 #include "confdefs.h"
6697 /* System header to define __stub macros and hopefully few prototypes,
6698     which can conflict with char $ac_func(); below.  */
6699 #include <assert.h>
6700 /* Override any gcc2 internal prototype to avoid an error.  */
6701 /* We use char because int might match the return type of a gcc2
6702     builtin and then its argument prototype would still apply.  */
6703 char $ac_func();
6704
6705 int main() {
6706
6707 /* The GNU C library defines this for functions which it implements
6708     to always fail with ENOSYS.  Some functions are actually named
6709     something starting with __ and the normal name is an alias.  */
6710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6711 choke me
6712 #else
6713 $ac_func();
6714 #endif
6715
6716 ; return 0; }
6717 EOF
6718 if { (eval echo configure:6719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6719   rm -rf conftest*
6720   eval "ac_cv_func_$ac_func=yes"
6721 else
6722   echo "configure: failed program was:" >&5
6723   cat conftest.$ac_ext >&5
6724   rm -rf conftest*
6725   eval "ac_cv_func_$ac_func=no"
6726 fi
6727 rm -f conftest*
6728 fi
6729
6730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6731   echo "$ac_t""yes" 1>&6
6732     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6733   cat >> confdefs.h <<EOF
6734 #define $ac_tr_func 1
6735 EOF
6736  
6737 else
6738   echo "$ac_t""no" 1>&6
6739 fi
6740 done
6741     
6742     fi  
6743   fi
6744
6745   
6746   
6747   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6748 echo "configure:6749: checking for isnan declaration" >&5
6749   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6750     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6751   echo $ac_n "(cached) $ac_c" 1>&6
6752 else
6753   
6754       
6755       ac_ext=C
6756 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6757 ac_cpp='$CXXCPP $CPPFLAGS'
6758 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6759 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6760 cross_compiling=$ac_cv_prog_cxx_cross
6761
6762       cat > conftest.$ac_ext <<EOF
6763 #line 6764 "configure"
6764 #include "confdefs.h"
6765 #include <math.h>
6766                       #ifdef HAVE_IEEEFP_H
6767                       #include <ieeefp.h>
6768                       #endif
6769                      
6770 int main() {
6771  isnan(0);
6772 ; return 0; }
6773 EOF
6774 if { (eval echo configure:6775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6775   rm -rf conftest*
6776   glibcpp_cv_func_isnan_use=yes
6777 else
6778   echo "configure: failed program was:" >&5
6779   cat conftest.$ac_ext >&5
6780   rm -rf conftest*
6781   glibcpp_cv_func_isnan_use=no
6782 fi
6783 rm -f conftest*
6784       ac_ext=c
6785 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6786 ac_cpp='$CPP $CPPFLAGS'
6787 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6788 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6789 cross_compiling=$ac_cv_prog_cc_cross
6790
6791     
6792 fi
6793
6794   fi
6795   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6796
6797   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6798     for ac_func in isnan
6799 do
6800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6801 echo "configure:6802: checking for $ac_func" >&5
6802 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6803   echo $ac_n "(cached) $ac_c" 1>&6
6804 else
6805   cat > conftest.$ac_ext <<EOF
6806 #line 6807 "configure"
6807 #include "confdefs.h"
6808 /* System header to define __stub macros and hopefully few prototypes,
6809     which can conflict with char $ac_func(); below.  */
6810 #include <assert.h>
6811 /* Override any gcc2 internal prototype to avoid an error.  */
6812 /* We use char because int might match the return type of a gcc2
6813     builtin and then its argument prototype would still apply.  */
6814 char $ac_func();
6815
6816 int main() {
6817
6818 /* The GNU C library defines this for functions which it implements
6819     to always fail with ENOSYS.  Some functions are actually named
6820     something starting with __ and the normal name is an alias.  */
6821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6822 choke me
6823 #else
6824 $ac_func();
6825 #endif
6826
6827 ; return 0; }
6828 EOF
6829 if { (eval echo configure:6830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6830   rm -rf conftest*
6831   eval "ac_cv_func_$ac_func=yes"
6832 else
6833   echo "configure: failed program was:" >&5
6834   cat conftest.$ac_ext >&5
6835   rm -rf conftest*
6836   eval "ac_cv_func_$ac_func=no"
6837 fi
6838 rm -f conftest*
6839 fi
6840
6841 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6842   echo "$ac_t""yes" 1>&6
6843     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6844   cat >> confdefs.h <<EOF
6845 #define $ac_tr_func 1
6846 EOF
6847  
6848 else
6849   echo "$ac_t""no" 1>&6
6850 fi
6851 done
6852     
6853   else
6854     
6855   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6856 echo "configure:6857: checking for _isnan declaration" >&5
6857   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6858     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6859   echo $ac_n "(cached) $ac_c" 1>&6
6860 else
6861   
6862       
6863       ac_ext=C
6864 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6865 ac_cpp='$CXXCPP $CPPFLAGS'
6866 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6867 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6868 cross_compiling=$ac_cv_prog_cxx_cross
6869
6870       cat > conftest.$ac_ext <<EOF
6871 #line 6872 "configure"
6872 #include "confdefs.h"
6873 #include <math.h>
6874                       #ifdef HAVE_IEEEFP_H
6875                       #include <ieeefp.h>
6876                       #endif
6877                      
6878 int main() {
6879  _isnan(0);
6880 ; return 0; }
6881 EOF
6882 if { (eval echo configure:6883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6883   rm -rf conftest*
6884   glibcpp_cv_func__isnan_use=yes
6885 else
6886   echo "configure: failed program was:" >&5
6887   cat conftest.$ac_ext >&5
6888   rm -rf conftest*
6889   glibcpp_cv_func__isnan_use=no
6890 fi
6891 rm -f conftest*
6892       ac_ext=c
6893 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6894 ac_cpp='$CPP $CPPFLAGS'
6895 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6896 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6897 cross_compiling=$ac_cv_prog_cc_cross
6898
6899     
6900 fi
6901
6902   fi
6903   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
6904
6905     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
6906       for ac_func in _isnan
6907 do
6908 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6909 echo "configure:6910: checking for $ac_func" >&5
6910 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6911   echo $ac_n "(cached) $ac_c" 1>&6
6912 else
6913   cat > conftest.$ac_ext <<EOF
6914 #line 6915 "configure"
6915 #include "confdefs.h"
6916 /* System header to define __stub macros and hopefully few prototypes,
6917     which can conflict with char $ac_func(); below.  */
6918 #include <assert.h>
6919 /* Override any gcc2 internal prototype to avoid an error.  */
6920 /* We use char because int might match the return type of a gcc2
6921     builtin and then its argument prototype would still apply.  */
6922 char $ac_func();
6923
6924 int main() {
6925
6926 /* The GNU C library defines this for functions which it implements
6927     to always fail with ENOSYS.  Some functions are actually named
6928     something starting with __ and the normal name is an alias.  */
6929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6930 choke me
6931 #else
6932 $ac_func();
6933 #endif
6934
6935 ; return 0; }
6936 EOF
6937 if { (eval echo configure:6938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6938   rm -rf conftest*
6939   eval "ac_cv_func_$ac_func=yes"
6940 else
6941   echo "configure: failed program was:" >&5
6942   cat conftest.$ac_ext >&5
6943   rm -rf conftest*
6944   eval "ac_cv_func_$ac_func=no"
6945 fi
6946 rm -f conftest*
6947 fi
6948
6949 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6950   echo "$ac_t""yes" 1>&6
6951     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6952   cat >> confdefs.h <<EOF
6953 #define $ac_tr_func 1
6954 EOF
6955  
6956 else
6957   echo "$ac_t""no" 1>&6
6958 fi
6959 done
6960     
6961     fi  
6962   fi
6963
6964   
6965   
6966   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
6967 echo "configure:6968: checking for finite declaration" >&5
6968   if test x${glibcpp_cv_func_finite_use+set} != xset; then
6969     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
6970   echo $ac_n "(cached) $ac_c" 1>&6
6971 else
6972   
6973       
6974       ac_ext=C
6975 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6976 ac_cpp='$CXXCPP $CPPFLAGS'
6977 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6978 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6979 cross_compiling=$ac_cv_prog_cxx_cross
6980
6981       cat > conftest.$ac_ext <<EOF
6982 #line 6983 "configure"
6983 #include "confdefs.h"
6984 #include <math.h>
6985                       #ifdef HAVE_IEEEFP_H
6986                       #include <ieeefp.h>
6987                       #endif
6988                      
6989 int main() {
6990  finite(0);
6991 ; return 0; }
6992 EOF
6993 if { (eval echo configure:6994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6994   rm -rf conftest*
6995   glibcpp_cv_func_finite_use=yes
6996 else
6997   echo "configure: failed program was:" >&5
6998   cat conftest.$ac_ext >&5
6999   rm -rf conftest*
7000   glibcpp_cv_func_finite_use=no
7001 fi
7002 rm -f conftest*
7003       ac_ext=c
7004 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7005 ac_cpp='$CPP $CPPFLAGS'
7006 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7007 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7008 cross_compiling=$ac_cv_prog_cc_cross
7009
7010     
7011 fi
7012
7013   fi
7014   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
7015
7016   if test x$glibcpp_cv_func_finite_use = x"yes"; then
7017     for ac_func in finite
7018 do
7019 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7020 echo "configure:7021: checking for $ac_func" >&5
7021 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7022   echo $ac_n "(cached) $ac_c" 1>&6
7023 else
7024   cat > conftest.$ac_ext <<EOF
7025 #line 7026 "configure"
7026 #include "confdefs.h"
7027 /* System header to define __stub macros and hopefully few prototypes,
7028     which can conflict with char $ac_func(); below.  */
7029 #include <assert.h>
7030 /* Override any gcc2 internal prototype to avoid an error.  */
7031 /* We use char because int might match the return type of a gcc2
7032     builtin and then its argument prototype would still apply.  */
7033 char $ac_func();
7034
7035 int main() {
7036
7037 /* The GNU C library defines this for functions which it implements
7038     to always fail with ENOSYS.  Some functions are actually named
7039     something starting with __ and the normal name is an alias.  */
7040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7041 choke me
7042 #else
7043 $ac_func();
7044 #endif
7045
7046 ; return 0; }
7047 EOF
7048 if { (eval echo configure:7049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7049   rm -rf conftest*
7050   eval "ac_cv_func_$ac_func=yes"
7051 else
7052   echo "configure: failed program was:" >&5
7053   cat conftest.$ac_ext >&5
7054   rm -rf conftest*
7055   eval "ac_cv_func_$ac_func=no"
7056 fi
7057 rm -f conftest*
7058 fi
7059
7060 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7061   echo "$ac_t""yes" 1>&6
7062     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7063   cat >> confdefs.h <<EOF
7064 #define $ac_tr_func 1
7065 EOF
7066  
7067 else
7068   echo "$ac_t""no" 1>&6
7069 fi
7070 done
7071     
7072   else
7073     
7074   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
7075 echo "configure:7076: checking for _finite declaration" >&5
7076   if test x${glibcpp_cv_func__finite_use+set} != xset; then
7077     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
7078   echo $ac_n "(cached) $ac_c" 1>&6
7079 else
7080   
7081       
7082       ac_ext=C
7083 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7084 ac_cpp='$CXXCPP $CPPFLAGS'
7085 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7086 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7087 cross_compiling=$ac_cv_prog_cxx_cross
7088
7089       cat > conftest.$ac_ext <<EOF
7090 #line 7091 "configure"
7091 #include "confdefs.h"
7092 #include <math.h>
7093                       #ifdef HAVE_IEEEFP_H
7094                       #include <ieeefp.h>
7095                       #endif
7096                      
7097 int main() {
7098  _finite(0);
7099 ; return 0; }
7100 EOF
7101 if { (eval echo configure:7102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7102   rm -rf conftest*
7103   glibcpp_cv_func__finite_use=yes
7104 else
7105   echo "configure: failed program was:" >&5
7106   cat conftest.$ac_ext >&5
7107   rm -rf conftest*
7108   glibcpp_cv_func__finite_use=no
7109 fi
7110 rm -f conftest*
7111       ac_ext=c
7112 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7113 ac_cpp='$CPP $CPPFLAGS'
7114 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7115 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7116 cross_compiling=$ac_cv_prog_cc_cross
7117
7118     
7119 fi
7120
7121   fi
7122   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
7123
7124     if test x$glibcpp_cv_func__finite_use = x"yes"; then
7125       for ac_func in _finite
7126 do
7127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7128 echo "configure:7129: checking for $ac_func" >&5
7129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7130   echo $ac_n "(cached) $ac_c" 1>&6
7131 else
7132   cat > conftest.$ac_ext <<EOF
7133 #line 7134 "configure"
7134 #include "confdefs.h"
7135 /* System header to define __stub macros and hopefully few prototypes,
7136     which can conflict with char $ac_func(); below.  */
7137 #include <assert.h>
7138 /* Override any gcc2 internal prototype to avoid an error.  */
7139 /* We use char because int might match the return type of a gcc2
7140     builtin and then its argument prototype would still apply.  */
7141 char $ac_func();
7142
7143 int main() {
7144
7145 /* The GNU C library defines this for functions which it implements
7146     to always fail with ENOSYS.  Some functions are actually named
7147     something starting with __ and the normal name is an alias.  */
7148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7149 choke me
7150 #else
7151 $ac_func();
7152 #endif
7153
7154 ; return 0; }
7155 EOF
7156 if { (eval echo configure:7157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7157   rm -rf conftest*
7158   eval "ac_cv_func_$ac_func=yes"
7159 else
7160   echo "configure: failed program was:" >&5
7161   cat conftest.$ac_ext >&5
7162   rm -rf conftest*
7163   eval "ac_cv_func_$ac_func=no"
7164 fi
7165 rm -f conftest*
7166 fi
7167
7168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7169   echo "$ac_t""yes" 1>&6
7170     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7171   cat >> confdefs.h <<EOF
7172 #define $ac_tr_func 1
7173 EOF
7174  
7175 else
7176   echo "$ac_t""no" 1>&6
7177 fi
7178 done
7179     
7180     fi  
7181   fi
7182
7183   
7184   
7185   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
7186 echo "configure:7187: checking for copysign declaration" >&5
7187   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
7188     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
7189   echo $ac_n "(cached) $ac_c" 1>&6
7190 else
7191   
7192       
7193       ac_ext=C
7194 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7195 ac_cpp='$CXXCPP $CPPFLAGS'
7196 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7197 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7198 cross_compiling=$ac_cv_prog_cxx_cross
7199
7200       cat > conftest.$ac_ext <<EOF
7201 #line 7202 "configure"
7202 #include "confdefs.h"
7203 #include <math.h>
7204 int main() {
7205  copysign(0, 0);
7206 ; return 0; }
7207 EOF
7208 if { (eval echo configure:7209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7209   rm -rf conftest*
7210   glibcpp_cv_func_copysign_use=yes
7211 else
7212   echo "configure: failed program was:" >&5
7213   cat conftest.$ac_ext >&5
7214   rm -rf conftest*
7215   glibcpp_cv_func_copysign_use=no
7216 fi
7217 rm -f conftest*
7218       ac_ext=c
7219 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7220 ac_cpp='$CPP $CPPFLAGS'
7221 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7222 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7223 cross_compiling=$ac_cv_prog_cc_cross
7224
7225     
7226 fi
7227
7228   fi
7229   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
7230
7231   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
7232     for ac_func in copysign
7233 do
7234 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7235 echo "configure:7236: checking for $ac_func" >&5
7236 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7237   echo $ac_n "(cached) $ac_c" 1>&6
7238 else
7239   cat > conftest.$ac_ext <<EOF
7240 #line 7241 "configure"
7241 #include "confdefs.h"
7242 /* System header to define __stub macros and hopefully few prototypes,
7243     which can conflict with char $ac_func(); below.  */
7244 #include <assert.h>
7245 /* Override any gcc2 internal prototype to avoid an error.  */
7246 /* We use char because int might match the return type of a gcc2
7247     builtin and then its argument prototype would still apply.  */
7248 char $ac_func();
7249
7250 int main() {
7251
7252 /* The GNU C library defines this for functions which it implements
7253     to always fail with ENOSYS.  Some functions are actually named
7254     something starting with __ and the normal name is an alias.  */
7255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7256 choke me
7257 #else
7258 $ac_func();
7259 #endif
7260
7261 ; return 0; }
7262 EOF
7263 if { (eval echo configure:7264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7264   rm -rf conftest*
7265   eval "ac_cv_func_$ac_func=yes"
7266 else
7267   echo "configure: failed program was:" >&5
7268   cat conftest.$ac_ext >&5
7269   rm -rf conftest*
7270   eval "ac_cv_func_$ac_func=no"
7271 fi
7272 rm -f conftest*
7273 fi
7274
7275 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7276   echo "$ac_t""yes" 1>&6
7277     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7278   cat >> confdefs.h <<EOF
7279 #define $ac_tr_func 1
7280 EOF
7281  
7282 else
7283   echo "$ac_t""no" 1>&6
7284 fi
7285 done
7286     
7287   else
7288     
7289   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
7290 echo "configure:7291: checking for _copysign declaration" >&5
7291   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
7292     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
7293   echo $ac_n "(cached) $ac_c" 1>&6
7294 else
7295   
7296       
7297       ac_ext=C
7298 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7299 ac_cpp='$CXXCPP $CPPFLAGS'
7300 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7301 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7302 cross_compiling=$ac_cv_prog_cxx_cross
7303
7304       cat > conftest.$ac_ext <<EOF
7305 #line 7306 "configure"
7306 #include "confdefs.h"
7307 #include <math.h>
7308 int main() {
7309  _copysign(0, 0);
7310 ; return 0; }
7311 EOF
7312 if { (eval echo configure:7313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7313   rm -rf conftest*
7314   glibcpp_cv_func__copysign_use=yes
7315 else
7316   echo "configure: failed program was:" >&5
7317   cat conftest.$ac_ext >&5
7318   rm -rf conftest*
7319   glibcpp_cv_func__copysign_use=no
7320 fi
7321 rm -f conftest*
7322       ac_ext=c
7323 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7324 ac_cpp='$CPP $CPPFLAGS'
7325 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7326 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7327 cross_compiling=$ac_cv_prog_cc_cross
7328
7329     
7330 fi
7331
7332   fi
7333   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
7334
7335     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
7336       for ac_func in _copysign
7337 do
7338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7339 echo "configure:7340: checking for $ac_func" >&5
7340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7341   echo $ac_n "(cached) $ac_c" 1>&6
7342 else
7343   cat > conftest.$ac_ext <<EOF
7344 #line 7345 "configure"
7345 #include "confdefs.h"
7346 /* System header to define __stub macros and hopefully few prototypes,
7347     which can conflict with char $ac_func(); below.  */
7348 #include <assert.h>
7349 /* Override any gcc2 internal prototype to avoid an error.  */
7350 /* We use char because int might match the return type of a gcc2
7351     builtin and then its argument prototype would still apply.  */
7352 char $ac_func();
7353
7354 int main() {
7355
7356 /* The GNU C library defines this for functions which it implements
7357     to always fail with ENOSYS.  Some functions are actually named
7358     something starting with __ and the normal name is an alias.  */
7359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7360 choke me
7361 #else
7362 $ac_func();
7363 #endif
7364
7365 ; return 0; }
7366 EOF
7367 if { (eval echo configure:7368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7368   rm -rf conftest*
7369   eval "ac_cv_func_$ac_func=yes"
7370 else
7371   echo "configure: failed program was:" >&5
7372   cat conftest.$ac_ext >&5
7373   rm -rf conftest*
7374   eval "ac_cv_func_$ac_func=no"
7375 fi
7376 rm -f conftest*
7377 fi
7378
7379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7380   echo "$ac_t""yes" 1>&6
7381     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7382   cat >> confdefs.h <<EOF
7383 #define $ac_tr_func 1
7384 EOF
7385  
7386 else
7387   echo "$ac_t""no" 1>&6
7388 fi
7389 done
7390     
7391     fi  
7392   fi
7393
7394   
7395   
7396   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
7397 echo "configure:7398: checking for sincos declaration" >&5
7398   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
7399     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
7400   echo $ac_n "(cached) $ac_c" 1>&6
7401 else
7402   
7403       
7404       ac_ext=C
7405 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7406 ac_cpp='$CXXCPP $CPPFLAGS'
7407 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7408 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7409 cross_compiling=$ac_cv_prog_cxx_cross
7410
7411       cat > conftest.$ac_ext <<EOF
7412 #line 7413 "configure"
7413 #include "confdefs.h"
7414 #include <math.h>
7415 int main() {
7416  sincos(0, 0, 0);
7417 ; return 0; }
7418 EOF
7419 if { (eval echo configure:7420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7420   rm -rf conftest*
7421   glibcpp_cv_func_sincos_use=yes
7422 else
7423   echo "configure: failed program was:" >&5
7424   cat conftest.$ac_ext >&5
7425   rm -rf conftest*
7426   glibcpp_cv_func_sincos_use=no
7427 fi
7428 rm -f conftest*
7429       ac_ext=c
7430 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7431 ac_cpp='$CPP $CPPFLAGS'
7432 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7433 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7434 cross_compiling=$ac_cv_prog_cc_cross
7435
7436     
7437 fi
7438
7439   fi
7440   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
7441
7442   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
7443     for ac_func in sincos
7444 do
7445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7446 echo "configure:7447: checking for $ac_func" >&5
7447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7448   echo $ac_n "(cached) $ac_c" 1>&6
7449 else
7450   cat > conftest.$ac_ext <<EOF
7451 #line 7452 "configure"
7452 #include "confdefs.h"
7453 /* System header to define __stub macros and hopefully few prototypes,
7454     which can conflict with char $ac_func(); below.  */
7455 #include <assert.h>
7456 /* Override any gcc2 internal prototype to avoid an error.  */
7457 /* We use char because int might match the return type of a gcc2
7458     builtin and then its argument prototype would still apply.  */
7459 char $ac_func();
7460
7461 int main() {
7462
7463 /* The GNU C library defines this for functions which it implements
7464     to always fail with ENOSYS.  Some functions are actually named
7465     something starting with __ and the normal name is an alias.  */
7466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7467 choke me
7468 #else
7469 $ac_func();
7470 #endif
7471
7472 ; return 0; }
7473 EOF
7474 if { (eval echo configure:7475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7475   rm -rf conftest*
7476   eval "ac_cv_func_$ac_func=yes"
7477 else
7478   echo "configure: failed program was:" >&5
7479   cat conftest.$ac_ext >&5
7480   rm -rf conftest*
7481   eval "ac_cv_func_$ac_func=no"
7482 fi
7483 rm -f conftest*
7484 fi
7485
7486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7487   echo "$ac_t""yes" 1>&6
7488     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7489   cat >> confdefs.h <<EOF
7490 #define $ac_tr_func 1
7491 EOF
7492  
7493 else
7494   echo "$ac_t""no" 1>&6
7495 fi
7496 done
7497     
7498   else
7499     
7500   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
7501 echo "configure:7502: checking for _sincos declaration" >&5
7502   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
7503     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
7504   echo $ac_n "(cached) $ac_c" 1>&6
7505 else
7506   
7507       
7508       ac_ext=C
7509 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7510 ac_cpp='$CXXCPP $CPPFLAGS'
7511 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7512 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7513 cross_compiling=$ac_cv_prog_cxx_cross
7514
7515       cat > conftest.$ac_ext <<EOF
7516 #line 7517 "configure"
7517 #include "confdefs.h"
7518 #include <math.h>
7519 int main() {
7520  _sincos(0, 0, 0);
7521 ; return 0; }
7522 EOF
7523 if { (eval echo configure:7524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7524   rm -rf conftest*
7525   glibcpp_cv_func__sincos_use=yes
7526 else
7527   echo "configure: failed program was:" >&5
7528   cat conftest.$ac_ext >&5
7529   rm -rf conftest*
7530   glibcpp_cv_func__sincos_use=no
7531 fi
7532 rm -f conftest*
7533       ac_ext=c
7534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7535 ac_cpp='$CPP $CPPFLAGS'
7536 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7537 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7538 cross_compiling=$ac_cv_prog_cc_cross
7539
7540     
7541 fi
7542
7543   fi
7544   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
7545
7546     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
7547       for ac_func in _sincos
7548 do
7549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7550 echo "configure:7551: checking for $ac_func" >&5
7551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7552   echo $ac_n "(cached) $ac_c" 1>&6
7553 else
7554   cat > conftest.$ac_ext <<EOF
7555 #line 7556 "configure"
7556 #include "confdefs.h"
7557 /* System header to define __stub macros and hopefully few prototypes,
7558     which can conflict with char $ac_func(); below.  */
7559 #include <assert.h>
7560 /* Override any gcc2 internal prototype to avoid an error.  */
7561 /* We use char because int might match the return type of a gcc2
7562     builtin and then its argument prototype would still apply.  */
7563 char $ac_func();
7564
7565 int main() {
7566
7567 /* The GNU C library defines this for functions which it implements
7568     to always fail with ENOSYS.  Some functions are actually named
7569     something starting with __ and the normal name is an alias.  */
7570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7571 choke me
7572 #else
7573 $ac_func();
7574 #endif
7575
7576 ; return 0; }
7577 EOF
7578 if { (eval echo configure:7579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7579   rm -rf conftest*
7580   eval "ac_cv_func_$ac_func=yes"
7581 else
7582   echo "configure: failed program was:" >&5
7583   cat conftest.$ac_ext >&5
7584   rm -rf conftest*
7585   eval "ac_cv_func_$ac_func=no"
7586 fi
7587 rm -f conftest*
7588 fi
7589
7590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7591   echo "$ac_t""yes" 1>&6
7592     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7593   cat >> confdefs.h <<EOF
7594 #define $ac_tr_func 1
7595 EOF
7596  
7597 else
7598   echo "$ac_t""no" 1>&6
7599 fi
7600 done
7601     
7602     fi  
7603   fi
7604
7605   
7606   
7607   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
7608 echo "configure:7609: checking for fpclass declaration" >&5
7609   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7610     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7611   echo $ac_n "(cached) $ac_c" 1>&6
7612 else
7613   
7614       
7615       ac_ext=C
7616 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7617 ac_cpp='$CXXCPP $CPPFLAGS'
7618 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7619 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7620 cross_compiling=$ac_cv_prog_cxx_cross
7621
7622       cat > conftest.$ac_ext <<EOF
7623 #line 7624 "configure"
7624 #include "confdefs.h"
7625 #include <math.h>
7626                       #ifdef HAVE_IEEEFP_H
7627                       #include <ieeefp.h>
7628                       #endif
7629                      
7630 int main() {
7631  fpclass(0);
7632 ; return 0; }
7633 EOF
7634 if { (eval echo configure:7635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7635   rm -rf conftest*
7636   glibcpp_cv_func_fpclass_use=yes
7637 else
7638   echo "configure: failed program was:" >&5
7639   cat conftest.$ac_ext >&5
7640   rm -rf conftest*
7641   glibcpp_cv_func_fpclass_use=no
7642 fi
7643 rm -f conftest*
7644       ac_ext=c
7645 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7646 ac_cpp='$CPP $CPPFLAGS'
7647 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7648 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7649 cross_compiling=$ac_cv_prog_cc_cross
7650
7651     
7652 fi
7653
7654   fi
7655   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7656
7657   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7658     for ac_func in fpclass
7659 do
7660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7661 echo "configure:7662: checking for $ac_func" >&5
7662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7663   echo $ac_n "(cached) $ac_c" 1>&6
7664 else
7665   cat > conftest.$ac_ext <<EOF
7666 #line 7667 "configure"
7667 #include "confdefs.h"
7668 /* System header to define __stub macros and hopefully few prototypes,
7669     which can conflict with char $ac_func(); below.  */
7670 #include <assert.h>
7671 /* Override any gcc2 internal prototype to avoid an error.  */
7672 /* We use char because int might match the return type of a gcc2
7673     builtin and then its argument prototype would still apply.  */
7674 char $ac_func();
7675
7676 int main() {
7677
7678 /* The GNU C library defines this for functions which it implements
7679     to always fail with ENOSYS.  Some functions are actually named
7680     something starting with __ and the normal name is an alias.  */
7681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7682 choke me
7683 #else
7684 $ac_func();
7685 #endif
7686
7687 ; return 0; }
7688 EOF
7689 if { (eval echo configure:7690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7690   rm -rf conftest*
7691   eval "ac_cv_func_$ac_func=yes"
7692 else
7693   echo "configure: failed program was:" >&5
7694   cat conftest.$ac_ext >&5
7695   rm -rf conftest*
7696   eval "ac_cv_func_$ac_func=no"
7697 fi
7698 rm -f conftest*
7699 fi
7700
7701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7702   echo "$ac_t""yes" 1>&6
7703     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7704   cat >> confdefs.h <<EOF
7705 #define $ac_tr_func 1
7706 EOF
7707  
7708 else
7709   echo "$ac_t""no" 1>&6
7710 fi
7711 done
7712     
7713   else
7714     
7715   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7716 echo "configure:7717: checking for _fpclass declaration" >&5
7717   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7718     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7719   echo $ac_n "(cached) $ac_c" 1>&6
7720 else
7721   
7722       
7723       ac_ext=C
7724 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7725 ac_cpp='$CXXCPP $CPPFLAGS'
7726 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7727 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7728 cross_compiling=$ac_cv_prog_cxx_cross
7729
7730       cat > conftest.$ac_ext <<EOF
7731 #line 7732 "configure"
7732 #include "confdefs.h"
7733 #include <math.h>
7734                       #ifdef HAVE_IEEEFP_H
7735                       #include <ieeefp.h>
7736                       #endif
7737                      
7738 int main() {
7739  _fpclass(0);
7740 ; return 0; }
7741 EOF
7742 if { (eval echo configure:7743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7743   rm -rf conftest*
7744   glibcpp_cv_func__fpclass_use=yes
7745 else
7746   echo "configure: failed program was:" >&5
7747   cat conftest.$ac_ext >&5
7748   rm -rf conftest*
7749   glibcpp_cv_func__fpclass_use=no
7750 fi
7751 rm -f conftest*
7752       ac_ext=c
7753 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7754 ac_cpp='$CPP $CPPFLAGS'
7755 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7756 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7757 cross_compiling=$ac_cv_prog_cc_cross
7758
7759     
7760 fi
7761
7762   fi
7763   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7764
7765     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7766       for ac_func in _fpclass
7767 do
7768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7769 echo "configure:7770: checking for $ac_func" >&5
7770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7771   echo $ac_n "(cached) $ac_c" 1>&6
7772 else
7773   cat > conftest.$ac_ext <<EOF
7774 #line 7775 "configure"
7775 #include "confdefs.h"
7776 /* System header to define __stub macros and hopefully few prototypes,
7777     which can conflict with char $ac_func(); below.  */
7778 #include <assert.h>
7779 /* Override any gcc2 internal prototype to avoid an error.  */
7780 /* We use char because int might match the return type of a gcc2
7781     builtin and then its argument prototype would still apply.  */
7782 char $ac_func();
7783
7784 int main() {
7785
7786 /* The GNU C library defines this for functions which it implements
7787     to always fail with ENOSYS.  Some functions are actually named
7788     something starting with __ and the normal name is an alias.  */
7789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7790 choke me
7791 #else
7792 $ac_func();
7793 #endif
7794
7795 ; return 0; }
7796 EOF
7797 if { (eval echo configure:7798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7798   rm -rf conftest*
7799   eval "ac_cv_func_$ac_func=yes"
7800 else
7801   echo "configure: failed program was:" >&5
7802   cat conftest.$ac_ext >&5
7803   rm -rf conftest*
7804   eval "ac_cv_func_$ac_func=no"
7805 fi
7806 rm -f conftest*
7807 fi
7808
7809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7810   echo "$ac_t""yes" 1>&6
7811     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7812   cat >> confdefs.h <<EOF
7813 #define $ac_tr_func 1
7814 EOF
7815  
7816 else
7817   echo "$ac_t""no" 1>&6
7818 fi
7819 done
7820     
7821     fi  
7822   fi
7823
7824   
7825   
7826   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7827 echo "configure:7828: checking for qfpclass declaration" >&5
7828   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7829     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7830   echo $ac_n "(cached) $ac_c" 1>&6
7831 else
7832   
7833       
7834       ac_ext=C
7835 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7836 ac_cpp='$CXXCPP $CPPFLAGS'
7837 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7838 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7839 cross_compiling=$ac_cv_prog_cxx_cross
7840
7841       cat > conftest.$ac_ext <<EOF
7842 #line 7843 "configure"
7843 #include "confdefs.h"
7844 #include <math.h>
7845                       #ifdef HAVE_IEEEFP_H
7846                       #include <ieeefp.h>
7847                       #endif
7848                      
7849 int main() {
7850  qfpclass(0);
7851 ; return 0; }
7852 EOF
7853 if { (eval echo configure:7854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7854   rm -rf conftest*
7855   glibcpp_cv_func_qfpclass_use=yes
7856 else
7857   echo "configure: failed program was:" >&5
7858   cat conftest.$ac_ext >&5
7859   rm -rf conftest*
7860   glibcpp_cv_func_qfpclass_use=no
7861 fi
7862 rm -f conftest*
7863       ac_ext=c
7864 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7865 ac_cpp='$CPP $CPPFLAGS'
7866 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7867 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7868 cross_compiling=$ac_cv_prog_cc_cross
7869
7870     
7871 fi
7872
7873   fi
7874   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
7875
7876   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
7877     for ac_func in qfpclass
7878 do
7879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7880 echo "configure:7881: checking for $ac_func" >&5
7881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7882   echo $ac_n "(cached) $ac_c" 1>&6
7883 else
7884   cat > conftest.$ac_ext <<EOF
7885 #line 7886 "configure"
7886 #include "confdefs.h"
7887 /* System header to define __stub macros and hopefully few prototypes,
7888     which can conflict with char $ac_func(); below.  */
7889 #include <assert.h>
7890 /* Override any gcc2 internal prototype to avoid an error.  */
7891 /* We use char because int might match the return type of a gcc2
7892     builtin and then its argument prototype would still apply.  */
7893 char $ac_func();
7894
7895 int main() {
7896
7897 /* The GNU C library defines this for functions which it implements
7898     to always fail with ENOSYS.  Some functions are actually named
7899     something starting with __ and the normal name is an alias.  */
7900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7901 choke me
7902 #else
7903 $ac_func();
7904 #endif
7905
7906 ; return 0; }
7907 EOF
7908 if { (eval echo configure:7909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7909   rm -rf conftest*
7910   eval "ac_cv_func_$ac_func=yes"
7911 else
7912   echo "configure: failed program was:" >&5
7913   cat conftest.$ac_ext >&5
7914   rm -rf conftest*
7915   eval "ac_cv_func_$ac_func=no"
7916 fi
7917 rm -f conftest*
7918 fi
7919
7920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7921   echo "$ac_t""yes" 1>&6
7922     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7923   cat >> confdefs.h <<EOF
7924 #define $ac_tr_func 1
7925 EOF
7926  
7927 else
7928   echo "$ac_t""no" 1>&6
7929 fi
7930 done
7931     
7932   else
7933     
7934   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
7935 echo "configure:7936: checking for _qfpclass declaration" >&5
7936   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
7937     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
7938   echo $ac_n "(cached) $ac_c" 1>&6
7939 else
7940   
7941       
7942       ac_ext=C
7943 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7944 ac_cpp='$CXXCPP $CPPFLAGS'
7945 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7946 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7947 cross_compiling=$ac_cv_prog_cxx_cross
7948
7949       cat > conftest.$ac_ext <<EOF
7950 #line 7951 "configure"
7951 #include "confdefs.h"
7952 #include <math.h>
7953                       #ifdef HAVE_IEEEFP_H
7954                       #include <ieeefp.h>
7955                       #endif
7956                      
7957 int main() {
7958  _qfpclass(0);
7959 ; return 0; }
7960 EOF
7961 if { (eval echo configure:7962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7962   rm -rf conftest*
7963   glibcpp_cv_func__qfpclass_use=yes
7964 else
7965   echo "configure: failed program was:" >&5
7966   cat conftest.$ac_ext >&5
7967   rm -rf conftest*
7968   glibcpp_cv_func__qfpclass_use=no
7969 fi
7970 rm -f conftest*
7971       ac_ext=c
7972 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7973 ac_cpp='$CPP $CPPFLAGS'
7974 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7975 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7976 cross_compiling=$ac_cv_prog_cc_cross
7977
7978     
7979 fi
7980
7981   fi
7982   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
7983
7984     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
7985       for ac_func in _qfpclass
7986 do
7987 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7988 echo "configure:7989: checking for $ac_func" >&5
7989 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7990   echo $ac_n "(cached) $ac_c" 1>&6
7991 else
7992   cat > conftest.$ac_ext <<EOF
7993 #line 7994 "configure"
7994 #include "confdefs.h"
7995 /* System header to define __stub macros and hopefully few prototypes,
7996     which can conflict with char $ac_func(); below.  */
7997 #include <assert.h>
7998 /* Override any gcc2 internal prototype to avoid an error.  */
7999 /* We use char because int might match the return type of a gcc2
8000     builtin and then its argument prototype would still apply.  */
8001 char $ac_func();
8002
8003 int main() {
8004
8005 /* The GNU C library defines this for functions which it implements
8006     to always fail with ENOSYS.  Some functions are actually named
8007     something starting with __ and the normal name is an alias.  */
8008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8009 choke me
8010 #else
8011 $ac_func();
8012 #endif
8013
8014 ; return 0; }
8015 EOF
8016 if { (eval echo configure:8017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8017   rm -rf conftest*
8018   eval "ac_cv_func_$ac_func=yes"
8019 else
8020   echo "configure: failed program was:" >&5
8021   cat conftest.$ac_ext >&5
8022   rm -rf conftest*
8023   eval "ac_cv_func_$ac_func=no"
8024 fi
8025 rm -f conftest*
8026 fi
8027
8028 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8029   echo "$ac_t""yes" 1>&6
8030     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8031   cat >> confdefs.h <<EOF
8032 #define $ac_tr_func 1
8033 EOF
8034  
8035 else
8036   echo "$ac_t""no" 1>&6
8037 fi
8038 done
8039     
8040     fi  
8041   fi
8042
8043
8044     
8045   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
8046 echo "configure:8047: checking for float trig functions" >&5
8047   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
8048   echo $ac_n "(cached) $ac_c" 1>&6
8049 else
8050   
8051     
8052     ac_ext=C
8053 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8054 ac_cpp='$CXXCPP $CPPFLAGS'
8055 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8056 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8057 cross_compiling=$ac_cv_prog_cxx_cross
8058
8059     cat > conftest.$ac_ext <<EOF
8060 #line 8061 "configure"
8061 #include "confdefs.h"
8062 #include <math.h>
8063 int main() {
8064  `for x in acosf asinf atanf \
8065                                           cosf sinf tanf \
8066                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
8067 ; return 0; }
8068 EOF
8069 if { (eval echo configure:8070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8070   rm -rf conftest*
8071   glibcpp_cv_func_float_trig_use=yes
8072 else
8073   echo "configure: failed program was:" >&5
8074   cat conftest.$ac_ext >&5
8075   rm -rf conftest*
8076   glibcpp_cv_func_float_trig_use=no
8077 fi
8078 rm -f conftest*
8079     ac_ext=c
8080 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8081 ac_cpp='$CPP $CPPFLAGS'
8082 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8083 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8084 cross_compiling=$ac_cv_prog_cc_cross
8085
8086 fi
8087
8088   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
8089   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
8090     for ac_func in acosf asinf atanf \
8091                                           cosf sinf tanf \
8092                                           coshf sinhf tanhf
8093 do
8094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8095 echo "configure:8096: checking for $ac_func" >&5
8096 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8097   echo $ac_n "(cached) $ac_c" 1>&6
8098 else
8099   cat > conftest.$ac_ext <<EOF
8100 #line 8101 "configure"
8101 #include "confdefs.h"
8102 /* System header to define __stub macros and hopefully few prototypes,
8103     which can conflict with char $ac_func(); below.  */
8104 #include <assert.h>
8105 /* Override any gcc2 internal prototype to avoid an error.  */
8106 /* We use char because int might match the return type of a gcc2
8107     builtin and then its argument prototype would still apply.  */
8108 char $ac_func();
8109
8110 int main() {
8111
8112 /* The GNU C library defines this for functions which it implements
8113     to always fail with ENOSYS.  Some functions are actually named
8114     something starting with __ and the normal name is an alias.  */
8115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8116 choke me
8117 #else
8118 $ac_func();
8119 #endif
8120
8121 ; return 0; }
8122 EOF
8123 if { (eval echo configure:8124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8124   rm -rf conftest*
8125   eval "ac_cv_func_$ac_func=yes"
8126 else
8127   echo "configure: failed program was:" >&5
8128   cat conftest.$ac_ext >&5
8129   rm -rf conftest*
8130   eval "ac_cv_func_$ac_func=no"
8131 fi
8132 rm -f conftest*
8133 fi
8134
8135 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8136   echo "$ac_t""yes" 1>&6
8137     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8138   cat >> confdefs.h <<EOF
8139 #define $ac_tr_func 1
8140 EOF
8141  
8142 else
8143   echo "$ac_t""no" 1>&6
8144 fi
8145 done
8146
8147   fi
8148
8149   
8150   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
8151 echo "configure:8152: checking for float round functions" >&5
8152   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
8153   echo $ac_n "(cached) $ac_c" 1>&6
8154 else
8155   
8156     
8157     ac_ext=C
8158 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8159 ac_cpp='$CXXCPP $CPPFLAGS'
8160 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8161 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8162 cross_compiling=$ac_cv_prog_cxx_cross
8163
8164     cat > conftest.$ac_ext <<EOF
8165 #line 8166 "configure"
8166 #include "confdefs.h"
8167 #include <math.h>
8168 int main() {
8169  `for x in ceilf floorf; do echo "$x (0);"; done` 
8170 ; return 0; }
8171 EOF
8172 if { (eval echo configure:8173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8173   rm -rf conftest*
8174   glibcpp_cv_func_float_round_use=yes
8175 else
8176   echo "configure: failed program was:" >&5
8177   cat conftest.$ac_ext >&5
8178   rm -rf conftest*
8179   glibcpp_cv_func_float_round_use=no
8180 fi
8181 rm -f conftest*
8182     ac_ext=c
8183 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8184 ac_cpp='$CPP $CPPFLAGS'
8185 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8186 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8187 cross_compiling=$ac_cv_prog_cc_cross
8188
8189 fi
8190
8191   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
8192   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
8193     for ac_func in ceilf floorf
8194 do
8195 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8196 echo "configure:8197: checking for $ac_func" >&5
8197 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8198   echo $ac_n "(cached) $ac_c" 1>&6
8199 else
8200   cat > conftest.$ac_ext <<EOF
8201 #line 8202 "configure"
8202 #include "confdefs.h"
8203 /* System header to define __stub macros and hopefully few prototypes,
8204     which can conflict with char $ac_func(); below.  */
8205 #include <assert.h>
8206 /* Override any gcc2 internal prototype to avoid an error.  */
8207 /* We use char because int might match the return type of a gcc2
8208     builtin and then its argument prototype would still apply.  */
8209 char $ac_func();
8210
8211 int main() {
8212
8213 /* The GNU C library defines this for functions which it implements
8214     to always fail with ENOSYS.  Some functions are actually named
8215     something starting with __ and the normal name is an alias.  */
8216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8217 choke me
8218 #else
8219 $ac_func();
8220 #endif
8221
8222 ; return 0; }
8223 EOF
8224 if { (eval echo configure:8225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8225   rm -rf conftest*
8226   eval "ac_cv_func_$ac_func=yes"
8227 else
8228   echo "configure: failed program was:" >&5
8229   cat conftest.$ac_ext >&5
8230   rm -rf conftest*
8231   eval "ac_cv_func_$ac_func=no"
8232 fi
8233 rm -f conftest*
8234 fi
8235
8236 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8237   echo "$ac_t""yes" 1>&6
8238     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8239   cat >> confdefs.h <<EOF
8240 #define $ac_tr_func 1
8241 EOF
8242  
8243 else
8244   echo "$ac_t""no" 1>&6
8245 fi
8246 done
8247
8248   fi
8249
8250   
8251   
8252   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
8253 echo "configure:8254: checking for isnanf declaration" >&5
8254   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
8255     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
8256   echo $ac_n "(cached) $ac_c" 1>&6
8257 else
8258   
8259       
8260       ac_ext=C
8261 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8262 ac_cpp='$CXXCPP $CPPFLAGS'
8263 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8264 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8265 cross_compiling=$ac_cv_prog_cxx_cross
8266
8267       cat > conftest.$ac_ext <<EOF
8268 #line 8269 "configure"
8269 #include "confdefs.h"
8270 #include <math.h>
8271                       #ifdef HAVE_IEEEFP_H
8272                       #include <ieeefp.h>
8273                       #endif
8274                      
8275 int main() {
8276  isnanf(0);
8277 ; return 0; }
8278 EOF
8279 if { (eval echo configure:8280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8280   rm -rf conftest*
8281   glibcpp_cv_func_isnanf_use=yes
8282 else
8283   echo "configure: failed program was:" >&5
8284   cat conftest.$ac_ext >&5
8285   rm -rf conftest*
8286   glibcpp_cv_func_isnanf_use=no
8287 fi
8288 rm -f conftest*
8289       ac_ext=c
8290 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8291 ac_cpp='$CPP $CPPFLAGS'
8292 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8293 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8294 cross_compiling=$ac_cv_prog_cc_cross
8295
8296     
8297 fi
8298
8299   fi
8300   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
8301
8302   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
8303     for ac_func in isnanf
8304 do
8305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8306 echo "configure:8307: checking for $ac_func" >&5
8307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8308   echo $ac_n "(cached) $ac_c" 1>&6
8309 else
8310   cat > conftest.$ac_ext <<EOF
8311 #line 8312 "configure"
8312 #include "confdefs.h"
8313 /* System header to define __stub macros and hopefully few prototypes,
8314     which can conflict with char $ac_func(); below.  */
8315 #include <assert.h>
8316 /* Override any gcc2 internal prototype to avoid an error.  */
8317 /* We use char because int might match the return type of a gcc2
8318     builtin and then its argument prototype would still apply.  */
8319 char $ac_func();
8320
8321 int main() {
8322
8323 /* The GNU C library defines this for functions which it implements
8324     to always fail with ENOSYS.  Some functions are actually named
8325     something starting with __ and the normal name is an alias.  */
8326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8327 choke me
8328 #else
8329 $ac_func();
8330 #endif
8331
8332 ; return 0; }
8333 EOF
8334 if { (eval echo configure:8335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8335   rm -rf conftest*
8336   eval "ac_cv_func_$ac_func=yes"
8337 else
8338   echo "configure: failed program was:" >&5
8339   cat conftest.$ac_ext >&5
8340   rm -rf conftest*
8341   eval "ac_cv_func_$ac_func=no"
8342 fi
8343 rm -f conftest*
8344 fi
8345
8346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8347   echo "$ac_t""yes" 1>&6
8348     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8349   cat >> confdefs.h <<EOF
8350 #define $ac_tr_func 1
8351 EOF
8352  
8353 else
8354   echo "$ac_t""no" 1>&6
8355 fi
8356 done
8357     
8358   else
8359     
8360   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
8361 echo "configure:8362: checking for _isnanf declaration" >&5
8362   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
8363     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
8364   echo $ac_n "(cached) $ac_c" 1>&6
8365 else
8366   
8367       
8368       ac_ext=C
8369 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8370 ac_cpp='$CXXCPP $CPPFLAGS'
8371 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8372 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8373 cross_compiling=$ac_cv_prog_cxx_cross
8374
8375       cat > conftest.$ac_ext <<EOF
8376 #line 8377 "configure"
8377 #include "confdefs.h"
8378 #include <math.h>
8379                       #ifdef HAVE_IEEEFP_H
8380                       #include <ieeefp.h>
8381                       #endif
8382                      
8383 int main() {
8384  _isnanf(0);
8385 ; return 0; }
8386 EOF
8387 if { (eval echo configure:8388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8388   rm -rf conftest*
8389   glibcpp_cv_func__isnanf_use=yes
8390 else
8391   echo "configure: failed program was:" >&5
8392   cat conftest.$ac_ext >&5
8393   rm -rf conftest*
8394   glibcpp_cv_func__isnanf_use=no
8395 fi
8396 rm -f conftest*
8397       ac_ext=c
8398 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8399 ac_cpp='$CPP $CPPFLAGS'
8400 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8401 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8402 cross_compiling=$ac_cv_prog_cc_cross
8403
8404     
8405 fi
8406
8407   fi
8408   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
8409
8410     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
8411       for ac_func in _isnanf
8412 do
8413 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8414 echo "configure:8415: checking for $ac_func" >&5
8415 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8416   echo $ac_n "(cached) $ac_c" 1>&6
8417 else
8418   cat > conftest.$ac_ext <<EOF
8419 #line 8420 "configure"
8420 #include "confdefs.h"
8421 /* System header to define __stub macros and hopefully few prototypes,
8422     which can conflict with char $ac_func(); below.  */
8423 #include <assert.h>
8424 /* Override any gcc2 internal prototype to avoid an error.  */
8425 /* We use char because int might match the return type of a gcc2
8426     builtin and then its argument prototype would still apply.  */
8427 char $ac_func();
8428
8429 int main() {
8430
8431 /* The GNU C library defines this for functions which it implements
8432     to always fail with ENOSYS.  Some functions are actually named
8433     something starting with __ and the normal name is an alias.  */
8434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8435 choke me
8436 #else
8437 $ac_func();
8438 #endif
8439
8440 ; return 0; }
8441 EOF
8442 if { (eval echo configure:8443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8443   rm -rf conftest*
8444   eval "ac_cv_func_$ac_func=yes"
8445 else
8446   echo "configure: failed program was:" >&5
8447   cat conftest.$ac_ext >&5
8448   rm -rf conftest*
8449   eval "ac_cv_func_$ac_func=no"
8450 fi
8451 rm -f conftest*
8452 fi
8453
8454 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8455   echo "$ac_t""yes" 1>&6
8456     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8457   cat >> confdefs.h <<EOF
8458 #define $ac_tr_func 1
8459 EOF
8460  
8461 else
8462   echo "$ac_t""no" 1>&6
8463 fi
8464 done
8465     
8466     fi  
8467   fi
8468
8469   
8470   
8471   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
8472 echo "configure:8473: checking for isinff declaration" >&5
8473   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
8474     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
8475   echo $ac_n "(cached) $ac_c" 1>&6
8476 else
8477   
8478       
8479       ac_ext=C
8480 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8481 ac_cpp='$CXXCPP $CPPFLAGS'
8482 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8483 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8484 cross_compiling=$ac_cv_prog_cxx_cross
8485
8486       cat > conftest.$ac_ext <<EOF
8487 #line 8488 "configure"
8488 #include "confdefs.h"
8489 #include <math.h>
8490                       #ifdef HAVE_IEEEFP_H
8491                       #include <ieeefp.h>
8492                       #endif
8493                      
8494 int main() {
8495  isinff(0);
8496 ; return 0; }
8497 EOF
8498 if { (eval echo configure:8499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8499   rm -rf conftest*
8500   glibcpp_cv_func_isinff_use=yes
8501 else
8502   echo "configure: failed program was:" >&5
8503   cat conftest.$ac_ext >&5
8504   rm -rf conftest*
8505   glibcpp_cv_func_isinff_use=no
8506 fi
8507 rm -f conftest*
8508       ac_ext=c
8509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8510 ac_cpp='$CPP $CPPFLAGS'
8511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8512 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8513 cross_compiling=$ac_cv_prog_cc_cross
8514
8515     
8516 fi
8517
8518   fi
8519   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
8520
8521   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
8522     for ac_func in isinff
8523 do
8524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8525 echo "configure:8526: checking for $ac_func" >&5
8526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8527   echo $ac_n "(cached) $ac_c" 1>&6
8528 else
8529   cat > conftest.$ac_ext <<EOF
8530 #line 8531 "configure"
8531 #include "confdefs.h"
8532 /* System header to define __stub macros and hopefully few prototypes,
8533     which can conflict with char $ac_func(); below.  */
8534 #include <assert.h>
8535 /* Override any gcc2 internal prototype to avoid an error.  */
8536 /* We use char because int might match the return type of a gcc2
8537     builtin and then its argument prototype would still apply.  */
8538 char $ac_func();
8539
8540 int main() {
8541
8542 /* The GNU C library defines this for functions which it implements
8543     to always fail with ENOSYS.  Some functions are actually named
8544     something starting with __ and the normal name is an alias.  */
8545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8546 choke me
8547 #else
8548 $ac_func();
8549 #endif
8550
8551 ; return 0; }
8552 EOF
8553 if { (eval echo configure:8554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8554   rm -rf conftest*
8555   eval "ac_cv_func_$ac_func=yes"
8556 else
8557   echo "configure: failed program was:" >&5
8558   cat conftest.$ac_ext >&5
8559   rm -rf conftest*
8560   eval "ac_cv_func_$ac_func=no"
8561 fi
8562 rm -f conftest*
8563 fi
8564
8565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8566   echo "$ac_t""yes" 1>&6
8567     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8568   cat >> confdefs.h <<EOF
8569 #define $ac_tr_func 1
8570 EOF
8571  
8572 else
8573   echo "$ac_t""no" 1>&6
8574 fi
8575 done
8576     
8577   else
8578     
8579   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
8580 echo "configure:8581: checking for _isinff declaration" >&5
8581   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
8582     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
8583   echo $ac_n "(cached) $ac_c" 1>&6
8584 else
8585   
8586       
8587       ac_ext=C
8588 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8589 ac_cpp='$CXXCPP $CPPFLAGS'
8590 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8591 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8592 cross_compiling=$ac_cv_prog_cxx_cross
8593
8594       cat > conftest.$ac_ext <<EOF
8595 #line 8596 "configure"
8596 #include "confdefs.h"
8597 #include <math.h>
8598                       #ifdef HAVE_IEEEFP_H
8599                       #include <ieeefp.h>
8600                       #endif
8601                      
8602 int main() {
8603  _isinff(0);
8604 ; return 0; }
8605 EOF
8606 if { (eval echo configure:8607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8607   rm -rf conftest*
8608   glibcpp_cv_func__isinff_use=yes
8609 else
8610   echo "configure: failed program was:" >&5
8611   cat conftest.$ac_ext >&5
8612   rm -rf conftest*
8613   glibcpp_cv_func__isinff_use=no
8614 fi
8615 rm -f conftest*
8616       ac_ext=c
8617 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8618 ac_cpp='$CPP $CPPFLAGS'
8619 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8620 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8621 cross_compiling=$ac_cv_prog_cc_cross
8622
8623     
8624 fi
8625
8626   fi
8627   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8628
8629     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8630       for ac_func in _isinff
8631 do
8632 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8633 echo "configure:8634: checking for $ac_func" >&5
8634 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8635   echo $ac_n "(cached) $ac_c" 1>&6
8636 else
8637   cat > conftest.$ac_ext <<EOF
8638 #line 8639 "configure"
8639 #include "confdefs.h"
8640 /* System header to define __stub macros and hopefully few prototypes,
8641     which can conflict with char $ac_func(); below.  */
8642 #include <assert.h>
8643 /* Override any gcc2 internal prototype to avoid an error.  */
8644 /* We use char because int might match the return type of a gcc2
8645     builtin and then its argument prototype would still apply.  */
8646 char $ac_func();
8647
8648 int main() {
8649
8650 /* The GNU C library defines this for functions which it implements
8651     to always fail with ENOSYS.  Some functions are actually named
8652     something starting with __ and the normal name is an alias.  */
8653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8654 choke me
8655 #else
8656 $ac_func();
8657 #endif
8658
8659 ; return 0; }
8660 EOF
8661 if { (eval echo configure:8662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8662   rm -rf conftest*
8663   eval "ac_cv_func_$ac_func=yes"
8664 else
8665   echo "configure: failed program was:" >&5
8666   cat conftest.$ac_ext >&5
8667   rm -rf conftest*
8668   eval "ac_cv_func_$ac_func=no"
8669 fi
8670 rm -f conftest*
8671 fi
8672
8673 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8674   echo "$ac_t""yes" 1>&6
8675     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8676   cat >> confdefs.h <<EOF
8677 #define $ac_tr_func 1
8678 EOF
8679  
8680 else
8681   echo "$ac_t""no" 1>&6
8682 fi
8683 done
8684     
8685     fi  
8686   fi
8687
8688   
8689   
8690   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
8691 echo "configure:8692: checking for fabsf declaration" >&5
8692   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
8693     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
8694   echo $ac_n "(cached) $ac_c" 1>&6
8695 else
8696   
8697       
8698       ac_ext=C
8699 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8700 ac_cpp='$CXXCPP $CPPFLAGS'
8701 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8702 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8703 cross_compiling=$ac_cv_prog_cxx_cross
8704
8705       cat > conftest.$ac_ext <<EOF
8706 #line 8707 "configure"
8707 #include "confdefs.h"
8708 #include <math.h>
8709                       #ifdef HAVE_IEEEFP_H
8710                       #include <ieeefp.h>
8711                       #endif
8712                      
8713 int main() {
8714  fabsf(0);
8715 ; return 0; }
8716 EOF
8717 if { (eval echo configure:8718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8718   rm -rf conftest*
8719   glibcpp_cv_func_fabsf_use=yes
8720 else
8721   echo "configure: failed program was:" >&5
8722   cat conftest.$ac_ext >&5
8723   rm -rf conftest*
8724   glibcpp_cv_func_fabsf_use=no
8725 fi
8726 rm -f conftest*
8727       ac_ext=c
8728 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8729 ac_cpp='$CPP $CPPFLAGS'
8730 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8731 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8732 cross_compiling=$ac_cv_prog_cc_cross
8733
8734     
8735 fi
8736
8737   fi
8738   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
8739
8740   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
8741     for ac_func in fabsf
8742 do
8743 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8744 echo "configure:8745: checking for $ac_func" >&5
8745 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8746   echo $ac_n "(cached) $ac_c" 1>&6
8747 else
8748   cat > conftest.$ac_ext <<EOF
8749 #line 8750 "configure"
8750 #include "confdefs.h"
8751 /* System header to define __stub macros and hopefully few prototypes,
8752     which can conflict with char $ac_func(); below.  */
8753 #include <assert.h>
8754 /* Override any gcc2 internal prototype to avoid an error.  */
8755 /* We use char because int might match the return type of a gcc2
8756     builtin and then its argument prototype would still apply.  */
8757 char $ac_func();
8758
8759 int main() {
8760
8761 /* The GNU C library defines this for functions which it implements
8762     to always fail with ENOSYS.  Some functions are actually named
8763     something starting with __ and the normal name is an alias.  */
8764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8765 choke me
8766 #else
8767 $ac_func();
8768 #endif
8769
8770 ; return 0; }
8771 EOF
8772 if { (eval echo configure:8773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8773   rm -rf conftest*
8774   eval "ac_cv_func_$ac_func=yes"
8775 else
8776   echo "configure: failed program was:" >&5
8777   cat conftest.$ac_ext >&5
8778   rm -rf conftest*
8779   eval "ac_cv_func_$ac_func=no"
8780 fi
8781 rm -f conftest*
8782 fi
8783
8784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8785   echo "$ac_t""yes" 1>&6
8786     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8787   cat >> confdefs.h <<EOF
8788 #define $ac_tr_func 1
8789 EOF
8790  
8791 else
8792   echo "$ac_t""no" 1>&6
8793 fi
8794 done
8795     
8796   else
8797     
8798   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
8799 echo "configure:8800: checking for _fabsf declaration" >&5
8800   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
8801     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
8802   echo $ac_n "(cached) $ac_c" 1>&6
8803 else
8804   
8805       
8806       ac_ext=C
8807 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8808 ac_cpp='$CXXCPP $CPPFLAGS'
8809 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8810 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8811 cross_compiling=$ac_cv_prog_cxx_cross
8812
8813       cat > conftest.$ac_ext <<EOF
8814 #line 8815 "configure"
8815 #include "confdefs.h"
8816 #include <math.h>
8817                       #ifdef HAVE_IEEEFP_H
8818                       #include <ieeefp.h>
8819                       #endif
8820                      
8821 int main() {
8822  _fabsf(0);
8823 ; return 0; }
8824 EOF
8825 if { (eval echo configure:8826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8826   rm -rf conftest*
8827   glibcpp_cv_func__fabsf_use=yes
8828 else
8829   echo "configure: failed program was:" >&5
8830   cat conftest.$ac_ext >&5
8831   rm -rf conftest*
8832   glibcpp_cv_func__fabsf_use=no
8833 fi
8834 rm -f conftest*
8835       ac_ext=c
8836 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8837 ac_cpp='$CPP $CPPFLAGS'
8838 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8839 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8840 cross_compiling=$ac_cv_prog_cc_cross
8841
8842     
8843 fi
8844
8845   fi
8846   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
8847
8848     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
8849       for ac_func in _fabsf
8850 do
8851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8852 echo "configure:8853: checking for $ac_func" >&5
8853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8854   echo $ac_n "(cached) $ac_c" 1>&6
8855 else
8856   cat > conftest.$ac_ext <<EOF
8857 #line 8858 "configure"
8858 #include "confdefs.h"
8859 /* System header to define __stub macros and hopefully few prototypes,
8860     which can conflict with char $ac_func(); below.  */
8861 #include <assert.h>
8862 /* Override any gcc2 internal prototype to avoid an error.  */
8863 /* We use char because int might match the return type of a gcc2
8864     builtin and then its argument prototype would still apply.  */
8865 char $ac_func();
8866
8867 int main() {
8868
8869 /* The GNU C library defines this for functions which it implements
8870     to always fail with ENOSYS.  Some functions are actually named
8871     something starting with __ and the normal name is an alias.  */
8872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8873 choke me
8874 #else
8875 $ac_func();
8876 #endif
8877
8878 ; return 0; }
8879 EOF
8880 if { (eval echo configure:8881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8881   rm -rf conftest*
8882   eval "ac_cv_func_$ac_func=yes"
8883 else
8884   echo "configure: failed program was:" >&5
8885   cat conftest.$ac_ext >&5
8886   rm -rf conftest*
8887   eval "ac_cv_func_$ac_func=no"
8888 fi
8889 rm -f conftest*
8890 fi
8891
8892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8893   echo "$ac_t""yes" 1>&6
8894     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8895   cat >> confdefs.h <<EOF
8896 #define $ac_tr_func 1
8897 EOF
8898  
8899 else
8900   echo "$ac_t""no" 1>&6
8901 fi
8902 done
8903     
8904     fi  
8905   fi
8906
8907   
8908   
8909   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
8910 echo "configure:8911: checking for fmodf declaration" >&5
8911   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
8912     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
8913   echo $ac_n "(cached) $ac_c" 1>&6
8914 else
8915   
8916       
8917       ac_ext=C
8918 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8919 ac_cpp='$CXXCPP $CPPFLAGS'
8920 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8921 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8922 cross_compiling=$ac_cv_prog_cxx_cross
8923
8924       cat > conftest.$ac_ext <<EOF
8925 #line 8926 "configure"
8926 #include "confdefs.h"
8927 #include <math.h>
8928 int main() {
8929  fmodf(0, 0);
8930 ; return 0; }
8931 EOF
8932 if { (eval echo configure:8933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8933   rm -rf conftest*
8934   glibcpp_cv_func_fmodf_use=yes
8935 else
8936   echo "configure: failed program was:" >&5
8937   cat conftest.$ac_ext >&5
8938   rm -rf conftest*
8939   glibcpp_cv_func_fmodf_use=no
8940 fi
8941 rm -f conftest*
8942       ac_ext=c
8943 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8944 ac_cpp='$CPP $CPPFLAGS'
8945 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8946 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8947 cross_compiling=$ac_cv_prog_cc_cross
8948
8949     
8950 fi
8951
8952   fi
8953   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
8954
8955   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
8956     for ac_func in fmodf
8957 do
8958 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8959 echo "configure:8960: checking for $ac_func" >&5
8960 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8961   echo $ac_n "(cached) $ac_c" 1>&6
8962 else
8963   cat > conftest.$ac_ext <<EOF
8964 #line 8965 "configure"
8965 #include "confdefs.h"
8966 /* System header to define __stub macros and hopefully few prototypes,
8967     which can conflict with char $ac_func(); below.  */
8968 #include <assert.h>
8969 /* Override any gcc2 internal prototype to avoid an error.  */
8970 /* We use char because int might match the return type of a gcc2
8971     builtin and then its argument prototype would still apply.  */
8972 char $ac_func();
8973
8974 int main() {
8975
8976 /* The GNU C library defines this for functions which it implements
8977     to always fail with ENOSYS.  Some functions are actually named
8978     something starting with __ and the normal name is an alias.  */
8979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8980 choke me
8981 #else
8982 $ac_func();
8983 #endif
8984
8985 ; return 0; }
8986 EOF
8987 if { (eval echo configure:8988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8988   rm -rf conftest*
8989   eval "ac_cv_func_$ac_func=yes"
8990 else
8991   echo "configure: failed program was:" >&5
8992   cat conftest.$ac_ext >&5
8993   rm -rf conftest*
8994   eval "ac_cv_func_$ac_func=no"
8995 fi
8996 rm -f conftest*
8997 fi
8998
8999 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9000   echo "$ac_t""yes" 1>&6
9001     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9002   cat >> confdefs.h <<EOF
9003 #define $ac_tr_func 1
9004 EOF
9005  
9006 else
9007   echo "$ac_t""no" 1>&6
9008 fi
9009 done
9010     
9011   else
9012     
9013   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
9014 echo "configure:9015: checking for _fmodf declaration" >&5
9015   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
9016     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
9017   echo $ac_n "(cached) $ac_c" 1>&6
9018 else
9019   
9020       
9021       ac_ext=C
9022 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9023 ac_cpp='$CXXCPP $CPPFLAGS'
9024 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9025 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9026 cross_compiling=$ac_cv_prog_cxx_cross
9027
9028       cat > conftest.$ac_ext <<EOF
9029 #line 9030 "configure"
9030 #include "confdefs.h"
9031 #include <math.h>
9032 int main() {
9033  _fmodf(0, 0);
9034 ; return 0; }
9035 EOF
9036 if { (eval echo configure:9037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9037   rm -rf conftest*
9038   glibcpp_cv_func__fmodf_use=yes
9039 else
9040   echo "configure: failed program was:" >&5
9041   cat conftest.$ac_ext >&5
9042   rm -rf conftest*
9043   glibcpp_cv_func__fmodf_use=no
9044 fi
9045 rm -f conftest*
9046       ac_ext=c
9047 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9048 ac_cpp='$CPP $CPPFLAGS'
9049 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9050 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9051 cross_compiling=$ac_cv_prog_cc_cross
9052
9053     
9054 fi
9055
9056   fi
9057   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
9058
9059     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
9060       for ac_func in _fmodf
9061 do
9062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9063 echo "configure:9064: checking for $ac_func" >&5
9064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9065   echo $ac_n "(cached) $ac_c" 1>&6
9066 else
9067   cat > conftest.$ac_ext <<EOF
9068 #line 9069 "configure"
9069 #include "confdefs.h"
9070 /* System header to define __stub macros and hopefully few prototypes,
9071     which can conflict with char $ac_func(); below.  */
9072 #include <assert.h>
9073 /* Override any gcc2 internal prototype to avoid an error.  */
9074 /* We use char because int might match the return type of a gcc2
9075     builtin and then its argument prototype would still apply.  */
9076 char $ac_func();
9077
9078 int main() {
9079
9080 /* The GNU C library defines this for functions which it implements
9081     to always fail with ENOSYS.  Some functions are actually named
9082     something starting with __ and the normal name is an alias.  */
9083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9084 choke me
9085 #else
9086 $ac_func();
9087 #endif
9088
9089 ; return 0; }
9090 EOF
9091 if { (eval echo configure:9092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9092   rm -rf conftest*
9093   eval "ac_cv_func_$ac_func=yes"
9094 else
9095   echo "configure: failed program was:" >&5
9096   cat conftest.$ac_ext >&5
9097   rm -rf conftest*
9098   eval "ac_cv_func_$ac_func=no"
9099 fi
9100 rm -f conftest*
9101 fi
9102
9103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9104   echo "$ac_t""yes" 1>&6
9105     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9106   cat >> confdefs.h <<EOF
9107 #define $ac_tr_func 1
9108 EOF
9109  
9110 else
9111   echo "$ac_t""no" 1>&6
9112 fi
9113 done
9114     
9115     fi  
9116   fi
9117
9118   
9119   
9120   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
9121 echo "configure:9122: checking for frexpf declaration" >&5
9122   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
9123     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
9124   echo $ac_n "(cached) $ac_c" 1>&6
9125 else
9126   
9127       
9128       ac_ext=C
9129 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9130 ac_cpp='$CXXCPP $CPPFLAGS'
9131 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9132 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9133 cross_compiling=$ac_cv_prog_cxx_cross
9134
9135       cat > conftest.$ac_ext <<EOF
9136 #line 9137 "configure"
9137 #include "confdefs.h"
9138 #include <math.h>
9139 int main() {
9140  frexpf(0, 0);
9141 ; return 0; }
9142 EOF
9143 if { (eval echo configure:9144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9144   rm -rf conftest*
9145   glibcpp_cv_func_frexpf_use=yes
9146 else
9147   echo "configure: failed program was:" >&5
9148   cat conftest.$ac_ext >&5
9149   rm -rf conftest*
9150   glibcpp_cv_func_frexpf_use=no
9151 fi
9152 rm -f conftest*
9153       ac_ext=c
9154 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9155 ac_cpp='$CPP $CPPFLAGS'
9156 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9157 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9158 cross_compiling=$ac_cv_prog_cc_cross
9159
9160     
9161 fi
9162
9163   fi
9164   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
9165
9166   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
9167     for ac_func in frexpf
9168 do
9169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9170 echo "configure:9171: checking for $ac_func" >&5
9171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9172   echo $ac_n "(cached) $ac_c" 1>&6
9173 else
9174   cat > conftest.$ac_ext <<EOF
9175 #line 9176 "configure"
9176 #include "confdefs.h"
9177 /* System header to define __stub macros and hopefully few prototypes,
9178     which can conflict with char $ac_func(); below.  */
9179 #include <assert.h>
9180 /* Override any gcc2 internal prototype to avoid an error.  */
9181 /* We use char because int might match the return type of a gcc2
9182     builtin and then its argument prototype would still apply.  */
9183 char $ac_func();
9184
9185 int main() {
9186
9187 /* The GNU C library defines this for functions which it implements
9188     to always fail with ENOSYS.  Some functions are actually named
9189     something starting with __ and the normal name is an alias.  */
9190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9191 choke me
9192 #else
9193 $ac_func();
9194 #endif
9195
9196 ; return 0; }
9197 EOF
9198 if { (eval echo configure:9199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9199   rm -rf conftest*
9200   eval "ac_cv_func_$ac_func=yes"
9201 else
9202   echo "configure: failed program was:" >&5
9203   cat conftest.$ac_ext >&5
9204   rm -rf conftest*
9205   eval "ac_cv_func_$ac_func=no"
9206 fi
9207 rm -f conftest*
9208 fi
9209
9210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9211   echo "$ac_t""yes" 1>&6
9212     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9213   cat >> confdefs.h <<EOF
9214 #define $ac_tr_func 1
9215 EOF
9216  
9217 else
9218   echo "$ac_t""no" 1>&6
9219 fi
9220 done
9221     
9222   else
9223     
9224   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
9225 echo "configure:9226: checking for _frexpf declaration" >&5
9226   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
9227     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
9228   echo $ac_n "(cached) $ac_c" 1>&6
9229 else
9230   
9231       
9232       ac_ext=C
9233 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9234 ac_cpp='$CXXCPP $CPPFLAGS'
9235 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9236 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9237 cross_compiling=$ac_cv_prog_cxx_cross
9238
9239       cat > conftest.$ac_ext <<EOF
9240 #line 9241 "configure"
9241 #include "confdefs.h"
9242 #include <math.h>
9243 int main() {
9244  _frexpf(0, 0);
9245 ; return 0; }
9246 EOF
9247 if { (eval echo configure:9248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9248   rm -rf conftest*
9249   glibcpp_cv_func__frexpf_use=yes
9250 else
9251   echo "configure: failed program was:" >&5
9252   cat conftest.$ac_ext >&5
9253   rm -rf conftest*
9254   glibcpp_cv_func__frexpf_use=no
9255 fi
9256 rm -f conftest*
9257       ac_ext=c
9258 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9259 ac_cpp='$CPP $CPPFLAGS'
9260 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9261 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9262 cross_compiling=$ac_cv_prog_cc_cross
9263
9264     
9265 fi
9266
9267   fi
9268   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
9269
9270     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
9271       for ac_func in _frexpf
9272 do
9273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9274 echo "configure:9275: checking for $ac_func" >&5
9275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9276   echo $ac_n "(cached) $ac_c" 1>&6
9277 else
9278   cat > conftest.$ac_ext <<EOF
9279 #line 9280 "configure"
9280 #include "confdefs.h"
9281 /* System header to define __stub macros and hopefully few prototypes,
9282     which can conflict with char $ac_func(); below.  */
9283 #include <assert.h>
9284 /* Override any gcc2 internal prototype to avoid an error.  */
9285 /* We use char because int might match the return type of a gcc2
9286     builtin and then its argument prototype would still apply.  */
9287 char $ac_func();
9288
9289 int main() {
9290
9291 /* The GNU C library defines this for functions which it implements
9292     to always fail with ENOSYS.  Some functions are actually named
9293     something starting with __ and the normal name is an alias.  */
9294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9295 choke me
9296 #else
9297 $ac_func();
9298 #endif
9299
9300 ; return 0; }
9301 EOF
9302 if { (eval echo configure:9303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9303   rm -rf conftest*
9304   eval "ac_cv_func_$ac_func=yes"
9305 else
9306   echo "configure: failed program was:" >&5
9307   cat conftest.$ac_ext >&5
9308   rm -rf conftest*
9309   eval "ac_cv_func_$ac_func=no"
9310 fi
9311 rm -f conftest*
9312 fi
9313
9314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9315   echo "$ac_t""yes" 1>&6
9316     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9317   cat >> confdefs.h <<EOF
9318 #define $ac_tr_func 1
9319 EOF
9320  
9321 else
9322   echo "$ac_t""no" 1>&6
9323 fi
9324 done
9325     
9326     fi  
9327   fi
9328
9329   
9330   
9331   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
9332 echo "configure:9333: checking for ldexpf declaration" >&5
9333   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
9334     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
9335   echo $ac_n "(cached) $ac_c" 1>&6
9336 else
9337   
9338       
9339       ac_ext=C
9340 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9341 ac_cpp='$CXXCPP $CPPFLAGS'
9342 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9343 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9344 cross_compiling=$ac_cv_prog_cxx_cross
9345
9346       cat > conftest.$ac_ext <<EOF
9347 #line 9348 "configure"
9348 #include "confdefs.h"
9349 #include <math.h>
9350 int main() {
9351  ldexpf(0, 0);
9352 ; return 0; }
9353 EOF
9354 if { (eval echo configure:9355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9355   rm -rf conftest*
9356   glibcpp_cv_func_ldexpf_use=yes
9357 else
9358   echo "configure: failed program was:" >&5
9359   cat conftest.$ac_ext >&5
9360   rm -rf conftest*
9361   glibcpp_cv_func_ldexpf_use=no
9362 fi
9363 rm -f conftest*
9364       ac_ext=c
9365 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9366 ac_cpp='$CPP $CPPFLAGS'
9367 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9368 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9369 cross_compiling=$ac_cv_prog_cc_cross
9370
9371     
9372 fi
9373
9374   fi
9375   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
9376
9377   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
9378     for ac_func in ldexpf
9379 do
9380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9381 echo "configure:9382: checking for $ac_func" >&5
9382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9383   echo $ac_n "(cached) $ac_c" 1>&6
9384 else
9385   cat > conftest.$ac_ext <<EOF
9386 #line 9387 "configure"
9387 #include "confdefs.h"
9388 /* System header to define __stub macros and hopefully few prototypes,
9389     which can conflict with char $ac_func(); below.  */
9390 #include <assert.h>
9391 /* Override any gcc2 internal prototype to avoid an error.  */
9392 /* We use char because int might match the return type of a gcc2
9393     builtin and then its argument prototype would still apply.  */
9394 char $ac_func();
9395
9396 int main() {
9397
9398 /* The GNU C library defines this for functions which it implements
9399     to always fail with ENOSYS.  Some functions are actually named
9400     something starting with __ and the normal name is an alias.  */
9401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9402 choke me
9403 #else
9404 $ac_func();
9405 #endif
9406
9407 ; return 0; }
9408 EOF
9409 if { (eval echo configure:9410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9410   rm -rf conftest*
9411   eval "ac_cv_func_$ac_func=yes"
9412 else
9413   echo "configure: failed program was:" >&5
9414   cat conftest.$ac_ext >&5
9415   rm -rf conftest*
9416   eval "ac_cv_func_$ac_func=no"
9417 fi
9418 rm -f conftest*
9419 fi
9420
9421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9422   echo "$ac_t""yes" 1>&6
9423     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9424   cat >> confdefs.h <<EOF
9425 #define $ac_tr_func 1
9426 EOF
9427  
9428 else
9429   echo "$ac_t""no" 1>&6
9430 fi
9431 done
9432     
9433   else
9434     
9435   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
9436 echo "configure:9437: checking for _ldexpf declaration" >&5
9437   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
9438     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
9439   echo $ac_n "(cached) $ac_c" 1>&6
9440 else
9441   
9442       
9443       ac_ext=C
9444 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9445 ac_cpp='$CXXCPP $CPPFLAGS'
9446 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9447 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9448 cross_compiling=$ac_cv_prog_cxx_cross
9449
9450       cat > conftest.$ac_ext <<EOF
9451 #line 9452 "configure"
9452 #include "confdefs.h"
9453 #include <math.h>
9454 int main() {
9455  _ldexpf(0, 0);
9456 ; return 0; }
9457 EOF
9458 if { (eval echo configure:9459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9459   rm -rf conftest*
9460   glibcpp_cv_func__ldexpf_use=yes
9461 else
9462   echo "configure: failed program was:" >&5
9463   cat conftest.$ac_ext >&5
9464   rm -rf conftest*
9465   glibcpp_cv_func__ldexpf_use=no
9466 fi
9467 rm -f conftest*
9468       ac_ext=c
9469 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9470 ac_cpp='$CPP $CPPFLAGS'
9471 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9472 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9473 cross_compiling=$ac_cv_prog_cc_cross
9474
9475     
9476 fi
9477
9478   fi
9479   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
9480
9481     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
9482       for ac_func in _ldexpf
9483 do
9484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9485 echo "configure:9486: checking for $ac_func" >&5
9486 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9487   echo $ac_n "(cached) $ac_c" 1>&6
9488 else
9489   cat > conftest.$ac_ext <<EOF
9490 #line 9491 "configure"
9491 #include "confdefs.h"
9492 /* System header to define __stub macros and hopefully few prototypes,
9493     which can conflict with char $ac_func(); below.  */
9494 #include <assert.h>
9495 /* Override any gcc2 internal prototype to avoid an error.  */
9496 /* We use char because int might match the return type of a gcc2
9497     builtin and then its argument prototype would still apply.  */
9498 char $ac_func();
9499
9500 int main() {
9501
9502 /* The GNU C library defines this for functions which it implements
9503     to always fail with ENOSYS.  Some functions are actually named
9504     something starting with __ and the normal name is an alias.  */
9505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9506 choke me
9507 #else
9508 $ac_func();
9509 #endif
9510
9511 ; return 0; }
9512 EOF
9513 if { (eval echo configure:9514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9514   rm -rf conftest*
9515   eval "ac_cv_func_$ac_func=yes"
9516 else
9517   echo "configure: failed program was:" >&5
9518   cat conftest.$ac_ext >&5
9519   rm -rf conftest*
9520   eval "ac_cv_func_$ac_func=no"
9521 fi
9522 rm -f conftest*
9523 fi
9524
9525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9526   echo "$ac_t""yes" 1>&6
9527     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9528   cat >> confdefs.h <<EOF
9529 #define $ac_tr_func 1
9530 EOF
9531  
9532 else
9533   echo "$ac_t""no" 1>&6
9534 fi
9535 done
9536     
9537     fi  
9538   fi
9539
9540   
9541   
9542   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
9543 echo "configure:9544: checking for logf declaration" >&5
9544   if test x${glibcpp_cv_func_logf_use+set} != xset; then
9545     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
9546   echo $ac_n "(cached) $ac_c" 1>&6
9547 else
9548   
9549       
9550       ac_ext=C
9551 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9552 ac_cpp='$CXXCPP $CPPFLAGS'
9553 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9554 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9555 cross_compiling=$ac_cv_prog_cxx_cross
9556
9557       cat > conftest.$ac_ext <<EOF
9558 #line 9559 "configure"
9559 #include "confdefs.h"
9560 #include <math.h>
9561                       #ifdef HAVE_IEEEFP_H
9562                       #include <ieeefp.h>
9563                       #endif
9564                      
9565 int main() {
9566  logf(0);
9567 ; return 0; }
9568 EOF
9569 if { (eval echo configure:9570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9570   rm -rf conftest*
9571   glibcpp_cv_func_logf_use=yes
9572 else
9573   echo "configure: failed program was:" >&5
9574   cat conftest.$ac_ext >&5
9575   rm -rf conftest*
9576   glibcpp_cv_func_logf_use=no
9577 fi
9578 rm -f conftest*
9579       ac_ext=c
9580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9581 ac_cpp='$CPP $CPPFLAGS'
9582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9583 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9584 cross_compiling=$ac_cv_prog_cc_cross
9585
9586     
9587 fi
9588
9589   fi
9590   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
9591
9592   if test x$glibcpp_cv_func_logf_use = x"yes"; then
9593     for ac_func in logf
9594 do
9595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9596 echo "configure:9597: checking for $ac_func" >&5
9597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9598   echo $ac_n "(cached) $ac_c" 1>&6
9599 else
9600   cat > conftest.$ac_ext <<EOF
9601 #line 9602 "configure"
9602 #include "confdefs.h"
9603 /* System header to define __stub macros and hopefully few prototypes,
9604     which can conflict with char $ac_func(); below.  */
9605 #include <assert.h>
9606 /* Override any gcc2 internal prototype to avoid an error.  */
9607 /* We use char because int might match the return type of a gcc2
9608     builtin and then its argument prototype would still apply.  */
9609 char $ac_func();
9610
9611 int main() {
9612
9613 /* The GNU C library defines this for functions which it implements
9614     to always fail with ENOSYS.  Some functions are actually named
9615     something starting with __ and the normal name is an alias.  */
9616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9617 choke me
9618 #else
9619 $ac_func();
9620 #endif
9621
9622 ; return 0; }
9623 EOF
9624 if { (eval echo configure:9625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9625   rm -rf conftest*
9626   eval "ac_cv_func_$ac_func=yes"
9627 else
9628   echo "configure: failed program was:" >&5
9629   cat conftest.$ac_ext >&5
9630   rm -rf conftest*
9631   eval "ac_cv_func_$ac_func=no"
9632 fi
9633 rm -f conftest*
9634 fi
9635
9636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9637   echo "$ac_t""yes" 1>&6
9638     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9639   cat >> confdefs.h <<EOF
9640 #define $ac_tr_func 1
9641 EOF
9642  
9643 else
9644   echo "$ac_t""no" 1>&6
9645 fi
9646 done
9647     
9648   else
9649     
9650   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
9651 echo "configure:9652: checking for _logf declaration" >&5
9652   if test x${glibcpp_cv_func__logf_use+set} != xset; then
9653     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
9654   echo $ac_n "(cached) $ac_c" 1>&6
9655 else
9656   
9657       
9658       ac_ext=C
9659 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9660 ac_cpp='$CXXCPP $CPPFLAGS'
9661 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9662 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9663 cross_compiling=$ac_cv_prog_cxx_cross
9664
9665       cat > conftest.$ac_ext <<EOF
9666 #line 9667 "configure"
9667 #include "confdefs.h"
9668 #include <math.h>
9669                       #ifdef HAVE_IEEEFP_H
9670                       #include <ieeefp.h>
9671                       #endif
9672                      
9673 int main() {
9674  _logf(0);
9675 ; return 0; }
9676 EOF
9677 if { (eval echo configure:9678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9678   rm -rf conftest*
9679   glibcpp_cv_func__logf_use=yes
9680 else
9681   echo "configure: failed program was:" >&5
9682   cat conftest.$ac_ext >&5
9683   rm -rf conftest*
9684   glibcpp_cv_func__logf_use=no
9685 fi
9686 rm -f conftest*
9687       ac_ext=c
9688 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9689 ac_cpp='$CPP $CPPFLAGS'
9690 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9691 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9692 cross_compiling=$ac_cv_prog_cc_cross
9693
9694     
9695 fi
9696
9697   fi
9698   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
9699
9700     if test x$glibcpp_cv_func__logf_use = x"yes"; then
9701       for ac_func in _logf
9702 do
9703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9704 echo "configure:9705: checking for $ac_func" >&5
9705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9706   echo $ac_n "(cached) $ac_c" 1>&6
9707 else
9708   cat > conftest.$ac_ext <<EOF
9709 #line 9710 "configure"
9710 #include "confdefs.h"
9711 /* System header to define __stub macros and hopefully few prototypes,
9712     which can conflict with char $ac_func(); below.  */
9713 #include <assert.h>
9714 /* Override any gcc2 internal prototype to avoid an error.  */
9715 /* We use char because int might match the return type of a gcc2
9716     builtin and then its argument prototype would still apply.  */
9717 char $ac_func();
9718
9719 int main() {
9720
9721 /* The GNU C library defines this for functions which it implements
9722     to always fail with ENOSYS.  Some functions are actually named
9723     something starting with __ and the normal name is an alias.  */
9724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9725 choke me
9726 #else
9727 $ac_func();
9728 #endif
9729
9730 ; return 0; }
9731 EOF
9732 if { (eval echo configure:9733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9733   rm -rf conftest*
9734   eval "ac_cv_func_$ac_func=yes"
9735 else
9736   echo "configure: failed program was:" >&5
9737   cat conftest.$ac_ext >&5
9738   rm -rf conftest*
9739   eval "ac_cv_func_$ac_func=no"
9740 fi
9741 rm -f conftest*
9742 fi
9743
9744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9745   echo "$ac_t""yes" 1>&6
9746     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9747   cat >> confdefs.h <<EOF
9748 #define $ac_tr_func 1
9749 EOF
9750  
9751 else
9752   echo "$ac_t""no" 1>&6
9753 fi
9754 done
9755     
9756     fi  
9757   fi
9758
9759   
9760   
9761   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
9762 echo "configure:9763: checking for log10f declaration" >&5
9763   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
9764     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
9765   echo $ac_n "(cached) $ac_c" 1>&6
9766 else
9767   
9768       
9769       ac_ext=C
9770 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9771 ac_cpp='$CXXCPP $CPPFLAGS'
9772 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9773 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9774 cross_compiling=$ac_cv_prog_cxx_cross
9775
9776       cat > conftest.$ac_ext <<EOF
9777 #line 9778 "configure"
9778 #include "confdefs.h"
9779 #include <math.h>
9780                       #ifdef HAVE_IEEEFP_H
9781                       #include <ieeefp.h>
9782                       #endif
9783                      
9784 int main() {
9785  log10f(0);
9786 ; return 0; }
9787 EOF
9788 if { (eval echo configure:9789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9789   rm -rf conftest*
9790   glibcpp_cv_func_log10f_use=yes
9791 else
9792   echo "configure: failed program was:" >&5
9793   cat conftest.$ac_ext >&5
9794   rm -rf conftest*
9795   glibcpp_cv_func_log10f_use=no
9796 fi
9797 rm -f conftest*
9798       ac_ext=c
9799 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9800 ac_cpp='$CPP $CPPFLAGS'
9801 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9802 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9803 cross_compiling=$ac_cv_prog_cc_cross
9804
9805     
9806 fi
9807
9808   fi
9809   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
9810
9811   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
9812     for ac_func in log10f
9813 do
9814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9815 echo "configure:9816: checking for $ac_func" >&5
9816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9817   echo $ac_n "(cached) $ac_c" 1>&6
9818 else
9819   cat > conftest.$ac_ext <<EOF
9820 #line 9821 "configure"
9821 #include "confdefs.h"
9822 /* System header to define __stub macros and hopefully few prototypes,
9823     which can conflict with char $ac_func(); below.  */
9824 #include <assert.h>
9825 /* Override any gcc2 internal prototype to avoid an error.  */
9826 /* We use char because int might match the return type of a gcc2
9827     builtin and then its argument prototype would still apply.  */
9828 char $ac_func();
9829
9830 int main() {
9831
9832 /* The GNU C library defines this for functions which it implements
9833     to always fail with ENOSYS.  Some functions are actually named
9834     something starting with __ and the normal name is an alias.  */
9835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9836 choke me
9837 #else
9838 $ac_func();
9839 #endif
9840
9841 ; return 0; }
9842 EOF
9843 if { (eval echo configure:9844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9844   rm -rf conftest*
9845   eval "ac_cv_func_$ac_func=yes"
9846 else
9847   echo "configure: failed program was:" >&5
9848   cat conftest.$ac_ext >&5
9849   rm -rf conftest*
9850   eval "ac_cv_func_$ac_func=no"
9851 fi
9852 rm -f conftest*
9853 fi
9854
9855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9856   echo "$ac_t""yes" 1>&6
9857     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9858   cat >> confdefs.h <<EOF
9859 #define $ac_tr_func 1
9860 EOF
9861  
9862 else
9863   echo "$ac_t""no" 1>&6
9864 fi
9865 done
9866     
9867   else
9868     
9869   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
9870 echo "configure:9871: checking for _log10f declaration" >&5
9871   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
9872     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
9873   echo $ac_n "(cached) $ac_c" 1>&6
9874 else
9875   
9876       
9877       ac_ext=C
9878 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9879 ac_cpp='$CXXCPP $CPPFLAGS'
9880 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9881 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9882 cross_compiling=$ac_cv_prog_cxx_cross
9883
9884       cat > conftest.$ac_ext <<EOF
9885 #line 9886 "configure"
9886 #include "confdefs.h"
9887 #include <math.h>
9888                       #ifdef HAVE_IEEEFP_H
9889                       #include <ieeefp.h>
9890                       #endif
9891                      
9892 int main() {
9893  _log10f(0);
9894 ; return 0; }
9895 EOF
9896 if { (eval echo configure:9897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9897   rm -rf conftest*
9898   glibcpp_cv_func__log10f_use=yes
9899 else
9900   echo "configure: failed program was:" >&5
9901   cat conftest.$ac_ext >&5
9902   rm -rf conftest*
9903   glibcpp_cv_func__log10f_use=no
9904 fi
9905 rm -f conftest*
9906       ac_ext=c
9907 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9908 ac_cpp='$CPP $CPPFLAGS'
9909 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9910 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9911 cross_compiling=$ac_cv_prog_cc_cross
9912
9913     
9914 fi
9915
9916   fi
9917   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
9918
9919     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
9920       for ac_func in _log10f
9921 do
9922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9923 echo "configure:9924: checking for $ac_func" >&5
9924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9925   echo $ac_n "(cached) $ac_c" 1>&6
9926 else
9927   cat > conftest.$ac_ext <<EOF
9928 #line 9929 "configure"
9929 #include "confdefs.h"
9930 /* System header to define __stub macros and hopefully few prototypes,
9931     which can conflict with char $ac_func(); below.  */
9932 #include <assert.h>
9933 /* Override any gcc2 internal prototype to avoid an error.  */
9934 /* We use char because int might match the return type of a gcc2
9935     builtin and then its argument prototype would still apply.  */
9936 char $ac_func();
9937
9938 int main() {
9939
9940 /* The GNU C library defines this for functions which it implements
9941     to always fail with ENOSYS.  Some functions are actually named
9942     something starting with __ and the normal name is an alias.  */
9943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9944 choke me
9945 #else
9946 $ac_func();
9947 #endif
9948
9949 ; return 0; }
9950 EOF
9951 if { (eval echo configure:9952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9952   rm -rf conftest*
9953   eval "ac_cv_func_$ac_func=yes"
9954 else
9955   echo "configure: failed program was:" >&5
9956   cat conftest.$ac_ext >&5
9957   rm -rf conftest*
9958   eval "ac_cv_func_$ac_func=no"
9959 fi
9960 rm -f conftest*
9961 fi
9962
9963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9964   echo "$ac_t""yes" 1>&6
9965     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9966   cat >> confdefs.h <<EOF
9967 #define $ac_tr_func 1
9968 EOF
9969  
9970 else
9971   echo "$ac_t""no" 1>&6
9972 fi
9973 done
9974     
9975     fi  
9976   fi
9977
9978   
9979   
9980   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
9981 echo "configure:9982: checking for modff declaration" >&5
9982   if test x${glibcpp_cv_func_modff_use+set} != xset; then
9983     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
9984   echo $ac_n "(cached) $ac_c" 1>&6
9985 else
9986   
9987       
9988       ac_ext=C
9989 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9990 ac_cpp='$CXXCPP $CPPFLAGS'
9991 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9992 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9993 cross_compiling=$ac_cv_prog_cxx_cross
9994
9995       cat > conftest.$ac_ext <<EOF
9996 #line 9997 "configure"
9997 #include "confdefs.h"
9998 #include <math.h>
9999 int main() {
10000  modff(0, 0);
10001 ; return 0; }
10002 EOF
10003 if { (eval echo configure:10004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10004   rm -rf conftest*
10005   glibcpp_cv_func_modff_use=yes
10006 else
10007   echo "configure: failed program was:" >&5
10008   cat conftest.$ac_ext >&5
10009   rm -rf conftest*
10010   glibcpp_cv_func_modff_use=no
10011 fi
10012 rm -f conftest*
10013       ac_ext=c
10014 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10015 ac_cpp='$CPP $CPPFLAGS'
10016 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10017 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10018 cross_compiling=$ac_cv_prog_cc_cross
10019
10020     
10021 fi
10022
10023   fi
10024   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
10025
10026   if test x$glibcpp_cv_func_modff_use = x"yes"; then
10027     for ac_func in modff
10028 do
10029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10030 echo "configure:10031: checking for $ac_func" >&5
10031 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10032   echo $ac_n "(cached) $ac_c" 1>&6
10033 else
10034   cat > conftest.$ac_ext <<EOF
10035 #line 10036 "configure"
10036 #include "confdefs.h"
10037 /* System header to define __stub macros and hopefully few prototypes,
10038     which can conflict with char $ac_func(); below.  */
10039 #include <assert.h>
10040 /* Override any gcc2 internal prototype to avoid an error.  */
10041 /* We use char because int might match the return type of a gcc2
10042     builtin and then its argument prototype would still apply.  */
10043 char $ac_func();
10044
10045 int main() {
10046
10047 /* The GNU C library defines this for functions which it implements
10048     to always fail with ENOSYS.  Some functions are actually named
10049     something starting with __ and the normal name is an alias.  */
10050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10051 choke me
10052 #else
10053 $ac_func();
10054 #endif
10055
10056 ; return 0; }
10057 EOF
10058 if { (eval echo configure:10059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10059   rm -rf conftest*
10060   eval "ac_cv_func_$ac_func=yes"
10061 else
10062   echo "configure: failed program was:" >&5
10063   cat conftest.$ac_ext >&5
10064   rm -rf conftest*
10065   eval "ac_cv_func_$ac_func=no"
10066 fi
10067 rm -f conftest*
10068 fi
10069
10070 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10071   echo "$ac_t""yes" 1>&6
10072     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10073   cat >> confdefs.h <<EOF
10074 #define $ac_tr_func 1
10075 EOF
10076  
10077 else
10078   echo "$ac_t""no" 1>&6
10079 fi
10080 done
10081     
10082   else
10083     
10084   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
10085 echo "configure:10086: checking for _modff declaration" >&5
10086   if test x${glibcpp_cv_func__modff_use+set} != xset; then
10087     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
10088   echo $ac_n "(cached) $ac_c" 1>&6
10089 else
10090   
10091       
10092       ac_ext=C
10093 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10094 ac_cpp='$CXXCPP $CPPFLAGS'
10095 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10096 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10097 cross_compiling=$ac_cv_prog_cxx_cross
10098
10099       cat > conftest.$ac_ext <<EOF
10100 #line 10101 "configure"
10101 #include "confdefs.h"
10102 #include <math.h>
10103 int main() {
10104  _modff(0, 0);
10105 ; return 0; }
10106 EOF
10107 if { (eval echo configure:10108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10108   rm -rf conftest*
10109   glibcpp_cv_func__modff_use=yes
10110 else
10111   echo "configure: failed program was:" >&5
10112   cat conftest.$ac_ext >&5
10113   rm -rf conftest*
10114   glibcpp_cv_func__modff_use=no
10115 fi
10116 rm -f conftest*
10117       ac_ext=c
10118 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10119 ac_cpp='$CPP $CPPFLAGS'
10120 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10121 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10122 cross_compiling=$ac_cv_prog_cc_cross
10123
10124     
10125 fi
10126
10127   fi
10128   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
10129
10130     if test x$glibcpp_cv_func__modff_use = x"yes"; then
10131       for ac_func in _modff
10132 do
10133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10134 echo "configure:10135: checking for $ac_func" >&5
10135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10136   echo $ac_n "(cached) $ac_c" 1>&6
10137 else
10138   cat > conftest.$ac_ext <<EOF
10139 #line 10140 "configure"
10140 #include "confdefs.h"
10141 /* System header to define __stub macros and hopefully few prototypes,
10142     which can conflict with char $ac_func(); below.  */
10143 #include <assert.h>
10144 /* Override any gcc2 internal prototype to avoid an error.  */
10145 /* We use char because int might match the return type of a gcc2
10146     builtin and then its argument prototype would still apply.  */
10147 char $ac_func();
10148
10149 int main() {
10150
10151 /* The GNU C library defines this for functions which it implements
10152     to always fail with ENOSYS.  Some functions are actually named
10153     something starting with __ and the normal name is an alias.  */
10154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10155 choke me
10156 #else
10157 $ac_func();
10158 #endif
10159
10160 ; return 0; }
10161 EOF
10162 if { (eval echo configure:10163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10163   rm -rf conftest*
10164   eval "ac_cv_func_$ac_func=yes"
10165 else
10166   echo "configure: failed program was:" >&5
10167   cat conftest.$ac_ext >&5
10168   rm -rf conftest*
10169   eval "ac_cv_func_$ac_func=no"
10170 fi
10171 rm -f conftest*
10172 fi
10173
10174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10175   echo "$ac_t""yes" 1>&6
10176     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10177   cat >> confdefs.h <<EOF
10178 #define $ac_tr_func 1
10179 EOF
10180  
10181 else
10182   echo "$ac_t""no" 1>&6
10183 fi
10184 done
10185     
10186     fi  
10187   fi
10188
10189   
10190   
10191   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
10192 echo "configure:10193: checking for powf declaration" >&5
10193   if test x${glibcpp_cv_func_powf_use+set} != xset; then
10194     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
10195   echo $ac_n "(cached) $ac_c" 1>&6
10196 else
10197   
10198       
10199       ac_ext=C
10200 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10201 ac_cpp='$CXXCPP $CPPFLAGS'
10202 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10203 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10204 cross_compiling=$ac_cv_prog_cxx_cross
10205
10206       cat > conftest.$ac_ext <<EOF
10207 #line 10208 "configure"
10208 #include "confdefs.h"
10209 #include <math.h>
10210 int main() {
10211  powf(0, 0);
10212 ; return 0; }
10213 EOF
10214 if { (eval echo configure:10215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10215   rm -rf conftest*
10216   glibcpp_cv_func_powf_use=yes
10217 else
10218   echo "configure: failed program was:" >&5
10219   cat conftest.$ac_ext >&5
10220   rm -rf conftest*
10221   glibcpp_cv_func_powf_use=no
10222 fi
10223 rm -f conftest*
10224       ac_ext=c
10225 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10226 ac_cpp='$CPP $CPPFLAGS'
10227 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10228 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10229 cross_compiling=$ac_cv_prog_cc_cross
10230
10231     
10232 fi
10233
10234   fi
10235   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
10236
10237   if test x$glibcpp_cv_func_powf_use = x"yes"; then
10238     for ac_func in powf
10239 do
10240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10241 echo "configure:10242: checking for $ac_func" >&5
10242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10243   echo $ac_n "(cached) $ac_c" 1>&6
10244 else
10245   cat > conftest.$ac_ext <<EOF
10246 #line 10247 "configure"
10247 #include "confdefs.h"
10248 /* System header to define __stub macros and hopefully few prototypes,
10249     which can conflict with char $ac_func(); below.  */
10250 #include <assert.h>
10251 /* Override any gcc2 internal prototype to avoid an error.  */
10252 /* We use char because int might match the return type of a gcc2
10253     builtin and then its argument prototype would still apply.  */
10254 char $ac_func();
10255
10256 int main() {
10257
10258 /* The GNU C library defines this for functions which it implements
10259     to always fail with ENOSYS.  Some functions are actually named
10260     something starting with __ and the normal name is an alias.  */
10261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10262 choke me
10263 #else
10264 $ac_func();
10265 #endif
10266
10267 ; return 0; }
10268 EOF
10269 if { (eval echo configure:10270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10270   rm -rf conftest*
10271   eval "ac_cv_func_$ac_func=yes"
10272 else
10273   echo "configure: failed program was:" >&5
10274   cat conftest.$ac_ext >&5
10275   rm -rf conftest*
10276   eval "ac_cv_func_$ac_func=no"
10277 fi
10278 rm -f conftest*
10279 fi
10280
10281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10282   echo "$ac_t""yes" 1>&6
10283     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10284   cat >> confdefs.h <<EOF
10285 #define $ac_tr_func 1
10286 EOF
10287  
10288 else
10289   echo "$ac_t""no" 1>&6
10290 fi
10291 done
10292     
10293   else
10294     
10295   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
10296 echo "configure:10297: checking for _powf declaration" >&5
10297   if test x${glibcpp_cv_func__powf_use+set} != xset; then
10298     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
10299   echo $ac_n "(cached) $ac_c" 1>&6
10300 else
10301   
10302       
10303       ac_ext=C
10304 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10305 ac_cpp='$CXXCPP $CPPFLAGS'
10306 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10307 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10308 cross_compiling=$ac_cv_prog_cxx_cross
10309
10310       cat > conftest.$ac_ext <<EOF
10311 #line 10312 "configure"
10312 #include "confdefs.h"
10313 #include <math.h>
10314 int main() {
10315  _powf(0, 0);
10316 ; return 0; }
10317 EOF
10318 if { (eval echo configure:10319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10319   rm -rf conftest*
10320   glibcpp_cv_func__powf_use=yes
10321 else
10322   echo "configure: failed program was:" >&5
10323   cat conftest.$ac_ext >&5
10324   rm -rf conftest*
10325   glibcpp_cv_func__powf_use=no
10326 fi
10327 rm -f conftest*
10328       ac_ext=c
10329 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10330 ac_cpp='$CPP $CPPFLAGS'
10331 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10332 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10333 cross_compiling=$ac_cv_prog_cc_cross
10334
10335     
10336 fi
10337
10338   fi
10339   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
10340
10341     if test x$glibcpp_cv_func__powf_use = x"yes"; then
10342       for ac_func in _powf
10343 do
10344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10345 echo "configure:10346: checking for $ac_func" >&5
10346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10347   echo $ac_n "(cached) $ac_c" 1>&6
10348 else
10349   cat > conftest.$ac_ext <<EOF
10350 #line 10351 "configure"
10351 #include "confdefs.h"
10352 /* System header to define __stub macros and hopefully few prototypes,
10353     which can conflict with char $ac_func(); below.  */
10354 #include <assert.h>
10355 /* Override any gcc2 internal prototype to avoid an error.  */
10356 /* We use char because int might match the return type of a gcc2
10357     builtin and then its argument prototype would still apply.  */
10358 char $ac_func();
10359
10360 int main() {
10361
10362 /* The GNU C library defines this for functions which it implements
10363     to always fail with ENOSYS.  Some functions are actually named
10364     something starting with __ and the normal name is an alias.  */
10365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10366 choke me
10367 #else
10368 $ac_func();
10369 #endif
10370
10371 ; return 0; }
10372 EOF
10373 if { (eval echo configure:10374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10374   rm -rf conftest*
10375   eval "ac_cv_func_$ac_func=yes"
10376 else
10377   echo "configure: failed program was:" >&5
10378   cat conftest.$ac_ext >&5
10379   rm -rf conftest*
10380   eval "ac_cv_func_$ac_func=no"
10381 fi
10382 rm -f conftest*
10383 fi
10384
10385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10386   echo "$ac_t""yes" 1>&6
10387     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10388   cat >> confdefs.h <<EOF
10389 #define $ac_tr_func 1
10390 EOF
10391  
10392 else
10393   echo "$ac_t""no" 1>&6
10394 fi
10395 done
10396     
10397     fi  
10398   fi
10399
10400   
10401   
10402   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
10403 echo "configure:10404: checking for sqrtf declaration" >&5
10404   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
10405     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
10406   echo $ac_n "(cached) $ac_c" 1>&6
10407 else
10408   
10409       
10410       ac_ext=C
10411 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10412 ac_cpp='$CXXCPP $CPPFLAGS'
10413 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10414 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10415 cross_compiling=$ac_cv_prog_cxx_cross
10416
10417       cat > conftest.$ac_ext <<EOF
10418 #line 10419 "configure"
10419 #include "confdefs.h"
10420 #include <math.h>
10421                       #ifdef HAVE_IEEEFP_H
10422                       #include <ieeefp.h>
10423                       #endif
10424                      
10425 int main() {
10426  sqrtf(0);
10427 ; return 0; }
10428 EOF
10429 if { (eval echo configure:10430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10430   rm -rf conftest*
10431   glibcpp_cv_func_sqrtf_use=yes
10432 else
10433   echo "configure: failed program was:" >&5
10434   cat conftest.$ac_ext >&5
10435   rm -rf conftest*
10436   glibcpp_cv_func_sqrtf_use=no
10437 fi
10438 rm -f conftest*
10439       ac_ext=c
10440 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10441 ac_cpp='$CPP $CPPFLAGS'
10442 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10443 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10444 cross_compiling=$ac_cv_prog_cc_cross
10445
10446     
10447 fi
10448
10449   fi
10450   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
10451
10452   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
10453     for ac_func in sqrtf
10454 do
10455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10456 echo "configure:10457: checking for $ac_func" >&5
10457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10458   echo $ac_n "(cached) $ac_c" 1>&6
10459 else
10460   cat > conftest.$ac_ext <<EOF
10461 #line 10462 "configure"
10462 #include "confdefs.h"
10463 /* System header to define __stub macros and hopefully few prototypes,
10464     which can conflict with char $ac_func(); below.  */
10465 #include <assert.h>
10466 /* Override any gcc2 internal prototype to avoid an error.  */
10467 /* We use char because int might match the return type of a gcc2
10468     builtin and then its argument prototype would still apply.  */
10469 char $ac_func();
10470
10471 int main() {
10472
10473 /* The GNU C library defines this for functions which it implements
10474     to always fail with ENOSYS.  Some functions are actually named
10475     something starting with __ and the normal name is an alias.  */
10476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10477 choke me
10478 #else
10479 $ac_func();
10480 #endif
10481
10482 ; return 0; }
10483 EOF
10484 if { (eval echo configure:10485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10485   rm -rf conftest*
10486   eval "ac_cv_func_$ac_func=yes"
10487 else
10488   echo "configure: failed program was:" >&5
10489   cat conftest.$ac_ext >&5
10490   rm -rf conftest*
10491   eval "ac_cv_func_$ac_func=no"
10492 fi
10493 rm -f conftest*
10494 fi
10495
10496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10497   echo "$ac_t""yes" 1>&6
10498     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10499   cat >> confdefs.h <<EOF
10500 #define $ac_tr_func 1
10501 EOF
10502  
10503 else
10504   echo "$ac_t""no" 1>&6
10505 fi
10506 done
10507     
10508   else
10509     
10510   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
10511 echo "configure:10512: checking for _sqrtf declaration" >&5
10512   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
10513     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
10514   echo $ac_n "(cached) $ac_c" 1>&6
10515 else
10516   
10517       
10518       ac_ext=C
10519 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10520 ac_cpp='$CXXCPP $CPPFLAGS'
10521 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10522 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10523 cross_compiling=$ac_cv_prog_cxx_cross
10524
10525       cat > conftest.$ac_ext <<EOF
10526 #line 10527 "configure"
10527 #include "confdefs.h"
10528 #include <math.h>
10529                       #ifdef HAVE_IEEEFP_H
10530                       #include <ieeefp.h>
10531                       #endif
10532                      
10533 int main() {
10534  _sqrtf(0);
10535 ; return 0; }
10536 EOF
10537 if { (eval echo configure:10538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10538   rm -rf conftest*
10539   glibcpp_cv_func__sqrtf_use=yes
10540 else
10541   echo "configure: failed program was:" >&5
10542   cat conftest.$ac_ext >&5
10543   rm -rf conftest*
10544   glibcpp_cv_func__sqrtf_use=no
10545 fi
10546 rm -f conftest*
10547       ac_ext=c
10548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10549 ac_cpp='$CPP $CPPFLAGS'
10550 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10551 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10552 cross_compiling=$ac_cv_prog_cc_cross
10553
10554     
10555 fi
10556
10557   fi
10558   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
10559
10560     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
10561       for ac_func in _sqrtf
10562 do
10563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10564 echo "configure:10565: checking for $ac_func" >&5
10565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10566   echo $ac_n "(cached) $ac_c" 1>&6
10567 else
10568   cat > conftest.$ac_ext <<EOF
10569 #line 10570 "configure"
10570 #include "confdefs.h"
10571 /* System header to define __stub macros and hopefully few prototypes,
10572     which can conflict with char $ac_func(); below.  */
10573 #include <assert.h>
10574 /* Override any gcc2 internal prototype to avoid an error.  */
10575 /* We use char because int might match the return type of a gcc2
10576     builtin and then its argument prototype would still apply.  */
10577 char $ac_func();
10578
10579 int main() {
10580
10581 /* The GNU C library defines this for functions which it implements
10582     to always fail with ENOSYS.  Some functions are actually named
10583     something starting with __ and the normal name is an alias.  */
10584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10585 choke me
10586 #else
10587 $ac_func();
10588 #endif
10589
10590 ; return 0; }
10591 EOF
10592 if { (eval echo configure:10593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10593   rm -rf conftest*
10594   eval "ac_cv_func_$ac_func=yes"
10595 else
10596   echo "configure: failed program was:" >&5
10597   cat conftest.$ac_ext >&5
10598   rm -rf conftest*
10599   eval "ac_cv_func_$ac_func=no"
10600 fi
10601 rm -f conftest*
10602 fi
10603
10604 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10605   echo "$ac_t""yes" 1>&6
10606     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10607   cat >> confdefs.h <<EOF
10608 #define $ac_tr_func 1
10609 EOF
10610  
10611 else
10612   echo "$ac_t""no" 1>&6
10613 fi
10614 done
10615     
10616     fi  
10617   fi
10618
10619   
10620   
10621   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
10622 echo "configure:10623: checking for sincosf declaration" >&5
10623   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
10624     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
10625   echo $ac_n "(cached) $ac_c" 1>&6
10626 else
10627   
10628       
10629       ac_ext=C
10630 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10631 ac_cpp='$CXXCPP $CPPFLAGS'
10632 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10633 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10634 cross_compiling=$ac_cv_prog_cxx_cross
10635
10636       cat > conftest.$ac_ext <<EOF
10637 #line 10638 "configure"
10638 #include "confdefs.h"
10639 #include <math.h>
10640 int main() {
10641  sincosf(0, 0, 0);
10642 ; return 0; }
10643 EOF
10644 if { (eval echo configure:10645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10645   rm -rf conftest*
10646   glibcpp_cv_func_sincosf_use=yes
10647 else
10648   echo "configure: failed program was:" >&5
10649   cat conftest.$ac_ext >&5
10650   rm -rf conftest*
10651   glibcpp_cv_func_sincosf_use=no
10652 fi
10653 rm -f conftest*
10654       ac_ext=c
10655 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10656 ac_cpp='$CPP $CPPFLAGS'
10657 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10658 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10659 cross_compiling=$ac_cv_prog_cc_cross
10660
10661     
10662 fi
10663
10664   fi
10665   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
10666
10667   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
10668     for ac_func in sincosf
10669 do
10670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10671 echo "configure:10672: checking for $ac_func" >&5
10672 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10673   echo $ac_n "(cached) $ac_c" 1>&6
10674 else
10675   cat > conftest.$ac_ext <<EOF
10676 #line 10677 "configure"
10677 #include "confdefs.h"
10678 /* System header to define __stub macros and hopefully few prototypes,
10679     which can conflict with char $ac_func(); below.  */
10680 #include <assert.h>
10681 /* Override any gcc2 internal prototype to avoid an error.  */
10682 /* We use char because int might match the return type of a gcc2
10683     builtin and then its argument prototype would still apply.  */
10684 char $ac_func();
10685
10686 int main() {
10687
10688 /* The GNU C library defines this for functions which it implements
10689     to always fail with ENOSYS.  Some functions are actually named
10690     something starting with __ and the normal name is an alias.  */
10691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10692 choke me
10693 #else
10694 $ac_func();
10695 #endif
10696
10697 ; return 0; }
10698 EOF
10699 if { (eval echo configure:10700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10700   rm -rf conftest*
10701   eval "ac_cv_func_$ac_func=yes"
10702 else
10703   echo "configure: failed program was:" >&5
10704   cat conftest.$ac_ext >&5
10705   rm -rf conftest*
10706   eval "ac_cv_func_$ac_func=no"
10707 fi
10708 rm -f conftest*
10709 fi
10710
10711 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10712   echo "$ac_t""yes" 1>&6
10713     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10714   cat >> confdefs.h <<EOF
10715 #define $ac_tr_func 1
10716 EOF
10717  
10718 else
10719   echo "$ac_t""no" 1>&6
10720 fi
10721 done
10722     
10723   else
10724     
10725   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
10726 echo "configure:10727: checking for _sincosf declaration" >&5
10727   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
10728     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
10729   echo $ac_n "(cached) $ac_c" 1>&6
10730 else
10731   
10732       
10733       ac_ext=C
10734 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10735 ac_cpp='$CXXCPP $CPPFLAGS'
10736 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10737 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10738 cross_compiling=$ac_cv_prog_cxx_cross
10739
10740       cat > conftest.$ac_ext <<EOF
10741 #line 10742 "configure"
10742 #include "confdefs.h"
10743 #include <math.h>
10744 int main() {
10745  _sincosf(0, 0, 0);
10746 ; return 0; }
10747 EOF
10748 if { (eval echo configure:10749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10749   rm -rf conftest*
10750   glibcpp_cv_func__sincosf_use=yes
10751 else
10752   echo "configure: failed program was:" >&5
10753   cat conftest.$ac_ext >&5
10754   rm -rf conftest*
10755   glibcpp_cv_func__sincosf_use=no
10756 fi
10757 rm -f conftest*
10758       ac_ext=c
10759 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10760 ac_cpp='$CPP $CPPFLAGS'
10761 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10762 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10763 cross_compiling=$ac_cv_prog_cc_cross
10764
10765     
10766 fi
10767
10768   fi
10769   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
10770
10771     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
10772       for ac_func in _sincosf
10773 do
10774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10775 echo "configure:10776: checking for $ac_func" >&5
10776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10777   echo $ac_n "(cached) $ac_c" 1>&6
10778 else
10779   cat > conftest.$ac_ext <<EOF
10780 #line 10781 "configure"
10781 #include "confdefs.h"
10782 /* System header to define __stub macros and hopefully few prototypes,
10783     which can conflict with char $ac_func(); below.  */
10784 #include <assert.h>
10785 /* Override any gcc2 internal prototype to avoid an error.  */
10786 /* We use char because int might match the return type of a gcc2
10787     builtin and then its argument prototype would still apply.  */
10788 char $ac_func();
10789
10790 int main() {
10791
10792 /* The GNU C library defines this for functions which it implements
10793     to always fail with ENOSYS.  Some functions are actually named
10794     something starting with __ and the normal name is an alias.  */
10795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10796 choke me
10797 #else
10798 $ac_func();
10799 #endif
10800
10801 ; return 0; }
10802 EOF
10803 if { (eval echo configure:10804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10804   rm -rf conftest*
10805   eval "ac_cv_func_$ac_func=yes"
10806 else
10807   echo "configure: failed program was:" >&5
10808   cat conftest.$ac_ext >&5
10809   rm -rf conftest*
10810   eval "ac_cv_func_$ac_func=no"
10811 fi
10812 rm -f conftest*
10813 fi
10814
10815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10816   echo "$ac_t""yes" 1>&6
10817     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10818   cat >> confdefs.h <<EOF
10819 #define $ac_tr_func 1
10820 EOF
10821  
10822 else
10823   echo "$ac_t""no" 1>&6
10824 fi
10825 done
10826     
10827     fi  
10828   fi
10829
10830   
10831   
10832   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
10833 echo "configure:10834: checking for finitef declaration" >&5
10834   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
10835     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
10836   echo $ac_n "(cached) $ac_c" 1>&6
10837 else
10838   
10839       
10840       ac_ext=C
10841 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10842 ac_cpp='$CXXCPP $CPPFLAGS'
10843 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10844 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10845 cross_compiling=$ac_cv_prog_cxx_cross
10846
10847       cat > conftest.$ac_ext <<EOF
10848 #line 10849 "configure"
10849 #include "confdefs.h"
10850 #include <math.h>
10851                       #ifdef HAVE_IEEEFP_H
10852                       #include <ieeefp.h>
10853                       #endif
10854                      
10855 int main() {
10856  finitef(0);
10857 ; return 0; }
10858 EOF
10859 if { (eval echo configure:10860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10860   rm -rf conftest*
10861   glibcpp_cv_func_finitef_use=yes
10862 else
10863   echo "configure: failed program was:" >&5
10864   cat conftest.$ac_ext >&5
10865   rm -rf conftest*
10866   glibcpp_cv_func_finitef_use=no
10867 fi
10868 rm -f conftest*
10869       ac_ext=c
10870 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10871 ac_cpp='$CPP $CPPFLAGS'
10872 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10873 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10874 cross_compiling=$ac_cv_prog_cc_cross
10875
10876     
10877 fi
10878
10879   fi
10880   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
10881
10882   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
10883     for ac_func in finitef
10884 do
10885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10886 echo "configure:10887: checking for $ac_func" >&5
10887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10888   echo $ac_n "(cached) $ac_c" 1>&6
10889 else
10890   cat > conftest.$ac_ext <<EOF
10891 #line 10892 "configure"
10892 #include "confdefs.h"
10893 /* System header to define __stub macros and hopefully few prototypes,
10894     which can conflict with char $ac_func(); below.  */
10895 #include <assert.h>
10896 /* Override any gcc2 internal prototype to avoid an error.  */
10897 /* We use char because int might match the return type of a gcc2
10898     builtin and then its argument prototype would still apply.  */
10899 char $ac_func();
10900
10901 int main() {
10902
10903 /* The GNU C library defines this for functions which it implements
10904     to always fail with ENOSYS.  Some functions are actually named
10905     something starting with __ and the normal name is an alias.  */
10906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10907 choke me
10908 #else
10909 $ac_func();
10910 #endif
10911
10912 ; return 0; }
10913 EOF
10914 if { (eval echo configure:10915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10915   rm -rf conftest*
10916   eval "ac_cv_func_$ac_func=yes"
10917 else
10918   echo "configure: failed program was:" >&5
10919   cat conftest.$ac_ext >&5
10920   rm -rf conftest*
10921   eval "ac_cv_func_$ac_func=no"
10922 fi
10923 rm -f conftest*
10924 fi
10925
10926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10927   echo "$ac_t""yes" 1>&6
10928     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10929   cat >> confdefs.h <<EOF
10930 #define $ac_tr_func 1
10931 EOF
10932  
10933 else
10934   echo "$ac_t""no" 1>&6
10935 fi
10936 done
10937     
10938   else
10939     
10940   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
10941 echo "configure:10942: checking for _finitef declaration" >&5
10942   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
10943     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
10944   echo $ac_n "(cached) $ac_c" 1>&6
10945 else
10946   
10947       
10948       ac_ext=C
10949 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10950 ac_cpp='$CXXCPP $CPPFLAGS'
10951 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10952 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10953 cross_compiling=$ac_cv_prog_cxx_cross
10954
10955       cat > conftest.$ac_ext <<EOF
10956 #line 10957 "configure"
10957 #include "confdefs.h"
10958 #include <math.h>
10959                       #ifdef HAVE_IEEEFP_H
10960                       #include <ieeefp.h>
10961                       #endif
10962                      
10963 int main() {
10964  _finitef(0);
10965 ; return 0; }
10966 EOF
10967 if { (eval echo configure:10968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10968   rm -rf conftest*
10969   glibcpp_cv_func__finitef_use=yes
10970 else
10971   echo "configure: failed program was:" >&5
10972   cat conftest.$ac_ext >&5
10973   rm -rf conftest*
10974   glibcpp_cv_func__finitef_use=no
10975 fi
10976 rm -f conftest*
10977       ac_ext=c
10978 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10979 ac_cpp='$CPP $CPPFLAGS'
10980 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10981 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10982 cross_compiling=$ac_cv_prog_cc_cross
10983
10984     
10985 fi
10986
10987   fi
10988   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
10989
10990     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
10991       for ac_func in _finitef
10992 do
10993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10994 echo "configure:10995: checking for $ac_func" >&5
10995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10996   echo $ac_n "(cached) $ac_c" 1>&6
10997 else
10998   cat > conftest.$ac_ext <<EOF
10999 #line 11000 "configure"
11000 #include "confdefs.h"
11001 /* System header to define __stub macros and hopefully few prototypes,
11002     which can conflict with char $ac_func(); below.  */
11003 #include <assert.h>
11004 /* Override any gcc2 internal prototype to avoid an error.  */
11005 /* We use char because int might match the return type of a gcc2
11006     builtin and then its argument prototype would still apply.  */
11007 char $ac_func();
11008
11009 int main() {
11010
11011 /* The GNU C library defines this for functions which it implements
11012     to always fail with ENOSYS.  Some functions are actually named
11013     something starting with __ and the normal name is an alias.  */
11014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11015 choke me
11016 #else
11017 $ac_func();
11018 #endif
11019
11020 ; return 0; }
11021 EOF
11022 if { (eval echo configure:11023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11023   rm -rf conftest*
11024   eval "ac_cv_func_$ac_func=yes"
11025 else
11026   echo "configure: failed program was:" >&5
11027   cat conftest.$ac_ext >&5
11028   rm -rf conftest*
11029   eval "ac_cv_func_$ac_func=no"
11030 fi
11031 rm -f conftest*
11032 fi
11033
11034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11035   echo "$ac_t""yes" 1>&6
11036     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11037   cat >> confdefs.h <<EOF
11038 #define $ac_tr_func 1
11039 EOF
11040  
11041 else
11042   echo "$ac_t""no" 1>&6
11043 fi
11044 done
11045     
11046     fi  
11047   fi
11048
11049
11050     
11051   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
11052 echo "configure:11053: checking for long double trig functions" >&5
11053   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
11054   echo $ac_n "(cached) $ac_c" 1>&6
11055 else
11056   
11057     
11058     ac_ext=C
11059 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11060 ac_cpp='$CXXCPP $CPPFLAGS'
11061 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11062 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11063 cross_compiling=$ac_cv_prog_cxx_cross
11064
11065     cat > conftest.$ac_ext <<EOF
11066 #line 11067 "configure"
11067 #include "confdefs.h"
11068 #include <math.h>
11069 int main() {
11070  `for x in acosl asinl atanl \
11071                                           cosl sinl tanl \
11072                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
11073 ; return 0; }
11074 EOF
11075 if { (eval echo configure:11076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11076   rm -rf conftest*
11077   glibcpp_cv_func_long_double_trig_use=yes
11078 else
11079   echo "configure: failed program was:" >&5
11080   cat conftest.$ac_ext >&5
11081   rm -rf conftest*
11082   glibcpp_cv_func_long_double_trig_use=no
11083 fi
11084 rm -f conftest*
11085     ac_ext=c
11086 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11087 ac_cpp='$CPP $CPPFLAGS'
11088 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11089 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11090 cross_compiling=$ac_cv_prog_cc_cross
11091
11092 fi
11093
11094   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
11095   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
11096     for ac_func in acosl asinl atanl \
11097                                           cosl sinl tanl \
11098                                           coshl sinhl tanhl
11099 do
11100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11101 echo "configure:11102: checking for $ac_func" >&5
11102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11103   echo $ac_n "(cached) $ac_c" 1>&6
11104 else
11105   cat > conftest.$ac_ext <<EOF
11106 #line 11107 "configure"
11107 #include "confdefs.h"
11108 /* System header to define __stub macros and hopefully few prototypes,
11109     which can conflict with char $ac_func(); below.  */
11110 #include <assert.h>
11111 /* Override any gcc2 internal prototype to avoid an error.  */
11112 /* We use char because int might match the return type of a gcc2
11113     builtin and then its argument prototype would still apply.  */
11114 char $ac_func();
11115
11116 int main() {
11117
11118 /* The GNU C library defines this for functions which it implements
11119     to always fail with ENOSYS.  Some functions are actually named
11120     something starting with __ and the normal name is an alias.  */
11121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11122 choke me
11123 #else
11124 $ac_func();
11125 #endif
11126
11127 ; return 0; }
11128 EOF
11129 if { (eval echo configure:11130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11130   rm -rf conftest*
11131   eval "ac_cv_func_$ac_func=yes"
11132 else
11133   echo "configure: failed program was:" >&5
11134   cat conftest.$ac_ext >&5
11135   rm -rf conftest*
11136   eval "ac_cv_func_$ac_func=no"
11137 fi
11138 rm -f conftest*
11139 fi
11140
11141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11142   echo "$ac_t""yes" 1>&6
11143     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11144   cat >> confdefs.h <<EOF
11145 #define $ac_tr_func 1
11146 EOF
11147  
11148 else
11149   echo "$ac_t""no" 1>&6
11150 fi
11151 done
11152
11153   fi
11154
11155   
11156   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
11157 echo "configure:11158: checking for long double round functions" >&5
11158   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
11159   echo $ac_n "(cached) $ac_c" 1>&6
11160 else
11161   
11162     
11163     ac_ext=C
11164 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11165 ac_cpp='$CXXCPP $CPPFLAGS'
11166 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11167 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11168 cross_compiling=$ac_cv_prog_cxx_cross
11169
11170     cat > conftest.$ac_ext <<EOF
11171 #line 11172 "configure"
11172 #include "confdefs.h"
11173 #include <math.h>
11174 int main() {
11175  `for x in ceill floorl; do echo "$x (0);"; done` 
11176 ; return 0; }
11177 EOF
11178 if { (eval echo configure:11179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11179   rm -rf conftest*
11180   glibcpp_cv_func_long_double_round_use=yes
11181 else
11182   echo "configure: failed program was:" >&5
11183   cat conftest.$ac_ext >&5
11184   rm -rf conftest*
11185   glibcpp_cv_func_long_double_round_use=no
11186 fi
11187 rm -f conftest*
11188     ac_ext=c
11189 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11190 ac_cpp='$CPP $CPPFLAGS'
11191 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11192 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11193 cross_compiling=$ac_cv_prog_cc_cross
11194
11195 fi
11196
11197   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
11198   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
11199     for ac_func in ceill floorl
11200 do
11201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11202 echo "configure:11203: checking for $ac_func" >&5
11203 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11204   echo $ac_n "(cached) $ac_c" 1>&6
11205 else
11206   cat > conftest.$ac_ext <<EOF
11207 #line 11208 "configure"
11208 #include "confdefs.h"
11209 /* System header to define __stub macros and hopefully few prototypes,
11210     which can conflict with char $ac_func(); below.  */
11211 #include <assert.h>
11212 /* Override any gcc2 internal prototype to avoid an error.  */
11213 /* We use char because int might match the return type of a gcc2
11214     builtin and then its argument prototype would still apply.  */
11215 char $ac_func();
11216
11217 int main() {
11218
11219 /* The GNU C library defines this for functions which it implements
11220     to always fail with ENOSYS.  Some functions are actually named
11221     something starting with __ and the normal name is an alias.  */
11222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11223 choke me
11224 #else
11225 $ac_func();
11226 #endif
11227
11228 ; return 0; }
11229 EOF
11230 if { (eval echo configure:11231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11231   rm -rf conftest*
11232   eval "ac_cv_func_$ac_func=yes"
11233 else
11234   echo "configure: failed program was:" >&5
11235   cat conftest.$ac_ext >&5
11236   rm -rf conftest*
11237   eval "ac_cv_func_$ac_func=no"
11238 fi
11239 rm -f conftest*
11240 fi
11241
11242 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11243   echo "$ac_t""yes" 1>&6
11244     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11245   cat >> confdefs.h <<EOF
11246 #define $ac_tr_func 1
11247 EOF
11248  
11249 else
11250   echo "$ac_t""no" 1>&6
11251 fi
11252 done
11253
11254   fi
11255
11256   
11257   
11258   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
11259 echo "configure:11260: checking for isnanl declaration" >&5
11260   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
11261     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
11262   echo $ac_n "(cached) $ac_c" 1>&6
11263 else
11264   
11265       
11266       ac_ext=C
11267 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11268 ac_cpp='$CXXCPP $CPPFLAGS'
11269 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11270 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11271 cross_compiling=$ac_cv_prog_cxx_cross
11272
11273       cat > conftest.$ac_ext <<EOF
11274 #line 11275 "configure"
11275 #include "confdefs.h"
11276 #include <math.h>
11277                       #ifdef HAVE_IEEEFP_H
11278                       #include <ieeefp.h>
11279                       #endif
11280                      
11281 int main() {
11282  isnanl(0);
11283 ; return 0; }
11284 EOF
11285 if { (eval echo configure:11286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11286   rm -rf conftest*
11287   glibcpp_cv_func_isnanl_use=yes
11288 else
11289   echo "configure: failed program was:" >&5
11290   cat conftest.$ac_ext >&5
11291   rm -rf conftest*
11292   glibcpp_cv_func_isnanl_use=no
11293 fi
11294 rm -f conftest*
11295       ac_ext=c
11296 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11297 ac_cpp='$CPP $CPPFLAGS'
11298 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11299 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11300 cross_compiling=$ac_cv_prog_cc_cross
11301
11302     
11303 fi
11304
11305   fi
11306   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
11307
11308   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
11309     for ac_func in isnanl
11310 do
11311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11312 echo "configure:11313: checking for $ac_func" >&5
11313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11314   echo $ac_n "(cached) $ac_c" 1>&6
11315 else
11316   cat > conftest.$ac_ext <<EOF
11317 #line 11318 "configure"
11318 #include "confdefs.h"
11319 /* System header to define __stub macros and hopefully few prototypes,
11320     which can conflict with char $ac_func(); below.  */
11321 #include <assert.h>
11322 /* Override any gcc2 internal prototype to avoid an error.  */
11323 /* We use char because int might match the return type of a gcc2
11324     builtin and then its argument prototype would still apply.  */
11325 char $ac_func();
11326
11327 int main() {
11328
11329 /* The GNU C library defines this for functions which it implements
11330     to always fail with ENOSYS.  Some functions are actually named
11331     something starting with __ and the normal name is an alias.  */
11332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11333 choke me
11334 #else
11335 $ac_func();
11336 #endif
11337
11338 ; return 0; }
11339 EOF
11340 if { (eval echo configure:11341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11341   rm -rf conftest*
11342   eval "ac_cv_func_$ac_func=yes"
11343 else
11344   echo "configure: failed program was:" >&5
11345   cat conftest.$ac_ext >&5
11346   rm -rf conftest*
11347   eval "ac_cv_func_$ac_func=no"
11348 fi
11349 rm -f conftest*
11350 fi
11351
11352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11353   echo "$ac_t""yes" 1>&6
11354     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11355   cat >> confdefs.h <<EOF
11356 #define $ac_tr_func 1
11357 EOF
11358  
11359 else
11360   echo "$ac_t""no" 1>&6
11361 fi
11362 done
11363     
11364   else
11365     
11366   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
11367 echo "configure:11368: checking for _isnanl declaration" >&5
11368   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
11369     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
11370   echo $ac_n "(cached) $ac_c" 1>&6
11371 else
11372   
11373       
11374       ac_ext=C
11375 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11376 ac_cpp='$CXXCPP $CPPFLAGS'
11377 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11378 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11379 cross_compiling=$ac_cv_prog_cxx_cross
11380
11381       cat > conftest.$ac_ext <<EOF
11382 #line 11383 "configure"
11383 #include "confdefs.h"
11384 #include <math.h>
11385                       #ifdef HAVE_IEEEFP_H
11386                       #include <ieeefp.h>
11387                       #endif
11388                      
11389 int main() {
11390  _isnanl(0);
11391 ; return 0; }
11392 EOF
11393 if { (eval echo configure:11394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11394   rm -rf conftest*
11395   glibcpp_cv_func__isnanl_use=yes
11396 else
11397   echo "configure: failed program was:" >&5
11398   cat conftest.$ac_ext >&5
11399   rm -rf conftest*
11400   glibcpp_cv_func__isnanl_use=no
11401 fi
11402 rm -f conftest*
11403       ac_ext=c
11404 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11405 ac_cpp='$CPP $CPPFLAGS'
11406 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11407 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11408 cross_compiling=$ac_cv_prog_cc_cross
11409
11410     
11411 fi
11412
11413   fi
11414   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
11415
11416     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
11417       for ac_func in _isnanl
11418 do
11419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11420 echo "configure:11421: checking for $ac_func" >&5
11421 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11422   echo $ac_n "(cached) $ac_c" 1>&6
11423 else
11424   cat > conftest.$ac_ext <<EOF
11425 #line 11426 "configure"
11426 #include "confdefs.h"
11427 /* System header to define __stub macros and hopefully few prototypes,
11428     which can conflict with char $ac_func(); below.  */
11429 #include <assert.h>
11430 /* Override any gcc2 internal prototype to avoid an error.  */
11431 /* We use char because int might match the return type of a gcc2
11432     builtin and then its argument prototype would still apply.  */
11433 char $ac_func();
11434
11435 int main() {
11436
11437 /* The GNU C library defines this for functions which it implements
11438     to always fail with ENOSYS.  Some functions are actually named
11439     something starting with __ and the normal name is an alias.  */
11440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11441 choke me
11442 #else
11443 $ac_func();
11444 #endif
11445
11446 ; return 0; }
11447 EOF
11448 if { (eval echo configure:11449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11449   rm -rf conftest*
11450   eval "ac_cv_func_$ac_func=yes"
11451 else
11452   echo "configure: failed program was:" >&5
11453   cat conftest.$ac_ext >&5
11454   rm -rf conftest*
11455   eval "ac_cv_func_$ac_func=no"
11456 fi
11457 rm -f conftest*
11458 fi
11459
11460 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11461   echo "$ac_t""yes" 1>&6
11462     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11463   cat >> confdefs.h <<EOF
11464 #define $ac_tr_func 1
11465 EOF
11466  
11467 else
11468   echo "$ac_t""no" 1>&6
11469 fi
11470 done
11471     
11472     fi  
11473   fi
11474
11475   
11476   
11477   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
11478 echo "configure:11479: checking for isinfl declaration" >&5
11479   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
11480     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
11481   echo $ac_n "(cached) $ac_c" 1>&6
11482 else
11483   
11484       
11485       ac_ext=C
11486 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11487 ac_cpp='$CXXCPP $CPPFLAGS'
11488 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11489 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11490 cross_compiling=$ac_cv_prog_cxx_cross
11491
11492       cat > conftest.$ac_ext <<EOF
11493 #line 11494 "configure"
11494 #include "confdefs.h"
11495 #include <math.h>
11496                       #ifdef HAVE_IEEEFP_H
11497                       #include <ieeefp.h>
11498                       #endif
11499                      
11500 int main() {
11501  isinfl(0);
11502 ; return 0; }
11503 EOF
11504 if { (eval echo configure:11505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11505   rm -rf conftest*
11506   glibcpp_cv_func_isinfl_use=yes
11507 else
11508   echo "configure: failed program was:" >&5
11509   cat conftest.$ac_ext >&5
11510   rm -rf conftest*
11511   glibcpp_cv_func_isinfl_use=no
11512 fi
11513 rm -f conftest*
11514       ac_ext=c
11515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11516 ac_cpp='$CPP $CPPFLAGS'
11517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11519 cross_compiling=$ac_cv_prog_cc_cross
11520
11521     
11522 fi
11523
11524   fi
11525   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
11526
11527   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
11528     for ac_func in isinfl
11529 do
11530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11531 echo "configure:11532: checking for $ac_func" >&5
11532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11533   echo $ac_n "(cached) $ac_c" 1>&6
11534 else
11535   cat > conftest.$ac_ext <<EOF
11536 #line 11537 "configure"
11537 #include "confdefs.h"
11538 /* System header to define __stub macros and hopefully few prototypes,
11539     which can conflict with char $ac_func(); below.  */
11540 #include <assert.h>
11541 /* Override any gcc2 internal prototype to avoid an error.  */
11542 /* We use char because int might match the return type of a gcc2
11543     builtin and then its argument prototype would still apply.  */
11544 char $ac_func();
11545
11546 int main() {
11547
11548 /* The GNU C library defines this for functions which it implements
11549     to always fail with ENOSYS.  Some functions are actually named
11550     something starting with __ and the normal name is an alias.  */
11551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11552 choke me
11553 #else
11554 $ac_func();
11555 #endif
11556
11557 ; return 0; }
11558 EOF
11559 if { (eval echo configure:11560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11560   rm -rf conftest*
11561   eval "ac_cv_func_$ac_func=yes"
11562 else
11563   echo "configure: failed program was:" >&5
11564   cat conftest.$ac_ext >&5
11565   rm -rf conftest*
11566   eval "ac_cv_func_$ac_func=no"
11567 fi
11568 rm -f conftest*
11569 fi
11570
11571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11572   echo "$ac_t""yes" 1>&6
11573     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11574   cat >> confdefs.h <<EOF
11575 #define $ac_tr_func 1
11576 EOF
11577  
11578 else
11579   echo "$ac_t""no" 1>&6
11580 fi
11581 done
11582     
11583   else
11584     
11585   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
11586 echo "configure:11587: checking for _isinfl declaration" >&5
11587   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
11588     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
11589   echo $ac_n "(cached) $ac_c" 1>&6
11590 else
11591   
11592       
11593       ac_ext=C
11594 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11595 ac_cpp='$CXXCPP $CPPFLAGS'
11596 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11597 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11598 cross_compiling=$ac_cv_prog_cxx_cross
11599
11600       cat > conftest.$ac_ext <<EOF
11601 #line 11602 "configure"
11602 #include "confdefs.h"
11603 #include <math.h>
11604                       #ifdef HAVE_IEEEFP_H
11605                       #include <ieeefp.h>
11606                       #endif
11607                      
11608 int main() {
11609  _isinfl(0);
11610 ; return 0; }
11611 EOF
11612 if { (eval echo configure:11613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11613   rm -rf conftest*
11614   glibcpp_cv_func__isinfl_use=yes
11615 else
11616   echo "configure: failed program was:" >&5
11617   cat conftest.$ac_ext >&5
11618   rm -rf conftest*
11619   glibcpp_cv_func__isinfl_use=no
11620 fi
11621 rm -f conftest*
11622       ac_ext=c
11623 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11624 ac_cpp='$CPP $CPPFLAGS'
11625 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11626 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11627 cross_compiling=$ac_cv_prog_cc_cross
11628
11629     
11630 fi
11631
11632   fi
11633   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
11634
11635     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
11636       for ac_func in _isinfl
11637 do
11638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11639 echo "configure:11640: checking for $ac_func" >&5
11640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11641   echo $ac_n "(cached) $ac_c" 1>&6
11642 else
11643   cat > conftest.$ac_ext <<EOF
11644 #line 11645 "configure"
11645 #include "confdefs.h"
11646 /* System header to define __stub macros and hopefully few prototypes,
11647     which can conflict with char $ac_func(); below.  */
11648 #include <assert.h>
11649 /* Override any gcc2 internal prototype to avoid an error.  */
11650 /* We use char because int might match the return type of a gcc2
11651     builtin and then its argument prototype would still apply.  */
11652 char $ac_func();
11653
11654 int main() {
11655
11656 /* The GNU C library defines this for functions which it implements
11657     to always fail with ENOSYS.  Some functions are actually named
11658     something starting with __ and the normal name is an alias.  */
11659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11660 choke me
11661 #else
11662 $ac_func();
11663 #endif
11664
11665 ; return 0; }
11666 EOF
11667 if { (eval echo configure:11668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11668   rm -rf conftest*
11669   eval "ac_cv_func_$ac_func=yes"
11670 else
11671   echo "configure: failed program was:" >&5
11672   cat conftest.$ac_ext >&5
11673   rm -rf conftest*
11674   eval "ac_cv_func_$ac_func=no"
11675 fi
11676 rm -f conftest*
11677 fi
11678
11679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11680   echo "$ac_t""yes" 1>&6
11681     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11682   cat >> confdefs.h <<EOF
11683 #define $ac_tr_func 1
11684 EOF
11685  
11686 else
11687   echo "$ac_t""no" 1>&6
11688 fi
11689 done
11690     
11691     fi  
11692   fi
11693
11694   
11695   
11696   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
11697 echo "configure:11698: checking for copysignl declaration" >&5
11698   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
11699     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
11700   echo $ac_n "(cached) $ac_c" 1>&6
11701 else
11702   
11703       
11704       ac_ext=C
11705 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11706 ac_cpp='$CXXCPP $CPPFLAGS'
11707 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11708 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11709 cross_compiling=$ac_cv_prog_cxx_cross
11710
11711       cat > conftest.$ac_ext <<EOF
11712 #line 11713 "configure"
11713 #include "confdefs.h"
11714 #include <math.h>
11715 int main() {
11716  copysignl(0, 0);
11717 ; return 0; }
11718 EOF
11719 if { (eval echo configure:11720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11720   rm -rf conftest*
11721   glibcpp_cv_func_copysignl_use=yes
11722 else
11723   echo "configure: failed program was:" >&5
11724   cat conftest.$ac_ext >&5
11725   rm -rf conftest*
11726   glibcpp_cv_func_copysignl_use=no
11727 fi
11728 rm -f conftest*
11729       ac_ext=c
11730 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11731 ac_cpp='$CPP $CPPFLAGS'
11732 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11733 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11734 cross_compiling=$ac_cv_prog_cc_cross
11735
11736     
11737 fi
11738
11739   fi
11740   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
11741
11742   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
11743     for ac_func in copysignl
11744 do
11745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11746 echo "configure:11747: checking for $ac_func" >&5
11747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11748   echo $ac_n "(cached) $ac_c" 1>&6
11749 else
11750   cat > conftest.$ac_ext <<EOF
11751 #line 11752 "configure"
11752 #include "confdefs.h"
11753 /* System header to define __stub macros and hopefully few prototypes,
11754     which can conflict with char $ac_func(); below.  */
11755 #include <assert.h>
11756 /* Override any gcc2 internal prototype to avoid an error.  */
11757 /* We use char because int might match the return type of a gcc2
11758     builtin and then its argument prototype would still apply.  */
11759 char $ac_func();
11760
11761 int main() {
11762
11763 /* The GNU C library defines this for functions which it implements
11764     to always fail with ENOSYS.  Some functions are actually named
11765     something starting with __ and the normal name is an alias.  */
11766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11767 choke me
11768 #else
11769 $ac_func();
11770 #endif
11771
11772 ; return 0; }
11773 EOF
11774 if { (eval echo configure:11775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11775   rm -rf conftest*
11776   eval "ac_cv_func_$ac_func=yes"
11777 else
11778   echo "configure: failed program was:" >&5
11779   cat conftest.$ac_ext >&5
11780   rm -rf conftest*
11781   eval "ac_cv_func_$ac_func=no"
11782 fi
11783 rm -f conftest*
11784 fi
11785
11786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11787   echo "$ac_t""yes" 1>&6
11788     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11789   cat >> confdefs.h <<EOF
11790 #define $ac_tr_func 1
11791 EOF
11792  
11793 else
11794   echo "$ac_t""no" 1>&6
11795 fi
11796 done
11797     
11798   else
11799     
11800   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
11801 echo "configure:11802: checking for _copysignl declaration" >&5
11802   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
11803     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
11804   echo $ac_n "(cached) $ac_c" 1>&6
11805 else
11806   
11807       
11808       ac_ext=C
11809 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11810 ac_cpp='$CXXCPP $CPPFLAGS'
11811 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11812 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11813 cross_compiling=$ac_cv_prog_cxx_cross
11814
11815       cat > conftest.$ac_ext <<EOF
11816 #line 11817 "configure"
11817 #include "confdefs.h"
11818 #include <math.h>
11819 int main() {
11820  _copysignl(0, 0);
11821 ; return 0; }
11822 EOF
11823 if { (eval echo configure:11824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11824   rm -rf conftest*
11825   glibcpp_cv_func__copysignl_use=yes
11826 else
11827   echo "configure: failed program was:" >&5
11828   cat conftest.$ac_ext >&5
11829   rm -rf conftest*
11830   glibcpp_cv_func__copysignl_use=no
11831 fi
11832 rm -f conftest*
11833       ac_ext=c
11834 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11835 ac_cpp='$CPP $CPPFLAGS'
11836 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11837 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11838 cross_compiling=$ac_cv_prog_cc_cross
11839
11840     
11841 fi
11842
11843   fi
11844   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
11845
11846     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
11847       for ac_func in _copysignl
11848 do
11849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11850 echo "configure:11851: checking for $ac_func" >&5
11851 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11852   echo $ac_n "(cached) $ac_c" 1>&6
11853 else
11854   cat > conftest.$ac_ext <<EOF
11855 #line 11856 "configure"
11856 #include "confdefs.h"
11857 /* System header to define __stub macros and hopefully few prototypes,
11858     which can conflict with char $ac_func(); below.  */
11859 #include <assert.h>
11860 /* Override any gcc2 internal prototype to avoid an error.  */
11861 /* We use char because int might match the return type of a gcc2
11862     builtin and then its argument prototype would still apply.  */
11863 char $ac_func();
11864
11865 int main() {
11866
11867 /* The GNU C library defines this for functions which it implements
11868     to always fail with ENOSYS.  Some functions are actually named
11869     something starting with __ and the normal name is an alias.  */
11870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11871 choke me
11872 #else
11873 $ac_func();
11874 #endif
11875
11876 ; return 0; }
11877 EOF
11878 if { (eval echo configure:11879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11879   rm -rf conftest*
11880   eval "ac_cv_func_$ac_func=yes"
11881 else
11882   echo "configure: failed program was:" >&5
11883   cat conftest.$ac_ext >&5
11884   rm -rf conftest*
11885   eval "ac_cv_func_$ac_func=no"
11886 fi
11887 rm -f conftest*
11888 fi
11889
11890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11891   echo "$ac_t""yes" 1>&6
11892     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11893   cat >> confdefs.h <<EOF
11894 #define $ac_tr_func 1
11895 EOF
11896  
11897 else
11898   echo "$ac_t""no" 1>&6
11899 fi
11900 done
11901     
11902     fi  
11903   fi
11904
11905   
11906   
11907   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
11908 echo "configure:11909: checking for atan2l declaration" >&5
11909   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
11910     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
11911   echo $ac_n "(cached) $ac_c" 1>&6
11912 else
11913   
11914       
11915       ac_ext=C
11916 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11917 ac_cpp='$CXXCPP $CPPFLAGS'
11918 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11919 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11920 cross_compiling=$ac_cv_prog_cxx_cross
11921
11922       cat > conftest.$ac_ext <<EOF
11923 #line 11924 "configure"
11924 #include "confdefs.h"
11925 #include <math.h>
11926 int main() {
11927  atan2l(0, 0);
11928 ; return 0; }
11929 EOF
11930 if { (eval echo configure:11931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11931   rm -rf conftest*
11932   glibcpp_cv_func_atan2l_use=yes
11933 else
11934   echo "configure: failed program was:" >&5
11935   cat conftest.$ac_ext >&5
11936   rm -rf conftest*
11937   glibcpp_cv_func_atan2l_use=no
11938 fi
11939 rm -f conftest*
11940       ac_ext=c
11941 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11942 ac_cpp='$CPP $CPPFLAGS'
11943 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11944 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11945 cross_compiling=$ac_cv_prog_cc_cross
11946
11947     
11948 fi
11949
11950   fi
11951   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
11952
11953   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
11954     for ac_func in atan2l
11955 do
11956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11957 echo "configure:11958: checking for $ac_func" >&5
11958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11959   echo $ac_n "(cached) $ac_c" 1>&6
11960 else
11961   cat > conftest.$ac_ext <<EOF
11962 #line 11963 "configure"
11963 #include "confdefs.h"
11964 /* System header to define __stub macros and hopefully few prototypes,
11965     which can conflict with char $ac_func(); below.  */
11966 #include <assert.h>
11967 /* Override any gcc2 internal prototype to avoid an error.  */
11968 /* We use char because int might match the return type of a gcc2
11969     builtin and then its argument prototype would still apply.  */
11970 char $ac_func();
11971
11972 int main() {
11973
11974 /* The GNU C library defines this for functions which it implements
11975     to always fail with ENOSYS.  Some functions are actually named
11976     something starting with __ and the normal name is an alias.  */
11977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11978 choke me
11979 #else
11980 $ac_func();
11981 #endif
11982
11983 ; return 0; }
11984 EOF
11985 if { (eval echo configure:11986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11986   rm -rf conftest*
11987   eval "ac_cv_func_$ac_func=yes"
11988 else
11989   echo "configure: failed program was:" >&5
11990   cat conftest.$ac_ext >&5
11991   rm -rf conftest*
11992   eval "ac_cv_func_$ac_func=no"
11993 fi
11994 rm -f conftest*
11995 fi
11996
11997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11998   echo "$ac_t""yes" 1>&6
11999     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12000   cat >> confdefs.h <<EOF
12001 #define $ac_tr_func 1
12002 EOF
12003  
12004 else
12005   echo "$ac_t""no" 1>&6
12006 fi
12007 done
12008     
12009   else
12010     
12011   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
12012 echo "configure:12013: checking for _atan2l declaration" >&5
12013   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
12014     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
12015   echo $ac_n "(cached) $ac_c" 1>&6
12016 else
12017   
12018       
12019       ac_ext=C
12020 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12021 ac_cpp='$CXXCPP $CPPFLAGS'
12022 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12023 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12024 cross_compiling=$ac_cv_prog_cxx_cross
12025
12026       cat > conftest.$ac_ext <<EOF
12027 #line 12028 "configure"
12028 #include "confdefs.h"
12029 #include <math.h>
12030 int main() {
12031  _atan2l(0, 0);
12032 ; return 0; }
12033 EOF
12034 if { (eval echo configure:12035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12035   rm -rf conftest*
12036   glibcpp_cv_func__atan2l_use=yes
12037 else
12038   echo "configure: failed program was:" >&5
12039   cat conftest.$ac_ext >&5
12040   rm -rf conftest*
12041   glibcpp_cv_func__atan2l_use=no
12042 fi
12043 rm -f conftest*
12044       ac_ext=c
12045 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12046 ac_cpp='$CPP $CPPFLAGS'
12047 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12048 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12049 cross_compiling=$ac_cv_prog_cc_cross
12050
12051     
12052 fi
12053
12054   fi
12055   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
12056
12057     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
12058       for ac_func in _atan2l
12059 do
12060 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12061 echo "configure:12062: checking for $ac_func" >&5
12062 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12063   echo $ac_n "(cached) $ac_c" 1>&6
12064 else
12065   cat > conftest.$ac_ext <<EOF
12066 #line 12067 "configure"
12067 #include "confdefs.h"
12068 /* System header to define __stub macros and hopefully few prototypes,
12069     which can conflict with char $ac_func(); below.  */
12070 #include <assert.h>
12071 /* Override any gcc2 internal prototype to avoid an error.  */
12072 /* We use char because int might match the return type of a gcc2
12073     builtin and then its argument prototype would still apply.  */
12074 char $ac_func();
12075
12076 int main() {
12077
12078 /* The GNU C library defines this for functions which it implements
12079     to always fail with ENOSYS.  Some functions are actually named
12080     something starting with __ and the normal name is an alias.  */
12081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12082 choke me
12083 #else
12084 $ac_func();
12085 #endif
12086
12087 ; return 0; }
12088 EOF
12089 if { (eval echo configure:12090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12090   rm -rf conftest*
12091   eval "ac_cv_func_$ac_func=yes"
12092 else
12093   echo "configure: failed program was:" >&5
12094   cat conftest.$ac_ext >&5
12095   rm -rf conftest*
12096   eval "ac_cv_func_$ac_func=no"
12097 fi
12098 rm -f conftest*
12099 fi
12100
12101 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12102   echo "$ac_t""yes" 1>&6
12103     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12104   cat >> confdefs.h <<EOF
12105 #define $ac_tr_func 1
12106 EOF
12107  
12108 else
12109   echo "$ac_t""no" 1>&6
12110 fi
12111 done
12112     
12113     fi  
12114   fi
12115
12116   
12117   
12118   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
12119 echo "configure:12120: checking for expl declaration" >&5
12120   if test x${glibcpp_cv_func_expl_use+set} != xset; then
12121     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
12122   echo $ac_n "(cached) $ac_c" 1>&6
12123 else
12124   
12125       
12126       ac_ext=C
12127 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12128 ac_cpp='$CXXCPP $CPPFLAGS'
12129 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12130 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12131 cross_compiling=$ac_cv_prog_cxx_cross
12132
12133       cat > conftest.$ac_ext <<EOF
12134 #line 12135 "configure"
12135 #include "confdefs.h"
12136 #include <math.h>
12137                       #ifdef HAVE_IEEEFP_H
12138                       #include <ieeefp.h>
12139                       #endif
12140                      
12141 int main() {
12142  expl(0);
12143 ; return 0; }
12144 EOF
12145 if { (eval echo configure:12146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12146   rm -rf conftest*
12147   glibcpp_cv_func_expl_use=yes
12148 else
12149   echo "configure: failed program was:" >&5
12150   cat conftest.$ac_ext >&5
12151   rm -rf conftest*
12152   glibcpp_cv_func_expl_use=no
12153 fi
12154 rm -f conftest*
12155       ac_ext=c
12156 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12157 ac_cpp='$CPP $CPPFLAGS'
12158 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12159 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12160 cross_compiling=$ac_cv_prog_cc_cross
12161
12162     
12163 fi
12164
12165   fi
12166   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
12167
12168   if test x$glibcpp_cv_func_expl_use = x"yes"; then
12169     for ac_func in expl
12170 do
12171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12172 echo "configure:12173: checking for $ac_func" >&5
12173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12174   echo $ac_n "(cached) $ac_c" 1>&6
12175 else
12176   cat > conftest.$ac_ext <<EOF
12177 #line 12178 "configure"
12178 #include "confdefs.h"
12179 /* System header to define __stub macros and hopefully few prototypes,
12180     which can conflict with char $ac_func(); below.  */
12181 #include <assert.h>
12182 /* Override any gcc2 internal prototype to avoid an error.  */
12183 /* We use char because int might match the return type of a gcc2
12184     builtin and then its argument prototype would still apply.  */
12185 char $ac_func();
12186
12187 int main() {
12188
12189 /* The GNU C library defines this for functions which it implements
12190     to always fail with ENOSYS.  Some functions are actually named
12191     something starting with __ and the normal name is an alias.  */
12192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12193 choke me
12194 #else
12195 $ac_func();
12196 #endif
12197
12198 ; return 0; }
12199 EOF
12200 if { (eval echo configure:12201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12201   rm -rf conftest*
12202   eval "ac_cv_func_$ac_func=yes"
12203 else
12204   echo "configure: failed program was:" >&5
12205   cat conftest.$ac_ext >&5
12206   rm -rf conftest*
12207   eval "ac_cv_func_$ac_func=no"
12208 fi
12209 rm -f conftest*
12210 fi
12211
12212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12213   echo "$ac_t""yes" 1>&6
12214     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12215   cat >> confdefs.h <<EOF
12216 #define $ac_tr_func 1
12217 EOF
12218  
12219 else
12220   echo "$ac_t""no" 1>&6
12221 fi
12222 done
12223     
12224   else
12225     
12226   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
12227 echo "configure:12228: checking for _expl declaration" >&5
12228   if test x${glibcpp_cv_func__expl_use+set} != xset; then
12229     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
12230   echo $ac_n "(cached) $ac_c" 1>&6
12231 else
12232   
12233       
12234       ac_ext=C
12235 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12236 ac_cpp='$CXXCPP $CPPFLAGS'
12237 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12238 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12239 cross_compiling=$ac_cv_prog_cxx_cross
12240
12241       cat > conftest.$ac_ext <<EOF
12242 #line 12243 "configure"
12243 #include "confdefs.h"
12244 #include <math.h>
12245                       #ifdef HAVE_IEEEFP_H
12246                       #include <ieeefp.h>
12247                       #endif
12248                      
12249 int main() {
12250  _expl(0);
12251 ; return 0; }
12252 EOF
12253 if { (eval echo configure:12254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12254   rm -rf conftest*
12255   glibcpp_cv_func__expl_use=yes
12256 else
12257   echo "configure: failed program was:" >&5
12258   cat conftest.$ac_ext >&5
12259   rm -rf conftest*
12260   glibcpp_cv_func__expl_use=no
12261 fi
12262 rm -f conftest*
12263       ac_ext=c
12264 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12265 ac_cpp='$CPP $CPPFLAGS'
12266 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12267 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12268 cross_compiling=$ac_cv_prog_cc_cross
12269
12270     
12271 fi
12272
12273   fi
12274   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
12275
12276     if test x$glibcpp_cv_func__expl_use = x"yes"; then
12277       for ac_func in _expl
12278 do
12279 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12280 echo "configure:12281: checking for $ac_func" >&5
12281 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12282   echo $ac_n "(cached) $ac_c" 1>&6
12283 else
12284   cat > conftest.$ac_ext <<EOF
12285 #line 12286 "configure"
12286 #include "confdefs.h"
12287 /* System header to define __stub macros and hopefully few prototypes,
12288     which can conflict with char $ac_func(); below.  */
12289 #include <assert.h>
12290 /* Override any gcc2 internal prototype to avoid an error.  */
12291 /* We use char because int might match the return type of a gcc2
12292     builtin and then its argument prototype would still apply.  */
12293 char $ac_func();
12294
12295 int main() {
12296
12297 /* The GNU C library defines this for functions which it implements
12298     to always fail with ENOSYS.  Some functions are actually named
12299     something starting with __ and the normal name is an alias.  */
12300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12301 choke me
12302 #else
12303 $ac_func();
12304 #endif
12305
12306 ; return 0; }
12307 EOF
12308 if { (eval echo configure:12309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12309   rm -rf conftest*
12310   eval "ac_cv_func_$ac_func=yes"
12311 else
12312   echo "configure: failed program was:" >&5
12313   cat conftest.$ac_ext >&5
12314   rm -rf conftest*
12315   eval "ac_cv_func_$ac_func=no"
12316 fi
12317 rm -f conftest*
12318 fi
12319
12320 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12321   echo "$ac_t""yes" 1>&6
12322     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12323   cat >> confdefs.h <<EOF
12324 #define $ac_tr_func 1
12325 EOF
12326  
12327 else
12328   echo "$ac_t""no" 1>&6
12329 fi
12330 done
12331     
12332     fi  
12333   fi
12334
12335   
12336   
12337   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
12338 echo "configure:12339: checking for fabsl declaration" >&5
12339   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
12340     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
12341   echo $ac_n "(cached) $ac_c" 1>&6
12342 else
12343   
12344       
12345       ac_ext=C
12346 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12347 ac_cpp='$CXXCPP $CPPFLAGS'
12348 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12349 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12350 cross_compiling=$ac_cv_prog_cxx_cross
12351
12352       cat > conftest.$ac_ext <<EOF
12353 #line 12354 "configure"
12354 #include "confdefs.h"
12355 #include <math.h>
12356                       #ifdef HAVE_IEEEFP_H
12357                       #include <ieeefp.h>
12358                       #endif
12359                      
12360 int main() {
12361  fabsl(0);
12362 ; return 0; }
12363 EOF
12364 if { (eval echo configure:12365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12365   rm -rf conftest*
12366   glibcpp_cv_func_fabsl_use=yes
12367 else
12368   echo "configure: failed program was:" >&5
12369   cat conftest.$ac_ext >&5
12370   rm -rf conftest*
12371   glibcpp_cv_func_fabsl_use=no
12372 fi
12373 rm -f conftest*
12374       ac_ext=c
12375 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12376 ac_cpp='$CPP $CPPFLAGS'
12377 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12378 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12379 cross_compiling=$ac_cv_prog_cc_cross
12380
12381     
12382 fi
12383
12384   fi
12385   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
12386
12387   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
12388     for ac_func in fabsl
12389 do
12390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12391 echo "configure:12392: checking for $ac_func" >&5
12392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12393   echo $ac_n "(cached) $ac_c" 1>&6
12394 else
12395   cat > conftest.$ac_ext <<EOF
12396 #line 12397 "configure"
12397 #include "confdefs.h"
12398 /* System header to define __stub macros and hopefully few prototypes,
12399     which can conflict with char $ac_func(); below.  */
12400 #include <assert.h>
12401 /* Override any gcc2 internal prototype to avoid an error.  */
12402 /* We use char because int might match the return type of a gcc2
12403     builtin and then its argument prototype would still apply.  */
12404 char $ac_func();
12405
12406 int main() {
12407
12408 /* The GNU C library defines this for functions which it implements
12409     to always fail with ENOSYS.  Some functions are actually named
12410     something starting with __ and the normal name is an alias.  */
12411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12412 choke me
12413 #else
12414 $ac_func();
12415 #endif
12416
12417 ; return 0; }
12418 EOF
12419 if { (eval echo configure:12420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12420   rm -rf conftest*
12421   eval "ac_cv_func_$ac_func=yes"
12422 else
12423   echo "configure: failed program was:" >&5
12424   cat conftest.$ac_ext >&5
12425   rm -rf conftest*
12426   eval "ac_cv_func_$ac_func=no"
12427 fi
12428 rm -f conftest*
12429 fi
12430
12431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12432   echo "$ac_t""yes" 1>&6
12433     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12434   cat >> confdefs.h <<EOF
12435 #define $ac_tr_func 1
12436 EOF
12437  
12438 else
12439   echo "$ac_t""no" 1>&6
12440 fi
12441 done
12442     
12443   else
12444     
12445   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
12446 echo "configure:12447: checking for _fabsl declaration" >&5
12447   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
12448     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
12449   echo $ac_n "(cached) $ac_c" 1>&6
12450 else
12451   
12452       
12453       ac_ext=C
12454 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12455 ac_cpp='$CXXCPP $CPPFLAGS'
12456 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12457 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12458 cross_compiling=$ac_cv_prog_cxx_cross
12459
12460       cat > conftest.$ac_ext <<EOF
12461 #line 12462 "configure"
12462 #include "confdefs.h"
12463 #include <math.h>
12464                       #ifdef HAVE_IEEEFP_H
12465                       #include <ieeefp.h>
12466                       #endif
12467                      
12468 int main() {
12469  _fabsl(0);
12470 ; return 0; }
12471 EOF
12472 if { (eval echo configure:12473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12473   rm -rf conftest*
12474   glibcpp_cv_func__fabsl_use=yes
12475 else
12476   echo "configure: failed program was:" >&5
12477   cat conftest.$ac_ext >&5
12478   rm -rf conftest*
12479   glibcpp_cv_func__fabsl_use=no
12480 fi
12481 rm -f conftest*
12482       ac_ext=c
12483 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12484 ac_cpp='$CPP $CPPFLAGS'
12485 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12486 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12487 cross_compiling=$ac_cv_prog_cc_cross
12488
12489     
12490 fi
12491
12492   fi
12493   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
12494
12495     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
12496       for ac_func in _fabsl
12497 do
12498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12499 echo "configure:12500: checking for $ac_func" >&5
12500 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12501   echo $ac_n "(cached) $ac_c" 1>&6
12502 else
12503   cat > conftest.$ac_ext <<EOF
12504 #line 12505 "configure"
12505 #include "confdefs.h"
12506 /* System header to define __stub macros and hopefully few prototypes,
12507     which can conflict with char $ac_func(); below.  */
12508 #include <assert.h>
12509 /* Override any gcc2 internal prototype to avoid an error.  */
12510 /* We use char because int might match the return type of a gcc2
12511     builtin and then its argument prototype would still apply.  */
12512 char $ac_func();
12513
12514 int main() {
12515
12516 /* The GNU C library defines this for functions which it implements
12517     to always fail with ENOSYS.  Some functions are actually named
12518     something starting with __ and the normal name is an alias.  */
12519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12520 choke me
12521 #else
12522 $ac_func();
12523 #endif
12524
12525 ; return 0; }
12526 EOF
12527 if { (eval echo configure:12528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12528   rm -rf conftest*
12529   eval "ac_cv_func_$ac_func=yes"
12530 else
12531   echo "configure: failed program was:" >&5
12532   cat conftest.$ac_ext >&5
12533   rm -rf conftest*
12534   eval "ac_cv_func_$ac_func=no"
12535 fi
12536 rm -f conftest*
12537 fi
12538
12539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12540   echo "$ac_t""yes" 1>&6
12541     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12542   cat >> confdefs.h <<EOF
12543 #define $ac_tr_func 1
12544 EOF
12545  
12546 else
12547   echo "$ac_t""no" 1>&6
12548 fi
12549 done
12550     
12551     fi  
12552   fi
12553
12554   
12555   
12556   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
12557 echo "configure:12558: checking for fmodl declaration" >&5
12558   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
12559     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
12560   echo $ac_n "(cached) $ac_c" 1>&6
12561 else
12562   
12563       
12564       ac_ext=C
12565 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12566 ac_cpp='$CXXCPP $CPPFLAGS'
12567 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12568 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12569 cross_compiling=$ac_cv_prog_cxx_cross
12570
12571       cat > conftest.$ac_ext <<EOF
12572 #line 12573 "configure"
12573 #include "confdefs.h"
12574 #include <math.h>
12575 int main() {
12576  fmodl(0, 0);
12577 ; return 0; }
12578 EOF
12579 if { (eval echo configure:12580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12580   rm -rf conftest*
12581   glibcpp_cv_func_fmodl_use=yes
12582 else
12583   echo "configure: failed program was:" >&5
12584   cat conftest.$ac_ext >&5
12585   rm -rf conftest*
12586   glibcpp_cv_func_fmodl_use=no
12587 fi
12588 rm -f conftest*
12589       ac_ext=c
12590 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12591 ac_cpp='$CPP $CPPFLAGS'
12592 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12593 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12594 cross_compiling=$ac_cv_prog_cc_cross
12595
12596     
12597 fi
12598
12599   fi
12600   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
12601
12602   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
12603     for ac_func in fmodl
12604 do
12605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12606 echo "configure:12607: checking for $ac_func" >&5
12607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12608   echo $ac_n "(cached) $ac_c" 1>&6
12609 else
12610   cat > conftest.$ac_ext <<EOF
12611 #line 12612 "configure"
12612 #include "confdefs.h"
12613 /* System header to define __stub macros and hopefully few prototypes,
12614     which can conflict with char $ac_func(); below.  */
12615 #include <assert.h>
12616 /* Override any gcc2 internal prototype to avoid an error.  */
12617 /* We use char because int might match the return type of a gcc2
12618     builtin and then its argument prototype would still apply.  */
12619 char $ac_func();
12620
12621 int main() {
12622
12623 /* The GNU C library defines this for functions which it implements
12624     to always fail with ENOSYS.  Some functions are actually named
12625     something starting with __ and the normal name is an alias.  */
12626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12627 choke me
12628 #else
12629 $ac_func();
12630 #endif
12631
12632 ; return 0; }
12633 EOF
12634 if { (eval echo configure:12635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12635   rm -rf conftest*
12636   eval "ac_cv_func_$ac_func=yes"
12637 else
12638   echo "configure: failed program was:" >&5
12639   cat conftest.$ac_ext >&5
12640   rm -rf conftest*
12641   eval "ac_cv_func_$ac_func=no"
12642 fi
12643 rm -f conftest*
12644 fi
12645
12646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12647   echo "$ac_t""yes" 1>&6
12648     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12649   cat >> confdefs.h <<EOF
12650 #define $ac_tr_func 1
12651 EOF
12652  
12653 else
12654   echo "$ac_t""no" 1>&6
12655 fi
12656 done
12657     
12658   else
12659     
12660   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
12661 echo "configure:12662: checking for _fmodl declaration" >&5
12662   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
12663     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
12664   echo $ac_n "(cached) $ac_c" 1>&6
12665 else
12666   
12667       
12668       ac_ext=C
12669 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12670 ac_cpp='$CXXCPP $CPPFLAGS'
12671 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12672 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12673 cross_compiling=$ac_cv_prog_cxx_cross
12674
12675       cat > conftest.$ac_ext <<EOF
12676 #line 12677 "configure"
12677 #include "confdefs.h"
12678 #include <math.h>
12679 int main() {
12680  _fmodl(0, 0);
12681 ; return 0; }
12682 EOF
12683 if { (eval echo configure:12684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12684   rm -rf conftest*
12685   glibcpp_cv_func__fmodl_use=yes
12686 else
12687   echo "configure: failed program was:" >&5
12688   cat conftest.$ac_ext >&5
12689   rm -rf conftest*
12690   glibcpp_cv_func__fmodl_use=no
12691 fi
12692 rm -f conftest*
12693       ac_ext=c
12694 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12695 ac_cpp='$CPP $CPPFLAGS'
12696 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12697 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12698 cross_compiling=$ac_cv_prog_cc_cross
12699
12700     
12701 fi
12702
12703   fi
12704   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
12705
12706     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
12707       for ac_func in _fmodl
12708 do
12709 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12710 echo "configure:12711: checking for $ac_func" >&5
12711 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12712   echo $ac_n "(cached) $ac_c" 1>&6
12713 else
12714   cat > conftest.$ac_ext <<EOF
12715 #line 12716 "configure"
12716 #include "confdefs.h"
12717 /* System header to define __stub macros and hopefully few prototypes,
12718     which can conflict with char $ac_func(); below.  */
12719 #include <assert.h>
12720 /* Override any gcc2 internal prototype to avoid an error.  */
12721 /* We use char because int might match the return type of a gcc2
12722     builtin and then its argument prototype would still apply.  */
12723 char $ac_func();
12724
12725 int main() {
12726
12727 /* The GNU C library defines this for functions which it implements
12728     to always fail with ENOSYS.  Some functions are actually named
12729     something starting with __ and the normal name is an alias.  */
12730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12731 choke me
12732 #else
12733 $ac_func();
12734 #endif
12735
12736 ; return 0; }
12737 EOF
12738 if { (eval echo configure:12739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12739   rm -rf conftest*
12740   eval "ac_cv_func_$ac_func=yes"
12741 else
12742   echo "configure: failed program was:" >&5
12743   cat conftest.$ac_ext >&5
12744   rm -rf conftest*
12745   eval "ac_cv_func_$ac_func=no"
12746 fi
12747 rm -f conftest*
12748 fi
12749
12750 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12751   echo "$ac_t""yes" 1>&6
12752     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12753   cat >> confdefs.h <<EOF
12754 #define $ac_tr_func 1
12755 EOF
12756  
12757 else
12758   echo "$ac_t""no" 1>&6
12759 fi
12760 done
12761     
12762     fi  
12763   fi
12764
12765   
12766   
12767   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
12768 echo "configure:12769: checking for frexpl declaration" >&5
12769   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
12770     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
12771   echo $ac_n "(cached) $ac_c" 1>&6
12772 else
12773   
12774       
12775       ac_ext=C
12776 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12777 ac_cpp='$CXXCPP $CPPFLAGS'
12778 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12779 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12780 cross_compiling=$ac_cv_prog_cxx_cross
12781
12782       cat > conftest.$ac_ext <<EOF
12783 #line 12784 "configure"
12784 #include "confdefs.h"
12785 #include <math.h>
12786 int main() {
12787  frexpl(0, 0);
12788 ; return 0; }
12789 EOF
12790 if { (eval echo configure:12791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12791   rm -rf conftest*
12792   glibcpp_cv_func_frexpl_use=yes
12793 else
12794   echo "configure: failed program was:" >&5
12795   cat conftest.$ac_ext >&5
12796   rm -rf conftest*
12797   glibcpp_cv_func_frexpl_use=no
12798 fi
12799 rm -f conftest*
12800       ac_ext=c
12801 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12802 ac_cpp='$CPP $CPPFLAGS'
12803 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12804 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12805 cross_compiling=$ac_cv_prog_cc_cross
12806
12807     
12808 fi
12809
12810   fi
12811   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
12812
12813   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
12814     for ac_func in frexpl
12815 do
12816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12817 echo "configure:12818: checking for $ac_func" >&5
12818 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12819   echo $ac_n "(cached) $ac_c" 1>&6
12820 else
12821   cat > conftest.$ac_ext <<EOF
12822 #line 12823 "configure"
12823 #include "confdefs.h"
12824 /* System header to define __stub macros and hopefully few prototypes,
12825     which can conflict with char $ac_func(); below.  */
12826 #include <assert.h>
12827 /* Override any gcc2 internal prototype to avoid an error.  */
12828 /* We use char because int might match the return type of a gcc2
12829     builtin and then its argument prototype would still apply.  */
12830 char $ac_func();
12831
12832 int main() {
12833
12834 /* The GNU C library defines this for functions which it implements
12835     to always fail with ENOSYS.  Some functions are actually named
12836     something starting with __ and the normal name is an alias.  */
12837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12838 choke me
12839 #else
12840 $ac_func();
12841 #endif
12842
12843 ; return 0; }
12844 EOF
12845 if { (eval echo configure:12846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12846   rm -rf conftest*
12847   eval "ac_cv_func_$ac_func=yes"
12848 else
12849   echo "configure: failed program was:" >&5
12850   cat conftest.$ac_ext >&5
12851   rm -rf conftest*
12852   eval "ac_cv_func_$ac_func=no"
12853 fi
12854 rm -f conftest*
12855 fi
12856
12857 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12858   echo "$ac_t""yes" 1>&6
12859     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12860   cat >> confdefs.h <<EOF
12861 #define $ac_tr_func 1
12862 EOF
12863  
12864 else
12865   echo "$ac_t""no" 1>&6
12866 fi
12867 done
12868     
12869   else
12870     
12871   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
12872 echo "configure:12873: checking for _frexpl declaration" >&5
12873   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
12874     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
12875   echo $ac_n "(cached) $ac_c" 1>&6
12876 else
12877   
12878       
12879       ac_ext=C
12880 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12881 ac_cpp='$CXXCPP $CPPFLAGS'
12882 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12883 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12884 cross_compiling=$ac_cv_prog_cxx_cross
12885
12886       cat > conftest.$ac_ext <<EOF
12887 #line 12888 "configure"
12888 #include "confdefs.h"
12889 #include <math.h>
12890 int main() {
12891  _frexpl(0, 0);
12892 ; return 0; }
12893 EOF
12894 if { (eval echo configure:12895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12895   rm -rf conftest*
12896   glibcpp_cv_func__frexpl_use=yes
12897 else
12898   echo "configure: failed program was:" >&5
12899   cat conftest.$ac_ext >&5
12900   rm -rf conftest*
12901   glibcpp_cv_func__frexpl_use=no
12902 fi
12903 rm -f conftest*
12904       ac_ext=c
12905 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12906 ac_cpp='$CPP $CPPFLAGS'
12907 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12908 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12909 cross_compiling=$ac_cv_prog_cc_cross
12910
12911     
12912 fi
12913
12914   fi
12915   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
12916
12917     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
12918       for ac_func in _frexpl
12919 do
12920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12921 echo "configure:12922: checking for $ac_func" >&5
12922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12923   echo $ac_n "(cached) $ac_c" 1>&6
12924 else
12925   cat > conftest.$ac_ext <<EOF
12926 #line 12927 "configure"
12927 #include "confdefs.h"
12928 /* System header to define __stub macros and hopefully few prototypes,
12929     which can conflict with char $ac_func(); below.  */
12930 #include <assert.h>
12931 /* Override any gcc2 internal prototype to avoid an error.  */
12932 /* We use char because int might match the return type of a gcc2
12933     builtin and then its argument prototype would still apply.  */
12934 char $ac_func();
12935
12936 int main() {
12937
12938 /* The GNU C library defines this for functions which it implements
12939     to always fail with ENOSYS.  Some functions are actually named
12940     something starting with __ and the normal name is an alias.  */
12941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12942 choke me
12943 #else
12944 $ac_func();
12945 #endif
12946
12947 ; return 0; }
12948 EOF
12949 if { (eval echo configure:12950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12950   rm -rf conftest*
12951   eval "ac_cv_func_$ac_func=yes"
12952 else
12953   echo "configure: failed program was:" >&5
12954   cat conftest.$ac_ext >&5
12955   rm -rf conftest*
12956   eval "ac_cv_func_$ac_func=no"
12957 fi
12958 rm -f conftest*
12959 fi
12960
12961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12962   echo "$ac_t""yes" 1>&6
12963     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12964   cat >> confdefs.h <<EOF
12965 #define $ac_tr_func 1
12966 EOF
12967  
12968 else
12969   echo "$ac_t""no" 1>&6
12970 fi
12971 done
12972     
12973     fi  
12974   fi
12975
12976   
12977   
12978   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
12979 echo "configure:12980: checking for ldexpl declaration" >&5
12980   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
12981     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
12982   echo $ac_n "(cached) $ac_c" 1>&6
12983 else
12984   
12985       
12986       ac_ext=C
12987 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12988 ac_cpp='$CXXCPP $CPPFLAGS'
12989 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12990 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12991 cross_compiling=$ac_cv_prog_cxx_cross
12992
12993       cat > conftest.$ac_ext <<EOF
12994 #line 12995 "configure"
12995 #include "confdefs.h"
12996 #include <math.h>
12997 int main() {
12998  ldexpl(0, 0);
12999 ; return 0; }
13000 EOF
13001 if { (eval echo configure:13002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13002   rm -rf conftest*
13003   glibcpp_cv_func_ldexpl_use=yes
13004 else
13005   echo "configure: failed program was:" >&5
13006   cat conftest.$ac_ext >&5
13007   rm -rf conftest*
13008   glibcpp_cv_func_ldexpl_use=no
13009 fi
13010 rm -f conftest*
13011       ac_ext=c
13012 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13013 ac_cpp='$CPP $CPPFLAGS'
13014 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13015 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13016 cross_compiling=$ac_cv_prog_cc_cross
13017
13018     
13019 fi
13020
13021   fi
13022   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
13023
13024   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
13025     for ac_func in ldexpl
13026 do
13027 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13028 echo "configure:13029: checking for $ac_func" >&5
13029 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13030   echo $ac_n "(cached) $ac_c" 1>&6
13031 else
13032   cat > conftest.$ac_ext <<EOF
13033 #line 13034 "configure"
13034 #include "confdefs.h"
13035 /* System header to define __stub macros and hopefully few prototypes,
13036     which can conflict with char $ac_func(); below.  */
13037 #include <assert.h>
13038 /* Override any gcc2 internal prototype to avoid an error.  */
13039 /* We use char because int might match the return type of a gcc2
13040     builtin and then its argument prototype would still apply.  */
13041 char $ac_func();
13042
13043 int main() {
13044
13045 /* The GNU C library defines this for functions which it implements
13046     to always fail with ENOSYS.  Some functions are actually named
13047     something starting with __ and the normal name is an alias.  */
13048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13049 choke me
13050 #else
13051 $ac_func();
13052 #endif
13053
13054 ; return 0; }
13055 EOF
13056 if { (eval echo configure:13057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13057   rm -rf conftest*
13058   eval "ac_cv_func_$ac_func=yes"
13059 else
13060   echo "configure: failed program was:" >&5
13061   cat conftest.$ac_ext >&5
13062   rm -rf conftest*
13063   eval "ac_cv_func_$ac_func=no"
13064 fi
13065 rm -f conftest*
13066 fi
13067
13068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13069   echo "$ac_t""yes" 1>&6
13070     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13071   cat >> confdefs.h <<EOF
13072 #define $ac_tr_func 1
13073 EOF
13074  
13075 else
13076   echo "$ac_t""no" 1>&6
13077 fi
13078 done
13079     
13080   else
13081     
13082   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
13083 echo "configure:13084: checking for _ldexpl declaration" >&5
13084   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
13085     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
13086   echo $ac_n "(cached) $ac_c" 1>&6
13087 else
13088   
13089       
13090       ac_ext=C
13091 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13092 ac_cpp='$CXXCPP $CPPFLAGS'
13093 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13094 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13095 cross_compiling=$ac_cv_prog_cxx_cross
13096
13097       cat > conftest.$ac_ext <<EOF
13098 #line 13099 "configure"
13099 #include "confdefs.h"
13100 #include <math.h>
13101 int main() {
13102  _ldexpl(0, 0);
13103 ; return 0; }
13104 EOF
13105 if { (eval echo configure:13106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13106   rm -rf conftest*
13107   glibcpp_cv_func__ldexpl_use=yes
13108 else
13109   echo "configure: failed program was:" >&5
13110   cat conftest.$ac_ext >&5
13111   rm -rf conftest*
13112   glibcpp_cv_func__ldexpl_use=no
13113 fi
13114 rm -f conftest*
13115       ac_ext=c
13116 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13117 ac_cpp='$CPP $CPPFLAGS'
13118 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13119 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13120 cross_compiling=$ac_cv_prog_cc_cross
13121
13122     
13123 fi
13124
13125   fi
13126   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
13127
13128     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
13129       for ac_func in _ldexpl
13130 do
13131 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13132 echo "configure:13133: checking for $ac_func" >&5
13133 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13134   echo $ac_n "(cached) $ac_c" 1>&6
13135 else
13136   cat > conftest.$ac_ext <<EOF
13137 #line 13138 "configure"
13138 #include "confdefs.h"
13139 /* System header to define __stub macros and hopefully few prototypes,
13140     which can conflict with char $ac_func(); below.  */
13141 #include <assert.h>
13142 /* Override any gcc2 internal prototype to avoid an error.  */
13143 /* We use char because int might match the return type of a gcc2
13144     builtin and then its argument prototype would still apply.  */
13145 char $ac_func();
13146
13147 int main() {
13148
13149 /* The GNU C library defines this for functions which it implements
13150     to always fail with ENOSYS.  Some functions are actually named
13151     something starting with __ and the normal name is an alias.  */
13152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13153 choke me
13154 #else
13155 $ac_func();
13156 #endif
13157
13158 ; return 0; }
13159 EOF
13160 if { (eval echo configure:13161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13161   rm -rf conftest*
13162   eval "ac_cv_func_$ac_func=yes"
13163 else
13164   echo "configure: failed program was:" >&5
13165   cat conftest.$ac_ext >&5
13166   rm -rf conftest*
13167   eval "ac_cv_func_$ac_func=no"
13168 fi
13169 rm -f conftest*
13170 fi
13171
13172 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13173   echo "$ac_t""yes" 1>&6
13174     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13175   cat >> confdefs.h <<EOF
13176 #define $ac_tr_func 1
13177 EOF
13178  
13179 else
13180   echo "$ac_t""no" 1>&6
13181 fi
13182 done
13183     
13184     fi  
13185   fi
13186
13187   
13188   
13189   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
13190 echo "configure:13191: checking for logl declaration" >&5
13191   if test x${glibcpp_cv_func_logl_use+set} != xset; then
13192     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
13193   echo $ac_n "(cached) $ac_c" 1>&6
13194 else
13195   
13196       
13197       ac_ext=C
13198 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13199 ac_cpp='$CXXCPP $CPPFLAGS'
13200 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13201 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13202 cross_compiling=$ac_cv_prog_cxx_cross
13203
13204       cat > conftest.$ac_ext <<EOF
13205 #line 13206 "configure"
13206 #include "confdefs.h"
13207 #include <math.h>
13208                       #ifdef HAVE_IEEEFP_H
13209                       #include <ieeefp.h>
13210                       #endif
13211                      
13212 int main() {
13213  logl(0);
13214 ; return 0; }
13215 EOF
13216 if { (eval echo configure:13217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13217   rm -rf conftest*
13218   glibcpp_cv_func_logl_use=yes
13219 else
13220   echo "configure: failed program was:" >&5
13221   cat conftest.$ac_ext >&5
13222   rm -rf conftest*
13223   glibcpp_cv_func_logl_use=no
13224 fi
13225 rm -f conftest*
13226       ac_ext=c
13227 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13228 ac_cpp='$CPP $CPPFLAGS'
13229 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13230 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13231 cross_compiling=$ac_cv_prog_cc_cross
13232
13233     
13234 fi
13235
13236   fi
13237   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
13238
13239   if test x$glibcpp_cv_func_logl_use = x"yes"; then
13240     for ac_func in logl
13241 do
13242 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13243 echo "configure:13244: checking for $ac_func" >&5
13244 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13245   echo $ac_n "(cached) $ac_c" 1>&6
13246 else
13247   cat > conftest.$ac_ext <<EOF
13248 #line 13249 "configure"
13249 #include "confdefs.h"
13250 /* System header to define __stub macros and hopefully few prototypes,
13251     which can conflict with char $ac_func(); below.  */
13252 #include <assert.h>
13253 /* Override any gcc2 internal prototype to avoid an error.  */
13254 /* We use char because int might match the return type of a gcc2
13255     builtin and then its argument prototype would still apply.  */
13256 char $ac_func();
13257
13258 int main() {
13259
13260 /* The GNU C library defines this for functions which it implements
13261     to always fail with ENOSYS.  Some functions are actually named
13262     something starting with __ and the normal name is an alias.  */
13263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13264 choke me
13265 #else
13266 $ac_func();
13267 #endif
13268
13269 ; return 0; }
13270 EOF
13271 if { (eval echo configure:13272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13272   rm -rf conftest*
13273   eval "ac_cv_func_$ac_func=yes"
13274 else
13275   echo "configure: failed program was:" >&5
13276   cat conftest.$ac_ext >&5
13277   rm -rf conftest*
13278   eval "ac_cv_func_$ac_func=no"
13279 fi
13280 rm -f conftest*
13281 fi
13282
13283 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13284   echo "$ac_t""yes" 1>&6
13285     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13286   cat >> confdefs.h <<EOF
13287 #define $ac_tr_func 1
13288 EOF
13289  
13290 else
13291   echo "$ac_t""no" 1>&6
13292 fi
13293 done
13294     
13295   else
13296     
13297   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
13298 echo "configure:13299: checking for _logl declaration" >&5
13299   if test x${glibcpp_cv_func__logl_use+set} != xset; then
13300     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
13301   echo $ac_n "(cached) $ac_c" 1>&6
13302 else
13303   
13304       
13305       ac_ext=C
13306 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13307 ac_cpp='$CXXCPP $CPPFLAGS'
13308 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13309 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13310 cross_compiling=$ac_cv_prog_cxx_cross
13311
13312       cat > conftest.$ac_ext <<EOF
13313 #line 13314 "configure"
13314 #include "confdefs.h"
13315 #include <math.h>
13316                       #ifdef HAVE_IEEEFP_H
13317                       #include <ieeefp.h>
13318                       #endif
13319                      
13320 int main() {
13321  _logl(0);
13322 ; return 0; }
13323 EOF
13324 if { (eval echo configure:13325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13325   rm -rf conftest*
13326   glibcpp_cv_func__logl_use=yes
13327 else
13328   echo "configure: failed program was:" >&5
13329   cat conftest.$ac_ext >&5
13330   rm -rf conftest*
13331   glibcpp_cv_func__logl_use=no
13332 fi
13333 rm -f conftest*
13334       ac_ext=c
13335 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13336 ac_cpp='$CPP $CPPFLAGS'
13337 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13338 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13339 cross_compiling=$ac_cv_prog_cc_cross
13340
13341     
13342 fi
13343
13344   fi
13345   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
13346
13347     if test x$glibcpp_cv_func__logl_use = x"yes"; then
13348       for ac_func in _logl
13349 do
13350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13351 echo "configure:13352: checking for $ac_func" >&5
13352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13353   echo $ac_n "(cached) $ac_c" 1>&6
13354 else
13355   cat > conftest.$ac_ext <<EOF
13356 #line 13357 "configure"
13357 #include "confdefs.h"
13358 /* System header to define __stub macros and hopefully few prototypes,
13359     which can conflict with char $ac_func(); below.  */
13360 #include <assert.h>
13361 /* Override any gcc2 internal prototype to avoid an error.  */
13362 /* We use char because int might match the return type of a gcc2
13363     builtin and then its argument prototype would still apply.  */
13364 char $ac_func();
13365
13366 int main() {
13367
13368 /* The GNU C library defines this for functions which it implements
13369     to always fail with ENOSYS.  Some functions are actually named
13370     something starting with __ and the normal name is an alias.  */
13371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13372 choke me
13373 #else
13374 $ac_func();
13375 #endif
13376
13377 ; return 0; }
13378 EOF
13379 if { (eval echo configure:13380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13380   rm -rf conftest*
13381   eval "ac_cv_func_$ac_func=yes"
13382 else
13383   echo "configure: failed program was:" >&5
13384   cat conftest.$ac_ext >&5
13385   rm -rf conftest*
13386   eval "ac_cv_func_$ac_func=no"
13387 fi
13388 rm -f conftest*
13389 fi
13390
13391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13392   echo "$ac_t""yes" 1>&6
13393     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13394   cat >> confdefs.h <<EOF
13395 #define $ac_tr_func 1
13396 EOF
13397  
13398 else
13399   echo "$ac_t""no" 1>&6
13400 fi
13401 done
13402     
13403     fi  
13404   fi
13405
13406   
13407   
13408   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
13409 echo "configure:13410: checking for log10l declaration" >&5
13410   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
13411     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
13412   echo $ac_n "(cached) $ac_c" 1>&6
13413 else
13414   
13415       
13416       ac_ext=C
13417 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13418 ac_cpp='$CXXCPP $CPPFLAGS'
13419 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13420 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13421 cross_compiling=$ac_cv_prog_cxx_cross
13422
13423       cat > conftest.$ac_ext <<EOF
13424 #line 13425 "configure"
13425 #include "confdefs.h"
13426 #include <math.h>
13427                       #ifdef HAVE_IEEEFP_H
13428                       #include <ieeefp.h>
13429                       #endif
13430                      
13431 int main() {
13432  log10l(0);
13433 ; return 0; }
13434 EOF
13435 if { (eval echo configure:13436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13436   rm -rf conftest*
13437   glibcpp_cv_func_log10l_use=yes
13438 else
13439   echo "configure: failed program was:" >&5
13440   cat conftest.$ac_ext >&5
13441   rm -rf conftest*
13442   glibcpp_cv_func_log10l_use=no
13443 fi
13444 rm -f conftest*
13445       ac_ext=c
13446 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13447 ac_cpp='$CPP $CPPFLAGS'
13448 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13449 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13450 cross_compiling=$ac_cv_prog_cc_cross
13451
13452     
13453 fi
13454
13455   fi
13456   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
13457
13458   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
13459     for ac_func in log10l
13460 do
13461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13462 echo "configure:13463: checking for $ac_func" >&5
13463 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13464   echo $ac_n "(cached) $ac_c" 1>&6
13465 else
13466   cat > conftest.$ac_ext <<EOF
13467 #line 13468 "configure"
13468 #include "confdefs.h"
13469 /* System header to define __stub macros and hopefully few prototypes,
13470     which can conflict with char $ac_func(); below.  */
13471 #include <assert.h>
13472 /* Override any gcc2 internal prototype to avoid an error.  */
13473 /* We use char because int might match the return type of a gcc2
13474     builtin and then its argument prototype would still apply.  */
13475 char $ac_func();
13476
13477 int main() {
13478
13479 /* The GNU C library defines this for functions which it implements
13480     to always fail with ENOSYS.  Some functions are actually named
13481     something starting with __ and the normal name is an alias.  */
13482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13483 choke me
13484 #else
13485 $ac_func();
13486 #endif
13487
13488 ; return 0; }
13489 EOF
13490 if { (eval echo configure:13491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13491   rm -rf conftest*
13492   eval "ac_cv_func_$ac_func=yes"
13493 else
13494   echo "configure: failed program was:" >&5
13495   cat conftest.$ac_ext >&5
13496   rm -rf conftest*
13497   eval "ac_cv_func_$ac_func=no"
13498 fi
13499 rm -f conftest*
13500 fi
13501
13502 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13503   echo "$ac_t""yes" 1>&6
13504     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13505   cat >> confdefs.h <<EOF
13506 #define $ac_tr_func 1
13507 EOF
13508  
13509 else
13510   echo "$ac_t""no" 1>&6
13511 fi
13512 done
13513     
13514   else
13515     
13516   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
13517 echo "configure:13518: checking for _log10l declaration" >&5
13518   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
13519     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
13520   echo $ac_n "(cached) $ac_c" 1>&6
13521 else
13522   
13523       
13524       ac_ext=C
13525 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13526 ac_cpp='$CXXCPP $CPPFLAGS'
13527 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13528 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13529 cross_compiling=$ac_cv_prog_cxx_cross
13530
13531       cat > conftest.$ac_ext <<EOF
13532 #line 13533 "configure"
13533 #include "confdefs.h"
13534 #include <math.h>
13535                       #ifdef HAVE_IEEEFP_H
13536                       #include <ieeefp.h>
13537                       #endif
13538                      
13539 int main() {
13540  _log10l(0);
13541 ; return 0; }
13542 EOF
13543 if { (eval echo configure:13544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13544   rm -rf conftest*
13545   glibcpp_cv_func__log10l_use=yes
13546 else
13547   echo "configure: failed program was:" >&5
13548   cat conftest.$ac_ext >&5
13549   rm -rf conftest*
13550   glibcpp_cv_func__log10l_use=no
13551 fi
13552 rm -f conftest*
13553       ac_ext=c
13554 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13555 ac_cpp='$CPP $CPPFLAGS'
13556 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13557 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13558 cross_compiling=$ac_cv_prog_cc_cross
13559
13560     
13561 fi
13562
13563   fi
13564   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
13565
13566     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
13567       for ac_func in _log10l
13568 do
13569 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13570 echo "configure:13571: checking for $ac_func" >&5
13571 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13572   echo $ac_n "(cached) $ac_c" 1>&6
13573 else
13574   cat > conftest.$ac_ext <<EOF
13575 #line 13576 "configure"
13576 #include "confdefs.h"
13577 /* System header to define __stub macros and hopefully few prototypes,
13578     which can conflict with char $ac_func(); below.  */
13579 #include <assert.h>
13580 /* Override any gcc2 internal prototype to avoid an error.  */
13581 /* We use char because int might match the return type of a gcc2
13582     builtin and then its argument prototype would still apply.  */
13583 char $ac_func();
13584
13585 int main() {
13586
13587 /* The GNU C library defines this for functions which it implements
13588     to always fail with ENOSYS.  Some functions are actually named
13589     something starting with __ and the normal name is an alias.  */
13590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13591 choke me
13592 #else
13593 $ac_func();
13594 #endif
13595
13596 ; return 0; }
13597 EOF
13598 if { (eval echo configure:13599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13599   rm -rf conftest*
13600   eval "ac_cv_func_$ac_func=yes"
13601 else
13602   echo "configure: failed program was:" >&5
13603   cat conftest.$ac_ext >&5
13604   rm -rf conftest*
13605   eval "ac_cv_func_$ac_func=no"
13606 fi
13607 rm -f conftest*
13608 fi
13609
13610 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13611   echo "$ac_t""yes" 1>&6
13612     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13613   cat >> confdefs.h <<EOF
13614 #define $ac_tr_func 1
13615 EOF
13616  
13617 else
13618   echo "$ac_t""no" 1>&6
13619 fi
13620 done
13621     
13622     fi  
13623   fi
13624
13625   
13626   
13627   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
13628 echo "configure:13629: checking for modfl declaration" >&5
13629   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
13630     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
13631   echo $ac_n "(cached) $ac_c" 1>&6
13632 else
13633   
13634       
13635       ac_ext=C
13636 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13637 ac_cpp='$CXXCPP $CPPFLAGS'
13638 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13639 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13640 cross_compiling=$ac_cv_prog_cxx_cross
13641
13642       cat > conftest.$ac_ext <<EOF
13643 #line 13644 "configure"
13644 #include "confdefs.h"
13645 #include <math.h>
13646 int main() {
13647  modfl(0, 0);
13648 ; return 0; }
13649 EOF
13650 if { (eval echo configure:13651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13651   rm -rf conftest*
13652   glibcpp_cv_func_modfl_use=yes
13653 else
13654   echo "configure: failed program was:" >&5
13655   cat conftest.$ac_ext >&5
13656   rm -rf conftest*
13657   glibcpp_cv_func_modfl_use=no
13658 fi
13659 rm -f conftest*
13660       ac_ext=c
13661 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13662 ac_cpp='$CPP $CPPFLAGS'
13663 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13664 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13665 cross_compiling=$ac_cv_prog_cc_cross
13666
13667     
13668 fi
13669
13670   fi
13671   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
13672
13673   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
13674     for ac_func in modfl
13675 do
13676 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13677 echo "configure:13678: checking for $ac_func" >&5
13678 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13679   echo $ac_n "(cached) $ac_c" 1>&6
13680 else
13681   cat > conftest.$ac_ext <<EOF
13682 #line 13683 "configure"
13683 #include "confdefs.h"
13684 /* System header to define __stub macros and hopefully few prototypes,
13685     which can conflict with char $ac_func(); below.  */
13686 #include <assert.h>
13687 /* Override any gcc2 internal prototype to avoid an error.  */
13688 /* We use char because int might match the return type of a gcc2
13689     builtin and then its argument prototype would still apply.  */
13690 char $ac_func();
13691
13692 int main() {
13693
13694 /* The GNU C library defines this for functions which it implements
13695     to always fail with ENOSYS.  Some functions are actually named
13696     something starting with __ and the normal name is an alias.  */
13697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13698 choke me
13699 #else
13700 $ac_func();
13701 #endif
13702
13703 ; return 0; }
13704 EOF
13705 if { (eval echo configure:13706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13706   rm -rf conftest*
13707   eval "ac_cv_func_$ac_func=yes"
13708 else
13709   echo "configure: failed program was:" >&5
13710   cat conftest.$ac_ext >&5
13711   rm -rf conftest*
13712   eval "ac_cv_func_$ac_func=no"
13713 fi
13714 rm -f conftest*
13715 fi
13716
13717 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13718   echo "$ac_t""yes" 1>&6
13719     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13720   cat >> confdefs.h <<EOF
13721 #define $ac_tr_func 1
13722 EOF
13723  
13724 else
13725   echo "$ac_t""no" 1>&6
13726 fi
13727 done
13728     
13729   else
13730     
13731   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
13732 echo "configure:13733: checking for _modfl declaration" >&5
13733   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
13734     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
13735   echo $ac_n "(cached) $ac_c" 1>&6
13736 else
13737   
13738       
13739       ac_ext=C
13740 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13741 ac_cpp='$CXXCPP $CPPFLAGS'
13742 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13743 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13744 cross_compiling=$ac_cv_prog_cxx_cross
13745
13746       cat > conftest.$ac_ext <<EOF
13747 #line 13748 "configure"
13748 #include "confdefs.h"
13749 #include <math.h>
13750 int main() {
13751  _modfl(0, 0);
13752 ; return 0; }
13753 EOF
13754 if { (eval echo configure:13755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13755   rm -rf conftest*
13756   glibcpp_cv_func__modfl_use=yes
13757 else
13758   echo "configure: failed program was:" >&5
13759   cat conftest.$ac_ext >&5
13760   rm -rf conftest*
13761   glibcpp_cv_func__modfl_use=no
13762 fi
13763 rm -f conftest*
13764       ac_ext=c
13765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13766 ac_cpp='$CPP $CPPFLAGS'
13767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13769 cross_compiling=$ac_cv_prog_cc_cross
13770
13771     
13772 fi
13773
13774   fi
13775   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
13776
13777     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
13778       for ac_func in _modfl
13779 do
13780 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13781 echo "configure:13782: checking for $ac_func" >&5
13782 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13783   echo $ac_n "(cached) $ac_c" 1>&6
13784 else
13785   cat > conftest.$ac_ext <<EOF
13786 #line 13787 "configure"
13787 #include "confdefs.h"
13788 /* System header to define __stub macros and hopefully few prototypes,
13789     which can conflict with char $ac_func(); below.  */
13790 #include <assert.h>
13791 /* Override any gcc2 internal prototype to avoid an error.  */
13792 /* We use char because int might match the return type of a gcc2
13793     builtin and then its argument prototype would still apply.  */
13794 char $ac_func();
13795
13796 int main() {
13797
13798 /* The GNU C library defines this for functions which it implements
13799     to always fail with ENOSYS.  Some functions are actually named
13800     something starting with __ and the normal name is an alias.  */
13801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13802 choke me
13803 #else
13804 $ac_func();
13805 #endif
13806
13807 ; return 0; }
13808 EOF
13809 if { (eval echo configure:13810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13810   rm -rf conftest*
13811   eval "ac_cv_func_$ac_func=yes"
13812 else
13813   echo "configure: failed program was:" >&5
13814   cat conftest.$ac_ext >&5
13815   rm -rf conftest*
13816   eval "ac_cv_func_$ac_func=no"
13817 fi
13818 rm -f conftest*
13819 fi
13820
13821 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13822   echo "$ac_t""yes" 1>&6
13823     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13824   cat >> confdefs.h <<EOF
13825 #define $ac_tr_func 1
13826 EOF
13827  
13828 else
13829   echo "$ac_t""no" 1>&6
13830 fi
13831 done
13832     
13833     fi  
13834   fi
13835
13836   
13837   
13838   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
13839 echo "configure:13840: checking for powl declaration" >&5
13840   if test x${glibcpp_cv_func_powl_use+set} != xset; then
13841     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
13842   echo $ac_n "(cached) $ac_c" 1>&6
13843 else
13844   
13845       
13846       ac_ext=C
13847 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13848 ac_cpp='$CXXCPP $CPPFLAGS'
13849 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13850 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13851 cross_compiling=$ac_cv_prog_cxx_cross
13852
13853       cat > conftest.$ac_ext <<EOF
13854 #line 13855 "configure"
13855 #include "confdefs.h"
13856 #include <math.h>
13857 int main() {
13858  powl(0, 0);
13859 ; return 0; }
13860 EOF
13861 if { (eval echo configure:13862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13862   rm -rf conftest*
13863   glibcpp_cv_func_powl_use=yes
13864 else
13865   echo "configure: failed program was:" >&5
13866   cat conftest.$ac_ext >&5
13867   rm -rf conftest*
13868   glibcpp_cv_func_powl_use=no
13869 fi
13870 rm -f conftest*
13871       ac_ext=c
13872 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13873 ac_cpp='$CPP $CPPFLAGS'
13874 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13875 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13876 cross_compiling=$ac_cv_prog_cc_cross
13877
13878     
13879 fi
13880
13881   fi
13882   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
13883
13884   if test x$glibcpp_cv_func_powl_use = x"yes"; then
13885     for ac_func in powl
13886 do
13887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13888 echo "configure:13889: checking for $ac_func" >&5
13889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13890   echo $ac_n "(cached) $ac_c" 1>&6
13891 else
13892   cat > conftest.$ac_ext <<EOF
13893 #line 13894 "configure"
13894 #include "confdefs.h"
13895 /* System header to define __stub macros and hopefully few prototypes,
13896     which can conflict with char $ac_func(); below.  */
13897 #include <assert.h>
13898 /* Override any gcc2 internal prototype to avoid an error.  */
13899 /* We use char because int might match the return type of a gcc2
13900     builtin and then its argument prototype would still apply.  */
13901 char $ac_func();
13902
13903 int main() {
13904
13905 /* The GNU C library defines this for functions which it implements
13906     to always fail with ENOSYS.  Some functions are actually named
13907     something starting with __ and the normal name is an alias.  */
13908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13909 choke me
13910 #else
13911 $ac_func();
13912 #endif
13913
13914 ; return 0; }
13915 EOF
13916 if { (eval echo configure:13917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13917   rm -rf conftest*
13918   eval "ac_cv_func_$ac_func=yes"
13919 else
13920   echo "configure: failed program was:" >&5
13921   cat conftest.$ac_ext >&5
13922   rm -rf conftest*
13923   eval "ac_cv_func_$ac_func=no"
13924 fi
13925 rm -f conftest*
13926 fi
13927
13928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13929   echo "$ac_t""yes" 1>&6
13930     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13931   cat >> confdefs.h <<EOF
13932 #define $ac_tr_func 1
13933 EOF
13934  
13935 else
13936   echo "$ac_t""no" 1>&6
13937 fi
13938 done
13939     
13940   else
13941     
13942   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
13943 echo "configure:13944: checking for _powl declaration" >&5
13944   if test x${glibcpp_cv_func__powl_use+set} != xset; then
13945     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
13946   echo $ac_n "(cached) $ac_c" 1>&6
13947 else
13948   
13949       
13950       ac_ext=C
13951 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13952 ac_cpp='$CXXCPP $CPPFLAGS'
13953 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13954 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13955 cross_compiling=$ac_cv_prog_cxx_cross
13956
13957       cat > conftest.$ac_ext <<EOF
13958 #line 13959 "configure"
13959 #include "confdefs.h"
13960 #include <math.h>
13961 int main() {
13962  _powl(0, 0);
13963 ; return 0; }
13964 EOF
13965 if { (eval echo configure:13966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13966   rm -rf conftest*
13967   glibcpp_cv_func__powl_use=yes
13968 else
13969   echo "configure: failed program was:" >&5
13970   cat conftest.$ac_ext >&5
13971   rm -rf conftest*
13972   glibcpp_cv_func__powl_use=no
13973 fi
13974 rm -f conftest*
13975       ac_ext=c
13976 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13977 ac_cpp='$CPP $CPPFLAGS'
13978 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13979 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13980 cross_compiling=$ac_cv_prog_cc_cross
13981
13982     
13983 fi
13984
13985   fi
13986   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
13987
13988     if test x$glibcpp_cv_func__powl_use = x"yes"; then
13989       for ac_func in _powl
13990 do
13991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13992 echo "configure:13993: checking for $ac_func" >&5
13993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13994   echo $ac_n "(cached) $ac_c" 1>&6
13995 else
13996   cat > conftest.$ac_ext <<EOF
13997 #line 13998 "configure"
13998 #include "confdefs.h"
13999 /* System header to define __stub macros and hopefully few prototypes,
14000     which can conflict with char $ac_func(); below.  */
14001 #include <assert.h>
14002 /* Override any gcc2 internal prototype to avoid an error.  */
14003 /* We use char because int might match the return type of a gcc2
14004     builtin and then its argument prototype would still apply.  */
14005 char $ac_func();
14006
14007 int main() {
14008
14009 /* The GNU C library defines this for functions which it implements
14010     to always fail with ENOSYS.  Some functions are actually named
14011     something starting with __ and the normal name is an alias.  */
14012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14013 choke me
14014 #else
14015 $ac_func();
14016 #endif
14017
14018 ; return 0; }
14019 EOF
14020 if { (eval echo configure:14021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14021   rm -rf conftest*
14022   eval "ac_cv_func_$ac_func=yes"
14023 else
14024   echo "configure: failed program was:" >&5
14025   cat conftest.$ac_ext >&5
14026   rm -rf conftest*
14027   eval "ac_cv_func_$ac_func=no"
14028 fi
14029 rm -f conftest*
14030 fi
14031
14032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14033   echo "$ac_t""yes" 1>&6
14034     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14035   cat >> confdefs.h <<EOF
14036 #define $ac_tr_func 1
14037 EOF
14038  
14039 else
14040   echo "$ac_t""no" 1>&6
14041 fi
14042 done
14043     
14044     fi  
14045   fi
14046
14047   
14048   
14049   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
14050 echo "configure:14051: checking for sqrtl declaration" >&5
14051   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
14052     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
14053   echo $ac_n "(cached) $ac_c" 1>&6
14054 else
14055   
14056       
14057       ac_ext=C
14058 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14059 ac_cpp='$CXXCPP $CPPFLAGS'
14060 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14061 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14062 cross_compiling=$ac_cv_prog_cxx_cross
14063
14064       cat > conftest.$ac_ext <<EOF
14065 #line 14066 "configure"
14066 #include "confdefs.h"
14067 #include <math.h>
14068                       #ifdef HAVE_IEEEFP_H
14069                       #include <ieeefp.h>
14070                       #endif
14071                      
14072 int main() {
14073  sqrtl(0);
14074 ; return 0; }
14075 EOF
14076 if { (eval echo configure:14077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14077   rm -rf conftest*
14078   glibcpp_cv_func_sqrtl_use=yes
14079 else
14080   echo "configure: failed program was:" >&5
14081   cat conftest.$ac_ext >&5
14082   rm -rf conftest*
14083   glibcpp_cv_func_sqrtl_use=no
14084 fi
14085 rm -f conftest*
14086       ac_ext=c
14087 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14088 ac_cpp='$CPP $CPPFLAGS'
14089 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14090 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14091 cross_compiling=$ac_cv_prog_cc_cross
14092
14093     
14094 fi
14095
14096   fi
14097   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
14098
14099   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
14100     for ac_func in sqrtl
14101 do
14102 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14103 echo "configure:14104: checking for $ac_func" >&5
14104 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14105   echo $ac_n "(cached) $ac_c" 1>&6
14106 else
14107   cat > conftest.$ac_ext <<EOF
14108 #line 14109 "configure"
14109 #include "confdefs.h"
14110 /* System header to define __stub macros and hopefully few prototypes,
14111     which can conflict with char $ac_func(); below.  */
14112 #include <assert.h>
14113 /* Override any gcc2 internal prototype to avoid an error.  */
14114 /* We use char because int might match the return type of a gcc2
14115     builtin and then its argument prototype would still apply.  */
14116 char $ac_func();
14117
14118 int main() {
14119
14120 /* The GNU C library defines this for functions which it implements
14121     to always fail with ENOSYS.  Some functions are actually named
14122     something starting with __ and the normal name is an alias.  */
14123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14124 choke me
14125 #else
14126 $ac_func();
14127 #endif
14128
14129 ; return 0; }
14130 EOF
14131 if { (eval echo configure:14132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14132   rm -rf conftest*
14133   eval "ac_cv_func_$ac_func=yes"
14134 else
14135   echo "configure: failed program was:" >&5
14136   cat conftest.$ac_ext >&5
14137   rm -rf conftest*
14138   eval "ac_cv_func_$ac_func=no"
14139 fi
14140 rm -f conftest*
14141 fi
14142
14143 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14144   echo "$ac_t""yes" 1>&6
14145     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14146   cat >> confdefs.h <<EOF
14147 #define $ac_tr_func 1
14148 EOF
14149  
14150 else
14151   echo "$ac_t""no" 1>&6
14152 fi
14153 done
14154     
14155   else
14156     
14157   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
14158 echo "configure:14159: checking for _sqrtl declaration" >&5
14159   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
14160     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
14161   echo $ac_n "(cached) $ac_c" 1>&6
14162 else
14163   
14164       
14165       ac_ext=C
14166 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14167 ac_cpp='$CXXCPP $CPPFLAGS'
14168 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14169 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14170 cross_compiling=$ac_cv_prog_cxx_cross
14171
14172       cat > conftest.$ac_ext <<EOF
14173 #line 14174 "configure"
14174 #include "confdefs.h"
14175 #include <math.h>
14176                       #ifdef HAVE_IEEEFP_H
14177                       #include <ieeefp.h>
14178                       #endif
14179                      
14180 int main() {
14181  _sqrtl(0);
14182 ; return 0; }
14183 EOF
14184 if { (eval echo configure:14185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14185   rm -rf conftest*
14186   glibcpp_cv_func__sqrtl_use=yes
14187 else
14188   echo "configure: failed program was:" >&5
14189   cat conftest.$ac_ext >&5
14190   rm -rf conftest*
14191   glibcpp_cv_func__sqrtl_use=no
14192 fi
14193 rm -f conftest*
14194       ac_ext=c
14195 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14196 ac_cpp='$CPP $CPPFLAGS'
14197 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14198 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14199 cross_compiling=$ac_cv_prog_cc_cross
14200
14201     
14202 fi
14203
14204   fi
14205   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
14206
14207     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
14208       for ac_func in _sqrtl
14209 do
14210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14211 echo "configure:14212: checking for $ac_func" >&5
14212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14213   echo $ac_n "(cached) $ac_c" 1>&6
14214 else
14215   cat > conftest.$ac_ext <<EOF
14216 #line 14217 "configure"
14217 #include "confdefs.h"
14218 /* System header to define __stub macros and hopefully few prototypes,
14219     which can conflict with char $ac_func(); below.  */
14220 #include <assert.h>
14221 /* Override any gcc2 internal prototype to avoid an error.  */
14222 /* We use char because int might match the return type of a gcc2
14223     builtin and then its argument prototype would still apply.  */
14224 char $ac_func();
14225
14226 int main() {
14227
14228 /* The GNU C library defines this for functions which it implements
14229     to always fail with ENOSYS.  Some functions are actually named
14230     something starting with __ and the normal name is an alias.  */
14231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14232 choke me
14233 #else
14234 $ac_func();
14235 #endif
14236
14237 ; return 0; }
14238 EOF
14239 if { (eval echo configure:14240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14240   rm -rf conftest*
14241   eval "ac_cv_func_$ac_func=yes"
14242 else
14243   echo "configure: failed program was:" >&5
14244   cat conftest.$ac_ext >&5
14245   rm -rf conftest*
14246   eval "ac_cv_func_$ac_func=no"
14247 fi
14248 rm -f conftest*
14249 fi
14250
14251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14252   echo "$ac_t""yes" 1>&6
14253     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14254   cat >> confdefs.h <<EOF
14255 #define $ac_tr_func 1
14256 EOF
14257  
14258 else
14259   echo "$ac_t""no" 1>&6
14260 fi
14261 done
14262     
14263     fi  
14264   fi
14265
14266   
14267   
14268   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
14269 echo "configure:14270: checking for sincosl declaration" >&5
14270   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
14271     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
14272   echo $ac_n "(cached) $ac_c" 1>&6
14273 else
14274   
14275       
14276       ac_ext=C
14277 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14278 ac_cpp='$CXXCPP $CPPFLAGS'
14279 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14280 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14281 cross_compiling=$ac_cv_prog_cxx_cross
14282
14283       cat > conftest.$ac_ext <<EOF
14284 #line 14285 "configure"
14285 #include "confdefs.h"
14286 #include <math.h>
14287 int main() {
14288  sincosl(0, 0, 0);
14289 ; return 0; }
14290 EOF
14291 if { (eval echo configure:14292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14292   rm -rf conftest*
14293   glibcpp_cv_func_sincosl_use=yes
14294 else
14295   echo "configure: failed program was:" >&5
14296   cat conftest.$ac_ext >&5
14297   rm -rf conftest*
14298   glibcpp_cv_func_sincosl_use=no
14299 fi
14300 rm -f conftest*
14301       ac_ext=c
14302 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14303 ac_cpp='$CPP $CPPFLAGS'
14304 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14305 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14306 cross_compiling=$ac_cv_prog_cc_cross
14307
14308     
14309 fi
14310
14311   fi
14312   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
14313
14314   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
14315     for ac_func in sincosl
14316 do
14317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14318 echo "configure:14319: checking for $ac_func" >&5
14319 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14320   echo $ac_n "(cached) $ac_c" 1>&6
14321 else
14322   cat > conftest.$ac_ext <<EOF
14323 #line 14324 "configure"
14324 #include "confdefs.h"
14325 /* System header to define __stub macros and hopefully few prototypes,
14326     which can conflict with char $ac_func(); below.  */
14327 #include <assert.h>
14328 /* Override any gcc2 internal prototype to avoid an error.  */
14329 /* We use char because int might match the return type of a gcc2
14330     builtin and then its argument prototype would still apply.  */
14331 char $ac_func();
14332
14333 int main() {
14334
14335 /* The GNU C library defines this for functions which it implements
14336     to always fail with ENOSYS.  Some functions are actually named
14337     something starting with __ and the normal name is an alias.  */
14338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14339 choke me
14340 #else
14341 $ac_func();
14342 #endif
14343
14344 ; return 0; }
14345 EOF
14346 if { (eval echo configure:14347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14347   rm -rf conftest*
14348   eval "ac_cv_func_$ac_func=yes"
14349 else
14350   echo "configure: failed program was:" >&5
14351   cat conftest.$ac_ext >&5
14352   rm -rf conftest*
14353   eval "ac_cv_func_$ac_func=no"
14354 fi
14355 rm -f conftest*
14356 fi
14357
14358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14359   echo "$ac_t""yes" 1>&6
14360     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14361   cat >> confdefs.h <<EOF
14362 #define $ac_tr_func 1
14363 EOF
14364  
14365 else
14366   echo "$ac_t""no" 1>&6
14367 fi
14368 done
14369     
14370   else
14371     
14372   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
14373 echo "configure:14374: checking for _sincosl declaration" >&5
14374   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
14375     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
14376   echo $ac_n "(cached) $ac_c" 1>&6
14377 else
14378   
14379       
14380       ac_ext=C
14381 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14382 ac_cpp='$CXXCPP $CPPFLAGS'
14383 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14384 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14385 cross_compiling=$ac_cv_prog_cxx_cross
14386
14387       cat > conftest.$ac_ext <<EOF
14388 #line 14389 "configure"
14389 #include "confdefs.h"
14390 #include <math.h>
14391 int main() {
14392  _sincosl(0, 0, 0);
14393 ; return 0; }
14394 EOF
14395 if { (eval echo configure:14396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14396   rm -rf conftest*
14397   glibcpp_cv_func__sincosl_use=yes
14398 else
14399   echo "configure: failed program was:" >&5
14400   cat conftest.$ac_ext >&5
14401   rm -rf conftest*
14402   glibcpp_cv_func__sincosl_use=no
14403 fi
14404 rm -f conftest*
14405       ac_ext=c
14406 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14407 ac_cpp='$CPP $CPPFLAGS'
14408 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14409 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14410 cross_compiling=$ac_cv_prog_cc_cross
14411
14412     
14413 fi
14414
14415   fi
14416   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
14417
14418     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
14419       for ac_func in _sincosl
14420 do
14421 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14422 echo "configure:14423: checking for $ac_func" >&5
14423 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14424   echo $ac_n "(cached) $ac_c" 1>&6
14425 else
14426   cat > conftest.$ac_ext <<EOF
14427 #line 14428 "configure"
14428 #include "confdefs.h"
14429 /* System header to define __stub macros and hopefully few prototypes,
14430     which can conflict with char $ac_func(); below.  */
14431 #include <assert.h>
14432 /* Override any gcc2 internal prototype to avoid an error.  */
14433 /* We use char because int might match the return type of a gcc2
14434     builtin and then its argument prototype would still apply.  */
14435 char $ac_func();
14436
14437 int main() {
14438
14439 /* The GNU C library defines this for functions which it implements
14440     to always fail with ENOSYS.  Some functions are actually named
14441     something starting with __ and the normal name is an alias.  */
14442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14443 choke me
14444 #else
14445 $ac_func();
14446 #endif
14447
14448 ; return 0; }
14449 EOF
14450 if { (eval echo configure:14451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14451   rm -rf conftest*
14452   eval "ac_cv_func_$ac_func=yes"
14453 else
14454   echo "configure: failed program was:" >&5
14455   cat conftest.$ac_ext >&5
14456   rm -rf conftest*
14457   eval "ac_cv_func_$ac_func=no"
14458 fi
14459 rm -f conftest*
14460 fi
14461
14462 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14463   echo "$ac_t""yes" 1>&6
14464     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14465   cat >> confdefs.h <<EOF
14466 #define $ac_tr_func 1
14467 EOF
14468  
14469 else
14470   echo "$ac_t""no" 1>&6
14471 fi
14472 done
14473     
14474     fi  
14475   fi
14476
14477   
14478   
14479   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
14480 echo "configure:14481: checking for finitel declaration" >&5
14481   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
14482     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
14483   echo $ac_n "(cached) $ac_c" 1>&6
14484 else
14485   
14486       
14487       ac_ext=C
14488 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14489 ac_cpp='$CXXCPP $CPPFLAGS'
14490 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14491 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14492 cross_compiling=$ac_cv_prog_cxx_cross
14493
14494       cat > conftest.$ac_ext <<EOF
14495 #line 14496 "configure"
14496 #include "confdefs.h"
14497 #include <math.h>
14498                       #ifdef HAVE_IEEEFP_H
14499                       #include <ieeefp.h>
14500                       #endif
14501                      
14502 int main() {
14503  finitel(0);
14504 ; return 0; }
14505 EOF
14506 if { (eval echo configure:14507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14507   rm -rf conftest*
14508   glibcpp_cv_func_finitel_use=yes
14509 else
14510   echo "configure: failed program was:" >&5
14511   cat conftest.$ac_ext >&5
14512   rm -rf conftest*
14513   glibcpp_cv_func_finitel_use=no
14514 fi
14515 rm -f conftest*
14516       ac_ext=c
14517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14518 ac_cpp='$CPP $CPPFLAGS'
14519 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14520 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14521 cross_compiling=$ac_cv_prog_cc_cross
14522
14523     
14524 fi
14525
14526   fi
14527   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
14528
14529   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
14530     for ac_func in finitel
14531 do
14532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14533 echo "configure:14534: checking for $ac_func" >&5
14534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14535   echo $ac_n "(cached) $ac_c" 1>&6
14536 else
14537   cat > conftest.$ac_ext <<EOF
14538 #line 14539 "configure"
14539 #include "confdefs.h"
14540 /* System header to define __stub macros and hopefully few prototypes,
14541     which can conflict with char $ac_func(); below.  */
14542 #include <assert.h>
14543 /* Override any gcc2 internal prototype to avoid an error.  */
14544 /* We use char because int might match the return type of a gcc2
14545     builtin and then its argument prototype would still apply.  */
14546 char $ac_func();
14547
14548 int main() {
14549
14550 /* The GNU C library defines this for functions which it implements
14551     to always fail with ENOSYS.  Some functions are actually named
14552     something starting with __ and the normal name is an alias.  */
14553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14554 choke me
14555 #else
14556 $ac_func();
14557 #endif
14558
14559 ; return 0; }
14560 EOF
14561 if { (eval echo configure:14562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14562   rm -rf conftest*
14563   eval "ac_cv_func_$ac_func=yes"
14564 else
14565   echo "configure: failed program was:" >&5
14566   cat conftest.$ac_ext >&5
14567   rm -rf conftest*
14568   eval "ac_cv_func_$ac_func=no"
14569 fi
14570 rm -f conftest*
14571 fi
14572
14573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14574   echo "$ac_t""yes" 1>&6
14575     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14576   cat >> confdefs.h <<EOF
14577 #define $ac_tr_func 1
14578 EOF
14579  
14580 else
14581   echo "$ac_t""no" 1>&6
14582 fi
14583 done
14584     
14585   else
14586     
14587   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
14588 echo "configure:14589: checking for _finitel declaration" >&5
14589   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
14590     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
14591   echo $ac_n "(cached) $ac_c" 1>&6
14592 else
14593   
14594       
14595       ac_ext=C
14596 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14597 ac_cpp='$CXXCPP $CPPFLAGS'
14598 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14599 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14600 cross_compiling=$ac_cv_prog_cxx_cross
14601
14602       cat > conftest.$ac_ext <<EOF
14603 #line 14604 "configure"
14604 #include "confdefs.h"
14605 #include <math.h>
14606                       #ifdef HAVE_IEEEFP_H
14607                       #include <ieeefp.h>
14608                       #endif
14609                      
14610 int main() {
14611  _finitel(0);
14612 ; return 0; }
14613 EOF
14614 if { (eval echo configure:14615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14615   rm -rf conftest*
14616   glibcpp_cv_func__finitel_use=yes
14617 else
14618   echo "configure: failed program was:" >&5
14619   cat conftest.$ac_ext >&5
14620   rm -rf conftest*
14621   glibcpp_cv_func__finitel_use=no
14622 fi
14623 rm -f conftest*
14624       ac_ext=c
14625 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14626 ac_cpp='$CPP $CPPFLAGS'
14627 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14628 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14629 cross_compiling=$ac_cv_prog_cc_cross
14630
14631     
14632 fi
14633
14634   fi
14635   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
14636
14637     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
14638       for ac_func in _finitel
14639 do
14640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14641 echo "configure:14642: checking for $ac_func" >&5
14642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14643   echo $ac_n "(cached) $ac_c" 1>&6
14644 else
14645   cat > conftest.$ac_ext <<EOF
14646 #line 14647 "configure"
14647 #include "confdefs.h"
14648 /* System header to define __stub macros and hopefully few prototypes,
14649     which can conflict with char $ac_func(); below.  */
14650 #include <assert.h>
14651 /* Override any gcc2 internal prototype to avoid an error.  */
14652 /* We use char because int might match the return type of a gcc2
14653     builtin and then its argument prototype would still apply.  */
14654 char $ac_func();
14655
14656 int main() {
14657
14658 /* The GNU C library defines this for functions which it implements
14659     to always fail with ENOSYS.  Some functions are actually named
14660     something starting with __ and the normal name is an alias.  */
14661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14662 choke me
14663 #else
14664 $ac_func();
14665 #endif
14666
14667 ; return 0; }
14668 EOF
14669 if { (eval echo configure:14670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14670   rm -rf conftest*
14671   eval "ac_cv_func_$ac_func=yes"
14672 else
14673   echo "configure: failed program was:" >&5
14674   cat conftest.$ac_ext >&5
14675   rm -rf conftest*
14676   eval "ac_cv_func_$ac_func=no"
14677 fi
14678 rm -f conftest*
14679 fi
14680
14681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14682   echo "$ac_t""yes" 1>&6
14683     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14684   cat >> confdefs.h <<EOF
14685 #define $ac_tr_func 1
14686 EOF
14687  
14688 else
14689   echo "$ac_t""no" 1>&6
14690 fi
14691 done
14692     
14693     fi  
14694   fi
14695
14696
14697         
14698     
14699   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
14700 echo "configure:14701: checking for _float trig functions" >&5
14701   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
14702   echo $ac_n "(cached) $ac_c" 1>&6
14703 else
14704   
14705     
14706     ac_ext=C
14707 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14708 ac_cpp='$CXXCPP $CPPFLAGS'
14709 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14710 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14711 cross_compiling=$ac_cv_prog_cxx_cross
14712
14713     cat > conftest.$ac_ext <<EOF
14714 #line 14715 "configure"
14715 #include "confdefs.h"
14716 #include <math.h>
14717 int main() {
14718  `for x in _acosf _asinf _atanf \
14719                                           _cosf _sinf _tanf \
14720                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
14721 ; return 0; }
14722 EOF
14723 if { (eval echo configure:14724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14724   rm -rf conftest*
14725   glibcpp_cv_func__float_trig_use=yes
14726 else
14727   echo "configure: failed program was:" >&5
14728   cat conftest.$ac_ext >&5
14729   rm -rf conftest*
14730   glibcpp_cv_func__float_trig_use=no
14731 fi
14732 rm -f conftest*
14733     ac_ext=c
14734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14735 ac_cpp='$CPP $CPPFLAGS'
14736 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14737 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14738 cross_compiling=$ac_cv_prog_cc_cross
14739
14740 fi
14741
14742   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
14743   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
14744     for ac_func in _acosf _asinf _atanf \
14745                                           _cosf _sinf _tanf \
14746                                           _coshf _sinhf _tanhf
14747 do
14748 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14749 echo "configure:14750: checking for $ac_func" >&5
14750 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14751   echo $ac_n "(cached) $ac_c" 1>&6
14752 else
14753   cat > conftest.$ac_ext <<EOF
14754 #line 14755 "configure"
14755 #include "confdefs.h"
14756 /* System header to define __stub macros and hopefully few prototypes,
14757     which can conflict with char $ac_func(); below.  */
14758 #include <assert.h>
14759 /* Override any gcc2 internal prototype to avoid an error.  */
14760 /* We use char because int might match the return type of a gcc2
14761     builtin and then its argument prototype would still apply.  */
14762 char $ac_func();
14763
14764 int main() {
14765
14766 /* The GNU C library defines this for functions which it implements
14767     to always fail with ENOSYS.  Some functions are actually named
14768     something starting with __ and the normal name is an alias.  */
14769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14770 choke me
14771 #else
14772 $ac_func();
14773 #endif
14774
14775 ; return 0; }
14776 EOF
14777 if { (eval echo configure:14778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14778   rm -rf conftest*
14779   eval "ac_cv_func_$ac_func=yes"
14780 else
14781   echo "configure: failed program was:" >&5
14782   cat conftest.$ac_ext >&5
14783   rm -rf conftest*
14784   eval "ac_cv_func_$ac_func=no"
14785 fi
14786 rm -f conftest*
14787 fi
14788
14789 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14790   echo "$ac_t""yes" 1>&6
14791     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14792   cat >> confdefs.h <<EOF
14793 #define $ac_tr_func 1
14794 EOF
14795  
14796 else
14797   echo "$ac_t""no" 1>&6
14798 fi
14799 done
14800
14801   fi
14802
14803   
14804   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
14805 echo "configure:14806: checking for _float round functions" >&5
14806   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
14807   echo $ac_n "(cached) $ac_c" 1>&6
14808 else
14809   
14810     
14811     ac_ext=C
14812 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14813 ac_cpp='$CXXCPP $CPPFLAGS'
14814 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14815 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14816 cross_compiling=$ac_cv_prog_cxx_cross
14817
14818     cat > conftest.$ac_ext <<EOF
14819 #line 14820 "configure"
14820 #include "confdefs.h"
14821 #include <math.h>
14822 int main() {
14823  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
14824 ; return 0; }
14825 EOF
14826 if { (eval echo configure:14827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14827   rm -rf conftest*
14828   glibcpp_cv_func__float_round_use=yes
14829 else
14830   echo "configure: failed program was:" >&5
14831   cat conftest.$ac_ext >&5
14832   rm -rf conftest*
14833   glibcpp_cv_func__float_round_use=no
14834 fi
14835 rm -f conftest*
14836     ac_ext=c
14837 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14838 ac_cpp='$CPP $CPPFLAGS'
14839 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14840 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14841 cross_compiling=$ac_cv_prog_cc_cross
14842
14843 fi
14844
14845   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
14846   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
14847     for ac_func in _ceilf _floorf
14848 do
14849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14850 echo "configure:14851: checking for $ac_func" >&5
14851 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14852   echo $ac_n "(cached) $ac_c" 1>&6
14853 else
14854   cat > conftest.$ac_ext <<EOF
14855 #line 14856 "configure"
14856 #include "confdefs.h"
14857 /* System header to define __stub macros and hopefully few prototypes,
14858     which can conflict with char $ac_func(); below.  */
14859 #include <assert.h>
14860 /* Override any gcc2 internal prototype to avoid an error.  */
14861 /* We use char because int might match the return type of a gcc2
14862     builtin and then its argument prototype would still apply.  */
14863 char $ac_func();
14864
14865 int main() {
14866
14867 /* The GNU C library defines this for functions which it implements
14868     to always fail with ENOSYS.  Some functions are actually named
14869     something starting with __ and the normal name is an alias.  */
14870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14871 choke me
14872 #else
14873 $ac_func();
14874 #endif
14875
14876 ; return 0; }
14877 EOF
14878 if { (eval echo configure:14879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14879   rm -rf conftest*
14880   eval "ac_cv_func_$ac_func=yes"
14881 else
14882   echo "configure: failed program was:" >&5
14883   cat conftest.$ac_ext >&5
14884   rm -rf conftest*
14885   eval "ac_cv_func_$ac_func=no"
14886 fi
14887 rm -f conftest*
14888 fi
14889
14890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14891   echo "$ac_t""yes" 1>&6
14892     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14893   cat >> confdefs.h <<EOF
14894 #define $ac_tr_func 1
14895 EOF
14896  
14897 else
14898   echo "$ac_t""no" 1>&6
14899 fi
14900 done
14901
14902   fi
14903
14904
14905     
14906   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
14907 echo "configure:14908: checking for _long double trig functions" >&5
14908   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
14909   echo $ac_n "(cached) $ac_c" 1>&6
14910 else
14911   
14912     
14913     ac_ext=C
14914 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14915 ac_cpp='$CXXCPP $CPPFLAGS'
14916 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14917 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14918 cross_compiling=$ac_cv_prog_cxx_cross
14919
14920     cat > conftest.$ac_ext <<EOF
14921 #line 14922 "configure"
14922 #include "confdefs.h"
14923 #include <math.h>
14924 int main() {
14925  `for x in _acosl _asinl _atanl \
14926                                           _cosl _sinl _tanl \
14927                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
14928 ; return 0; }
14929 EOF
14930 if { (eval echo configure:14931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14931   rm -rf conftest*
14932   glibcpp_cv_func__long_double_trig_use=yes
14933 else
14934   echo "configure: failed program was:" >&5
14935   cat conftest.$ac_ext >&5
14936   rm -rf conftest*
14937   glibcpp_cv_func__long_double_trig_use=no
14938 fi
14939 rm -f conftest*
14940     ac_ext=c
14941 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14942 ac_cpp='$CPP $CPPFLAGS'
14943 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14944 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14945 cross_compiling=$ac_cv_prog_cc_cross
14946
14947 fi
14948
14949   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
14950   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
14951     for ac_func in _acosl _asinl _atanl \
14952                                           _cosl _sinl _tanl \
14953                                           _coshl _sinhl _tanhl
14954 do
14955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14956 echo "configure:14957: checking for $ac_func" >&5
14957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14958   echo $ac_n "(cached) $ac_c" 1>&6
14959 else
14960   cat > conftest.$ac_ext <<EOF
14961 #line 14962 "configure"
14962 #include "confdefs.h"
14963 /* System header to define __stub macros and hopefully few prototypes,
14964     which can conflict with char $ac_func(); below.  */
14965 #include <assert.h>
14966 /* Override any gcc2 internal prototype to avoid an error.  */
14967 /* We use char because int might match the return type of a gcc2
14968     builtin and then its argument prototype would still apply.  */
14969 char $ac_func();
14970
14971 int main() {
14972
14973 /* The GNU C library defines this for functions which it implements
14974     to always fail with ENOSYS.  Some functions are actually named
14975     something starting with __ and the normal name is an alias.  */
14976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14977 choke me
14978 #else
14979 $ac_func();
14980 #endif
14981
14982 ; return 0; }
14983 EOF
14984 if { (eval echo configure:14985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14985   rm -rf conftest*
14986   eval "ac_cv_func_$ac_func=yes"
14987 else
14988   echo "configure: failed program was:" >&5
14989   cat conftest.$ac_ext >&5
14990   rm -rf conftest*
14991   eval "ac_cv_func_$ac_func=no"
14992 fi
14993 rm -f conftest*
14994 fi
14995
14996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14997   echo "$ac_t""yes" 1>&6
14998     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14999   cat >> confdefs.h <<EOF
15000 #define $ac_tr_func 1
15001 EOF
15002  
15003 else
15004   echo "$ac_t""no" 1>&6
15005 fi
15006 done
15007
15008   fi
15009
15010   
15011   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
15012 echo "configure:15013: checking for _long double round functions" >&5
15013   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
15014   echo $ac_n "(cached) $ac_c" 1>&6
15015 else
15016   
15017     
15018     ac_ext=C
15019 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15020 ac_cpp='$CXXCPP $CPPFLAGS'
15021 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15022 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15023 cross_compiling=$ac_cv_prog_cxx_cross
15024
15025     cat > conftest.$ac_ext <<EOF
15026 #line 15027 "configure"
15027 #include "confdefs.h"
15028 #include <math.h>
15029 int main() {
15030  `for x in _ceill _floorl; do echo "$x (0);"; done` 
15031 ; return 0; }
15032 EOF
15033 if { (eval echo configure:15034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15034   rm -rf conftest*
15035   glibcpp_cv_func__long_double_round_use=yes
15036 else
15037   echo "configure: failed program was:" >&5
15038   cat conftest.$ac_ext >&5
15039   rm -rf conftest*
15040   glibcpp_cv_func__long_double_round_use=no
15041 fi
15042 rm -f conftest*
15043     ac_ext=c
15044 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15045 ac_cpp='$CPP $CPPFLAGS'
15046 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15047 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15048 cross_compiling=$ac_cv_prog_cc_cross
15049
15050 fi
15051
15052   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
15053   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
15054     for ac_func in _ceill _floorl
15055 do
15056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15057 echo "configure:15058: checking for $ac_func" >&5
15058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15059   echo $ac_n "(cached) $ac_c" 1>&6
15060 else
15061   cat > conftest.$ac_ext <<EOF
15062 #line 15063 "configure"
15063 #include "confdefs.h"
15064 /* System header to define __stub macros and hopefully few prototypes,
15065     which can conflict with char $ac_func(); below.  */
15066 #include <assert.h>
15067 /* Override any gcc2 internal prototype to avoid an error.  */
15068 /* We use char because int might match the return type of a gcc2
15069     builtin and then its argument prototype would still apply.  */
15070 char $ac_func();
15071
15072 int main() {
15073
15074 /* The GNU C library defines this for functions which it implements
15075     to always fail with ENOSYS.  Some functions are actually named
15076     something starting with __ and the normal name is an alias.  */
15077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15078 choke me
15079 #else
15080 $ac_func();
15081 #endif
15082
15083 ; return 0; }
15084 EOF
15085 if { (eval echo configure:15086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15086   rm -rf conftest*
15087   eval "ac_cv_func_$ac_func=yes"
15088 else
15089   echo "configure: failed program was:" >&5
15090   cat conftest.$ac_ext >&5
15091   rm -rf conftest*
15092   eval "ac_cv_func_$ac_func=no"
15093 fi
15094 rm -f conftest*
15095 fi
15096
15097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15098   echo "$ac_t""yes" 1>&6
15099     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15100   cat >> confdefs.h <<EOF
15101 #define $ac_tr_func 1
15102 EOF
15103  
15104 else
15105   echo "$ac_t""no" 1>&6
15106 fi
15107 done
15108
15109   fi
15110
15111
15112   LIBS="$ac_save_LIBS"
15113   CXXFLAGS="$ac_save_CXXFLAGS"
15114
15115   
15116     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
15117 echo "configure:15118: checking for main in -lm" >&5
15118 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
15119 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15120   echo $ac_n "(cached) $ac_c" 1>&6
15121 else
15122   ac_save_LIBS="$LIBS"
15123 LIBS="-lm  $LIBS"
15124 cat > conftest.$ac_ext <<EOF
15125 #line 15126 "configure"
15126 #include "confdefs.h"
15127
15128 int main() {
15129 main()
15130 ; return 0; }
15131 EOF
15132 if { (eval echo configure:15133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15133   rm -rf conftest*
15134   eval "ac_cv_lib_$ac_lib_var=yes"
15135 else
15136   echo "configure: failed program was:" >&5
15137   cat conftest.$ac_ext >&5
15138   rm -rf conftest*
15139   eval "ac_cv_lib_$ac_lib_var=no"
15140 fi
15141 rm -f conftest*
15142 LIBS="$ac_save_LIBS"
15143
15144 fi
15145 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15146   echo "$ac_t""yes" 1>&6
15147     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
15148     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
15149   cat >> confdefs.h <<EOF
15150 #define $ac_tr_lib 1
15151 EOF
15152
15153   LIBS="-lm $LIBS"
15154
15155 else
15156   echo "$ac_t""no" 1>&6
15157 fi
15158
15159   for ac_func in nan hypot hypotf atan2f expf copysignf
15160 do
15161 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15162 echo "configure:15163: checking for $ac_func" >&5
15163 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15164   echo $ac_n "(cached) $ac_c" 1>&6
15165 else
15166   cat > conftest.$ac_ext <<EOF
15167 #line 15168 "configure"
15168 #include "confdefs.h"
15169 /* System header to define __stub macros and hopefully few prototypes,
15170     which can conflict with char $ac_func(); below.  */
15171 #include <assert.h>
15172 /* Override any gcc2 internal prototype to avoid an error.  */
15173 /* We use char because int might match the return type of a gcc2
15174     builtin and then its argument prototype would still apply.  */
15175 char $ac_func();
15176
15177 int main() {
15178
15179 /* The GNU C library defines this for functions which it implements
15180     to always fail with ENOSYS.  Some functions are actually named
15181     something starting with __ and the normal name is an alias.  */
15182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15183 choke me
15184 #else
15185 $ac_func();
15186 #endif
15187
15188 ; return 0; }
15189 EOF
15190 if { (eval echo configure:15191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15191   rm -rf conftest*
15192   eval "ac_cv_func_$ac_func=yes"
15193 else
15194   echo "configure: failed program was:" >&5
15195   cat conftest.$ac_ext >&5
15196   rm -rf conftest*
15197   eval "ac_cv_func_$ac_func=no"
15198 fi
15199 rm -f conftest*
15200 fi
15201
15202 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15203   echo "$ac_t""yes" 1>&6
15204     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15205   cat >> confdefs.h <<EOF
15206 #define $ac_tr_func 1
15207 EOF
15208  
15209 else
15210   echo "$ac_t""no" 1>&6
15211 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15212 fi
15213 done
15214
15215
15216
15217           USE_COMPLEX_LONG_DOUBLE=no
15218   if test x$ac_cv_func_atan2l = x"yes" \
15219      && test x$ac_cv_func_copysignl = x"yes"; then
15220     USE_COMPLEX_LONG_DOUBLE=yes
15221     for ac_func in hypotl signbitl
15222 do
15223 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15224 echo "configure:15225: checking for $ac_func" >&5
15225 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15226   echo $ac_n "(cached) $ac_c" 1>&6
15227 else
15228   cat > conftest.$ac_ext <<EOF
15229 #line 15230 "configure"
15230 #include "confdefs.h"
15231 /* System header to define __stub macros and hopefully few prototypes,
15232     which can conflict with char $ac_func(); below.  */
15233 #include <assert.h>
15234 /* Override any gcc2 internal prototype to avoid an error.  */
15235 /* We use char because int might match the return type of a gcc2
15236     builtin and then its argument prototype would still apply.  */
15237 char $ac_func();
15238
15239 int main() {
15240
15241 /* The GNU C library defines this for functions which it implements
15242     to always fail with ENOSYS.  Some functions are actually named
15243     something starting with __ and the normal name is an alias.  */
15244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15245 choke me
15246 #else
15247 $ac_func();
15248 #endif
15249
15250 ; return 0; }
15251 EOF
15252 if { (eval echo configure:15253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15253   rm -rf conftest*
15254   eval "ac_cv_func_$ac_func=yes"
15255 else
15256   echo "configure: failed program was:" >&5
15257   cat conftest.$ac_ext >&5
15258   rm -rf conftest*
15259   eval "ac_cv_func_$ac_func=no"
15260 fi
15261 rm -f conftest*
15262 fi
15263
15264 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15265   echo "$ac_t""yes" 1>&6
15266     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15267   cat >> confdefs.h <<EOF
15268 #define $ac_tr_func 1
15269 EOF
15270  
15271 else
15272   echo "$ac_t""no" 1>&6
15273 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15274 fi
15275 done
15276
15277
15278   fi
15279
15280   
15281
15282   
15283   
15284
15285   echo $ac_n "checking for GNU C++ __complex__ support""... $ac_c" 1>&6
15286 echo "configure:15287: checking for GNU C++ __complex__ support" >&5
15287   if eval "test \"`echo '$''{'glibcpp_cv_complex'+set}'`\" = set"; then
15288   echo $ac_n "(cached) $ac_c" 1>&6
15289 else
15290   
15291     
15292     ac_ext=C
15293 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15294 ac_cpp='$CXXCPP $CPPFLAGS'
15295 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15296 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15297 cross_compiling=$ac_cv_prog_cxx_cross
15298
15299     cat > conftest.$ac_ext <<EOF
15300 #line 15301 "configure"
15301 #include "confdefs.h"
15302 struct dcomplex { __complex__ double x; }; \
15303                     dcomplex f(const dcomplex& x) { return dcomplex(x); }
15304 int main() {
15305 \
15306                      dcomplex x; f(x); 
15307 ; return 0; }
15308 EOF
15309 if { (eval echo configure:15310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15310   rm -rf conftest*
15311   glibcpp_cv_complex=ok
15312 else
15313   echo "configure: failed program was:" >&5
15314   cat conftest.$ac_ext >&5
15315   rm -rf conftest*
15316   glibcpp_cv_complex=buggy
15317     
15318 fi
15319 rm -f conftest*
15320     ac_ext=c
15321 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15322 ac_cpp='$CPP $CPPFLAGS'
15323 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15324 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15325 cross_compiling=$ac_cv_prog_cc_cross
15326
15327   
15328 fi
15329
15330   echo "$ac_t""$glibcpp_cv_complex" 1>&6
15331   if test $glibcpp_cv_complex = buggy; then
15332     cat >> confdefs.h <<\EOF
15333 #define _GLIBCPP_BUGGY_COMPLEX 1
15334 EOF
15335
15336   fi
15337
15338   echo $ac_n "checking for GNU C++ __complex__ float support""... $ac_c" 1>&6
15339 echo "configure:15340: checking for GNU C++ __complex__ float support" >&5
15340   if eval "test \"`echo '$''{'glibcpp_cv_float_complex'+set}'`\" = set"; then
15341   echo $ac_n "(cached) $ac_c" 1>&6
15342 else
15343   
15344     
15345     ac_ext=C
15346 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15347 ac_cpp='$CXXCPP $CPPFLAGS'
15348 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15349 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15350 cross_compiling=$ac_cv_prog_cxx_cross
15351
15352     rm -f conftest.h
15353     cat > conftest.h <<EOB
15354       //
15355       // Check for buggy __complex__ that causes ICE in most versions of egcs
15356       // and gcc-2.95.x on certain platforms (eg., x86-win32).
15357       //
15358       // See http://gcc.gnu.org/ml/gcc-bugs/1999-07n/msg00845.html for
15359       // more info on the bug itself.
15360       //
15361       struct
15362       float_complex
15363       {
15364        __complex__ float m_value;
15365        float_complex (float = 0.0f, float = 0.0f);
15366        float_complex (__complex__ float val) : m_value (val) {}
15367        float_complex foo (const float_complex &val)
15368          { return float_complex (~val.m_value); }
15369       };
15370 EOB
15371     cat > conftest.$ac_ext <<EOF
15372 #line 15373 "configure"
15373 #include "confdefs.h"
15374 #include "conftest.h"
15375 int main() {
15376
15377 ; return 0; }
15378 EOF
15379 if { (eval echo configure:15380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15380   rm -rf conftest*
15381   glibcpp_cv_float_complex=ok
15382 else
15383   echo "configure: failed program was:" >&5
15384   cat conftest.$ac_ext >&5
15385   rm -rf conftest*
15386   glibcpp_cv_float_complex=buggy
15387     
15388 fi
15389 rm -f conftest*
15390     ac_ext=c
15391 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15392 ac_cpp='$CPP $CPPFLAGS'
15393 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15394 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15395 cross_compiling=$ac_cv_prog_cc_cross
15396
15397   
15398 fi
15399
15400   echo "$ac_t""$glibcpp_cv_float_complex" 1>&6
15401   if test $glibcpp_cv_float_complex = buggy; then
15402     cat >> confdefs.h <<\EOF
15403 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
15404 EOF
15405
15406   fi
15407
15408   
15409
15410       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
15411 echo "configure:15412: checking for mbstate_t" >&5
15412   cat > conftest.$ac_ext <<EOF
15413 #line 15414 "configure"
15414 #include "confdefs.h"
15415 #include <wchar.h>
15416 int main() {
15417 mbstate_t teststate;
15418 ; return 0; }
15419 EOF
15420 if { (eval echo configure:15421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15421   rm -rf conftest*
15422   have_mbstate_t=yes
15423 else
15424   echo "configure: failed program was:" >&5
15425   cat conftest.$ac_ext >&5
15426   rm -rf conftest*
15427   have_mbstate_t=no
15428 fi
15429 rm -f conftest*
15430   echo "$ac_t""$have_mbstate_t" 1>&6
15431   if test x"$have_mbstate_t" = xyes; then
15432     cat >> confdefs.h <<\EOF
15433 #define HAVE_MBSTATE_T 1
15434 EOF
15435
15436   fi
15437
15438     for ac_hdr in wchar.h
15439 do
15440 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15441 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15442 echo "configure:15443: checking for $ac_hdr" >&5
15443 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15444   echo $ac_n "(cached) $ac_c" 1>&6
15445 else
15446   cat > conftest.$ac_ext <<EOF
15447 #line 15448 "configure"
15448 #include "confdefs.h"
15449 #include <$ac_hdr>
15450 EOF
15451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15452 { (eval echo configure:15453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15454 if test -z "$ac_err"; then
15455   rm -rf conftest*
15456   eval "ac_cv_header_$ac_safe=yes"
15457 else
15458   echo "$ac_err" >&5
15459   echo "configure: failed program was:" >&5
15460   cat conftest.$ac_ext >&5
15461   rm -rf conftest*
15462   eval "ac_cv_header_$ac_safe=no"
15463 fi
15464 rm -f conftest*
15465 fi
15466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15467   echo "$ac_t""yes" 1>&6
15468     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15469   cat >> confdefs.h <<EOF
15470 #define $ac_tr_hdr 1
15471 EOF
15472  ac_has_wchar_h=yes
15473 else
15474   echo "$ac_t""no" 1>&6
15475 ac_has_wchar_h=no
15476 fi
15477 done
15478
15479   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
15480 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
15481 echo "configure:15482: checking for wctype.h" >&5
15482 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15483   echo $ac_n "(cached) $ac_c" 1>&6
15484 else
15485   cat > conftest.$ac_ext <<EOF
15486 #line 15487 "configure"
15487 #include "confdefs.h"
15488 #include <wctype.h>
15489 EOF
15490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15491 { (eval echo configure:15492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15493 if test -z "$ac_err"; then
15494   rm -rf conftest*
15495   eval "ac_cv_header_$ac_safe=yes"
15496 else
15497   echo "$ac_err" >&5
15498   echo "configure: failed program was:" >&5
15499   cat conftest.$ac_ext >&5
15500   rm -rf conftest*
15501   eval "ac_cv_header_$ac_safe=no"
15502 fi
15503 rm -f conftest*
15504 fi
15505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15506   echo "$ac_t""yes" 1>&6
15507   ac_has_wctype_h=yes
15508 else
15509   echo "$ac_t""no" 1>&6
15510 ac_has_wctype_h=no
15511 fi
15512
15513   
15514     if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
15515      && test x"$enable_c_mbchar" != xno; then
15516       
15517             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
15518 echo "configure:15519: checking for WCHAR_MIN and WCHAR_MAX" >&5
15519     cat > conftest.$ac_ext <<EOF
15520 #line 15521 "configure"
15521 #include "confdefs.h"
15522 #include <wchar.h>
15523 int main() {
15524 int i = WCHAR_MIN; int j = WCHAR_MAX;
15525 ; return 0; }
15526 EOF
15527 if { (eval echo configure:15528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15528   rm -rf conftest*
15529   has_wchar_minmax=yes
15530 else
15531   echo "configure: failed program was:" >&5
15532   cat conftest.$ac_ext >&5
15533   rm -rf conftest*
15534   has_wchar_minmax=no
15535 fi
15536 rm -f conftest*
15537     echo "$ac_t""$has_wchar_minmax" 1>&6
15538     
15539             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
15540 echo "configure:15541: checking for WEOF" >&5
15541     cat > conftest.$ac_ext <<EOF
15542 #line 15543 "configure"
15543 #include "confdefs.h"
15544
15545       #include <wchar.h>
15546       #include <stddef.h>
15547 int main() {
15548 wint_t i = WEOF;
15549 ; return 0; }
15550 EOF
15551 if { (eval echo configure:15552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15552   rm -rf conftest*
15553   has_weof=yes
15554 else
15555   echo "configure: failed program was:" >&5
15556   cat conftest.$ac_ext >&5
15557   rm -rf conftest*
15558   has_weof=no
15559 fi
15560 rm -f conftest*
15561     echo "$ac_t""$has_weof" 1>&6
15562   
15563         for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \
15564     wcsrtombs mbsrtowcs
15565 do
15566 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15567 echo "configure:15568: checking for $ac_func" >&5
15568 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15569   echo $ac_n "(cached) $ac_c" 1>&6
15570 else
15571   cat > conftest.$ac_ext <<EOF
15572 #line 15573 "configure"
15573 #include "confdefs.h"
15574 /* System header to define __stub macros and hopefully few prototypes,
15575     which can conflict with char $ac_func(); below.  */
15576 #include <assert.h>
15577 /* Override any gcc2 internal prototype to avoid an error.  */
15578 /* We use char because int might match the return type of a gcc2
15579     builtin and then its argument prototype would still apply.  */
15580 char $ac_func();
15581
15582 int main() {
15583
15584 /* The GNU C library defines this for functions which it implements
15585     to always fail with ENOSYS.  Some functions are actually named
15586     something starting with __ and the normal name is an alias.  */
15587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15588 choke me
15589 #else
15590 $ac_func();
15591 #endif
15592
15593 ; return 0; }
15594 EOF
15595 if { (eval echo configure:15596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15596   rm -rf conftest*
15597   eval "ac_cv_func_$ac_func=yes"
15598 else
15599   echo "configure: failed program was:" >&5
15600   cat conftest.$ac_ext >&5
15601   rm -rf conftest*
15602   eval "ac_cv_func_$ac_func=no"
15603 fi
15604 rm -f conftest*
15605 fi
15606
15607 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15608   echo "$ac_t""yes" 1>&6
15609     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15610   cat >> confdefs.h <<EOF
15611 #define $ac_tr_func 1
15612 EOF
15613  ac_wfuncs=yes
15614 else
15615   echo "$ac_t""no" 1>&6
15616 ac_wfuncs=no
15617 fi
15618 done
15619
15620   
15621     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
15622 echo "configure:15623: checking for ISO C99 wchar_t support" >&5
15623     if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
15624        && test x"$ac_wfuncs" = xyes; then
15625       ac_isoC99_wchar_t=yes
15626     else
15627       ac_isoC99_wchar_t=no
15628     fi
15629     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
15630   
15631             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
15632 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
15633 echo "configure:15634: checking for iconv.h" >&5
15634 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15635   echo $ac_n "(cached) $ac_c" 1>&6
15636 else
15637   cat > conftest.$ac_ext <<EOF
15638 #line 15639 "configure"
15639 #include "confdefs.h"
15640 #include <iconv.h>
15641 EOF
15642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15643 { (eval echo configure:15644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15645 if test -z "$ac_err"; then
15646   rm -rf conftest*
15647   eval "ac_cv_header_$ac_safe=yes"
15648 else
15649   echo "$ac_err" >&5
15650   echo "configure: failed program was:" >&5
15651   cat conftest.$ac_ext >&5
15652   rm -rf conftest*
15653   eval "ac_cv_header_$ac_safe=no"
15654 fi
15655 rm -f conftest*
15656 fi
15657 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15658   echo "$ac_t""yes" 1>&6
15659   ac_has_iconv_h=yes
15660 else
15661   echo "$ac_t""no" 1>&6
15662 ac_has_iconv_h=no
15663 fi
15664
15665     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
15666 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
15667 echo "configure:15668: checking for langinfo.h" >&5
15668 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15669   echo $ac_n "(cached) $ac_c" 1>&6
15670 else
15671   cat > conftest.$ac_ext <<EOF
15672 #line 15673 "configure"
15673 #include "confdefs.h"
15674 #include <langinfo.h>
15675 EOF
15676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15677 { (eval echo configure:15678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15679 if test -z "$ac_err"; then
15680   rm -rf conftest*
15681   eval "ac_cv_header_$ac_safe=yes"
15682 else
15683   echo "$ac_err" >&5
15684   echo "configure: failed program was:" >&5
15685   cat conftest.$ac_ext >&5
15686   rm -rf conftest*
15687   eval "ac_cv_header_$ac_safe=no"
15688 fi
15689 rm -f conftest*
15690 fi
15691 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15692   echo "$ac_t""yes" 1>&6
15693   ac_has_langinfo_h=yes
15694 else
15695   echo "$ac_t""no" 1>&6
15696 ac_has_langinfo_h=no
15697 fi
15698
15699
15700         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
15701 echo "configure:15702: checking for iconv in -liconv" >&5
15702 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
15703 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15704   echo $ac_n "(cached) $ac_c" 1>&6
15705 else
15706   ac_save_LIBS="$LIBS"
15707 LIBS="-liconv  $LIBS"
15708 cat > conftest.$ac_ext <<EOF
15709 #line 15710 "configure"
15710 #include "confdefs.h"
15711 /* Override any gcc2 internal prototype to avoid an error.  */
15712 /* We use char because int might match the return type of a gcc2
15713     builtin and then its argument prototype would still apply.  */
15714 char iconv();
15715
15716 int main() {
15717 iconv()
15718 ; return 0; }
15719 EOF
15720 if { (eval echo configure:15721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15721   rm -rf conftest*
15722   eval "ac_cv_lib_$ac_lib_var=yes"
15723 else
15724   echo "configure: failed program was:" >&5
15725   cat conftest.$ac_ext >&5
15726   rm -rf conftest*
15727   eval "ac_cv_lib_$ac_lib_var=no"
15728 fi
15729 rm -f conftest*
15730 LIBS="$ac_save_LIBS"
15731
15732 fi
15733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15734   echo "$ac_t""yes" 1>&6
15735   libiconv="-liconv"
15736 else
15737   echo "$ac_t""no" 1>&6
15738 fi
15739
15740     ac_save_LIBS="$LIBS"
15741     LIBS="$LIBS $libiconv"
15742
15743     for ac_func in iconv_open iconv_close iconv nl_langinfo
15744 do
15745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15746 echo "configure:15747: checking for $ac_func" >&5
15747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15748   echo $ac_n "(cached) $ac_c" 1>&6
15749 else
15750   cat > conftest.$ac_ext <<EOF
15751 #line 15752 "configure"
15752 #include "confdefs.h"
15753 /* System header to define __stub macros and hopefully few prototypes,
15754     which can conflict with char $ac_func(); below.  */
15755 #include <assert.h>
15756 /* Override any gcc2 internal prototype to avoid an error.  */
15757 /* We use char because int might match the return type of a gcc2
15758     builtin and then its argument prototype would still apply.  */
15759 char $ac_func();
15760
15761 int main() {
15762
15763 /* The GNU C library defines this for functions which it implements
15764     to always fail with ENOSYS.  Some functions are actually named
15765     something starting with __ and the normal name is an alias.  */
15766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15767 choke me
15768 #else
15769 $ac_func();
15770 #endif
15771
15772 ; return 0; }
15773 EOF
15774 if { (eval echo configure:15775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15775   rm -rf conftest*
15776   eval "ac_cv_func_$ac_func=yes"
15777 else
15778   echo "configure: failed program was:" >&5
15779   cat conftest.$ac_ext >&5
15780   rm -rf conftest*
15781   eval "ac_cv_func_$ac_func=no"
15782 fi
15783 rm -f conftest*
15784 fi
15785
15786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15787   echo "$ac_t""yes" 1>&6
15788     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15789   cat >> confdefs.h <<EOF
15790 #define $ac_tr_func 1
15791 EOF
15792  \
15793     ac_XPG2funcs=yes
15794 else
15795   echo "$ac_t""no" 1>&6
15796 ac_XPG2funcs=no
15797 fi
15798 done
15799
15800   
15801     LIBS="$ac_save_LIBS"
15802
15803     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
15804 echo "configure:15805: checking for XPG2 wchar_t support" >&5
15805     if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
15806        && test x"$ac_XPG2funcs" = xyes; then
15807       ac_XPG2_wchar_t=yes
15808     else
15809       ac_XPG2_wchar_t=no
15810     fi
15811     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
15812   
15813             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
15814 echo "configure:15815: checking for enabled wchar_t specializations" >&5
15815     if test x"$ac_isoC99_wchar_t" = xyes \
15816        && test x"$ac_XPG2_wchar_t" = xyes; then
15817       cat >> confdefs.h <<\EOF
15818 #define _GLIBCPP_USE_WCHAR_T 1
15819 EOF
15820
15821       echo "$ac_t"""yes"" 1>&6
15822     else
15823       echo "$ac_t"""no"" 1>&6
15824     fi
15825   else
15826         echo "configure: warning: wchar_t support disabled." 1>&2
15827   fi
15828
15829   
15830   ac_test_CXXFLAGS="${CXXFLAGS+set}"
15831   ac_save_CXXFLAGS="$CXXFLAGS"
15832   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
15833
15834   for ac_func in strtof
15835 do
15836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15837 echo "configure:15838: checking for $ac_func" >&5
15838 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15839   echo $ac_n "(cached) $ac_c" 1>&6
15840 else
15841   cat > conftest.$ac_ext <<EOF
15842 #line 15843 "configure"
15843 #include "confdefs.h"
15844 /* System header to define __stub macros and hopefully few prototypes,
15845     which can conflict with char $ac_func(); below.  */
15846 #include <assert.h>
15847 /* Override any gcc2 internal prototype to avoid an error.  */
15848 /* We use char because int might match the return type of a gcc2
15849     builtin and then its argument prototype would still apply.  */
15850 char $ac_func();
15851
15852 int main() {
15853
15854 /* The GNU C library defines this for functions which it implements
15855     to always fail with ENOSYS.  Some functions are actually named
15856     something starting with __ and the normal name is an alias.  */
15857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15858 choke me
15859 #else
15860 $ac_func();
15861 #endif
15862
15863 ; return 0; }
15864 EOF
15865 if { (eval echo configure:15866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15866   rm -rf conftest*
15867   eval "ac_cv_func_$ac_func=yes"
15868 else
15869   echo "configure: failed program was:" >&5
15870   cat conftest.$ac_ext >&5
15871   rm -rf conftest*
15872   eval "ac_cv_func_$ac_func=no"
15873 fi
15874 rm -f conftest*
15875 fi
15876
15877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15878   echo "$ac_t""yes" 1>&6
15879     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15880   cat >> confdefs.h <<EOF
15881 #define $ac_tr_func 1
15882 EOF
15883  
15884 else
15885   echo "$ac_t""no" 1>&6
15886 fi
15887 done
15888
15889   
15890   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
15891 echo "configure:15892: checking for strtold declaration" >&5
15892   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
15893     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
15894   echo $ac_n "(cached) $ac_c" 1>&6
15895 else
15896   
15897       
15898       ac_ext=C
15899 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15900 ac_cpp='$CXXCPP $CPPFLAGS'
15901 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15902 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15903 cross_compiling=$ac_cv_prog_cxx_cross
15904
15905       cat > conftest.$ac_ext <<EOF
15906 #line 15907 "configure"
15907 #include "confdefs.h"
15908 #include <stdlib.h>
15909 int main() {
15910  strtold(0, 0);
15911 ; return 0; }
15912 EOF
15913 if { (eval echo configure:15914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15914   rm -rf conftest*
15915   glibcpp_cv_func_strtold_use=yes
15916 else
15917   echo "configure: failed program was:" >&5
15918   cat conftest.$ac_ext >&5
15919   rm -rf conftest*
15920   glibcpp_cv_func_strtold_use=no
15921 fi
15922 rm -f conftest*
15923       ac_ext=c
15924 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15925 ac_cpp='$CPP $CPPFLAGS'
15926 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15927 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15928 cross_compiling=$ac_cv_prog_cc_cross
15929
15930     
15931 fi
15932
15933   fi
15934   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
15935   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
15936     for ac_func in strtold
15937 do
15938 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15939 echo "configure:15940: checking for $ac_func" >&5
15940 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15941   echo $ac_n "(cached) $ac_c" 1>&6
15942 else
15943   cat > conftest.$ac_ext <<EOF
15944 #line 15945 "configure"
15945 #include "confdefs.h"
15946 /* System header to define __stub macros and hopefully few prototypes,
15947     which can conflict with char $ac_func(); below.  */
15948 #include <assert.h>
15949 /* Override any gcc2 internal prototype to avoid an error.  */
15950 /* We use char because int might match the return type of a gcc2
15951     builtin and then its argument prototype would still apply.  */
15952 char $ac_func();
15953
15954 int main() {
15955
15956 /* The GNU C library defines this for functions which it implements
15957     to always fail with ENOSYS.  Some functions are actually named
15958     something starting with __ and the normal name is an alias.  */
15959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15960 choke me
15961 #else
15962 $ac_func();
15963 #endif
15964
15965 ; return 0; }
15966 EOF
15967 if { (eval echo configure:15968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15968   rm -rf conftest*
15969   eval "ac_cv_func_$ac_func=yes"
15970 else
15971   echo "configure: failed program was:" >&5
15972   cat conftest.$ac_ext >&5
15973   rm -rf conftest*
15974   eval "ac_cv_func_$ac_func=no"
15975 fi
15976 rm -f conftest*
15977 fi
15978
15979 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15980   echo "$ac_t""yes" 1>&6
15981     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15982   cat >> confdefs.h <<EOF
15983 #define $ac_tr_func 1
15984 EOF
15985  
15986 else
15987   echo "$ac_t""no" 1>&6
15988 fi
15989 done
15990     
15991   fi
15992
15993   for ac_func in drand48
15994 do
15995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15996 echo "configure:15997: checking for $ac_func" >&5
15997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15998   echo $ac_n "(cached) $ac_c" 1>&6
15999 else
16000   cat > conftest.$ac_ext <<EOF
16001 #line 16002 "configure"
16002 #include "confdefs.h"
16003 /* System header to define __stub macros and hopefully few prototypes,
16004     which can conflict with char $ac_func(); below.  */
16005 #include <assert.h>
16006 /* Override any gcc2 internal prototype to avoid an error.  */
16007 /* We use char because int might match the return type of a gcc2
16008     builtin and then its argument prototype would still apply.  */
16009 char $ac_func();
16010
16011 int main() {
16012
16013 /* The GNU C library defines this for functions which it implements
16014     to always fail with ENOSYS.  Some functions are actually named
16015     something starting with __ and the normal name is an alias.  */
16016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16017 choke me
16018 #else
16019 $ac_func();
16020 #endif
16021
16022 ; return 0; }
16023 EOF
16024 if { (eval echo configure:16025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16025   rm -rf conftest*
16026   eval "ac_cv_func_$ac_func=yes"
16027 else
16028   echo "configure: failed program was:" >&5
16029   cat conftest.$ac_ext >&5
16030   rm -rf conftest*
16031   eval "ac_cv_func_$ac_func=no"
16032 fi
16033 rm -f conftest*
16034 fi
16035
16036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16037   echo "$ac_t""yes" 1>&6
16038     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16039   cat >> confdefs.h <<EOF
16040 #define $ac_tr_func 1
16041 EOF
16042  
16043 else
16044   echo "$ac_t""no" 1>&6
16045 fi
16046 done
16047
16048
16049   CXXFLAGS="$ac_save_CXXFLAGS"
16050
16051
16052   cat > conftest.$ac_ext <<EOF
16053 #line 16054 "configure"
16054 #include "confdefs.h"
16055
16056 #include <setjmp.h>
16057
16058 int main() {
16059 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16060 ; return 0; }
16061 EOF
16062 if { (eval echo configure:16063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16063   rm -rf conftest*
16064   cat >> confdefs.h <<\EOF
16065 #define HAVE_SIGSETJMP 1
16066 EOF
16067
16068 else
16069   echo "configure: failed program was:" >&5
16070   cat conftest.$ac_ext >&5
16071 fi
16072 rm -f conftest*
16073
16074   for ac_hdr in unistd.h
16075 do
16076 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16077 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16078 echo "configure:16079: checking for $ac_hdr" >&5
16079 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16080   echo $ac_n "(cached) $ac_c" 1>&6
16081 else
16082   cat > conftest.$ac_ext <<EOF
16083 #line 16084 "configure"
16084 #include "confdefs.h"
16085 #include <$ac_hdr>
16086 EOF
16087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16088 { (eval echo configure:16089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16090 if test -z "$ac_err"; then
16091   rm -rf conftest*
16092   eval "ac_cv_header_$ac_safe=yes"
16093 else
16094   echo "$ac_err" >&5
16095   echo "configure: failed program was:" >&5
16096   cat conftest.$ac_ext >&5
16097   rm -rf conftest*
16098   eval "ac_cv_header_$ac_safe=no"
16099 fi
16100 rm -f conftest*
16101 fi
16102 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16103   echo "$ac_t""yes" 1>&6
16104     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16105   cat >> confdefs.h <<EOF
16106 #define $ac_tr_hdr 1
16107 EOF
16108  
16109 else
16110   echo "$ac_t""no" 1>&6
16111 fi
16112 done
16113
16114 for ac_func in getpagesize
16115 do
16116 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16117 echo "configure:16118: checking for $ac_func" >&5
16118 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16119   echo $ac_n "(cached) $ac_c" 1>&6
16120 else
16121   cat > conftest.$ac_ext <<EOF
16122 #line 16123 "configure"
16123 #include "confdefs.h"
16124 /* System header to define __stub macros and hopefully few prototypes,
16125     which can conflict with char $ac_func(); below.  */
16126 #include <assert.h>
16127 /* Override any gcc2 internal prototype to avoid an error.  */
16128 /* We use char because int might match the return type of a gcc2
16129     builtin and then its argument prototype would still apply.  */
16130 char $ac_func();
16131
16132 int main() {
16133
16134 /* The GNU C library defines this for functions which it implements
16135     to always fail with ENOSYS.  Some functions are actually named
16136     something starting with __ and the normal name is an alias.  */
16137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16138 choke me
16139 #else
16140 $ac_func();
16141 #endif
16142
16143 ; return 0; }
16144 EOF
16145 if { (eval echo configure:16146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16146   rm -rf conftest*
16147   eval "ac_cv_func_$ac_func=yes"
16148 else
16149   echo "configure: failed program was:" >&5
16150   cat conftest.$ac_ext >&5
16151   rm -rf conftest*
16152   eval "ac_cv_func_$ac_func=no"
16153 fi
16154 rm -f conftest*
16155 fi
16156
16157 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16158   echo "$ac_t""yes" 1>&6
16159     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16160   cat >> confdefs.h <<EOF
16161 #define $ac_tr_func 1
16162 EOF
16163  
16164 else
16165   echo "$ac_t""no" 1>&6
16166 fi
16167 done
16168
16169 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
16170 echo "configure:16171: checking for working mmap" >&5
16171 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
16172   echo $ac_n "(cached) $ac_c" 1>&6
16173 else
16174   if test "$cross_compiling" = yes; then
16175   ac_cv_func_mmap_fixed_mapped=no
16176 else
16177   cat > conftest.$ac_ext <<EOF
16178 #line 16179 "configure"
16179 #include "confdefs.h"
16180
16181 /* Thanks to Mike Haertel and Jim Avera for this test.
16182    Here is a matrix of mmap possibilities:
16183         mmap private not fixed
16184         mmap private fixed at somewhere currently unmapped
16185         mmap private fixed at somewhere already mapped
16186         mmap shared not fixed
16187         mmap shared fixed at somewhere currently unmapped
16188         mmap shared fixed at somewhere already mapped
16189    For private mappings, we should verify that changes cannot be read()
16190    back from the file, nor mmap's back from the file at a different
16191    address.  (There have been systems where private was not correctly
16192    implemented like the infamous i386 svr4.0, and systems where the
16193    VM page cache was not coherent with the filesystem buffer cache
16194    like early versions of FreeBSD and possibly contemporary NetBSD.)
16195    For shared mappings, we should conversely verify that changes get
16196    propogated back to all the places they're supposed to be.
16197
16198    Grep wants private fixed already mapped.
16199    The main things grep needs to know about mmap are:
16200    * does it exist and is it safe to write into the mmap'd area
16201    * how to use it (BSD variants)  */
16202 #include <sys/types.h>
16203 #include <fcntl.h>
16204 #include <sys/mman.h>
16205
16206 /* This mess was copied from the GNU getpagesize.h.  */
16207 #ifndef HAVE_GETPAGESIZE
16208 # ifdef HAVE_UNISTD_H
16209 #  include <unistd.h>
16210 # endif
16211
16212 /* Assume that all systems that can run configure have sys/param.h.  */
16213 # ifndef HAVE_SYS_PARAM_H
16214 #  define HAVE_SYS_PARAM_H 1
16215 # endif
16216
16217 # ifdef _SC_PAGESIZE
16218 #  define getpagesize() sysconf(_SC_PAGESIZE)
16219 # else /* no _SC_PAGESIZE */
16220 #  ifdef HAVE_SYS_PARAM_H
16221 #   include <sys/param.h>
16222 #   ifdef EXEC_PAGESIZE
16223 #    define getpagesize() EXEC_PAGESIZE
16224 #   else /* no EXEC_PAGESIZE */
16225 #    ifdef NBPG
16226 #     define getpagesize() NBPG * CLSIZE
16227 #     ifndef CLSIZE
16228 #      define CLSIZE 1
16229 #     endif /* no CLSIZE */
16230 #    else /* no NBPG */
16231 #     ifdef NBPC
16232 #      define getpagesize() NBPC
16233 #     else /* no NBPC */
16234 #      ifdef PAGESIZE
16235 #       define getpagesize() PAGESIZE
16236 #      endif /* PAGESIZE */
16237 #     endif /* no NBPC */
16238 #    endif /* no NBPG */
16239 #   endif /* no EXEC_PAGESIZE */
16240 #  else /* no HAVE_SYS_PARAM_H */
16241 #   define getpagesize() 8192   /* punt totally */
16242 #  endif /* no HAVE_SYS_PARAM_H */
16243 # endif /* no _SC_PAGESIZE */
16244
16245 #endif /* no HAVE_GETPAGESIZE */
16246
16247 #ifdef __cplusplus
16248 extern "C" { void *malloc(unsigned); }
16249 #else
16250 char *malloc();
16251 #endif
16252
16253 int
16254 main()
16255 {
16256         char *data, *data2, *data3;
16257         int i, pagesize;
16258         int fd;
16259
16260         pagesize = getpagesize();
16261
16262         /*
16263          * First, make a file with some known garbage in it.
16264          */
16265         data = malloc(pagesize);
16266         if (!data)
16267                 exit(1);
16268         for (i = 0; i < pagesize; ++i)
16269                 *(data + i) = rand();
16270         umask(0);
16271         fd = creat("conftestmmap", 0600);
16272         if (fd < 0)
16273                 exit(1);
16274         if (write(fd, data, pagesize) != pagesize)
16275                 exit(1);
16276         close(fd);
16277
16278         /*
16279          * Next, try to mmap the file at a fixed address which
16280          * already has something else allocated at it.  If we can,
16281          * also make sure that we see the same garbage.
16282          */
16283         fd = open("conftestmmap", O_RDWR);
16284         if (fd < 0)
16285                 exit(1);
16286         data2 = malloc(2 * pagesize);
16287         if (!data2)
16288                 exit(1);
16289         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
16290         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
16291             MAP_PRIVATE | MAP_FIXED, fd, 0L))
16292                 exit(1);
16293         for (i = 0; i < pagesize; ++i)
16294                 if (*(data + i) != *(data2 + i))
16295                         exit(1);
16296
16297         /*
16298          * Finally, make sure that changes to the mapped area
16299          * do not percolate back to the file as seen by read().
16300          * (This is a bug on some variants of i386 svr4.0.)
16301          */
16302         for (i = 0; i < pagesize; ++i)
16303                 *(data2 + i) = *(data2 + i) + 1;
16304         data3 = malloc(pagesize);
16305         if (!data3)
16306                 exit(1);
16307         if (read(fd, data3, pagesize) != pagesize)
16308                 exit(1);
16309         for (i = 0; i < pagesize; ++i)
16310                 if (*(data + i) != *(data3 + i))
16311                         exit(1);
16312         close(fd);
16313         unlink("conftestmmap");
16314         exit(0);
16315 }
16316
16317 EOF
16318 if { (eval echo configure:16319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16319 then
16320   ac_cv_func_mmap_fixed_mapped=yes
16321 else
16322   echo "configure: failed program was:" >&5
16323   cat conftest.$ac_ext >&5
16324   rm -fr conftest*
16325   ac_cv_func_mmap_fixed_mapped=no
16326 fi
16327 rm -fr conftest*
16328 fi
16329
16330 fi
16331
16332 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
16333 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16334   cat >> confdefs.h <<\EOF
16335 #define HAVE_MMAP 1
16336 EOF
16337
16338 fi
16339
16340 fi
16341
16342 # Now that ctype is determined for all possible targets, we can do this...
16343
16344
16345
16346
16347
16348
16349
16350 if test "$NULL_TARGET" = yes; then
16351   NULL_TARGET_TRUE=
16352   NULL_TARGET_FALSE='#'
16353 else
16354   NULL_TARGET_TRUE='#'
16355   NULL_TARGET_FALSE=
16356 fi
16357
16358
16359 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
16360   NATIVE_TRUE=
16361   NATIVE_FALSE='#'
16362 else
16363   NATIVE_TRUE='#'
16364   NATIVE_FALSE=
16365 fi
16366
16367
16368 if test "$CANADIAN" = yes; then
16369   CANADIAN_TRUE=
16370   CANADIAN_FALSE='#'
16371 else
16372   CANADIAN_TRUE='#'
16373   CANADIAN_FALSE=
16374 fi
16375  
16376 cat > confcache <<\EOF
16377 # This file is a shell script that caches the results of configure
16378 # tests run on this system so they can be shared between configure
16379 # scripts and configure runs.  It is not useful on other systems.
16380 # If it contains results you don't want to keep, you may remove or edit it.
16381 #
16382 # By default, configure uses ./config.cache as the cache file,
16383 # creating it if it does not exist already.  You can give configure
16384 # the --cache-file=FILE option to use a different cache file; that is
16385 # what configure does when it calls configure scripts in
16386 # subdirectories, so they share the cache.
16387 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16388 # config.status only pays attention to the cache file if you give it the
16389 # --recheck option to rerun configure.
16390 #
16391 EOF
16392 # The following way of writing the cache mishandles newlines in values,
16393 # but we know of no workaround that is simple, portable, and efficient.
16394 # So, don't put newlines in cache variables' values.
16395 # Ultrix sh set writes to stderr and can't be redirected directly,
16396 # and sets the high bit in the cache file unless we assign to the vars.
16397 (set) 2>&1 |
16398   case `(ac_space=' '; set | grep ac_space) 2>&1` in
16399   *ac_space=\ *)
16400     # `set' does not quote correctly, so add quotes (double-quote substitution
16401     # turns \\\\ into \\, and sed turns \\ into \).
16402     sed -n \
16403       -e "s/'/'\\\\''/g" \
16404       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16405     ;;
16406   *)
16407     # `set' quotes correctly as required by POSIX, so do not add quotes.
16408     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16409     ;;
16410   esac >> confcache
16411 if cmp -s $cache_file confcache; then
16412   :
16413 else
16414   if test -w $cache_file; then
16415     echo "updating cache $cache_file"
16416     cat confcache > $cache_file
16417   else
16418     echo "not updating unwritable cache $cache_file"
16419   fi
16420 fi
16421 rm -f confcache
16422
16423
16424   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
16425 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
16426 echo "configure:16427: checking for locale.h" >&5
16427 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16428   echo $ac_n "(cached) $ac_c" 1>&6
16429 else
16430   cat > conftest.$ac_ext <<EOF
16431 #line 16432 "configure"
16432 #include "confdefs.h"
16433 #include <locale.h>
16434 EOF
16435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16436 { (eval echo configure:16437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16438 if test -z "$ac_err"; then
16439   rm -rf conftest*
16440   eval "ac_cv_header_$ac_safe=yes"
16441 else
16442   echo "$ac_err" >&5
16443   echo "configure: failed program was:" >&5
16444   cat conftest.$ac_ext >&5
16445   rm -rf conftest*
16446   eval "ac_cv_header_$ac_safe=no"
16447 fi
16448 rm -f conftest*
16449 fi
16450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16451   echo "$ac_t""yes" 1>&6
16452   
16453     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
16454 echo "configure:16455: checking for LC_MESSAGES" >&5
16455 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
16456   echo $ac_n "(cached) $ac_c" 1>&6
16457 else
16458   cat > conftest.$ac_ext <<EOF
16459 #line 16460 "configure"
16460 #include "confdefs.h"
16461 #include <locale.h>
16462 int main() {
16463 return LC_MESSAGES
16464 ; return 0; }
16465 EOF
16466 if { (eval echo configure:16467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16467   rm -rf conftest*
16468   ac_cv_val_LC_MESSAGES=yes
16469 else
16470   echo "configure: failed program was:" >&5
16471   cat conftest.$ac_ext >&5
16472   rm -rf conftest*
16473   ac_cv_val_LC_MESSAGES=no
16474 fi
16475 rm -f conftest*
16476 fi
16477
16478 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
16479     if test $ac_cv_val_LC_MESSAGES = yes; then
16480       cat >> confdefs.h <<\EOF
16481 #define HAVE_LC_MESSAGES 1
16482 EOF
16483
16484     fi
16485   
16486 else
16487   echo "$ac_t""no" 1>&6
16488 fi
16489
16490
16491
16492 if test "${multilib}" = "yes"; then
16493   multilib_arg="--enable-multilib"
16494 else
16495   multilib_arg=
16496 fi
16497
16498
16499 # Generate the various Makefiles, include files, and scripts.
16500
16501 # Needed so that g++ can find the correct include subdir automatically.
16502 INTERFACE=v3
16503
16504 # Export all the install information
16505
16506
16507 glibcpp_toolexecdir=no
16508 glibcpp_toolexeclibdir=no
16509
16510 # Export build and source directories.
16511 # These need to be absolute paths, thus the use of pwd.
16512 glibcpp_builddir=`pwd`
16513 glibcpp_srcdir=`cd ${srcdir} && pwd`
16514 glibcpp_prefixdir=`cd ${prefix} && pwd`
16515
16516 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
16517 echo "configure:16518: checking for interface version number" >&5
16518 libstdcxx_interface=$INTERFACE
16519 echo "$ac_t""$libstdcxx_interface" 1>&6
16520
16521 # Process the option --with-gxx-include-dir=<path to include-files directory>
16522 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
16523 echo "configure:16524: checking for --with-gxx-include-dir" >&5
16524 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
16525 if test "${with_gxx_include_dir+set}" = set; then
16526   withval="$with_gxx_include_dir"
16527   case "${withval}" in
16528   yes)
16529     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
16530     gxx_include_dir=no
16531     ;;
16532   no)
16533     gxx_include_dir=no
16534     ;;
16535   *)
16536     gxx_include_dir=${withval}
16537     ;;
16538 esac
16539 else
16540   gxx_include_dir=no
16541 fi
16542
16543 echo "$ac_t""$gxx_include_dir" 1>&6
16544
16545 # Process the option "--enable-version-specific-runtime-libs"
16546 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
16547 echo "configure:16548: checking for --enable-version-specific-runtime-libs" >&5
16548 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16549 if test "${enable_version_specific_runtime_libs+set}" = set; then
16550   enableval="$enable_version_specific_runtime_libs"
16551     version_specific_libs=yes
16552 # Need the gcc compiler version to know where to install libraries
16553 # and header files if --enable-version-specific-runtime-libs option
16554 # is selected.
16555 gcc_version_trigger=${srcdir}/../gcc/version.c
16556 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
16557 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
16558 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
16559 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16560 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}
16561
16562 else
16563   version_specific_libs=no
16564 fi
16565
16566 echo "$ac_t""$version_specific_libs" 1>&6
16567
16568 # Default case for install directory for include files.
16569 if test x"$version_specific_libs" = x"no" \
16570    && test x"$gxx_include_dir" = x"no"; then
16571   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
16572 fi
16573
16574 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
16575 # Install a library built with a cross compiler in tooldir, not libdir.
16576 if test x"$glibcpp_toolexecdir" = x"no"; then 
16577   if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
16578     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
16579     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
16580   else
16581     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16582     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
16583   fi
16584 fi
16585
16586 echo $ac_n "checking for install location""... $ac_c" 1>&6
16587 echo "configure:16588: checking for install location" >&5
16588 echo "$ac_t""$gxx_include_dir" 1>&6
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598 # Export all the include and flag information to makefiles.
16599
16600   # Root level of the include sources.
16601   GLIBCPP_INCLUDE_DIR='$(top_srcdir)/include'
16602
16603   # Can either use include/c or include/c_std to grab "C" headers. This
16604   # variable is set to the include directory currently in use.
16605   # set with C_INCLUDE_DIR in GLIBCPP_ENABLE_CHEADERS
16606    
16607   # Passed down for canadian crosses.
16608   if  test x"$CANADIAN" = xyes; then
16609     TOPLEVEL_INCLUDES='-I$(includedir)'
16610   fi
16611
16612   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
16613
16614   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
16615
16616   #if GLIBCPP_NEED_LIBIO
16617   LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
16618   #else
16619   #LIBIO_INCLUDES='-I$(top_srcdir)/libio'
16620   #endif
16621
16622   #if GLIBCPP_USE_CSHADOW
16623   #  CSHADOW_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR) \
16624   #                   -I$(top_blddir)/cshadow'
16625   #else
16626   CSTD_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR)'
16627   #endif
16628
16629   # Now, export this to all the little Makefiles....
16630   
16631   
16632   
16633   
16634   
16635   
16636
16637
16638   # Optimization flags that are probably a good idea for thrill-seekers. Just
16639   # uncomment the lines below and make, everything else is ready to go... 
16640   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
16641   OPTIMIZE_CXXFLAGS=
16642   
16643
16644   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
16645   
16646
16647
16648 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
16649    grep "enable shared" > /dev/null; then
16650   LIBSUPCXX_PICFLAGS=-prefer-pic
16651 else
16652   LIBSUPCXX_PICFLAGS=
16653 fi
16654
16655
16656 # This should be done by mkincludedir, but hack around it now.
16657 blddir=`pwd`
16658 echo "checking for $blddir/include"
16659
16660 if test ! -d "$blddir/include"; then
16661   mkdir "$blddir/include"
16662 fi
16663
16664 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
16665 # and libsupc++/Makefile.am so that multilib installs will end up
16666 # installed in the correct place. To work around this not being passed
16667 # down from config-ml.in -> top_srcdir/Makefile.am ->
16668 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
16669 trap '' 1 2 15
16670 cat > confcache <<\EOF
16671 # This file is a shell script that caches the results of configure
16672 # tests run on this system so they can be shared between configure
16673 # scripts and configure runs.  It is not useful on other systems.
16674 # If it contains results you don't want to keep, you may remove or edit it.
16675 #
16676 # By default, configure uses ./config.cache as the cache file,
16677 # creating it if it does not exist already.  You can give configure
16678 # the --cache-file=FILE option to use a different cache file; that is
16679 # what configure does when it calls configure scripts in
16680 # subdirectories, so they share the cache.
16681 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16682 # config.status only pays attention to the cache file if you give it the
16683 # --recheck option to rerun configure.
16684 #
16685 EOF
16686 # The following way of writing the cache mishandles newlines in values,
16687 # but we know of no workaround that is simple, portable, and efficient.
16688 # So, don't put newlines in cache variables' values.
16689 # Ultrix sh set writes to stderr and can't be redirected directly,
16690 # and sets the high bit in the cache file unless we assign to the vars.
16691 (set) 2>&1 |
16692   case `(ac_space=' '; set | grep ac_space) 2>&1` in
16693   *ac_space=\ *)
16694     # `set' does not quote correctly, so add quotes (double-quote substitution
16695     # turns \\\\ into \\, and sed turns \\ into \).
16696     sed -n \
16697       -e "s/'/'\\\\''/g" \
16698       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16699     ;;
16700   *)
16701     # `set' quotes correctly as required by POSIX, so do not add quotes.
16702     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16703     ;;
16704   esac >> confcache
16705 if cmp -s $cache_file confcache; then
16706   :
16707 else
16708   if test -w $cache_file; then
16709     echo "updating cache $cache_file"
16710     cat confcache > $cache_file
16711   else
16712     echo "not updating unwritable cache $cache_file"
16713   fi
16714 fi
16715 rm -f confcache
16716
16717 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16718
16719 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16720 # Let make expand exec_prefix.
16721 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16722
16723 # Any assignment to VPATH causes Sun make to only execute
16724 # the first set of double-colon rules, so remove it if not needed.
16725 # If there is a colon in the path, we need to keep it.
16726 if test "x$srcdir" = x.; then
16727   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
16728 fi
16729
16730 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16731
16732 DEFS=-DHAVE_CONFIG_H
16733
16734 # Without the "./", some shells look in PATH for config.status.
16735 : ${CONFIG_STATUS=./config.status}
16736
16737 echo creating $CONFIG_STATUS
16738 rm -f $CONFIG_STATUS
16739 cat > $CONFIG_STATUS <<EOF
16740 #! /bin/sh
16741 # Generated automatically by configure.
16742 # Run this file to recreate the current configuration.
16743 # This directory was configured as follows,
16744 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16745 #
16746 # $0 $ac_configure_args
16747 #
16748 # Compiler output produced by configure, useful for debugging
16749 # configure, is in ./config.log if it exists.
16750
16751 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16752 for ac_option
16753 do
16754   case "\$ac_option" in
16755   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16756     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16757     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16758   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16759     echo "$CONFIG_STATUS generated by autoconf version 2.13"
16760     exit 0 ;;
16761   -help | --help | --hel | --he | --h)
16762     echo "\$ac_cs_usage"; exit 0 ;;
16763   *) echo "\$ac_cs_usage"; exit 1 ;;
16764   esac
16765 done
16766
16767 ac_given_srcdir=$srcdir
16768 ac_given_INSTALL="$INSTALL"
16769
16770 trap 'rm -fr `echo "Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16771 EOF
16772 cat >> $CONFIG_STATUS <<EOF
16773
16774 # Protect against being on the right side of a sed subst in config.status.
16775 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16776  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16777 $ac_vpsub
16778 $extrasub
16779 s%@SHELL@%$SHELL%g
16780 s%@CFLAGS@%$CFLAGS%g
16781 s%@CPPFLAGS@%$CPPFLAGS%g
16782 s%@CXXFLAGS@%$CXXFLAGS%g
16783 s%@FFLAGS@%$FFLAGS%g
16784 s%@DEFS@%$DEFS%g
16785 s%@LDFLAGS@%$LDFLAGS%g
16786 s%@LIBS@%$LIBS%g
16787 s%@exec_prefix@%$exec_prefix%g
16788 s%@prefix@%$prefix%g
16789 s%@program_transform_name@%$program_transform_name%g
16790 s%@bindir@%$bindir%g
16791 s%@sbindir@%$sbindir%g
16792 s%@libexecdir@%$libexecdir%g
16793 s%@datadir@%$datadir%g
16794 s%@sysconfdir@%$sysconfdir%g
16795 s%@sharedstatedir@%$sharedstatedir%g
16796 s%@localstatedir@%$localstatedir%g
16797 s%@libdir@%$libdir%g
16798 s%@includedir@%$includedir%g
16799 s%@oldincludedir@%$oldincludedir%g
16800 s%@infodir@%$infodir%g
16801 s%@mandir@%$mandir%g
16802 s%@toplevel_srcdir@%$toplevel_srcdir%g
16803 s%@host@%$host%g
16804 s%@host_alias@%$host_alias%g
16805 s%@host_cpu@%$host_cpu%g
16806 s%@host_vendor@%$host_vendor%g
16807 s%@host_os@%$host_os%g
16808 s%@target@%$target%g
16809 s%@target_alias@%$target_alias%g
16810 s%@target_cpu@%$target_cpu%g
16811 s%@target_vendor@%$target_vendor%g
16812 s%@target_os@%$target_os%g
16813 s%@build@%$build%g
16814 s%@build_alias@%$build_alias%g
16815 s%@build_cpu@%$build_cpu%g
16816 s%@build_vendor@%$build_vendor%g
16817 s%@build_os@%$build_os%g
16818 s%@glibcpp_basedir@%$glibcpp_basedir%g
16819 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16820 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16821 s%@INSTALL_DATA@%$INSTALL_DATA%g
16822 s%@PACKAGE@%$PACKAGE%g
16823 s%@VERSION@%$VERSION%g
16824 s%@ACLOCAL@%$ACLOCAL%g
16825 s%@AUTOCONF@%$AUTOCONF%g
16826 s%@AUTOMAKE@%$AUTOMAKE%g
16827 s%@AUTOHEADER@%$AUTOHEADER%g
16828 s%@MAKEINFO@%$MAKEINFO%g
16829 s%@SET_MAKE@%$SET_MAKE%g
16830 s%@CC@%$CC%g
16831 s%@glibcpp_CXX@%$glibcpp_CXX%g
16832 s%@AS@%$AS%g
16833 s%@AR@%$AR%g
16834 s%@RANLIB@%$RANLIB%g
16835 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
16836 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
16837 s%@MAINT@%$MAINT%g
16838 s%@EXEEXT@%$EXEEXT%g
16839 s%@LN_S@%$LN_S%g
16840 s%@OBJEXT@%$OBJEXT%g
16841 s%@STRIP@%$STRIP%g
16842 s%@LIBTOOL@%$LIBTOOL%g
16843 s%@CXXCPP@%$CXXCPP%g
16844 s%@enable_shared@%$enable_shared%g
16845 s%@enable_static@%$enable_static%g
16846 s%@ifGNUmake@%$ifGNUmake%g
16847 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
16848 s%@CPP@%$CPP%g
16849 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
16850 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
16851 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
16852 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
16853 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
16854 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
16855 s%@libio_la@%$libio_la%g
16856 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
16857 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
16858 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
16859 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
16860 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
16861 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
16862 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
16863 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
16864 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
16865 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
16866 s%@WERROR@%$WERROR%g
16867 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
16868 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
16869 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
16870 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
16871 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
16872 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
16873 s%@glibcpp_builddir@%$glibcpp_builddir%g
16874 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
16875 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
16876 s%@gxx_include_dir@%$gxx_include_dir%g
16877 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
16878 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
16879 s%@GLIBCPP_INCLUDE_DIR@%$GLIBCPP_INCLUDE_DIR%g
16880 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
16881 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
16882 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
16883 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
16884 s%@CSTD_INCLUDES@%$CSTD_INCLUDES%g
16885 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
16886 s%@WARN_FLAGS@%$WARN_FLAGS%g
16887 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
16888
16889 CEOF
16890 EOF
16891
16892 cat >> $CONFIG_STATUS <<\EOF
16893
16894 # Split the substitutions into bite-sized pieces for seds with
16895 # small command number limits, like on Digital OSF/1 and HP-UX.
16896 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16897 ac_file=1 # Number of current file.
16898 ac_beg=1 # First line for current file.
16899 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16900 ac_more_lines=:
16901 ac_sed_cmds=""
16902 while $ac_more_lines; do
16903   if test $ac_beg -gt 1; then
16904     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16905   else
16906     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16907   fi
16908   if test ! -s conftest.s$ac_file; then
16909     ac_more_lines=false
16910     rm -f conftest.s$ac_file
16911   else
16912     if test -z "$ac_sed_cmds"; then
16913       ac_sed_cmds="sed -f conftest.s$ac_file"
16914     else
16915       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16916     fi
16917     ac_file=`expr $ac_file + 1`
16918     ac_beg=$ac_end
16919     ac_end=`expr $ac_end + $ac_max_sed_cmds`
16920   fi
16921 done
16922 if test -z "$ac_sed_cmds"; then
16923   ac_sed_cmds=cat
16924 fi
16925 EOF
16926
16927 cat >> $CONFIG_STATUS <<EOF
16928
16929 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile testsuite/Makefile mkcheck testsuite_flags"}
16930 EOF
16931 cat >> $CONFIG_STATUS <<\EOF
16932 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16933   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16934   case "$ac_file" in
16935   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16936        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16937   *) ac_file_in="${ac_file}.in" ;;
16938   esac
16939
16940   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16941
16942   # Remove last slash and all that follows it.  Not all systems have dirname.
16943   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16944   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16945     # The file is in a subdirectory.
16946     test ! -d "$ac_dir" && mkdir "$ac_dir"
16947     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16948     # A "../" for each directory in $ac_dir_suffix.
16949     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16950   else
16951     ac_dir_suffix= ac_dots=
16952   fi
16953
16954   case "$ac_given_srcdir" in
16955   .)  srcdir=.
16956       if test -z "$ac_dots"; then top_srcdir=.
16957       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16958   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16959   *) # Relative path.
16960     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16961     top_srcdir="$ac_dots$ac_given_srcdir" ;;
16962   esac
16963
16964   case "$ac_given_INSTALL" in
16965   [/$]*) INSTALL="$ac_given_INSTALL" ;;
16966   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16967   esac
16968
16969   echo creating "$ac_file"
16970   rm -f "$ac_file"
16971   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16972   case "$ac_file" in
16973   *Makefile*) ac_comsub="1i\\
16974 # $configure_input" ;;
16975   *) ac_comsub= ;;
16976   esac
16977
16978   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16979   sed -e "$ac_comsub
16980 s%@configure_input@%$configure_input%g
16981 s%@srcdir@%$srcdir%g
16982 s%@top_srcdir@%$top_srcdir%g
16983 s%@INSTALL@%$INSTALL%g
16984 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16985 fi; done
16986 rm -f conftest.s*
16987
16988 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16989 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16990 #
16991 # ac_d sets the value in "#define NAME VALUE" lines.
16992 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16993 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
16994 ac_dC='\3'
16995 ac_dD='%g'
16996 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16997 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16998 ac_uB='\([      ]\)%\1#\2define\3'
16999 ac_uC=' '
17000 ac_uD='\4%g'
17001 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17002 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17003 ac_eB='$%\1#\2define\3'
17004 ac_eC=' '
17005 ac_eD='%g'
17006
17007 if test "${CONFIG_HEADERS+set}" != set; then
17008 EOF
17009 cat >> $CONFIG_STATUS <<EOF
17010   CONFIG_HEADERS="config.h"
17011 EOF
17012 cat >> $CONFIG_STATUS <<\EOF
17013 fi
17014 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17015   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17016   case "$ac_file" in
17017   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17018        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17019   *) ac_file_in="${ac_file}.in" ;;
17020   esac
17021
17022   echo creating $ac_file
17023
17024   rm -f conftest.frag conftest.in conftest.out
17025   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17026   cat $ac_file_inputs > conftest.in
17027
17028 EOF
17029
17030 # Transform confdefs.h into a sed script conftest.vals that substitutes
17031 # the proper values into config.h.in to produce config.h.  And first:
17032 # Protect against being on the right side of a sed subst in config.status.
17033 # Protect against being in an unquoted here document in config.status.
17034 rm -f conftest.vals
17035 cat > conftest.hdr <<\EOF
17036 s/[\\&%]/\\&/g
17037 s%[\\$`]%\\&%g
17038 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17039 s%ac_d%ac_u%gp
17040 s%ac_u%ac_e%gp
17041 EOF
17042 sed -n -f conftest.hdr confdefs.h > conftest.vals
17043 rm -f conftest.hdr
17044
17045 # This sed command replaces #undef with comments.  This is necessary, for
17046 # example, in the case of _POSIX_SOURCE, which is predefined and required
17047 # on some systems where configure will not decide to define it.
17048 cat >> conftest.vals <<\EOF
17049 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17050 EOF
17051
17052 # Break up conftest.vals because some shells have a limit on
17053 # the size of here documents, and old seds have small limits too.
17054
17055 rm -f conftest.tail
17056 while :
17057 do
17058   ac_lines=`grep -c . conftest.vals`
17059   # grep -c gives empty output for an empty file on some AIX systems.
17060   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17061   # Write a limited-size here document to conftest.frag.
17062   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17063   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17064   echo 'CEOF
17065   sed -f conftest.frag conftest.in > conftest.out
17066   rm -f conftest.in
17067   mv conftest.out conftest.in
17068 ' >> $CONFIG_STATUS
17069   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17070   rm -f conftest.vals
17071   mv conftest.tail conftest.vals
17072 done
17073 rm -f conftest.vals
17074
17075 cat >> $CONFIG_STATUS <<\EOF
17076   rm -f conftest.frag conftest.h
17077   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
17078   cat conftest.in >> conftest.h
17079   rm -f conftest.in
17080   if cmp -s $ac_file conftest.h 2>/dev/null; then
17081     echo "$ac_file is unchanged"
17082     rm -f conftest.h
17083   else
17084     # Remove last slash and all that follows it.  Not all systems have dirname.
17085       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17086       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17087       # The file is in a subdirectory.
17088       test ! -d "$ac_dir" && mkdir "$ac_dir"
17089     fi
17090     rm -f $ac_file
17091     mv conftest.h $ac_file
17092   fi
17093 fi; done
17094
17095 EOF
17096
17097 cat >> $CONFIG_STATUS <<EOF
17098 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"
17099 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 \
17100 include/bits/ctype_base.h \
17101 include/bits/ctype_inline.h \
17102 include/bits/ctype_noninline.h include/bits/atomicity.h"
17103 EOF
17104
17105 cat >> $CONFIG_STATUS <<\EOF
17106 srcdir=$ac_given_srcdir
17107 while test -n "$ac_sources"; do
17108   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
17109   set $ac_sources; ac_source=$1; shift; ac_sources=$*
17110
17111   echo "linking $srcdir/$ac_source to $ac_dest"
17112
17113   if test ! -r $srcdir/$ac_source; then
17114     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
17115   fi
17116   rm -f $ac_dest
17117
17118   # Make relative symlinks.
17119   # Remove last slash and all that follows it.  Not all systems have dirname.
17120   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
17121   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
17122     # The dest file is in a subdirectory.
17123     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
17124     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
17125     # A "../" for each directory in $ac_dest_dir_suffix.
17126     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
17127   else
17128     ac_dest_dir_suffix= ac_dots=
17129   fi
17130
17131   case "$srcdir" in
17132   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
17133   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
17134   esac
17135
17136   # Make a symlink if possible; otherwise try a hard link.
17137   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17138     ln $srcdir/$ac_source $ac_dest; then :
17139   else
17140     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
17141   fi
17142 done
17143 EOF
17144 cat >> $CONFIG_STATUS <<EOF
17145
17146 srcdir=${srcdir}
17147 host=${host}
17148 target=${target}
17149 with_multisubdir=${with_multisubdir}
17150 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17151 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17152 glibcpp_basedir=${glibcpp_basedir}
17153 CC="${CC}"
17154 CXX="${CXX}"
17155
17156 EOF
17157 cat >> $CONFIG_STATUS <<\EOF
17158 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
17159 if test -n "$CONFIG_FILES"; then
17160   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
17161   grep '^MULTISUBDIR =' Makefile >> src/Makefile
17162   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
17163 fi
17164 chmod +x mkcheck
17165 chmod +x testsuite_flags
17166
17167 exit 0
17168 EOF
17169 chmod +x $CONFIG_STATUS
17170 rm -fr confdefs* $ac_clean_files
17171 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
17172
17173
17174
17175 # Generate bits/c++config.h
17176 # NB: This must be the first generated file as others include it. . .
17177 $srcdir/mkc++config $blddir $srcdir
17178
17179 # Generate bits/std_limits.h and src/limitsMEMBERS.cc
17180 if test ! -f stamp-limits; then
17181   $srcdir/mknumeric_limits $blddir $srcdir $xcompiling
17182   if test ! -f include/bits/std_limits.h; then
17183     echo "mknumeric_limits failed to execute properly: exiting"
17184     exit 1
17185   else
17186     touch stamp-limits 
17187   fi
17188 fi
17189
17190
17191 # Sanity checking & User-visible messages.
17192 # Checks down here, otherwise they get scrolled off before
17193 # the user will notice.
17194
17195 # Trying to get more people to read documentation.  Possibly remove
17196 # check and warn all the time. There is no "informational" AC_MSG_
17197 # macro, so these are going to be printed even when --quiet/--silent
17198 # is given.
17199 if test ! -f stamp-sanity-warned; then
17200   touch stamp-sanity-warned
17201   echo ""
17202   echo "Please make certain that you read the installation information here:"
17203   echo "  faster => ${srcdir}/docs/install.html"
17204   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
17205   echo ""
17206   echo "and the configuration information here:"
17207   echo "  faster => ${srcdir}/docs/configopts.html"
17208   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
17209   echo ""
17210   echo "before proceeding with ${_cv_gnu_make_command}."
17211   echo ""
17212 fi