OSDN Git Service

2001-07-13 Stephen M. Webb <stephen@bregmasoft.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-target-subdir=SUBDIR
16                            configuring in a subdirectory"
17 ac_help="$ac_help
18   --with-cross-host=HOST  configuring with a cross compiler"
19 ac_help="$ac_help
20   --enable-multilib       build hella library versions (default)"
21 ac_help="$ac_help
22   --enable-maintainer-mode enable make rules and dependencies not useful
23                           (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25   --enable-shared[=PKGS]  build shared libraries [default=yes]"
26 ac_help="$ac_help
27   --enable-static[=PKGS]  build static libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33   --disable-libtool-lock  avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37   --enable-debug          extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39   --enable-cstdio         enable stdio for target io package. 
40   --enable-cstdio=LIB     use LIB target-speific io package. [default=stdio]
41   "
42 ac_help="$ac_help
43   --enable-clocale        enable model for target locale package. 
44   --enable-clocale=MODEL  use MODEL target-speific locale package. [default=generic]
45   "
46 ac_help="$ac_help
47   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
48 ac_help="$ac_help
49   --enable-c99      turns on 'ISO/IEC 9899:1999 support' [default=yes]"
50 ac_help="$ac_help
51   --enable-long-long      turns on 'long long' [default=yes]"
52 ac_help="$ac_help
53   --enable-cheaders       construct "C" header files for 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     toprel=".."
593   else
594     if test "${with_target_subdir}" != "."; then
595       toprel="${with_multisrctop}../.."
596     else
597       toprel="${with_multisrctop}.."
598     fi
599   fi
600 else
601   toprel=".."
602 fi
603 ac_aux_dir=
604 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
605   if test -f $ac_dir/install-sh; then
606     ac_aux_dir=$ac_dir
607     ac_install_sh="$ac_aux_dir/install-sh -c"
608     break
609   elif 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   fi
614 done
615 if test -z "$ac_aux_dir"; then
616   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
617 fi
618 ac_config_guess=$ac_aux_dir/config.guess
619 ac_config_sub=$ac_aux_dir/config.sub
620 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
621
622 toplevel_srcdir=\${top_srcdir}/$toprel
623
624
625
626
627 # Gets and sets build, host, target, *_vendor, *_cpu, *_os, etc.
628 # AC 2.50 sets target_alias iff the user specified --target, but we use it
629 # everywhere, so we set it here just to be sure.
630
631 # Do some error checking and defaulting for the host and target type.
632 # The inputs are:
633 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
634 #
635 # The rules are:
636 # 1. You are not allowed to specify --host, --target, and nonopt at the
637 #    same time.
638 # 2. Host defaults to nonopt.
639 # 3. If nonopt is not specified, then host defaults to the current host,
640 #    as determined by config.guess.
641 # 4. Target and build default to nonopt.
642 # 5. If nonopt is not specified, then target and build default to host.
643
644 # The aliases save the names the user supplied, while $host etc.
645 # will get canonicalized.
646 case $host---$target---$nonopt in
647 NONE---*---* | *---NONE---* | *---*---NONE) ;;
648 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
649 esac
650
651
652 # Make sure we can run config.sub.
653 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
654 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
655 fi
656
657 echo $ac_n "checking host system type""... $ac_c" 1>&6
658 echo "configure:659: checking host system type" >&5
659
660 host_alias=$host
661 case "$host_alias" in
662 NONE)
663   case $nonopt in
664   NONE)
665     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
666     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
667     fi ;;
668   *) host_alias=$nonopt ;;
669   esac ;;
670 esac
671
672 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
673 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
674 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
675 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
676 echo "$ac_t""$host" 1>&6
677
678 echo $ac_n "checking target system type""... $ac_c" 1>&6
679 echo "configure:680: checking target system type" >&5
680
681 target_alias=$target
682 case "$target_alias" in
683 NONE)
684   case $nonopt in
685   NONE) target_alias=$host_alias ;;
686   *) target_alias=$nonopt ;;
687   esac ;;
688 esac
689
690 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
691 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
692 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
693 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
694 echo "$ac_t""$target" 1>&6
695
696 echo $ac_n "checking build system type""... $ac_c" 1>&6
697 echo "configure:698: checking build system type" >&5
698
699 build_alias=$build
700 case "$build_alias" in
701 NONE)
702   case $nonopt in
703   NONE) build_alias=$host_alias ;;
704   *) build_alias=$nonopt ;;
705   esac ;;
706 esac
707
708 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
709 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
710 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
711 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
712 echo "$ac_t""$build" 1>&6
713
714 test "$host_alias" != "$target_alias" &&
715   test "$program_prefix$program_suffix$program_transform_name" = \
716     NONENONEs,x,x, &&
717   program_prefix=${target_alias}-
718
719 target_alias=${target_alias-$target}
720
721
722 # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.50+, can also
723 # be 'cp -p' if linking isn't available.
724 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
725 echo "configure:726: checking whether ln -s works" >&5
726 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
727   echo $ac_n "(cached) $ac_c" 1>&6
728 else
729   rm -f conftestdata
730 if ln -s X conftestdata 2>/dev/null
731 then
732   rm -f conftestdata
733   ac_cv_prog_LN_S="ln -s"
734 else
735   ac_cv_prog_LN_S=ln
736 fi
737 fi
738 LN_S="$ac_cv_prog_LN_S"
739 if test "$ac_cv_prog_LN_S" = "ln -s"; then
740   echo "$ac_t""yes" 1>&6
741 else
742   echo "$ac_t""no" 1>&6
743 fi
744
745
746 # We use these options to decide which functions to include.
747 # Check whether --with-target-subdir or --without-target-subdir was given.
748 if test "${with_target_subdir+set}" = set; then
749   withval="$with_target_subdir"
750   :
751 fi
752
753 # Check whether --with-cross-host or --without-cross-host was given.
754 if test "${with_cross_host+set}" = set; then
755   withval="$with_cross_host"
756   :
757 fi
758
759
760 # Runs configure.host and configure.target. Have to run this before
761 # the GLIBCPP_ENABLE_* macros below.
762 # Find a good install program.  We prefer a C program (faster),
763 # so one script is as good as another.  But avoid the broken or
764 # incompatible versions:
765 # SysV /etc/install, /usr/sbin/install
766 # SunOS /usr/etc/install
767 # IRIX /sbin/install
768 # AIX /bin/install
769 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
770 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
771 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
772 # ./install, which can be erroneously created by make from ./install.sh.
773 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
774 echo "configure:775: checking for a BSD compatible install" >&5
775 if test -z "$INSTALL"; then
776 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
777   echo $ac_n "(cached) $ac_c" 1>&6
778 else
779     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
780   for ac_dir in $PATH; do
781     # Account for people who put trailing slashes in PATH elements.
782     case "$ac_dir/" in
783     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
784     *)
785       # OSF1 and SCO ODT 3.0 have their own names for install.
786       # Don't use installbsd from OSF since it installs stuff as root
787       # by default.
788       for ac_prog in ginstall scoinst install; do
789         if test -f $ac_dir/$ac_prog; then
790           if test $ac_prog = install &&
791             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
792             # AIX install.  It has an incompatible calling convention.
793             :
794           else
795             ac_cv_path_install="$ac_dir/$ac_prog -c"
796             break 2
797           fi
798         fi
799       done
800       ;;
801     esac
802   done
803   IFS="$ac_save_IFS"
804
805 fi
806   if test "${ac_cv_path_install+set}" = set; then
807     INSTALL="$ac_cv_path_install"
808   else
809     # As a last resort, use the slow shell script.  We don't cache a
810     # path for INSTALL within a source directory, because that will
811     # break other packages using the cache if that directory is
812     # removed, or if the path is relative.
813     INSTALL="$ac_install_sh"
814   fi
815 fi
816 echo "$ac_t""$INSTALL" 1>&6
817
818 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
819 # It thinks the first close brace ends the variable substitution.
820 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
821
822 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
823
824 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
825
826 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
827 echo "configure:828: checking whether build environment is sane" >&5
828 # Just in case
829 sleep 1
830 echo timestamp > conftestfile
831 # Do `set' in a subshell so we don't clobber the current shell's
832 # arguments.  Must try -L first in case configure is actually a
833 # symlink; some systems play weird games with the mod time of symlinks
834 # (eg FreeBSD returns the mod time of the symlink's containing
835 # directory).
836 if (
837    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
838    if test "$*" = "X"; then
839       # -L didn't work.
840       set X `ls -t $srcdir/configure conftestfile`
841    fi
842    if test "$*" != "X $srcdir/configure conftestfile" \
843       && test "$*" != "X conftestfile $srcdir/configure"; then
844
845       # If neither matched, then we have a broken ls.  This can happen
846       # if, for instance, CONFIG_SHELL is bash and it inherits a
847       # broken ls alias from the environment.  This has actually
848       # happened.  Such a system could not be considered "sane".
849       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
850 alias in your environment" 1>&2; exit 1; }
851    fi
852
853    test "$2" = conftestfile
854    )
855 then
856    # Ok.
857    :
858 else
859    { echo "configure: error: newly created file is older than distributed files!
860 Check your system clock" 1>&2; exit 1; }
861 fi
862 rm -f conftest*
863 echo "$ac_t""yes" 1>&6
864 if test "$program_transform_name" = s,x,x,; then
865   program_transform_name=
866 else
867   # Double any \ or $.  echo might interpret backslashes.
868   cat <<\EOF_SED > conftestsed
869 s,\\,\\\\,g; s,\$,$$,g
870 EOF_SED
871   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
872   rm -f conftestsed
873 fi
874 test "$program_prefix" != NONE &&
875   program_transform_name="s,^,${program_prefix},; $program_transform_name"
876 # Use a double $ so make ignores it.
877 test "$program_suffix" != NONE &&
878   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
879
880 # sed with no file args requires a program.
881 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
882
883 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
884 echo "configure:885: checking whether ${MAKE-make} sets \${MAKE}" >&5
885 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
886 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
887   echo $ac_n "(cached) $ac_c" 1>&6
888 else
889   cat > conftestmake <<\EOF
890 all:
891         @echo 'ac_maketemp="${MAKE}"'
892 EOF
893 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
894 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
895 if test -n "$ac_maketemp"; then
896   eval ac_cv_prog_make_${ac_make}_set=yes
897 else
898   eval ac_cv_prog_make_${ac_make}_set=no
899 fi
900 rm -f conftestmake
901 fi
902 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
903   echo "$ac_t""yes" 1>&6
904   SET_MAKE=
905 else
906   echo "$ac_t""no" 1>&6
907   SET_MAKE="MAKE=${MAKE-make}"
908 fi
909
910 if test $host != $build; then
911   ac_tool_prefix=${host_alias}-
912 else
913   ac_tool_prefix=
914 fi
915
916 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
917 echo "configure:918: checking for Cygwin environment" >&5
918 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
919   echo $ac_n "(cached) $ac_c" 1>&6
920 else
921   cat > conftest.$ac_ext <<EOF
922 #line 923 "configure"
923 #include "confdefs.h"
924
925 int main() {
926
927 #ifndef __CYGWIN__
928 #define __CYGWIN__ __CYGWIN32__
929 #endif
930 return __CYGWIN__;
931 ; return 0; }
932 EOF
933 if { (eval echo configure:934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
934   rm -rf conftest*
935   ac_cv_cygwin=yes
936 else
937   echo "configure: failed program was:" >&5
938   cat conftest.$ac_ext >&5
939   rm -rf conftest*
940   ac_cv_cygwin=no
941 fi
942 rm -f conftest*
943 rm -f conftest*
944 fi
945
946 echo "$ac_t""$ac_cv_cygwin" 1>&6
947 CYGWIN=
948 test "$ac_cv_cygwin" = yes && CYGWIN=yes
949 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
950 echo "configure:951: checking for mingw32 environment" >&5
951 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
952   echo $ac_n "(cached) $ac_c" 1>&6
953 else
954   cat > conftest.$ac_ext <<EOF
955 #line 956 "configure"
956 #include "confdefs.h"
957
958 int main() {
959 return __MINGW32__;
960 ; return 0; }
961 EOF
962 if { (eval echo configure:963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
963   rm -rf conftest*
964   ac_cv_mingw32=yes
965 else
966   echo "configure: failed program was:" >&5
967   cat conftest.$ac_ext >&5
968   rm -rf conftest*
969   ac_cv_mingw32=no
970 fi
971 rm -f conftest*
972 rm -f conftest*
973 fi
974
975 echo "$ac_t""$ac_cv_mingw32" 1>&6
976 MINGW32=
977 test "$ac_cv_mingw32" = yes && MINGW32=yes
978
979     # Check whether --enable-multilib or --disable-multilib was given.
980 if test "${enable_multilib+set}" = set; then
981   enableval="$enable_multilib"
982   case "${enableval}" in
983     yes) multilib=yes ;;
984     no)  multilib=no ;;
985     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
986    esac
987 else
988   multilib=yes
989 fi
990
991   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
992   
993
994   
995 PACKAGE=libstdc++
996
997 VERSION=3.0.0
998
999 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1000   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1001 fi
1002 cat >> confdefs.h <<EOF
1003 #define PACKAGE "$PACKAGE"
1004 EOF
1005
1006 cat >> confdefs.h <<EOF
1007 #define VERSION "$VERSION"
1008 EOF
1009
1010
1011
1012 missing_dir=`cd $ac_aux_dir && pwd`
1013 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1014 echo "configure:1015: checking for working aclocal" >&5
1015 # Run test in a subshell; some versions of sh will print an error if
1016 # an executable is not found, even if stderr is redirected.
1017 # Redirect stdin to placate older versions of autoconf.  Sigh.
1018 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1019    ACLOCAL=aclocal
1020    echo "$ac_t""found" 1>&6
1021 else
1022    ACLOCAL="$missing_dir/missing aclocal"
1023    echo "$ac_t""missing" 1>&6
1024 fi
1025
1026 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1027 echo "configure:1028: checking for working autoconf" >&5
1028 # Run test in a subshell; some versions of sh will print an error if
1029 # an executable is not found, even if stderr is redirected.
1030 # Redirect stdin to placate older versions of autoconf.  Sigh.
1031 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1032    AUTOCONF=autoconf
1033    echo "$ac_t""found" 1>&6
1034 else
1035    AUTOCONF="$missing_dir/missing autoconf"
1036    echo "$ac_t""missing" 1>&6
1037 fi
1038
1039 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1040 echo "configure:1041: checking for working automake" >&5
1041 # Run test in a subshell; some versions of sh will print an error if
1042 # an executable is not found, even if stderr is redirected.
1043 # Redirect stdin to placate older versions of autoconf.  Sigh.
1044 if (automake --version) < /dev/null > /dev/null 2>&1; then
1045    AUTOMAKE=automake
1046    echo "$ac_t""found" 1>&6
1047 else
1048    AUTOMAKE="$missing_dir/missing automake"
1049    echo "$ac_t""missing" 1>&6
1050 fi
1051
1052 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1053 echo "configure:1054: checking for working autoheader" >&5
1054 # Run test in a subshell; some versions of sh will print an error if
1055 # an executable is not found, even if stderr is redirected.
1056 # Redirect stdin to placate older versions of autoconf.  Sigh.
1057 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1058    AUTOHEADER=autoheader
1059    echo "$ac_t""found" 1>&6
1060 else
1061    AUTOHEADER="$missing_dir/missing autoheader"
1062    echo "$ac_t""missing" 1>&6
1063 fi
1064
1065 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1066 echo "configure:1067: checking for working makeinfo" >&5
1067 # Run test in a subshell; some versions of sh will print an error if
1068 # an executable is not found, even if stderr is redirected.
1069 # Redirect stdin to placate older versions of autoconf.  Sigh.
1070 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1071    MAKEINFO=makeinfo
1072    echo "$ac_t""found" 1>&6
1073 else
1074    MAKEINFO="$missing_dir/missing makeinfo"
1075    echo "$ac_t""missing" 1>&6
1076 fi
1077
1078
1079
1080   # Never versions of autoconf add an underscore to these functions.
1081   # Prevent future problems ...
1082   
1083   
1084   
1085   
1086
1087 #  AC_PROG_CC
1088
1089 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1090 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1091 # are probably using a cross compiler, which will not be able to fully
1092 # link an executable.  This should really be fixed in autoconf
1093 # itself.
1094
1095
1096
1097
1098 # Extract the first word of "gcc", so it can be a program name with args.
1099 set dummy gcc; ac_word=$2
1100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1101 echo "configure:1102: checking for $ac_word" >&5
1102 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1103   echo $ac_n "(cached) $ac_c" 1>&6
1104 else
1105   if test -n "$CC"; then
1106   ac_cv_prog_CC="$CC" # Let the user override the test.
1107 else
1108   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1109   ac_dummy="$PATH"
1110   for ac_dir in $ac_dummy; do
1111     test -z "$ac_dir" && ac_dir=.
1112     if test -f $ac_dir/$ac_word; then
1113       ac_cv_prog_CC="gcc"
1114       break
1115     fi
1116   done
1117   IFS="$ac_save_ifs"
1118 fi
1119 fi
1120 CC="$ac_cv_prog_CC"
1121 if test -n "$CC"; then
1122   echo "$ac_t""$CC" 1>&6
1123 else
1124   echo "$ac_t""no" 1>&6
1125 fi
1126
1127 if test -z "$CC"; then
1128   # Extract the first word of "cc", so it can be a program name with args.
1129 set dummy cc; ac_word=$2
1130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1131 echo "configure:1132: checking for $ac_word" >&5
1132 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1133   echo $ac_n "(cached) $ac_c" 1>&6
1134 else
1135   if test -n "$CC"; then
1136   ac_cv_prog_CC="$CC" # Let the user override the test.
1137 else
1138   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1139   ac_prog_rejected=no
1140   ac_dummy="$PATH"
1141   for ac_dir in $ac_dummy; do
1142     test -z "$ac_dir" && ac_dir=.
1143     if test -f $ac_dir/$ac_word; then
1144       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1145         ac_prog_rejected=yes
1146         continue
1147       fi
1148       ac_cv_prog_CC="cc"
1149       break
1150     fi
1151   done
1152   IFS="$ac_save_ifs"
1153 if test $ac_prog_rejected = yes; then
1154   # We found a bogon in the path, so make sure we never use it.
1155   set dummy $ac_cv_prog_CC
1156   shift
1157   if test $# -gt 0; then
1158     # We chose a different compiler from the bogus one.
1159     # However, it has the same basename, so the bogon will be chosen
1160     # first if we set CC to just the basename; use the full file name.
1161     shift
1162     set dummy "$ac_dir/$ac_word" "$@"
1163     shift
1164     ac_cv_prog_CC="$@"
1165   fi
1166 fi
1167 fi
1168 fi
1169 CC="$ac_cv_prog_CC"
1170 if test -n "$CC"; then
1171   echo "$ac_t""$CC" 1>&6
1172 else
1173   echo "$ac_t""no" 1>&6
1174 fi
1175
1176   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1177 fi
1178
1179 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1180 echo "configure:1181: checking whether we are using GNU C" >&5
1181 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1182   echo $ac_n "(cached) $ac_c" 1>&6
1183 else
1184   cat > conftest.c <<EOF
1185 #ifdef __GNUC__
1186   yes;
1187 #endif
1188 EOF
1189 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1190   ac_cv_prog_gcc=yes
1191 else
1192   ac_cv_prog_gcc=no
1193 fi
1194 fi
1195
1196 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1197
1198 if test $ac_cv_prog_gcc = yes; then
1199   GCC=yes
1200   ac_test_CFLAGS="${CFLAGS+set}"
1201   ac_save_CFLAGS="$CFLAGS"
1202   CFLAGS=
1203   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1204 echo "configure:1205: checking whether ${CC-cc} accepts -g" >&5
1205 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1206   echo $ac_n "(cached) $ac_c" 1>&6
1207 else
1208   echo 'void f(){}' > conftest.c
1209 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1210   ac_cv_prog_cc_g=yes
1211 else
1212   ac_cv_prog_cc_g=no
1213 fi
1214 rm -f conftest*
1215
1216 fi
1217
1218 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1219   if test "$ac_test_CFLAGS" = set; then
1220     CFLAGS="$ac_save_CFLAGS"
1221   elif test $ac_cv_prog_cc_g = yes; then
1222     CFLAGS="-g -O2"
1223   else
1224     CFLAGS="-O2"
1225   fi
1226 else
1227   GCC=
1228   test "${CFLAGS+set}" = set || CFLAGS="-g"
1229 fi
1230
1231
1232 # Can't just call these here as g++ requires libstc++ to be built....
1233 #  AC_PROG_CXX
1234
1235 # Likewise for AC_PROG_CXX.
1236
1237
1238
1239 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1240 # flags that come in CXX while configuring libstdc++.  They're different
1241 # from those used for all other target libraries.  If CXX is set in
1242 # the environment, respect that here.
1243 glibcpp_CXX=$CXX
1244 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1245 do
1246 # Extract the first word of "$ac_prog", so it can be a program name with args.
1247 set dummy $ac_prog; ac_word=$2
1248 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1249 echo "configure:1250: checking for $ac_word" >&5
1250 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1251   echo $ac_n "(cached) $ac_c" 1>&6
1252 else
1253   if test -n "$glibcpp_CXX"; then
1254   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1255 else
1256   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1257   ac_dummy="$PATH"
1258   for ac_dir in $ac_dummy; do
1259     test -z "$ac_dir" && ac_dir=.
1260     if test -f $ac_dir/$ac_word; then
1261       ac_cv_prog_glibcpp_CXX="$ac_prog"
1262       break
1263     fi
1264   done
1265   IFS="$ac_save_ifs"
1266 fi
1267 fi
1268 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1269 if test -n "$glibcpp_CXX"; then
1270   echo "$ac_t""$glibcpp_CXX" 1>&6
1271 else
1272   echo "$ac_t""no" 1>&6
1273 fi
1274
1275 test -n "$glibcpp_CXX" && break
1276 done
1277 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1278
1279
1280 CXX=$glibcpp_CXX
1281 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1282
1283 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1284 echo "configure:1285: checking whether we are using GNU C++" >&5
1285 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1286   echo $ac_n "(cached) $ac_c" 1>&6
1287 else
1288   cat > conftest.C <<EOF
1289 #ifdef __GNUC__
1290   yes;
1291 #endif
1292 EOF
1293 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1294   ac_cv_prog_gxx=yes
1295 else
1296   ac_cv_prog_gxx=no
1297 fi
1298 fi
1299
1300 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1301
1302 if test $ac_cv_prog_gxx = yes; then
1303   GXX=yes
1304   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1305   ac_save_CXXFLAGS="$CXXFLAGS"
1306   CXXFLAGS=
1307   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1308 echo "configure:1309: checking whether ${CXX-g++} accepts -g" >&5
1309 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1310   echo $ac_n "(cached) $ac_c" 1>&6
1311 else
1312   echo 'void f(){}' > conftest.cc
1313 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1314   ac_cv_prog_cxx_g=yes
1315 else
1316   ac_cv_prog_cxx_g=no
1317 fi
1318 rm -f conftest*
1319
1320 fi
1321
1322 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1323   if test "$ac_test_CXXFLAGS" = set; then
1324     CXXFLAGS="$ac_save_CXXFLAGS"
1325   elif test $ac_cv_prog_cxx_g = yes; then
1326     CXXFLAGS="-g -O2"
1327   else
1328     CXXFLAGS="-O2"
1329   fi
1330 else
1331   GXX=
1332   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1333 fi
1334
1335
1336   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1337 set dummy ${ac_tool_prefix}as; ac_word=$2
1338 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1339 echo "configure:1340: checking for $ac_word" >&5
1340 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1341   echo $ac_n "(cached) $ac_c" 1>&6
1342 else
1343   if test -n "$AS"; then
1344   ac_cv_prog_AS="$AS" # Let the user override the test.
1345 else
1346   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1347   ac_dummy="$PATH"
1348   for ac_dir in $ac_dummy; do
1349     test -z "$ac_dir" && ac_dir=.
1350     if test -f $ac_dir/$ac_word; then
1351       ac_cv_prog_AS="${ac_tool_prefix}as"
1352       break
1353     fi
1354   done
1355   IFS="$ac_save_ifs"
1356   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1357 fi
1358 fi
1359 AS="$ac_cv_prog_AS"
1360 if test -n "$AS"; then
1361   echo "$ac_t""$AS" 1>&6
1362 else
1363   echo "$ac_t""no" 1>&6
1364 fi
1365
1366
1367
1368   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1369 set dummy ${ac_tool_prefix}ar; ac_word=$2
1370 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1371 echo "configure:1372: checking for $ac_word" >&5
1372 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1373   echo $ac_n "(cached) $ac_c" 1>&6
1374 else
1375   if test -n "$AR"; then
1376   ac_cv_prog_AR="$AR" # Let the user override the test.
1377 else
1378   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1379   ac_dummy="$PATH"
1380   for ac_dir in $ac_dummy; do
1381     test -z "$ac_dir" && ac_dir=.
1382     if test -f $ac_dir/$ac_word; then
1383       ac_cv_prog_AR="${ac_tool_prefix}ar"
1384       break
1385     fi
1386   done
1387   IFS="$ac_save_ifs"
1388   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1389 fi
1390 fi
1391 AR="$ac_cv_prog_AR"
1392 if test -n "$AR"; then
1393   echo "$ac_t""$AR" 1>&6
1394 else
1395   echo "$ac_t""no" 1>&6
1396 fi
1397
1398
1399
1400   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1401 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1403 echo "configure:1404: checking for $ac_word" >&5
1404 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1405   echo $ac_n "(cached) $ac_c" 1>&6
1406 else
1407   if test -n "$RANLIB"; then
1408   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1409 else
1410   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1411   ac_dummy="$PATH"
1412   for ac_dir in $ac_dummy; do
1413     test -z "$ac_dir" && ac_dir=.
1414     if test -f $ac_dir/$ac_word; then
1415       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1416       break
1417     fi
1418   done
1419   IFS="$ac_save_ifs"
1420 fi
1421 fi
1422 RANLIB="$ac_cv_prog_RANLIB"
1423 if test -n "$RANLIB"; then
1424   echo "$ac_t""$RANLIB" 1>&6
1425 else
1426   echo "$ac_t""no" 1>&6
1427 fi
1428
1429
1430 if test -z "$ac_cv_prog_RANLIB"; then
1431 if test -n "$ac_tool_prefix"; then
1432   # Extract the first word of "ranlib", so it can be a program name with args.
1433 set dummy ranlib; ac_word=$2
1434 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1435 echo "configure:1436: checking for $ac_word" >&5
1436 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1437   echo $ac_n "(cached) $ac_c" 1>&6
1438 else
1439   if test -n "$RANLIB"; then
1440   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1441 else
1442   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1443   ac_dummy="$PATH"
1444   for ac_dir in $ac_dummy; do
1445     test -z "$ac_dir" && ac_dir=.
1446     if test -f $ac_dir/$ac_word; then
1447       ac_cv_prog_RANLIB="ranlib"
1448       break
1449     fi
1450   done
1451   IFS="$ac_save_ifs"
1452   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1453 fi
1454 fi
1455 RANLIB="$ac_cv_prog_RANLIB"
1456 if test -n "$RANLIB"; then
1457   echo "$ac_t""$RANLIB" 1>&6
1458 else
1459   echo "$ac_t""no" 1>&6
1460 fi
1461
1462 else
1463   RANLIB="ranlib-not-found-in-path-error"
1464 fi
1465 fi
1466
1467   # Find a good install program.  We prefer a C program (faster),
1468 # so one script is as good as another.  But avoid the broken or
1469 # incompatible versions:
1470 # SysV /etc/install, /usr/sbin/install
1471 # SunOS /usr/etc/install
1472 # IRIX /sbin/install
1473 # AIX /bin/install
1474 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1475 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1476 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1477 # ./install, which can be erroneously created by make from ./install.sh.
1478 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1479 echo "configure:1480: checking for a BSD compatible install" >&5
1480 if test -z "$INSTALL"; then
1481 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1482   echo $ac_n "(cached) $ac_c" 1>&6
1483 else
1484     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1485   for ac_dir in $PATH; do
1486     # Account for people who put trailing slashes in PATH elements.
1487     case "$ac_dir/" in
1488     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1489     *)
1490       # OSF1 and SCO ODT 3.0 have their own names for install.
1491       # Don't use installbsd from OSF since it installs stuff as root
1492       # by default.
1493       for ac_prog in ginstall scoinst install; do
1494         if test -f $ac_dir/$ac_prog; then
1495           if test $ac_prog = install &&
1496             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1497             # AIX install.  It has an incompatible calling convention.
1498             :
1499           else
1500             ac_cv_path_install="$ac_dir/$ac_prog -c"
1501             break 2
1502           fi
1503         fi
1504       done
1505       ;;
1506     esac
1507   done
1508   IFS="$ac_save_IFS"
1509
1510 fi
1511   if test "${ac_cv_path_install+set}" = set; then
1512     INSTALL="$ac_cv_path_install"
1513   else
1514     # As a last resort, use the slow shell script.  We don't cache a
1515     # path for INSTALL within a source directory, because that will
1516     # break other packages using the cache if that directory is
1517     # removed, or if the path is relative.
1518     INSTALL="$ac_install_sh"
1519   fi
1520 fi
1521 echo "$ac_t""$INSTALL" 1>&6
1522
1523 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1524 # It thinks the first close brace ends the variable substitution.
1525 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1526
1527 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1528
1529 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1530
1531
1532   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1533 echo "configure:1534: checking whether to enable maintainer-specific portions of Makefiles" >&5
1534     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1535 if test "${enable_maintainer_mode+set}" = set; then
1536   enableval="$enable_maintainer_mode"
1537   USE_MAINTAINER_MODE=$enableval
1538 else
1539   USE_MAINTAINER_MODE=no
1540 fi
1541
1542   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1543   
1544
1545 if test $USE_MAINTAINER_MODE = yes; then
1546   MAINTAINER_MODE_TRUE=
1547   MAINTAINER_MODE_FALSE='#'
1548 else
1549   MAINTAINER_MODE_TRUE='#'
1550   MAINTAINER_MODE_FALSE=
1551 fi
1552   MAINT=$MAINTAINER_MODE_TRUE
1553   
1554
1555
1556   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1557   # at least currently, we never actually build a program, so we never
1558   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1559   # fails, because we are probably configuring with a cross compiler
1560   # which cant create executables.  So we include AC_EXEEXT to keep
1561   # automake happy, but we dont execute it, since we dont care about
1562   # the result.
1563   if false; then
1564     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1565     # to nothing, so nothing would remain between `then' and `fi' if it
1566     # were not for the `:' below.
1567     :
1568     
1569
1570 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1571 echo "configure:1572: checking for executable suffix" >&5
1572 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1573   echo $ac_n "(cached) $ac_c" 1>&6
1574 else
1575   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1576   ac_cv_exeext=.exe
1577 else
1578   rm -f conftest*
1579   echo 'int main () { return 0; }' > conftest.$ac_ext
1580   ac_cv_exeext=
1581   if { (eval echo configure:1582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1582     for file in conftest.*; do
1583       case $file in
1584       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1585       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1586       esac
1587     done
1588   else
1589     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1590   fi
1591   rm -f conftest*
1592   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1593 fi
1594 fi
1595
1596 EXEEXT=""
1597 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1598 echo "$ac_t""${ac_cv_exeext}" 1>&6
1599 ac_exeext=$EXEEXT
1600
1601   fi
1602
1603   . ${glibcpp_basedir}/configure.host
1604
1605   case ${glibcpp_basedir} in
1606     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1607     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1608   esac
1609
1610   # This does for the target what configure.host does for the host.  In
1611   # addition to possibly modifying the same flags, it also sets up symlinks.
1612   
1613     . ${glibcpp_basedir}/configure.target
1614     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1615     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1616
1617
1618
1619
1620 # Check whether --enable-shared or --disable-shared was given.
1621 if test "${enable_shared+set}" = set; then
1622   enableval="$enable_shared"
1623   p=${PACKAGE-default}
1624 case $enableval in
1625 yes) enable_shared=yes ;;
1626 no) enable_shared=no ;;
1627 *)
1628   enable_shared=no
1629   # Look at the argument we got.  We use all the common list separators.
1630   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1631   for pkg in $enableval; do
1632     if test "X$pkg" = "X$p"; then
1633       enable_shared=yes
1634     fi
1635   done
1636   IFS="$ac_save_ifs"
1637   ;;
1638 esac
1639 else
1640   enable_shared=yes
1641 fi
1642
1643 # Check whether --enable-static or --disable-static was given.
1644 if test "${enable_static+set}" = set; then
1645   enableval="$enable_static"
1646   p=${PACKAGE-default}
1647 case $enableval in
1648 yes) enable_static=yes ;;
1649 no) enable_static=no ;;
1650 *)
1651   enable_static=no
1652   # Look at the argument we got.  We use all the common list separators.
1653   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1654   for pkg in $enableval; do
1655     if test "X$pkg" = "X$p"; then
1656       enable_static=yes
1657     fi
1658   done
1659   IFS="$ac_save_ifs"
1660   ;;
1661 esac
1662 else
1663   enable_static=yes
1664 fi
1665
1666 # Check whether --enable-fast-install or --disable-fast-install was given.
1667 if test "${enable_fast_install+set}" = set; then
1668   enableval="$enable_fast_install"
1669   p=${PACKAGE-default}
1670 case $enableval in
1671 yes) enable_fast_install=yes ;;
1672 no) enable_fast_install=no ;;
1673 *)
1674   enable_fast_install=no
1675   # Look at the argument we got.  We use all the common list separators.
1676   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1677   for pkg in $enableval; do
1678     if test "X$pkg" = "X$p"; then
1679       enable_fast_install=yes
1680     fi
1681   done
1682   IFS="$ac_save_ifs"
1683   ;;
1684 esac
1685 else
1686   enable_fast_install=yes
1687 fi
1688
1689 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1690 if test "${with_gnu_ld+set}" = set; then
1691   withval="$with_gnu_ld"
1692   test "$withval" = no || with_gnu_ld=yes
1693 else
1694   with_gnu_ld=no
1695 fi
1696
1697 ac_prog=ld
1698 if test "$GCC" = yes; then
1699   # Check if gcc -print-prog-name=ld gives a path.
1700   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1701 echo "configure:1702: checking for ld used by GCC" >&5
1702   case $host in
1703   *-*-mingw*)
1704     # gcc leaves a trailing carriage return which upsets mingw
1705     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1706   *)
1707     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1708   esac
1709   case $ac_prog in
1710     # Accept absolute paths.
1711     [\\/]* | [A-Za-z]:[\\/]*)
1712       re_direlt='/[^/][^/]*/\.\./'
1713       # Canonicalize the path of ld
1714       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1715       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1716         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1717       done
1718       test -z "$LD" && LD="$ac_prog"
1719       ;;
1720   "")
1721     # If it fails, then pretend we aren't using GCC.
1722     ac_prog=ld
1723     ;;
1724   *)
1725     # If it is relative, then search for the first ld in PATH.
1726     with_gnu_ld=unknown
1727     ;;
1728   esac
1729 elif test "$with_gnu_ld" = yes; then
1730   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1731 echo "configure:1732: checking for GNU ld" >&5
1732 else
1733   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1734 echo "configure:1735: checking for non-GNU ld" >&5
1735 fi
1736 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1737   echo $ac_n "(cached) $ac_c" 1>&6
1738 else
1739   if test -z "$LD"; then
1740   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1741   for ac_dir in $PATH; do
1742     test -z "$ac_dir" && ac_dir=.
1743     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1744       lt_cv_path_LD="$ac_dir/$ac_prog"
1745       # Check to see if the program is GNU ld.  I'd rather use --version,
1746       # but apparently some GNU ld's only accept -v.
1747       # Break only if it was the GNU/non-GNU ld that we prefer.
1748       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1749         test "$with_gnu_ld" != no && break
1750       else
1751         test "$with_gnu_ld" != yes && break
1752       fi
1753     fi
1754   done
1755   IFS="$ac_save_ifs"
1756 else
1757   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1758 fi
1759 fi
1760
1761 LD="$lt_cv_path_LD"
1762 if test -n "$LD"; then
1763   echo "$ac_t""$LD" 1>&6
1764 else
1765   echo "$ac_t""no" 1>&6
1766 fi
1767 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1768 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1769 echo "configure:1770: checking if the linker ($LD) is GNU ld" >&5
1770 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1771   echo $ac_n "(cached) $ac_c" 1>&6
1772 else
1773   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1774 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1775   lt_cv_prog_gnu_ld=yes
1776 else
1777   lt_cv_prog_gnu_ld=no
1778 fi
1779 fi
1780
1781 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1782 with_gnu_ld=$lt_cv_prog_gnu_ld
1783
1784
1785 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1786 echo "configure:1787: checking for $LD option to reload object files" >&5
1787 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1788   echo $ac_n "(cached) $ac_c" 1>&6
1789 else
1790   lt_cv_ld_reload_flag='-r'
1791 fi
1792
1793 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1794 reload_flag=$lt_cv_ld_reload_flag
1795 test -n "$reload_flag" && reload_flag=" $reload_flag"
1796
1797 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1798 echo "configure:1799: checking for BSD-compatible nm" >&5
1799 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1800   echo $ac_n "(cached) $ac_c" 1>&6
1801 else
1802   if test -n "$NM"; then
1803   # Let the user override the test.
1804   lt_cv_path_NM="$NM"
1805 else
1806   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1807   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1808     test -z "$ac_dir" && ac_dir=.
1809     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1810     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1811       # Check to see if the nm accepts a BSD-compat flag.
1812       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1813       #   nm: unknown option "B" ignored
1814       # Tru64's nm complains that /dev/null is an invalid object file
1815       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1816         lt_cv_path_NM="$tmp_nm -B"
1817         break
1818       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1819         lt_cv_path_NM="$tmp_nm -p"
1820         break
1821       else
1822         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1823         continue # so that we can try to find one that supports BSD flags
1824       fi
1825     fi
1826   done
1827   IFS="$ac_save_ifs"
1828   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1829 fi
1830 fi
1831
1832 NM="$lt_cv_path_NM"
1833 echo "$ac_t""$NM" 1>&6
1834
1835 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1836 echo "configure:1837: checking how to recognise dependant libraries" >&5
1837 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1838   echo $ac_n "(cached) $ac_c" 1>&6
1839 else
1840   lt_cv_file_magic_cmd='$MAGIC_CMD'
1841 lt_cv_file_magic_test_file=
1842 lt_cv_deplibs_check_method='unknown'
1843 # Need to set the preceding variable on all platforms that support
1844 # interlibrary dependencies.
1845 # 'none' -- dependencies not supported.
1846 # `unknown' -- same as none, but documents that we really don't know.
1847 # 'pass_all' -- all dependencies passed with no checks.
1848 # 'test_compile' -- check by making test program.
1849 # 'file_magic [regex]' -- check by looking for files in library path
1850 # which responds to the $file_magic_cmd with a given egrep regex.
1851 # If you have `file' or equivalent on your system and you're not sure
1852 # whether `pass_all' will *always* work, you probably want this one.
1853
1854 case $host_os in
1855 aix*)
1856   lt_cv_deplibs_check_method=pass_all
1857   ;;
1858
1859 beos*)
1860   lt_cv_deplibs_check_method=pass_all
1861   ;;
1862
1863 bsdi4*)
1864   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1865   lt_cv_file_magic_cmd='/usr/bin/file -L'
1866   lt_cv_file_magic_test_file=/shlib/libc.so
1867   ;;
1868
1869 cygwin* | mingw* |pw32*)
1870   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1871   lt_cv_file_magic_cmd='$OBJDUMP -f'
1872   ;;
1873
1874 darwin* | rhapsody*)
1875   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1876   lt_cv_file_magic_cmd='/usr/bin/file -L'
1877   case "$host_os" in
1878   rhapsody* | darwin1.012)
1879     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1880     ;;
1881   *) # Darwin 1.3 on
1882     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1883     ;;
1884   esac
1885   ;;
1886
1887 freebsd* )
1888   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1889     case $host_cpu in
1890     i*86 )
1891       # Not sure whether the presence of OpenBSD here was a mistake.
1892       # Let's accept both of them until this is cleared up.
1893       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1894       lt_cv_file_magic_cmd=/usr/bin/file
1895       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1896       ;;
1897     esac
1898   else
1899     lt_cv_deplibs_check_method=pass_all
1900   fi
1901   ;;
1902
1903 gnu*)
1904   lt_cv_deplibs_check_method=pass_all
1905   ;;
1906
1907 hpux10.20*|hpux11*)
1908   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1909   lt_cv_file_magic_cmd=/usr/bin/file
1910   lt_cv_file_magic_test_file=/usr/lib/libc.sl
1911   ;;
1912
1913 irix5* | irix6*)
1914   case $host_os in
1915   irix5*)
1916     # this will be overridden with pass_all, but let us keep it just in case
1917     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1918     ;;
1919   *)
1920     case $LD in
1921     *-32|*"-32 ") libmagic=32-bit;;
1922     *-n32|*"-n32 ") libmagic=N32;;
1923     *-64|*"-64 ") libmagic=64-bit;;
1924     *) libmagic=never-match;;
1925     esac
1926     # this will be overridden with pass_all, but let us keep it just in case
1927     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1928     ;;
1929   esac
1930   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1931   lt_cv_deplibs_check_method=pass_all
1932   ;;
1933
1934 # This must be Linux ELF.
1935 linux-gnu*)
1936   case $host_cpu in
1937   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1938     lt_cv_deplibs_check_method=pass_all ;;
1939   *)
1940     # glibc up to 2.1.1 does not perform some relocations on ARM
1941     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1942   esac
1943   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1944   ;;
1945
1946 netbsd*)
1947   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1948     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1949   else
1950     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1951   fi
1952   ;;
1953
1954 newsos6)
1955   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1956   lt_cv_file_magic_cmd=/usr/bin/file
1957   lt_cv_file_magic_test_file=/usr/lib/libnls.so
1958   ;;
1959
1960 osf3* | osf4* | osf5*)
1961   # this will be overridden with pass_all, but let us keep it just in case
1962   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1963   lt_cv_file_magic_test_file=/shlib/libc.so
1964   lt_cv_deplibs_check_method=pass_all
1965   ;;
1966
1967 sco3.2v5*)
1968   lt_cv_deplibs_check_method=pass_all
1969   ;;
1970
1971 solaris*)
1972   lt_cv_deplibs_check_method=pass_all
1973   lt_cv_file_magic_test_file=/lib/libc.so
1974   ;;
1975
1976 sysv5uw[78]* | sysv4*uw2*)
1977   lt_cv_deplibs_check_method=pass_all
1978   ;;
1979
1980 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1981   case $host_vendor in
1982   ncr)
1983     lt_cv_deplibs_check_method=pass_all
1984     ;;
1985   motorola)
1986     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]'
1987     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1988     ;;
1989   esac
1990   ;;
1991 esac
1992
1993 fi
1994
1995 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1996 file_magic_cmd=$lt_cv_file_magic_cmd
1997 deplibs_check_method=$lt_cv_deplibs_check_method
1998
1999 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2000 echo "configure:2001: checking for object suffix" >&5
2001 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2002   echo $ac_n "(cached) $ac_c" 1>&6
2003 else
2004   rm -f conftest*
2005 echo 'int i = 1;' > conftest.$ac_ext
2006 if { (eval echo configure:2007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2007   for ac_file in conftest.*; do
2008     case $ac_file in
2009     *.c) ;;
2010     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2011     esac
2012   done
2013 else
2014   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2015 fi
2016 rm -f conftest*
2017 fi
2018
2019 echo "$ac_t""$ac_cv_objext" 1>&6
2020 OBJEXT=$ac_cv_objext
2021 ac_objext=$ac_cv_objext
2022
2023 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2024
2025 # Only perform the check for file, if the check method requires it
2026 case $deplibs_check_method in
2027 file_magic*)
2028   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2029     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2030 echo "configure:2031: checking for ${ac_tool_prefix}file" >&5
2031 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2032   echo $ac_n "(cached) $ac_c" 1>&6
2033 else
2034   case $MAGIC_CMD in
2035   /*)
2036   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2037   ;;
2038   ?:/*)
2039   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2040   ;;
2041   *)
2042   ac_save_MAGIC_CMD="$MAGIC_CMD"
2043   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2044   ac_dummy="/usr/bin:$PATH"
2045   for ac_dir in $ac_dummy; do
2046     test -z "$ac_dir" && ac_dir=.
2047     if test -f $ac_dir/${ac_tool_prefix}file; then
2048       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2049       if test -n "$file_magic_test_file"; then
2050         case $deplibs_check_method in
2051         "file_magic "*)
2052           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2053           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2054           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2055             egrep "$file_magic_regex" > /dev/null; then
2056             :
2057           else
2058             cat <<EOF 1>&2
2059
2060 *** Warning: the command libtool uses to detect shared libraries,
2061 *** $file_magic_cmd, produces output that libtool cannot recognize.
2062 *** The result is that libtool may fail to recognize shared libraries
2063 *** as such.  This will affect the creation of libtool libraries that
2064 *** depend on shared libraries, but programs linked with such libtool
2065 *** libraries will work regardless of this problem.  Nevertheless, you
2066 *** may want to report the problem to your system manager and/or to
2067 *** bug-libtool@gnu.org
2068
2069 EOF
2070           fi ;;
2071         esac
2072       fi
2073       break
2074     fi
2075   done
2076   IFS="$ac_save_ifs"
2077   MAGIC_CMD="$ac_save_MAGIC_CMD"
2078   ;;
2079 esac
2080 fi
2081
2082 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2083 if test -n "$MAGIC_CMD"; then
2084   echo "$ac_t""$MAGIC_CMD" 1>&6
2085 else
2086   echo "$ac_t""no" 1>&6
2087 fi
2088
2089 if test -z "$lt_cv_path_MAGIC_CMD"; then
2090   if test -n "$ac_tool_prefix"; then
2091     echo $ac_n "checking for file""... $ac_c" 1>&6
2092 echo "configure:2093: checking for file" >&5
2093 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2094   echo $ac_n "(cached) $ac_c" 1>&6
2095 else
2096   case $MAGIC_CMD in
2097   /*)
2098   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2099   ;;
2100   ?:/*)
2101   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2102   ;;
2103   *)
2104   ac_save_MAGIC_CMD="$MAGIC_CMD"
2105   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2106   ac_dummy="/usr/bin:$PATH"
2107   for ac_dir in $ac_dummy; do
2108     test -z "$ac_dir" && ac_dir=.
2109     if test -f $ac_dir/file; then
2110       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2111       if test -n "$file_magic_test_file"; then
2112         case $deplibs_check_method in
2113         "file_magic "*)
2114           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2115           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2116           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2117             egrep "$file_magic_regex" > /dev/null; then
2118             :
2119           else
2120             cat <<EOF 1>&2
2121
2122 *** Warning: the command libtool uses to detect shared libraries,
2123 *** $file_magic_cmd, produces output that libtool cannot recognize.
2124 *** The result is that libtool may fail to recognize shared libraries
2125 *** as such.  This will affect the creation of libtool libraries that
2126 *** depend on shared libraries, but programs linked with such libtool
2127 *** libraries will work regardless of this problem.  Nevertheless, you
2128 *** may want to report the problem to your system manager and/or to
2129 *** bug-libtool@gnu.org
2130
2131 EOF
2132           fi ;;
2133         esac
2134       fi
2135       break
2136     fi
2137   done
2138   IFS="$ac_save_ifs"
2139   MAGIC_CMD="$ac_save_MAGIC_CMD"
2140   ;;
2141 esac
2142 fi
2143
2144 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2145 if test -n "$MAGIC_CMD"; then
2146   echo "$ac_t""$MAGIC_CMD" 1>&6
2147 else
2148   echo "$ac_t""no" 1>&6
2149 fi
2150
2151   else
2152     MAGIC_CMD=:
2153   fi
2154 fi
2155
2156   fi
2157   ;;
2158 esac
2159
2160 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2161 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2162 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2163 echo "configure:2164: checking for $ac_word" >&5
2164 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2165   echo $ac_n "(cached) $ac_c" 1>&6
2166 else
2167   if test -n "$RANLIB"; then
2168   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2169 else
2170   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2171   ac_dummy="$PATH"
2172   for ac_dir in $ac_dummy; do
2173     test -z "$ac_dir" && ac_dir=.
2174     if test -f $ac_dir/$ac_word; then
2175       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2176       break
2177     fi
2178   done
2179   IFS="$ac_save_ifs"
2180 fi
2181 fi
2182 RANLIB="$ac_cv_prog_RANLIB"
2183 if test -n "$RANLIB"; then
2184   echo "$ac_t""$RANLIB" 1>&6
2185 else
2186   echo "$ac_t""no" 1>&6
2187 fi
2188
2189
2190 if test -z "$ac_cv_prog_RANLIB"; then
2191 if test -n "$ac_tool_prefix"; then
2192   # Extract the first word of "ranlib", so it can be a program name with args.
2193 set dummy ranlib; ac_word=$2
2194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2195 echo "configure:2196: checking for $ac_word" >&5
2196 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2197   echo $ac_n "(cached) $ac_c" 1>&6
2198 else
2199   if test -n "$RANLIB"; then
2200   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2201 else
2202   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2203   ac_dummy="$PATH"
2204   for ac_dir in $ac_dummy; do
2205     test -z "$ac_dir" && ac_dir=.
2206     if test -f $ac_dir/$ac_word; then
2207       ac_cv_prog_RANLIB="ranlib"
2208       break
2209     fi
2210   done
2211   IFS="$ac_save_ifs"
2212   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2213 fi
2214 fi
2215 RANLIB="$ac_cv_prog_RANLIB"
2216 if test -n "$RANLIB"; then
2217   echo "$ac_t""$RANLIB" 1>&6
2218 else
2219   echo "$ac_t""no" 1>&6
2220 fi
2221
2222 else
2223   RANLIB=":"
2224 fi
2225 fi
2226
2227 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2228 set dummy ${ac_tool_prefix}strip; ac_word=$2
2229 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2230 echo "configure:2231: checking for $ac_word" >&5
2231 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2232   echo $ac_n "(cached) $ac_c" 1>&6
2233 else
2234   if test -n "$STRIP"; then
2235   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2236 else
2237   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2238   ac_dummy="$PATH"
2239   for ac_dir in $ac_dummy; do
2240     test -z "$ac_dir" && ac_dir=.
2241     if test -f $ac_dir/$ac_word; then
2242       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2243       break
2244     fi
2245   done
2246   IFS="$ac_save_ifs"
2247 fi
2248 fi
2249 STRIP="$ac_cv_prog_STRIP"
2250 if test -n "$STRIP"; then
2251   echo "$ac_t""$STRIP" 1>&6
2252 else
2253   echo "$ac_t""no" 1>&6
2254 fi
2255
2256
2257 if test -z "$ac_cv_prog_STRIP"; then
2258 if test -n "$ac_tool_prefix"; then
2259   # Extract the first word of "strip", so it can be a program name with args.
2260 set dummy strip; ac_word=$2
2261 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2262 echo "configure:2263: checking for $ac_word" >&5
2263 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2264   echo $ac_n "(cached) $ac_c" 1>&6
2265 else
2266   if test -n "$STRIP"; then
2267   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2268 else
2269   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2270   ac_dummy="$PATH"
2271   for ac_dir in $ac_dummy; do
2272     test -z "$ac_dir" && ac_dir=.
2273     if test -f $ac_dir/$ac_word; then
2274       ac_cv_prog_STRIP="strip"
2275       break
2276     fi
2277   done
2278   IFS="$ac_save_ifs"
2279   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2280 fi
2281 fi
2282 STRIP="$ac_cv_prog_STRIP"
2283 if test -n "$STRIP"; then
2284   echo "$ac_t""$STRIP" 1>&6
2285 else
2286   echo "$ac_t""no" 1>&6
2287 fi
2288
2289 else
2290   STRIP=":"
2291 fi
2292 fi
2293
2294
2295 # Check for any special flags to pass to ltconfig.
2296 libtool_flags="--cache-file=$cache_file"
2297 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2298 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2299 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2300 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2301 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2302 libtool_flags="$libtool_flags --enable-dlopen"
2303
2304 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2305 if test "${enable_libtool_lock+set}" = set; then
2306   enableval="$enable_libtool_lock"
2307   :
2308 fi
2309
2310 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2311 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2312
2313 # Check whether --with-pic or --without-pic was given.
2314 if test "${with_pic+set}" = set; then
2315   withval="$with_pic"
2316   pic_mode="$withval"
2317 else
2318   pic_mode=default
2319 fi
2320
2321 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2322 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2323
2324 # Some flags need to be propagated to the compiler or linker for good
2325 # libtool support.
2326 case $host in
2327 *-*-irix6*)
2328   # Find out which ABI we are using.
2329   echo '#line 2330 "configure"' > conftest.$ac_ext
2330   if { (eval echo configure:2331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2331     case `/usr/bin/file conftest.$ac_objext` in
2332     *32-bit*)
2333       LD="${LD-ld} -32"
2334       ;;
2335     *N32*)
2336       LD="${LD-ld} -n32"
2337       ;;
2338     *64-bit*)
2339       LD="${LD-ld} -64"
2340       ;;
2341     esac
2342   fi
2343   rm -rf conftest*
2344   ;;
2345
2346 *-*-sco3.2v5*)
2347   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2348   SAVE_CFLAGS="$CFLAGS"
2349   CFLAGS="$CFLAGS -belf"
2350   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2351 echo "configure:2352: checking whether the C compiler needs -belf" >&5
2352 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2353   echo $ac_n "(cached) $ac_c" 1>&6
2354 else
2355   
2356      ac_ext=c
2357 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2358 ac_cpp='$CPP $CPPFLAGS'
2359 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2360 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2361 cross_compiling=$ac_cv_prog_cc_cross
2362
2363      cat > conftest.$ac_ext <<EOF
2364 #line 2365 "configure"
2365 #include "confdefs.h"
2366
2367 int main() {
2368
2369 ; return 0; }
2370 EOF
2371 if { (eval echo configure:2372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2372   rm -rf conftest*
2373   lt_cv_cc_needs_belf=yes
2374 else
2375   echo "configure: failed program was:" >&5
2376   cat conftest.$ac_ext >&5
2377   rm -rf conftest*
2378   lt_cv_cc_needs_belf=no
2379 fi
2380 rm -f conftest*
2381      ac_ext=c
2382 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2383 ac_cpp='$CPP $CPPFLAGS'
2384 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2385 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2386 cross_compiling=$ac_cv_prog_cc_cross
2387
2388 fi
2389
2390 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2391   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2392     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2393     CFLAGS="$SAVE_CFLAGS"
2394   fi
2395   ;;
2396
2397
2398 esac
2399
2400 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2401 echo "configure:2402: checking how to run the C++ preprocessor" >&5
2402 if test -z "$CXXCPP"; then
2403 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2404   echo $ac_n "(cached) $ac_c" 1>&6
2405 else
2406   ac_ext=C
2407 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2408 ac_cpp='$CXXCPP $CPPFLAGS'
2409 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2410 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2411 cross_compiling=$ac_cv_prog_cxx_cross
2412   CXXCPP="${CXX-g++} -E"
2413   cat > conftest.$ac_ext <<EOF
2414 #line 2415 "configure"
2415 #include "confdefs.h"
2416 #include <stdlib.h>
2417 EOF
2418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2419 { (eval echo configure:2420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2420 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2421 if test -z "$ac_err"; then
2422   :
2423 else
2424   echo "$ac_err" >&5
2425   echo "configure: failed program was:" >&5
2426   cat conftest.$ac_ext >&5
2427   rm -rf conftest*
2428   CXXCPP=/lib/cpp
2429 fi
2430 rm -f conftest*
2431   ac_cv_prog_CXXCPP="$CXXCPP"
2432 ac_ext=c
2433 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2434 ac_cpp='$CPP $CPPFLAGS'
2435 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2436 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2437 cross_compiling=$ac_cv_prog_cc_cross
2438 fi
2439 fi
2440 CXXCPP="$ac_cv_prog_CXXCPP"
2441 echo "$ac_t""$CXXCPP" 1>&6
2442
2443
2444 # Save cache, so that ltconfig can load it
2445 cat > confcache <<\EOF
2446 # This file is a shell script that caches the results of configure
2447 # tests run on this system so they can be shared between configure
2448 # scripts and configure runs.  It is not useful on other systems.
2449 # If it contains results you don't want to keep, you may remove or edit it.
2450 #
2451 # By default, configure uses ./config.cache as the cache file,
2452 # creating it if it does not exist already.  You can give configure
2453 # the --cache-file=FILE option to use a different cache file; that is
2454 # what configure does when it calls configure scripts in
2455 # subdirectories, so they share the cache.
2456 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2457 # config.status only pays attention to the cache file if you give it the
2458 # --recheck option to rerun configure.
2459 #
2460 EOF
2461 # The following way of writing the cache mishandles newlines in values,
2462 # but we know of no workaround that is simple, portable, and efficient.
2463 # So, don't put newlines in cache variables' values.
2464 # Ultrix sh set writes to stderr and can't be redirected directly,
2465 # and sets the high bit in the cache file unless we assign to the vars.
2466 (set) 2>&1 |
2467   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2468   *ac_space=\ *)
2469     # `set' does not quote correctly, so add quotes (double-quote substitution
2470     # turns \\\\ into \\, and sed turns \\ into \).
2471     sed -n \
2472       -e "s/'/'\\\\''/g" \
2473       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2474     ;;
2475   *)
2476     # `set' quotes correctly as required by POSIX, so do not add quotes.
2477     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2478     ;;
2479   esac >> confcache
2480 if cmp -s $cache_file confcache; then
2481   :
2482 else
2483   if test -w $cache_file; then
2484     echo "updating cache $cache_file"
2485     cat confcache > $cache_file
2486   else
2487     echo "not updating unwritable cache $cache_file"
2488   fi
2489 fi
2490 rm -f confcache
2491
2492
2493 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2494 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2495 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2496 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2497 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2498 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2499 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2500 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2501 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2502 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2503
2504 # Reload cache, that may have been modified by ltconfig
2505 if test -r "$cache_file"; then
2506   echo "loading cache $cache_file"
2507   . $cache_file
2508 else
2509   echo "creating cache $cache_file"
2510   > $cache_file
2511 fi
2512
2513
2514 # This can be used to rebuild libtool when needed
2515 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2516
2517 # Always use our own libtool.
2518 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2519
2520 # Redirect the config.log output again, so that the ltconfig log is not
2521 # clobbered by the next message.
2522 exec 5>>./config.log
2523
2524
2525
2526 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2527 lt_save_CC="$CC"
2528 lt_save_CFLAGS="$CFLAGS"
2529 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2530 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2531 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2532 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2533 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2534 deplibs_check_method="$deplibs_check_method" \
2535 file_magic_cmd="$file_magic_cmd" \
2536 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2537 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2538 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2539 CC="$lt_save_CC"
2540 CFLAGS="$lt_save_CFLAGS"
2541
2542 # Redirect the config.log output again, so that the ltconfig log is not
2543 # clobbered by the next message.
2544 exec 5>>./config.log
2545
2546   
2547
2548   
2549          
2550          
2551
2552
2553 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2554 echo "configure:2555: checking for GNU make" >&5
2555 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2556   echo $ac_n "(cached) $ac_c" 1>&6
2557 else
2558   _cv_gnu_make_command='' ;
2559           for a in "${MAKE-make}" make gmake gnumake ; do
2560                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2561                   then
2562                           _cv_gnu_make_command=$a ;
2563                           break;
2564                   fi
2565           done ;
2566   
2567 fi
2568
2569 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2570   if test  "x$_cv_gnu_make_command" != "x"  ; then
2571           ifGNUmake='' ;
2572   else
2573           ifGNUmake='#' ;
2574   fi
2575   
2576
2577
2578
2579
2580
2581
2582 # Check for c++ or library specific bits that don't require linking.
2583
2584 if test ! -f stamp-sanity-compiler; then
2585   echo $ac_n "checking for g++ that will successfully compile libstdc++-v3""... $ac_c" 1>&6
2586 echo "configure:2587: checking for g++ that will successfully compile libstdc++-v3" >&5
2587   
2588   ac_ext=C
2589 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2590 ac_cpp='$CXXCPP $CPPFLAGS'
2591 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2592 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2593 cross_compiling=$ac_cv_prog_cxx_cross
2594
2595   cat > conftest.$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2598
2599 int main() {
2600
2601   #if __GNUC__ < 3
2602     not_ok
2603   #endif
2604   
2605 ; return 0; }
2606 EOF
2607 if { (eval echo configure:2608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2608   rm -rf conftest*
2609   gpp_satisfactory=yes
2610 else
2611   echo "configure: failed program was:" >&5
2612   cat conftest.$ac_ext >&5
2613   rm -rf conftest*
2614   { echo "configure: error: please upgrade to GCC 3.0 or above" 1>&2; exit 1; }
2615 fi
2616 rm -f conftest*
2617   ac_ext=c
2618 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2619 ac_cpp='$CPP $CPPFLAGS'
2620 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2621 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2622 cross_compiling=$ac_cv_prog_cc_cross
2623
2624   echo "$ac_t""$gpp_satisfactory" 1>&6
2625   touch stamp-sanity-compiler
2626 fi
2627
2628
2629 # Enable all the crazy c++ stuff.  C_MBCHAR must come early.
2630 # Check whether --enable-debug or --disable-debug was given.
2631 if test "${enable_debug+set}" = set; then
2632   enableval="$enable_debug"
2633   case "${enableval}" in
2634  yes) enable_debug=yes ;;
2635  no)  enable_debug=no ;;
2636  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2637  esac
2638 else
2639   enable_debug=no
2640 fi
2641
2642 case "${enable_debug}" in
2643     yes) 
2644         DEBUG_FLAGS='-O0 -ggdb3'                        
2645         ;; 
2646     no)   
2647         DEBUG_FLAGS='-g'
2648         ;;
2649 esac
2650
2651
2652 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2653 echo "configure:2654: checking how to run the C preprocessor" >&5
2654 # On Suns, sometimes $CPP names a directory.
2655 if test -n "$CPP" && test -d "$CPP"; then
2656   CPP=
2657 fi
2658 if test -z "$CPP"; then
2659 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2660   echo $ac_n "(cached) $ac_c" 1>&6
2661 else
2662     # This must be in double quotes, not single quotes, because CPP may get
2663   # substituted into the Makefile and "${CC-cc}" will confuse make.
2664   CPP="${CC-cc} -E"
2665   # On the NeXT, cc -E runs the code through the compiler's parser,
2666   # not just through cpp.
2667   cat > conftest.$ac_ext <<EOF
2668 #line 2669 "configure"
2669 #include "confdefs.h"
2670 #include <assert.h>
2671 Syntax Error
2672 EOF
2673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2674 { (eval echo configure:2675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2676 if test -z "$ac_err"; then
2677   :
2678 else
2679   echo "$ac_err" >&5
2680   echo "configure: failed program was:" >&5
2681   cat conftest.$ac_ext >&5
2682   rm -rf conftest*
2683   CPP="${CC-cc} -E -traditional-cpp"
2684   cat > conftest.$ac_ext <<EOF
2685 #line 2686 "configure"
2686 #include "confdefs.h"
2687 #include <assert.h>
2688 Syntax Error
2689 EOF
2690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2691 { (eval echo configure:2692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2693 if test -z "$ac_err"; then
2694   :
2695 else
2696   echo "$ac_err" >&5
2697   echo "configure: failed program was:" >&5
2698   cat conftest.$ac_ext >&5
2699   rm -rf conftest*
2700   CPP="${CC-cc} -nologo -E"
2701   cat > conftest.$ac_ext <<EOF
2702 #line 2703 "configure"
2703 #include "confdefs.h"
2704 #include <assert.h>
2705 Syntax Error
2706 EOF
2707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2708 { (eval echo configure:2709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2710 if test -z "$ac_err"; then
2711   :
2712 else
2713   echo "$ac_err" >&5
2714   echo "configure: failed program was:" >&5
2715   cat conftest.$ac_ext >&5
2716   rm -rf conftest*
2717   CPP=/lib/cpp
2718 fi
2719 rm -f conftest*
2720 fi
2721 rm -f conftest*
2722 fi
2723 rm -f conftest*
2724   ac_cv_prog_CPP="$CPP"
2725 fi
2726   CPP="$ac_cv_prog_CPP"
2727 else
2728   ac_cv_prog_CPP="$CPP"
2729 fi
2730 echo "$ac_t""$CPP" 1>&6
2731
2732
2733   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2734 echo "configure:2735: checking for cstdio to use" >&5
2735   # Check whether --enable-cstdio or --disable-cstdio was given.
2736 if test "${enable_cstdio+set}" = set; then
2737   enableval="$enable_cstdio"
2738   if test x$enable_cstdio = xno; then
2739      enable_cstdio=stdio
2740   fi
2741 else
2742   enable_cstdio=stdio
2743 fi
2744
2745
2746   enable_cstdio_flag=$enable_cstdio
2747
2748     case x${enable_cstdio_flag} in
2749     xlibio)
2750       CSTDIO_H=config/c_io_libio.h
2751       BASIC_FILE_H=config/basic_file_libio.h
2752       BASIC_FILE_CC=config/basic_file_libio.cc
2753       echo "$ac_t""libio" 1>&6
2754
2755       # see if we are on a system with libio native (ie, linux)
2756       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2757 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2758 echo "configure:2759: checking for libio.h" >&5
2759 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2760   echo $ac_n "(cached) $ac_c" 1>&6
2761 else
2762   cat > conftest.$ac_ext <<EOF
2763 #line 2764 "configure"
2764 #include "confdefs.h"
2765 #include <libio.h>
2766 EOF
2767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2768 { (eval echo configure:2769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2770 if test -z "$ac_err"; then
2771   rm -rf conftest*
2772   eval "ac_cv_header_$ac_safe=yes"
2773 else
2774   echo "$ac_err" >&5
2775   echo "configure: failed program was:" >&5
2776   cat conftest.$ac_ext >&5
2777   rm -rf conftest*
2778   eval "ac_cv_header_$ac_safe=no"
2779 fi
2780 rm -f conftest*
2781 fi
2782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2783   echo "$ac_t""yes" 1>&6
2784   has_libio=yes
2785 else
2786   echo "$ac_t""no" 1>&6
2787 has_libio=no
2788 fi
2789
2790
2791       # Need to check and see what version of glibc is being used. If
2792       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2793       # compile most of libio for linux systems.
2794       if test x$has_libio = x"yes"; then
2795         case "$target" in
2796           *-*-linux*)
2797               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2798 echo "configure:2799: checking for glibc version >= 2.2" >&5
2799               cat > conftest.$ac_ext <<EOF
2800 #line 2801 "configure"
2801 #include "confdefs.h"
2802
2803             #include <features.h>
2804               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2805                     ok
2806               #endif
2807               
2808 EOF
2809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2810   egrep "ok" >/dev/null 2>&1; then
2811   rm -rf conftest*
2812   glibc_satisfactory=yes
2813 else
2814   rm -rf conftest*
2815   glibc_satisfactory=no
2816 fi
2817 rm -f conftest*
2818
2819               echo "$ac_t""$glibc_satisfactory" 1>&6
2820             ;;
2821         esac
2822
2823         # XXX at the moment, admit defeat and force the recompilation
2824         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2825         glibc_satisfactory=no        
2826
2827         if test x$glibc_satisfactory = x"yes"; then
2828            need_libio=no
2829            need_wlibio=no        
2830         else
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       else
2842          # Using libio, but <libio.h> doesn't exist on the target system. . .
2843          need_libio=yes
2844          # bkoz XXX need to add checks to enable this
2845          # pme XXX here's a first pass at such a check
2846          if test x$enable_c_mbchar != xno; then
2847              need_wlibio=yes
2848          else
2849              need_wlibio=no
2850          fi
2851       fi
2852       ;;
2853     xstdio | x | xno | xnone | xyes)
2854       # default
2855       CSTDIO_H=config/c_io_stdio.h
2856       BASIC_FILE_H=config/basic_file_stdio.h
2857       BASIC_FILE_CC=config/basic_file_stdio.cc
2858       echo "$ac_t""stdio" 1>&6
2859
2860       # We're not using stdio.
2861       need_libio=no
2862       need_wlibio=no
2863       ;;
2864     *)
2865       echo "$enable_cstdio is an unknown io package" 1>&2
2866       exit 1
2867       ;;
2868   esac
2869   
2870   
2871   
2872
2873   # 2000-08-04 bkoz hack
2874   CCODECVT_C=config/c_io_libio_codecvt.c
2875   
2876   # 2000-08-04 bkoz hack
2877
2878   
2879
2880 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2881   GLIBCPP_BUILD_LIBIO_TRUE=
2882   GLIBCPP_BUILD_LIBIO_FALSE='#'
2883 else
2884   GLIBCPP_BUILD_LIBIO_TRUE='#'
2885   GLIBCPP_BUILD_LIBIO_FALSE=
2886 fi
2887   
2888
2889 if test "$need_libio" = yes; then
2890   GLIBCPP_NEED_LIBIO_TRUE=
2891   GLIBCPP_NEED_LIBIO_FALSE='#'
2892 else
2893   GLIBCPP_NEED_LIBIO_TRUE='#'
2894   GLIBCPP_NEED_LIBIO_FALSE=
2895 fi
2896   
2897
2898 if test "$need_wlibio" = yes; then
2899   GLIBCPP_NEED_WLIBIO_TRUE=
2900   GLIBCPP_NEED_WLIBIO_FALSE='#'
2901 else
2902   GLIBCPP_NEED_WLIBIO_TRUE='#'
2903   GLIBCPP_NEED_WLIBIO_FALSE=
2904 fi
2905   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2906     libio_la=../libio/libio.la
2907   else
2908     libio_la=
2909   fi
2910   
2911
2912
2913   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2914 echo "configure:2915: checking for clocale to use" >&5
2915   # Check whether --enable-clocale or --disable-clocale was given.
2916 if test "${enable_clocale+set}" = set; then
2917   enableval="$enable_clocale"
2918   if test x$enable_clocale = xno; then
2919      enable_clocale=generic
2920   fi
2921 else
2922   enable_clocale=generic
2923 fi
2924
2925
2926   enable_clocale_flag=$enable_clocale
2927
2928     case x${enable_clocale_flag} in
2929     xgnu)
2930       CLOCALE_H=config/c_locale_gnu.h
2931       CLOCALE_CC=config/c_locale_gnu.cc
2932       echo "$ac_t""gnu" 1>&6
2933       ;;
2934     xgeneric)
2935       CLOCALE_H=config/c_locale_generic.h
2936       CLOCALE_CC=config/c_locale_generic.cc
2937       echo "$ac_t""generic" 1>&6
2938       ;;
2939     *)
2940       echo "$enable_clocale is an unknown locale package" 1>&2
2941       exit 1
2942       ;;
2943   esac
2944
2945   
2946   
2947
2948 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
2949 if test "${enable_c_mbchar+set}" = set; then
2950   enableval="$enable_c_mbchar"
2951   case "$enableval" in
2952  yes) enable_c_mbchar=yes ;;
2953  no)  enable_c_mbchar=no ;;
2954  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
2955  esac
2956 else
2957   enable_c_mbchar=yes
2958 fi
2959
2960   
2961   # Check whether --enable-c99 or --disable-c99 was given.
2962 if test "${enable_c99+set}" = set; then
2963   enableval="$enable_c99"
2964     case "$enableval" in
2965    yes) enable_c99=yes ;;
2966    no)  enable_c99=no ;;
2967    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
2968    esac
2969 else
2970   enable_c99=yes
2971 fi
2972  
2973   
2974   ac_ext=C
2975 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2976 ac_cpp='$CXXCPP $CPPFLAGS'
2977 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2978 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2979 cross_compiling=$ac_cv_prog_cxx_cross
2980
2981
2982   # Check for the existence of <math.h> functions used if C99 is enabled.
2983   ac_c99_math=yes;
2984   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
2985 echo "configure:2986: checking for ISO C99 support in <math.h>" >&5
2986   cat > conftest.$ac_ext <<EOF
2987 #line 2988 "configure"
2988 #include "confdefs.h"
2989 #include <math.h>
2990 int main() {
2991 fpclassify(0.0);
2992 ; return 0; }
2993 EOF
2994 if { (eval echo configure:2995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2995   :
2996 else
2997   echo "configure: failed program was:" >&5
2998   cat conftest.$ac_ext >&5
2999   rm -rf conftest*
3000   ac_c99_math=no
3001 fi
3002 rm -f conftest*
3003   cat > conftest.$ac_ext <<EOF
3004 #line 3005 "configure"
3005 #include "confdefs.h"
3006 #include <math.h>
3007 int main() {
3008 isfinite(0.0);
3009 ; return 0; }
3010 EOF
3011 if { (eval echo configure:3012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3012   :
3013 else
3014   echo "configure: failed program was:" >&5
3015   cat conftest.$ac_ext >&5
3016   rm -rf conftest*
3017   ac_c99_math=no
3018 fi
3019 rm -f conftest*
3020   cat > conftest.$ac_ext <<EOF
3021 #line 3022 "configure"
3022 #include "confdefs.h"
3023 #include <math.h>
3024 int main() {
3025 isinf(0.0);
3026 ; return 0; }
3027 EOF
3028 if { (eval echo configure:3029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3029   :
3030 else
3031   echo "configure: failed program was:" >&5
3032   cat conftest.$ac_ext >&5
3033   rm -rf conftest*
3034   ac_c99_math=no
3035 fi
3036 rm -f conftest*
3037   cat > conftest.$ac_ext <<EOF
3038 #line 3039 "configure"
3039 #include "confdefs.h"
3040 #include <math.h>
3041 int main() {
3042 isnan(0.0);
3043 ; return 0; }
3044 EOF
3045 if { (eval echo configure:3046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3046   :
3047 else
3048   echo "configure: failed program was:" >&5
3049   cat conftest.$ac_ext >&5
3050   rm -rf conftest*
3051   ac_c99_math=no
3052 fi
3053 rm -f conftest*
3054   cat > conftest.$ac_ext <<EOF
3055 #line 3056 "configure"
3056 #include "confdefs.h"
3057 #include <math.h>
3058 int main() {
3059 isnormal(0.0);
3060 ; return 0; }
3061 EOF
3062 if { (eval echo configure:3063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3063   :
3064 else
3065   echo "configure: failed program was:" >&5
3066   cat conftest.$ac_ext >&5
3067   rm -rf conftest*
3068   ac_c99_math=no
3069 fi
3070 rm -f conftest*
3071   cat > conftest.$ac_ext <<EOF
3072 #line 3073 "configure"
3073 #include "confdefs.h"
3074 #include <math.h>
3075 int main() {
3076 signbit(0.0);
3077 ; return 0; }
3078 EOF
3079 if { (eval echo configure:3080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3080   :
3081 else
3082   echo "configure: failed program was:" >&5
3083   cat conftest.$ac_ext >&5
3084   rm -rf conftest*
3085   ac_c99_math=no
3086 fi
3087 rm -f conftest*
3088   cat > conftest.$ac_ext <<EOF
3089 #line 3090 "configure"
3090 #include "confdefs.h"
3091 #include <math.h>
3092 int main() {
3093 isgreater(0.0,0.0);
3094 ; return 0; }
3095 EOF
3096 if { (eval echo configure:3097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3097   :
3098 else
3099   echo "configure: failed program was:" >&5
3100   cat conftest.$ac_ext >&5
3101   rm -rf conftest*
3102   ac_c99_math=no
3103 fi
3104 rm -f conftest*
3105   cat > conftest.$ac_ext <<EOF
3106 #line 3107 "configure"
3107 #include "confdefs.h"
3108 #include <math.h>
3109 int main() {
3110 isgreaterequal(0.0,0.0);
3111 ; return 0; }
3112 EOF
3113 if { (eval echo configure:3114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3114   :
3115 else
3116   echo "configure: failed program was:" >&5
3117   cat conftest.$ac_ext >&5
3118   rm -rf conftest*
3119   ac_c99_math=no
3120 fi
3121 rm -f conftest*
3122   cat > conftest.$ac_ext <<EOF
3123 #line 3124 "configure"
3124 #include "confdefs.h"
3125 #include <math.h>
3126 int main() {
3127 isless(0.0,0.0);
3128 ; return 0; }
3129 EOF
3130 if { (eval echo configure:3131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3131   :
3132 else
3133   echo "configure: failed program was:" >&5
3134   cat conftest.$ac_ext >&5
3135   rm -rf conftest*
3136   ac_c99_math=no
3137 fi
3138 rm -f conftest*
3139   cat > conftest.$ac_ext <<EOF
3140 #line 3141 "configure"
3141 #include "confdefs.h"
3142 #include <math.h>
3143 int main() {
3144 islessequal(0.0,0.0);
3145 ; return 0; }
3146 EOF
3147 if { (eval echo configure:3148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3148   :
3149 else
3150   echo "configure: failed program was:" >&5
3151   cat conftest.$ac_ext >&5
3152   rm -rf conftest*
3153   ac_c99_math=no
3154 fi
3155 rm -f conftest*
3156   cat > conftest.$ac_ext <<EOF
3157 #line 3158 "configure"
3158 #include "confdefs.h"
3159 #include <math.h>
3160 int main() {
3161 islessgreater(0.0,0.0);
3162 ; return 0; }
3163 EOF
3164 if { (eval echo configure:3165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3165   :
3166 else
3167   echo "configure: failed program was:" >&5
3168   cat conftest.$ac_ext >&5
3169   rm -rf conftest*
3170   ac_c99_math=no
3171 fi
3172 rm -f conftest*
3173   cat > conftest.$ac_ext <<EOF
3174 #line 3175 "configure"
3175 #include "confdefs.h"
3176 #include <math.h>
3177 int main() {
3178 isunordered(0.0,0.0);
3179 ; return 0; }
3180 EOF
3181 if { (eval echo configure:3182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3182   :
3183 else
3184   echo "configure: failed program was:" >&5
3185   cat conftest.$ac_ext >&5
3186   rm -rf conftest*
3187   ac_c99_math=no
3188 fi
3189 rm -f conftest*
3190   echo "$ac_t""$ac_c99_math" 1>&6
3191
3192   # Check for the existence in <stdio.h> of vscanf, et. al.
3193   ac_c99_stdio=yes;
3194   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3195 echo "configure:3196: checking for ISO C99 support in <stdio.h>" >&5
3196   cat > conftest.$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3199 #include <stdio.h>
3200 int main() {
3201 snprintf("12", 0, "%i");
3202 ; return 0; }
3203 EOF
3204 if { (eval echo configure:3205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3205   :
3206 else
3207   echo "configure: failed program was:" >&5
3208   cat conftest.$ac_ext >&5
3209   rm -rf conftest*
3210   ac_c99_stdio=no
3211 fi
3212 rm -f conftest*
3213   cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3216 #include <stdio.h>
3217                   #include <stdarg.h>
3218                   void foo(char* fmt, ...)
3219                   {va_list args; va_start(args, fmt);
3220                   vfscanf(stderr, "%i", args);}
3221 int main() {
3222
3223 ; return 0; }
3224 EOF
3225 if { (eval echo configure:3226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3226   :
3227 else
3228   echo "configure: failed program was:" >&5
3229   cat conftest.$ac_ext >&5
3230   rm -rf conftest*
3231   ac_c99_stdio=no
3232 fi
3233 rm -f conftest*
3234   cat > conftest.$ac_ext <<EOF
3235 #line 3236 "configure"
3236 #include "confdefs.h"
3237 #include <stdio.h>
3238                   #include <stdarg.h>
3239                   void foo(char* fmt, ...)
3240                   {va_list args; va_start(args, fmt);
3241                   vscanf("%i", args);}
3242 int main() {
3243
3244 ; return 0; }
3245 EOF
3246 if { (eval echo configure:3247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3247   :
3248 else
3249   echo "configure: failed program was:" >&5
3250   cat conftest.$ac_ext >&5
3251   rm -rf conftest*
3252   ac_c99_stdio=no
3253 fi
3254 rm -f conftest*
3255   cat > conftest.$ac_ext <<EOF
3256 #line 3257 "configure"
3257 #include "confdefs.h"
3258 #include <stdio.h>
3259                   #include <stdarg.h>
3260                   void foo(char* fmt, ...)
3261                   {va_list args; va_start(args, fmt);
3262                   vsnprintf(fmt, 0, "%i", args);}
3263 int main() {
3264
3265 ; return 0; }
3266 EOF
3267 if { (eval echo configure:3268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3268   :
3269 else
3270   echo "configure: failed program was:" >&5
3271   cat conftest.$ac_ext >&5
3272   rm -rf conftest*
3273   ac_c99_stdio=no
3274 fi
3275 rm -f conftest*
3276   cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3279 #include <stdio.h>
3280                   #include <stdarg.h>
3281                   void foo(char* fmt, ...)
3282                   {va_list args; va_start(args, fmt);
3283                   vsscanf(fmt, "%i", args);}
3284 int main() {
3285
3286 ; return 0; }
3287 EOF
3288 if { (eval echo configure:3289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3289   :
3290 else
3291   echo "configure: failed program was:" >&5
3292   cat conftest.$ac_ext >&5
3293   rm -rf conftest*
3294   ac_c99_stdio=no
3295 fi
3296 rm -f conftest*
3297   echo "$ac_t""$ac_c99_stdio" 1>&6
3298
3299   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3300   ac_c99_stdlib=yes;
3301   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3302 echo "configure:3303: checking for lldiv_t declaration" >&5
3303   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3304   echo $ac_n "(cached) $ac_c" 1>&6
3305 else
3306   
3307   cat > conftest.$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3310 #include <stdlib.h>
3311 int main() {
3312  lldiv_t mydivt;
3313 ; return 0; }
3314 EOF
3315 if { (eval echo configure:3316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3316   rm -rf conftest*
3317   ac_c99_lldiv_t=yes
3318 else
3319   echo "configure: failed program was:" >&5
3320   cat conftest.$ac_ext >&5
3321   rm -rf conftest*
3322   ac_c99_lldiv_t=no
3323 fi
3324 rm -f conftest*
3325   
3326 fi
3327
3328   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3329
3330   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3331 echo "configure:3332: checking for ISO C99 support in <stdlib.h>" >&5
3332   cat > conftest.$ac_ext <<EOF
3333 #line 3334 "configure"
3334 #include "confdefs.h"
3335 #include <stdlib.h>
3336 int main() {
3337 char* tmp; strtof("gnu", &tmp);
3338 ; return 0; }
3339 EOF
3340 if { (eval echo configure:3341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3341   :
3342 else
3343   echo "configure: failed program was:" >&5
3344   cat conftest.$ac_ext >&5
3345   rm -rf conftest*
3346   ac_c99_stdlib=no
3347 fi
3348 rm -f conftest*
3349   cat > conftest.$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3352 #include <stdlib.h>
3353 int main() {
3354 char* tmp; strtold("gnu", &tmp);
3355 ; return 0; }
3356 EOF
3357 if { (eval echo configure:3358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3358   :
3359 else
3360   echo "configure: failed program was:" >&5
3361   cat conftest.$ac_ext >&5
3362   rm -rf conftest*
3363   ac_c99_stdlib=no
3364 fi
3365 rm -f conftest*
3366   cat > conftest.$ac_ext <<EOF
3367 #line 3368 "configure"
3368 #include "confdefs.h"
3369 #include <stdlib.h>
3370 int main() {
3371 char* tmp; strtoll("gnu", &tmp, 10);
3372 ; return 0; }
3373 EOF
3374 if { (eval echo configure:3375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3375   :
3376 else
3377   echo "configure: failed program was:" >&5
3378   cat conftest.$ac_ext >&5
3379   rm -rf conftest*
3380   ac_c99_stdlib=no
3381 fi
3382 rm -f conftest*
3383   cat > conftest.$ac_ext <<EOF
3384 #line 3385 "configure"
3385 #include "confdefs.h"
3386 #include <stdlib.h>
3387 int main() {
3388 char* tmp; strtoull("gnu", &tmp, 10);
3389 ; return 0; }
3390 EOF
3391 if { (eval echo configure:3392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3392   :
3393 else
3394   echo "configure: failed program was:" >&5
3395   cat conftest.$ac_ext >&5
3396   rm -rf conftest*
3397   ac_c99_stdlib=no
3398 fi
3399 rm -f conftest*
3400   cat > conftest.$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3403 #include <stdlib.h>
3404 int main() {
3405 llabs(10);
3406 ; return 0; }
3407 EOF
3408 if { (eval echo configure:3409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3409   :
3410 else
3411   echo "configure: failed program was:" >&5
3412   cat conftest.$ac_ext >&5
3413   rm -rf conftest*
3414   ac_c99_stdlib=no
3415 fi
3416 rm -f conftest*
3417   cat > conftest.$ac_ext <<EOF
3418 #line 3419 "configure"
3419 #include "confdefs.h"
3420 #include <stdlib.h>
3421 int main() {
3422 lldiv(10,1);
3423 ; return 0; }
3424 EOF
3425 if { (eval echo configure:3426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3426   :
3427 else
3428   echo "configure: failed program was:" >&5
3429   cat conftest.$ac_ext >&5
3430   rm -rf conftest*
3431   ac_c99_stdlib=no
3432 fi
3433 rm -f conftest*
3434   cat > conftest.$ac_ext <<EOF
3435 #line 3436 "configure"
3436 #include "confdefs.h"
3437 #include <stdlib.h>
3438 int main() {
3439 atoll("10");
3440 ; return 0; }
3441 EOF
3442 if { (eval echo configure:3443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3443   :
3444 else
3445   echo "configure: failed program was:" >&5
3446   cat conftest.$ac_ext >&5
3447   rm -rf conftest*
3448   ac_c99_stdlib=no
3449 fi
3450 rm -f conftest*
3451   cat > conftest.$ac_ext <<EOF
3452 #line 3453 "configure"
3453 #include "confdefs.h"
3454 #include <stdlib.h>
3455 int main() {
3456 _Exit(0);
3457 ; return 0; }
3458 EOF
3459 if { (eval echo configure:3460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3460   :
3461 else
3462   echo "configure: failed program was:" >&5
3463   cat conftest.$ac_ext >&5
3464   rm -rf conftest*
3465   ac_c99_stdlib=no
3466 fi
3467 rm -f conftest*
3468   if test x"$ac_c99_lldiv_t" = x"no"; then
3469     ac_c99_stdlib=no; 
3470   fi; 
3471   echo "$ac_t""$ac_c99_stdlib" 1>&6
3472
3473   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3474   # XXX the wchar.h checks should be rolled into the general C99 bits.
3475   ac_c99_wchar=yes;
3476   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3477 echo "configure:3478: checking for additional ISO C99 support in <wchar.h>" >&5
3478   cat > conftest.$ac_ext <<EOF
3479 #line 3480 "configure"
3480 #include "confdefs.h"
3481 #include <wchar.h>
3482 int main() {
3483 wcstold(L"10.0", NULL);
3484 ; return 0; }
3485 EOF
3486 if { (eval echo configure:3487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3487   :
3488 else
3489   echo "configure: failed program was:" >&5
3490   cat conftest.$ac_ext >&5
3491   rm -rf conftest*
3492   ac_c99_wchar=no
3493 fi
3494 rm -f conftest*
3495   cat > conftest.$ac_ext <<EOF
3496 #line 3497 "configure"
3497 #include "confdefs.h"
3498 #include <wchar.h>
3499 int main() {
3500 wcstoll(L"10", NULL, 10);
3501 ; return 0; }
3502 EOF
3503 if { (eval echo configure:3504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3504   :
3505 else
3506   echo "configure: failed program was:" >&5
3507   cat conftest.$ac_ext >&5
3508   rm -rf conftest*
3509   ac_c99_wchar=no
3510 fi
3511 rm -f conftest*
3512   cat > conftest.$ac_ext <<EOF
3513 #line 3514 "configure"
3514 #include "confdefs.h"
3515 #include <wchar.h>
3516 int main() {
3517 wcstoull(L"10", NULL, 10);
3518 ; return 0; }
3519 EOF
3520 if { (eval echo configure:3521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3521   :
3522 else
3523   echo "configure: failed program was:" >&5
3524   cat conftest.$ac_ext >&5
3525   rm -rf conftest*
3526   ac_c99_wchar=no
3527 fi
3528 rm -f conftest*
3529   echo "$ac_t""$ac_c99_wchar" 1>&6
3530
3531   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3532 echo "configure:3533: checking for enabled ISO C99 support" >&5
3533   if test x"$ac_c99_math" = x"no" ||
3534      test x"$ac_c99_stdio" = x"no" ||
3535      test x"$ac_c99_stdlib" = x"no" ||
3536      test x"$ac_c99_wchar" = x"no"; then
3537     enable_c99=no; 
3538   fi; 
3539   echo "$ac_t""$enable_c99" 1>&6
3540
3541   # Option parsed, now set things appropriately
3542   if test x"$enable_c99" = x"yes"; then
3543     cat >> confdefs.h <<\EOF
3544 #define _GLIBCPP_USE_C99 1
3545 EOF
3546
3547   fi
3548
3549   ac_ext=c
3550 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3551 ac_cpp='$CPP $CPPFLAGS'
3552 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3553 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3554 cross_compiling=$ac_cv_prog_cc_cross
3555
3556
3557   
3558   # Check whether --enable-long-long or --disable-long-long was given.
3559 if test "${enable_long_long+set}" = set; then
3560   enableval="$enable_long_long"
3561     case "$enableval" in
3562    yes) enable_long_long=yes ;;
3563    no)  enable_long_long=no ;;
3564    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3565    esac
3566 else
3567   enable_long_long=yes
3568 fi
3569
3570   # iostreams require strtoll, strtoull to compile. If the
3571   # GLIBCPP_ENABLE_C99 tests found these, and if C99 support is enabled,
3572   # go ahead and allow long long to be used.
3573   if test x"$enable_c99" = x"no"; then
3574     enable_long_long=no; 
3575   fi
3576
3577   # Option parsed, now set things appropriately
3578   echo $ac_n "checking for enabled long long support""... $ac_c" 1>&6
3579 echo "configure:3580: checking for enabled long long support" >&5
3580   if test x"$enable_long_long" = xyes; then
3581     cat >> confdefs.h <<\EOF
3582 #define _GLIBCPP_USE_LONG_LONG 1
3583 EOF
3584
3585   fi
3586   echo "$ac_t""$enable_long_long" 1>&6
3587
3588 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3589 echo "configure:3590: checking for c header strategy to use" >&5
3590 # Check whether --enable-cheaders or --disable-cheaders was given.
3591 if test "${enable_cheaders+set}" = set; then
3592   enableval="$enable_cheaders"
3593   
3594   case "$enableval" in
3595    c) 
3596         enable_cheaders=c 
3597         ;;
3598    c_std)  
3599         enable_cheaders=c_std 
3600         ;;
3601    c_shadow)  
3602         enable_cheaders=c_shadow 
3603         ;;
3604    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3605         ;;
3606   esac
3607 else
3608   enable_cheaders=c_std
3609 fi
3610
3611   echo "$ac_t""$enable_cheaders" 1>&6
3612
3613     case "$enable_cheaders" in
3614     c_shadow) 
3615         CSHADOW_FLAGS="-fno-builtin"
3616         C_INCLUDE_DIR='${top_srcdir}/include/c_shadow'
3617         cat >> confdefs.h <<\EOF
3618 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3619 EOF
3620
3621         ;;
3622     c_std)   
3623         CSHADOW_FLAGS=""
3624         C_INCLUDE_DIR='${top_srcdir}/include/c_std'
3625         ;;
3626     c)   
3627         CSHADOW_FLAGS=""
3628         C_INCLUDE_DIR='${top_srcdir}/include/c'
3629         ;;
3630   esac
3631
3632   
3633   
3634   
3635
3636 if test "$enable_cheaders" = c_shadow; then
3637   GLIBCPP_USE_CSHADOW_TRUE=
3638   GLIBCPP_USE_CSHADOW_FALSE='#'
3639 else
3640   GLIBCPP_USE_CSHADOW_TRUE='#'
3641   GLIBCPP_USE_CSHADOW_FALSE=
3642 fi
3643
3644
3645   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3646 echo "configure:3647: checking for thread model used by GCC" >&5
3647   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3648   echo "$ac_t""$target_thread_file" 1>&6
3649
3650   if test $target_thread_file != single; then
3651     cat >> confdefs.h <<\EOF
3652 #define HAVE_GTHR_DEFAULT 1
3653 EOF
3654
3655     cat >> confdefs.h <<\EOF
3656 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3657 EOF
3658
3659   fi
3660
3661   glibcpp_thread_h=gthr-$target_thread_file.h
3662   
3663
3664 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3665 if test "${enable_cxx_flags+set}" = set; then
3666   enableval="$enable_cxx_flags"
3667   case "x$enableval" in
3668  xyes)   
3669         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3670  xno|x)  
3671         enable_cxx_flags='' ;;
3672  *)      
3673         enable_cxx_flags="$enableval" ;;
3674  esac
3675 else
3676   enable_cxx_flags='none'
3677 fi
3678
3679
3680 if test "$enable_cxx_flags" = "none"; then 
3681   enable_cxx_flags=''; 
3682 fi
3683
3684 if test -n "$enable_cxx_flags"; then
3685     for f in $enable_cxx_flags; do
3686         case "$f" in
3687             -fhonor-std)  ;;
3688             -*)  ;;
3689             *)   # and we're trying to pass /what/ exactly?
3690                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3691         esac
3692     done
3693 fi
3694 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3695
3696
3697
3698   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3699 echo "configure:3700: checking for exception model to use" >&5
3700   
3701   ac_ext=C
3702 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3703 ac_cpp='$CXXCPP $CPPFLAGS'
3704 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3705 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3706 cross_compiling=$ac_cv_prog_cxx_cross
3707
3708   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3709 if test "${enable_sjlj_exceptions+set}" = set; then
3710   enableval="$enable_sjlj_exceptions"
3711   :
3712 else
3713                        cat > conftest.$ac_ext << EOF
3714 #line 3715 "configure"
3715 struct S { ~S(); };
3716 void bar();
3717 void foo()
3718 {
3719   S s;
3720   bar();
3721 }
3722 EOF
3723    old_CXXFLAGS="$CXXFLAGS"  
3724    CXXFLAGS=-S
3725    if { (eval echo configure:3726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3726      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3727        enable_sjlj_exceptions=yes
3728      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3729        enable_sjlj_exceptions=no
3730      fi
3731    fi
3732    CXXFLAGS="$old_CXXFLAGS"
3733    rm -f conftest*
3734 fi
3735
3736    if test x$enable_sjlj_exceptions = xyes; then
3737      cat >> confdefs.h <<\EOF
3738 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3739 EOF
3740
3741      ac_exception_model_name=sjlj
3742    elif test x$enable_sjlj_exceptions = xno; then
3743      ac_exception_model_name="call frame"
3744    else
3745      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3746    fi
3747    ac_ext=c
3748 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3751 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3752 cross_compiling=$ac_cv_prog_cc_cross
3753
3754    echo "$ac_t""$ac_exception_model_name" 1>&6
3755
3756
3757 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
3758
3759   # We are being configured with some form of cross compiler.
3760   # mknumeric_limits may not work correctly, either because the
3761   # compiler may not run on this machine, may not be able to link
3762   # executables, or may produce executables we can't run on this
3763   # machine.
3764   GLIBCPP_IS_CROSS_COMPILING=1
3765
3766   # If Canadian cross, then don't pick up tools from the build
3767   # directory.
3768   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
3769     CANADIAN=yes
3770   else
3771     CANADIAN=no
3772   fi
3773
3774   case "$target_alias" in
3775     *-linux*)
3776         # Construct linux crosses by hand, eliminating bits that need ld...
3777         # Check for available headers.
3778         for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3779         machine/endian.h machine/param.h sys/machine.h fp.h locale.h \
3780         float.h inttypes.h
3781 do
3782 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3783 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3784 echo "configure:3785: checking for $ac_hdr" >&5
3785 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3786   echo $ac_n "(cached) $ac_c" 1>&6
3787 else
3788   cat > conftest.$ac_ext <<EOF
3789 #line 3790 "configure"
3790 #include "confdefs.h"
3791 #include <$ac_hdr>
3792 EOF
3793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3794 { (eval echo configure:3795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3796 if test -z "$ac_err"; then
3797   rm -rf conftest*
3798   eval "ac_cv_header_$ac_safe=yes"
3799 else
3800   echo "$ac_err" >&5
3801   echo "configure: failed program was:" >&5
3802   cat conftest.$ac_ext >&5
3803   rm -rf conftest*
3804   eval "ac_cv_header_$ac_safe=no"
3805 fi
3806 rm -f conftest*
3807 fi
3808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3809   echo "$ac_t""yes" 1>&6
3810     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3811   cat >> confdefs.h <<EOF
3812 #define $ac_tr_hdr 1
3813 EOF
3814  
3815 else
3816   echo "$ac_t""no" 1>&6
3817 fi
3818 done
3819
3820
3821         # GLIBCPP_CHECK_COMPILER_FEATURES
3822         SECTION_FLAGS='-ffunction-sections -fdata-sections'
3823         
3824         
3825   # If we're not using GNU ld, then there's no point in even trying these
3826   # tests.  Check for that first.  We should have already tested for gld
3827   # by now (in libtool), but require it now just to be safe...
3828   SECTION_LDFLAGS=''
3829   OPT_LDFLAGS=''
3830   
3831
3832   # Set --gc-sections.
3833   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3834     # GNU ld it is!  Joy and bunny rabbits!
3835
3836     # All these tests are for C++; save the language and the compiler flags.
3837     # Need to do this so that g++ won't try to link in libstdc++
3838     ac_test_CFLAGS="${CFLAGS+set}"
3839     ac_save_CFLAGS="$CFLAGS"
3840     CFLAGS='-x c++  -Wl,--gc-sections'
3841
3842     # Check for -Wl,--gc-sections
3843     # XXX This test is broken at the moment, as symbols required for
3844     # linking are now in libsupc++ (not built yet.....). In addition, 
3845     # this test has cored on solaris in the past. In addition,
3846     # --gc-sections doesn't really work at the moment (keeps on discarding
3847     # used sections, first .eh_frame and now some of the glibc sections for
3848     # iconv). Bzzzzt. Thanks for playing, maybe next time.
3849     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3850 echo "configure:3851: checking for ld that supports -Wl,--gc-sections" >&5
3851     if test "$cross_compiling" = yes; then
3852   ac_sectionLDflags=yes
3853 else
3854   cat > conftest.$ac_ext <<EOF
3855 #line 3856 "configure"
3856 #include "confdefs.h"
3857
3858      int main(void) 
3859      {
3860        try { throw 1; }
3861        catch (...) { };
3862        return 0;
3863      }
3864     
3865 EOF
3866 if { (eval echo configure:3867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3867 then
3868   ac_sectionLDflags=yes
3869 else
3870   echo "configure: failed program was:" >&5
3871   cat conftest.$ac_ext >&5
3872   rm -fr conftest*
3873   ac_sectionLFflags=no
3874 fi
3875 rm -fr conftest*
3876 fi
3877
3878     if test "$ac_test_CFLAGS" = set; then
3879       CFLAGS="$ac_save_CFLAGS"
3880     else
3881       # this is the suspicious part
3882       CFLAGS=''
3883     fi
3884     if test "$ac_sectionLDflags" = "yes"; then
3885       SECTION_LDFLAGS='-Wl,--gc-sections'
3886     fi
3887     echo "$ac_t""$ac_sectionLDflags" 1>&6
3888   fi
3889
3890   # Set linker optimization flags.
3891   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
3892      test x"$enable_debug" = x"no"; then
3893     OPT_LDFLAGS='-Wl,-O1'
3894   fi
3895
3896   
3897   
3898
3899         # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3900         # GLIBCPP_CHECK_MATH_SUPPORT
3901         cat >> confdefs.h <<\EOF
3902 #define HAVE_ACOSF 1
3903 EOF
3904
3905         cat >> confdefs.h <<\EOF
3906 #define HAVE_ASINF 1
3907 EOF
3908
3909         cat >> confdefs.h <<\EOF
3910 #define HAVE_ATAN2F 1
3911 EOF
3912
3913         cat >> confdefs.h <<\EOF
3914 #define HAVE_ATANF 1
3915 EOF
3916
3917         cat >> confdefs.h <<\EOF
3918 #define HAVE_CEILF 1
3919 EOF
3920
3921         cat >> confdefs.h <<\EOF
3922 #define HAVE_COPYSIGN 1
3923 EOF
3924
3925         cat >> confdefs.h <<\EOF
3926 #define HAVE_COPYSIGNF 1
3927 EOF
3928
3929         cat >> confdefs.h <<\EOF
3930 #define HAVE_COSF 1
3931 EOF
3932
3933         cat >> confdefs.h <<\EOF
3934 #define HAVE_COSHF 1
3935 EOF
3936
3937         cat >> confdefs.h <<\EOF
3938 #define HAVE_EXPF 1
3939 EOF
3940
3941         cat >> confdefs.h <<\EOF
3942 #define HAVE_FABSF 1
3943 EOF
3944
3945         cat >> confdefs.h <<\EOF
3946 #define HAVE_FINITE 1
3947 EOF
3948
3949         cat >> confdefs.h <<\EOF
3950 #define HAVE_FINITEF 1
3951 EOF
3952
3953         cat >> confdefs.h <<\EOF
3954 #define HAVE_FLOORF 1
3955 EOF
3956
3957         cat >> confdefs.h <<\EOF
3958 #define HAVE_FMODF 1
3959 EOF
3960
3961         cat >> confdefs.h <<\EOF
3962 #define HAVE_FREXPF 1
3963 EOF
3964
3965         cat >> confdefs.h <<\EOF
3966 #define HAVE_ISINF 1
3967 EOF
3968
3969         cat >> confdefs.h <<\EOF
3970 #define HAVE_ISINFF 1
3971 EOF
3972
3973         cat >> confdefs.h <<\EOF
3974 #define HAVE_ISNAN 1
3975 EOF
3976
3977         cat >> confdefs.h <<\EOF
3978 #define HAVE_ISNANF 1
3979 EOF
3980
3981         cat >> confdefs.h <<\EOF
3982 #define HAVE_LDEXPF 1
3983 EOF
3984
3985         cat >> confdefs.h <<\EOF
3986 #define HAVE_LOG10F 1
3987 EOF
3988
3989         cat >> confdefs.h <<\EOF
3990 #define HAVE_LOGF 1
3991 EOF
3992
3993         cat >> confdefs.h <<\EOF
3994 #define HAVE_MODFF 1
3995 EOF
3996
3997         cat >> confdefs.h <<\EOF
3998 #define HAVE_POWF 1
3999 EOF
4000
4001         cat >> confdefs.h <<\EOF
4002 #define HAVE_SINCOS 1
4003 EOF
4004
4005         cat >> confdefs.h <<\EOF
4006 #define HAVE_SINCOSF 1
4007 EOF
4008
4009         cat >> confdefs.h <<\EOF
4010 #define HAVE_SINF 1
4011 EOF
4012
4013         cat >> confdefs.h <<\EOF
4014 #define HAVE_SINHF 1
4015 EOF
4016
4017         cat >> confdefs.h <<\EOF
4018 #define HAVE_SQRTF 1
4019 EOF
4020
4021         cat >> confdefs.h <<\EOF
4022 #define HAVE_TANF 1
4023 EOF
4024
4025         cat >> confdefs.h <<\EOF
4026 #define HAVE_TANHF 1
4027 EOF
4028
4029
4030         # At some point, we should differentiate between architectures
4031         # like x86, which have long double versions, and alpha/powerpc/etc.,
4032         # which don't. For the time being, punt.
4033         if test x"long_double_math_on_this_cpu" = x"yes"; then
4034           cat >> confdefs.h <<\EOF
4035 #define HAVE_ACOSL 1
4036 EOF
4037
4038           cat >> confdefs.h <<\EOF
4039 #define HAVE_ASINL 1
4040 EOF
4041
4042           cat >> confdefs.h <<\EOF
4043 #define HAVE_ATAN2L 1
4044 EOF
4045
4046           cat >> confdefs.h <<\EOF
4047 #define HAVE_ATANL 1
4048 EOF
4049
4050           cat >> confdefs.h <<\EOF
4051 #define HAVE_CEILL 1
4052 EOF
4053
4054           cat >> confdefs.h <<\EOF
4055 #define HAVE_COPYSIGNL 1
4056 EOF
4057
4058           cat >> confdefs.h <<\EOF
4059 #define HAVE_COSL 1
4060 EOF
4061
4062           cat >> confdefs.h <<\EOF
4063 #define HAVE_COSHL 1
4064 EOF
4065
4066           cat >> confdefs.h <<\EOF
4067 #define HAVE_EXPL 1
4068 EOF
4069
4070           cat >> confdefs.h <<\EOF
4071 #define HAVE_FABSL 1
4072 EOF
4073
4074           cat >> confdefs.h <<\EOF
4075 #define HAVE_FINITEL 1
4076 EOF
4077
4078           cat >> confdefs.h <<\EOF
4079 #define HAVE_FLOORL 1
4080 EOF
4081
4082           cat >> confdefs.h <<\EOF
4083 #define HAVE_FMODL 1
4084 EOF
4085
4086           cat >> confdefs.h <<\EOF
4087 #define HAVE_FREXPL 1
4088 EOF
4089
4090           cat >> confdefs.h <<\EOF
4091 #define HAVE_ISINFL 1
4092 EOF
4093
4094           cat >> confdefs.h <<\EOF
4095 #define HAVE_ISNANL 1
4096 EOF
4097
4098           cat >> confdefs.h <<\EOF
4099 #define HAVE_LDEXPL 1
4100 EOF
4101
4102           cat >> confdefs.h <<\EOF
4103 #define HAVE_LOG10L 1
4104 EOF
4105
4106           cat >> confdefs.h <<\EOF
4107 #define HAVE_LOGL 1
4108 EOF
4109
4110           cat >> confdefs.h <<\EOF
4111 #define HAVE_MODFL 1
4112 EOF
4113
4114           cat >> confdefs.h <<\EOF
4115 #define HAVE_POWL 1
4116 EOF
4117
4118           cat >> confdefs.h <<\EOF
4119 #define HAVE_SINCOSL 1
4120 EOF
4121
4122           cat >> confdefs.h <<\EOF
4123 #define HAVE_SINL 1
4124 EOF
4125
4126           cat >> confdefs.h <<\EOF
4127 #define HAVE_SINHL 1
4128 EOF
4129
4130           cat >> confdefs.h <<\EOF
4131 #define HAVE_SQRTL 1
4132 EOF
4133
4134           cat >> confdefs.h <<\EOF
4135 #define HAVE_TANL 1
4136 EOF
4137
4138           cat >> confdefs.h <<\EOF
4139 #define HAVE_TANHL 1
4140 EOF
4141
4142         fi
4143         
4144     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4145 echo "configure:4146: checking for main in -lm" >&5
4146 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4147 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4148   echo $ac_n "(cached) $ac_c" 1>&6
4149 else
4150   ac_save_LIBS="$LIBS"
4151 LIBS="-lm  $LIBS"
4152 cat > conftest.$ac_ext <<EOF
4153 #line 4154 "configure"
4154 #include "confdefs.h"
4155
4156 int main() {
4157 main()
4158 ; return 0; }
4159 EOF
4160 if { (eval echo configure:4161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4161   rm -rf conftest*
4162   eval "ac_cv_lib_$ac_lib_var=yes"
4163 else
4164   echo "configure: failed program was:" >&5
4165   cat conftest.$ac_ext >&5
4166   rm -rf conftest*
4167   eval "ac_cv_lib_$ac_lib_var=no"
4168 fi
4169 rm -f conftest*
4170 LIBS="$ac_save_LIBS"
4171
4172 fi
4173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4174   echo "$ac_t""yes" 1>&6
4175     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4176     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4177   cat >> confdefs.h <<EOF
4178 #define $ac_tr_lib 1
4179 EOF
4180
4181   LIBS="-lm $LIBS"
4182
4183 else
4184   echo "$ac_t""no" 1>&6
4185 fi
4186
4187   for ac_func in nan hypot hypotf copysignf
4188 do
4189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4190 echo "configure:4191: checking for $ac_func" >&5
4191 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4192   echo $ac_n "(cached) $ac_c" 1>&6
4193 else
4194   cat > conftest.$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4197 /* System header to define __stub macros and hopefully few prototypes,
4198     which can conflict with char $ac_func(); below.  */
4199 #include <assert.h>
4200 /* Override any gcc2 internal prototype to avoid an error.  */
4201 /* We use char because int might match the return type of a gcc2
4202     builtin and then its argument prototype would still apply.  */
4203 char $ac_func();
4204
4205 int main() {
4206
4207 /* The GNU C library defines this for functions which it implements
4208     to always fail with ENOSYS.  Some functions are actually named
4209     something starting with __ and the normal name is an alias.  */
4210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4211 choke me
4212 #else
4213 $ac_func();
4214 #endif
4215
4216 ; return 0; }
4217 EOF
4218 if { (eval echo configure:4219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4219   rm -rf conftest*
4220   eval "ac_cv_func_$ac_func=yes"
4221 else
4222   echo "configure: failed program was:" >&5
4223   cat conftest.$ac_ext >&5
4224   rm -rf conftest*
4225   eval "ac_cv_func_$ac_func=no"
4226 fi
4227 rm -f conftest*
4228 fi
4229
4230 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4231   echo "$ac_t""yes" 1>&6
4232     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4233   cat >> confdefs.h <<EOF
4234 #define $ac_tr_func 1
4235 EOF
4236  
4237 else
4238   echo "$ac_t""no" 1>&6
4239 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4240 fi
4241 done
4242
4243
4244
4245           USE_COMPLEX_LONG_DOUBLE=no
4246   if test x$ac_cv_func_atan2l = x"yes" &&
4247      test x$ac_cv_func_copysignl = x"yes"; then
4248     USE_COMPLEX_LONG_DOUBLE=yes
4249     for ac_func in hypotl signbitl
4250 do
4251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4252 echo "configure:4253: checking for $ac_func" >&5
4253 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4254   echo $ac_n "(cached) $ac_c" 1>&6
4255 else
4256   cat > conftest.$ac_ext <<EOF
4257 #line 4258 "configure"
4258 #include "confdefs.h"
4259 /* System header to define __stub macros and hopefully few prototypes,
4260     which can conflict with char $ac_func(); below.  */
4261 #include <assert.h>
4262 /* Override any gcc2 internal prototype to avoid an error.  */
4263 /* We use char because int might match the return type of a gcc2
4264     builtin and then its argument prototype would still apply.  */
4265 char $ac_func();
4266
4267 int main() {
4268
4269 /* The GNU C library defines this for functions which it implements
4270     to always fail with ENOSYS.  Some functions are actually named
4271     something starting with __ and the normal name is an alias.  */
4272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4273 choke me
4274 #else
4275 $ac_func();
4276 #endif
4277
4278 ; return 0; }
4279 EOF
4280 if { (eval echo configure:4281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4281   rm -rf conftest*
4282   eval "ac_cv_func_$ac_func=yes"
4283 else
4284   echo "configure: failed program was:" >&5
4285   cat conftest.$ac_ext >&5
4286   rm -rf conftest*
4287   eval "ac_cv_func_$ac_func=no"
4288 fi
4289 rm -f conftest*
4290 fi
4291
4292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4293   echo "$ac_t""yes" 1>&6
4294     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4295   cat >> confdefs.h <<EOF
4296 #define $ac_tr_func 1
4297 EOF
4298  
4299 else
4300   echo "$ac_t""no" 1>&6
4301 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4302 fi
4303 done
4304
4305
4306   fi
4307
4308   
4309
4310         
4311
4312       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4313 echo "configure:4314: checking for mbstate_t" >&5
4314   cat > conftest.$ac_ext <<EOF
4315 #line 4316 "configure"
4316 #include "confdefs.h"
4317 #include <wchar.h>
4318 int main() {
4319 mbstate_t teststate;
4320 ; return 0; }
4321 EOF
4322 if { (eval echo configure:4323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4323   rm -rf conftest*
4324   have_mbstate_t=yes
4325 else
4326   echo "configure: failed program was:" >&5
4327   cat conftest.$ac_ext >&5
4328   rm -rf conftest*
4329   have_mbstate_t=no
4330 fi
4331 rm -f conftest*
4332   echo "$ac_t""$have_mbstate_t" 1>&6
4333   if test x"$have_mbstate_t" = xyes; then
4334     cat >> confdefs.h <<\EOF
4335 #define HAVE_MBSTATE_T 1
4336 EOF
4337
4338   fi
4339
4340     for ac_hdr in wchar.h
4341 do
4342 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4343 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4344 echo "configure:4345: checking for $ac_hdr" >&5
4345 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4346   echo $ac_n "(cached) $ac_c" 1>&6
4347 else
4348   cat > conftest.$ac_ext <<EOF
4349 #line 4350 "configure"
4350 #include "confdefs.h"
4351 #include <$ac_hdr>
4352 EOF
4353 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4354 { (eval echo configure:4355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4355 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4356 if test -z "$ac_err"; then
4357   rm -rf conftest*
4358   eval "ac_cv_header_$ac_safe=yes"
4359 else
4360   echo "$ac_err" >&5
4361   echo "configure: failed program was:" >&5
4362   cat conftest.$ac_ext >&5
4363   rm -rf conftest*
4364   eval "ac_cv_header_$ac_safe=no"
4365 fi
4366 rm -f conftest*
4367 fi
4368 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4369   echo "$ac_t""yes" 1>&6
4370     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4371   cat >> confdefs.h <<EOF
4372 #define $ac_tr_hdr 1
4373 EOF
4374  ac_has_wchar_h=yes
4375 else
4376   echo "$ac_t""no" 1>&6
4377 ac_has_wchar_h=no
4378 fi
4379 done
4380
4381   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4382 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4383 echo "configure:4384: checking for wctype.h" >&5
4384 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4385   echo $ac_n "(cached) $ac_c" 1>&6
4386 else
4387   cat > conftest.$ac_ext <<EOF
4388 #line 4389 "configure"
4389 #include "confdefs.h"
4390 #include <wctype.h>
4391 EOF
4392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4393 { (eval echo configure:4394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4395 if test -z "$ac_err"; then
4396   rm -rf conftest*
4397   eval "ac_cv_header_$ac_safe=yes"
4398 else
4399   echo "$ac_err" >&5
4400   echo "configure: failed program was:" >&5
4401   cat conftest.$ac_ext >&5
4402   rm -rf conftest*
4403   eval "ac_cv_header_$ac_safe=no"
4404 fi
4405 rm -f conftest*
4406 fi
4407 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4408   echo "$ac_t""yes" 1>&6
4409   ac_has_wctype_h=yes
4410 else
4411   echo "$ac_t""no" 1>&6
4412 ac_has_wctype_h=no
4413 fi
4414
4415   
4416     if test x"$ac_has_wchar_h" = xyes &&
4417      test x"$ac_has_wctype_h" = xyes &&
4418      test x"$enable_c_mbchar" != xno; then
4419       
4420             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4421 echo "configure:4422: checking for WCHAR_MIN and WCHAR_MAX" >&5
4422     cat > conftest.$ac_ext <<EOF
4423 #line 4424 "configure"
4424 #include "confdefs.h"
4425 #include <wchar.h>
4426 int main() {
4427 int i = WCHAR_MIN; int j = WCHAR_MAX;
4428 ; return 0; }
4429 EOF
4430 if { (eval echo configure:4431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4431   rm -rf conftest*
4432   has_wchar_minmax=yes
4433 else
4434   echo "configure: failed program was:" >&5
4435   cat conftest.$ac_ext >&5
4436   rm -rf conftest*
4437   has_wchar_minmax=no
4438 fi
4439 rm -f conftest*
4440     echo "$ac_t""$has_wchar_minmax" 1>&6
4441     
4442             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4443 echo "configure:4444: checking for WEOF" >&5
4444     cat > conftest.$ac_ext <<EOF
4445 #line 4446 "configure"
4446 #include "confdefs.h"
4447
4448       #include <wchar.h>
4449       #include <stddef.h>
4450 int main() {
4451 wint_t i = WEOF;
4452 ; return 0; }
4453 EOF
4454 if { (eval echo configure:4455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4455   rm -rf conftest*
4456   has_weof=yes
4457 else
4458   echo "configure: failed program was:" >&5
4459   cat conftest.$ac_ext >&5
4460   rm -rf conftest*
4461   has_weof=no
4462 fi
4463 rm -f conftest*
4464     echo "$ac_t""$has_weof" 1>&6
4465   
4466         ac_wfuncs=yes
4467     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4468 do
4469 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4470 echo "configure:4471: checking for $ac_func" >&5
4471 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4472   echo $ac_n "(cached) $ac_c" 1>&6
4473 else
4474   cat > conftest.$ac_ext <<EOF
4475 #line 4476 "configure"
4476 #include "confdefs.h"
4477 /* System header to define __stub macros and hopefully few prototypes,
4478     which can conflict with char $ac_func(); below.  */
4479 #include <assert.h>
4480 /* Override any gcc2 internal prototype to avoid an error.  */
4481 /* We use char because int might match the return type of a gcc2
4482     builtin and then its argument prototype would still apply.  */
4483 char $ac_func();
4484
4485 int main() {
4486
4487 /* The GNU C library defines this for functions which it implements
4488     to always fail with ENOSYS.  Some functions are actually named
4489     something starting with __ and the normal name is an alias.  */
4490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4491 choke me
4492 #else
4493 $ac_func();
4494 #endif
4495
4496 ; return 0; }
4497 EOF
4498 if { (eval echo configure:4499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4499   rm -rf conftest*
4500   eval "ac_cv_func_$ac_func=yes"
4501 else
4502   echo "configure: failed program was:" >&5
4503   cat conftest.$ac_ext >&5
4504   rm -rf conftest*
4505   eval "ac_cv_func_$ac_func=no"
4506 fi
4507 rm -f conftest*
4508 fi
4509
4510 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4511   echo "$ac_t""yes" 1>&6
4512     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4513   cat >> confdefs.h <<EOF
4514 #define $ac_tr_func 1
4515 EOF
4516  
4517 else
4518   echo "$ac_t""no" 1>&6
4519 \
4520     ac_wfuncs=no
4521 fi
4522 done
4523
4524   
4525         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4526     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4527     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4528     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4529     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4530     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4531 do
4532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4533 echo "configure:4534: checking for $ac_func" >&5
4534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4535   echo $ac_n "(cached) $ac_c" 1>&6
4536 else
4537   cat > conftest.$ac_ext <<EOF
4538 #line 4539 "configure"
4539 #include "confdefs.h"
4540 /* System header to define __stub macros and hopefully few prototypes,
4541     which can conflict with char $ac_func(); below.  */
4542 #include <assert.h>
4543 /* Override any gcc2 internal prototype to avoid an error.  */
4544 /* We use char because int might match the return type of a gcc2
4545     builtin and then its argument prototype would still apply.  */
4546 char $ac_func();
4547
4548 int main() {
4549
4550 /* The GNU C library defines this for functions which it implements
4551     to always fail with ENOSYS.  Some functions are actually named
4552     something starting with __ and the normal name is an alias.  */
4553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4554 choke me
4555 #else
4556 $ac_func();
4557 #endif
4558
4559 ; return 0; }
4560 EOF
4561 if { (eval echo configure:4562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4562   rm -rf conftest*
4563   eval "ac_cv_func_$ac_func=yes"
4564 else
4565   echo "configure: failed program was:" >&5
4566   cat conftest.$ac_ext >&5
4567   rm -rf conftest*
4568   eval "ac_cv_func_$ac_func=no"
4569 fi
4570 rm -f conftest*
4571 fi
4572
4573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4574   echo "$ac_t""yes" 1>&6
4575     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4576   cat >> confdefs.h <<EOF
4577 #define $ac_tr_func 1
4578 EOF
4579  
4580 else
4581   echo "$ac_t""no" 1>&6
4582 \
4583     ac_wfuncs=no
4584 fi
4585 done
4586
4587
4588     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4589 echo "configure:4590: checking for ISO C99 wchar_t support" >&5
4590     if test x"$has_weof" = xyes &&
4591        test x"$has_wchar_minmax" = xyes &&
4592        test x"$ac_wfuncs" = xyes; then
4593       ac_isoC99_wchar_t=yes
4594     else
4595       ac_isoC99_wchar_t=no
4596     fi
4597     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4598   
4599             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4600 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4601 echo "configure:4602: checking for iconv.h" >&5
4602 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4603   echo $ac_n "(cached) $ac_c" 1>&6
4604 else
4605   cat > conftest.$ac_ext <<EOF
4606 #line 4607 "configure"
4607 #include "confdefs.h"
4608 #include <iconv.h>
4609 EOF
4610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4611 { (eval echo configure:4612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4613 if test -z "$ac_err"; then
4614   rm -rf conftest*
4615   eval "ac_cv_header_$ac_safe=yes"
4616 else
4617   echo "$ac_err" >&5
4618   echo "configure: failed program was:" >&5
4619   cat conftest.$ac_ext >&5
4620   rm -rf conftest*
4621   eval "ac_cv_header_$ac_safe=no"
4622 fi
4623 rm -f conftest*
4624 fi
4625 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4626   echo "$ac_t""yes" 1>&6
4627   ac_has_iconv_h=yes
4628 else
4629   echo "$ac_t""no" 1>&6
4630 ac_has_iconv_h=no
4631 fi
4632
4633     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4634 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4635 echo "configure:4636: checking for langinfo.h" >&5
4636 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4637   echo $ac_n "(cached) $ac_c" 1>&6
4638 else
4639   cat > conftest.$ac_ext <<EOF
4640 #line 4641 "configure"
4641 #include "confdefs.h"
4642 #include <langinfo.h>
4643 EOF
4644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4645 { (eval echo configure:4646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4646 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4647 if test -z "$ac_err"; then
4648   rm -rf conftest*
4649   eval "ac_cv_header_$ac_safe=yes"
4650 else
4651   echo "$ac_err" >&5
4652   echo "configure: failed program was:" >&5
4653   cat conftest.$ac_ext >&5
4654   rm -rf conftest*
4655   eval "ac_cv_header_$ac_safe=no"
4656 fi
4657 rm -f conftest*
4658 fi
4659 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4660   echo "$ac_t""yes" 1>&6
4661   ac_has_langinfo_h=yes
4662 else
4663   echo "$ac_t""no" 1>&6
4664 ac_has_langinfo_h=no
4665 fi
4666
4667
4668         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4669 echo "configure:4670: checking for iconv in -liconv" >&5
4670 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4671 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4672   echo $ac_n "(cached) $ac_c" 1>&6
4673 else
4674   ac_save_LIBS="$LIBS"
4675 LIBS="-liconv  $LIBS"
4676 cat > conftest.$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4679 /* Override any gcc2 internal prototype to avoid an error.  */
4680 /* We use char because int might match the return type of a gcc2
4681     builtin and then its argument prototype would still apply.  */
4682 char iconv();
4683
4684 int main() {
4685 iconv()
4686 ; return 0; }
4687 EOF
4688 if { (eval echo configure:4689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4689   rm -rf conftest*
4690   eval "ac_cv_lib_$ac_lib_var=yes"
4691 else
4692   echo "configure: failed program was:" >&5
4693   cat conftest.$ac_ext >&5
4694   rm -rf conftest*
4695   eval "ac_cv_lib_$ac_lib_var=no"
4696 fi
4697 rm -f conftest*
4698 LIBS="$ac_save_LIBS"
4699
4700 fi
4701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4702   echo "$ac_t""yes" 1>&6
4703   libiconv="-liconv"
4704 else
4705   echo "$ac_t""no" 1>&6
4706 fi
4707
4708     ac_save_LIBS="$LIBS"
4709     LIBS="$LIBS $libiconv"
4710
4711     for ac_func in iconv_open iconv_close iconv nl_langinfo
4712 do
4713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4714 echo "configure:4715: checking for $ac_func" >&5
4715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4716   echo $ac_n "(cached) $ac_c" 1>&6
4717 else
4718   cat > conftest.$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4721 /* System header to define __stub macros and hopefully few prototypes,
4722     which can conflict with char $ac_func(); below.  */
4723 #include <assert.h>
4724 /* Override any gcc2 internal prototype to avoid an error.  */
4725 /* We use char because int might match the return type of a gcc2
4726     builtin and then its argument prototype would still apply.  */
4727 char $ac_func();
4728
4729 int main() {
4730
4731 /* The GNU C library defines this for functions which it implements
4732     to always fail with ENOSYS.  Some functions are actually named
4733     something starting with __ and the normal name is an alias.  */
4734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4735 choke me
4736 #else
4737 $ac_func();
4738 #endif
4739
4740 ; return 0; }
4741 EOF
4742 if { (eval echo configure:4743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4743   rm -rf conftest*
4744   eval "ac_cv_func_$ac_func=yes"
4745 else
4746   echo "configure: failed program was:" >&5
4747   cat conftest.$ac_ext >&5
4748   rm -rf conftest*
4749   eval "ac_cv_func_$ac_func=no"
4750 fi
4751 rm -f conftest*
4752 fi
4753
4754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4755   echo "$ac_t""yes" 1>&6
4756     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4757   cat >> confdefs.h <<EOF
4758 #define $ac_tr_func 1
4759 EOF
4760  \
4761     ac_XPG2funcs=yes
4762 else
4763   echo "$ac_t""no" 1>&6
4764 ac_XPG2funcs=no
4765 fi
4766 done
4767
4768   
4769     LIBS="$ac_save_LIBS"
4770
4771     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4772 echo "configure:4773: checking for XPG2 wchar_t support" >&5
4773     if test x"$ac_has_iconv_h" = xyes &&
4774        test x"$ac_has_langinfo_h" = xyes &&
4775        test x"$ac_XPG2funcs" = xyes; then
4776       ac_XPG2_wchar_t=yes
4777     else
4778       ac_XPG2_wchar_t=no
4779     fi
4780     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4781   
4782             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4783 echo "configure:4784: checking for enabled wchar_t specializations" >&5
4784     if test x"$ac_isoC99_wchar_t" = xyes &&
4785        test x"$ac_XPG2_wchar_t" = xyes; then
4786       cat >> confdefs.h <<\EOF
4787 #define _GLIBCPP_USE_WCHAR_T 1
4788 EOF
4789
4790       echo "$ac_t"""yes"" 1>&6
4791     else
4792       echo "$ac_t"""no"" 1>&6
4793     fi
4794   else
4795         echo "configure: warning: wchar_t support disabled." 1>&2
4796   fi
4797
4798         os_include_dir="config/os/gnu-linux"
4799         # GLIBCPP_CHECK_STDLIB_SUPPORT
4800         cat >> confdefs.h <<\EOF
4801 #define HAVE_STRTOF 1
4802 EOF
4803         
4804         cat >> confdefs.h <<\EOF
4805 #define HAVE_STRTOLD 1
4806 EOF
4807         
4808         # AC_FUNC_MMAP
4809         cat >> confdefs.h <<\EOF
4810 #define HAVE_MMAP 1
4811 EOF
4812
4813         ;;
4814     *)
4815         # We assume newlib.  This lets us hard-code the functions we know
4816         # we'll have.
4817         cat >> confdefs.h <<\EOF
4818 #define HAVE_FINITE 1
4819 EOF
4820
4821         cat >> confdefs.h <<\EOF
4822 #define HAVE_ISNAN 1
4823 EOF
4824
4825         cat >> confdefs.h <<\EOF
4826 #define HAVE_ISNANF 1
4827 EOF
4828
4829         cat >> confdefs.h <<\EOF
4830 #define HAVE_ISINF 1
4831 EOF
4832
4833         cat >> confdefs.h <<\EOF
4834 #define HAVE_ISINFF 1
4835 EOF
4836
4837
4838         os_include_dir="config/os/newlib"
4839
4840         # need to check for faster f versions of math functions, ie sinf?
4841         ;;
4842   esac
4843 else
4844
4845   # We are being configured natively. We can do more elaborate tests
4846   # that include AC_TRY_COMPILE now, as the linker is assumed to be
4847   # working.
4848   GLIBCPP_IS_CROSS_COMPILING=0
4849   CANADIAN=no
4850
4851   # Check for available headers.
4852   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
4853   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
4854 do
4855 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4857 echo "configure:4858: checking for $ac_hdr" >&5
4858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4859   echo $ac_n "(cached) $ac_c" 1>&6
4860 else
4861   cat > conftest.$ac_ext <<EOF
4862 #line 4863 "configure"
4863 #include "confdefs.h"
4864 #include <$ac_hdr>
4865 EOF
4866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4867 { (eval echo configure:4868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4869 if test -z "$ac_err"; then
4870   rm -rf conftest*
4871   eval "ac_cv_header_$ac_safe=yes"
4872 else
4873   echo "$ac_err" >&5
4874   echo "configure: failed program was:" >&5
4875   cat conftest.$ac_ext >&5
4876   rm -rf conftest*
4877   eval "ac_cv_header_$ac_safe=no"
4878 fi
4879 rm -f conftest*
4880 fi
4881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4882   echo "$ac_t""yes" 1>&6
4883     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4884   cat >> confdefs.h <<EOF
4885 #define $ac_tr_hdr 1
4886 EOF
4887  
4888 else
4889   echo "$ac_t""no" 1>&6
4890 fi
4891 done
4892
4893
4894   
4895   # All these tests are for C++; save the language and the compiler flags.
4896   # The CXXFLAGS thing is suspicious, but based on similar bits previously
4897   # found in GLIBCPP_CONFIGURE.
4898   
4899   ac_ext=C
4900 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4901 ac_cpp='$CXXCPP $CPPFLAGS'
4902 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4903 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4904 cross_compiling=$ac_cv_prog_cxx_cross
4905
4906   ac_test_CXXFLAGS="${CXXFLAGS+set}"
4907   ac_save_CXXFLAGS="$CXXFLAGS"
4908
4909   # Check for maintainer-mode bits.
4910   if test x"$USE_MAINTAINER_MODE" = xno; then
4911     WERROR=''
4912   else
4913     WERROR='-Werror'
4914   fi
4915
4916   # Check for -ffunction-sections -fdata-sections
4917   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
4918 echo "configure:4919: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
4919   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
4920   cat > conftest.$ac_ext <<EOF
4921 #line 4922 "configure"
4922 #include "confdefs.h"
4923
4924 int main() {
4925 int foo;
4926   
4927 ; return 0; }
4928 EOF
4929 if { (eval echo configure:4930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4930   rm -rf conftest*
4931   ac_fdsections=yes
4932 else
4933   echo "configure: failed program was:" >&5
4934   cat conftest.$ac_ext >&5
4935   rm -rf conftest*
4936   ac_fdsections=no
4937 fi
4938 rm -f conftest*
4939   if test "$ac_test_CXXFLAGS" = set; then
4940     CXXFLAGS="$ac_save_CXXFLAGS"
4941   else
4942     # this is the suspicious part
4943     CXXFLAGS=''
4944   fi
4945   if test x"$ac_fdsections" = x"yes" &&
4946      test x"$enable_debug" = x"no"; then
4947     SECTION_FLAGS='-ffunction-sections -fdata-sections'
4948   fi
4949   echo "$ac_t""$ac_fdsections" 1>&6
4950
4951   ac_ext=c
4952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4953 ac_cpp='$CPP $CPPFLAGS'
4954 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4955 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4956 cross_compiling=$ac_cv_prog_cc_cross
4957
4958   
4959   
4960
4961   
4962   # If we're not using GNU ld, then there's no point in even trying these
4963   # tests.  Check for that first.  We should have already tested for gld
4964   # by now (in libtool), but require it now just to be safe...
4965   SECTION_LDFLAGS=''
4966   OPT_LDFLAGS=''
4967   
4968
4969   # Set --gc-sections.
4970   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4971     # GNU ld it is!  Joy and bunny rabbits!
4972
4973     # All these tests are for C++; save the language and the compiler flags.
4974     # Need to do this so that g++ won't try to link in libstdc++
4975     ac_test_CFLAGS="${CFLAGS+set}"
4976     ac_save_CFLAGS="$CFLAGS"
4977     CFLAGS='-x c++  -Wl,--gc-sections'
4978
4979     # Check for -Wl,--gc-sections
4980     # XXX This test is broken at the moment, as symbols required for
4981     # linking are now in libsupc++ (not built yet.....). In addition, 
4982     # this test has cored on solaris in the past. In addition,
4983     # --gc-sections doesn't really work at the moment (keeps on discarding
4984     # used sections, first .eh_frame and now some of the glibc sections for
4985     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4986     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4987 echo "configure:4988: checking for ld that supports -Wl,--gc-sections" >&5
4988     if test "$cross_compiling" = yes; then
4989   ac_sectionLDflags=yes
4990 else
4991   cat > conftest.$ac_ext <<EOF
4992 #line 4993 "configure"
4993 #include "confdefs.h"
4994
4995      int main(void) 
4996      {
4997        try { throw 1; }
4998        catch (...) { };
4999        return 0;
5000      }
5001     
5002 EOF
5003 if { (eval echo configure:5004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5004 then
5005   ac_sectionLDflags=yes
5006 else
5007   echo "configure: failed program was:" >&5
5008   cat conftest.$ac_ext >&5
5009   rm -fr conftest*
5010   ac_sectionLFflags=no
5011 fi
5012 rm -fr conftest*
5013 fi
5014
5015     if test "$ac_test_CFLAGS" = set; then
5016       CFLAGS="$ac_save_CFLAGS"
5017     else
5018       # this is the suspicious part
5019       CFLAGS=''
5020     fi
5021     if test "$ac_sectionLDflags" = "yes"; then
5022       SECTION_LDFLAGS='-Wl,--gc-sections'
5023     fi
5024     echo "$ac_t""$ac_sectionLDflags" 1>&6
5025   fi
5026
5027   # Set linker optimization flags.
5028   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
5029      test x"$enable_debug" = x"no"; then
5030     OPT_LDFLAGS='-Wl,-O1'
5031   fi
5032
5033   
5034   
5035
5036   
5037       
5038   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
5039 echo "configure:5040: checking for __builtin_abs declaration" >&5
5040   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
5041     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
5042   echo $ac_n "(cached) $ac_c" 1>&6
5043 else
5044   
5045       
5046       ac_ext=C
5047 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5048 ac_cpp='$CXXCPP $CPPFLAGS'
5049 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5050 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5051 cross_compiling=$ac_cv_prog_cxx_cross
5052
5053       cat > conftest.$ac_ext <<EOF
5054 #line 5055 "configure"
5055 #include "confdefs.h"
5056 #include <math.h>
5057 int main() {
5058  __builtin_abs(0);
5059 ; return 0; }
5060 EOF
5061 if { (eval echo configure:5062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5062   rm -rf conftest*
5063   glibcpp_cv_func___builtin_abs_use=yes
5064 else
5065   echo "configure: failed program was:" >&5
5066   cat conftest.$ac_ext >&5
5067   rm -rf conftest*
5068   glibcpp_cv_func___builtin_abs_use=no
5069 fi
5070 rm -f conftest*
5071       ac_ext=c
5072 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5073 ac_cpp='$CPP $CPPFLAGS'
5074 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5075 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5076 cross_compiling=$ac_cv_prog_cc_cross
5077
5078     
5079 fi
5080
5081   fi
5082   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
5083   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
5084     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
5085 echo "configure:5086: checking for __builtin_abs linkage" >&5
5086     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
5087       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
5088   echo $ac_n "(cached) $ac_c" 1>&6
5089 else
5090   
5091         cat > conftest.$ac_ext <<EOF
5092 #line 5093 "configure"
5093 #include "confdefs.h"
5094 #include <math.h>
5095 int main() {
5096  __builtin_abs(0);
5097 ; return 0; }
5098 EOF
5099 if { (eval echo configure:5100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5100   rm -rf conftest*
5101   glibcpp_cv_func___builtin_abs_link=yes
5102 else
5103   echo "configure: failed program was:" >&5
5104   cat conftest.$ac_ext >&5
5105   rm -rf conftest*
5106   glibcpp_cv_func___builtin_abs_link=no
5107 fi
5108 rm -f conftest*
5109       
5110 fi
5111
5112     fi
5113     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
5114     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
5115       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5116       cat >> confdefs.h <<EOF
5117 #define ${ac_tr_func} 1
5118 EOF
5119
5120     fi
5121   fi
5122
5123   
5124   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
5125 echo "configure:5126: checking for __builtin_fabsf declaration" >&5
5126   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
5127     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
5128   echo $ac_n "(cached) $ac_c" 1>&6
5129 else
5130   
5131       
5132       ac_ext=C
5133 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5134 ac_cpp='$CXXCPP $CPPFLAGS'
5135 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5136 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5137 cross_compiling=$ac_cv_prog_cxx_cross
5138
5139       cat > conftest.$ac_ext <<EOF
5140 #line 5141 "configure"
5141 #include "confdefs.h"
5142 #include <math.h>
5143 int main() {
5144  __builtin_fabsf(0);
5145 ; return 0; }
5146 EOF
5147 if { (eval echo configure:5148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5148   rm -rf conftest*
5149   glibcpp_cv_func___builtin_fabsf_use=yes
5150 else
5151   echo "configure: failed program was:" >&5
5152   cat conftest.$ac_ext >&5
5153   rm -rf conftest*
5154   glibcpp_cv_func___builtin_fabsf_use=no
5155 fi
5156 rm -f conftest*
5157       ac_ext=c
5158 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5159 ac_cpp='$CPP $CPPFLAGS'
5160 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5161 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5162 cross_compiling=$ac_cv_prog_cc_cross
5163
5164     
5165 fi
5166
5167   fi
5168   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
5169   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
5170     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
5171 echo "configure:5172: checking for __builtin_fabsf linkage" >&5
5172     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
5173       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
5174   echo $ac_n "(cached) $ac_c" 1>&6
5175 else
5176   
5177         cat > conftest.$ac_ext <<EOF
5178 #line 5179 "configure"
5179 #include "confdefs.h"
5180 #include <math.h>
5181 int main() {
5182  __builtin_fabsf(0);
5183 ; return 0; }
5184 EOF
5185 if { (eval echo configure:5186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5186   rm -rf conftest*
5187   glibcpp_cv_func___builtin_fabsf_link=yes
5188 else
5189   echo "configure: failed program was:" >&5
5190   cat conftest.$ac_ext >&5
5191   rm -rf conftest*
5192   glibcpp_cv_func___builtin_fabsf_link=no
5193 fi
5194 rm -f conftest*
5195       
5196 fi
5197
5198     fi
5199     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
5200     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
5201       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5202       cat >> confdefs.h <<EOF
5203 #define ${ac_tr_func} 1
5204 EOF
5205
5206     fi
5207   fi
5208
5209   
5210   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
5211 echo "configure:5212: checking for __builtin_fabs declaration" >&5
5212   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
5213     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
5214   echo $ac_n "(cached) $ac_c" 1>&6
5215 else
5216   
5217       
5218       ac_ext=C
5219 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5220 ac_cpp='$CXXCPP $CPPFLAGS'
5221 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5222 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5223 cross_compiling=$ac_cv_prog_cxx_cross
5224
5225       cat > conftest.$ac_ext <<EOF
5226 #line 5227 "configure"
5227 #include "confdefs.h"
5228 #include <math.h>
5229 int main() {
5230  __builtin_fabs(0);
5231 ; return 0; }
5232 EOF
5233 if { (eval echo configure:5234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5234   rm -rf conftest*
5235   glibcpp_cv_func___builtin_fabs_use=yes
5236 else
5237   echo "configure: failed program was:" >&5
5238   cat conftest.$ac_ext >&5
5239   rm -rf conftest*
5240   glibcpp_cv_func___builtin_fabs_use=no
5241 fi
5242 rm -f conftest*
5243       ac_ext=c
5244 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5245 ac_cpp='$CPP $CPPFLAGS'
5246 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5247 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5248 cross_compiling=$ac_cv_prog_cc_cross
5249
5250     
5251 fi
5252
5253   fi
5254   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
5255   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
5256     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
5257 echo "configure:5258: checking for __builtin_fabs linkage" >&5
5258     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
5259       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
5260   echo $ac_n "(cached) $ac_c" 1>&6
5261 else
5262   
5263         cat > conftest.$ac_ext <<EOF
5264 #line 5265 "configure"
5265 #include "confdefs.h"
5266 #include <math.h>
5267 int main() {
5268  __builtin_fabs(0);
5269 ; return 0; }
5270 EOF
5271 if { (eval echo configure:5272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5272   rm -rf conftest*
5273   glibcpp_cv_func___builtin_fabs_link=yes
5274 else
5275   echo "configure: failed program was:" >&5
5276   cat conftest.$ac_ext >&5
5277   rm -rf conftest*
5278   glibcpp_cv_func___builtin_fabs_link=no
5279 fi
5280 rm -f conftest*
5281       
5282 fi
5283
5284     fi
5285     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
5286     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
5287       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5288       cat >> confdefs.h <<EOF
5289 #define ${ac_tr_func} 1
5290 EOF
5291
5292     fi
5293   fi
5294
5295   
5296   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
5297 echo "configure:5298: checking for __builtin_fabsl declaration" >&5
5298   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
5299     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
5300   echo $ac_n "(cached) $ac_c" 1>&6
5301 else
5302   
5303       
5304       ac_ext=C
5305 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5306 ac_cpp='$CXXCPP $CPPFLAGS'
5307 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5308 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5309 cross_compiling=$ac_cv_prog_cxx_cross
5310
5311       cat > conftest.$ac_ext <<EOF
5312 #line 5313 "configure"
5313 #include "confdefs.h"
5314 #include <math.h>
5315 int main() {
5316  __builtin_fabsl(0);
5317 ; return 0; }
5318 EOF
5319 if { (eval echo configure:5320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5320   rm -rf conftest*
5321   glibcpp_cv_func___builtin_fabsl_use=yes
5322 else
5323   echo "configure: failed program was:" >&5
5324   cat conftest.$ac_ext >&5
5325   rm -rf conftest*
5326   glibcpp_cv_func___builtin_fabsl_use=no
5327 fi
5328 rm -f conftest*
5329       ac_ext=c
5330 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5331 ac_cpp='$CPP $CPPFLAGS'
5332 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5333 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5334 cross_compiling=$ac_cv_prog_cc_cross
5335
5336     
5337 fi
5338
5339   fi
5340   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
5341   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
5342     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
5343 echo "configure:5344: checking for __builtin_fabsl linkage" >&5
5344     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
5345       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
5346   echo $ac_n "(cached) $ac_c" 1>&6
5347 else
5348   
5349         cat > conftest.$ac_ext <<EOF
5350 #line 5351 "configure"
5351 #include "confdefs.h"
5352 #include <math.h>
5353 int main() {
5354  __builtin_fabsl(0);
5355 ; return 0; }
5356 EOF
5357 if { (eval echo configure:5358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5358   rm -rf conftest*
5359   glibcpp_cv_func___builtin_fabsl_link=yes
5360 else
5361   echo "configure: failed program was:" >&5
5362   cat conftest.$ac_ext >&5
5363   rm -rf conftest*
5364   glibcpp_cv_func___builtin_fabsl_link=no
5365 fi
5366 rm -f conftest*
5367       
5368 fi
5369
5370     fi
5371     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
5372     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
5373       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5374       cat >> confdefs.h <<EOF
5375 #define ${ac_tr_func} 1
5376 EOF
5377
5378     fi
5379   fi
5380
5381   
5382   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
5383 echo "configure:5384: checking for __builtin_labs declaration" >&5
5384   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
5385     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
5386   echo $ac_n "(cached) $ac_c" 1>&6
5387 else
5388   
5389       
5390       ac_ext=C
5391 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5392 ac_cpp='$CXXCPP $CPPFLAGS'
5393 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5394 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5395 cross_compiling=$ac_cv_prog_cxx_cross
5396
5397       cat > conftest.$ac_ext <<EOF
5398 #line 5399 "configure"
5399 #include "confdefs.h"
5400 #include <math.h>
5401 int main() {
5402  __builtin_labs(0);
5403 ; return 0; }
5404 EOF
5405 if { (eval echo configure:5406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5406   rm -rf conftest*
5407   glibcpp_cv_func___builtin_labs_use=yes
5408 else
5409   echo "configure: failed program was:" >&5
5410   cat conftest.$ac_ext >&5
5411   rm -rf conftest*
5412   glibcpp_cv_func___builtin_labs_use=no
5413 fi
5414 rm -f conftest*
5415       ac_ext=c
5416 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5417 ac_cpp='$CPP $CPPFLAGS'
5418 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5419 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5420 cross_compiling=$ac_cv_prog_cc_cross
5421
5422     
5423 fi
5424
5425   fi
5426   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
5427   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
5428     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
5429 echo "configure:5430: checking for __builtin_labs linkage" >&5
5430     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
5431       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
5432   echo $ac_n "(cached) $ac_c" 1>&6
5433 else
5434   
5435         cat > conftest.$ac_ext <<EOF
5436 #line 5437 "configure"
5437 #include "confdefs.h"
5438 #include <math.h>
5439 int main() {
5440  __builtin_labs(0);
5441 ; return 0; }
5442 EOF
5443 if { (eval echo configure:5444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5444   rm -rf conftest*
5445   glibcpp_cv_func___builtin_labs_link=yes
5446 else
5447   echo "configure: failed program was:" >&5
5448   cat conftest.$ac_ext >&5
5449   rm -rf conftest*
5450   glibcpp_cv_func___builtin_labs_link=no
5451 fi
5452 rm -f conftest*
5453       
5454 fi
5455
5456     fi
5457     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5458     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5459       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5460       cat >> confdefs.h <<EOF
5461 #define ${ac_tr_func} 1
5462 EOF
5463
5464     fi
5465   fi
5466
5467
5468   
5469   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5470 echo "configure:5471: checking for __builtin_sqrtf declaration" >&5
5471   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5472     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_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_sqrtf(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_sqrtf_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_sqrtf_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_sqrtf_use" 1>&6
5514   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5515     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5516 echo "configure:5517: checking for __builtin_sqrtf linkage" >&5
5517     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5518       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_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_sqrtf(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_sqrtf_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_sqrtf_link=no
5538 fi
5539 rm -f conftest*
5540       
5541 fi
5542
5543     fi
5544     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5545     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5546       ac_tr_func=HAVE_`echo __builtin_sqrtf | 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_fsqrt declaration""... $ac_c" 1>&6
5556 echo "configure:5557: checking for __builtin_fsqrt declaration" >&5
5557   if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5558     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_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_fsqrt(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_fsqrt_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_fsqrt_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_fsqrt_use" 1>&6
5600   if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5601     echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5602 echo "configure:5603: checking for __builtin_fsqrt linkage" >&5
5603     if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5604       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_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_fsqrt(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_fsqrt_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_fsqrt_link=no
5624 fi
5625 rm -f conftest*
5626       
5627 fi
5628
5629     fi
5630     echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5631     if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5632       ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5633       cat >> confdefs.h <<EOF
5634 #define ${ac_tr_func} 1
5635 EOF
5636
5637     fi
5638   fi
5639
5640   
5641   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5642 echo "configure:5643: checking for __builtin_sqrtl declaration" >&5
5643   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5644     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5645   echo $ac_n "(cached) $ac_c" 1>&6
5646 else
5647   
5648       
5649       ac_ext=C
5650 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5651 ac_cpp='$CXXCPP $CPPFLAGS'
5652 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5653 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5654 cross_compiling=$ac_cv_prog_cxx_cross
5655
5656       cat > conftest.$ac_ext <<EOF
5657 #line 5658 "configure"
5658 #include "confdefs.h"
5659 #include <math.h>
5660 int main() {
5661  __builtin_sqrtl(0);
5662 ; return 0; }
5663 EOF
5664 if { (eval echo configure:5665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5665   rm -rf conftest*
5666   glibcpp_cv_func___builtin_sqrtl_use=yes
5667 else
5668   echo "configure: failed program was:" >&5
5669   cat conftest.$ac_ext >&5
5670   rm -rf conftest*
5671   glibcpp_cv_func___builtin_sqrtl_use=no
5672 fi
5673 rm -f conftest*
5674       ac_ext=c
5675 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5676 ac_cpp='$CPP $CPPFLAGS'
5677 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5678 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5679 cross_compiling=$ac_cv_prog_cc_cross
5680
5681     
5682 fi
5683
5684   fi
5685   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
5686   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5687     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5688 echo "configure:5689: checking for __builtin_sqrtl linkage" >&5
5689     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
5690       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
5691   echo $ac_n "(cached) $ac_c" 1>&6
5692 else
5693   
5694         cat > conftest.$ac_ext <<EOF
5695 #line 5696 "configure"
5696 #include "confdefs.h"
5697 #include <math.h>
5698 int main() {
5699  __builtin_sqrtl(0);
5700 ; return 0; }
5701 EOF
5702 if { (eval echo configure:5703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5703   rm -rf conftest*
5704   glibcpp_cv_func___builtin_sqrtl_link=yes
5705 else
5706   echo "configure: failed program was:" >&5
5707   cat conftest.$ac_ext >&5
5708   rm -rf conftest*
5709   glibcpp_cv_func___builtin_sqrtl_link=no
5710 fi
5711 rm -f conftest*
5712       
5713 fi
5714
5715     fi
5716     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
5717     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
5718       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5719       cat >> confdefs.h <<EOF
5720 #define ${ac_tr_func} 1
5721 EOF
5722
5723     fi
5724   fi
5725
5726
5727   
5728   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
5729 echo "configure:5730: checking for __builtin_sinf declaration" >&5
5730   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
5731     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_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_sinf(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_sinf_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_sinf_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_sinf_use" 1>&6
5773   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
5774     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
5775 echo "configure:5776: checking for __builtin_sinf linkage" >&5
5776     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
5777       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_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_sinf(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_sinf_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_sinf_link=no
5797 fi
5798 rm -f conftest*
5799       
5800 fi
5801
5802     fi
5803     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
5804     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
5805       ac_tr_func=HAVE_`echo __builtin_sinf | 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_sin declaration""... $ac_c" 1>&6
5815 echo "configure:5816: checking for __builtin_sin declaration" >&5
5816   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
5817     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_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_sin(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_sin_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_sin_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_sin_use" 1>&6
5859   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
5860     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
5861 echo "configure:5862: checking for __builtin_sin linkage" >&5
5862     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
5863       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_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_sin(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_sin_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_sin_link=no
5883 fi
5884 rm -f conftest*
5885       
5886 fi
5887
5888     fi
5889     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
5890     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
5891       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5892       cat >> confdefs.h <<EOF
5893 #define ${ac_tr_func} 1
5894 EOF
5895
5896     fi
5897   fi
5898
5899   
5900   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
5901 echo "configure:5902: checking for __builtin_sinl declaration" >&5
5902   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
5903     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
5904   echo $ac_n "(cached) $ac_c" 1>&6
5905 else
5906   
5907       
5908       ac_ext=C
5909 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5910 ac_cpp='$CXXCPP $CPPFLAGS'
5911 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5912 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5913 cross_compiling=$ac_cv_prog_cxx_cross
5914
5915       cat > conftest.$ac_ext <<EOF
5916 #line 5917 "configure"
5917 #include "confdefs.h"
5918 #include <math.h>
5919 int main() {
5920  __builtin_sinl(0);
5921 ; return 0; }
5922 EOF
5923 if { (eval echo configure:5924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5924   rm -rf conftest*
5925   glibcpp_cv_func___builtin_sinl_use=yes
5926 else
5927   echo "configure: failed program was:" >&5
5928   cat conftest.$ac_ext >&5
5929   rm -rf conftest*
5930   glibcpp_cv_func___builtin_sinl_use=no
5931 fi
5932 rm -f conftest*
5933       ac_ext=c
5934 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5935 ac_cpp='$CPP $CPPFLAGS'
5936 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5937 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5938 cross_compiling=$ac_cv_prog_cc_cross
5939
5940     
5941 fi
5942
5943   fi
5944   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
5945   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
5946     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
5947 echo "configure:5948: checking for __builtin_sinl linkage" >&5
5948     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
5949       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
5950   echo $ac_n "(cached) $ac_c" 1>&6
5951 else
5952   
5953         cat > conftest.$ac_ext <<EOF
5954 #line 5955 "configure"
5955 #include "confdefs.h"
5956 #include <math.h>
5957 int main() {
5958  __builtin_sinl(0);
5959 ; return 0; }
5960 EOF
5961 if { (eval echo configure:5962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5962   rm -rf conftest*
5963   glibcpp_cv_func___builtin_sinl_link=yes
5964 else
5965   echo "configure: failed program was:" >&5
5966   cat conftest.$ac_ext >&5
5967   rm -rf conftest*
5968   glibcpp_cv_func___builtin_sinl_link=no
5969 fi
5970 rm -f conftest*
5971       
5972 fi
5973
5974     fi
5975     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
5976     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
5977       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5978       cat >> confdefs.h <<EOF
5979 #define ${ac_tr_func} 1
5980 EOF
5981
5982     fi
5983   fi
5984
5985
5986   
5987   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
5988 echo "configure:5989: checking for __builtin_cosf declaration" >&5
5989   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
5990     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_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_cosf(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_cosf_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_cosf_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_cosf_use" 1>&6
6032   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
6033     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
6034 echo "configure:6035: checking for __builtin_cosf linkage" >&5
6035     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
6036       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_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_cosf(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_cosf_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_cosf_link=no
6056 fi
6057 rm -f conftest*
6058       
6059 fi
6060
6061     fi
6062     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
6063     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
6064       ac_tr_func=HAVE_`echo __builtin_cosf | 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_cos declaration""... $ac_c" 1>&6
6074 echo "configure:6075: checking for __builtin_cos declaration" >&5
6075   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
6076     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_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_cos(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_cos_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_cos_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_cos_use" 1>&6
6118   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
6119     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
6120 echo "configure:6121: checking for __builtin_cos linkage" >&5
6121     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
6122       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_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_cos(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_cos_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_cos_link=no
6142 fi
6143 rm -f conftest*
6144       
6145 fi
6146
6147     fi
6148     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
6149     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
6150       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6151       cat >> confdefs.h <<EOF
6152 #define ${ac_tr_func} 1
6153 EOF
6154
6155     fi
6156   fi
6157
6158   
6159   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
6160 echo "configure:6161: checking for __builtin_cosl declaration" >&5
6161   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
6162     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
6163   echo $ac_n "(cached) $ac_c" 1>&6
6164 else
6165   
6166       
6167       ac_ext=C
6168 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6169 ac_cpp='$CXXCPP $CPPFLAGS'
6170 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6171 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6172 cross_compiling=$ac_cv_prog_cxx_cross
6173
6174       cat > conftest.$ac_ext <<EOF
6175 #line 6176 "configure"
6176 #include "confdefs.h"
6177 #include <math.h>
6178 int main() {
6179  __builtin_cosl(0);
6180 ; return 0; }
6181 EOF
6182 if { (eval echo configure:6183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6183   rm -rf conftest*
6184   glibcpp_cv_func___builtin_cosl_use=yes
6185 else
6186   echo "configure: failed program was:" >&5
6187   cat conftest.$ac_ext >&5
6188   rm -rf conftest*
6189   glibcpp_cv_func___builtin_cosl_use=no
6190 fi
6191 rm -f conftest*
6192       ac_ext=c
6193 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6194 ac_cpp='$CPP $CPPFLAGS'
6195 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6196 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6197 cross_compiling=$ac_cv_prog_cc_cross
6198
6199     
6200 fi
6201
6202   fi
6203   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
6204   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
6205     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
6206 echo "configure:6207: checking for __builtin_cosl linkage" >&5
6207     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
6208       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
6209   echo $ac_n "(cached) $ac_c" 1>&6
6210 else
6211   
6212         cat > conftest.$ac_ext <<EOF
6213 #line 6214 "configure"
6214 #include "confdefs.h"
6215 #include <math.h>
6216 int main() {
6217  __builtin_cosl(0);
6218 ; return 0; }
6219 EOF
6220 if { (eval echo configure:6221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6221   rm -rf conftest*
6222   glibcpp_cv_func___builtin_cosl_link=yes
6223 else
6224   echo "configure: failed program was:" >&5
6225   cat conftest.$ac_ext >&5
6226   rm -rf conftest*
6227   glibcpp_cv_func___builtin_cosl_link=no
6228 fi
6229 rm -f conftest*
6230       
6231 fi
6232
6233     fi
6234     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
6235     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
6236       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6237       cat >> confdefs.h <<EOF
6238 #define ${ac_tr_func} 1
6239 EOF
6240
6241     fi
6242   fi
6243
6244
6245               dummyvar=no
6246   if test x$dummyvar = x"yes"; then
6247     cat >> confdefs.h <<\EOF
6248 #define HAVE___BUILTIN_ABS 1
6249 EOF
6250
6251     cat >> confdefs.h <<\EOF
6252 #define HAVE___BUILTIN_LABS 1
6253 EOF
6254
6255     cat >> confdefs.h <<\EOF
6256 #define HAVE___BUILTIN_COS 1
6257 EOF
6258
6259     cat >> confdefs.h <<\EOF
6260 #define HAVE___BUILTIN_COSF 1
6261 EOF
6262
6263     cat >> confdefs.h <<\EOF
6264 #define HAVE___BUILTIN_COSL 1
6265 EOF
6266
6267     cat >> confdefs.h <<\EOF
6268 #define HAVE___BUILTIN_FABS 1
6269 EOF
6270
6271     cat >> confdefs.h <<\EOF
6272 #define HAVE___BUILTIN_FABSF 1
6273 EOF
6274
6275     cat >> confdefs.h <<\EOF
6276 #define HAVE___BUILTIN_FABSL 1
6277 EOF
6278
6279     cat >> confdefs.h <<\EOF
6280 #define HAVE___BUILTIN_SIN 1
6281 EOF
6282
6283     cat >> confdefs.h <<\EOF
6284 #define HAVE___BUILTIN_SINF 1
6285 EOF
6286
6287     cat >> confdefs.h <<\EOF
6288 #define HAVE___BUILTIN_SINL 1
6289 EOF
6290
6291     cat >> confdefs.h <<\EOF
6292 #define HAVE___BUILTIN_FSQRT 1
6293 EOF
6294
6295     cat >> confdefs.h <<\EOF
6296 #define HAVE___BUILTIN_SQRTF 1
6297 EOF
6298
6299     cat >> confdefs.h <<\EOF
6300 #define HAVE___BUILTIN_SQRTL 1
6301 EOF
6302
6303   fi
6304
6305   
6306   ac_test_CXXFLAGS="${CXXFLAGS+set}"
6307   ac_save_CXXFLAGS="$CXXFLAGS"
6308   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
6309
6310     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
6311 echo "configure:6312: checking for sin in -lm" >&5
6312 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
6313 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6314   echo $ac_n "(cached) $ac_c" 1>&6
6315 else
6316   ac_save_LIBS="$LIBS"
6317 LIBS="-lm  $LIBS"
6318 cat > conftest.$ac_ext <<EOF
6319 #line 6320 "configure"
6320 #include "confdefs.h"
6321 /* Override any gcc2 internal prototype to avoid an error.  */
6322 /* We use char because int might match the return type of a gcc2
6323     builtin and then its argument prototype would still apply.  */
6324 char sin();
6325
6326 int main() {
6327 sin()
6328 ; return 0; }
6329 EOF
6330 if { (eval echo configure:6331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6331   rm -rf conftest*
6332   eval "ac_cv_lib_$ac_lib_var=yes"
6333 else
6334   echo "configure: failed program was:" >&5
6335   cat conftest.$ac_ext >&5
6336   rm -rf conftest*
6337   eval "ac_cv_lib_$ac_lib_var=no"
6338 fi
6339 rm -f conftest*
6340 LIBS="$ac_save_LIBS"
6341
6342 fi
6343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6344   echo "$ac_t""yes" 1>&6
6345   libm="-lm"
6346 else
6347   echo "$ac_t""no" 1>&6
6348 fi
6349
6350   ac_save_LIBS="$LIBS"
6351   LIBS="$LIBS $libm"
6352
6353     
6354   
6355   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
6356 echo "configure:6357: checking for isinf declaration" >&5
6357   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
6358     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
6359   echo $ac_n "(cached) $ac_c" 1>&6
6360 else
6361   
6362       
6363       ac_ext=C
6364 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6365 ac_cpp='$CXXCPP $CPPFLAGS'
6366 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6367 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6368 cross_compiling=$ac_cv_prog_cxx_cross
6369
6370       cat > conftest.$ac_ext <<EOF
6371 #line 6372 "configure"
6372 #include "confdefs.h"
6373 #include <math.h>
6374                       #ifdef HAVE_IEEEFP_H
6375                       #include <ieeefp.h>
6376                       #endif
6377                      
6378 int main() {
6379  isinf(0);
6380 ; return 0; }
6381 EOF
6382 if { (eval echo configure:6383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6383   rm -rf conftest*
6384   glibcpp_cv_func_isinf_use=yes
6385 else
6386   echo "configure: failed program was:" >&5
6387   cat conftest.$ac_ext >&5
6388   rm -rf conftest*
6389   glibcpp_cv_func_isinf_use=no
6390 fi
6391 rm -f conftest*
6392       ac_ext=c
6393 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6394 ac_cpp='$CPP $CPPFLAGS'
6395 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6396 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6397 cross_compiling=$ac_cv_prog_cc_cross
6398
6399     
6400 fi
6401
6402   fi
6403   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
6404
6405   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
6406     for ac_func in isinf
6407 do
6408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6409 echo "configure:6410: checking for $ac_func" >&5
6410 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6411   echo $ac_n "(cached) $ac_c" 1>&6
6412 else
6413   cat > conftest.$ac_ext <<EOF
6414 #line 6415 "configure"
6415 #include "confdefs.h"
6416 /* System header to define __stub macros and hopefully few prototypes,
6417     which can conflict with char $ac_func(); below.  */
6418 #include <assert.h>
6419 /* Override any gcc2 internal prototype to avoid an error.  */
6420 /* We use char because int might match the return type of a gcc2
6421     builtin and then its argument prototype would still apply.  */
6422 char $ac_func();
6423
6424 int main() {
6425
6426 /* The GNU C library defines this for functions which it implements
6427     to always fail with ENOSYS.  Some functions are actually named
6428     something starting with __ and the normal name is an alias.  */
6429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6430 choke me
6431 #else
6432 $ac_func();
6433 #endif
6434
6435 ; return 0; }
6436 EOF
6437 if { (eval echo configure:6438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6438   rm -rf conftest*
6439   eval "ac_cv_func_$ac_func=yes"
6440 else
6441   echo "configure: failed program was:" >&5
6442   cat conftest.$ac_ext >&5
6443   rm -rf conftest*
6444   eval "ac_cv_func_$ac_func=no"
6445 fi
6446 rm -f conftest*
6447 fi
6448
6449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6450   echo "$ac_t""yes" 1>&6
6451     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6452   cat >> confdefs.h <<EOF
6453 #define $ac_tr_func 1
6454 EOF
6455  
6456 else
6457   echo "$ac_t""no" 1>&6
6458 fi
6459 done
6460     
6461   else
6462     
6463   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6464 echo "configure:6465: checking for _isinf declaration" >&5
6465   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6466     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6467   echo $ac_n "(cached) $ac_c" 1>&6
6468 else
6469   
6470       
6471       ac_ext=C
6472 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6473 ac_cpp='$CXXCPP $CPPFLAGS'
6474 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6475 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6476 cross_compiling=$ac_cv_prog_cxx_cross
6477
6478       cat > conftest.$ac_ext <<EOF
6479 #line 6480 "configure"
6480 #include "confdefs.h"
6481 #include <math.h>
6482                       #ifdef HAVE_IEEEFP_H
6483                       #include <ieeefp.h>
6484                       #endif
6485                      
6486 int main() {
6487  _isinf(0);
6488 ; return 0; }
6489 EOF
6490 if { (eval echo configure:6491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6491   rm -rf conftest*
6492   glibcpp_cv_func__isinf_use=yes
6493 else
6494   echo "configure: failed program was:" >&5
6495   cat conftest.$ac_ext >&5
6496   rm -rf conftest*
6497   glibcpp_cv_func__isinf_use=no
6498 fi
6499 rm -f conftest*
6500       ac_ext=c
6501 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6502 ac_cpp='$CPP $CPPFLAGS'
6503 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6504 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6505 cross_compiling=$ac_cv_prog_cc_cross
6506
6507     
6508 fi
6509
6510   fi
6511   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6512
6513     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6514       for ac_func in _isinf
6515 do
6516 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6517 echo "configure:6518: checking for $ac_func" >&5
6518 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6519   echo $ac_n "(cached) $ac_c" 1>&6
6520 else
6521   cat > conftest.$ac_ext <<EOF
6522 #line 6523 "configure"
6523 #include "confdefs.h"
6524 /* System header to define __stub macros and hopefully few prototypes,
6525     which can conflict with char $ac_func(); below.  */
6526 #include <assert.h>
6527 /* Override any gcc2 internal prototype to avoid an error.  */
6528 /* We use char because int might match the return type of a gcc2
6529     builtin and then its argument prototype would still apply.  */
6530 char $ac_func();
6531
6532 int main() {
6533
6534 /* The GNU C library defines this for functions which it implements
6535     to always fail with ENOSYS.  Some functions are actually named
6536     something starting with __ and the normal name is an alias.  */
6537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6538 choke me
6539 #else
6540 $ac_func();
6541 #endif
6542
6543 ; return 0; }
6544 EOF
6545 if { (eval echo configure:6546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6546   rm -rf conftest*
6547   eval "ac_cv_func_$ac_func=yes"
6548 else
6549   echo "configure: failed program was:" >&5
6550   cat conftest.$ac_ext >&5
6551   rm -rf conftest*
6552   eval "ac_cv_func_$ac_func=no"
6553 fi
6554 rm -f conftest*
6555 fi
6556
6557 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6558   echo "$ac_t""yes" 1>&6
6559     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6560   cat >> confdefs.h <<EOF
6561 #define $ac_tr_func 1
6562 EOF
6563  
6564 else
6565   echo "$ac_t""no" 1>&6
6566 fi
6567 done
6568     
6569     fi
6570   fi
6571
6572   
6573   
6574   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6575 echo "configure:6576: checking for isnan declaration" >&5
6576   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6577     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6578   echo $ac_n "(cached) $ac_c" 1>&6
6579 else
6580   
6581       
6582       ac_ext=C
6583 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6584 ac_cpp='$CXXCPP $CPPFLAGS'
6585 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6586 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6587 cross_compiling=$ac_cv_prog_cxx_cross
6588
6589       cat > conftest.$ac_ext <<EOF
6590 #line 6591 "configure"
6591 #include "confdefs.h"
6592 #include <math.h>
6593                       #ifdef HAVE_IEEEFP_H
6594                       #include <ieeefp.h>
6595                       #endif
6596                      
6597 int main() {
6598  isnan(0);
6599 ; return 0; }
6600 EOF
6601 if { (eval echo configure:6602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6602   rm -rf conftest*
6603   glibcpp_cv_func_isnan_use=yes
6604 else
6605   echo "configure: failed program was:" >&5
6606   cat conftest.$ac_ext >&5
6607   rm -rf conftest*
6608   glibcpp_cv_func_isnan_use=no
6609 fi
6610 rm -f conftest*
6611       ac_ext=c
6612 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6613 ac_cpp='$CPP $CPPFLAGS'
6614 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6615 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6616 cross_compiling=$ac_cv_prog_cc_cross
6617
6618     
6619 fi
6620
6621   fi
6622   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6623
6624   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6625     for ac_func in isnan
6626 do
6627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6628 echo "configure:6629: checking for $ac_func" >&5
6629 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6630   echo $ac_n "(cached) $ac_c" 1>&6
6631 else
6632   cat > conftest.$ac_ext <<EOF
6633 #line 6634 "configure"
6634 #include "confdefs.h"
6635 /* System header to define __stub macros and hopefully few prototypes,
6636     which can conflict with char $ac_func(); below.  */
6637 #include <assert.h>
6638 /* Override any gcc2 internal prototype to avoid an error.  */
6639 /* We use char because int might match the return type of a gcc2
6640     builtin and then its argument prototype would still apply.  */
6641 char $ac_func();
6642
6643 int main() {
6644
6645 /* The GNU C library defines this for functions which it implements
6646     to always fail with ENOSYS.  Some functions are actually named
6647     something starting with __ and the normal name is an alias.  */
6648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6649 choke me
6650 #else
6651 $ac_func();
6652 #endif
6653
6654 ; return 0; }
6655 EOF
6656 if { (eval echo configure:6657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6657   rm -rf conftest*
6658   eval "ac_cv_func_$ac_func=yes"
6659 else
6660   echo "configure: failed program was:" >&5
6661   cat conftest.$ac_ext >&5
6662   rm -rf conftest*
6663   eval "ac_cv_func_$ac_func=no"
6664 fi
6665 rm -f conftest*
6666 fi
6667
6668 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6669   echo "$ac_t""yes" 1>&6
6670     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6671   cat >> confdefs.h <<EOF
6672 #define $ac_tr_func 1
6673 EOF
6674  
6675 else
6676   echo "$ac_t""no" 1>&6
6677 fi
6678 done
6679     
6680   else
6681     
6682   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6683 echo "configure:6684: checking for _isnan declaration" >&5
6684   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6685     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6686   echo $ac_n "(cached) $ac_c" 1>&6
6687 else
6688   
6689       
6690       ac_ext=C
6691 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6692 ac_cpp='$CXXCPP $CPPFLAGS'
6693 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6694 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6695 cross_compiling=$ac_cv_prog_cxx_cross
6696
6697       cat > conftest.$ac_ext <<EOF
6698 #line 6699 "configure"
6699 #include "confdefs.h"
6700 #include <math.h>
6701                       #ifdef HAVE_IEEEFP_H
6702                       #include <ieeefp.h>
6703                       #endif
6704                      
6705 int main() {
6706  _isnan(0);
6707 ; return 0; }
6708 EOF
6709 if { (eval echo configure:6710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6710   rm -rf conftest*
6711   glibcpp_cv_func__isnan_use=yes
6712 else
6713   echo "configure: failed program was:" >&5
6714   cat conftest.$ac_ext >&5
6715   rm -rf conftest*
6716   glibcpp_cv_func__isnan_use=no
6717 fi
6718 rm -f conftest*
6719       ac_ext=c
6720 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6721 ac_cpp='$CPP $CPPFLAGS'
6722 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6723 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6724 cross_compiling=$ac_cv_prog_cc_cross
6725
6726     
6727 fi
6728
6729   fi
6730   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
6731
6732     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
6733       for ac_func in _isnan
6734 do
6735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6736 echo "configure:6737: checking for $ac_func" >&5
6737 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6738   echo $ac_n "(cached) $ac_c" 1>&6
6739 else
6740   cat > conftest.$ac_ext <<EOF
6741 #line 6742 "configure"
6742 #include "confdefs.h"
6743 /* System header to define __stub macros and hopefully few prototypes,
6744     which can conflict with char $ac_func(); below.  */
6745 #include <assert.h>
6746 /* Override any gcc2 internal prototype to avoid an error.  */
6747 /* We use char because int might match the return type of a gcc2
6748     builtin and then its argument prototype would still apply.  */
6749 char $ac_func();
6750
6751 int main() {
6752
6753 /* The GNU C library defines this for functions which it implements
6754     to always fail with ENOSYS.  Some functions are actually named
6755     something starting with __ and the normal name is an alias.  */
6756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6757 choke me
6758 #else
6759 $ac_func();
6760 #endif
6761
6762 ; return 0; }
6763 EOF
6764 if { (eval echo configure:6765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6765   rm -rf conftest*
6766   eval "ac_cv_func_$ac_func=yes"
6767 else
6768   echo "configure: failed program was:" >&5
6769   cat conftest.$ac_ext >&5
6770   rm -rf conftest*
6771   eval "ac_cv_func_$ac_func=no"
6772 fi
6773 rm -f conftest*
6774 fi
6775
6776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6777   echo "$ac_t""yes" 1>&6
6778     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6779   cat >> confdefs.h <<EOF
6780 #define $ac_tr_func 1
6781 EOF
6782  
6783 else
6784   echo "$ac_t""no" 1>&6
6785 fi
6786 done
6787     
6788     fi
6789   fi
6790
6791   
6792   
6793   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
6794 echo "configure:6795: checking for finite declaration" >&5
6795   if test x${glibcpp_cv_func_finite_use+set} != xset; then
6796     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
6797   echo $ac_n "(cached) $ac_c" 1>&6
6798 else
6799   
6800       
6801       ac_ext=C
6802 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6803 ac_cpp='$CXXCPP $CPPFLAGS'
6804 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6805 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6806 cross_compiling=$ac_cv_prog_cxx_cross
6807
6808       cat > conftest.$ac_ext <<EOF
6809 #line 6810 "configure"
6810 #include "confdefs.h"
6811 #include <math.h>
6812                       #ifdef HAVE_IEEEFP_H
6813                       #include <ieeefp.h>
6814                       #endif
6815                      
6816 int main() {
6817  finite(0);
6818 ; return 0; }
6819 EOF
6820 if { (eval echo configure:6821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6821   rm -rf conftest*
6822   glibcpp_cv_func_finite_use=yes
6823 else
6824   echo "configure: failed program was:" >&5
6825   cat conftest.$ac_ext >&5
6826   rm -rf conftest*
6827   glibcpp_cv_func_finite_use=no
6828 fi
6829 rm -f conftest*
6830       ac_ext=c
6831 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6832 ac_cpp='$CPP $CPPFLAGS'
6833 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6834 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6835 cross_compiling=$ac_cv_prog_cc_cross
6836
6837     
6838 fi
6839
6840   fi
6841   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
6842
6843   if test x$glibcpp_cv_func_finite_use = x"yes"; then
6844     for ac_func in finite
6845 do
6846 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6847 echo "configure:6848: checking for $ac_func" >&5
6848 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6849   echo $ac_n "(cached) $ac_c" 1>&6
6850 else
6851   cat > conftest.$ac_ext <<EOF
6852 #line 6853 "configure"
6853 #include "confdefs.h"
6854 /* System header to define __stub macros and hopefully few prototypes,
6855     which can conflict with char $ac_func(); below.  */
6856 #include <assert.h>
6857 /* Override any gcc2 internal prototype to avoid an error.  */
6858 /* We use char because int might match the return type of a gcc2
6859     builtin and then its argument prototype would still apply.  */
6860 char $ac_func();
6861
6862 int main() {
6863
6864 /* The GNU C library defines this for functions which it implements
6865     to always fail with ENOSYS.  Some functions are actually named
6866     something starting with __ and the normal name is an alias.  */
6867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6868 choke me
6869 #else
6870 $ac_func();
6871 #endif
6872
6873 ; return 0; }
6874 EOF
6875 if { (eval echo configure:6876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6876   rm -rf conftest*
6877   eval "ac_cv_func_$ac_func=yes"
6878 else
6879   echo "configure: failed program was:" >&5
6880   cat conftest.$ac_ext >&5
6881   rm -rf conftest*
6882   eval "ac_cv_func_$ac_func=no"
6883 fi
6884 rm -f conftest*
6885 fi
6886
6887 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6888   echo "$ac_t""yes" 1>&6
6889     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6890   cat >> confdefs.h <<EOF
6891 #define $ac_tr_func 1
6892 EOF
6893  
6894 else
6895   echo "$ac_t""no" 1>&6
6896 fi
6897 done
6898     
6899   else
6900     
6901   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
6902 echo "configure:6903: checking for _finite declaration" >&5
6903   if test x${glibcpp_cv_func__finite_use+set} != xset; then
6904     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
6905   echo $ac_n "(cached) $ac_c" 1>&6
6906 else
6907   
6908       
6909       ac_ext=C
6910 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6911 ac_cpp='$CXXCPP $CPPFLAGS'
6912 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6913 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6914 cross_compiling=$ac_cv_prog_cxx_cross
6915
6916       cat > conftest.$ac_ext <<EOF
6917 #line 6918 "configure"
6918 #include "confdefs.h"
6919 #include <math.h>
6920                       #ifdef HAVE_IEEEFP_H
6921                       #include <ieeefp.h>
6922                       #endif
6923                      
6924 int main() {
6925  _finite(0);
6926 ; return 0; }
6927 EOF
6928 if { (eval echo configure:6929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6929   rm -rf conftest*
6930   glibcpp_cv_func__finite_use=yes
6931 else
6932   echo "configure: failed program was:" >&5
6933   cat conftest.$ac_ext >&5
6934   rm -rf conftest*
6935   glibcpp_cv_func__finite_use=no
6936 fi
6937 rm -f conftest*
6938       ac_ext=c
6939 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6940 ac_cpp='$CPP $CPPFLAGS'
6941 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6942 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6943 cross_compiling=$ac_cv_prog_cc_cross
6944
6945     
6946 fi
6947
6948   fi
6949   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
6950
6951     if test x$glibcpp_cv_func__finite_use = x"yes"; then
6952       for ac_func in _finite
6953 do
6954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6955 echo "configure:6956: checking for $ac_func" >&5
6956 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6957   echo $ac_n "(cached) $ac_c" 1>&6
6958 else
6959   cat > conftest.$ac_ext <<EOF
6960 #line 6961 "configure"
6961 #include "confdefs.h"
6962 /* System header to define __stub macros and hopefully few prototypes,
6963     which can conflict with char $ac_func(); below.  */
6964 #include <assert.h>
6965 /* Override any gcc2 internal prototype to avoid an error.  */
6966 /* We use char because int might match the return type of a gcc2
6967     builtin and then its argument prototype would still apply.  */
6968 char $ac_func();
6969
6970 int main() {
6971
6972 /* The GNU C library defines this for functions which it implements
6973     to always fail with ENOSYS.  Some functions are actually named
6974     something starting with __ and the normal name is an alias.  */
6975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6976 choke me
6977 #else
6978 $ac_func();
6979 #endif
6980
6981 ; return 0; }
6982 EOF
6983 if { (eval echo configure:6984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6984   rm -rf conftest*
6985   eval "ac_cv_func_$ac_func=yes"
6986 else
6987   echo "configure: failed program was:" >&5
6988   cat conftest.$ac_ext >&5
6989   rm -rf conftest*
6990   eval "ac_cv_func_$ac_func=no"
6991 fi
6992 rm -f conftest*
6993 fi
6994
6995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6996   echo "$ac_t""yes" 1>&6
6997     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6998   cat >> confdefs.h <<EOF
6999 #define $ac_tr_func 1
7000 EOF
7001  
7002 else
7003   echo "$ac_t""no" 1>&6
7004 fi
7005 done
7006     
7007     fi
7008   fi
7009
7010   
7011   
7012   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
7013 echo "configure:7014: checking for copysign declaration" >&5
7014   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
7015     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
7016   echo $ac_n "(cached) $ac_c" 1>&6
7017 else
7018   
7019       
7020       ac_ext=C
7021 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7022 ac_cpp='$CXXCPP $CPPFLAGS'
7023 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7024 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7025 cross_compiling=$ac_cv_prog_cxx_cross
7026
7027       cat > conftest.$ac_ext <<EOF
7028 #line 7029 "configure"
7029 #include "confdefs.h"
7030 #include <math.h>
7031 int main() {
7032  copysign(0, 0);
7033 ; return 0; }
7034 EOF
7035 if { (eval echo configure:7036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7036   rm -rf conftest*
7037   glibcpp_cv_func_copysign_use=yes
7038 else
7039   echo "configure: failed program was:" >&5
7040   cat conftest.$ac_ext >&5
7041   rm -rf conftest*
7042   glibcpp_cv_func_copysign_use=no
7043 fi
7044 rm -f conftest*
7045       ac_ext=c
7046 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7047 ac_cpp='$CPP $CPPFLAGS'
7048 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7049 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7050 cross_compiling=$ac_cv_prog_cc_cross
7051
7052     
7053 fi
7054
7055   fi
7056   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
7057
7058   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
7059     for ac_func in copysign
7060 do
7061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7062 echo "configure:7063: checking for $ac_func" >&5
7063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7064   echo $ac_n "(cached) $ac_c" 1>&6
7065 else
7066   cat > conftest.$ac_ext <<EOF
7067 #line 7068 "configure"
7068 #include "confdefs.h"
7069 /* System header to define __stub macros and hopefully few prototypes,
7070     which can conflict with char $ac_func(); below.  */
7071 #include <assert.h>
7072 /* Override any gcc2 internal prototype to avoid an error.  */
7073 /* We use char because int might match the return type of a gcc2
7074     builtin and then its argument prototype would still apply.  */
7075 char $ac_func();
7076
7077 int main() {
7078
7079 /* The GNU C library defines this for functions which it implements
7080     to always fail with ENOSYS.  Some functions are actually named
7081     something starting with __ and the normal name is an alias.  */
7082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7083 choke me
7084 #else
7085 $ac_func();
7086 #endif
7087
7088 ; return 0; }
7089 EOF
7090 if { (eval echo configure:7091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7091   rm -rf conftest*
7092   eval "ac_cv_func_$ac_func=yes"
7093 else
7094   echo "configure: failed program was:" >&5
7095   cat conftest.$ac_ext >&5
7096   rm -rf conftest*
7097   eval "ac_cv_func_$ac_func=no"
7098 fi
7099 rm -f conftest*
7100 fi
7101
7102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7103   echo "$ac_t""yes" 1>&6
7104     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7105   cat >> confdefs.h <<EOF
7106 #define $ac_tr_func 1
7107 EOF
7108  
7109 else
7110   echo "$ac_t""no" 1>&6
7111 fi
7112 done
7113     
7114   else
7115     
7116   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
7117 echo "configure:7118: checking for _copysign declaration" >&5
7118   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
7119     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
7120   echo $ac_n "(cached) $ac_c" 1>&6
7121 else
7122   
7123       
7124       ac_ext=C
7125 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7126 ac_cpp='$CXXCPP $CPPFLAGS'
7127 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7128 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7129 cross_compiling=$ac_cv_prog_cxx_cross
7130
7131       cat > conftest.$ac_ext <<EOF
7132 #line 7133 "configure"
7133 #include "confdefs.h"
7134 #include <math.h>
7135 int main() {
7136  _copysign(0, 0);
7137 ; return 0; }
7138 EOF
7139 if { (eval echo configure:7140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7140   rm -rf conftest*
7141   glibcpp_cv_func__copysign_use=yes
7142 else
7143   echo "configure: failed program was:" >&5
7144   cat conftest.$ac_ext >&5
7145   rm -rf conftest*
7146   glibcpp_cv_func__copysign_use=no
7147 fi
7148 rm -f conftest*
7149       ac_ext=c
7150 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7151 ac_cpp='$CPP $CPPFLAGS'
7152 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7153 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7154 cross_compiling=$ac_cv_prog_cc_cross
7155
7156     
7157 fi
7158
7159   fi
7160   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
7161
7162     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
7163       for ac_func in _copysign
7164 do
7165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7166 echo "configure:7167: checking for $ac_func" >&5
7167 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7168   echo $ac_n "(cached) $ac_c" 1>&6
7169 else
7170   cat > conftest.$ac_ext <<EOF
7171 #line 7172 "configure"
7172 #include "confdefs.h"
7173 /* System header to define __stub macros and hopefully few prototypes,
7174     which can conflict with char $ac_func(); below.  */
7175 #include <assert.h>
7176 /* Override any gcc2 internal prototype to avoid an error.  */
7177 /* We use char because int might match the return type of a gcc2
7178     builtin and then its argument prototype would still apply.  */
7179 char $ac_func();
7180
7181 int main() {
7182
7183 /* The GNU C library defines this for functions which it implements
7184     to always fail with ENOSYS.  Some functions are actually named
7185     something starting with __ and the normal name is an alias.  */
7186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7187 choke me
7188 #else
7189 $ac_func();
7190 #endif
7191
7192 ; return 0; }
7193 EOF
7194 if { (eval echo configure:7195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7195   rm -rf conftest*
7196   eval "ac_cv_func_$ac_func=yes"
7197 else
7198   echo "configure: failed program was:" >&5
7199   cat conftest.$ac_ext >&5
7200   rm -rf conftest*
7201   eval "ac_cv_func_$ac_func=no"
7202 fi
7203 rm -f conftest*
7204 fi
7205
7206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7207   echo "$ac_t""yes" 1>&6
7208     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7209   cat >> confdefs.h <<EOF
7210 #define $ac_tr_func 1
7211 EOF
7212  
7213 else
7214   echo "$ac_t""no" 1>&6
7215 fi
7216 done
7217     
7218     fi
7219   fi
7220
7221   
7222   
7223   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
7224 echo "configure:7225: checking for sincos declaration" >&5
7225   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
7226     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
7227   echo $ac_n "(cached) $ac_c" 1>&6
7228 else
7229   
7230       
7231       ac_ext=C
7232 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7233 ac_cpp='$CXXCPP $CPPFLAGS'
7234 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7235 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7236 cross_compiling=$ac_cv_prog_cxx_cross
7237
7238       cat > conftest.$ac_ext <<EOF
7239 #line 7240 "configure"
7240 #include "confdefs.h"
7241 #include <math.h>
7242 int main() {
7243  sincos(0, 0, 0);
7244 ; return 0; }
7245 EOF
7246 if { (eval echo configure:7247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7247   rm -rf conftest*
7248   glibcpp_cv_func_sincos_use=yes
7249 else
7250   echo "configure: failed program was:" >&5
7251   cat conftest.$ac_ext >&5
7252   rm -rf conftest*
7253   glibcpp_cv_func_sincos_use=no
7254 fi
7255 rm -f conftest*
7256       ac_ext=c
7257 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7258 ac_cpp='$CPP $CPPFLAGS'
7259 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7260 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7261 cross_compiling=$ac_cv_prog_cc_cross
7262
7263     
7264 fi
7265
7266   fi
7267   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
7268
7269   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
7270     for ac_func in sincos
7271 do
7272 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7273 echo "configure:7274: checking for $ac_func" >&5
7274 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7275   echo $ac_n "(cached) $ac_c" 1>&6
7276 else
7277   cat > conftest.$ac_ext <<EOF
7278 #line 7279 "configure"
7279 #include "confdefs.h"
7280 /* System header to define __stub macros and hopefully few prototypes,
7281     which can conflict with char $ac_func(); below.  */
7282 #include <assert.h>
7283 /* Override any gcc2 internal prototype to avoid an error.  */
7284 /* We use char because int might match the return type of a gcc2
7285     builtin and then its argument prototype would still apply.  */
7286 char $ac_func();
7287
7288 int main() {
7289
7290 /* The GNU C library defines this for functions which it implements
7291     to always fail with ENOSYS.  Some functions are actually named
7292     something starting with __ and the normal name is an alias.  */
7293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7294 choke me
7295 #else
7296 $ac_func();
7297 #endif
7298
7299 ; return 0; }
7300 EOF
7301 if { (eval echo configure:7302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7302   rm -rf conftest*
7303   eval "ac_cv_func_$ac_func=yes"
7304 else
7305   echo "configure: failed program was:" >&5
7306   cat conftest.$ac_ext >&5
7307   rm -rf conftest*
7308   eval "ac_cv_func_$ac_func=no"
7309 fi
7310 rm -f conftest*
7311 fi
7312
7313 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7314   echo "$ac_t""yes" 1>&6
7315     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7316   cat >> confdefs.h <<EOF
7317 #define $ac_tr_func 1
7318 EOF
7319  
7320 else
7321   echo "$ac_t""no" 1>&6
7322 fi
7323 done
7324     
7325   else
7326     
7327   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
7328 echo "configure:7329: checking for _sincos declaration" >&5
7329   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
7330     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
7331   echo $ac_n "(cached) $ac_c" 1>&6
7332 else
7333   
7334       
7335       ac_ext=C
7336 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7337 ac_cpp='$CXXCPP $CPPFLAGS'
7338 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7339 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7340 cross_compiling=$ac_cv_prog_cxx_cross
7341
7342       cat > conftest.$ac_ext <<EOF
7343 #line 7344 "configure"
7344 #include "confdefs.h"
7345 #include <math.h>
7346 int main() {
7347  _sincos(0, 0, 0);
7348 ; return 0; }
7349 EOF
7350 if { (eval echo configure:7351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7351   rm -rf conftest*
7352   glibcpp_cv_func__sincos_use=yes
7353 else
7354   echo "configure: failed program was:" >&5
7355   cat conftest.$ac_ext >&5
7356   rm -rf conftest*
7357   glibcpp_cv_func__sincos_use=no
7358 fi
7359 rm -f conftest*
7360       ac_ext=c
7361 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7362 ac_cpp='$CPP $CPPFLAGS'
7363 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7364 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7365 cross_compiling=$ac_cv_prog_cc_cross
7366
7367     
7368 fi
7369
7370   fi
7371   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
7372
7373     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
7374       for ac_func in _sincos
7375 do
7376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7377 echo "configure:7378: checking for $ac_func" >&5
7378 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7379   echo $ac_n "(cached) $ac_c" 1>&6
7380 else
7381   cat > conftest.$ac_ext <<EOF
7382 #line 7383 "configure"
7383 #include "confdefs.h"
7384 /* System header to define __stub macros and hopefully few prototypes,
7385     which can conflict with char $ac_func(); below.  */
7386 #include <assert.h>
7387 /* Override any gcc2 internal prototype to avoid an error.  */
7388 /* We use char because int might match the return type of a gcc2
7389     builtin and then its argument prototype would still apply.  */
7390 char $ac_func();
7391
7392 int main() {
7393
7394 /* The GNU C library defines this for functions which it implements
7395     to always fail with ENOSYS.  Some functions are actually named
7396     something starting with __ and the normal name is an alias.  */
7397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7398 choke me
7399 #else
7400 $ac_func();
7401 #endif
7402
7403 ; return 0; }
7404 EOF
7405 if { (eval echo configure:7406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7406   rm -rf conftest*
7407   eval "ac_cv_func_$ac_func=yes"
7408 else
7409   echo "configure: failed program was:" >&5
7410   cat conftest.$ac_ext >&5
7411   rm -rf conftest*
7412   eval "ac_cv_func_$ac_func=no"
7413 fi
7414 rm -f conftest*
7415 fi
7416
7417 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7418   echo "$ac_t""yes" 1>&6
7419     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7420   cat >> confdefs.h <<EOF
7421 #define $ac_tr_func 1
7422 EOF
7423  
7424 else
7425   echo "$ac_t""no" 1>&6
7426 fi
7427 done
7428     
7429     fi
7430   fi
7431
7432   
7433   
7434   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
7435 echo "configure:7436: checking for fpclass declaration" >&5
7436   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7437     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7438   echo $ac_n "(cached) $ac_c" 1>&6
7439 else
7440   
7441       
7442       ac_ext=C
7443 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7444 ac_cpp='$CXXCPP $CPPFLAGS'
7445 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7446 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7447 cross_compiling=$ac_cv_prog_cxx_cross
7448
7449       cat > conftest.$ac_ext <<EOF
7450 #line 7451 "configure"
7451 #include "confdefs.h"
7452 #include <math.h>
7453                       #ifdef HAVE_IEEEFP_H
7454                       #include <ieeefp.h>
7455                       #endif
7456                      
7457 int main() {
7458  fpclass(0);
7459 ; return 0; }
7460 EOF
7461 if { (eval echo configure:7462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7462   rm -rf conftest*
7463   glibcpp_cv_func_fpclass_use=yes
7464 else
7465   echo "configure: failed program was:" >&5
7466   cat conftest.$ac_ext >&5
7467   rm -rf conftest*
7468   glibcpp_cv_func_fpclass_use=no
7469 fi
7470 rm -f conftest*
7471       ac_ext=c
7472 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7473 ac_cpp='$CPP $CPPFLAGS'
7474 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7475 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7476 cross_compiling=$ac_cv_prog_cc_cross
7477
7478     
7479 fi
7480
7481   fi
7482   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7483
7484   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7485     for ac_func in fpclass
7486 do
7487 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7488 echo "configure:7489: checking for $ac_func" >&5
7489 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7490   echo $ac_n "(cached) $ac_c" 1>&6
7491 else
7492   cat > conftest.$ac_ext <<EOF
7493 #line 7494 "configure"
7494 #include "confdefs.h"
7495 /* System header to define __stub macros and hopefully few prototypes,
7496     which can conflict with char $ac_func(); below.  */
7497 #include <assert.h>
7498 /* Override any gcc2 internal prototype to avoid an error.  */
7499 /* We use char because int might match the return type of a gcc2
7500     builtin and then its argument prototype would still apply.  */
7501 char $ac_func();
7502
7503 int main() {
7504
7505 /* The GNU C library defines this for functions which it implements
7506     to always fail with ENOSYS.  Some functions are actually named
7507     something starting with __ and the normal name is an alias.  */
7508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7509 choke me
7510 #else
7511 $ac_func();
7512 #endif
7513
7514 ; return 0; }
7515 EOF
7516 if { (eval echo configure:7517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7517   rm -rf conftest*
7518   eval "ac_cv_func_$ac_func=yes"
7519 else
7520   echo "configure: failed program was:" >&5
7521   cat conftest.$ac_ext >&5
7522   rm -rf conftest*
7523   eval "ac_cv_func_$ac_func=no"
7524 fi
7525 rm -f conftest*
7526 fi
7527
7528 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7529   echo "$ac_t""yes" 1>&6
7530     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7531   cat >> confdefs.h <<EOF
7532 #define $ac_tr_func 1
7533 EOF
7534  
7535 else
7536   echo "$ac_t""no" 1>&6
7537 fi
7538 done
7539     
7540   else
7541     
7542   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7543 echo "configure:7544: checking for _fpclass declaration" >&5
7544   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7545     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7546   echo $ac_n "(cached) $ac_c" 1>&6
7547 else
7548   
7549       
7550       ac_ext=C
7551 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7552 ac_cpp='$CXXCPP $CPPFLAGS'
7553 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7554 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7555 cross_compiling=$ac_cv_prog_cxx_cross
7556
7557       cat > conftest.$ac_ext <<EOF
7558 #line 7559 "configure"
7559 #include "confdefs.h"
7560 #include <math.h>
7561                       #ifdef HAVE_IEEEFP_H
7562                       #include <ieeefp.h>
7563                       #endif
7564                      
7565 int main() {
7566  _fpclass(0);
7567 ; return 0; }
7568 EOF
7569 if { (eval echo configure:7570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7570   rm -rf conftest*
7571   glibcpp_cv_func__fpclass_use=yes
7572 else
7573   echo "configure: failed program was:" >&5
7574   cat conftest.$ac_ext >&5
7575   rm -rf conftest*
7576   glibcpp_cv_func__fpclass_use=no
7577 fi
7578 rm -f conftest*
7579       ac_ext=c
7580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7581 ac_cpp='$CPP $CPPFLAGS'
7582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7583 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7584 cross_compiling=$ac_cv_prog_cc_cross
7585
7586     
7587 fi
7588
7589   fi
7590   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7591
7592     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7593       for ac_func in _fpclass
7594 do
7595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7596 echo "configure:7597: checking for $ac_func" >&5
7597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7598   echo $ac_n "(cached) $ac_c" 1>&6
7599 else
7600   cat > conftest.$ac_ext <<EOF
7601 #line 7602 "configure"
7602 #include "confdefs.h"
7603 /* System header to define __stub macros and hopefully few prototypes,
7604     which can conflict with char $ac_func(); below.  */
7605 #include <assert.h>
7606 /* Override any gcc2 internal prototype to avoid an error.  */
7607 /* We use char because int might match the return type of a gcc2
7608     builtin and then its argument prototype would still apply.  */
7609 char $ac_func();
7610
7611 int main() {
7612
7613 /* The GNU C library defines this for functions which it implements
7614     to always fail with ENOSYS.  Some functions are actually named
7615     something starting with __ and the normal name is an alias.  */
7616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7617 choke me
7618 #else
7619 $ac_func();
7620 #endif
7621
7622 ; return 0; }
7623 EOF
7624 if { (eval echo configure:7625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7625   rm -rf conftest*
7626   eval "ac_cv_func_$ac_func=yes"
7627 else
7628   echo "configure: failed program was:" >&5
7629   cat conftest.$ac_ext >&5
7630   rm -rf conftest*
7631   eval "ac_cv_func_$ac_func=no"
7632 fi
7633 rm -f conftest*
7634 fi
7635
7636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7637   echo "$ac_t""yes" 1>&6
7638     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7639   cat >> confdefs.h <<EOF
7640 #define $ac_tr_func 1
7641 EOF
7642  
7643 else
7644   echo "$ac_t""no" 1>&6
7645 fi
7646 done
7647     
7648     fi
7649   fi
7650
7651   
7652   
7653   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7654 echo "configure:7655: checking for qfpclass declaration" >&5
7655   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7656     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7657   echo $ac_n "(cached) $ac_c" 1>&6
7658 else
7659   
7660       
7661       ac_ext=C
7662 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7663 ac_cpp='$CXXCPP $CPPFLAGS'
7664 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7665 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7666 cross_compiling=$ac_cv_prog_cxx_cross
7667
7668       cat > conftest.$ac_ext <<EOF
7669 #line 7670 "configure"
7670 #include "confdefs.h"
7671 #include <math.h>
7672                       #ifdef HAVE_IEEEFP_H
7673                       #include <ieeefp.h>
7674                       #endif
7675                      
7676 int main() {
7677  qfpclass(0);
7678 ; return 0; }
7679 EOF
7680 if { (eval echo configure:7681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7681   rm -rf conftest*
7682   glibcpp_cv_func_qfpclass_use=yes
7683 else
7684   echo "configure: failed program was:" >&5
7685   cat conftest.$ac_ext >&5
7686   rm -rf conftest*
7687   glibcpp_cv_func_qfpclass_use=no
7688 fi
7689 rm -f conftest*
7690       ac_ext=c
7691 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7692 ac_cpp='$CPP $CPPFLAGS'
7693 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7694 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7695 cross_compiling=$ac_cv_prog_cc_cross
7696
7697     
7698 fi
7699
7700   fi
7701   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
7702
7703   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
7704     for ac_func in qfpclass
7705 do
7706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7707 echo "configure:7708: checking for $ac_func" >&5
7708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7709   echo $ac_n "(cached) $ac_c" 1>&6
7710 else
7711   cat > conftest.$ac_ext <<EOF
7712 #line 7713 "configure"
7713 #include "confdefs.h"
7714 /* System header to define __stub macros and hopefully few prototypes,
7715     which can conflict with char $ac_func(); below.  */
7716 #include <assert.h>
7717 /* Override any gcc2 internal prototype to avoid an error.  */
7718 /* We use char because int might match the return type of a gcc2
7719     builtin and then its argument prototype would still apply.  */
7720 char $ac_func();
7721
7722 int main() {
7723
7724 /* The GNU C library defines this for functions which it implements
7725     to always fail with ENOSYS.  Some functions are actually named
7726     something starting with __ and the normal name is an alias.  */
7727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7728 choke me
7729 #else
7730 $ac_func();
7731 #endif
7732
7733 ; return 0; }
7734 EOF
7735 if { (eval echo configure:7736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7736   rm -rf conftest*
7737   eval "ac_cv_func_$ac_func=yes"
7738 else
7739   echo "configure: failed program was:" >&5
7740   cat conftest.$ac_ext >&5
7741   rm -rf conftest*
7742   eval "ac_cv_func_$ac_func=no"
7743 fi
7744 rm -f conftest*
7745 fi
7746
7747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7748   echo "$ac_t""yes" 1>&6
7749     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7750   cat >> confdefs.h <<EOF
7751 #define $ac_tr_func 1
7752 EOF
7753  
7754 else
7755   echo "$ac_t""no" 1>&6
7756 fi
7757 done
7758     
7759   else
7760     
7761   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
7762 echo "configure:7763: checking for _qfpclass declaration" >&5
7763   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
7764     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
7765   echo $ac_n "(cached) $ac_c" 1>&6
7766 else
7767   
7768       
7769       ac_ext=C
7770 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7771 ac_cpp='$CXXCPP $CPPFLAGS'
7772 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7773 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7774 cross_compiling=$ac_cv_prog_cxx_cross
7775
7776       cat > conftest.$ac_ext <<EOF
7777 #line 7778 "configure"
7778 #include "confdefs.h"
7779 #include <math.h>
7780                       #ifdef HAVE_IEEEFP_H
7781                       #include <ieeefp.h>
7782                       #endif
7783                      
7784 int main() {
7785  _qfpclass(0);
7786 ; return 0; }
7787 EOF
7788 if { (eval echo configure:7789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7789   rm -rf conftest*
7790   glibcpp_cv_func__qfpclass_use=yes
7791 else
7792   echo "configure: failed program was:" >&5
7793   cat conftest.$ac_ext >&5
7794   rm -rf conftest*
7795   glibcpp_cv_func__qfpclass_use=no
7796 fi
7797 rm -f conftest*
7798       ac_ext=c
7799 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7800 ac_cpp='$CPP $CPPFLAGS'
7801 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7802 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7803 cross_compiling=$ac_cv_prog_cc_cross
7804
7805     
7806 fi
7807
7808   fi
7809   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
7810
7811     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
7812       for ac_func in _qfpclass
7813 do
7814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7815 echo "configure:7816: checking for $ac_func" >&5
7816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7817   echo $ac_n "(cached) $ac_c" 1>&6
7818 else
7819   cat > conftest.$ac_ext <<EOF
7820 #line 7821 "configure"
7821 #include "confdefs.h"
7822 /* System header to define __stub macros and hopefully few prototypes,
7823     which can conflict with char $ac_func(); below.  */
7824 #include <assert.h>
7825 /* Override any gcc2 internal prototype to avoid an error.  */
7826 /* We use char because int might match the return type of a gcc2
7827     builtin and then its argument prototype would still apply.  */
7828 char $ac_func();
7829
7830 int main() {
7831
7832 /* The GNU C library defines this for functions which it implements
7833     to always fail with ENOSYS.  Some functions are actually named
7834     something starting with __ and the normal name is an alias.  */
7835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7836 choke me
7837 #else
7838 $ac_func();
7839 #endif
7840
7841 ; return 0; }
7842 EOF
7843 if { (eval echo configure:7844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7844   rm -rf conftest*
7845   eval "ac_cv_func_$ac_func=yes"
7846 else
7847   echo "configure: failed program was:" >&5
7848   cat conftest.$ac_ext >&5
7849   rm -rf conftest*
7850   eval "ac_cv_func_$ac_func=no"
7851 fi
7852 rm -f conftest*
7853 fi
7854
7855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7856   echo "$ac_t""yes" 1>&6
7857     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7858   cat >> confdefs.h <<EOF
7859 #define $ac_tr_func 1
7860 EOF
7861  
7862 else
7863   echo "$ac_t""no" 1>&6
7864 fi
7865 done
7866     
7867     fi
7868   fi
7869
7870
7871     
7872   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
7873 echo "configure:7874: checking for float trig functions" >&5
7874   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
7875   echo $ac_n "(cached) $ac_c" 1>&6
7876 else
7877   
7878     
7879     ac_ext=C
7880 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7881 ac_cpp='$CXXCPP $CPPFLAGS'
7882 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7883 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7884 cross_compiling=$ac_cv_prog_cxx_cross
7885
7886     cat > conftest.$ac_ext <<EOF
7887 #line 7888 "configure"
7888 #include "confdefs.h"
7889 #include <math.h>
7890 int main() {
7891  `for x in acosf asinf atanf \
7892                                           cosf sinf tanf \
7893                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
7894 ; return 0; }
7895 EOF
7896 if { (eval echo configure:7897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7897   rm -rf conftest*
7898   glibcpp_cv_func_float_trig_use=yes
7899 else
7900   echo "configure: failed program was:" >&5
7901   cat conftest.$ac_ext >&5
7902   rm -rf conftest*
7903   glibcpp_cv_func_float_trig_use=no
7904 fi
7905 rm -f conftest*
7906     ac_ext=c
7907 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7908 ac_cpp='$CPP $CPPFLAGS'
7909 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7910 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7911 cross_compiling=$ac_cv_prog_cc_cross
7912
7913 fi
7914
7915   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
7916   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
7917     for ac_func in acosf asinf atanf \
7918                                           cosf sinf tanf \
7919                                           coshf sinhf tanhf
7920 do
7921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7922 echo "configure:7923: checking for $ac_func" >&5
7923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7924   echo $ac_n "(cached) $ac_c" 1>&6
7925 else
7926   cat > conftest.$ac_ext <<EOF
7927 #line 7928 "configure"
7928 #include "confdefs.h"
7929 /* System header to define __stub macros and hopefully few prototypes,
7930     which can conflict with char $ac_func(); below.  */
7931 #include <assert.h>
7932 /* Override any gcc2 internal prototype to avoid an error.  */
7933 /* We use char because int might match the return type of a gcc2
7934     builtin and then its argument prototype would still apply.  */
7935 char $ac_func();
7936
7937 int main() {
7938
7939 /* The GNU C library defines this for functions which it implements
7940     to always fail with ENOSYS.  Some functions are actually named
7941     something starting with __ and the normal name is an alias.  */
7942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7943 choke me
7944 #else
7945 $ac_func();
7946 #endif
7947
7948 ; return 0; }
7949 EOF
7950 if { (eval echo configure:7951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7951   rm -rf conftest*
7952   eval "ac_cv_func_$ac_func=yes"
7953 else
7954   echo "configure: failed program was:" >&5
7955   cat conftest.$ac_ext >&5
7956   rm -rf conftest*
7957   eval "ac_cv_func_$ac_func=no"
7958 fi
7959 rm -f conftest*
7960 fi
7961
7962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7963   echo "$ac_t""yes" 1>&6
7964     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7965   cat >> confdefs.h <<EOF
7966 #define $ac_tr_func 1
7967 EOF
7968  
7969 else
7970   echo "$ac_t""no" 1>&6
7971 fi
7972 done
7973
7974   fi
7975
7976   
7977   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
7978 echo "configure:7979: checking for float round functions" >&5
7979   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
7980   echo $ac_n "(cached) $ac_c" 1>&6
7981 else
7982   
7983     
7984     ac_ext=C
7985 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7986 ac_cpp='$CXXCPP $CPPFLAGS'
7987 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7988 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7989 cross_compiling=$ac_cv_prog_cxx_cross
7990
7991     cat > conftest.$ac_ext <<EOF
7992 #line 7993 "configure"
7993 #include "confdefs.h"
7994 #include <math.h>
7995 int main() {
7996  `for x in ceilf floorf; do echo "$x (0);"; done` 
7997 ; return 0; }
7998 EOF
7999 if { (eval echo configure:8000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8000   rm -rf conftest*
8001   glibcpp_cv_func_float_round_use=yes
8002 else
8003   echo "configure: failed program was:" >&5
8004   cat conftest.$ac_ext >&5
8005   rm -rf conftest*
8006   glibcpp_cv_func_float_round_use=no
8007 fi
8008 rm -f conftest*
8009     ac_ext=c
8010 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8011 ac_cpp='$CPP $CPPFLAGS'
8012 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8013 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8014 cross_compiling=$ac_cv_prog_cc_cross
8015
8016 fi
8017
8018   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
8019   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
8020     for ac_func in ceilf floorf
8021 do
8022 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8023 echo "configure:8024: checking for $ac_func" >&5
8024 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8025   echo $ac_n "(cached) $ac_c" 1>&6
8026 else
8027   cat > conftest.$ac_ext <<EOF
8028 #line 8029 "configure"
8029 #include "confdefs.h"
8030 /* System header to define __stub macros and hopefully few prototypes,
8031     which can conflict with char $ac_func(); below.  */
8032 #include <assert.h>
8033 /* Override any gcc2 internal prototype to avoid an error.  */
8034 /* We use char because int might match the return type of a gcc2
8035     builtin and then its argument prototype would still apply.  */
8036 char $ac_func();
8037
8038 int main() {
8039
8040 /* The GNU C library defines this for functions which it implements
8041     to always fail with ENOSYS.  Some functions are actually named
8042     something starting with __ and the normal name is an alias.  */
8043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8044 choke me
8045 #else
8046 $ac_func();
8047 #endif
8048
8049 ; return 0; }
8050 EOF
8051 if { (eval echo configure:8052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8052   rm -rf conftest*
8053   eval "ac_cv_func_$ac_func=yes"
8054 else
8055   echo "configure: failed program was:" >&5
8056   cat conftest.$ac_ext >&5
8057   rm -rf conftest*
8058   eval "ac_cv_func_$ac_func=no"
8059 fi
8060 rm -f conftest*
8061 fi
8062
8063 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8064   echo "$ac_t""yes" 1>&6
8065     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8066   cat >> confdefs.h <<EOF
8067 #define $ac_tr_func 1
8068 EOF
8069  
8070 else
8071   echo "$ac_t""no" 1>&6
8072 fi
8073 done
8074
8075   fi
8076
8077   
8078   
8079   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
8080 echo "configure:8081: checking for isnanf declaration" >&5
8081   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
8082     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
8083   echo $ac_n "(cached) $ac_c" 1>&6
8084 else
8085   
8086       
8087       ac_ext=C
8088 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8089 ac_cpp='$CXXCPP $CPPFLAGS'
8090 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8091 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8092 cross_compiling=$ac_cv_prog_cxx_cross
8093
8094       cat > conftest.$ac_ext <<EOF
8095 #line 8096 "configure"
8096 #include "confdefs.h"
8097 #include <math.h>
8098                       #ifdef HAVE_IEEEFP_H
8099                       #include <ieeefp.h>
8100                       #endif
8101                      
8102 int main() {
8103  isnanf(0);
8104 ; return 0; }
8105 EOF
8106 if { (eval echo configure:8107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8107   rm -rf conftest*
8108   glibcpp_cv_func_isnanf_use=yes
8109 else
8110   echo "configure: failed program was:" >&5
8111   cat conftest.$ac_ext >&5
8112   rm -rf conftest*
8113   glibcpp_cv_func_isnanf_use=no
8114 fi
8115 rm -f conftest*
8116       ac_ext=c
8117 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8118 ac_cpp='$CPP $CPPFLAGS'
8119 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8120 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8121 cross_compiling=$ac_cv_prog_cc_cross
8122
8123     
8124 fi
8125
8126   fi
8127   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
8128
8129   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
8130     for ac_func in isnanf
8131 do
8132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8133 echo "configure:8134: checking for $ac_func" >&5
8134 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8135   echo $ac_n "(cached) $ac_c" 1>&6
8136 else
8137   cat > conftest.$ac_ext <<EOF
8138 #line 8139 "configure"
8139 #include "confdefs.h"
8140 /* System header to define __stub macros and hopefully few prototypes,
8141     which can conflict with char $ac_func(); below.  */
8142 #include <assert.h>
8143 /* Override any gcc2 internal prototype to avoid an error.  */
8144 /* We use char because int might match the return type of a gcc2
8145     builtin and then its argument prototype would still apply.  */
8146 char $ac_func();
8147
8148 int main() {
8149
8150 /* The GNU C library defines this for functions which it implements
8151     to always fail with ENOSYS.  Some functions are actually named
8152     something starting with __ and the normal name is an alias.  */
8153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8154 choke me
8155 #else
8156 $ac_func();
8157 #endif
8158
8159 ; return 0; }
8160 EOF
8161 if { (eval echo configure:8162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8162   rm -rf conftest*
8163   eval "ac_cv_func_$ac_func=yes"
8164 else
8165   echo "configure: failed program was:" >&5
8166   cat conftest.$ac_ext >&5
8167   rm -rf conftest*
8168   eval "ac_cv_func_$ac_func=no"
8169 fi
8170 rm -f conftest*
8171 fi
8172
8173 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8174   echo "$ac_t""yes" 1>&6
8175     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8176   cat >> confdefs.h <<EOF
8177 #define $ac_tr_func 1
8178 EOF
8179  
8180 else
8181   echo "$ac_t""no" 1>&6
8182 fi
8183 done
8184     
8185   else
8186     
8187   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
8188 echo "configure:8189: checking for _isnanf declaration" >&5
8189   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
8190     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
8191   echo $ac_n "(cached) $ac_c" 1>&6
8192 else
8193   
8194       
8195       ac_ext=C
8196 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8197 ac_cpp='$CXXCPP $CPPFLAGS'
8198 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8199 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8200 cross_compiling=$ac_cv_prog_cxx_cross
8201
8202       cat > conftest.$ac_ext <<EOF
8203 #line 8204 "configure"
8204 #include "confdefs.h"
8205 #include <math.h>
8206                       #ifdef HAVE_IEEEFP_H
8207                       #include <ieeefp.h>
8208                       #endif
8209                      
8210 int main() {
8211  _isnanf(0);
8212 ; return 0; }
8213 EOF
8214 if { (eval echo configure:8215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8215   rm -rf conftest*
8216   glibcpp_cv_func__isnanf_use=yes
8217 else
8218   echo "configure: failed program was:" >&5
8219   cat conftest.$ac_ext >&5
8220   rm -rf conftest*
8221   glibcpp_cv_func__isnanf_use=no
8222 fi
8223 rm -f conftest*
8224       ac_ext=c
8225 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8226 ac_cpp='$CPP $CPPFLAGS'
8227 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8228 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8229 cross_compiling=$ac_cv_prog_cc_cross
8230
8231     
8232 fi
8233
8234   fi
8235   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
8236
8237     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
8238       for ac_func in _isnanf
8239 do
8240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8241 echo "configure:8242: checking for $ac_func" >&5
8242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8243   echo $ac_n "(cached) $ac_c" 1>&6
8244 else
8245   cat > conftest.$ac_ext <<EOF
8246 #line 8247 "configure"
8247 #include "confdefs.h"
8248 /* System header to define __stub macros and hopefully few prototypes,
8249     which can conflict with char $ac_func(); below.  */
8250 #include <assert.h>
8251 /* Override any gcc2 internal prototype to avoid an error.  */
8252 /* We use char because int might match the return type of a gcc2
8253     builtin and then its argument prototype would still apply.  */
8254 char $ac_func();
8255
8256 int main() {
8257
8258 /* The GNU C library defines this for functions which it implements
8259     to always fail with ENOSYS.  Some functions are actually named
8260     something starting with __ and the normal name is an alias.  */
8261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8262 choke me
8263 #else
8264 $ac_func();
8265 #endif
8266
8267 ; return 0; }
8268 EOF
8269 if { (eval echo configure:8270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8270   rm -rf conftest*
8271   eval "ac_cv_func_$ac_func=yes"
8272 else
8273   echo "configure: failed program was:" >&5
8274   cat conftest.$ac_ext >&5
8275   rm -rf conftest*
8276   eval "ac_cv_func_$ac_func=no"
8277 fi
8278 rm -f conftest*
8279 fi
8280
8281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8282   echo "$ac_t""yes" 1>&6
8283     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8284   cat >> confdefs.h <<EOF
8285 #define $ac_tr_func 1
8286 EOF
8287  
8288 else
8289   echo "$ac_t""no" 1>&6
8290 fi
8291 done
8292     
8293     fi
8294   fi
8295
8296   
8297   
8298   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
8299 echo "configure:8300: checking for isinff declaration" >&5
8300   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
8301     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
8302   echo $ac_n "(cached) $ac_c" 1>&6
8303 else
8304   
8305       
8306       ac_ext=C
8307 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8308 ac_cpp='$CXXCPP $CPPFLAGS'
8309 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8310 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8311 cross_compiling=$ac_cv_prog_cxx_cross
8312
8313       cat > conftest.$ac_ext <<EOF
8314 #line 8315 "configure"
8315 #include "confdefs.h"
8316 #include <math.h>
8317                       #ifdef HAVE_IEEEFP_H
8318                       #include <ieeefp.h>
8319                       #endif
8320                      
8321 int main() {
8322  isinff(0);
8323 ; return 0; }
8324 EOF
8325 if { (eval echo configure:8326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8326   rm -rf conftest*
8327   glibcpp_cv_func_isinff_use=yes
8328 else
8329   echo "configure: failed program was:" >&5
8330   cat conftest.$ac_ext >&5
8331   rm -rf conftest*
8332   glibcpp_cv_func_isinff_use=no
8333 fi
8334 rm -f conftest*
8335       ac_ext=c
8336 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8337 ac_cpp='$CPP $CPPFLAGS'
8338 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8339 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8340 cross_compiling=$ac_cv_prog_cc_cross
8341
8342     
8343 fi
8344
8345   fi
8346   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
8347
8348   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
8349     for ac_func in isinff
8350 do
8351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8352 echo "configure:8353: checking for $ac_func" >&5
8353 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8354   echo $ac_n "(cached) $ac_c" 1>&6
8355 else
8356   cat > conftest.$ac_ext <<EOF
8357 #line 8358 "configure"
8358 #include "confdefs.h"
8359 /* System header to define __stub macros and hopefully few prototypes,
8360     which can conflict with char $ac_func(); below.  */
8361 #include <assert.h>
8362 /* Override any gcc2 internal prototype to avoid an error.  */
8363 /* We use char because int might match the return type of a gcc2
8364     builtin and then its argument prototype would still apply.  */
8365 char $ac_func();
8366
8367 int main() {
8368
8369 /* The GNU C library defines this for functions which it implements
8370     to always fail with ENOSYS.  Some functions are actually named
8371     something starting with __ and the normal name is an alias.  */
8372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8373 choke me
8374 #else
8375 $ac_func();
8376 #endif
8377
8378 ; return 0; }
8379 EOF
8380 if { (eval echo configure:8381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8381   rm -rf conftest*
8382   eval "ac_cv_func_$ac_func=yes"
8383 else
8384   echo "configure: failed program was:" >&5
8385   cat conftest.$ac_ext >&5
8386   rm -rf conftest*
8387   eval "ac_cv_func_$ac_func=no"
8388 fi
8389 rm -f conftest*
8390 fi
8391
8392 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8393   echo "$ac_t""yes" 1>&6
8394     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8395   cat >> confdefs.h <<EOF
8396 #define $ac_tr_func 1
8397 EOF
8398  
8399 else
8400   echo "$ac_t""no" 1>&6
8401 fi
8402 done
8403     
8404   else
8405     
8406   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
8407 echo "configure:8408: checking for _isinff declaration" >&5
8408   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
8409     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
8410   echo $ac_n "(cached) $ac_c" 1>&6
8411 else
8412   
8413       
8414       ac_ext=C
8415 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8416 ac_cpp='$CXXCPP $CPPFLAGS'
8417 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8418 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8419 cross_compiling=$ac_cv_prog_cxx_cross
8420
8421       cat > conftest.$ac_ext <<EOF
8422 #line 8423 "configure"
8423 #include "confdefs.h"
8424 #include <math.h>
8425                       #ifdef HAVE_IEEEFP_H
8426                       #include <ieeefp.h>
8427                       #endif
8428                      
8429 int main() {
8430  _isinff(0);
8431 ; return 0; }
8432 EOF
8433 if { (eval echo configure:8434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8434   rm -rf conftest*
8435   glibcpp_cv_func__isinff_use=yes
8436 else
8437   echo "configure: failed program was:" >&5
8438   cat conftest.$ac_ext >&5
8439   rm -rf conftest*
8440   glibcpp_cv_func__isinff_use=no
8441 fi
8442 rm -f conftest*
8443       ac_ext=c
8444 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8445 ac_cpp='$CPP $CPPFLAGS'
8446 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8447 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8448 cross_compiling=$ac_cv_prog_cc_cross
8449
8450     
8451 fi
8452
8453   fi
8454   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8455
8456     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8457       for ac_func in _isinff
8458 do
8459 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8460 echo "configure:8461: checking for $ac_func" >&5
8461 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8462   echo $ac_n "(cached) $ac_c" 1>&6
8463 else
8464   cat > conftest.$ac_ext <<EOF
8465 #line 8466 "configure"
8466 #include "confdefs.h"
8467 /* System header to define __stub macros and hopefully few prototypes,
8468     which can conflict with char $ac_func(); below.  */
8469 #include <assert.h>
8470 /* Override any gcc2 internal prototype to avoid an error.  */
8471 /* We use char because int might match the return type of a gcc2
8472     builtin and then its argument prototype would still apply.  */
8473 char $ac_func();
8474
8475 int main() {
8476
8477 /* The GNU C library defines this for functions which it implements
8478     to always fail with ENOSYS.  Some functions are actually named
8479     something starting with __ and the normal name is an alias.  */
8480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8481 choke me
8482 #else
8483 $ac_func();
8484 #endif
8485
8486 ; return 0; }
8487 EOF
8488 if { (eval echo configure:8489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8489   rm -rf conftest*
8490   eval "ac_cv_func_$ac_func=yes"
8491 else
8492   echo "configure: failed program was:" >&5
8493   cat conftest.$ac_ext >&5
8494   rm -rf conftest*
8495   eval "ac_cv_func_$ac_func=no"
8496 fi
8497 rm -f conftest*
8498 fi
8499
8500 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8501   echo "$ac_t""yes" 1>&6
8502     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8503   cat >> confdefs.h <<EOF
8504 #define $ac_tr_func 1
8505 EOF
8506  
8507 else
8508   echo "$ac_t""no" 1>&6
8509 fi
8510 done
8511     
8512     fi
8513   fi
8514
8515   
8516   
8517   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
8518 echo "configure:8519: checking for fabsf declaration" >&5
8519   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
8520     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
8521   echo $ac_n "(cached) $ac_c" 1>&6
8522 else
8523   
8524       
8525       ac_ext=C
8526 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8527 ac_cpp='$CXXCPP $CPPFLAGS'
8528 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8529 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8530 cross_compiling=$ac_cv_prog_cxx_cross
8531
8532       cat > conftest.$ac_ext <<EOF
8533 #line 8534 "configure"
8534 #include "confdefs.h"
8535 #include <math.h>
8536                       #ifdef HAVE_IEEEFP_H
8537                       #include <ieeefp.h>
8538                       #endif
8539                      
8540 int main() {
8541  fabsf(0);
8542 ; return 0; }
8543 EOF
8544 if { (eval echo configure:8545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8545   rm -rf conftest*
8546   glibcpp_cv_func_fabsf_use=yes
8547 else
8548   echo "configure: failed program was:" >&5
8549   cat conftest.$ac_ext >&5
8550   rm -rf conftest*
8551   glibcpp_cv_func_fabsf_use=no
8552 fi
8553 rm -f conftest*
8554       ac_ext=c
8555 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8556 ac_cpp='$CPP $CPPFLAGS'
8557 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8558 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8559 cross_compiling=$ac_cv_prog_cc_cross
8560
8561     
8562 fi
8563
8564   fi
8565   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
8566
8567   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
8568     for ac_func in fabsf
8569 do
8570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8571 echo "configure:8572: checking for $ac_func" >&5
8572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8573   echo $ac_n "(cached) $ac_c" 1>&6
8574 else
8575   cat > conftest.$ac_ext <<EOF
8576 #line 8577 "configure"
8577 #include "confdefs.h"
8578 /* System header to define __stub macros and hopefully few prototypes,
8579     which can conflict with char $ac_func(); below.  */
8580 #include <assert.h>
8581 /* Override any gcc2 internal prototype to avoid an error.  */
8582 /* We use char because int might match the return type of a gcc2
8583     builtin and then its argument prototype would still apply.  */
8584 char $ac_func();
8585
8586 int main() {
8587
8588 /* The GNU C library defines this for functions which it implements
8589     to always fail with ENOSYS.  Some functions are actually named
8590     something starting with __ and the normal name is an alias.  */
8591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8592 choke me
8593 #else
8594 $ac_func();
8595 #endif
8596
8597 ; return 0; }
8598 EOF
8599 if { (eval echo configure:8600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8600   rm -rf conftest*
8601   eval "ac_cv_func_$ac_func=yes"
8602 else
8603   echo "configure: failed program was:" >&5
8604   cat conftest.$ac_ext >&5
8605   rm -rf conftest*
8606   eval "ac_cv_func_$ac_func=no"
8607 fi
8608 rm -f conftest*
8609 fi
8610
8611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8612   echo "$ac_t""yes" 1>&6
8613     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8614   cat >> confdefs.h <<EOF
8615 #define $ac_tr_func 1
8616 EOF
8617  
8618 else
8619   echo "$ac_t""no" 1>&6
8620 fi
8621 done
8622     
8623   else
8624     
8625   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
8626 echo "configure:8627: checking for _fabsf declaration" >&5
8627   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
8628     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
8629   echo $ac_n "(cached) $ac_c" 1>&6
8630 else
8631   
8632       
8633       ac_ext=C
8634 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8635 ac_cpp='$CXXCPP $CPPFLAGS'
8636 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8637 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8638 cross_compiling=$ac_cv_prog_cxx_cross
8639
8640       cat > conftest.$ac_ext <<EOF
8641 #line 8642 "configure"
8642 #include "confdefs.h"
8643 #include <math.h>
8644                       #ifdef HAVE_IEEEFP_H
8645                       #include <ieeefp.h>
8646                       #endif
8647                      
8648 int main() {
8649  _fabsf(0);
8650 ; return 0; }
8651 EOF
8652 if { (eval echo configure:8653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8653   rm -rf conftest*
8654   glibcpp_cv_func__fabsf_use=yes
8655 else
8656   echo "configure: failed program was:" >&5
8657   cat conftest.$ac_ext >&5
8658   rm -rf conftest*
8659   glibcpp_cv_func__fabsf_use=no
8660 fi
8661 rm -f conftest*
8662       ac_ext=c
8663 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8664 ac_cpp='$CPP $CPPFLAGS'
8665 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8666 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8667 cross_compiling=$ac_cv_prog_cc_cross
8668
8669     
8670 fi
8671
8672   fi
8673   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
8674
8675     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
8676       for ac_func in _fabsf
8677 do
8678 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8679 echo "configure:8680: checking for $ac_func" >&5
8680 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8681   echo $ac_n "(cached) $ac_c" 1>&6
8682 else
8683   cat > conftest.$ac_ext <<EOF
8684 #line 8685 "configure"
8685 #include "confdefs.h"
8686 /* System header to define __stub macros and hopefully few prototypes,
8687     which can conflict with char $ac_func(); below.  */
8688 #include <assert.h>
8689 /* Override any gcc2 internal prototype to avoid an error.  */
8690 /* We use char because int might match the return type of a gcc2
8691     builtin and then its argument prototype would still apply.  */
8692 char $ac_func();
8693
8694 int main() {
8695
8696 /* The GNU C library defines this for functions which it implements
8697     to always fail with ENOSYS.  Some functions are actually named
8698     something starting with __ and the normal name is an alias.  */
8699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8700 choke me
8701 #else
8702 $ac_func();
8703 #endif
8704
8705 ; return 0; }
8706 EOF
8707 if { (eval echo configure:8708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8708   rm -rf conftest*
8709   eval "ac_cv_func_$ac_func=yes"
8710 else
8711   echo "configure: failed program was:" >&5
8712   cat conftest.$ac_ext >&5
8713   rm -rf conftest*
8714   eval "ac_cv_func_$ac_func=no"
8715 fi
8716 rm -f conftest*
8717 fi
8718
8719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8720   echo "$ac_t""yes" 1>&6
8721     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8722   cat >> confdefs.h <<EOF
8723 #define $ac_tr_func 1
8724 EOF
8725  
8726 else
8727   echo "$ac_t""no" 1>&6
8728 fi
8729 done
8730     
8731     fi
8732   fi
8733
8734   
8735   
8736   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
8737 echo "configure:8738: checking for fmodf declaration" >&5
8738   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
8739     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
8740   echo $ac_n "(cached) $ac_c" 1>&6
8741 else
8742   
8743       
8744       ac_ext=C
8745 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8746 ac_cpp='$CXXCPP $CPPFLAGS'
8747 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8748 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8749 cross_compiling=$ac_cv_prog_cxx_cross
8750
8751       cat > conftest.$ac_ext <<EOF
8752 #line 8753 "configure"
8753 #include "confdefs.h"
8754 #include <math.h>
8755 int main() {
8756  fmodf(0, 0);
8757 ; return 0; }
8758 EOF
8759 if { (eval echo configure:8760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8760   rm -rf conftest*
8761   glibcpp_cv_func_fmodf_use=yes
8762 else
8763   echo "configure: failed program was:" >&5
8764   cat conftest.$ac_ext >&5
8765   rm -rf conftest*
8766   glibcpp_cv_func_fmodf_use=no
8767 fi
8768 rm -f conftest*
8769       ac_ext=c
8770 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8771 ac_cpp='$CPP $CPPFLAGS'
8772 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8773 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8774 cross_compiling=$ac_cv_prog_cc_cross
8775
8776     
8777 fi
8778
8779   fi
8780   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
8781
8782   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
8783     for ac_func in fmodf
8784 do
8785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8786 echo "configure:8787: checking for $ac_func" >&5
8787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8788   echo $ac_n "(cached) $ac_c" 1>&6
8789 else
8790   cat > conftest.$ac_ext <<EOF
8791 #line 8792 "configure"
8792 #include "confdefs.h"
8793 /* System header to define __stub macros and hopefully few prototypes,
8794     which can conflict with char $ac_func(); below.  */
8795 #include <assert.h>
8796 /* Override any gcc2 internal prototype to avoid an error.  */
8797 /* We use char because int might match the return type of a gcc2
8798     builtin and then its argument prototype would still apply.  */
8799 char $ac_func();
8800
8801 int main() {
8802
8803 /* The GNU C library defines this for functions which it implements
8804     to always fail with ENOSYS.  Some functions are actually named
8805     something starting with __ and the normal name is an alias.  */
8806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8807 choke me
8808 #else
8809 $ac_func();
8810 #endif
8811
8812 ; return 0; }
8813 EOF
8814 if { (eval echo configure:8815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8815   rm -rf conftest*
8816   eval "ac_cv_func_$ac_func=yes"
8817 else
8818   echo "configure: failed program was:" >&5
8819   cat conftest.$ac_ext >&5
8820   rm -rf conftest*
8821   eval "ac_cv_func_$ac_func=no"
8822 fi
8823 rm -f conftest*
8824 fi
8825
8826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8827   echo "$ac_t""yes" 1>&6
8828     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8829   cat >> confdefs.h <<EOF
8830 #define $ac_tr_func 1
8831 EOF
8832  
8833 else
8834   echo "$ac_t""no" 1>&6
8835 fi
8836 done
8837     
8838   else
8839     
8840   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
8841 echo "configure:8842: checking for _fmodf declaration" >&5
8842   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
8843     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
8844   echo $ac_n "(cached) $ac_c" 1>&6
8845 else
8846   
8847       
8848       ac_ext=C
8849 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8850 ac_cpp='$CXXCPP $CPPFLAGS'
8851 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8852 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8853 cross_compiling=$ac_cv_prog_cxx_cross
8854
8855       cat > conftest.$ac_ext <<EOF
8856 #line 8857 "configure"
8857 #include "confdefs.h"
8858 #include <math.h>
8859 int main() {
8860  _fmodf(0, 0);
8861 ; return 0; }
8862 EOF
8863 if { (eval echo configure:8864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8864   rm -rf conftest*
8865   glibcpp_cv_func__fmodf_use=yes
8866 else
8867   echo "configure: failed program was:" >&5
8868   cat conftest.$ac_ext >&5
8869   rm -rf conftest*
8870   glibcpp_cv_func__fmodf_use=no
8871 fi
8872 rm -f conftest*
8873       ac_ext=c
8874 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8875 ac_cpp='$CPP $CPPFLAGS'
8876 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8877 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8878 cross_compiling=$ac_cv_prog_cc_cross
8879
8880     
8881 fi
8882
8883   fi
8884   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
8885
8886     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
8887       for ac_func in _fmodf
8888 do
8889 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8890 echo "configure:8891: checking for $ac_func" >&5
8891 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8892   echo $ac_n "(cached) $ac_c" 1>&6
8893 else
8894   cat > conftest.$ac_ext <<EOF
8895 #line 8896 "configure"
8896 #include "confdefs.h"
8897 /* System header to define __stub macros and hopefully few prototypes,
8898     which can conflict with char $ac_func(); below.  */
8899 #include <assert.h>
8900 /* Override any gcc2 internal prototype to avoid an error.  */
8901 /* We use char because int might match the return type of a gcc2
8902     builtin and then its argument prototype would still apply.  */
8903 char $ac_func();
8904
8905 int main() {
8906
8907 /* The GNU C library defines this for functions which it implements
8908     to always fail with ENOSYS.  Some functions are actually named
8909     something starting with __ and the normal name is an alias.  */
8910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8911 choke me
8912 #else
8913 $ac_func();
8914 #endif
8915
8916 ; return 0; }
8917 EOF
8918 if { (eval echo configure:8919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8919   rm -rf conftest*
8920   eval "ac_cv_func_$ac_func=yes"
8921 else
8922   echo "configure: failed program was:" >&5
8923   cat conftest.$ac_ext >&5
8924   rm -rf conftest*
8925   eval "ac_cv_func_$ac_func=no"
8926 fi
8927 rm -f conftest*
8928 fi
8929
8930 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8931   echo "$ac_t""yes" 1>&6
8932     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8933   cat >> confdefs.h <<EOF
8934 #define $ac_tr_func 1
8935 EOF
8936  
8937 else
8938   echo "$ac_t""no" 1>&6
8939 fi
8940 done
8941     
8942     fi
8943   fi
8944
8945   
8946   
8947   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
8948 echo "configure:8949: checking for frexpf declaration" >&5
8949   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
8950     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
8951   echo $ac_n "(cached) $ac_c" 1>&6
8952 else
8953   
8954       
8955       ac_ext=C
8956 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8957 ac_cpp='$CXXCPP $CPPFLAGS'
8958 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8959 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8960 cross_compiling=$ac_cv_prog_cxx_cross
8961
8962       cat > conftest.$ac_ext <<EOF
8963 #line 8964 "configure"
8964 #include "confdefs.h"
8965 #include <math.h>
8966 int main() {
8967  frexpf(0, 0);
8968 ; return 0; }
8969 EOF
8970 if { (eval echo configure:8971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8971   rm -rf conftest*
8972   glibcpp_cv_func_frexpf_use=yes
8973 else
8974   echo "configure: failed program was:" >&5
8975   cat conftest.$ac_ext >&5
8976   rm -rf conftest*
8977   glibcpp_cv_func_frexpf_use=no
8978 fi
8979 rm -f conftest*
8980       ac_ext=c
8981 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8982 ac_cpp='$CPP $CPPFLAGS'
8983 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8984 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8985 cross_compiling=$ac_cv_prog_cc_cross
8986
8987     
8988 fi
8989
8990   fi
8991   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
8992
8993   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
8994     for ac_func in frexpf
8995 do
8996 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8997 echo "configure:8998: checking for $ac_func" >&5
8998 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8999   echo $ac_n "(cached) $ac_c" 1>&6
9000 else
9001   cat > conftest.$ac_ext <<EOF
9002 #line 9003 "configure"
9003 #include "confdefs.h"
9004 /* System header to define __stub macros and hopefully few prototypes,
9005     which can conflict with char $ac_func(); below.  */
9006 #include <assert.h>
9007 /* Override any gcc2 internal prototype to avoid an error.  */
9008 /* We use char because int might match the return type of a gcc2
9009     builtin and then its argument prototype would still apply.  */
9010 char $ac_func();
9011
9012 int main() {
9013
9014 /* The GNU C library defines this for functions which it implements
9015     to always fail with ENOSYS.  Some functions are actually named
9016     something starting with __ and the normal name is an alias.  */
9017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9018 choke me
9019 #else
9020 $ac_func();
9021 #endif
9022
9023 ; return 0; }
9024 EOF
9025 if { (eval echo configure:9026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9026   rm -rf conftest*
9027   eval "ac_cv_func_$ac_func=yes"
9028 else
9029   echo "configure: failed program was:" >&5
9030   cat conftest.$ac_ext >&5
9031   rm -rf conftest*
9032   eval "ac_cv_func_$ac_func=no"
9033 fi
9034 rm -f conftest*
9035 fi
9036
9037 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9038   echo "$ac_t""yes" 1>&6
9039     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9040   cat >> confdefs.h <<EOF
9041 #define $ac_tr_func 1
9042 EOF
9043  
9044 else
9045   echo "$ac_t""no" 1>&6
9046 fi
9047 done
9048     
9049   else
9050     
9051   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
9052 echo "configure:9053: checking for _frexpf declaration" >&5
9053   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
9054     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
9055   echo $ac_n "(cached) $ac_c" 1>&6
9056 else
9057   
9058       
9059       ac_ext=C
9060 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9061 ac_cpp='$CXXCPP $CPPFLAGS'
9062 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9063 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9064 cross_compiling=$ac_cv_prog_cxx_cross
9065
9066       cat > conftest.$ac_ext <<EOF
9067 #line 9068 "configure"
9068 #include "confdefs.h"
9069 #include <math.h>
9070 int main() {
9071  _frexpf(0, 0);
9072 ; return 0; }
9073 EOF
9074 if { (eval echo configure:9075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9075   rm -rf conftest*
9076   glibcpp_cv_func__frexpf_use=yes
9077 else
9078   echo "configure: failed program was:" >&5
9079   cat conftest.$ac_ext >&5
9080   rm -rf conftest*
9081   glibcpp_cv_func__frexpf_use=no
9082 fi
9083 rm -f conftest*
9084       ac_ext=c
9085 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9086 ac_cpp='$CPP $CPPFLAGS'
9087 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9088 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9089 cross_compiling=$ac_cv_prog_cc_cross
9090
9091     
9092 fi
9093
9094   fi
9095   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
9096
9097     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
9098       for ac_func in _frexpf
9099 do
9100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9101 echo "configure:9102: checking for $ac_func" >&5
9102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9103   echo $ac_n "(cached) $ac_c" 1>&6
9104 else
9105   cat > conftest.$ac_ext <<EOF
9106 #line 9107 "configure"
9107 #include "confdefs.h"
9108 /* System header to define __stub macros and hopefully few prototypes,
9109     which can conflict with char $ac_func(); below.  */
9110 #include <assert.h>
9111 /* Override any gcc2 internal prototype to avoid an error.  */
9112 /* We use char because int might match the return type of a gcc2
9113     builtin and then its argument prototype would still apply.  */
9114 char $ac_func();
9115
9116 int main() {
9117
9118 /* The GNU C library defines this for functions which it implements
9119     to always fail with ENOSYS.  Some functions are actually named
9120     something starting with __ and the normal name is an alias.  */
9121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9122 choke me
9123 #else
9124 $ac_func();
9125 #endif
9126
9127 ; return 0; }
9128 EOF
9129 if { (eval echo configure:9130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9130   rm -rf conftest*
9131   eval "ac_cv_func_$ac_func=yes"
9132 else
9133   echo "configure: failed program was:" >&5
9134   cat conftest.$ac_ext >&5
9135   rm -rf conftest*
9136   eval "ac_cv_func_$ac_func=no"
9137 fi
9138 rm -f conftest*
9139 fi
9140
9141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9142   echo "$ac_t""yes" 1>&6
9143     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9144   cat >> confdefs.h <<EOF
9145 #define $ac_tr_func 1
9146 EOF
9147  
9148 else
9149   echo "$ac_t""no" 1>&6
9150 fi
9151 done
9152     
9153     fi
9154   fi
9155
9156   
9157   
9158   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
9159 echo "configure:9160: checking for ldexpf declaration" >&5
9160   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
9161     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
9162   echo $ac_n "(cached) $ac_c" 1>&6
9163 else
9164   
9165       
9166       ac_ext=C
9167 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9168 ac_cpp='$CXXCPP $CPPFLAGS'
9169 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9170 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9171 cross_compiling=$ac_cv_prog_cxx_cross
9172
9173       cat > conftest.$ac_ext <<EOF
9174 #line 9175 "configure"
9175 #include "confdefs.h"
9176 #include <math.h>
9177 int main() {
9178  ldexpf(0, 0);
9179 ; return 0; }
9180 EOF
9181 if { (eval echo configure:9182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9182   rm -rf conftest*
9183   glibcpp_cv_func_ldexpf_use=yes
9184 else
9185   echo "configure: failed program was:" >&5
9186   cat conftest.$ac_ext >&5
9187   rm -rf conftest*
9188   glibcpp_cv_func_ldexpf_use=no
9189 fi
9190 rm -f conftest*
9191       ac_ext=c
9192 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9193 ac_cpp='$CPP $CPPFLAGS'
9194 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9195 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9196 cross_compiling=$ac_cv_prog_cc_cross
9197
9198     
9199 fi
9200
9201   fi
9202   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
9203
9204   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
9205     for ac_func in ldexpf
9206 do
9207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9208 echo "configure:9209: checking for $ac_func" >&5
9209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9210   echo $ac_n "(cached) $ac_c" 1>&6
9211 else
9212   cat > conftest.$ac_ext <<EOF
9213 #line 9214 "configure"
9214 #include "confdefs.h"
9215 /* System header to define __stub macros and hopefully few prototypes,
9216     which can conflict with char $ac_func(); below.  */
9217 #include <assert.h>
9218 /* Override any gcc2 internal prototype to avoid an error.  */
9219 /* We use char because int might match the return type of a gcc2
9220     builtin and then its argument prototype would still apply.  */
9221 char $ac_func();
9222
9223 int main() {
9224
9225 /* The GNU C library defines this for functions which it implements
9226     to always fail with ENOSYS.  Some functions are actually named
9227     something starting with __ and the normal name is an alias.  */
9228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9229 choke me
9230 #else
9231 $ac_func();
9232 #endif
9233
9234 ; return 0; }
9235 EOF
9236 if { (eval echo configure:9237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9237   rm -rf conftest*
9238   eval "ac_cv_func_$ac_func=yes"
9239 else
9240   echo "configure: failed program was:" >&5
9241   cat conftest.$ac_ext >&5
9242   rm -rf conftest*
9243   eval "ac_cv_func_$ac_func=no"
9244 fi
9245 rm -f conftest*
9246 fi
9247
9248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9249   echo "$ac_t""yes" 1>&6
9250     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9251   cat >> confdefs.h <<EOF
9252 #define $ac_tr_func 1
9253 EOF
9254  
9255 else
9256   echo "$ac_t""no" 1>&6
9257 fi
9258 done
9259     
9260   else
9261     
9262   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
9263 echo "configure:9264: checking for _ldexpf declaration" >&5
9264   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
9265     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
9266   echo $ac_n "(cached) $ac_c" 1>&6
9267 else
9268   
9269       
9270       ac_ext=C
9271 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9272 ac_cpp='$CXXCPP $CPPFLAGS'
9273 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9274 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9275 cross_compiling=$ac_cv_prog_cxx_cross
9276
9277       cat > conftest.$ac_ext <<EOF
9278 #line 9279 "configure"
9279 #include "confdefs.h"
9280 #include <math.h>
9281 int main() {
9282  _ldexpf(0, 0);
9283 ; return 0; }
9284 EOF
9285 if { (eval echo configure:9286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9286   rm -rf conftest*
9287   glibcpp_cv_func__ldexpf_use=yes
9288 else
9289   echo "configure: failed program was:" >&5
9290   cat conftest.$ac_ext >&5
9291   rm -rf conftest*
9292   glibcpp_cv_func__ldexpf_use=no
9293 fi
9294 rm -f conftest*
9295       ac_ext=c
9296 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9297 ac_cpp='$CPP $CPPFLAGS'
9298 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9299 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9300 cross_compiling=$ac_cv_prog_cc_cross
9301
9302     
9303 fi
9304
9305   fi
9306   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
9307
9308     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
9309       for ac_func in _ldexpf
9310 do
9311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9312 echo "configure:9313: checking for $ac_func" >&5
9313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9314   echo $ac_n "(cached) $ac_c" 1>&6
9315 else
9316   cat > conftest.$ac_ext <<EOF
9317 #line 9318 "configure"
9318 #include "confdefs.h"
9319 /* System header to define __stub macros and hopefully few prototypes,
9320     which can conflict with char $ac_func(); below.  */
9321 #include <assert.h>
9322 /* Override any gcc2 internal prototype to avoid an error.  */
9323 /* We use char because int might match the return type of a gcc2
9324     builtin and then its argument prototype would still apply.  */
9325 char $ac_func();
9326
9327 int main() {
9328
9329 /* The GNU C library defines this for functions which it implements
9330     to always fail with ENOSYS.  Some functions are actually named
9331     something starting with __ and the normal name is an alias.  */
9332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9333 choke me
9334 #else
9335 $ac_func();
9336 #endif
9337
9338 ; return 0; }
9339 EOF
9340 if { (eval echo configure:9341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9341   rm -rf conftest*
9342   eval "ac_cv_func_$ac_func=yes"
9343 else
9344   echo "configure: failed program was:" >&5
9345   cat conftest.$ac_ext >&5
9346   rm -rf conftest*
9347   eval "ac_cv_func_$ac_func=no"
9348 fi
9349 rm -f conftest*
9350 fi
9351
9352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9353   echo "$ac_t""yes" 1>&6
9354     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9355   cat >> confdefs.h <<EOF
9356 #define $ac_tr_func 1
9357 EOF
9358  
9359 else
9360   echo "$ac_t""no" 1>&6
9361 fi
9362 done
9363     
9364     fi
9365   fi
9366
9367   
9368   
9369   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
9370 echo "configure:9371: checking for logf declaration" >&5
9371   if test x${glibcpp_cv_func_logf_use+set} != xset; then
9372     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
9373   echo $ac_n "(cached) $ac_c" 1>&6
9374 else
9375   
9376       
9377       ac_ext=C
9378 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9379 ac_cpp='$CXXCPP $CPPFLAGS'
9380 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9381 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9382 cross_compiling=$ac_cv_prog_cxx_cross
9383
9384       cat > conftest.$ac_ext <<EOF
9385 #line 9386 "configure"
9386 #include "confdefs.h"
9387 #include <math.h>
9388                       #ifdef HAVE_IEEEFP_H
9389                       #include <ieeefp.h>
9390                       #endif
9391                      
9392 int main() {
9393  logf(0);
9394 ; return 0; }
9395 EOF
9396 if { (eval echo configure:9397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9397   rm -rf conftest*
9398   glibcpp_cv_func_logf_use=yes
9399 else
9400   echo "configure: failed program was:" >&5
9401   cat conftest.$ac_ext >&5
9402   rm -rf conftest*
9403   glibcpp_cv_func_logf_use=no
9404 fi
9405 rm -f conftest*
9406       ac_ext=c
9407 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9408 ac_cpp='$CPP $CPPFLAGS'
9409 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9410 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9411 cross_compiling=$ac_cv_prog_cc_cross
9412
9413     
9414 fi
9415
9416   fi
9417   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
9418
9419   if test x$glibcpp_cv_func_logf_use = x"yes"; then
9420     for ac_func in logf
9421 do
9422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9423 echo "configure:9424: checking for $ac_func" >&5
9424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9425   echo $ac_n "(cached) $ac_c" 1>&6
9426 else
9427   cat > conftest.$ac_ext <<EOF
9428 #line 9429 "configure"
9429 #include "confdefs.h"
9430 /* System header to define __stub macros and hopefully few prototypes,
9431     which can conflict with char $ac_func(); below.  */
9432 #include <assert.h>
9433 /* Override any gcc2 internal prototype to avoid an error.  */
9434 /* We use char because int might match the return type of a gcc2
9435     builtin and then its argument prototype would still apply.  */
9436 char $ac_func();
9437
9438 int main() {
9439
9440 /* The GNU C library defines this for functions which it implements
9441     to always fail with ENOSYS.  Some functions are actually named
9442     something starting with __ and the normal name is an alias.  */
9443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9444 choke me
9445 #else
9446 $ac_func();
9447 #endif
9448
9449 ; return 0; }
9450 EOF
9451 if { (eval echo configure:9452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9452   rm -rf conftest*
9453   eval "ac_cv_func_$ac_func=yes"
9454 else
9455   echo "configure: failed program was:" >&5
9456   cat conftest.$ac_ext >&5
9457   rm -rf conftest*
9458   eval "ac_cv_func_$ac_func=no"
9459 fi
9460 rm -f conftest*
9461 fi
9462
9463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9464   echo "$ac_t""yes" 1>&6
9465     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9466   cat >> confdefs.h <<EOF
9467 #define $ac_tr_func 1
9468 EOF
9469  
9470 else
9471   echo "$ac_t""no" 1>&6
9472 fi
9473 done
9474     
9475   else
9476     
9477   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
9478 echo "configure:9479: checking for _logf declaration" >&5
9479   if test x${glibcpp_cv_func__logf_use+set} != xset; then
9480     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
9481   echo $ac_n "(cached) $ac_c" 1>&6
9482 else
9483   
9484       
9485       ac_ext=C
9486 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9487 ac_cpp='$CXXCPP $CPPFLAGS'
9488 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9489 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9490 cross_compiling=$ac_cv_prog_cxx_cross
9491
9492       cat > conftest.$ac_ext <<EOF
9493 #line 9494 "configure"
9494 #include "confdefs.h"
9495 #include <math.h>
9496                       #ifdef HAVE_IEEEFP_H
9497                       #include <ieeefp.h>
9498                       #endif
9499                      
9500 int main() {
9501  _logf(0);
9502 ; return 0; }
9503 EOF
9504 if { (eval echo configure:9505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9505   rm -rf conftest*
9506   glibcpp_cv_func__logf_use=yes
9507 else
9508   echo "configure: failed program was:" >&5
9509   cat conftest.$ac_ext >&5
9510   rm -rf conftest*
9511   glibcpp_cv_func__logf_use=no
9512 fi
9513 rm -f conftest*
9514       ac_ext=c
9515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9516 ac_cpp='$CPP $CPPFLAGS'
9517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9519 cross_compiling=$ac_cv_prog_cc_cross
9520
9521     
9522 fi
9523
9524   fi
9525   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
9526
9527     if test x$glibcpp_cv_func__logf_use = x"yes"; then
9528       for ac_func in _logf
9529 do
9530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9531 echo "configure:9532: checking for $ac_func" >&5
9532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9533   echo $ac_n "(cached) $ac_c" 1>&6
9534 else
9535   cat > conftest.$ac_ext <<EOF
9536 #line 9537 "configure"
9537 #include "confdefs.h"
9538 /* System header to define __stub macros and hopefully few prototypes,
9539     which can conflict with char $ac_func(); below.  */
9540 #include <assert.h>
9541 /* Override any gcc2 internal prototype to avoid an error.  */
9542 /* We use char because int might match the return type of a gcc2
9543     builtin and then its argument prototype would still apply.  */
9544 char $ac_func();
9545
9546 int main() {
9547
9548 /* The GNU C library defines this for functions which it implements
9549     to always fail with ENOSYS.  Some functions are actually named
9550     something starting with __ and the normal name is an alias.  */
9551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9552 choke me
9553 #else
9554 $ac_func();
9555 #endif
9556
9557 ; return 0; }
9558 EOF
9559 if { (eval echo configure:9560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9560   rm -rf conftest*
9561   eval "ac_cv_func_$ac_func=yes"
9562 else
9563   echo "configure: failed program was:" >&5
9564   cat conftest.$ac_ext >&5
9565   rm -rf conftest*
9566   eval "ac_cv_func_$ac_func=no"
9567 fi
9568 rm -f conftest*
9569 fi
9570
9571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9572   echo "$ac_t""yes" 1>&6
9573     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9574   cat >> confdefs.h <<EOF
9575 #define $ac_tr_func 1
9576 EOF
9577  
9578 else
9579   echo "$ac_t""no" 1>&6
9580 fi
9581 done
9582     
9583     fi
9584   fi
9585
9586   
9587   
9588   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
9589 echo "configure:9590: checking for log10f declaration" >&5
9590   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
9591     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
9592   echo $ac_n "(cached) $ac_c" 1>&6
9593 else
9594   
9595       
9596       ac_ext=C
9597 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9598 ac_cpp='$CXXCPP $CPPFLAGS'
9599 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9600 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9601 cross_compiling=$ac_cv_prog_cxx_cross
9602
9603       cat > conftest.$ac_ext <<EOF
9604 #line 9605 "configure"
9605 #include "confdefs.h"
9606 #include <math.h>
9607                       #ifdef HAVE_IEEEFP_H
9608                       #include <ieeefp.h>
9609                       #endif
9610                      
9611 int main() {
9612  log10f(0);
9613 ; return 0; }
9614 EOF
9615 if { (eval echo configure:9616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9616   rm -rf conftest*
9617   glibcpp_cv_func_log10f_use=yes
9618 else
9619   echo "configure: failed program was:" >&5
9620   cat conftest.$ac_ext >&5
9621   rm -rf conftest*
9622   glibcpp_cv_func_log10f_use=no
9623 fi
9624 rm -f conftest*
9625       ac_ext=c
9626 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9627 ac_cpp='$CPP $CPPFLAGS'
9628 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9629 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9630 cross_compiling=$ac_cv_prog_cc_cross
9631
9632     
9633 fi
9634
9635   fi
9636   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
9637
9638   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
9639     for ac_func in log10f
9640 do
9641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9642 echo "configure:9643: checking for $ac_func" >&5
9643 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9644   echo $ac_n "(cached) $ac_c" 1>&6
9645 else
9646   cat > conftest.$ac_ext <<EOF
9647 #line 9648 "configure"
9648 #include "confdefs.h"
9649 /* System header to define __stub macros and hopefully few prototypes,
9650     which can conflict with char $ac_func(); below.  */
9651 #include <assert.h>
9652 /* Override any gcc2 internal prototype to avoid an error.  */
9653 /* We use char because int might match the return type of a gcc2
9654     builtin and then its argument prototype would still apply.  */
9655 char $ac_func();
9656
9657 int main() {
9658
9659 /* The GNU C library defines this for functions which it implements
9660     to always fail with ENOSYS.  Some functions are actually named
9661     something starting with __ and the normal name is an alias.  */
9662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9663 choke me
9664 #else
9665 $ac_func();
9666 #endif
9667
9668 ; return 0; }
9669 EOF
9670 if { (eval echo configure:9671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9671   rm -rf conftest*
9672   eval "ac_cv_func_$ac_func=yes"
9673 else
9674   echo "configure: failed program was:" >&5
9675   cat conftest.$ac_ext >&5
9676   rm -rf conftest*
9677   eval "ac_cv_func_$ac_func=no"
9678 fi
9679 rm -f conftest*
9680 fi
9681
9682 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9683   echo "$ac_t""yes" 1>&6
9684     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9685   cat >> confdefs.h <<EOF
9686 #define $ac_tr_func 1
9687 EOF
9688  
9689 else
9690   echo "$ac_t""no" 1>&6
9691 fi
9692 done
9693     
9694   else
9695     
9696   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
9697 echo "configure:9698: checking for _log10f declaration" >&5
9698   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
9699     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
9700   echo $ac_n "(cached) $ac_c" 1>&6
9701 else
9702   
9703       
9704       ac_ext=C
9705 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9706 ac_cpp='$CXXCPP $CPPFLAGS'
9707 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9708 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9709 cross_compiling=$ac_cv_prog_cxx_cross
9710
9711       cat > conftest.$ac_ext <<EOF
9712 #line 9713 "configure"
9713 #include "confdefs.h"
9714 #include <math.h>
9715                       #ifdef HAVE_IEEEFP_H
9716                       #include <ieeefp.h>
9717                       #endif
9718                      
9719 int main() {
9720  _log10f(0);
9721 ; return 0; }
9722 EOF
9723 if { (eval echo configure:9724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9724   rm -rf conftest*
9725   glibcpp_cv_func__log10f_use=yes
9726 else
9727   echo "configure: failed program was:" >&5
9728   cat conftest.$ac_ext >&5
9729   rm -rf conftest*
9730   glibcpp_cv_func__log10f_use=no
9731 fi
9732 rm -f conftest*
9733       ac_ext=c
9734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9735 ac_cpp='$CPP $CPPFLAGS'
9736 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9737 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9738 cross_compiling=$ac_cv_prog_cc_cross
9739
9740     
9741 fi
9742
9743   fi
9744   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
9745
9746     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
9747       for ac_func in _log10f
9748 do
9749 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9750 echo "configure:9751: checking for $ac_func" >&5
9751 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9752   echo $ac_n "(cached) $ac_c" 1>&6
9753 else
9754   cat > conftest.$ac_ext <<EOF
9755 #line 9756 "configure"
9756 #include "confdefs.h"
9757 /* System header to define __stub macros and hopefully few prototypes,
9758     which can conflict with char $ac_func(); below.  */
9759 #include <assert.h>
9760 /* Override any gcc2 internal prototype to avoid an error.  */
9761 /* We use char because int might match the return type of a gcc2
9762     builtin and then its argument prototype would still apply.  */
9763 char $ac_func();
9764
9765 int main() {
9766
9767 /* The GNU C library defines this for functions which it implements
9768     to always fail with ENOSYS.  Some functions are actually named
9769     something starting with __ and the normal name is an alias.  */
9770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9771 choke me
9772 #else
9773 $ac_func();
9774 #endif
9775
9776 ; return 0; }
9777 EOF
9778 if { (eval echo configure:9779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9779   rm -rf conftest*
9780   eval "ac_cv_func_$ac_func=yes"
9781 else
9782   echo "configure: failed program was:" >&5
9783   cat conftest.$ac_ext >&5
9784   rm -rf conftest*
9785   eval "ac_cv_func_$ac_func=no"
9786 fi
9787 rm -f conftest*
9788 fi
9789
9790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9791   echo "$ac_t""yes" 1>&6
9792     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9793   cat >> confdefs.h <<EOF
9794 #define $ac_tr_func 1
9795 EOF
9796  
9797 else
9798   echo "$ac_t""no" 1>&6
9799 fi
9800 done
9801     
9802     fi
9803   fi
9804
9805   
9806   
9807   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
9808 echo "configure:9809: checking for modff declaration" >&5
9809   if test x${glibcpp_cv_func_modff_use+set} != xset; then
9810     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
9811   echo $ac_n "(cached) $ac_c" 1>&6
9812 else
9813   
9814       
9815       ac_ext=C
9816 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9817 ac_cpp='$CXXCPP $CPPFLAGS'
9818 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9819 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9820 cross_compiling=$ac_cv_prog_cxx_cross
9821
9822       cat > conftest.$ac_ext <<EOF
9823 #line 9824 "configure"
9824 #include "confdefs.h"
9825 #include <math.h>
9826 int main() {
9827  modff(0, 0);
9828 ; return 0; }
9829 EOF
9830 if { (eval echo configure:9831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9831   rm -rf conftest*
9832   glibcpp_cv_func_modff_use=yes
9833 else
9834   echo "configure: failed program was:" >&5
9835   cat conftest.$ac_ext >&5
9836   rm -rf conftest*
9837   glibcpp_cv_func_modff_use=no
9838 fi
9839 rm -f conftest*
9840       ac_ext=c
9841 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9842 ac_cpp='$CPP $CPPFLAGS'
9843 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9844 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9845 cross_compiling=$ac_cv_prog_cc_cross
9846
9847     
9848 fi
9849
9850   fi
9851   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
9852
9853   if test x$glibcpp_cv_func_modff_use = x"yes"; then
9854     for ac_func in modff
9855 do
9856 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9857 echo "configure:9858: checking for $ac_func" >&5
9858 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9859   echo $ac_n "(cached) $ac_c" 1>&6
9860 else
9861   cat > conftest.$ac_ext <<EOF
9862 #line 9863 "configure"
9863 #include "confdefs.h"
9864 /* System header to define __stub macros and hopefully few prototypes,
9865     which can conflict with char $ac_func(); below.  */
9866 #include <assert.h>
9867 /* Override any gcc2 internal prototype to avoid an error.  */
9868 /* We use char because int might match the return type of a gcc2
9869     builtin and then its argument prototype would still apply.  */
9870 char $ac_func();
9871
9872 int main() {
9873
9874 /* The GNU C library defines this for functions which it implements
9875     to always fail with ENOSYS.  Some functions are actually named
9876     something starting with __ and the normal name is an alias.  */
9877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9878 choke me
9879 #else
9880 $ac_func();
9881 #endif
9882
9883 ; return 0; }
9884 EOF
9885 if { (eval echo configure:9886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9886   rm -rf conftest*
9887   eval "ac_cv_func_$ac_func=yes"
9888 else
9889   echo "configure: failed program was:" >&5
9890   cat conftest.$ac_ext >&5
9891   rm -rf conftest*
9892   eval "ac_cv_func_$ac_func=no"
9893 fi
9894 rm -f conftest*
9895 fi
9896
9897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9898   echo "$ac_t""yes" 1>&6
9899     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9900   cat >> confdefs.h <<EOF
9901 #define $ac_tr_func 1
9902 EOF
9903  
9904 else
9905   echo "$ac_t""no" 1>&6
9906 fi
9907 done
9908     
9909   else
9910     
9911   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
9912 echo "configure:9913: checking for _modff declaration" >&5
9913   if test x${glibcpp_cv_func__modff_use+set} != xset; then
9914     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
9915   echo $ac_n "(cached) $ac_c" 1>&6
9916 else
9917   
9918       
9919       ac_ext=C
9920 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9921 ac_cpp='$CXXCPP $CPPFLAGS'
9922 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9923 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9924 cross_compiling=$ac_cv_prog_cxx_cross
9925
9926       cat > conftest.$ac_ext <<EOF
9927 #line 9928 "configure"
9928 #include "confdefs.h"
9929 #include <math.h>
9930 int main() {
9931  _modff(0, 0);
9932 ; return 0; }
9933 EOF
9934 if { (eval echo configure:9935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9935   rm -rf conftest*
9936   glibcpp_cv_func__modff_use=yes
9937 else
9938   echo "configure: failed program was:" >&5
9939   cat conftest.$ac_ext >&5
9940   rm -rf conftest*
9941   glibcpp_cv_func__modff_use=no
9942 fi
9943 rm -f conftest*
9944       ac_ext=c
9945 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9946 ac_cpp='$CPP $CPPFLAGS'
9947 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9948 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9949 cross_compiling=$ac_cv_prog_cc_cross
9950
9951     
9952 fi
9953
9954   fi
9955   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
9956
9957     if test x$glibcpp_cv_func__modff_use = x"yes"; then
9958       for ac_func in _modff
9959 do
9960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9961 echo "configure:9962: checking for $ac_func" >&5
9962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9963   echo $ac_n "(cached) $ac_c" 1>&6
9964 else
9965   cat > conftest.$ac_ext <<EOF
9966 #line 9967 "configure"
9967 #include "confdefs.h"
9968 /* System header to define __stub macros and hopefully few prototypes,
9969     which can conflict with char $ac_func(); below.  */
9970 #include <assert.h>
9971 /* Override any gcc2 internal prototype to avoid an error.  */
9972 /* We use char because int might match the return type of a gcc2
9973     builtin and then its argument prototype would still apply.  */
9974 char $ac_func();
9975
9976 int main() {
9977
9978 /* The GNU C library defines this for functions which it implements
9979     to always fail with ENOSYS.  Some functions are actually named
9980     something starting with __ and the normal name is an alias.  */
9981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9982 choke me
9983 #else
9984 $ac_func();
9985 #endif
9986
9987 ; return 0; }
9988 EOF
9989 if { (eval echo configure:9990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9990   rm -rf conftest*
9991   eval "ac_cv_func_$ac_func=yes"
9992 else
9993   echo "configure: failed program was:" >&5
9994   cat conftest.$ac_ext >&5
9995   rm -rf conftest*
9996   eval "ac_cv_func_$ac_func=no"
9997 fi
9998 rm -f conftest*
9999 fi
10000
10001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10002   echo "$ac_t""yes" 1>&6
10003     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10004   cat >> confdefs.h <<EOF
10005 #define $ac_tr_func 1
10006 EOF
10007  
10008 else
10009   echo "$ac_t""no" 1>&6
10010 fi
10011 done
10012     
10013     fi
10014   fi
10015
10016   
10017   
10018   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
10019 echo "configure:10020: checking for powf declaration" >&5
10020   if test x${glibcpp_cv_func_powf_use+set} != xset; then
10021     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
10022   echo $ac_n "(cached) $ac_c" 1>&6
10023 else
10024   
10025       
10026       ac_ext=C
10027 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10028 ac_cpp='$CXXCPP $CPPFLAGS'
10029 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10030 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10031 cross_compiling=$ac_cv_prog_cxx_cross
10032
10033       cat > conftest.$ac_ext <<EOF
10034 #line 10035 "configure"
10035 #include "confdefs.h"
10036 #include <math.h>
10037 int main() {
10038  powf(0, 0);
10039 ; return 0; }
10040 EOF
10041 if { (eval echo configure:10042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10042   rm -rf conftest*
10043   glibcpp_cv_func_powf_use=yes
10044 else
10045   echo "configure: failed program was:" >&5
10046   cat conftest.$ac_ext >&5
10047   rm -rf conftest*
10048   glibcpp_cv_func_powf_use=no
10049 fi
10050 rm -f conftest*
10051       ac_ext=c
10052 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10053 ac_cpp='$CPP $CPPFLAGS'
10054 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10055 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10056 cross_compiling=$ac_cv_prog_cc_cross
10057
10058     
10059 fi
10060
10061   fi
10062   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
10063
10064   if test x$glibcpp_cv_func_powf_use = x"yes"; then
10065     for ac_func in powf
10066 do
10067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10068 echo "configure:10069: checking for $ac_func" >&5
10069 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10070   echo $ac_n "(cached) $ac_c" 1>&6
10071 else
10072   cat > conftest.$ac_ext <<EOF
10073 #line 10074 "configure"
10074 #include "confdefs.h"
10075 /* System header to define __stub macros and hopefully few prototypes,
10076     which can conflict with char $ac_func(); below.  */
10077 #include <assert.h>
10078 /* Override any gcc2 internal prototype to avoid an error.  */
10079 /* We use char because int might match the return type of a gcc2
10080     builtin and then its argument prototype would still apply.  */
10081 char $ac_func();
10082
10083 int main() {
10084
10085 /* The GNU C library defines this for functions which it implements
10086     to always fail with ENOSYS.  Some functions are actually named
10087     something starting with __ and the normal name is an alias.  */
10088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10089 choke me
10090 #else
10091 $ac_func();
10092 #endif
10093
10094 ; return 0; }
10095 EOF
10096 if { (eval echo configure:10097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10097   rm -rf conftest*
10098   eval "ac_cv_func_$ac_func=yes"
10099 else
10100   echo "configure: failed program was:" >&5
10101   cat conftest.$ac_ext >&5
10102   rm -rf conftest*
10103   eval "ac_cv_func_$ac_func=no"
10104 fi
10105 rm -f conftest*
10106 fi
10107
10108 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10109   echo "$ac_t""yes" 1>&6
10110     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10111   cat >> confdefs.h <<EOF
10112 #define $ac_tr_func 1
10113 EOF
10114  
10115 else
10116   echo "$ac_t""no" 1>&6
10117 fi
10118 done
10119     
10120   else
10121     
10122   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
10123 echo "configure:10124: checking for _powf declaration" >&5
10124   if test x${glibcpp_cv_func__powf_use+set} != xset; then
10125     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
10126   echo $ac_n "(cached) $ac_c" 1>&6
10127 else
10128   
10129       
10130       ac_ext=C
10131 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10132 ac_cpp='$CXXCPP $CPPFLAGS'
10133 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10134 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10135 cross_compiling=$ac_cv_prog_cxx_cross
10136
10137       cat > conftest.$ac_ext <<EOF
10138 #line 10139 "configure"
10139 #include "confdefs.h"
10140 #include <math.h>
10141 int main() {
10142  _powf(0, 0);
10143 ; return 0; }
10144 EOF
10145 if { (eval echo configure:10146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10146   rm -rf conftest*
10147   glibcpp_cv_func__powf_use=yes
10148 else
10149   echo "configure: failed program was:" >&5
10150   cat conftest.$ac_ext >&5
10151   rm -rf conftest*
10152   glibcpp_cv_func__powf_use=no
10153 fi
10154 rm -f conftest*
10155       ac_ext=c
10156 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10157 ac_cpp='$CPP $CPPFLAGS'
10158 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10159 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10160 cross_compiling=$ac_cv_prog_cc_cross
10161
10162     
10163 fi
10164
10165   fi
10166   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
10167
10168     if test x$glibcpp_cv_func__powf_use = x"yes"; then
10169       for ac_func in _powf
10170 do
10171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10172 echo "configure:10173: checking for $ac_func" >&5
10173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10174   echo $ac_n "(cached) $ac_c" 1>&6
10175 else
10176   cat > conftest.$ac_ext <<EOF
10177 #line 10178 "configure"
10178 #include "confdefs.h"
10179 /* System header to define __stub macros and hopefully few prototypes,
10180     which can conflict with char $ac_func(); below.  */
10181 #include <assert.h>
10182 /* Override any gcc2 internal prototype to avoid an error.  */
10183 /* We use char because int might match the return type of a gcc2
10184     builtin and then its argument prototype would still apply.  */
10185 char $ac_func();
10186
10187 int main() {
10188
10189 /* The GNU C library defines this for functions which it implements
10190     to always fail with ENOSYS.  Some functions are actually named
10191     something starting with __ and the normal name is an alias.  */
10192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10193 choke me
10194 #else
10195 $ac_func();
10196 #endif
10197
10198 ; return 0; }
10199 EOF
10200 if { (eval echo configure:10201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10201   rm -rf conftest*
10202   eval "ac_cv_func_$ac_func=yes"
10203 else
10204   echo "configure: failed program was:" >&5
10205   cat conftest.$ac_ext >&5
10206   rm -rf conftest*
10207   eval "ac_cv_func_$ac_func=no"
10208 fi
10209 rm -f conftest*
10210 fi
10211
10212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10213   echo "$ac_t""yes" 1>&6
10214     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10215   cat >> confdefs.h <<EOF
10216 #define $ac_tr_func 1
10217 EOF
10218  
10219 else
10220   echo "$ac_t""no" 1>&6
10221 fi
10222 done
10223     
10224     fi
10225   fi
10226
10227   
10228   
10229   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
10230 echo "configure:10231: checking for sqrtf declaration" >&5
10231   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
10232     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
10233   echo $ac_n "(cached) $ac_c" 1>&6
10234 else
10235   
10236       
10237       ac_ext=C
10238 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10239 ac_cpp='$CXXCPP $CPPFLAGS'
10240 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10241 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10242 cross_compiling=$ac_cv_prog_cxx_cross
10243
10244       cat > conftest.$ac_ext <<EOF
10245 #line 10246 "configure"
10246 #include "confdefs.h"
10247 #include <math.h>
10248                       #ifdef HAVE_IEEEFP_H
10249                       #include <ieeefp.h>
10250                       #endif
10251                      
10252 int main() {
10253  sqrtf(0);
10254 ; return 0; }
10255 EOF
10256 if { (eval echo configure:10257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10257   rm -rf conftest*
10258   glibcpp_cv_func_sqrtf_use=yes
10259 else
10260   echo "configure: failed program was:" >&5
10261   cat conftest.$ac_ext >&5
10262   rm -rf conftest*
10263   glibcpp_cv_func_sqrtf_use=no
10264 fi
10265 rm -f conftest*
10266       ac_ext=c
10267 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10268 ac_cpp='$CPP $CPPFLAGS'
10269 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10270 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10271 cross_compiling=$ac_cv_prog_cc_cross
10272
10273     
10274 fi
10275
10276   fi
10277   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
10278
10279   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
10280     for ac_func in sqrtf
10281 do
10282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10283 echo "configure:10284: checking for $ac_func" >&5
10284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10285   echo $ac_n "(cached) $ac_c" 1>&6
10286 else
10287   cat > conftest.$ac_ext <<EOF
10288 #line 10289 "configure"
10289 #include "confdefs.h"
10290 /* System header to define __stub macros and hopefully few prototypes,
10291     which can conflict with char $ac_func(); below.  */
10292 #include <assert.h>
10293 /* Override any gcc2 internal prototype to avoid an error.  */
10294 /* We use char because int might match the return type of a gcc2
10295     builtin and then its argument prototype would still apply.  */
10296 char $ac_func();
10297
10298 int main() {
10299
10300 /* The GNU C library defines this for functions which it implements
10301     to always fail with ENOSYS.  Some functions are actually named
10302     something starting with __ and the normal name is an alias.  */
10303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10304 choke me
10305 #else
10306 $ac_func();
10307 #endif
10308
10309 ; return 0; }
10310 EOF
10311 if { (eval echo configure:10312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10312   rm -rf conftest*
10313   eval "ac_cv_func_$ac_func=yes"
10314 else
10315   echo "configure: failed program was:" >&5
10316   cat conftest.$ac_ext >&5
10317   rm -rf conftest*
10318   eval "ac_cv_func_$ac_func=no"
10319 fi
10320 rm -f conftest*
10321 fi
10322
10323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10324   echo "$ac_t""yes" 1>&6
10325     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10326   cat >> confdefs.h <<EOF
10327 #define $ac_tr_func 1
10328 EOF
10329  
10330 else
10331   echo "$ac_t""no" 1>&6
10332 fi
10333 done
10334     
10335   else
10336     
10337   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
10338 echo "configure:10339: checking for _sqrtf declaration" >&5
10339   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
10340     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
10341   echo $ac_n "(cached) $ac_c" 1>&6
10342 else
10343   
10344       
10345       ac_ext=C
10346 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10347 ac_cpp='$CXXCPP $CPPFLAGS'
10348 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10349 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10350 cross_compiling=$ac_cv_prog_cxx_cross
10351
10352       cat > conftest.$ac_ext <<EOF
10353 #line 10354 "configure"
10354 #include "confdefs.h"
10355 #include <math.h>
10356                       #ifdef HAVE_IEEEFP_H
10357                       #include <ieeefp.h>
10358                       #endif
10359                      
10360 int main() {
10361  _sqrtf(0);
10362 ; return 0; }
10363 EOF
10364 if { (eval echo configure:10365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10365   rm -rf conftest*
10366   glibcpp_cv_func__sqrtf_use=yes
10367 else
10368   echo "configure: failed program was:" >&5
10369   cat conftest.$ac_ext >&5
10370   rm -rf conftest*
10371   glibcpp_cv_func__sqrtf_use=no
10372 fi
10373 rm -f conftest*
10374       ac_ext=c
10375 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10376 ac_cpp='$CPP $CPPFLAGS'
10377 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10378 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10379 cross_compiling=$ac_cv_prog_cc_cross
10380
10381     
10382 fi
10383
10384   fi
10385   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
10386
10387     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
10388       for ac_func in _sqrtf
10389 do
10390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10391 echo "configure:10392: checking for $ac_func" >&5
10392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10393   echo $ac_n "(cached) $ac_c" 1>&6
10394 else
10395   cat > conftest.$ac_ext <<EOF
10396 #line 10397 "configure"
10397 #include "confdefs.h"
10398 /* System header to define __stub macros and hopefully few prototypes,
10399     which can conflict with char $ac_func(); below.  */
10400 #include <assert.h>
10401 /* Override any gcc2 internal prototype to avoid an error.  */
10402 /* We use char because int might match the return type of a gcc2
10403     builtin and then its argument prototype would still apply.  */
10404 char $ac_func();
10405
10406 int main() {
10407
10408 /* The GNU C library defines this for functions which it implements
10409     to always fail with ENOSYS.  Some functions are actually named
10410     something starting with __ and the normal name is an alias.  */
10411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10412 choke me
10413 #else
10414 $ac_func();
10415 #endif
10416
10417 ; return 0; }
10418 EOF
10419 if { (eval echo configure:10420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10420   rm -rf conftest*
10421   eval "ac_cv_func_$ac_func=yes"
10422 else
10423   echo "configure: failed program was:" >&5
10424   cat conftest.$ac_ext >&5
10425   rm -rf conftest*
10426   eval "ac_cv_func_$ac_func=no"
10427 fi
10428 rm -f conftest*
10429 fi
10430
10431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10432   echo "$ac_t""yes" 1>&6
10433     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10434   cat >> confdefs.h <<EOF
10435 #define $ac_tr_func 1
10436 EOF
10437  
10438 else
10439   echo "$ac_t""no" 1>&6
10440 fi
10441 done
10442     
10443     fi
10444   fi
10445
10446   
10447   
10448   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
10449 echo "configure:10450: checking for sincosf declaration" >&5
10450   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
10451     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
10452   echo $ac_n "(cached) $ac_c" 1>&6
10453 else
10454   
10455       
10456       ac_ext=C
10457 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10458 ac_cpp='$CXXCPP $CPPFLAGS'
10459 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10460 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10461 cross_compiling=$ac_cv_prog_cxx_cross
10462
10463       cat > conftest.$ac_ext <<EOF
10464 #line 10465 "configure"
10465 #include "confdefs.h"
10466 #include <math.h>
10467 int main() {
10468  sincosf(0, 0, 0);
10469 ; return 0; }
10470 EOF
10471 if { (eval echo configure:10472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10472   rm -rf conftest*
10473   glibcpp_cv_func_sincosf_use=yes
10474 else
10475   echo "configure: failed program was:" >&5
10476   cat conftest.$ac_ext >&5
10477   rm -rf conftest*
10478   glibcpp_cv_func_sincosf_use=no
10479 fi
10480 rm -f conftest*
10481       ac_ext=c
10482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10483 ac_cpp='$CPP $CPPFLAGS'
10484 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10485 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10486 cross_compiling=$ac_cv_prog_cc_cross
10487
10488     
10489 fi
10490
10491   fi
10492   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
10493
10494   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
10495     for ac_func in sincosf
10496 do
10497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10498 echo "configure:10499: checking for $ac_func" >&5
10499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10500   echo $ac_n "(cached) $ac_c" 1>&6
10501 else
10502   cat > conftest.$ac_ext <<EOF
10503 #line 10504 "configure"
10504 #include "confdefs.h"
10505 /* System header to define __stub macros and hopefully few prototypes,
10506     which can conflict with char $ac_func(); below.  */
10507 #include <assert.h>
10508 /* Override any gcc2 internal prototype to avoid an error.  */
10509 /* We use char because int might match the return type of a gcc2
10510     builtin and then its argument prototype would still apply.  */
10511 char $ac_func();
10512
10513 int main() {
10514
10515 /* The GNU C library defines this for functions which it implements
10516     to always fail with ENOSYS.  Some functions are actually named
10517     something starting with __ and the normal name is an alias.  */
10518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10519 choke me
10520 #else
10521 $ac_func();
10522 #endif
10523
10524 ; return 0; }
10525 EOF
10526 if { (eval echo configure:10527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10527   rm -rf conftest*
10528   eval "ac_cv_func_$ac_func=yes"
10529 else
10530   echo "configure: failed program was:" >&5
10531   cat conftest.$ac_ext >&5
10532   rm -rf conftest*
10533   eval "ac_cv_func_$ac_func=no"
10534 fi
10535 rm -f conftest*
10536 fi
10537
10538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10539   echo "$ac_t""yes" 1>&6
10540     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10541   cat >> confdefs.h <<EOF
10542 #define $ac_tr_func 1
10543 EOF
10544  
10545 else
10546   echo "$ac_t""no" 1>&6
10547 fi
10548 done
10549     
10550   else
10551     
10552   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
10553 echo "configure:10554: checking for _sincosf declaration" >&5
10554   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
10555     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
10556   echo $ac_n "(cached) $ac_c" 1>&6
10557 else
10558   
10559       
10560       ac_ext=C
10561 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10562 ac_cpp='$CXXCPP $CPPFLAGS'
10563 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10564 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10565 cross_compiling=$ac_cv_prog_cxx_cross
10566
10567       cat > conftest.$ac_ext <<EOF
10568 #line 10569 "configure"
10569 #include "confdefs.h"
10570 #include <math.h>
10571 int main() {
10572  _sincosf(0, 0, 0);
10573 ; return 0; }
10574 EOF
10575 if { (eval echo configure:10576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10576   rm -rf conftest*
10577   glibcpp_cv_func__sincosf_use=yes
10578 else
10579   echo "configure: failed program was:" >&5
10580   cat conftest.$ac_ext >&5
10581   rm -rf conftest*
10582   glibcpp_cv_func__sincosf_use=no
10583 fi
10584 rm -f conftest*
10585       ac_ext=c
10586 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10587 ac_cpp='$CPP $CPPFLAGS'
10588 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10589 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10590 cross_compiling=$ac_cv_prog_cc_cross
10591
10592     
10593 fi
10594
10595   fi
10596   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
10597
10598     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
10599       for ac_func in _sincosf
10600 do
10601 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10602 echo "configure:10603: checking for $ac_func" >&5
10603 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10604   echo $ac_n "(cached) $ac_c" 1>&6
10605 else
10606   cat > conftest.$ac_ext <<EOF
10607 #line 10608 "configure"
10608 #include "confdefs.h"
10609 /* System header to define __stub macros and hopefully few prototypes,
10610     which can conflict with char $ac_func(); below.  */
10611 #include <assert.h>
10612 /* Override any gcc2 internal prototype to avoid an error.  */
10613 /* We use char because int might match the return type of a gcc2
10614     builtin and then its argument prototype would still apply.  */
10615 char $ac_func();
10616
10617 int main() {
10618
10619 /* The GNU C library defines this for functions which it implements
10620     to always fail with ENOSYS.  Some functions are actually named
10621     something starting with __ and the normal name is an alias.  */
10622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10623 choke me
10624 #else
10625 $ac_func();
10626 #endif
10627
10628 ; return 0; }
10629 EOF
10630 if { (eval echo configure:10631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10631   rm -rf conftest*
10632   eval "ac_cv_func_$ac_func=yes"
10633 else
10634   echo "configure: failed program was:" >&5
10635   cat conftest.$ac_ext >&5
10636   rm -rf conftest*
10637   eval "ac_cv_func_$ac_func=no"
10638 fi
10639 rm -f conftest*
10640 fi
10641
10642 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10643   echo "$ac_t""yes" 1>&6
10644     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10645   cat >> confdefs.h <<EOF
10646 #define $ac_tr_func 1
10647 EOF
10648  
10649 else
10650   echo "$ac_t""no" 1>&6
10651 fi
10652 done
10653     
10654     fi
10655   fi
10656
10657   
10658   
10659   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
10660 echo "configure:10661: checking for finitef declaration" >&5
10661   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
10662     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
10663   echo $ac_n "(cached) $ac_c" 1>&6
10664 else
10665   
10666       
10667       ac_ext=C
10668 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10669 ac_cpp='$CXXCPP $CPPFLAGS'
10670 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10671 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10672 cross_compiling=$ac_cv_prog_cxx_cross
10673
10674       cat > conftest.$ac_ext <<EOF
10675 #line 10676 "configure"
10676 #include "confdefs.h"
10677 #include <math.h>
10678                       #ifdef HAVE_IEEEFP_H
10679                       #include <ieeefp.h>
10680                       #endif
10681                      
10682 int main() {
10683  finitef(0);
10684 ; return 0; }
10685 EOF
10686 if { (eval echo configure:10687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10687   rm -rf conftest*
10688   glibcpp_cv_func_finitef_use=yes
10689 else
10690   echo "configure: failed program was:" >&5
10691   cat conftest.$ac_ext >&5
10692   rm -rf conftest*
10693   glibcpp_cv_func_finitef_use=no
10694 fi
10695 rm -f conftest*
10696       ac_ext=c
10697 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10698 ac_cpp='$CPP $CPPFLAGS'
10699 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10700 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10701 cross_compiling=$ac_cv_prog_cc_cross
10702
10703     
10704 fi
10705
10706   fi
10707   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
10708
10709   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
10710     for ac_func in finitef
10711 do
10712 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10713 echo "configure:10714: checking for $ac_func" >&5
10714 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10715   echo $ac_n "(cached) $ac_c" 1>&6
10716 else
10717   cat > conftest.$ac_ext <<EOF
10718 #line 10719 "configure"
10719 #include "confdefs.h"
10720 /* System header to define __stub macros and hopefully few prototypes,
10721     which can conflict with char $ac_func(); below.  */
10722 #include <assert.h>
10723 /* Override any gcc2 internal prototype to avoid an error.  */
10724 /* We use char because int might match the return type of a gcc2
10725     builtin and then its argument prototype would still apply.  */
10726 char $ac_func();
10727
10728 int main() {
10729
10730 /* The GNU C library defines this for functions which it implements
10731     to always fail with ENOSYS.  Some functions are actually named
10732     something starting with __ and the normal name is an alias.  */
10733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10734 choke me
10735 #else
10736 $ac_func();
10737 #endif
10738
10739 ; return 0; }
10740 EOF
10741 if { (eval echo configure:10742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10742   rm -rf conftest*
10743   eval "ac_cv_func_$ac_func=yes"
10744 else
10745   echo "configure: failed program was:" >&5
10746   cat conftest.$ac_ext >&5
10747   rm -rf conftest*
10748   eval "ac_cv_func_$ac_func=no"
10749 fi
10750 rm -f conftest*
10751 fi
10752
10753 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10754   echo "$ac_t""yes" 1>&6
10755     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10756   cat >> confdefs.h <<EOF
10757 #define $ac_tr_func 1
10758 EOF
10759  
10760 else
10761   echo "$ac_t""no" 1>&6
10762 fi
10763 done
10764     
10765   else
10766     
10767   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
10768 echo "configure:10769: checking for _finitef declaration" >&5
10769   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
10770     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
10771   echo $ac_n "(cached) $ac_c" 1>&6
10772 else
10773   
10774       
10775       ac_ext=C
10776 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10777 ac_cpp='$CXXCPP $CPPFLAGS'
10778 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10779 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10780 cross_compiling=$ac_cv_prog_cxx_cross
10781
10782       cat > conftest.$ac_ext <<EOF
10783 #line 10784 "configure"
10784 #include "confdefs.h"
10785 #include <math.h>
10786                       #ifdef HAVE_IEEEFP_H
10787                       #include <ieeefp.h>
10788                       #endif
10789                      
10790 int main() {
10791  _finitef(0);
10792 ; return 0; }
10793 EOF
10794 if { (eval echo configure:10795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10795   rm -rf conftest*
10796   glibcpp_cv_func__finitef_use=yes
10797 else
10798   echo "configure: failed program was:" >&5
10799   cat conftest.$ac_ext >&5
10800   rm -rf conftest*
10801   glibcpp_cv_func__finitef_use=no
10802 fi
10803 rm -f conftest*
10804       ac_ext=c
10805 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10806 ac_cpp='$CPP $CPPFLAGS'
10807 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10808 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10809 cross_compiling=$ac_cv_prog_cc_cross
10810
10811     
10812 fi
10813
10814   fi
10815   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
10816
10817     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
10818       for ac_func in _finitef
10819 do
10820 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10821 echo "configure:10822: checking for $ac_func" >&5
10822 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10823   echo $ac_n "(cached) $ac_c" 1>&6
10824 else
10825   cat > conftest.$ac_ext <<EOF
10826 #line 10827 "configure"
10827 #include "confdefs.h"
10828 /* System header to define __stub macros and hopefully few prototypes,
10829     which can conflict with char $ac_func(); below.  */
10830 #include <assert.h>
10831 /* Override any gcc2 internal prototype to avoid an error.  */
10832 /* We use char because int might match the return type of a gcc2
10833     builtin and then its argument prototype would still apply.  */
10834 char $ac_func();
10835
10836 int main() {
10837
10838 /* The GNU C library defines this for functions which it implements
10839     to always fail with ENOSYS.  Some functions are actually named
10840     something starting with __ and the normal name is an alias.  */
10841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10842 choke me
10843 #else
10844 $ac_func();
10845 #endif
10846
10847 ; return 0; }
10848 EOF
10849 if { (eval echo configure:10850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10850   rm -rf conftest*
10851   eval "ac_cv_func_$ac_func=yes"
10852 else
10853   echo "configure: failed program was:" >&5
10854   cat conftest.$ac_ext >&5
10855   rm -rf conftest*
10856   eval "ac_cv_func_$ac_func=no"
10857 fi
10858 rm -f conftest*
10859 fi
10860
10861 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10862   echo "$ac_t""yes" 1>&6
10863     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10864   cat >> confdefs.h <<EOF
10865 #define $ac_tr_func 1
10866 EOF
10867  
10868 else
10869   echo "$ac_t""no" 1>&6
10870 fi
10871 done
10872     
10873     fi
10874   fi
10875
10876
10877     
10878   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
10879 echo "configure:10880: checking for long double trig functions" >&5
10880   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
10881   echo $ac_n "(cached) $ac_c" 1>&6
10882 else
10883   
10884     
10885     ac_ext=C
10886 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10887 ac_cpp='$CXXCPP $CPPFLAGS'
10888 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10889 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10890 cross_compiling=$ac_cv_prog_cxx_cross
10891
10892     cat > conftest.$ac_ext <<EOF
10893 #line 10894 "configure"
10894 #include "confdefs.h"
10895 #include <math.h>
10896 int main() {
10897  `for x in acosl asinl atanl \
10898                                           cosl sinl tanl \
10899                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
10900 ; return 0; }
10901 EOF
10902 if { (eval echo configure:10903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10903   rm -rf conftest*
10904   glibcpp_cv_func_long_double_trig_use=yes
10905 else
10906   echo "configure: failed program was:" >&5
10907   cat conftest.$ac_ext >&5
10908   rm -rf conftest*
10909   glibcpp_cv_func_long_double_trig_use=no
10910 fi
10911 rm -f conftest*
10912     ac_ext=c
10913 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10914 ac_cpp='$CPP $CPPFLAGS'
10915 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10916 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10917 cross_compiling=$ac_cv_prog_cc_cross
10918
10919 fi
10920
10921   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
10922   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
10923     for ac_func in acosl asinl atanl \
10924                                           cosl sinl tanl \
10925                                           coshl sinhl tanhl
10926 do
10927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10928 echo "configure:10929: checking for $ac_func" >&5
10929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10930   echo $ac_n "(cached) $ac_c" 1>&6
10931 else
10932   cat > conftest.$ac_ext <<EOF
10933 #line 10934 "configure"
10934 #include "confdefs.h"
10935 /* System header to define __stub macros and hopefully few prototypes,
10936     which can conflict with char $ac_func(); below.  */
10937 #include <assert.h>
10938 /* Override any gcc2 internal prototype to avoid an error.  */
10939 /* We use char because int might match the return type of a gcc2
10940     builtin and then its argument prototype would still apply.  */
10941 char $ac_func();
10942
10943 int main() {
10944
10945 /* The GNU C library defines this for functions which it implements
10946     to always fail with ENOSYS.  Some functions are actually named
10947     something starting with __ and the normal name is an alias.  */
10948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10949 choke me
10950 #else
10951 $ac_func();
10952 #endif
10953
10954 ; return 0; }
10955 EOF
10956 if { (eval echo configure:10957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10957   rm -rf conftest*
10958   eval "ac_cv_func_$ac_func=yes"
10959 else
10960   echo "configure: failed program was:" >&5
10961   cat conftest.$ac_ext >&5
10962   rm -rf conftest*
10963   eval "ac_cv_func_$ac_func=no"
10964 fi
10965 rm -f conftest*
10966 fi
10967
10968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10969   echo "$ac_t""yes" 1>&6
10970     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10971   cat >> confdefs.h <<EOF
10972 #define $ac_tr_func 1
10973 EOF
10974  
10975 else
10976   echo "$ac_t""no" 1>&6
10977 fi
10978 done
10979
10980   fi
10981
10982   
10983   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
10984 echo "configure:10985: checking for long double round functions" >&5
10985   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
10986   echo $ac_n "(cached) $ac_c" 1>&6
10987 else
10988   
10989     
10990     ac_ext=C
10991 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10992 ac_cpp='$CXXCPP $CPPFLAGS'
10993 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10994 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10995 cross_compiling=$ac_cv_prog_cxx_cross
10996
10997     cat > conftest.$ac_ext <<EOF
10998 #line 10999 "configure"
10999 #include "confdefs.h"
11000 #include <math.h>
11001 int main() {
11002  `for x in ceill floorl; do echo "$x (0);"; done` 
11003 ; return 0; }
11004 EOF
11005 if { (eval echo configure:11006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11006   rm -rf conftest*
11007   glibcpp_cv_func_long_double_round_use=yes
11008 else
11009   echo "configure: failed program was:" >&5
11010   cat conftest.$ac_ext >&5
11011   rm -rf conftest*
11012   glibcpp_cv_func_long_double_round_use=no
11013 fi
11014 rm -f conftest*
11015     ac_ext=c
11016 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11017 ac_cpp='$CPP $CPPFLAGS'
11018 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11019 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11020 cross_compiling=$ac_cv_prog_cc_cross
11021
11022 fi
11023
11024   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
11025   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
11026     for ac_func in ceill floorl
11027 do
11028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11029 echo "configure:11030: checking for $ac_func" >&5
11030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11031   echo $ac_n "(cached) $ac_c" 1>&6
11032 else
11033   cat > conftest.$ac_ext <<EOF
11034 #line 11035 "configure"
11035 #include "confdefs.h"
11036 /* System header to define __stub macros and hopefully few prototypes,
11037     which can conflict with char $ac_func(); below.  */
11038 #include <assert.h>
11039 /* Override any gcc2 internal prototype to avoid an error.  */
11040 /* We use char because int might match the return type of a gcc2
11041     builtin and then its argument prototype would still apply.  */
11042 char $ac_func();
11043
11044 int main() {
11045
11046 /* The GNU C library defines this for functions which it implements
11047     to always fail with ENOSYS.  Some functions are actually named
11048     something starting with __ and the normal name is an alias.  */
11049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11050 choke me
11051 #else
11052 $ac_func();
11053 #endif
11054
11055 ; return 0; }
11056 EOF
11057 if { (eval echo configure:11058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11058   rm -rf conftest*
11059   eval "ac_cv_func_$ac_func=yes"
11060 else
11061   echo "configure: failed program was:" >&5
11062   cat conftest.$ac_ext >&5
11063   rm -rf conftest*
11064   eval "ac_cv_func_$ac_func=no"
11065 fi
11066 rm -f conftest*
11067 fi
11068
11069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11070   echo "$ac_t""yes" 1>&6
11071     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11072   cat >> confdefs.h <<EOF
11073 #define $ac_tr_func 1
11074 EOF
11075  
11076 else
11077   echo "$ac_t""no" 1>&6
11078 fi
11079 done
11080
11081   fi
11082
11083   
11084   
11085   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
11086 echo "configure:11087: checking for isnanl declaration" >&5
11087   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
11088     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
11089   echo $ac_n "(cached) $ac_c" 1>&6
11090 else
11091   
11092       
11093       ac_ext=C
11094 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11095 ac_cpp='$CXXCPP $CPPFLAGS'
11096 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11097 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11098 cross_compiling=$ac_cv_prog_cxx_cross
11099
11100       cat > conftest.$ac_ext <<EOF
11101 #line 11102 "configure"
11102 #include "confdefs.h"
11103 #include <math.h>
11104                       #ifdef HAVE_IEEEFP_H
11105                       #include <ieeefp.h>
11106                       #endif
11107                      
11108 int main() {
11109  isnanl(0);
11110 ; return 0; }
11111 EOF
11112 if { (eval echo configure:11113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11113   rm -rf conftest*
11114   glibcpp_cv_func_isnanl_use=yes
11115 else
11116   echo "configure: failed program was:" >&5
11117   cat conftest.$ac_ext >&5
11118   rm -rf conftest*
11119   glibcpp_cv_func_isnanl_use=no
11120 fi
11121 rm -f conftest*
11122       ac_ext=c
11123 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11124 ac_cpp='$CPP $CPPFLAGS'
11125 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11126 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11127 cross_compiling=$ac_cv_prog_cc_cross
11128
11129     
11130 fi
11131
11132   fi
11133   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
11134
11135   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
11136     for ac_func in isnanl
11137 do
11138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11139 echo "configure:11140: checking for $ac_func" >&5
11140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11141   echo $ac_n "(cached) $ac_c" 1>&6
11142 else
11143   cat > conftest.$ac_ext <<EOF
11144 #line 11145 "configure"
11145 #include "confdefs.h"
11146 /* System header to define __stub macros and hopefully few prototypes,
11147     which can conflict with char $ac_func(); below.  */
11148 #include <assert.h>
11149 /* Override any gcc2 internal prototype to avoid an error.  */
11150 /* We use char because int might match the return type of a gcc2
11151     builtin and then its argument prototype would still apply.  */
11152 char $ac_func();
11153
11154 int main() {
11155
11156 /* The GNU C library defines this for functions which it implements
11157     to always fail with ENOSYS.  Some functions are actually named
11158     something starting with __ and the normal name is an alias.  */
11159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11160 choke me
11161 #else
11162 $ac_func();
11163 #endif
11164
11165 ; return 0; }
11166 EOF
11167 if { (eval echo configure:11168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11168   rm -rf conftest*
11169   eval "ac_cv_func_$ac_func=yes"
11170 else
11171   echo "configure: failed program was:" >&5
11172   cat conftest.$ac_ext >&5
11173   rm -rf conftest*
11174   eval "ac_cv_func_$ac_func=no"
11175 fi
11176 rm -f conftest*
11177 fi
11178
11179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11180   echo "$ac_t""yes" 1>&6
11181     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11182   cat >> confdefs.h <<EOF
11183 #define $ac_tr_func 1
11184 EOF
11185  
11186 else
11187   echo "$ac_t""no" 1>&6
11188 fi
11189 done
11190     
11191   else
11192     
11193   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
11194 echo "configure:11195: checking for _isnanl declaration" >&5
11195   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
11196     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
11197   echo $ac_n "(cached) $ac_c" 1>&6
11198 else
11199   
11200       
11201       ac_ext=C
11202 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11203 ac_cpp='$CXXCPP $CPPFLAGS'
11204 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11205 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11206 cross_compiling=$ac_cv_prog_cxx_cross
11207
11208       cat > conftest.$ac_ext <<EOF
11209 #line 11210 "configure"
11210 #include "confdefs.h"
11211 #include <math.h>
11212                       #ifdef HAVE_IEEEFP_H
11213                       #include <ieeefp.h>
11214                       #endif
11215                      
11216 int main() {
11217  _isnanl(0);
11218 ; return 0; }
11219 EOF
11220 if { (eval echo configure:11221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11221   rm -rf conftest*
11222   glibcpp_cv_func__isnanl_use=yes
11223 else
11224   echo "configure: failed program was:" >&5
11225   cat conftest.$ac_ext >&5
11226   rm -rf conftest*
11227   glibcpp_cv_func__isnanl_use=no
11228 fi
11229 rm -f conftest*
11230       ac_ext=c
11231 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11232 ac_cpp='$CPP $CPPFLAGS'
11233 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11234 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11235 cross_compiling=$ac_cv_prog_cc_cross
11236
11237     
11238 fi
11239
11240   fi
11241   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
11242
11243     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
11244       for ac_func in _isnanl
11245 do
11246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11247 echo "configure:11248: checking for $ac_func" >&5
11248 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11249   echo $ac_n "(cached) $ac_c" 1>&6
11250 else
11251   cat > conftest.$ac_ext <<EOF
11252 #line 11253 "configure"
11253 #include "confdefs.h"
11254 /* System header to define __stub macros and hopefully few prototypes,
11255     which can conflict with char $ac_func(); below.  */
11256 #include <assert.h>
11257 /* Override any gcc2 internal prototype to avoid an error.  */
11258 /* We use char because int might match the return type of a gcc2
11259     builtin and then its argument prototype would still apply.  */
11260 char $ac_func();
11261
11262 int main() {
11263
11264 /* The GNU C library defines this for functions which it implements
11265     to always fail with ENOSYS.  Some functions are actually named
11266     something starting with __ and the normal name is an alias.  */
11267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11268 choke me
11269 #else
11270 $ac_func();
11271 #endif
11272
11273 ; return 0; }
11274 EOF
11275 if { (eval echo configure:11276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11276   rm -rf conftest*
11277   eval "ac_cv_func_$ac_func=yes"
11278 else
11279   echo "configure: failed program was:" >&5
11280   cat conftest.$ac_ext >&5
11281   rm -rf conftest*
11282   eval "ac_cv_func_$ac_func=no"
11283 fi
11284 rm -f conftest*
11285 fi
11286
11287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11288   echo "$ac_t""yes" 1>&6
11289     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11290   cat >> confdefs.h <<EOF
11291 #define $ac_tr_func 1
11292 EOF
11293  
11294 else
11295   echo "$ac_t""no" 1>&6
11296 fi
11297 done
11298     
11299     fi
11300   fi
11301
11302   
11303   
11304   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
11305 echo "configure:11306: checking for isinfl declaration" >&5
11306   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
11307     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
11308   echo $ac_n "(cached) $ac_c" 1>&6
11309 else
11310   
11311       
11312       ac_ext=C
11313 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11314 ac_cpp='$CXXCPP $CPPFLAGS'
11315 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11316 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11317 cross_compiling=$ac_cv_prog_cxx_cross
11318
11319       cat > conftest.$ac_ext <<EOF
11320 #line 11321 "configure"
11321 #include "confdefs.h"
11322 #include <math.h>
11323                       #ifdef HAVE_IEEEFP_H
11324                       #include <ieeefp.h>
11325                       #endif
11326                      
11327 int main() {
11328  isinfl(0);
11329 ; return 0; }
11330 EOF
11331 if { (eval echo configure:11332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11332   rm -rf conftest*
11333   glibcpp_cv_func_isinfl_use=yes
11334 else
11335   echo "configure: failed program was:" >&5
11336   cat conftest.$ac_ext >&5
11337   rm -rf conftest*
11338   glibcpp_cv_func_isinfl_use=no
11339 fi
11340 rm -f conftest*
11341       ac_ext=c
11342 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11343 ac_cpp='$CPP $CPPFLAGS'
11344 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11345 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11346 cross_compiling=$ac_cv_prog_cc_cross
11347
11348     
11349 fi
11350
11351   fi
11352   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
11353
11354   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
11355     for ac_func in isinfl
11356 do
11357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11358 echo "configure:11359: checking for $ac_func" >&5
11359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11360   echo $ac_n "(cached) $ac_c" 1>&6
11361 else
11362   cat > conftest.$ac_ext <<EOF
11363 #line 11364 "configure"
11364 #include "confdefs.h"
11365 /* System header to define __stub macros and hopefully few prototypes,
11366     which can conflict with char $ac_func(); below.  */
11367 #include <assert.h>
11368 /* Override any gcc2 internal prototype to avoid an error.  */
11369 /* We use char because int might match the return type of a gcc2
11370     builtin and then its argument prototype would still apply.  */
11371 char $ac_func();
11372
11373 int main() {
11374
11375 /* The GNU C library defines this for functions which it implements
11376     to always fail with ENOSYS.  Some functions are actually named
11377     something starting with __ and the normal name is an alias.  */
11378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11379 choke me
11380 #else
11381 $ac_func();
11382 #endif
11383
11384 ; return 0; }
11385 EOF
11386 if { (eval echo configure:11387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11387   rm -rf conftest*
11388   eval "ac_cv_func_$ac_func=yes"
11389 else
11390   echo "configure: failed program was:" >&5
11391   cat conftest.$ac_ext >&5
11392   rm -rf conftest*
11393   eval "ac_cv_func_$ac_func=no"
11394 fi
11395 rm -f conftest*
11396 fi
11397
11398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11399   echo "$ac_t""yes" 1>&6
11400     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11401   cat >> confdefs.h <<EOF
11402 #define $ac_tr_func 1
11403 EOF
11404  
11405 else
11406   echo "$ac_t""no" 1>&6
11407 fi
11408 done
11409     
11410   else
11411     
11412   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
11413 echo "configure:11414: checking for _isinfl declaration" >&5
11414   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
11415     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
11416   echo $ac_n "(cached) $ac_c" 1>&6
11417 else
11418   
11419       
11420       ac_ext=C
11421 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11422 ac_cpp='$CXXCPP $CPPFLAGS'
11423 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11424 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11425 cross_compiling=$ac_cv_prog_cxx_cross
11426
11427       cat > conftest.$ac_ext <<EOF
11428 #line 11429 "configure"
11429 #include "confdefs.h"
11430 #include <math.h>
11431                       #ifdef HAVE_IEEEFP_H
11432                       #include <ieeefp.h>
11433                       #endif
11434                      
11435 int main() {
11436  _isinfl(0);
11437 ; return 0; }
11438 EOF
11439 if { (eval echo configure:11440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11440   rm -rf conftest*
11441   glibcpp_cv_func__isinfl_use=yes
11442 else
11443   echo "configure: failed program was:" >&5
11444   cat conftest.$ac_ext >&5
11445   rm -rf conftest*
11446   glibcpp_cv_func__isinfl_use=no
11447 fi
11448 rm -f conftest*
11449       ac_ext=c
11450 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11451 ac_cpp='$CPP $CPPFLAGS'
11452 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11453 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11454 cross_compiling=$ac_cv_prog_cc_cross
11455
11456     
11457 fi
11458
11459   fi
11460   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
11461
11462     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
11463       for ac_func in _isinfl
11464 do
11465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11466 echo "configure:11467: checking for $ac_func" >&5
11467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11468   echo $ac_n "(cached) $ac_c" 1>&6
11469 else
11470   cat > conftest.$ac_ext <<EOF
11471 #line 11472 "configure"
11472 #include "confdefs.h"
11473 /* System header to define __stub macros and hopefully few prototypes,
11474     which can conflict with char $ac_func(); below.  */
11475 #include <assert.h>
11476 /* Override any gcc2 internal prototype to avoid an error.  */
11477 /* We use char because int might match the return type of a gcc2
11478     builtin and then its argument prototype would still apply.  */
11479 char $ac_func();
11480
11481 int main() {
11482
11483 /* The GNU C library defines this for functions which it implements
11484     to always fail with ENOSYS.  Some functions are actually named
11485     something starting with __ and the normal name is an alias.  */
11486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11487 choke me
11488 #else
11489 $ac_func();
11490 #endif
11491
11492 ; return 0; }
11493 EOF
11494 if { (eval echo configure:11495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11495   rm -rf conftest*
11496   eval "ac_cv_func_$ac_func=yes"
11497 else
11498   echo "configure: failed program was:" >&5
11499   cat conftest.$ac_ext >&5
11500   rm -rf conftest*
11501   eval "ac_cv_func_$ac_func=no"
11502 fi
11503 rm -f conftest*
11504 fi
11505
11506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11507   echo "$ac_t""yes" 1>&6
11508     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11509   cat >> confdefs.h <<EOF
11510 #define $ac_tr_func 1
11511 EOF
11512  
11513 else
11514   echo "$ac_t""no" 1>&6
11515 fi
11516 done
11517     
11518     fi
11519   fi
11520
11521   
11522   
11523   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
11524 echo "configure:11525: checking for copysignl declaration" >&5
11525   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
11526     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
11527   echo $ac_n "(cached) $ac_c" 1>&6
11528 else
11529   
11530       
11531       ac_ext=C
11532 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11533 ac_cpp='$CXXCPP $CPPFLAGS'
11534 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11535 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11536 cross_compiling=$ac_cv_prog_cxx_cross
11537
11538       cat > conftest.$ac_ext <<EOF
11539 #line 11540 "configure"
11540 #include "confdefs.h"
11541 #include <math.h>
11542 int main() {
11543  copysignl(0, 0);
11544 ; return 0; }
11545 EOF
11546 if { (eval echo configure:11547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11547   rm -rf conftest*
11548   glibcpp_cv_func_copysignl_use=yes
11549 else
11550   echo "configure: failed program was:" >&5
11551   cat conftest.$ac_ext >&5
11552   rm -rf conftest*
11553   glibcpp_cv_func_copysignl_use=no
11554 fi
11555 rm -f conftest*
11556       ac_ext=c
11557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11558 ac_cpp='$CPP $CPPFLAGS'
11559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11561 cross_compiling=$ac_cv_prog_cc_cross
11562
11563     
11564 fi
11565
11566   fi
11567   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
11568
11569   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
11570     for ac_func in copysignl
11571 do
11572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11573 echo "configure:11574: checking for $ac_func" >&5
11574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11575   echo $ac_n "(cached) $ac_c" 1>&6
11576 else
11577   cat > conftest.$ac_ext <<EOF
11578 #line 11579 "configure"
11579 #include "confdefs.h"
11580 /* System header to define __stub macros and hopefully few prototypes,
11581     which can conflict with char $ac_func(); below.  */
11582 #include <assert.h>
11583 /* Override any gcc2 internal prototype to avoid an error.  */
11584 /* We use char because int might match the return type of a gcc2
11585     builtin and then its argument prototype would still apply.  */
11586 char $ac_func();
11587
11588 int main() {
11589
11590 /* The GNU C library defines this for functions which it implements
11591     to always fail with ENOSYS.  Some functions are actually named
11592     something starting with __ and the normal name is an alias.  */
11593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11594 choke me
11595 #else
11596 $ac_func();
11597 #endif
11598
11599 ; return 0; }
11600 EOF
11601 if { (eval echo configure:11602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11602   rm -rf conftest*
11603   eval "ac_cv_func_$ac_func=yes"
11604 else
11605   echo "configure: failed program was:" >&5
11606   cat conftest.$ac_ext >&5
11607   rm -rf conftest*
11608   eval "ac_cv_func_$ac_func=no"
11609 fi
11610 rm -f conftest*
11611 fi
11612
11613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11614   echo "$ac_t""yes" 1>&6
11615     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11616   cat >> confdefs.h <<EOF
11617 #define $ac_tr_func 1
11618 EOF
11619  
11620 else
11621   echo "$ac_t""no" 1>&6
11622 fi
11623 done
11624     
11625   else
11626     
11627   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
11628 echo "configure:11629: checking for _copysignl declaration" >&5
11629   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
11630     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
11631   echo $ac_n "(cached) $ac_c" 1>&6
11632 else
11633   
11634       
11635       ac_ext=C
11636 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11637 ac_cpp='$CXXCPP $CPPFLAGS'
11638 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11639 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11640 cross_compiling=$ac_cv_prog_cxx_cross
11641
11642       cat > conftest.$ac_ext <<EOF
11643 #line 11644 "configure"
11644 #include "confdefs.h"
11645 #include <math.h>
11646 int main() {
11647  _copysignl(0, 0);
11648 ; return 0; }
11649 EOF
11650 if { (eval echo configure:11651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11651   rm -rf conftest*
11652   glibcpp_cv_func__copysignl_use=yes
11653 else
11654   echo "configure: failed program was:" >&5
11655   cat conftest.$ac_ext >&5
11656   rm -rf conftest*
11657   glibcpp_cv_func__copysignl_use=no
11658 fi
11659 rm -f conftest*
11660       ac_ext=c
11661 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11662 ac_cpp='$CPP $CPPFLAGS'
11663 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11664 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11665 cross_compiling=$ac_cv_prog_cc_cross
11666
11667     
11668 fi
11669
11670   fi
11671   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
11672
11673     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
11674       for ac_func in _copysignl
11675 do
11676 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11677 echo "configure:11678: checking for $ac_func" >&5
11678 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11679   echo $ac_n "(cached) $ac_c" 1>&6
11680 else
11681   cat > conftest.$ac_ext <<EOF
11682 #line 11683 "configure"
11683 #include "confdefs.h"
11684 /* System header to define __stub macros and hopefully few prototypes,
11685     which can conflict with char $ac_func(); below.  */
11686 #include <assert.h>
11687 /* Override any gcc2 internal prototype to avoid an error.  */
11688 /* We use char because int might match the return type of a gcc2
11689     builtin and then its argument prototype would still apply.  */
11690 char $ac_func();
11691
11692 int main() {
11693
11694 /* The GNU C library defines this for functions which it implements
11695     to always fail with ENOSYS.  Some functions are actually named
11696     something starting with __ and the normal name is an alias.  */
11697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11698 choke me
11699 #else
11700 $ac_func();
11701 #endif
11702
11703 ; return 0; }
11704 EOF
11705 if { (eval echo configure:11706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11706   rm -rf conftest*
11707   eval "ac_cv_func_$ac_func=yes"
11708 else
11709   echo "configure: failed program was:" >&5
11710   cat conftest.$ac_ext >&5
11711   rm -rf conftest*
11712   eval "ac_cv_func_$ac_func=no"
11713 fi
11714 rm -f conftest*
11715 fi
11716
11717 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11718   echo "$ac_t""yes" 1>&6
11719     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11720   cat >> confdefs.h <<EOF
11721 #define $ac_tr_func 1
11722 EOF
11723  
11724 else
11725   echo "$ac_t""no" 1>&6
11726 fi
11727 done
11728     
11729     fi
11730   fi
11731
11732   
11733   
11734   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
11735 echo "configure:11736: checking for atan2l declaration" >&5
11736   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
11737     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
11738   echo $ac_n "(cached) $ac_c" 1>&6
11739 else
11740   
11741       
11742       ac_ext=C
11743 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11744 ac_cpp='$CXXCPP $CPPFLAGS'
11745 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11746 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11747 cross_compiling=$ac_cv_prog_cxx_cross
11748
11749       cat > conftest.$ac_ext <<EOF
11750 #line 11751 "configure"
11751 #include "confdefs.h"
11752 #include <math.h>
11753 int main() {
11754  atan2l(0, 0);
11755 ; return 0; }
11756 EOF
11757 if { (eval echo configure:11758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11758   rm -rf conftest*
11759   glibcpp_cv_func_atan2l_use=yes
11760 else
11761   echo "configure: failed program was:" >&5
11762   cat conftest.$ac_ext >&5
11763   rm -rf conftest*
11764   glibcpp_cv_func_atan2l_use=no
11765 fi
11766 rm -f conftest*
11767       ac_ext=c
11768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11769 ac_cpp='$CPP $CPPFLAGS'
11770 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11771 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11772 cross_compiling=$ac_cv_prog_cc_cross
11773
11774     
11775 fi
11776
11777   fi
11778   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
11779
11780   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
11781     for ac_func in atan2l
11782 do
11783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11784 echo "configure:11785: checking for $ac_func" >&5
11785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11786   echo $ac_n "(cached) $ac_c" 1>&6
11787 else
11788   cat > conftest.$ac_ext <<EOF
11789 #line 11790 "configure"
11790 #include "confdefs.h"
11791 /* System header to define __stub macros and hopefully few prototypes,
11792     which can conflict with char $ac_func(); below.  */
11793 #include <assert.h>
11794 /* Override any gcc2 internal prototype to avoid an error.  */
11795 /* We use char because int might match the return type of a gcc2
11796     builtin and then its argument prototype would still apply.  */
11797 char $ac_func();
11798
11799 int main() {
11800
11801 /* The GNU C library defines this for functions which it implements
11802     to always fail with ENOSYS.  Some functions are actually named
11803     something starting with __ and the normal name is an alias.  */
11804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11805 choke me
11806 #else
11807 $ac_func();
11808 #endif
11809
11810 ; return 0; }
11811 EOF
11812 if { (eval echo configure:11813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11813   rm -rf conftest*
11814   eval "ac_cv_func_$ac_func=yes"
11815 else
11816   echo "configure: failed program was:" >&5
11817   cat conftest.$ac_ext >&5
11818   rm -rf conftest*
11819   eval "ac_cv_func_$ac_func=no"
11820 fi
11821 rm -f conftest*
11822 fi
11823
11824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11825   echo "$ac_t""yes" 1>&6
11826     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11827   cat >> confdefs.h <<EOF
11828 #define $ac_tr_func 1
11829 EOF
11830  
11831 else
11832   echo "$ac_t""no" 1>&6
11833 fi
11834 done
11835     
11836   else
11837     
11838   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
11839 echo "configure:11840: checking for _atan2l declaration" >&5
11840   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
11841     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
11842   echo $ac_n "(cached) $ac_c" 1>&6
11843 else
11844   
11845       
11846       ac_ext=C
11847 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11848 ac_cpp='$CXXCPP $CPPFLAGS'
11849 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11850 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11851 cross_compiling=$ac_cv_prog_cxx_cross
11852
11853       cat > conftest.$ac_ext <<EOF
11854 #line 11855 "configure"
11855 #include "confdefs.h"
11856 #include <math.h>
11857 int main() {
11858  _atan2l(0, 0);
11859 ; return 0; }
11860 EOF
11861 if { (eval echo configure:11862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11862   rm -rf conftest*
11863   glibcpp_cv_func__atan2l_use=yes
11864 else
11865   echo "configure: failed program was:" >&5
11866   cat conftest.$ac_ext >&5
11867   rm -rf conftest*
11868   glibcpp_cv_func__atan2l_use=no
11869 fi
11870 rm -f conftest*
11871       ac_ext=c
11872 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11873 ac_cpp='$CPP $CPPFLAGS'
11874 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11875 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11876 cross_compiling=$ac_cv_prog_cc_cross
11877
11878     
11879 fi
11880
11881   fi
11882   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
11883
11884     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
11885       for ac_func in _atan2l
11886 do
11887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11888 echo "configure:11889: checking for $ac_func" >&5
11889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11890   echo $ac_n "(cached) $ac_c" 1>&6
11891 else
11892   cat > conftest.$ac_ext <<EOF
11893 #line 11894 "configure"
11894 #include "confdefs.h"
11895 /* System header to define __stub macros and hopefully few prototypes,
11896     which can conflict with char $ac_func(); below.  */
11897 #include <assert.h>
11898 /* Override any gcc2 internal prototype to avoid an error.  */
11899 /* We use char because int might match the return type of a gcc2
11900     builtin and then its argument prototype would still apply.  */
11901 char $ac_func();
11902
11903 int main() {
11904
11905 /* The GNU C library defines this for functions which it implements
11906     to always fail with ENOSYS.  Some functions are actually named
11907     something starting with __ and the normal name is an alias.  */
11908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11909 choke me
11910 #else
11911 $ac_func();
11912 #endif
11913
11914 ; return 0; }
11915 EOF
11916 if { (eval echo configure:11917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11917   rm -rf conftest*
11918   eval "ac_cv_func_$ac_func=yes"
11919 else
11920   echo "configure: failed program was:" >&5
11921   cat conftest.$ac_ext >&5
11922   rm -rf conftest*
11923   eval "ac_cv_func_$ac_func=no"
11924 fi
11925 rm -f conftest*
11926 fi
11927
11928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11929   echo "$ac_t""yes" 1>&6
11930     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11931   cat >> confdefs.h <<EOF
11932 #define $ac_tr_func 1
11933 EOF
11934  
11935 else
11936   echo "$ac_t""no" 1>&6
11937 fi
11938 done
11939     
11940     fi
11941   fi
11942
11943   
11944   
11945   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
11946 echo "configure:11947: checking for expl declaration" >&5
11947   if test x${glibcpp_cv_func_expl_use+set} != xset; then
11948     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
11949   echo $ac_n "(cached) $ac_c" 1>&6
11950 else
11951   
11952       
11953       ac_ext=C
11954 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11955 ac_cpp='$CXXCPP $CPPFLAGS'
11956 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11957 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11958 cross_compiling=$ac_cv_prog_cxx_cross
11959
11960       cat > conftest.$ac_ext <<EOF
11961 #line 11962 "configure"
11962 #include "confdefs.h"
11963 #include <math.h>
11964                       #ifdef HAVE_IEEEFP_H
11965                       #include <ieeefp.h>
11966                       #endif
11967                      
11968 int main() {
11969  expl(0);
11970 ; return 0; }
11971 EOF
11972 if { (eval echo configure:11973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11973   rm -rf conftest*
11974   glibcpp_cv_func_expl_use=yes
11975 else
11976   echo "configure: failed program was:" >&5
11977   cat conftest.$ac_ext >&5
11978   rm -rf conftest*
11979   glibcpp_cv_func_expl_use=no
11980 fi
11981 rm -f conftest*
11982       ac_ext=c
11983 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11984 ac_cpp='$CPP $CPPFLAGS'
11985 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11986 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11987 cross_compiling=$ac_cv_prog_cc_cross
11988
11989     
11990 fi
11991
11992   fi
11993   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
11994
11995   if test x$glibcpp_cv_func_expl_use = x"yes"; then
11996     for ac_func in expl
11997 do
11998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11999 echo "configure:12000: checking for $ac_func" >&5
12000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12001   echo $ac_n "(cached) $ac_c" 1>&6
12002 else
12003   cat > conftest.$ac_ext <<EOF
12004 #line 12005 "configure"
12005 #include "confdefs.h"
12006 /* System header to define __stub macros and hopefully few prototypes,
12007     which can conflict with char $ac_func(); below.  */
12008 #include <assert.h>
12009 /* Override any gcc2 internal prototype to avoid an error.  */
12010 /* We use char because int might match the return type of a gcc2
12011     builtin and then its argument prototype would still apply.  */
12012 char $ac_func();
12013
12014 int main() {
12015
12016 /* The GNU C library defines this for functions which it implements
12017     to always fail with ENOSYS.  Some functions are actually named
12018     something starting with __ and the normal name is an alias.  */
12019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12020 choke me
12021 #else
12022 $ac_func();
12023 #endif
12024
12025 ; return 0; }
12026 EOF
12027 if { (eval echo configure:12028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12028   rm -rf conftest*
12029   eval "ac_cv_func_$ac_func=yes"
12030 else
12031   echo "configure: failed program was:" >&5
12032   cat conftest.$ac_ext >&5
12033   rm -rf conftest*
12034   eval "ac_cv_func_$ac_func=no"
12035 fi
12036 rm -f conftest*
12037 fi
12038
12039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12040   echo "$ac_t""yes" 1>&6
12041     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12042   cat >> confdefs.h <<EOF
12043 #define $ac_tr_func 1
12044 EOF
12045  
12046 else
12047   echo "$ac_t""no" 1>&6
12048 fi
12049 done
12050     
12051   else
12052     
12053   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
12054 echo "configure:12055: checking for _expl declaration" >&5
12055   if test x${glibcpp_cv_func__expl_use+set} != xset; then
12056     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
12057   echo $ac_n "(cached) $ac_c" 1>&6
12058 else
12059   
12060       
12061       ac_ext=C
12062 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12063 ac_cpp='$CXXCPP $CPPFLAGS'
12064 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12065 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12066 cross_compiling=$ac_cv_prog_cxx_cross
12067
12068       cat > conftest.$ac_ext <<EOF
12069 #line 12070 "configure"
12070 #include "confdefs.h"
12071 #include <math.h>
12072                       #ifdef HAVE_IEEEFP_H
12073                       #include <ieeefp.h>
12074                       #endif
12075                      
12076 int main() {
12077  _expl(0);
12078 ; return 0; }
12079 EOF
12080 if { (eval echo configure:12081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12081   rm -rf conftest*
12082   glibcpp_cv_func__expl_use=yes
12083 else
12084   echo "configure: failed program was:" >&5
12085   cat conftest.$ac_ext >&5
12086   rm -rf conftest*
12087   glibcpp_cv_func__expl_use=no
12088 fi
12089 rm -f conftest*
12090       ac_ext=c
12091 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12092 ac_cpp='$CPP $CPPFLAGS'
12093 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12094 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12095 cross_compiling=$ac_cv_prog_cc_cross
12096
12097     
12098 fi
12099
12100   fi
12101   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
12102
12103     if test x$glibcpp_cv_func__expl_use = x"yes"; then
12104       for ac_func in _expl
12105 do
12106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12107 echo "configure:12108: checking for $ac_func" >&5
12108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12109   echo $ac_n "(cached) $ac_c" 1>&6
12110 else
12111   cat > conftest.$ac_ext <<EOF
12112 #line 12113 "configure"
12113 #include "confdefs.h"
12114 /* System header to define __stub macros and hopefully few prototypes,
12115     which can conflict with char $ac_func(); below.  */
12116 #include <assert.h>
12117 /* Override any gcc2 internal prototype to avoid an error.  */
12118 /* We use char because int might match the return type of a gcc2
12119     builtin and then its argument prototype would still apply.  */
12120 char $ac_func();
12121
12122 int main() {
12123
12124 /* The GNU C library defines this for functions which it implements
12125     to always fail with ENOSYS.  Some functions are actually named
12126     something starting with __ and the normal name is an alias.  */
12127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12128 choke me
12129 #else
12130 $ac_func();
12131 #endif
12132
12133 ; return 0; }
12134 EOF
12135 if { (eval echo configure:12136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12136   rm -rf conftest*
12137   eval "ac_cv_func_$ac_func=yes"
12138 else
12139   echo "configure: failed program was:" >&5
12140   cat conftest.$ac_ext >&5
12141   rm -rf conftest*
12142   eval "ac_cv_func_$ac_func=no"
12143 fi
12144 rm -f conftest*
12145 fi
12146
12147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12148   echo "$ac_t""yes" 1>&6
12149     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12150   cat >> confdefs.h <<EOF
12151 #define $ac_tr_func 1
12152 EOF
12153  
12154 else
12155   echo "$ac_t""no" 1>&6
12156 fi
12157 done
12158     
12159     fi
12160   fi
12161
12162   
12163   
12164   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
12165 echo "configure:12166: checking for fabsl declaration" >&5
12166   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
12167     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
12168   echo $ac_n "(cached) $ac_c" 1>&6
12169 else
12170   
12171       
12172       ac_ext=C
12173 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12174 ac_cpp='$CXXCPP $CPPFLAGS'
12175 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12176 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12177 cross_compiling=$ac_cv_prog_cxx_cross
12178
12179       cat > conftest.$ac_ext <<EOF
12180 #line 12181 "configure"
12181 #include "confdefs.h"
12182 #include <math.h>
12183                       #ifdef HAVE_IEEEFP_H
12184                       #include <ieeefp.h>
12185                       #endif
12186                      
12187 int main() {
12188  fabsl(0);
12189 ; return 0; }
12190 EOF
12191 if { (eval echo configure:12192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12192   rm -rf conftest*
12193   glibcpp_cv_func_fabsl_use=yes
12194 else
12195   echo "configure: failed program was:" >&5
12196   cat conftest.$ac_ext >&5
12197   rm -rf conftest*
12198   glibcpp_cv_func_fabsl_use=no
12199 fi
12200 rm -f conftest*
12201       ac_ext=c
12202 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12203 ac_cpp='$CPP $CPPFLAGS'
12204 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12205 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12206 cross_compiling=$ac_cv_prog_cc_cross
12207
12208     
12209 fi
12210
12211   fi
12212   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
12213
12214   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
12215     for ac_func in fabsl
12216 do
12217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12218 echo "configure:12219: checking for $ac_func" >&5
12219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12220   echo $ac_n "(cached) $ac_c" 1>&6
12221 else
12222   cat > conftest.$ac_ext <<EOF
12223 #line 12224 "configure"
12224 #include "confdefs.h"
12225 /* System header to define __stub macros and hopefully few prototypes,
12226     which can conflict with char $ac_func(); below.  */
12227 #include <assert.h>
12228 /* Override any gcc2 internal prototype to avoid an error.  */
12229 /* We use char because int might match the return type of a gcc2
12230     builtin and then its argument prototype would still apply.  */
12231 char $ac_func();
12232
12233 int main() {
12234
12235 /* The GNU C library defines this for functions which it implements
12236     to always fail with ENOSYS.  Some functions are actually named
12237     something starting with __ and the normal name is an alias.  */
12238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12239 choke me
12240 #else
12241 $ac_func();
12242 #endif
12243
12244 ; return 0; }
12245 EOF
12246 if { (eval echo configure:12247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12247   rm -rf conftest*
12248   eval "ac_cv_func_$ac_func=yes"
12249 else
12250   echo "configure: failed program was:" >&5
12251   cat conftest.$ac_ext >&5
12252   rm -rf conftest*
12253   eval "ac_cv_func_$ac_func=no"
12254 fi
12255 rm -f conftest*
12256 fi
12257
12258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12259   echo "$ac_t""yes" 1>&6
12260     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12261   cat >> confdefs.h <<EOF
12262 #define $ac_tr_func 1
12263 EOF
12264  
12265 else
12266   echo "$ac_t""no" 1>&6
12267 fi
12268 done
12269     
12270   else
12271     
12272   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
12273 echo "configure:12274: checking for _fabsl declaration" >&5
12274   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
12275     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
12276   echo $ac_n "(cached) $ac_c" 1>&6
12277 else
12278   
12279       
12280       ac_ext=C
12281 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12282 ac_cpp='$CXXCPP $CPPFLAGS'
12283 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12284 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12285 cross_compiling=$ac_cv_prog_cxx_cross
12286
12287       cat > conftest.$ac_ext <<EOF
12288 #line 12289 "configure"
12289 #include "confdefs.h"
12290 #include <math.h>
12291                       #ifdef HAVE_IEEEFP_H
12292                       #include <ieeefp.h>
12293                       #endif
12294                      
12295 int main() {
12296  _fabsl(0);
12297 ; return 0; }
12298 EOF
12299 if { (eval echo configure:12300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12300   rm -rf conftest*
12301   glibcpp_cv_func__fabsl_use=yes
12302 else
12303   echo "configure: failed program was:" >&5
12304   cat conftest.$ac_ext >&5
12305   rm -rf conftest*
12306   glibcpp_cv_func__fabsl_use=no
12307 fi
12308 rm -f conftest*
12309       ac_ext=c
12310 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12311 ac_cpp='$CPP $CPPFLAGS'
12312 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12313 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12314 cross_compiling=$ac_cv_prog_cc_cross
12315
12316     
12317 fi
12318
12319   fi
12320   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
12321
12322     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
12323       for ac_func in _fabsl
12324 do
12325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12326 echo "configure:12327: checking for $ac_func" >&5
12327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12328   echo $ac_n "(cached) $ac_c" 1>&6
12329 else
12330   cat > conftest.$ac_ext <<EOF
12331 #line 12332 "configure"
12332 #include "confdefs.h"
12333 /* System header to define __stub macros and hopefully few prototypes,
12334     which can conflict with char $ac_func(); below.  */
12335 #include <assert.h>
12336 /* Override any gcc2 internal prototype to avoid an error.  */
12337 /* We use char because int might match the return type of a gcc2
12338     builtin and then its argument prototype would still apply.  */
12339 char $ac_func();
12340
12341 int main() {
12342
12343 /* The GNU C library defines this for functions which it implements
12344     to always fail with ENOSYS.  Some functions are actually named
12345     something starting with __ and the normal name is an alias.  */
12346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12347 choke me
12348 #else
12349 $ac_func();
12350 #endif
12351
12352 ; return 0; }
12353 EOF
12354 if { (eval echo configure:12355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12355   rm -rf conftest*
12356   eval "ac_cv_func_$ac_func=yes"
12357 else
12358   echo "configure: failed program was:" >&5
12359   cat conftest.$ac_ext >&5
12360   rm -rf conftest*
12361   eval "ac_cv_func_$ac_func=no"
12362 fi
12363 rm -f conftest*
12364 fi
12365
12366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12367   echo "$ac_t""yes" 1>&6
12368     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12369   cat >> confdefs.h <<EOF
12370 #define $ac_tr_func 1
12371 EOF
12372  
12373 else
12374   echo "$ac_t""no" 1>&6
12375 fi
12376 done
12377     
12378     fi
12379   fi
12380
12381   
12382   
12383   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
12384 echo "configure:12385: checking for fmodl declaration" >&5
12385   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
12386     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
12387   echo $ac_n "(cached) $ac_c" 1>&6
12388 else
12389   
12390       
12391       ac_ext=C
12392 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12393 ac_cpp='$CXXCPP $CPPFLAGS'
12394 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12395 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12396 cross_compiling=$ac_cv_prog_cxx_cross
12397
12398       cat > conftest.$ac_ext <<EOF
12399 #line 12400 "configure"
12400 #include "confdefs.h"
12401 #include <math.h>
12402 int main() {
12403  fmodl(0, 0);
12404 ; return 0; }
12405 EOF
12406 if { (eval echo configure:12407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12407   rm -rf conftest*
12408   glibcpp_cv_func_fmodl_use=yes
12409 else
12410   echo "configure: failed program was:" >&5
12411   cat conftest.$ac_ext >&5
12412   rm -rf conftest*
12413   glibcpp_cv_func_fmodl_use=no
12414 fi
12415 rm -f conftest*
12416       ac_ext=c
12417 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12418 ac_cpp='$CPP $CPPFLAGS'
12419 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12420 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12421 cross_compiling=$ac_cv_prog_cc_cross
12422
12423     
12424 fi
12425
12426   fi
12427   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
12428
12429   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
12430     for ac_func in fmodl
12431 do
12432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12433 echo "configure:12434: checking for $ac_func" >&5
12434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12435   echo $ac_n "(cached) $ac_c" 1>&6
12436 else
12437   cat > conftest.$ac_ext <<EOF
12438 #line 12439 "configure"
12439 #include "confdefs.h"
12440 /* System header to define __stub macros and hopefully few prototypes,
12441     which can conflict with char $ac_func(); below.  */
12442 #include <assert.h>
12443 /* Override any gcc2 internal prototype to avoid an error.  */
12444 /* We use char because int might match the return type of a gcc2
12445     builtin and then its argument prototype would still apply.  */
12446 char $ac_func();
12447
12448 int main() {
12449
12450 /* The GNU C library defines this for functions which it implements
12451     to always fail with ENOSYS.  Some functions are actually named
12452     something starting with __ and the normal name is an alias.  */
12453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12454 choke me
12455 #else
12456 $ac_func();
12457 #endif
12458
12459 ; return 0; }
12460 EOF
12461 if { (eval echo configure:12462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12462   rm -rf conftest*
12463   eval "ac_cv_func_$ac_func=yes"
12464 else
12465   echo "configure: failed program was:" >&5
12466   cat conftest.$ac_ext >&5
12467   rm -rf conftest*
12468   eval "ac_cv_func_$ac_func=no"
12469 fi
12470 rm -f conftest*
12471 fi
12472
12473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12474   echo "$ac_t""yes" 1>&6
12475     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12476   cat >> confdefs.h <<EOF
12477 #define $ac_tr_func 1
12478 EOF
12479  
12480 else
12481   echo "$ac_t""no" 1>&6
12482 fi
12483 done
12484     
12485   else
12486     
12487   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
12488 echo "configure:12489: checking for _fmodl declaration" >&5
12489   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
12490     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
12491   echo $ac_n "(cached) $ac_c" 1>&6
12492 else
12493   
12494       
12495       ac_ext=C
12496 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12497 ac_cpp='$CXXCPP $CPPFLAGS'
12498 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12499 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12500 cross_compiling=$ac_cv_prog_cxx_cross
12501
12502       cat > conftest.$ac_ext <<EOF
12503 #line 12504 "configure"
12504 #include "confdefs.h"
12505 #include <math.h>
12506 int main() {
12507  _fmodl(0, 0);
12508 ; return 0; }
12509 EOF
12510 if { (eval echo configure:12511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12511   rm -rf conftest*
12512   glibcpp_cv_func__fmodl_use=yes
12513 else
12514   echo "configure: failed program was:" >&5
12515   cat conftest.$ac_ext >&5
12516   rm -rf conftest*
12517   glibcpp_cv_func__fmodl_use=no
12518 fi
12519 rm -f conftest*
12520       ac_ext=c
12521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12522 ac_cpp='$CPP $CPPFLAGS'
12523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12525 cross_compiling=$ac_cv_prog_cc_cross
12526
12527     
12528 fi
12529
12530   fi
12531   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
12532
12533     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
12534       for ac_func in _fmodl
12535 do
12536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12537 echo "configure:12538: checking for $ac_func" >&5
12538 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12539   echo $ac_n "(cached) $ac_c" 1>&6
12540 else
12541   cat > conftest.$ac_ext <<EOF
12542 #line 12543 "configure"
12543 #include "confdefs.h"
12544 /* System header to define __stub macros and hopefully few prototypes,
12545     which can conflict with char $ac_func(); below.  */
12546 #include <assert.h>
12547 /* Override any gcc2 internal prototype to avoid an error.  */
12548 /* We use char because int might match the return type of a gcc2
12549     builtin and then its argument prototype would still apply.  */
12550 char $ac_func();
12551
12552 int main() {
12553
12554 /* The GNU C library defines this for functions which it implements
12555     to always fail with ENOSYS.  Some functions are actually named
12556     something starting with __ and the normal name is an alias.  */
12557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12558 choke me
12559 #else
12560 $ac_func();
12561 #endif
12562
12563 ; return 0; }
12564 EOF
12565 if { (eval echo configure:12566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12566   rm -rf conftest*
12567   eval "ac_cv_func_$ac_func=yes"
12568 else
12569   echo "configure: failed program was:" >&5
12570   cat conftest.$ac_ext >&5
12571   rm -rf conftest*
12572   eval "ac_cv_func_$ac_func=no"
12573 fi
12574 rm -f conftest*
12575 fi
12576
12577 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12578   echo "$ac_t""yes" 1>&6
12579     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12580   cat >> confdefs.h <<EOF
12581 #define $ac_tr_func 1
12582 EOF
12583  
12584 else
12585   echo "$ac_t""no" 1>&6
12586 fi
12587 done
12588     
12589     fi
12590   fi
12591
12592   
12593   
12594   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
12595 echo "configure:12596: checking for frexpl declaration" >&5
12596   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
12597     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
12598   echo $ac_n "(cached) $ac_c" 1>&6
12599 else
12600   
12601       
12602       ac_ext=C
12603 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12604 ac_cpp='$CXXCPP $CPPFLAGS'
12605 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12606 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12607 cross_compiling=$ac_cv_prog_cxx_cross
12608
12609       cat > conftest.$ac_ext <<EOF
12610 #line 12611 "configure"
12611 #include "confdefs.h"
12612 #include <math.h>
12613 int main() {
12614  frexpl(0, 0);
12615 ; return 0; }
12616 EOF
12617 if { (eval echo configure:12618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12618   rm -rf conftest*
12619   glibcpp_cv_func_frexpl_use=yes
12620 else
12621   echo "configure: failed program was:" >&5
12622   cat conftest.$ac_ext >&5
12623   rm -rf conftest*
12624   glibcpp_cv_func_frexpl_use=no
12625 fi
12626 rm -f conftest*
12627       ac_ext=c
12628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12629 ac_cpp='$CPP $CPPFLAGS'
12630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12632 cross_compiling=$ac_cv_prog_cc_cross
12633
12634     
12635 fi
12636
12637   fi
12638   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
12639
12640   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
12641     for ac_func in frexpl
12642 do
12643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12644 echo "configure:12645: checking for $ac_func" >&5
12645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12646   echo $ac_n "(cached) $ac_c" 1>&6
12647 else
12648   cat > conftest.$ac_ext <<EOF
12649 #line 12650 "configure"
12650 #include "confdefs.h"
12651 /* System header to define __stub macros and hopefully few prototypes,
12652     which can conflict with char $ac_func(); below.  */
12653 #include <assert.h>
12654 /* Override any gcc2 internal prototype to avoid an error.  */
12655 /* We use char because int might match the return type of a gcc2
12656     builtin and then its argument prototype would still apply.  */
12657 char $ac_func();
12658
12659 int main() {
12660
12661 /* The GNU C library defines this for functions which it implements
12662     to always fail with ENOSYS.  Some functions are actually named
12663     something starting with __ and the normal name is an alias.  */
12664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12665 choke me
12666 #else
12667 $ac_func();
12668 #endif
12669
12670 ; return 0; }
12671 EOF
12672 if { (eval echo configure:12673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12673   rm -rf conftest*
12674   eval "ac_cv_func_$ac_func=yes"
12675 else
12676   echo "configure: failed program was:" >&5
12677   cat conftest.$ac_ext >&5
12678   rm -rf conftest*
12679   eval "ac_cv_func_$ac_func=no"
12680 fi
12681 rm -f conftest*
12682 fi
12683
12684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12685   echo "$ac_t""yes" 1>&6
12686     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12687   cat >> confdefs.h <<EOF
12688 #define $ac_tr_func 1
12689 EOF
12690  
12691 else
12692   echo "$ac_t""no" 1>&6
12693 fi
12694 done
12695     
12696   else
12697     
12698   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
12699 echo "configure:12700: checking for _frexpl declaration" >&5
12700   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
12701     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
12702   echo $ac_n "(cached) $ac_c" 1>&6
12703 else
12704   
12705       
12706       ac_ext=C
12707 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12708 ac_cpp='$CXXCPP $CPPFLAGS'
12709 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12710 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12711 cross_compiling=$ac_cv_prog_cxx_cross
12712
12713       cat > conftest.$ac_ext <<EOF
12714 #line 12715 "configure"
12715 #include "confdefs.h"
12716 #include <math.h>
12717 int main() {
12718  _frexpl(0, 0);
12719 ; return 0; }
12720 EOF
12721 if { (eval echo configure:12722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12722   rm -rf conftest*
12723   glibcpp_cv_func__frexpl_use=yes
12724 else
12725   echo "configure: failed program was:" >&5
12726   cat conftest.$ac_ext >&5
12727   rm -rf conftest*
12728   glibcpp_cv_func__frexpl_use=no
12729 fi
12730 rm -f conftest*
12731       ac_ext=c
12732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12733 ac_cpp='$CPP $CPPFLAGS'
12734 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12735 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12736 cross_compiling=$ac_cv_prog_cc_cross
12737
12738     
12739 fi
12740
12741   fi
12742   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
12743
12744     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
12745       for ac_func in _frexpl
12746 do
12747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12748 echo "configure:12749: checking for $ac_func" >&5
12749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12750   echo $ac_n "(cached) $ac_c" 1>&6
12751 else
12752   cat > conftest.$ac_ext <<EOF
12753 #line 12754 "configure"
12754 #include "confdefs.h"
12755 /* System header to define __stub macros and hopefully few prototypes,
12756     which can conflict with char $ac_func(); below.  */
12757 #include <assert.h>
12758 /* Override any gcc2 internal prototype to avoid an error.  */
12759 /* We use char because int might match the return type of a gcc2
12760     builtin and then its argument prototype would still apply.  */
12761 char $ac_func();
12762
12763 int main() {
12764
12765 /* The GNU C library defines this for functions which it implements
12766     to always fail with ENOSYS.  Some functions are actually named
12767     something starting with __ and the normal name is an alias.  */
12768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12769 choke me
12770 #else
12771 $ac_func();
12772 #endif
12773
12774 ; return 0; }
12775 EOF
12776 if { (eval echo configure:12777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12777   rm -rf conftest*
12778   eval "ac_cv_func_$ac_func=yes"
12779 else
12780   echo "configure: failed program was:" >&5
12781   cat conftest.$ac_ext >&5
12782   rm -rf conftest*
12783   eval "ac_cv_func_$ac_func=no"
12784 fi
12785 rm -f conftest*
12786 fi
12787
12788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12789   echo "$ac_t""yes" 1>&6
12790     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12791   cat >> confdefs.h <<EOF
12792 #define $ac_tr_func 1
12793 EOF
12794  
12795 else
12796   echo "$ac_t""no" 1>&6
12797 fi
12798 done
12799     
12800     fi
12801   fi
12802
12803   
12804   
12805   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
12806 echo "configure:12807: checking for ldexpl declaration" >&5
12807   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
12808     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
12809   echo $ac_n "(cached) $ac_c" 1>&6
12810 else
12811   
12812       
12813       ac_ext=C
12814 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12815 ac_cpp='$CXXCPP $CPPFLAGS'
12816 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12817 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12818 cross_compiling=$ac_cv_prog_cxx_cross
12819
12820       cat > conftest.$ac_ext <<EOF
12821 #line 12822 "configure"
12822 #include "confdefs.h"
12823 #include <math.h>
12824 int main() {
12825  ldexpl(0, 0);
12826 ; return 0; }
12827 EOF
12828 if { (eval echo configure:12829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12829   rm -rf conftest*
12830   glibcpp_cv_func_ldexpl_use=yes
12831 else
12832   echo "configure: failed program was:" >&5
12833   cat conftest.$ac_ext >&5
12834   rm -rf conftest*
12835   glibcpp_cv_func_ldexpl_use=no
12836 fi
12837 rm -f conftest*
12838       ac_ext=c
12839 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12840 ac_cpp='$CPP $CPPFLAGS'
12841 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12842 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12843 cross_compiling=$ac_cv_prog_cc_cross
12844
12845     
12846 fi
12847
12848   fi
12849   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
12850
12851   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
12852     for ac_func in ldexpl
12853 do
12854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12855 echo "configure:12856: checking for $ac_func" >&5
12856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12857   echo $ac_n "(cached) $ac_c" 1>&6
12858 else
12859   cat > conftest.$ac_ext <<EOF
12860 #line 12861 "configure"
12861 #include "confdefs.h"
12862 /* System header to define __stub macros and hopefully few prototypes,
12863     which can conflict with char $ac_func(); below.  */
12864 #include <assert.h>
12865 /* Override any gcc2 internal prototype to avoid an error.  */
12866 /* We use char because int might match the return type of a gcc2
12867     builtin and then its argument prototype would still apply.  */
12868 char $ac_func();
12869
12870 int main() {
12871
12872 /* The GNU C library defines this for functions which it implements
12873     to always fail with ENOSYS.  Some functions are actually named
12874     something starting with __ and the normal name is an alias.  */
12875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12876 choke me
12877 #else
12878 $ac_func();
12879 #endif
12880
12881 ; return 0; }
12882 EOF
12883 if { (eval echo configure:12884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12884   rm -rf conftest*
12885   eval "ac_cv_func_$ac_func=yes"
12886 else
12887   echo "configure: failed program was:" >&5
12888   cat conftest.$ac_ext >&5
12889   rm -rf conftest*
12890   eval "ac_cv_func_$ac_func=no"
12891 fi
12892 rm -f conftest*
12893 fi
12894
12895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12896   echo "$ac_t""yes" 1>&6
12897     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12898   cat >> confdefs.h <<EOF
12899 #define $ac_tr_func 1
12900 EOF
12901  
12902 else
12903   echo "$ac_t""no" 1>&6
12904 fi
12905 done
12906     
12907   else
12908     
12909   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
12910 echo "configure:12911: checking for _ldexpl declaration" >&5
12911   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
12912     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
12913   echo $ac_n "(cached) $ac_c" 1>&6
12914 else
12915   
12916       
12917       ac_ext=C
12918 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12919 ac_cpp='$CXXCPP $CPPFLAGS'
12920 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12921 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12922 cross_compiling=$ac_cv_prog_cxx_cross
12923
12924       cat > conftest.$ac_ext <<EOF
12925 #line 12926 "configure"
12926 #include "confdefs.h"
12927 #include <math.h>
12928 int main() {
12929  _ldexpl(0, 0);
12930 ; return 0; }
12931 EOF
12932 if { (eval echo configure:12933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12933   rm -rf conftest*
12934   glibcpp_cv_func__ldexpl_use=yes
12935 else
12936   echo "configure: failed program was:" >&5
12937   cat conftest.$ac_ext >&5
12938   rm -rf conftest*
12939   glibcpp_cv_func__ldexpl_use=no
12940 fi
12941 rm -f conftest*
12942       ac_ext=c
12943 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12944 ac_cpp='$CPP $CPPFLAGS'
12945 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12946 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12947 cross_compiling=$ac_cv_prog_cc_cross
12948
12949     
12950 fi
12951
12952   fi
12953   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
12954
12955     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
12956       for ac_func in _ldexpl
12957 do
12958 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12959 echo "configure:12960: checking for $ac_func" >&5
12960 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12961   echo $ac_n "(cached) $ac_c" 1>&6
12962 else
12963   cat > conftest.$ac_ext <<EOF
12964 #line 12965 "configure"
12965 #include "confdefs.h"
12966 /* System header to define __stub macros and hopefully few prototypes,
12967     which can conflict with char $ac_func(); below.  */
12968 #include <assert.h>
12969 /* Override any gcc2 internal prototype to avoid an error.  */
12970 /* We use char because int might match the return type of a gcc2
12971     builtin and then its argument prototype would still apply.  */
12972 char $ac_func();
12973
12974 int main() {
12975
12976 /* The GNU C library defines this for functions which it implements
12977     to always fail with ENOSYS.  Some functions are actually named
12978     something starting with __ and the normal name is an alias.  */
12979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12980 choke me
12981 #else
12982 $ac_func();
12983 #endif
12984
12985 ; return 0; }
12986 EOF
12987 if { (eval echo configure:12988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12988   rm -rf conftest*
12989   eval "ac_cv_func_$ac_func=yes"
12990 else
12991   echo "configure: failed program was:" >&5
12992   cat conftest.$ac_ext >&5
12993   rm -rf conftest*
12994   eval "ac_cv_func_$ac_func=no"
12995 fi
12996 rm -f conftest*
12997 fi
12998
12999 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13000   echo "$ac_t""yes" 1>&6
13001     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13002   cat >> confdefs.h <<EOF
13003 #define $ac_tr_func 1
13004 EOF
13005  
13006 else
13007   echo "$ac_t""no" 1>&6
13008 fi
13009 done
13010     
13011     fi
13012   fi
13013
13014   
13015   
13016   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
13017 echo "configure:13018: checking for logl declaration" >&5
13018   if test x${glibcpp_cv_func_logl_use+set} != xset; then
13019     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
13020   echo $ac_n "(cached) $ac_c" 1>&6
13021 else
13022   
13023       
13024       ac_ext=C
13025 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13026 ac_cpp='$CXXCPP $CPPFLAGS'
13027 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13028 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13029 cross_compiling=$ac_cv_prog_cxx_cross
13030
13031       cat > conftest.$ac_ext <<EOF
13032 #line 13033 "configure"
13033 #include "confdefs.h"
13034 #include <math.h>
13035                       #ifdef HAVE_IEEEFP_H
13036                       #include <ieeefp.h>
13037                       #endif
13038                      
13039 int main() {
13040  logl(0);
13041 ; return 0; }
13042 EOF
13043 if { (eval echo configure:13044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13044   rm -rf conftest*
13045   glibcpp_cv_func_logl_use=yes
13046 else
13047   echo "configure: failed program was:" >&5
13048   cat conftest.$ac_ext >&5
13049   rm -rf conftest*
13050   glibcpp_cv_func_logl_use=no
13051 fi
13052 rm -f conftest*
13053       ac_ext=c
13054 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13055 ac_cpp='$CPP $CPPFLAGS'
13056 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13057 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13058 cross_compiling=$ac_cv_prog_cc_cross
13059
13060     
13061 fi
13062
13063   fi
13064   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
13065
13066   if test x$glibcpp_cv_func_logl_use = x"yes"; then
13067     for ac_func in logl
13068 do
13069 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13070 echo "configure:13071: checking for $ac_func" >&5
13071 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13072   echo $ac_n "(cached) $ac_c" 1>&6
13073 else
13074   cat > conftest.$ac_ext <<EOF
13075 #line 13076 "configure"
13076 #include "confdefs.h"
13077 /* System header to define __stub macros and hopefully few prototypes,
13078     which can conflict with char $ac_func(); below.  */
13079 #include <assert.h>
13080 /* Override any gcc2 internal prototype to avoid an error.  */
13081 /* We use char because int might match the return type of a gcc2
13082     builtin and then its argument prototype would still apply.  */
13083 char $ac_func();
13084
13085 int main() {
13086
13087 /* The GNU C library defines this for functions which it implements
13088     to always fail with ENOSYS.  Some functions are actually named
13089     something starting with __ and the normal name is an alias.  */
13090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13091 choke me
13092 #else
13093 $ac_func();
13094 #endif
13095
13096 ; return 0; }
13097 EOF
13098 if { (eval echo configure:13099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13099   rm -rf conftest*
13100   eval "ac_cv_func_$ac_func=yes"
13101 else
13102   echo "configure: failed program was:" >&5
13103   cat conftest.$ac_ext >&5
13104   rm -rf conftest*
13105   eval "ac_cv_func_$ac_func=no"
13106 fi
13107 rm -f conftest*
13108 fi
13109
13110 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13111   echo "$ac_t""yes" 1>&6
13112     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13113   cat >> confdefs.h <<EOF
13114 #define $ac_tr_func 1
13115 EOF
13116  
13117 else
13118   echo "$ac_t""no" 1>&6
13119 fi
13120 done
13121     
13122   else
13123     
13124   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
13125 echo "configure:13126: checking for _logl declaration" >&5
13126   if test x${glibcpp_cv_func__logl_use+set} != xset; then
13127     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
13128   echo $ac_n "(cached) $ac_c" 1>&6
13129 else
13130   
13131       
13132       ac_ext=C
13133 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13134 ac_cpp='$CXXCPP $CPPFLAGS'
13135 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13136 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13137 cross_compiling=$ac_cv_prog_cxx_cross
13138
13139       cat > conftest.$ac_ext <<EOF
13140 #line 13141 "configure"
13141 #include "confdefs.h"
13142 #include <math.h>
13143                       #ifdef HAVE_IEEEFP_H
13144                       #include <ieeefp.h>
13145                       #endif
13146                      
13147 int main() {
13148  _logl(0);
13149 ; return 0; }
13150 EOF
13151 if { (eval echo configure:13152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13152   rm -rf conftest*
13153   glibcpp_cv_func__logl_use=yes
13154 else
13155   echo "configure: failed program was:" >&5
13156   cat conftest.$ac_ext >&5
13157   rm -rf conftest*
13158   glibcpp_cv_func__logl_use=no
13159 fi
13160 rm -f conftest*
13161       ac_ext=c
13162 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13163 ac_cpp='$CPP $CPPFLAGS'
13164 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13165 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13166 cross_compiling=$ac_cv_prog_cc_cross
13167
13168     
13169 fi
13170
13171   fi
13172   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
13173
13174     if test x$glibcpp_cv_func__logl_use = x"yes"; then
13175       for ac_func in _logl
13176 do
13177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13178 echo "configure:13179: checking for $ac_func" >&5
13179 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13180   echo $ac_n "(cached) $ac_c" 1>&6
13181 else
13182   cat > conftest.$ac_ext <<EOF
13183 #line 13184 "configure"
13184 #include "confdefs.h"
13185 /* System header to define __stub macros and hopefully few prototypes,
13186     which can conflict with char $ac_func(); below.  */
13187 #include <assert.h>
13188 /* Override any gcc2 internal prototype to avoid an error.  */
13189 /* We use char because int might match the return type of a gcc2
13190     builtin and then its argument prototype would still apply.  */
13191 char $ac_func();
13192
13193 int main() {
13194
13195 /* The GNU C library defines this for functions which it implements
13196     to always fail with ENOSYS.  Some functions are actually named
13197     something starting with __ and the normal name is an alias.  */
13198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13199 choke me
13200 #else
13201 $ac_func();
13202 #endif
13203
13204 ; return 0; }
13205 EOF
13206 if { (eval echo configure:13207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13207   rm -rf conftest*
13208   eval "ac_cv_func_$ac_func=yes"
13209 else
13210   echo "configure: failed program was:" >&5
13211   cat conftest.$ac_ext >&5
13212   rm -rf conftest*
13213   eval "ac_cv_func_$ac_func=no"
13214 fi
13215 rm -f conftest*
13216 fi
13217
13218 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13219   echo "$ac_t""yes" 1>&6
13220     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13221   cat >> confdefs.h <<EOF
13222 #define $ac_tr_func 1
13223 EOF
13224  
13225 else
13226   echo "$ac_t""no" 1>&6
13227 fi
13228 done
13229     
13230     fi
13231   fi
13232
13233   
13234   
13235   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
13236 echo "configure:13237: checking for log10l declaration" >&5
13237   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
13238     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
13239   echo $ac_n "(cached) $ac_c" 1>&6
13240 else
13241   
13242       
13243       ac_ext=C
13244 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13245 ac_cpp='$CXXCPP $CPPFLAGS'
13246 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13247 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13248 cross_compiling=$ac_cv_prog_cxx_cross
13249
13250       cat > conftest.$ac_ext <<EOF
13251 #line 13252 "configure"
13252 #include "confdefs.h"
13253 #include <math.h>
13254                       #ifdef HAVE_IEEEFP_H
13255                       #include <ieeefp.h>
13256                       #endif
13257                      
13258 int main() {
13259  log10l(0);
13260 ; return 0; }
13261 EOF
13262 if { (eval echo configure:13263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13263   rm -rf conftest*
13264   glibcpp_cv_func_log10l_use=yes
13265 else
13266   echo "configure: failed program was:" >&5
13267   cat conftest.$ac_ext >&5
13268   rm -rf conftest*
13269   glibcpp_cv_func_log10l_use=no
13270 fi
13271 rm -f conftest*
13272       ac_ext=c
13273 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13274 ac_cpp='$CPP $CPPFLAGS'
13275 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13276 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13277 cross_compiling=$ac_cv_prog_cc_cross
13278
13279     
13280 fi
13281
13282   fi
13283   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
13284
13285   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
13286     for ac_func in log10l
13287 do
13288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13289 echo "configure:13290: checking for $ac_func" >&5
13290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13291   echo $ac_n "(cached) $ac_c" 1>&6
13292 else
13293   cat > conftest.$ac_ext <<EOF
13294 #line 13295 "configure"
13295 #include "confdefs.h"
13296 /* System header to define __stub macros and hopefully few prototypes,
13297     which can conflict with char $ac_func(); below.  */
13298 #include <assert.h>
13299 /* Override any gcc2 internal prototype to avoid an error.  */
13300 /* We use char because int might match the return type of a gcc2
13301     builtin and then its argument prototype would still apply.  */
13302 char $ac_func();
13303
13304 int main() {
13305
13306 /* The GNU C library defines this for functions which it implements
13307     to always fail with ENOSYS.  Some functions are actually named
13308     something starting with __ and the normal name is an alias.  */
13309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13310 choke me
13311 #else
13312 $ac_func();
13313 #endif
13314
13315 ; return 0; }
13316 EOF
13317 if { (eval echo configure:13318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13318   rm -rf conftest*
13319   eval "ac_cv_func_$ac_func=yes"
13320 else
13321   echo "configure: failed program was:" >&5
13322   cat conftest.$ac_ext >&5
13323   rm -rf conftest*
13324   eval "ac_cv_func_$ac_func=no"
13325 fi
13326 rm -f conftest*
13327 fi
13328
13329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13330   echo "$ac_t""yes" 1>&6
13331     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13332   cat >> confdefs.h <<EOF
13333 #define $ac_tr_func 1
13334 EOF
13335  
13336 else
13337   echo "$ac_t""no" 1>&6
13338 fi
13339 done
13340     
13341   else
13342     
13343   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
13344 echo "configure:13345: checking for _log10l declaration" >&5
13345   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
13346     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
13347   echo $ac_n "(cached) $ac_c" 1>&6
13348 else
13349   
13350       
13351       ac_ext=C
13352 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13353 ac_cpp='$CXXCPP $CPPFLAGS'
13354 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13355 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13356 cross_compiling=$ac_cv_prog_cxx_cross
13357
13358       cat > conftest.$ac_ext <<EOF
13359 #line 13360 "configure"
13360 #include "confdefs.h"
13361 #include <math.h>
13362                       #ifdef HAVE_IEEEFP_H
13363                       #include <ieeefp.h>
13364                       #endif
13365                      
13366 int main() {
13367  _log10l(0);
13368 ; return 0; }
13369 EOF
13370 if { (eval echo configure:13371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13371   rm -rf conftest*
13372   glibcpp_cv_func__log10l_use=yes
13373 else
13374   echo "configure: failed program was:" >&5
13375   cat conftest.$ac_ext >&5
13376   rm -rf conftest*
13377   glibcpp_cv_func__log10l_use=no
13378 fi
13379 rm -f conftest*
13380       ac_ext=c
13381 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13382 ac_cpp='$CPP $CPPFLAGS'
13383 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13384 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13385 cross_compiling=$ac_cv_prog_cc_cross
13386
13387     
13388 fi
13389
13390   fi
13391   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
13392
13393     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
13394       for ac_func in _log10l
13395 do
13396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13397 echo "configure:13398: checking for $ac_func" >&5
13398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13399   echo $ac_n "(cached) $ac_c" 1>&6
13400 else
13401   cat > conftest.$ac_ext <<EOF
13402 #line 13403 "configure"
13403 #include "confdefs.h"
13404 /* System header to define __stub macros and hopefully few prototypes,
13405     which can conflict with char $ac_func(); below.  */
13406 #include <assert.h>
13407 /* Override any gcc2 internal prototype to avoid an error.  */
13408 /* We use char because int might match the return type of a gcc2
13409     builtin and then its argument prototype would still apply.  */
13410 char $ac_func();
13411
13412 int main() {
13413
13414 /* The GNU C library defines this for functions which it implements
13415     to always fail with ENOSYS.  Some functions are actually named
13416     something starting with __ and the normal name is an alias.  */
13417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13418 choke me
13419 #else
13420 $ac_func();
13421 #endif
13422
13423 ; return 0; }
13424 EOF
13425 if { (eval echo configure:13426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13426   rm -rf conftest*
13427   eval "ac_cv_func_$ac_func=yes"
13428 else
13429   echo "configure: failed program was:" >&5
13430   cat conftest.$ac_ext >&5
13431   rm -rf conftest*
13432   eval "ac_cv_func_$ac_func=no"
13433 fi
13434 rm -f conftest*
13435 fi
13436
13437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13438   echo "$ac_t""yes" 1>&6
13439     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13440   cat >> confdefs.h <<EOF
13441 #define $ac_tr_func 1
13442 EOF
13443  
13444 else
13445   echo "$ac_t""no" 1>&6
13446 fi
13447 done
13448     
13449     fi
13450   fi
13451
13452   
13453   
13454   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
13455 echo "configure:13456: checking for modfl declaration" >&5
13456   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
13457     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
13458   echo $ac_n "(cached) $ac_c" 1>&6
13459 else
13460   
13461       
13462       ac_ext=C
13463 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13464 ac_cpp='$CXXCPP $CPPFLAGS'
13465 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13466 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13467 cross_compiling=$ac_cv_prog_cxx_cross
13468
13469       cat > conftest.$ac_ext <<EOF
13470 #line 13471 "configure"
13471 #include "confdefs.h"
13472 #include <math.h>
13473 int main() {
13474  modfl(0, 0);
13475 ; return 0; }
13476 EOF
13477 if { (eval echo configure:13478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13478   rm -rf conftest*
13479   glibcpp_cv_func_modfl_use=yes
13480 else
13481   echo "configure: failed program was:" >&5
13482   cat conftest.$ac_ext >&5
13483   rm -rf conftest*
13484   glibcpp_cv_func_modfl_use=no
13485 fi
13486 rm -f conftest*
13487       ac_ext=c
13488 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13489 ac_cpp='$CPP $CPPFLAGS'
13490 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13491 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13492 cross_compiling=$ac_cv_prog_cc_cross
13493
13494     
13495 fi
13496
13497   fi
13498   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
13499
13500   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
13501     for ac_func in modfl
13502 do
13503 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13504 echo "configure:13505: checking for $ac_func" >&5
13505 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13506   echo $ac_n "(cached) $ac_c" 1>&6
13507 else
13508   cat > conftest.$ac_ext <<EOF
13509 #line 13510 "configure"
13510 #include "confdefs.h"
13511 /* System header to define __stub macros and hopefully few prototypes,
13512     which can conflict with char $ac_func(); below.  */
13513 #include <assert.h>
13514 /* Override any gcc2 internal prototype to avoid an error.  */
13515 /* We use char because int might match the return type of a gcc2
13516     builtin and then its argument prototype would still apply.  */
13517 char $ac_func();
13518
13519 int main() {
13520
13521 /* The GNU C library defines this for functions which it implements
13522     to always fail with ENOSYS.  Some functions are actually named
13523     something starting with __ and the normal name is an alias.  */
13524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13525 choke me
13526 #else
13527 $ac_func();
13528 #endif
13529
13530 ; return 0; }
13531 EOF
13532 if { (eval echo configure:13533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13533   rm -rf conftest*
13534   eval "ac_cv_func_$ac_func=yes"
13535 else
13536   echo "configure: failed program was:" >&5
13537   cat conftest.$ac_ext >&5
13538   rm -rf conftest*
13539   eval "ac_cv_func_$ac_func=no"
13540 fi
13541 rm -f conftest*
13542 fi
13543
13544 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13545   echo "$ac_t""yes" 1>&6
13546     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13547   cat >> confdefs.h <<EOF
13548 #define $ac_tr_func 1
13549 EOF
13550  
13551 else
13552   echo "$ac_t""no" 1>&6
13553 fi
13554 done
13555     
13556   else
13557     
13558   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
13559 echo "configure:13560: checking for _modfl declaration" >&5
13560   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
13561     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
13562   echo $ac_n "(cached) $ac_c" 1>&6
13563 else
13564   
13565       
13566       ac_ext=C
13567 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13568 ac_cpp='$CXXCPP $CPPFLAGS'
13569 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13570 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13571 cross_compiling=$ac_cv_prog_cxx_cross
13572
13573       cat > conftest.$ac_ext <<EOF
13574 #line 13575 "configure"
13575 #include "confdefs.h"
13576 #include <math.h>
13577 int main() {
13578  _modfl(0, 0);
13579 ; return 0; }
13580 EOF
13581 if { (eval echo configure:13582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13582   rm -rf conftest*
13583   glibcpp_cv_func__modfl_use=yes
13584 else
13585   echo "configure: failed program was:" >&5
13586   cat conftest.$ac_ext >&5
13587   rm -rf conftest*
13588   glibcpp_cv_func__modfl_use=no
13589 fi
13590 rm -f conftest*
13591       ac_ext=c
13592 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13593 ac_cpp='$CPP $CPPFLAGS'
13594 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13595 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13596 cross_compiling=$ac_cv_prog_cc_cross
13597
13598     
13599 fi
13600
13601   fi
13602   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
13603
13604     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
13605       for ac_func in _modfl
13606 do
13607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13608 echo "configure:13609: checking for $ac_func" >&5
13609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13610   echo $ac_n "(cached) $ac_c" 1>&6
13611 else
13612   cat > conftest.$ac_ext <<EOF
13613 #line 13614 "configure"
13614 #include "confdefs.h"
13615 /* System header to define __stub macros and hopefully few prototypes,
13616     which can conflict with char $ac_func(); below.  */
13617 #include <assert.h>
13618 /* Override any gcc2 internal prototype to avoid an error.  */
13619 /* We use char because int might match the return type of a gcc2
13620     builtin and then its argument prototype would still apply.  */
13621 char $ac_func();
13622
13623 int main() {
13624
13625 /* The GNU C library defines this for functions which it implements
13626     to always fail with ENOSYS.  Some functions are actually named
13627     something starting with __ and the normal name is an alias.  */
13628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13629 choke me
13630 #else
13631 $ac_func();
13632 #endif
13633
13634 ; return 0; }
13635 EOF
13636 if { (eval echo configure:13637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13637   rm -rf conftest*
13638   eval "ac_cv_func_$ac_func=yes"
13639 else
13640   echo "configure: failed program was:" >&5
13641   cat conftest.$ac_ext >&5
13642   rm -rf conftest*
13643   eval "ac_cv_func_$ac_func=no"
13644 fi
13645 rm -f conftest*
13646 fi
13647
13648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13649   echo "$ac_t""yes" 1>&6
13650     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13651   cat >> confdefs.h <<EOF
13652 #define $ac_tr_func 1
13653 EOF
13654  
13655 else
13656   echo "$ac_t""no" 1>&6
13657 fi
13658 done
13659     
13660     fi
13661   fi
13662
13663   
13664   
13665   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
13666 echo "configure:13667: checking for powl declaration" >&5
13667   if test x${glibcpp_cv_func_powl_use+set} != xset; then
13668     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
13669   echo $ac_n "(cached) $ac_c" 1>&6
13670 else
13671   
13672       
13673       ac_ext=C
13674 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13675 ac_cpp='$CXXCPP $CPPFLAGS'
13676 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13677 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13678 cross_compiling=$ac_cv_prog_cxx_cross
13679
13680       cat > conftest.$ac_ext <<EOF
13681 #line 13682 "configure"
13682 #include "confdefs.h"
13683 #include <math.h>
13684 int main() {
13685  powl(0, 0);
13686 ; return 0; }
13687 EOF
13688 if { (eval echo configure:13689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13689   rm -rf conftest*
13690   glibcpp_cv_func_powl_use=yes
13691 else
13692   echo "configure: failed program was:" >&5
13693   cat conftest.$ac_ext >&5
13694   rm -rf conftest*
13695   glibcpp_cv_func_powl_use=no
13696 fi
13697 rm -f conftest*
13698       ac_ext=c
13699 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13700 ac_cpp='$CPP $CPPFLAGS'
13701 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13702 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13703 cross_compiling=$ac_cv_prog_cc_cross
13704
13705     
13706 fi
13707
13708   fi
13709   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
13710
13711   if test x$glibcpp_cv_func_powl_use = x"yes"; then
13712     for ac_func in powl
13713 do
13714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13715 echo "configure:13716: checking for $ac_func" >&5
13716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13717   echo $ac_n "(cached) $ac_c" 1>&6
13718 else
13719   cat > conftest.$ac_ext <<EOF
13720 #line 13721 "configure"
13721 #include "confdefs.h"
13722 /* System header to define __stub macros and hopefully few prototypes,
13723     which can conflict with char $ac_func(); below.  */
13724 #include <assert.h>
13725 /* Override any gcc2 internal prototype to avoid an error.  */
13726 /* We use char because int might match the return type of a gcc2
13727     builtin and then its argument prototype would still apply.  */
13728 char $ac_func();
13729
13730 int main() {
13731
13732 /* The GNU C library defines this for functions which it implements
13733     to always fail with ENOSYS.  Some functions are actually named
13734     something starting with __ and the normal name is an alias.  */
13735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13736 choke me
13737 #else
13738 $ac_func();
13739 #endif
13740
13741 ; return 0; }
13742 EOF
13743 if { (eval echo configure:13744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13744   rm -rf conftest*
13745   eval "ac_cv_func_$ac_func=yes"
13746 else
13747   echo "configure: failed program was:" >&5
13748   cat conftest.$ac_ext >&5
13749   rm -rf conftest*
13750   eval "ac_cv_func_$ac_func=no"
13751 fi
13752 rm -f conftest*
13753 fi
13754
13755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13756   echo "$ac_t""yes" 1>&6
13757     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13758   cat >> confdefs.h <<EOF
13759 #define $ac_tr_func 1
13760 EOF
13761  
13762 else
13763   echo "$ac_t""no" 1>&6
13764 fi
13765 done
13766     
13767   else
13768     
13769   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
13770 echo "configure:13771: checking for _powl declaration" >&5
13771   if test x${glibcpp_cv_func__powl_use+set} != xset; then
13772     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
13773   echo $ac_n "(cached) $ac_c" 1>&6
13774 else
13775   
13776       
13777       ac_ext=C
13778 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13779 ac_cpp='$CXXCPP $CPPFLAGS'
13780 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13781 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13782 cross_compiling=$ac_cv_prog_cxx_cross
13783
13784       cat > conftest.$ac_ext <<EOF
13785 #line 13786 "configure"
13786 #include "confdefs.h"
13787 #include <math.h>
13788 int main() {
13789  _powl(0, 0);
13790 ; return 0; }
13791 EOF
13792 if { (eval echo configure:13793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13793   rm -rf conftest*
13794   glibcpp_cv_func__powl_use=yes
13795 else
13796   echo "configure: failed program was:" >&5
13797   cat conftest.$ac_ext >&5
13798   rm -rf conftest*
13799   glibcpp_cv_func__powl_use=no
13800 fi
13801 rm -f conftest*
13802       ac_ext=c
13803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13804 ac_cpp='$CPP $CPPFLAGS'
13805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13807 cross_compiling=$ac_cv_prog_cc_cross
13808
13809     
13810 fi
13811
13812   fi
13813   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
13814
13815     if test x$glibcpp_cv_func__powl_use = x"yes"; then
13816       for ac_func in _powl
13817 do
13818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13819 echo "configure:13820: checking for $ac_func" >&5
13820 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13821   echo $ac_n "(cached) $ac_c" 1>&6
13822 else
13823   cat > conftest.$ac_ext <<EOF
13824 #line 13825 "configure"
13825 #include "confdefs.h"
13826 /* System header to define __stub macros and hopefully few prototypes,
13827     which can conflict with char $ac_func(); below.  */
13828 #include <assert.h>
13829 /* Override any gcc2 internal prototype to avoid an error.  */
13830 /* We use char because int might match the return type of a gcc2
13831     builtin and then its argument prototype would still apply.  */
13832 char $ac_func();
13833
13834 int main() {
13835
13836 /* The GNU C library defines this for functions which it implements
13837     to always fail with ENOSYS.  Some functions are actually named
13838     something starting with __ and the normal name is an alias.  */
13839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13840 choke me
13841 #else
13842 $ac_func();
13843 #endif
13844
13845 ; return 0; }
13846 EOF
13847 if { (eval echo configure:13848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13848   rm -rf conftest*
13849   eval "ac_cv_func_$ac_func=yes"
13850 else
13851   echo "configure: failed program was:" >&5
13852   cat conftest.$ac_ext >&5
13853   rm -rf conftest*
13854   eval "ac_cv_func_$ac_func=no"
13855 fi
13856 rm -f conftest*
13857 fi
13858
13859 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13860   echo "$ac_t""yes" 1>&6
13861     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13862   cat >> confdefs.h <<EOF
13863 #define $ac_tr_func 1
13864 EOF
13865  
13866 else
13867   echo "$ac_t""no" 1>&6
13868 fi
13869 done
13870     
13871     fi
13872   fi
13873
13874   
13875   
13876   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
13877 echo "configure:13878: checking for sqrtl declaration" >&5
13878   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
13879     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
13880   echo $ac_n "(cached) $ac_c" 1>&6
13881 else
13882   
13883       
13884       ac_ext=C
13885 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13886 ac_cpp='$CXXCPP $CPPFLAGS'
13887 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13888 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13889 cross_compiling=$ac_cv_prog_cxx_cross
13890
13891       cat > conftest.$ac_ext <<EOF
13892 #line 13893 "configure"
13893 #include "confdefs.h"
13894 #include <math.h>
13895                       #ifdef HAVE_IEEEFP_H
13896                       #include <ieeefp.h>
13897                       #endif
13898                      
13899 int main() {
13900  sqrtl(0);
13901 ; return 0; }
13902 EOF
13903 if { (eval echo configure:13904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13904   rm -rf conftest*
13905   glibcpp_cv_func_sqrtl_use=yes
13906 else
13907   echo "configure: failed program was:" >&5
13908   cat conftest.$ac_ext >&5
13909   rm -rf conftest*
13910   glibcpp_cv_func_sqrtl_use=no
13911 fi
13912 rm -f conftest*
13913       ac_ext=c
13914 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13915 ac_cpp='$CPP $CPPFLAGS'
13916 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13917 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13918 cross_compiling=$ac_cv_prog_cc_cross
13919
13920     
13921 fi
13922
13923   fi
13924   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
13925
13926   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
13927     for ac_func in sqrtl
13928 do
13929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13930 echo "configure:13931: checking for $ac_func" >&5
13931 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13932   echo $ac_n "(cached) $ac_c" 1>&6
13933 else
13934   cat > conftest.$ac_ext <<EOF
13935 #line 13936 "configure"
13936 #include "confdefs.h"
13937 /* System header to define __stub macros and hopefully few prototypes,
13938     which can conflict with char $ac_func(); below.  */
13939 #include <assert.h>
13940 /* Override any gcc2 internal prototype to avoid an error.  */
13941 /* We use char because int might match the return type of a gcc2
13942     builtin and then its argument prototype would still apply.  */
13943 char $ac_func();
13944
13945 int main() {
13946
13947 /* The GNU C library defines this for functions which it implements
13948     to always fail with ENOSYS.  Some functions are actually named
13949     something starting with __ and the normal name is an alias.  */
13950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13951 choke me
13952 #else
13953 $ac_func();
13954 #endif
13955
13956 ; return 0; }
13957 EOF
13958 if { (eval echo configure:13959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13959   rm -rf conftest*
13960   eval "ac_cv_func_$ac_func=yes"
13961 else
13962   echo "configure: failed program was:" >&5
13963   cat conftest.$ac_ext >&5
13964   rm -rf conftest*
13965   eval "ac_cv_func_$ac_func=no"
13966 fi
13967 rm -f conftest*
13968 fi
13969
13970 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13971   echo "$ac_t""yes" 1>&6
13972     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13973   cat >> confdefs.h <<EOF
13974 #define $ac_tr_func 1
13975 EOF
13976  
13977 else
13978   echo "$ac_t""no" 1>&6
13979 fi
13980 done
13981     
13982   else
13983     
13984   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
13985 echo "configure:13986: checking for _sqrtl declaration" >&5
13986   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
13987     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
13988   echo $ac_n "(cached) $ac_c" 1>&6
13989 else
13990   
13991       
13992       ac_ext=C
13993 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13994 ac_cpp='$CXXCPP $CPPFLAGS'
13995 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13996 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13997 cross_compiling=$ac_cv_prog_cxx_cross
13998
13999       cat > conftest.$ac_ext <<EOF
14000 #line 14001 "configure"
14001 #include "confdefs.h"
14002 #include <math.h>
14003                       #ifdef HAVE_IEEEFP_H
14004                       #include <ieeefp.h>
14005                       #endif
14006                      
14007 int main() {
14008  _sqrtl(0);
14009 ; return 0; }
14010 EOF
14011 if { (eval echo configure:14012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14012   rm -rf conftest*
14013   glibcpp_cv_func__sqrtl_use=yes
14014 else
14015   echo "configure: failed program was:" >&5
14016   cat conftest.$ac_ext >&5
14017   rm -rf conftest*
14018   glibcpp_cv_func__sqrtl_use=no
14019 fi
14020 rm -f conftest*
14021       ac_ext=c
14022 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14023 ac_cpp='$CPP $CPPFLAGS'
14024 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14025 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14026 cross_compiling=$ac_cv_prog_cc_cross
14027
14028     
14029 fi
14030
14031   fi
14032   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
14033
14034     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
14035       for ac_func in _sqrtl
14036 do
14037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14038 echo "configure:14039: checking for $ac_func" >&5
14039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14040   echo $ac_n "(cached) $ac_c" 1>&6
14041 else
14042   cat > conftest.$ac_ext <<EOF
14043 #line 14044 "configure"
14044 #include "confdefs.h"
14045 /* System header to define __stub macros and hopefully few prototypes,
14046     which can conflict with char $ac_func(); below.  */
14047 #include <assert.h>
14048 /* Override any gcc2 internal prototype to avoid an error.  */
14049 /* We use char because int might match the return type of a gcc2
14050     builtin and then its argument prototype would still apply.  */
14051 char $ac_func();
14052
14053 int main() {
14054
14055 /* The GNU C library defines this for functions which it implements
14056     to always fail with ENOSYS.  Some functions are actually named
14057     something starting with __ and the normal name is an alias.  */
14058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14059 choke me
14060 #else
14061 $ac_func();
14062 #endif
14063
14064 ; return 0; }
14065 EOF
14066 if { (eval echo configure:14067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14067   rm -rf conftest*
14068   eval "ac_cv_func_$ac_func=yes"
14069 else
14070   echo "configure: failed program was:" >&5
14071   cat conftest.$ac_ext >&5
14072   rm -rf conftest*
14073   eval "ac_cv_func_$ac_func=no"
14074 fi
14075 rm -f conftest*
14076 fi
14077
14078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14079   echo "$ac_t""yes" 1>&6
14080     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14081   cat >> confdefs.h <<EOF
14082 #define $ac_tr_func 1
14083 EOF
14084  
14085 else
14086   echo "$ac_t""no" 1>&6
14087 fi
14088 done
14089     
14090     fi
14091   fi
14092
14093   
14094   
14095   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
14096 echo "configure:14097: checking for sincosl declaration" >&5
14097   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
14098     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
14099   echo $ac_n "(cached) $ac_c" 1>&6
14100 else
14101   
14102       
14103       ac_ext=C
14104 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14105 ac_cpp='$CXXCPP $CPPFLAGS'
14106 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14107 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14108 cross_compiling=$ac_cv_prog_cxx_cross
14109
14110       cat > conftest.$ac_ext <<EOF
14111 #line 14112 "configure"
14112 #include "confdefs.h"
14113 #include <math.h>
14114 int main() {
14115  sincosl(0, 0, 0);
14116 ; return 0; }
14117 EOF
14118 if { (eval echo configure:14119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14119   rm -rf conftest*
14120   glibcpp_cv_func_sincosl_use=yes
14121 else
14122   echo "configure: failed program was:" >&5
14123   cat conftest.$ac_ext >&5
14124   rm -rf conftest*
14125   glibcpp_cv_func_sincosl_use=no
14126 fi
14127 rm -f conftest*
14128       ac_ext=c
14129 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14130 ac_cpp='$CPP $CPPFLAGS'
14131 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14132 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14133 cross_compiling=$ac_cv_prog_cc_cross
14134
14135     
14136 fi
14137
14138   fi
14139   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
14140
14141   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
14142     for ac_func in sincosl
14143 do
14144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14145 echo "configure:14146: checking for $ac_func" >&5
14146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14147   echo $ac_n "(cached) $ac_c" 1>&6
14148 else
14149   cat > conftest.$ac_ext <<EOF
14150 #line 14151 "configure"
14151 #include "confdefs.h"
14152 /* System header to define __stub macros and hopefully few prototypes,
14153     which can conflict with char $ac_func(); below.  */
14154 #include <assert.h>
14155 /* Override any gcc2 internal prototype to avoid an error.  */
14156 /* We use char because int might match the return type of a gcc2
14157     builtin and then its argument prototype would still apply.  */
14158 char $ac_func();
14159
14160 int main() {
14161
14162 /* The GNU C library defines this for functions which it implements
14163     to always fail with ENOSYS.  Some functions are actually named
14164     something starting with __ and the normal name is an alias.  */
14165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14166 choke me
14167 #else
14168 $ac_func();
14169 #endif
14170
14171 ; return 0; }
14172 EOF
14173 if { (eval echo configure:14174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14174   rm -rf conftest*
14175   eval "ac_cv_func_$ac_func=yes"
14176 else
14177   echo "configure: failed program was:" >&5
14178   cat conftest.$ac_ext >&5
14179   rm -rf conftest*
14180   eval "ac_cv_func_$ac_func=no"
14181 fi
14182 rm -f conftest*
14183 fi
14184
14185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14186   echo "$ac_t""yes" 1>&6
14187     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14188   cat >> confdefs.h <<EOF
14189 #define $ac_tr_func 1
14190 EOF
14191  
14192 else
14193   echo "$ac_t""no" 1>&6
14194 fi
14195 done
14196     
14197   else
14198     
14199   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
14200 echo "configure:14201: checking for _sincosl declaration" >&5
14201   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
14202     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
14203   echo $ac_n "(cached) $ac_c" 1>&6
14204 else
14205   
14206       
14207       ac_ext=C
14208 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14209 ac_cpp='$CXXCPP $CPPFLAGS'
14210 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14211 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14212 cross_compiling=$ac_cv_prog_cxx_cross
14213
14214       cat > conftest.$ac_ext <<EOF
14215 #line 14216 "configure"
14216 #include "confdefs.h"
14217 #include <math.h>
14218 int main() {
14219  _sincosl(0, 0, 0);
14220 ; return 0; }
14221 EOF
14222 if { (eval echo configure:14223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14223   rm -rf conftest*
14224   glibcpp_cv_func__sincosl_use=yes
14225 else
14226   echo "configure: failed program was:" >&5
14227   cat conftest.$ac_ext >&5
14228   rm -rf conftest*
14229   glibcpp_cv_func__sincosl_use=no
14230 fi
14231 rm -f conftest*
14232       ac_ext=c
14233 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14234 ac_cpp='$CPP $CPPFLAGS'
14235 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14236 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14237 cross_compiling=$ac_cv_prog_cc_cross
14238
14239     
14240 fi
14241
14242   fi
14243   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
14244
14245     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
14246       for ac_func in _sincosl
14247 do
14248 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14249 echo "configure:14250: checking for $ac_func" >&5
14250 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14251   echo $ac_n "(cached) $ac_c" 1>&6
14252 else
14253   cat > conftest.$ac_ext <<EOF
14254 #line 14255 "configure"
14255 #include "confdefs.h"
14256 /* System header to define __stub macros and hopefully few prototypes,
14257     which can conflict with char $ac_func(); below.  */
14258 #include <assert.h>
14259 /* Override any gcc2 internal prototype to avoid an error.  */
14260 /* We use char because int might match the return type of a gcc2
14261     builtin and then its argument prototype would still apply.  */
14262 char $ac_func();
14263
14264 int main() {
14265
14266 /* The GNU C library defines this for functions which it implements
14267     to always fail with ENOSYS.  Some functions are actually named
14268     something starting with __ and the normal name is an alias.  */
14269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14270 choke me
14271 #else
14272 $ac_func();
14273 #endif
14274
14275 ; return 0; }
14276 EOF
14277 if { (eval echo configure:14278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14278   rm -rf conftest*
14279   eval "ac_cv_func_$ac_func=yes"
14280 else
14281   echo "configure: failed program was:" >&5
14282   cat conftest.$ac_ext >&5
14283   rm -rf conftest*
14284   eval "ac_cv_func_$ac_func=no"
14285 fi
14286 rm -f conftest*
14287 fi
14288
14289 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14290   echo "$ac_t""yes" 1>&6
14291     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14292   cat >> confdefs.h <<EOF
14293 #define $ac_tr_func 1
14294 EOF
14295  
14296 else
14297   echo "$ac_t""no" 1>&6
14298 fi
14299 done
14300     
14301     fi
14302   fi
14303
14304   
14305   
14306   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
14307 echo "configure:14308: checking for finitel declaration" >&5
14308   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
14309     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
14310   echo $ac_n "(cached) $ac_c" 1>&6
14311 else
14312   
14313       
14314       ac_ext=C
14315 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14316 ac_cpp='$CXXCPP $CPPFLAGS'
14317 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14318 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14319 cross_compiling=$ac_cv_prog_cxx_cross
14320
14321       cat > conftest.$ac_ext <<EOF
14322 #line 14323 "configure"
14323 #include "confdefs.h"
14324 #include <math.h>
14325                       #ifdef HAVE_IEEEFP_H
14326                       #include <ieeefp.h>
14327                       #endif
14328                      
14329 int main() {
14330  finitel(0);
14331 ; return 0; }
14332 EOF
14333 if { (eval echo configure:14334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14334   rm -rf conftest*
14335   glibcpp_cv_func_finitel_use=yes
14336 else
14337   echo "configure: failed program was:" >&5
14338   cat conftest.$ac_ext >&5
14339   rm -rf conftest*
14340   glibcpp_cv_func_finitel_use=no
14341 fi
14342 rm -f conftest*
14343       ac_ext=c
14344 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14345 ac_cpp='$CPP $CPPFLAGS'
14346 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14347 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14348 cross_compiling=$ac_cv_prog_cc_cross
14349
14350     
14351 fi
14352
14353   fi
14354   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
14355
14356   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
14357     for ac_func in finitel
14358 do
14359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14360 echo "configure:14361: checking for $ac_func" >&5
14361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14362   echo $ac_n "(cached) $ac_c" 1>&6
14363 else
14364   cat > conftest.$ac_ext <<EOF
14365 #line 14366 "configure"
14366 #include "confdefs.h"
14367 /* System header to define __stub macros and hopefully few prototypes,
14368     which can conflict with char $ac_func(); below.  */
14369 #include <assert.h>
14370 /* Override any gcc2 internal prototype to avoid an error.  */
14371 /* We use char because int might match the return type of a gcc2
14372     builtin and then its argument prototype would still apply.  */
14373 char $ac_func();
14374
14375 int main() {
14376
14377 /* The GNU C library defines this for functions which it implements
14378     to always fail with ENOSYS.  Some functions are actually named
14379     something starting with __ and the normal name is an alias.  */
14380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14381 choke me
14382 #else
14383 $ac_func();
14384 #endif
14385
14386 ; return 0; }
14387 EOF
14388 if { (eval echo configure:14389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14389   rm -rf conftest*
14390   eval "ac_cv_func_$ac_func=yes"
14391 else
14392   echo "configure: failed program was:" >&5
14393   cat conftest.$ac_ext >&5
14394   rm -rf conftest*
14395   eval "ac_cv_func_$ac_func=no"
14396 fi
14397 rm -f conftest*
14398 fi
14399
14400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14401   echo "$ac_t""yes" 1>&6
14402     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14403   cat >> confdefs.h <<EOF
14404 #define $ac_tr_func 1
14405 EOF
14406  
14407 else
14408   echo "$ac_t""no" 1>&6
14409 fi
14410 done
14411     
14412   else
14413     
14414   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
14415 echo "configure:14416: checking for _finitel declaration" >&5
14416   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
14417     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
14418   echo $ac_n "(cached) $ac_c" 1>&6
14419 else
14420   
14421       
14422       ac_ext=C
14423 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14424 ac_cpp='$CXXCPP $CPPFLAGS'
14425 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14426 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14427 cross_compiling=$ac_cv_prog_cxx_cross
14428
14429       cat > conftest.$ac_ext <<EOF
14430 #line 14431 "configure"
14431 #include "confdefs.h"
14432 #include <math.h>
14433                       #ifdef HAVE_IEEEFP_H
14434                       #include <ieeefp.h>
14435                       #endif
14436                      
14437 int main() {
14438  _finitel(0);
14439 ; return 0; }
14440 EOF
14441 if { (eval echo configure:14442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14442   rm -rf conftest*
14443   glibcpp_cv_func__finitel_use=yes
14444 else
14445   echo "configure: failed program was:" >&5
14446   cat conftest.$ac_ext >&5
14447   rm -rf conftest*
14448   glibcpp_cv_func__finitel_use=no
14449 fi
14450 rm -f conftest*
14451       ac_ext=c
14452 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14453 ac_cpp='$CPP $CPPFLAGS'
14454 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14455 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14456 cross_compiling=$ac_cv_prog_cc_cross
14457
14458     
14459 fi
14460
14461   fi
14462   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
14463
14464     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
14465       for ac_func in _finitel
14466 do
14467 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14468 echo "configure:14469: checking for $ac_func" >&5
14469 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14470   echo $ac_n "(cached) $ac_c" 1>&6
14471 else
14472   cat > conftest.$ac_ext <<EOF
14473 #line 14474 "configure"
14474 #include "confdefs.h"
14475 /* System header to define __stub macros and hopefully few prototypes,
14476     which can conflict with char $ac_func(); below.  */
14477 #include <assert.h>
14478 /* Override any gcc2 internal prototype to avoid an error.  */
14479 /* We use char because int might match the return type of a gcc2
14480     builtin and then its argument prototype would still apply.  */
14481 char $ac_func();
14482
14483 int main() {
14484
14485 /* The GNU C library defines this for functions which it implements
14486     to always fail with ENOSYS.  Some functions are actually named
14487     something starting with __ and the normal name is an alias.  */
14488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14489 choke me
14490 #else
14491 $ac_func();
14492 #endif
14493
14494 ; return 0; }
14495 EOF
14496 if { (eval echo configure:14497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14497   rm -rf conftest*
14498   eval "ac_cv_func_$ac_func=yes"
14499 else
14500   echo "configure: failed program was:" >&5
14501   cat conftest.$ac_ext >&5
14502   rm -rf conftest*
14503   eval "ac_cv_func_$ac_func=no"
14504 fi
14505 rm -f conftest*
14506 fi
14507
14508 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14509   echo "$ac_t""yes" 1>&6
14510     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14511   cat >> confdefs.h <<EOF
14512 #define $ac_tr_func 1
14513 EOF
14514  
14515 else
14516   echo "$ac_t""no" 1>&6
14517 fi
14518 done
14519     
14520     fi
14521   fi
14522
14523
14524         
14525     
14526   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
14527 echo "configure:14528: checking for _float trig functions" >&5
14528   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
14529   echo $ac_n "(cached) $ac_c" 1>&6
14530 else
14531   
14532     
14533     ac_ext=C
14534 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14535 ac_cpp='$CXXCPP $CPPFLAGS'
14536 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14537 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14538 cross_compiling=$ac_cv_prog_cxx_cross
14539
14540     cat > conftest.$ac_ext <<EOF
14541 #line 14542 "configure"
14542 #include "confdefs.h"
14543 #include <math.h>
14544 int main() {
14545  `for x in _acosf _asinf _atanf \
14546                                           _cosf _sinf _tanf \
14547                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
14548 ; return 0; }
14549 EOF
14550 if { (eval echo configure:14551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14551   rm -rf conftest*
14552   glibcpp_cv_func__float_trig_use=yes
14553 else
14554   echo "configure: failed program was:" >&5
14555   cat conftest.$ac_ext >&5
14556   rm -rf conftest*
14557   glibcpp_cv_func__float_trig_use=no
14558 fi
14559 rm -f conftest*
14560     ac_ext=c
14561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14562 ac_cpp='$CPP $CPPFLAGS'
14563 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14564 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14565 cross_compiling=$ac_cv_prog_cc_cross
14566
14567 fi
14568
14569   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
14570   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
14571     for ac_func in _acosf _asinf _atanf \
14572                                           _cosf _sinf _tanf \
14573                                           _coshf _sinhf _tanhf
14574 do
14575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14576 echo "configure:14577: checking for $ac_func" >&5
14577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14578   echo $ac_n "(cached) $ac_c" 1>&6
14579 else
14580   cat > conftest.$ac_ext <<EOF
14581 #line 14582 "configure"
14582 #include "confdefs.h"
14583 /* System header to define __stub macros and hopefully few prototypes,
14584     which can conflict with char $ac_func(); below.  */
14585 #include <assert.h>
14586 /* Override any gcc2 internal prototype to avoid an error.  */
14587 /* We use char because int might match the return type of a gcc2
14588     builtin and then its argument prototype would still apply.  */
14589 char $ac_func();
14590
14591 int main() {
14592
14593 /* The GNU C library defines this for functions which it implements
14594     to always fail with ENOSYS.  Some functions are actually named
14595     something starting with __ and the normal name is an alias.  */
14596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14597 choke me
14598 #else
14599 $ac_func();
14600 #endif
14601
14602 ; return 0; }
14603 EOF
14604 if { (eval echo configure:14605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14605   rm -rf conftest*
14606   eval "ac_cv_func_$ac_func=yes"
14607 else
14608   echo "configure: failed program was:" >&5
14609   cat conftest.$ac_ext >&5
14610   rm -rf conftest*
14611   eval "ac_cv_func_$ac_func=no"
14612 fi
14613 rm -f conftest*
14614 fi
14615
14616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14617   echo "$ac_t""yes" 1>&6
14618     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14619   cat >> confdefs.h <<EOF
14620 #define $ac_tr_func 1
14621 EOF
14622  
14623 else
14624   echo "$ac_t""no" 1>&6
14625 fi
14626 done
14627
14628   fi
14629
14630   
14631   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
14632 echo "configure:14633: checking for _float round functions" >&5
14633   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
14634   echo $ac_n "(cached) $ac_c" 1>&6
14635 else
14636   
14637     
14638     ac_ext=C
14639 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14640 ac_cpp='$CXXCPP $CPPFLAGS'
14641 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14642 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14643 cross_compiling=$ac_cv_prog_cxx_cross
14644
14645     cat > conftest.$ac_ext <<EOF
14646 #line 14647 "configure"
14647 #include "confdefs.h"
14648 #include <math.h>
14649 int main() {
14650  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
14651 ; return 0; }
14652 EOF
14653 if { (eval echo configure:14654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14654   rm -rf conftest*
14655   glibcpp_cv_func__float_round_use=yes
14656 else
14657   echo "configure: failed program was:" >&5
14658   cat conftest.$ac_ext >&5
14659   rm -rf conftest*
14660   glibcpp_cv_func__float_round_use=no
14661 fi
14662 rm -f conftest*
14663     ac_ext=c
14664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14665 ac_cpp='$CPP $CPPFLAGS'
14666 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14667 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14668 cross_compiling=$ac_cv_prog_cc_cross
14669
14670 fi
14671
14672   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
14673   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
14674     for ac_func in _ceilf _floorf
14675 do
14676 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14677 echo "configure:14678: checking for $ac_func" >&5
14678 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14679   echo $ac_n "(cached) $ac_c" 1>&6
14680 else
14681   cat > conftest.$ac_ext <<EOF
14682 #line 14683 "configure"
14683 #include "confdefs.h"
14684 /* System header to define __stub macros and hopefully few prototypes,
14685     which can conflict with char $ac_func(); below.  */
14686 #include <assert.h>
14687 /* Override any gcc2 internal prototype to avoid an error.  */
14688 /* We use char because int might match the return type of a gcc2
14689     builtin and then its argument prototype would still apply.  */
14690 char $ac_func();
14691
14692 int main() {
14693
14694 /* The GNU C library defines this for functions which it implements
14695     to always fail with ENOSYS.  Some functions are actually named
14696     something starting with __ and the normal name is an alias.  */
14697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14698 choke me
14699 #else
14700 $ac_func();
14701 #endif
14702
14703 ; return 0; }
14704 EOF
14705 if { (eval echo configure:14706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14706   rm -rf conftest*
14707   eval "ac_cv_func_$ac_func=yes"
14708 else
14709   echo "configure: failed program was:" >&5
14710   cat conftest.$ac_ext >&5
14711   rm -rf conftest*
14712   eval "ac_cv_func_$ac_func=no"
14713 fi
14714 rm -f conftest*
14715 fi
14716
14717 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14718   echo "$ac_t""yes" 1>&6
14719     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14720   cat >> confdefs.h <<EOF
14721 #define $ac_tr_func 1
14722 EOF
14723  
14724 else
14725   echo "$ac_t""no" 1>&6
14726 fi
14727 done
14728
14729   fi
14730
14731
14732     
14733   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
14734 echo "configure:14735: checking for _long double trig functions" >&5
14735   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
14736   echo $ac_n "(cached) $ac_c" 1>&6
14737 else
14738   
14739     
14740     ac_ext=C
14741 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14742 ac_cpp='$CXXCPP $CPPFLAGS'
14743 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14744 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14745 cross_compiling=$ac_cv_prog_cxx_cross
14746
14747     cat > conftest.$ac_ext <<EOF
14748 #line 14749 "configure"
14749 #include "confdefs.h"
14750 #include <math.h>
14751 int main() {
14752  `for x in _acosl _asinl _atanl \
14753                                           _cosl _sinl _tanl \
14754                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
14755 ; return 0; }
14756 EOF
14757 if { (eval echo configure:14758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14758   rm -rf conftest*
14759   glibcpp_cv_func__long_double_trig_use=yes
14760 else
14761   echo "configure: failed program was:" >&5
14762   cat conftest.$ac_ext >&5
14763   rm -rf conftest*
14764   glibcpp_cv_func__long_double_trig_use=no
14765 fi
14766 rm -f conftest*
14767     ac_ext=c
14768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14769 ac_cpp='$CPP $CPPFLAGS'
14770 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14771 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14772 cross_compiling=$ac_cv_prog_cc_cross
14773
14774 fi
14775
14776   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
14777   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
14778     for ac_func in _acosl _asinl _atanl \
14779                                           _cosl _sinl _tanl \
14780                                           _coshl _sinhl _tanhl
14781 do
14782 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14783 echo "configure:14784: checking for $ac_func" >&5
14784 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14785   echo $ac_n "(cached) $ac_c" 1>&6
14786 else
14787   cat > conftest.$ac_ext <<EOF
14788 #line 14789 "configure"
14789 #include "confdefs.h"
14790 /* System header to define __stub macros and hopefully few prototypes,
14791     which can conflict with char $ac_func(); below.  */
14792 #include <assert.h>
14793 /* Override any gcc2 internal prototype to avoid an error.  */
14794 /* We use char because int might match the return type of a gcc2
14795     builtin and then its argument prototype would still apply.  */
14796 char $ac_func();
14797
14798 int main() {
14799
14800 /* The GNU C library defines this for functions which it implements
14801     to always fail with ENOSYS.  Some functions are actually named
14802     something starting with __ and the normal name is an alias.  */
14803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14804 choke me
14805 #else
14806 $ac_func();
14807 #endif
14808
14809 ; return 0; }
14810 EOF
14811 if { (eval echo configure:14812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14812   rm -rf conftest*
14813   eval "ac_cv_func_$ac_func=yes"
14814 else
14815   echo "configure: failed program was:" >&5
14816   cat conftest.$ac_ext >&5
14817   rm -rf conftest*
14818   eval "ac_cv_func_$ac_func=no"
14819 fi
14820 rm -f conftest*
14821 fi
14822
14823 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14824   echo "$ac_t""yes" 1>&6
14825     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14826   cat >> confdefs.h <<EOF
14827 #define $ac_tr_func 1
14828 EOF
14829  
14830 else
14831   echo "$ac_t""no" 1>&6
14832 fi
14833 done
14834
14835   fi
14836
14837   
14838   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
14839 echo "configure:14840: checking for _long double round functions" >&5
14840   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
14841   echo $ac_n "(cached) $ac_c" 1>&6
14842 else
14843   
14844     
14845     ac_ext=C
14846 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14847 ac_cpp='$CXXCPP $CPPFLAGS'
14848 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14849 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14850 cross_compiling=$ac_cv_prog_cxx_cross
14851
14852     cat > conftest.$ac_ext <<EOF
14853 #line 14854 "configure"
14854 #include "confdefs.h"
14855 #include <math.h>
14856 int main() {
14857  `for x in _ceill _floorl; do echo "$x (0);"; done` 
14858 ; return 0; }
14859 EOF
14860 if { (eval echo configure:14861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14861   rm -rf conftest*
14862   glibcpp_cv_func__long_double_round_use=yes
14863 else
14864   echo "configure: failed program was:" >&5
14865   cat conftest.$ac_ext >&5
14866   rm -rf conftest*
14867   glibcpp_cv_func__long_double_round_use=no
14868 fi
14869 rm -f conftest*
14870     ac_ext=c
14871 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14872 ac_cpp='$CPP $CPPFLAGS'
14873 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14874 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14875 cross_compiling=$ac_cv_prog_cc_cross
14876
14877 fi
14878
14879   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
14880   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
14881     for ac_func in _ceill _floorl
14882 do
14883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14884 echo "configure:14885: checking for $ac_func" >&5
14885 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14886   echo $ac_n "(cached) $ac_c" 1>&6
14887 else
14888   cat > conftest.$ac_ext <<EOF
14889 #line 14890 "configure"
14890 #include "confdefs.h"
14891 /* System header to define __stub macros and hopefully few prototypes,
14892     which can conflict with char $ac_func(); below.  */
14893 #include <assert.h>
14894 /* Override any gcc2 internal prototype to avoid an error.  */
14895 /* We use char because int might match the return type of a gcc2
14896     builtin and then its argument prototype would still apply.  */
14897 char $ac_func();
14898
14899 int main() {
14900
14901 /* The GNU C library defines this for functions which it implements
14902     to always fail with ENOSYS.  Some functions are actually named
14903     something starting with __ and the normal name is an alias.  */
14904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14905 choke me
14906 #else
14907 $ac_func();
14908 #endif
14909
14910 ; return 0; }
14911 EOF
14912 if { (eval echo configure:14913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14913   rm -rf conftest*
14914   eval "ac_cv_func_$ac_func=yes"
14915 else
14916   echo "configure: failed program was:" >&5
14917   cat conftest.$ac_ext >&5
14918   rm -rf conftest*
14919   eval "ac_cv_func_$ac_func=no"
14920 fi
14921 rm -f conftest*
14922 fi
14923
14924 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14925   echo "$ac_t""yes" 1>&6
14926     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14927   cat >> confdefs.h <<EOF
14928 #define $ac_tr_func 1
14929 EOF
14930  
14931 else
14932   echo "$ac_t""no" 1>&6
14933 fi
14934 done
14935
14936   fi
14937
14938
14939   LIBS="$ac_save_LIBS"
14940   CXXFLAGS="$ac_save_CXXFLAGS"
14941
14942   
14943     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
14944 echo "configure:14945: checking for main in -lm" >&5
14945 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
14946 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14947   echo $ac_n "(cached) $ac_c" 1>&6
14948 else
14949   ac_save_LIBS="$LIBS"
14950 LIBS="-lm  $LIBS"
14951 cat > conftest.$ac_ext <<EOF
14952 #line 14953 "configure"
14953 #include "confdefs.h"
14954
14955 int main() {
14956 main()
14957 ; return 0; }
14958 EOF
14959 if { (eval echo configure:14960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14960   rm -rf conftest*
14961   eval "ac_cv_lib_$ac_lib_var=yes"
14962 else
14963   echo "configure: failed program was:" >&5
14964   cat conftest.$ac_ext >&5
14965   rm -rf conftest*
14966   eval "ac_cv_lib_$ac_lib_var=no"
14967 fi
14968 rm -f conftest*
14969 LIBS="$ac_save_LIBS"
14970
14971 fi
14972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14973   echo "$ac_t""yes" 1>&6
14974     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14975     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14976   cat >> confdefs.h <<EOF
14977 #define $ac_tr_lib 1
14978 EOF
14979
14980   LIBS="-lm $LIBS"
14981
14982 else
14983   echo "$ac_t""no" 1>&6
14984 fi
14985
14986   for ac_func in nan hypot hypotf copysignf
14987 do
14988 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14989 echo "configure:14990: checking for $ac_func" >&5
14990 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14991   echo $ac_n "(cached) $ac_c" 1>&6
14992 else
14993   cat > conftest.$ac_ext <<EOF
14994 #line 14995 "configure"
14995 #include "confdefs.h"
14996 /* System header to define __stub macros and hopefully few prototypes,
14997     which can conflict with char $ac_func(); below.  */
14998 #include <assert.h>
14999 /* Override any gcc2 internal prototype to avoid an error.  */
15000 /* We use char because int might match the return type of a gcc2
15001     builtin and then its argument prototype would still apply.  */
15002 char $ac_func();
15003
15004 int main() {
15005
15006 /* The GNU C library defines this for functions which it implements
15007     to always fail with ENOSYS.  Some functions are actually named
15008     something starting with __ and the normal name is an alias.  */
15009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15010 choke me
15011 #else
15012 $ac_func();
15013 #endif
15014
15015 ; return 0; }
15016 EOF
15017 if { (eval echo configure:15018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15018   rm -rf conftest*
15019   eval "ac_cv_func_$ac_func=yes"
15020 else
15021   echo "configure: failed program was:" >&5
15022   cat conftest.$ac_ext >&5
15023   rm -rf conftest*
15024   eval "ac_cv_func_$ac_func=no"
15025 fi
15026 rm -f conftest*
15027 fi
15028
15029 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15030   echo "$ac_t""yes" 1>&6
15031     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15032   cat >> confdefs.h <<EOF
15033 #define $ac_tr_func 1
15034 EOF
15035  
15036 else
15037   echo "$ac_t""no" 1>&6
15038 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15039 fi
15040 done
15041
15042
15043
15044           USE_COMPLEX_LONG_DOUBLE=no
15045   if test x$ac_cv_func_atan2l = x"yes" &&
15046      test x$ac_cv_func_copysignl = x"yes"; then
15047     USE_COMPLEX_LONG_DOUBLE=yes
15048     for ac_func in hypotl signbitl
15049 do
15050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15051 echo "configure:15052: checking for $ac_func" >&5
15052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15053   echo $ac_n "(cached) $ac_c" 1>&6
15054 else
15055   cat > conftest.$ac_ext <<EOF
15056 #line 15057 "configure"
15057 #include "confdefs.h"
15058 /* System header to define __stub macros and hopefully few prototypes,
15059     which can conflict with char $ac_func(); below.  */
15060 #include <assert.h>
15061 /* Override any gcc2 internal prototype to avoid an error.  */
15062 /* We use char because int might match the return type of a gcc2
15063     builtin and then its argument prototype would still apply.  */
15064 char $ac_func();
15065
15066 int main() {
15067
15068 /* The GNU C library defines this for functions which it implements
15069     to always fail with ENOSYS.  Some functions are actually named
15070     something starting with __ and the normal name is an alias.  */
15071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15072 choke me
15073 #else
15074 $ac_func();
15075 #endif
15076
15077 ; return 0; }
15078 EOF
15079 if { (eval echo configure:15080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15080   rm -rf conftest*
15081   eval "ac_cv_func_$ac_func=yes"
15082 else
15083   echo "configure: failed program was:" >&5
15084   cat conftest.$ac_ext >&5
15085   rm -rf conftest*
15086   eval "ac_cv_func_$ac_func=no"
15087 fi
15088 rm -f conftest*
15089 fi
15090
15091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15092   echo "$ac_t""yes" 1>&6
15093     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15094   cat >> confdefs.h <<EOF
15095 #define $ac_tr_func 1
15096 EOF
15097  
15098 else
15099   echo "$ac_t""no" 1>&6
15100 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15101 fi
15102 done
15103
15104
15105   fi
15106
15107   
15108
15109   
15110
15111       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
15112 echo "configure:15113: checking for mbstate_t" >&5
15113   cat > conftest.$ac_ext <<EOF
15114 #line 15115 "configure"
15115 #include "confdefs.h"
15116 #include <wchar.h>
15117 int main() {
15118 mbstate_t teststate;
15119 ; return 0; }
15120 EOF
15121 if { (eval echo configure:15122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15122   rm -rf conftest*
15123   have_mbstate_t=yes
15124 else
15125   echo "configure: failed program was:" >&5
15126   cat conftest.$ac_ext >&5
15127   rm -rf conftest*
15128   have_mbstate_t=no
15129 fi
15130 rm -f conftest*
15131   echo "$ac_t""$have_mbstate_t" 1>&6
15132   if test x"$have_mbstate_t" = xyes; then
15133     cat >> confdefs.h <<\EOF
15134 #define HAVE_MBSTATE_T 1
15135 EOF
15136
15137   fi
15138
15139     for ac_hdr in wchar.h
15140 do
15141 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15142 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15143 echo "configure:15144: checking for $ac_hdr" >&5
15144 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15145   echo $ac_n "(cached) $ac_c" 1>&6
15146 else
15147   cat > conftest.$ac_ext <<EOF
15148 #line 15149 "configure"
15149 #include "confdefs.h"
15150 #include <$ac_hdr>
15151 EOF
15152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15153 { (eval echo configure:15154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15155 if test -z "$ac_err"; then
15156   rm -rf conftest*
15157   eval "ac_cv_header_$ac_safe=yes"
15158 else
15159   echo "$ac_err" >&5
15160   echo "configure: failed program was:" >&5
15161   cat conftest.$ac_ext >&5
15162   rm -rf conftest*
15163   eval "ac_cv_header_$ac_safe=no"
15164 fi
15165 rm -f conftest*
15166 fi
15167 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15168   echo "$ac_t""yes" 1>&6
15169     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15170   cat >> confdefs.h <<EOF
15171 #define $ac_tr_hdr 1
15172 EOF
15173  ac_has_wchar_h=yes
15174 else
15175   echo "$ac_t""no" 1>&6
15176 ac_has_wchar_h=no
15177 fi
15178 done
15179
15180   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
15181 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
15182 echo "configure:15183: checking for wctype.h" >&5
15183 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15184   echo $ac_n "(cached) $ac_c" 1>&6
15185 else
15186   cat > conftest.$ac_ext <<EOF
15187 #line 15188 "configure"
15188 #include "confdefs.h"
15189 #include <wctype.h>
15190 EOF
15191 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15192 { (eval echo configure:15193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15193 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15194 if test -z "$ac_err"; then
15195   rm -rf conftest*
15196   eval "ac_cv_header_$ac_safe=yes"
15197 else
15198   echo "$ac_err" >&5
15199   echo "configure: failed program was:" >&5
15200   cat conftest.$ac_ext >&5
15201   rm -rf conftest*
15202   eval "ac_cv_header_$ac_safe=no"
15203 fi
15204 rm -f conftest*
15205 fi
15206 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15207   echo "$ac_t""yes" 1>&6
15208   ac_has_wctype_h=yes
15209 else
15210   echo "$ac_t""no" 1>&6
15211 ac_has_wctype_h=no
15212 fi
15213
15214   
15215     if test x"$ac_has_wchar_h" = xyes &&
15216      test x"$ac_has_wctype_h" = xyes &&
15217      test x"$enable_c_mbchar" != xno; then
15218       
15219             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
15220 echo "configure:15221: checking for WCHAR_MIN and WCHAR_MAX" >&5
15221     cat > conftest.$ac_ext <<EOF
15222 #line 15223 "configure"
15223 #include "confdefs.h"
15224 #include <wchar.h>
15225 int main() {
15226 int i = WCHAR_MIN; int j = WCHAR_MAX;
15227 ; return 0; }
15228 EOF
15229 if { (eval echo configure:15230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15230   rm -rf conftest*
15231   has_wchar_minmax=yes
15232 else
15233   echo "configure: failed program was:" >&5
15234   cat conftest.$ac_ext >&5
15235   rm -rf conftest*
15236   has_wchar_minmax=no
15237 fi
15238 rm -f conftest*
15239     echo "$ac_t""$has_wchar_minmax" 1>&6
15240     
15241             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
15242 echo "configure:15243: checking for WEOF" >&5
15243     cat > conftest.$ac_ext <<EOF
15244 #line 15245 "configure"
15245 #include "confdefs.h"
15246
15247       #include <wchar.h>
15248       #include <stddef.h>
15249 int main() {
15250 wint_t i = WEOF;
15251 ; return 0; }
15252 EOF
15253 if { (eval echo configure:15254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15254   rm -rf conftest*
15255   has_weof=yes
15256 else
15257   echo "configure: failed program was:" >&5
15258   cat conftest.$ac_ext >&5
15259   rm -rf conftest*
15260   has_weof=no
15261 fi
15262 rm -f conftest*
15263     echo "$ac_t""$has_weof" 1>&6
15264   
15265         ac_wfuncs=yes
15266     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
15267 do
15268 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15269 echo "configure:15270: checking for $ac_func" >&5
15270 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15271   echo $ac_n "(cached) $ac_c" 1>&6
15272 else
15273   cat > conftest.$ac_ext <<EOF
15274 #line 15275 "configure"
15275 #include "confdefs.h"
15276 /* System header to define __stub macros and hopefully few prototypes,
15277     which can conflict with char $ac_func(); below.  */
15278 #include <assert.h>
15279 /* Override any gcc2 internal prototype to avoid an error.  */
15280 /* We use char because int might match the return type of a gcc2
15281     builtin and then its argument prototype would still apply.  */
15282 char $ac_func();
15283
15284 int main() {
15285
15286 /* The GNU C library defines this for functions which it implements
15287     to always fail with ENOSYS.  Some functions are actually named
15288     something starting with __ and the normal name is an alias.  */
15289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15290 choke me
15291 #else
15292 $ac_func();
15293 #endif
15294
15295 ; return 0; }
15296 EOF
15297 if { (eval echo configure:15298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15298   rm -rf conftest*
15299   eval "ac_cv_func_$ac_func=yes"
15300 else
15301   echo "configure: failed program was:" >&5
15302   cat conftest.$ac_ext >&5
15303   rm -rf conftest*
15304   eval "ac_cv_func_$ac_func=no"
15305 fi
15306 rm -f conftest*
15307 fi
15308
15309 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15310   echo "$ac_t""yes" 1>&6
15311     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15312   cat >> confdefs.h <<EOF
15313 #define $ac_tr_func 1
15314 EOF
15315  
15316 else
15317   echo "$ac_t""no" 1>&6
15318 \
15319     ac_wfuncs=no
15320 fi
15321 done
15322
15323   
15324         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
15325     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
15326     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
15327     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
15328     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
15329     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
15330 do
15331 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15332 echo "configure:15333: checking for $ac_func" >&5
15333 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15334   echo $ac_n "(cached) $ac_c" 1>&6
15335 else
15336   cat > conftest.$ac_ext <<EOF
15337 #line 15338 "configure"
15338 #include "confdefs.h"
15339 /* System header to define __stub macros and hopefully few prototypes,
15340     which can conflict with char $ac_func(); below.  */
15341 #include <assert.h>
15342 /* Override any gcc2 internal prototype to avoid an error.  */
15343 /* We use char because int might match the return type of a gcc2
15344     builtin and then its argument prototype would still apply.  */
15345 char $ac_func();
15346
15347 int main() {
15348
15349 /* The GNU C library defines this for functions which it implements
15350     to always fail with ENOSYS.  Some functions are actually named
15351     something starting with __ and the normal name is an alias.  */
15352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15353 choke me
15354 #else
15355 $ac_func();
15356 #endif
15357
15358 ; return 0; }
15359 EOF
15360 if { (eval echo configure:15361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15361   rm -rf conftest*
15362   eval "ac_cv_func_$ac_func=yes"
15363 else
15364   echo "configure: failed program was:" >&5
15365   cat conftest.$ac_ext >&5
15366   rm -rf conftest*
15367   eval "ac_cv_func_$ac_func=no"
15368 fi
15369 rm -f conftest*
15370 fi
15371
15372 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15373   echo "$ac_t""yes" 1>&6
15374     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15375   cat >> confdefs.h <<EOF
15376 #define $ac_tr_func 1
15377 EOF
15378  
15379 else
15380   echo "$ac_t""no" 1>&6
15381 \
15382     ac_wfuncs=no
15383 fi
15384 done
15385
15386
15387     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
15388 echo "configure:15389: checking for ISO C99 wchar_t support" >&5
15389     if test x"$has_weof" = xyes &&
15390        test x"$has_wchar_minmax" = xyes &&
15391        test x"$ac_wfuncs" = xyes; then
15392       ac_isoC99_wchar_t=yes
15393     else
15394       ac_isoC99_wchar_t=no
15395     fi
15396     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
15397   
15398             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
15399 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
15400 echo "configure:15401: checking for iconv.h" >&5
15401 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15402   echo $ac_n "(cached) $ac_c" 1>&6
15403 else
15404   cat > conftest.$ac_ext <<EOF
15405 #line 15406 "configure"
15406 #include "confdefs.h"
15407 #include <iconv.h>
15408 EOF
15409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15410 { (eval echo configure:15411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15412 if test -z "$ac_err"; then
15413   rm -rf conftest*
15414   eval "ac_cv_header_$ac_safe=yes"
15415 else
15416   echo "$ac_err" >&5
15417   echo "configure: failed program was:" >&5
15418   cat conftest.$ac_ext >&5
15419   rm -rf conftest*
15420   eval "ac_cv_header_$ac_safe=no"
15421 fi
15422 rm -f conftest*
15423 fi
15424 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15425   echo "$ac_t""yes" 1>&6
15426   ac_has_iconv_h=yes
15427 else
15428   echo "$ac_t""no" 1>&6
15429 ac_has_iconv_h=no
15430 fi
15431
15432     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
15433 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
15434 echo "configure:15435: checking for langinfo.h" >&5
15435 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15436   echo $ac_n "(cached) $ac_c" 1>&6
15437 else
15438   cat > conftest.$ac_ext <<EOF
15439 #line 15440 "configure"
15440 #include "confdefs.h"
15441 #include <langinfo.h>
15442 EOF
15443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15444 { (eval echo configure:15445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15446 if test -z "$ac_err"; then
15447   rm -rf conftest*
15448   eval "ac_cv_header_$ac_safe=yes"
15449 else
15450   echo "$ac_err" >&5
15451   echo "configure: failed program was:" >&5
15452   cat conftest.$ac_ext >&5
15453   rm -rf conftest*
15454   eval "ac_cv_header_$ac_safe=no"
15455 fi
15456 rm -f conftest*
15457 fi
15458 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15459   echo "$ac_t""yes" 1>&6
15460   ac_has_langinfo_h=yes
15461 else
15462   echo "$ac_t""no" 1>&6
15463 ac_has_langinfo_h=no
15464 fi
15465
15466
15467         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
15468 echo "configure:15469: checking for iconv in -liconv" >&5
15469 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
15470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15471   echo $ac_n "(cached) $ac_c" 1>&6
15472 else
15473   ac_save_LIBS="$LIBS"
15474 LIBS="-liconv  $LIBS"
15475 cat > conftest.$ac_ext <<EOF
15476 #line 15477 "configure"
15477 #include "confdefs.h"
15478 /* Override any gcc2 internal prototype to avoid an error.  */
15479 /* We use char because int might match the return type of a gcc2
15480     builtin and then its argument prototype would still apply.  */
15481 char iconv();
15482
15483 int main() {
15484 iconv()
15485 ; return 0; }
15486 EOF
15487 if { (eval echo configure:15488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15488   rm -rf conftest*
15489   eval "ac_cv_lib_$ac_lib_var=yes"
15490 else
15491   echo "configure: failed program was:" >&5
15492   cat conftest.$ac_ext >&5
15493   rm -rf conftest*
15494   eval "ac_cv_lib_$ac_lib_var=no"
15495 fi
15496 rm -f conftest*
15497 LIBS="$ac_save_LIBS"
15498
15499 fi
15500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15501   echo "$ac_t""yes" 1>&6
15502   libiconv="-liconv"
15503 else
15504   echo "$ac_t""no" 1>&6
15505 fi
15506
15507     ac_save_LIBS="$LIBS"
15508     LIBS="$LIBS $libiconv"
15509
15510     for ac_func in iconv_open iconv_close iconv nl_langinfo
15511 do
15512 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15513 echo "configure:15514: checking for $ac_func" >&5
15514 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15515   echo $ac_n "(cached) $ac_c" 1>&6
15516 else
15517   cat > conftest.$ac_ext <<EOF
15518 #line 15519 "configure"
15519 #include "confdefs.h"
15520 /* System header to define __stub macros and hopefully few prototypes,
15521     which can conflict with char $ac_func(); below.  */
15522 #include <assert.h>
15523 /* Override any gcc2 internal prototype to avoid an error.  */
15524 /* We use char because int might match the return type of a gcc2
15525     builtin and then its argument prototype would still apply.  */
15526 char $ac_func();
15527
15528 int main() {
15529
15530 /* The GNU C library defines this for functions which it implements
15531     to always fail with ENOSYS.  Some functions are actually named
15532     something starting with __ and the normal name is an alias.  */
15533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15534 choke me
15535 #else
15536 $ac_func();
15537 #endif
15538
15539 ; return 0; }
15540 EOF
15541 if { (eval echo configure:15542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15542   rm -rf conftest*
15543   eval "ac_cv_func_$ac_func=yes"
15544 else
15545   echo "configure: failed program was:" >&5
15546   cat conftest.$ac_ext >&5
15547   rm -rf conftest*
15548   eval "ac_cv_func_$ac_func=no"
15549 fi
15550 rm -f conftest*
15551 fi
15552
15553 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15554   echo "$ac_t""yes" 1>&6
15555     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15556   cat >> confdefs.h <<EOF
15557 #define $ac_tr_func 1
15558 EOF
15559  \
15560     ac_XPG2funcs=yes
15561 else
15562   echo "$ac_t""no" 1>&6
15563 ac_XPG2funcs=no
15564 fi
15565 done
15566
15567   
15568     LIBS="$ac_save_LIBS"
15569
15570     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
15571 echo "configure:15572: checking for XPG2 wchar_t support" >&5
15572     if test x"$ac_has_iconv_h" = xyes &&
15573        test x"$ac_has_langinfo_h" = xyes &&
15574        test x"$ac_XPG2funcs" = xyes; then
15575       ac_XPG2_wchar_t=yes
15576     else
15577       ac_XPG2_wchar_t=no
15578     fi
15579     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
15580   
15581             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
15582 echo "configure:15583: checking for enabled wchar_t specializations" >&5
15583     if test x"$ac_isoC99_wchar_t" = xyes &&
15584        test x"$ac_XPG2_wchar_t" = xyes; then
15585       cat >> confdefs.h <<\EOF
15586 #define _GLIBCPP_USE_WCHAR_T 1
15587 EOF
15588
15589       echo "$ac_t"""yes"" 1>&6
15590     else
15591       echo "$ac_t"""no"" 1>&6
15592     fi
15593   else
15594         echo "configure: warning: wchar_t support disabled." 1>&2
15595   fi
15596
15597   
15598   ac_test_CXXFLAGS="${CXXFLAGS+set}"
15599   ac_save_CXXFLAGS="$CXXFLAGS"
15600   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
15601
15602   
15603   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
15604 echo "configure:15605: checking for strtold declaration" >&5
15605   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
15606     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
15607   echo $ac_n "(cached) $ac_c" 1>&6
15608 else
15609   
15610       
15611       ac_ext=C
15612 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15613 ac_cpp='$CXXCPP $CPPFLAGS'
15614 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15615 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15616 cross_compiling=$ac_cv_prog_cxx_cross
15617
15618       cat > conftest.$ac_ext <<EOF
15619 #line 15620 "configure"
15620 #include "confdefs.h"
15621 #include <stdlib.h>
15622 int main() {
15623  strtold(0, 0);
15624 ; return 0; }
15625 EOF
15626 if { (eval echo configure:15627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15627   rm -rf conftest*
15628   glibcpp_cv_func_strtold_use=yes
15629 else
15630   echo "configure: failed program was:" >&5
15631   cat conftest.$ac_ext >&5
15632   rm -rf conftest*
15633   glibcpp_cv_func_strtold_use=no
15634 fi
15635 rm -f conftest*
15636       ac_ext=c
15637 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15638 ac_cpp='$CPP $CPPFLAGS'
15639 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15640 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15641 cross_compiling=$ac_cv_prog_cc_cross
15642
15643     
15644 fi
15645
15646   fi
15647   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
15648   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
15649     for ac_func in strtold
15650 do
15651 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15652 echo "configure:15653: checking for $ac_func" >&5
15653 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15654   echo $ac_n "(cached) $ac_c" 1>&6
15655 else
15656   cat > conftest.$ac_ext <<EOF
15657 #line 15658 "configure"
15658 #include "confdefs.h"
15659 /* System header to define __stub macros and hopefully few prototypes,
15660     which can conflict with char $ac_func(); below.  */
15661 #include <assert.h>
15662 /* Override any gcc2 internal prototype to avoid an error.  */
15663 /* We use char because int might match the return type of a gcc2
15664     builtin and then its argument prototype would still apply.  */
15665 char $ac_func();
15666
15667 int main() {
15668
15669 /* The GNU C library defines this for functions which it implements
15670     to always fail with ENOSYS.  Some functions are actually named
15671     something starting with __ and the normal name is an alias.  */
15672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15673 choke me
15674 #else
15675 $ac_func();
15676 #endif
15677
15678 ; return 0; }
15679 EOF
15680 if { (eval echo configure:15681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15681   rm -rf conftest*
15682   eval "ac_cv_func_$ac_func=yes"
15683 else
15684   echo "configure: failed program was:" >&5
15685   cat conftest.$ac_ext >&5
15686   rm -rf conftest*
15687   eval "ac_cv_func_$ac_func=no"
15688 fi
15689 rm -f conftest*
15690 fi
15691
15692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15693   echo "$ac_t""yes" 1>&6
15694     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15695   cat >> confdefs.h <<EOF
15696 #define $ac_tr_func 1
15697 EOF
15698  
15699 else
15700   echo "$ac_t""no" 1>&6
15701 fi
15702 done
15703     
15704   fi
15705
15706   for ac_func in drand48
15707 do
15708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15709 echo "configure:15710: checking for $ac_func" >&5
15710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15711   echo $ac_n "(cached) $ac_c" 1>&6
15712 else
15713   cat > conftest.$ac_ext <<EOF
15714 #line 15715 "configure"
15715 #include "confdefs.h"
15716 /* System header to define __stub macros and hopefully few prototypes,
15717     which can conflict with char $ac_func(); below.  */
15718 #include <assert.h>
15719 /* Override any gcc2 internal prototype to avoid an error.  */
15720 /* We use char because int might match the return type of a gcc2
15721     builtin and then its argument prototype would still apply.  */
15722 char $ac_func();
15723
15724 int main() {
15725
15726 /* The GNU C library defines this for functions which it implements
15727     to always fail with ENOSYS.  Some functions are actually named
15728     something starting with __ and the normal name is an alias.  */
15729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15730 choke me
15731 #else
15732 $ac_func();
15733 #endif
15734
15735 ; return 0; }
15736 EOF
15737 if { (eval echo configure:15738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15738   rm -rf conftest*
15739   eval "ac_cv_func_$ac_func=yes"
15740 else
15741   echo "configure: failed program was:" >&5
15742   cat conftest.$ac_ext >&5
15743   rm -rf conftest*
15744   eval "ac_cv_func_$ac_func=no"
15745 fi
15746 rm -f conftest*
15747 fi
15748
15749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15750   echo "$ac_t""yes" 1>&6
15751     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15752   cat >> confdefs.h <<EOF
15753 #define $ac_tr_func 1
15754 EOF
15755  
15756 else
15757   echo "$ac_t""no" 1>&6
15758 fi
15759 done
15760
15761
15762   CXXFLAGS="$ac_save_CXXFLAGS"
15763
15764
15765   cat > conftest.$ac_ext <<EOF
15766 #line 15767 "configure"
15767 #include "confdefs.h"
15768
15769 #include <setjmp.h>
15770
15771 int main() {
15772 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
15773 ; return 0; }
15774 EOF
15775 if { (eval echo configure:15776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15776   rm -rf conftest*
15777   cat >> confdefs.h <<\EOF
15778 #define HAVE_SIGSETJMP 1
15779 EOF
15780
15781 else
15782   echo "configure: failed program was:" >&5
15783   cat conftest.$ac_ext >&5
15784 fi
15785 rm -f conftest*
15786
15787   for ac_hdr in unistd.h
15788 do
15789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15791 echo "configure:15792: checking for $ac_hdr" >&5
15792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15793   echo $ac_n "(cached) $ac_c" 1>&6
15794 else
15795   cat > conftest.$ac_ext <<EOF
15796 #line 15797 "configure"
15797 #include "confdefs.h"
15798 #include <$ac_hdr>
15799 EOF
15800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15801 { (eval echo configure:15802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15803 if test -z "$ac_err"; then
15804   rm -rf conftest*
15805   eval "ac_cv_header_$ac_safe=yes"
15806 else
15807   echo "$ac_err" >&5
15808   echo "configure: failed program was:" >&5
15809   cat conftest.$ac_ext >&5
15810   rm -rf conftest*
15811   eval "ac_cv_header_$ac_safe=no"
15812 fi
15813 rm -f conftest*
15814 fi
15815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15816   echo "$ac_t""yes" 1>&6
15817     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15818   cat >> confdefs.h <<EOF
15819 #define $ac_tr_hdr 1
15820 EOF
15821  
15822 else
15823   echo "$ac_t""no" 1>&6
15824 fi
15825 done
15826
15827 for ac_func in getpagesize
15828 do
15829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15830 echo "configure:15831: checking for $ac_func" >&5
15831 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15832   echo $ac_n "(cached) $ac_c" 1>&6
15833 else
15834   cat > conftest.$ac_ext <<EOF
15835 #line 15836 "configure"
15836 #include "confdefs.h"
15837 /* System header to define __stub macros and hopefully few prototypes,
15838     which can conflict with char $ac_func(); below.  */
15839 #include <assert.h>
15840 /* Override any gcc2 internal prototype to avoid an error.  */
15841 /* We use char because int might match the return type of a gcc2
15842     builtin and then its argument prototype would still apply.  */
15843 char $ac_func();
15844
15845 int main() {
15846
15847 /* The GNU C library defines this for functions which it implements
15848     to always fail with ENOSYS.  Some functions are actually named
15849     something starting with __ and the normal name is an alias.  */
15850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15851 choke me
15852 #else
15853 $ac_func();
15854 #endif
15855
15856 ; return 0; }
15857 EOF
15858 if { (eval echo configure:15859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15859   rm -rf conftest*
15860   eval "ac_cv_func_$ac_func=yes"
15861 else
15862   echo "configure: failed program was:" >&5
15863   cat conftest.$ac_ext >&5
15864   rm -rf conftest*
15865   eval "ac_cv_func_$ac_func=no"
15866 fi
15867 rm -f conftest*
15868 fi
15869
15870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15871   echo "$ac_t""yes" 1>&6
15872     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15873   cat >> confdefs.h <<EOF
15874 #define $ac_tr_func 1
15875 EOF
15876  
15877 else
15878   echo "$ac_t""no" 1>&6
15879 fi
15880 done
15881
15882 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
15883 echo "configure:15884: checking for working mmap" >&5
15884 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
15885   echo $ac_n "(cached) $ac_c" 1>&6
15886 else
15887   if test "$cross_compiling" = yes; then
15888   ac_cv_func_mmap_fixed_mapped=no
15889 else
15890   cat > conftest.$ac_ext <<EOF
15891 #line 15892 "configure"
15892 #include "confdefs.h"
15893
15894 /* Thanks to Mike Haertel and Jim Avera for this test.
15895    Here is a matrix of mmap possibilities:
15896         mmap private not fixed
15897         mmap private fixed at somewhere currently unmapped
15898         mmap private fixed at somewhere already mapped
15899         mmap shared not fixed
15900         mmap shared fixed at somewhere currently unmapped
15901         mmap shared fixed at somewhere already mapped
15902    For private mappings, we should verify that changes cannot be read()
15903    back from the file, nor mmap's back from the file at a different
15904    address.  (There have been systems where private was not correctly
15905    implemented like the infamous i386 svr4.0, and systems where the
15906    VM page cache was not coherent with the filesystem buffer cache
15907    like early versions of FreeBSD and possibly contemporary NetBSD.)
15908    For shared mappings, we should conversely verify that changes get
15909    propogated back to all the places they're supposed to be.
15910
15911    Grep wants private fixed already mapped.
15912    The main things grep needs to know about mmap are:
15913    * does it exist and is it safe to write into the mmap'd area
15914    * how to use it (BSD variants)  */
15915 #include <sys/types.h>
15916 #include <fcntl.h>
15917 #include <sys/mman.h>
15918
15919 /* This mess was copied from the GNU getpagesize.h.  */
15920 #ifndef HAVE_GETPAGESIZE
15921 # ifdef HAVE_UNISTD_H
15922 #  include <unistd.h>
15923 # endif
15924
15925 /* Assume that all systems that can run configure have sys/param.h.  */
15926 # ifndef HAVE_SYS_PARAM_H
15927 #  define HAVE_SYS_PARAM_H 1
15928 # endif
15929
15930 # ifdef _SC_PAGESIZE
15931 #  define getpagesize() sysconf(_SC_PAGESIZE)
15932 # else /* no _SC_PAGESIZE */
15933 #  ifdef HAVE_SYS_PARAM_H
15934 #   include <sys/param.h>
15935 #   ifdef EXEC_PAGESIZE
15936 #    define getpagesize() EXEC_PAGESIZE
15937 #   else /* no EXEC_PAGESIZE */
15938 #    ifdef NBPG
15939 #     define getpagesize() NBPG * CLSIZE
15940 #     ifndef CLSIZE
15941 #      define CLSIZE 1
15942 #     endif /* no CLSIZE */
15943 #    else /* no NBPG */
15944 #     ifdef NBPC
15945 #      define getpagesize() NBPC
15946 #     else /* no NBPC */
15947 #      ifdef PAGESIZE
15948 #       define getpagesize() PAGESIZE
15949 #      endif /* PAGESIZE */
15950 #     endif /* no NBPC */
15951 #    endif /* no NBPG */
15952 #   endif /* no EXEC_PAGESIZE */
15953 #  else /* no HAVE_SYS_PARAM_H */
15954 #   define getpagesize() 8192   /* punt totally */
15955 #  endif /* no HAVE_SYS_PARAM_H */
15956 # endif /* no _SC_PAGESIZE */
15957
15958 #endif /* no HAVE_GETPAGESIZE */
15959
15960 #ifdef __cplusplus
15961 extern "C" { void *malloc(unsigned); }
15962 #else
15963 char *malloc();
15964 #endif
15965
15966 int
15967 main()
15968 {
15969         char *data, *data2, *data3;
15970         int i, pagesize;
15971         int fd;
15972
15973         pagesize = getpagesize();
15974
15975         /*
15976          * First, make a file with some known garbage in it.
15977          */
15978         data = malloc(pagesize);
15979         if (!data)
15980                 exit(1);
15981         for (i = 0; i < pagesize; ++i)
15982                 *(data + i) = rand();
15983         umask(0);
15984         fd = creat("conftestmmap", 0600);
15985         if (fd < 0)
15986                 exit(1);
15987         if (write(fd, data, pagesize) != pagesize)
15988                 exit(1);
15989         close(fd);
15990
15991         /*
15992          * Next, try to mmap the file at a fixed address which
15993          * already has something else allocated at it.  If we can,
15994          * also make sure that we see the same garbage.
15995          */
15996         fd = open("conftestmmap", O_RDWR);
15997         if (fd < 0)
15998                 exit(1);
15999         data2 = malloc(2 * pagesize);
16000         if (!data2)
16001                 exit(1);
16002         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
16003         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
16004             MAP_PRIVATE | MAP_FIXED, fd, 0L))
16005                 exit(1);
16006         for (i = 0; i < pagesize; ++i)
16007                 if (*(data + i) != *(data2 + i))
16008                         exit(1);
16009
16010         /*
16011          * Finally, make sure that changes to the mapped area
16012          * do not percolate back to the file as seen by read().
16013          * (This is a bug on some variants of i386 svr4.0.)
16014          */
16015         for (i = 0; i < pagesize; ++i)
16016                 *(data2 + i) = *(data2 + i) + 1;
16017         data3 = malloc(pagesize);
16018         if (!data3)
16019                 exit(1);
16020         if (read(fd, data3, pagesize) != pagesize)
16021                 exit(1);
16022         for (i = 0; i < pagesize; ++i)
16023                 if (*(data + i) != *(data3 + i))
16024                         exit(1);
16025         close(fd);
16026         unlink("conftestmmap");
16027         exit(0);
16028 }
16029
16030 EOF
16031 if { (eval echo configure:16032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16032 then
16033   ac_cv_func_mmap_fixed_mapped=yes
16034 else
16035   echo "configure: failed program was:" >&5
16036   cat conftest.$ac_ext >&5
16037   rm -fr conftest*
16038   ac_cv_func_mmap_fixed_mapped=no
16039 fi
16040 rm -fr conftest*
16041 fi
16042
16043 fi
16044
16045 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
16046 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16047   cat >> confdefs.h <<\EOF
16048 #define HAVE_MMAP 1
16049 EOF
16050
16051 fi
16052
16053 fi
16054
16055 # Propagate the target-specific source directories through the build chain.
16056 OS_INC_SRCDIR=$os_include_dir/bits
16057 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
16058
16059
16060
16061 # Set up cross-compile flags
16062
16063
16064
16065 if test "$CANADIAN" = yes; then
16066   CANADIAN_TRUE=
16067   CANADIAN_FALSE='#'
16068 else
16069   CANADIAN_TRUE='#'
16070   CANADIAN_FALSE=
16071 fi
16072  
16073 cat > confcache <<\EOF
16074 # This file is a shell script that caches the results of configure
16075 # tests run on this system so they can be shared between configure
16076 # scripts and configure runs.  It is not useful on other systems.
16077 # If it contains results you don't want to keep, you may remove or edit it.
16078 #
16079 # By default, configure uses ./config.cache as the cache file,
16080 # creating it if it does not exist already.  You can give configure
16081 # the --cache-file=FILE option to use a different cache file; that is
16082 # what configure does when it calls configure scripts in
16083 # subdirectories, so they share the cache.
16084 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16085 # config.status only pays attention to the cache file if you give it the
16086 # --recheck option to rerun configure.
16087 #
16088 EOF
16089 # The following way of writing the cache mishandles newlines in values,
16090 # but we know of no workaround that is simple, portable, and efficient.
16091 # So, don't put newlines in cache variables' values.
16092 # Ultrix sh set writes to stderr and can't be redirected directly,
16093 # and sets the high bit in the cache file unless we assign to the vars.
16094 (set) 2>&1 |
16095   case `(ac_space=' '; set | grep ac_space) 2>&1` in
16096   *ac_space=\ *)
16097     # `set' does not quote correctly, so add quotes (double-quote substitution
16098     # turns \\\\ into \\, and sed turns \\ into \).
16099     sed -n \
16100       -e "s/'/'\\\\''/g" \
16101       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16102     ;;
16103   *)
16104     # `set' quotes correctly as required by POSIX, so do not add quotes.
16105     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16106     ;;
16107   esac >> confcache
16108 if cmp -s $cache_file confcache; then
16109   :
16110 else
16111   if test -w $cache_file; then
16112     echo "updating cache $cache_file"
16113     cat confcache > $cache_file
16114   else
16115     echo "not updating unwritable cache $cache_file"
16116   fi
16117 fi
16118 rm -f confcache
16119
16120
16121   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
16122 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
16123 echo "configure:16124: checking for locale.h" >&5
16124 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16125   echo $ac_n "(cached) $ac_c" 1>&6
16126 else
16127   cat > conftest.$ac_ext <<EOF
16128 #line 16129 "configure"
16129 #include "confdefs.h"
16130 #include <locale.h>
16131 EOF
16132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16133 { (eval echo configure:16134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16135 if test -z "$ac_err"; then
16136   rm -rf conftest*
16137   eval "ac_cv_header_$ac_safe=yes"
16138 else
16139   echo "$ac_err" >&5
16140   echo "configure: failed program was:" >&5
16141   cat conftest.$ac_ext >&5
16142   rm -rf conftest*
16143   eval "ac_cv_header_$ac_safe=no"
16144 fi
16145 rm -f conftest*
16146 fi
16147 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16148   echo "$ac_t""yes" 1>&6
16149   
16150     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
16151 echo "configure:16152: checking for LC_MESSAGES" >&5
16152 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
16153   echo $ac_n "(cached) $ac_c" 1>&6
16154 else
16155   cat > conftest.$ac_ext <<EOF
16156 #line 16157 "configure"
16157 #include "confdefs.h"
16158 #include <locale.h>
16159 int main() {
16160 return LC_MESSAGES
16161 ; return 0; }
16162 EOF
16163 if { (eval echo configure:16164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16164   rm -rf conftest*
16165   ac_cv_val_LC_MESSAGES=yes
16166 else
16167   echo "configure: failed program was:" >&5
16168   cat conftest.$ac_ext >&5
16169   rm -rf conftest*
16170   ac_cv_val_LC_MESSAGES=no
16171 fi
16172 rm -f conftest*
16173 fi
16174
16175 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
16176     if test $ac_cv_val_LC_MESSAGES = yes; then
16177       cat >> confdefs.h <<\EOF
16178 #define HAVE_LC_MESSAGES 1
16179 EOF
16180
16181     fi
16182   
16183 else
16184   echo "$ac_t""no" 1>&6
16185 fi
16186
16187
16188
16189 if test "${multilib}" = "yes"; then
16190   multilib_arg="--enable-multilib"
16191 else
16192   multilib_arg=
16193 fi
16194
16195 # Needed so that g++ can find the correct include subdir automatically.
16196 INTERFACE=v3
16197
16198 # Export all the install information
16199
16200
16201 glibcpp_toolexecdir=no
16202 glibcpp_toolexeclibdir=no
16203
16204 # Export build and source directories.
16205 # These need to be absolute paths, yet at the same time need to
16206 # canonicalize only relative paths, because then amd will not unmount
16207 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
16208 glibcpp_builddir=`pwd`
16209 case $srcdir in
16210 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
16211 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
16212 esac
16213 glibcpp_prefixdir=${prefix}
16214
16215 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
16216 echo "configure:16217: checking for interface version number" >&5
16217 libstdcxx_interface=$INTERFACE
16218 echo "$ac_t""$libstdcxx_interface" 1>&6
16219
16220 # Process the option --with-gxx-include-dir=<path to include-files directory>
16221 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
16222 echo "configure:16223: checking for --with-gxx-include-dir" >&5
16223 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
16224 if test "${with_gxx_include_dir+set}" = set; then
16225   withval="$with_gxx_include_dir"
16226   case "${withval}" in
16227   yes)
16228     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
16229     gxx_include_dir=no
16230     ;;
16231   no)
16232     gxx_include_dir=no
16233     ;;
16234   *)
16235     gxx_include_dir=${withval}
16236     ;;
16237 esac
16238 else
16239   gxx_include_dir=no
16240 fi
16241
16242 echo "$ac_t""$gxx_include_dir" 1>&6
16243
16244 # Process the option "--enable-version-specific-runtime-libs"
16245 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
16246 echo "configure:16247: checking for --enable-version-specific-runtime-libs" >&5
16247 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16248 if test "${enable_version_specific_runtime_libs+set}" = set; then
16249   enableval="$enable_version_specific_runtime_libs"
16250     version_specific_libs=yes
16251 # Need the gcc compiler version to know where to install libraries
16252 # and header files if --enable-version-specific-runtime-libs option
16253 # is selected.
16254 gcc_version_trigger=${srcdir}/../gcc/version.c
16255 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
16256 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
16257 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
16258 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16259 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
16260
16261 else
16262   version_specific_libs=no
16263 fi
16264
16265 echo "$ac_t""$version_specific_libs" 1>&6
16266
16267 # Default case for install directory for include files.
16268 if test x"$version_specific_libs" = x"no" \
16269    && test x"$gxx_include_dir" = x"no"; then
16270   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
16271 fi
16272
16273 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
16274 # Install a library built with a cross compiler in tooldir, not libdir.
16275 if test x"$glibcpp_toolexecdir" = x"no"; then 
16276   if test -n "$with_cross_host" &&
16277      test x"$with_cross_host" != x"no"; then
16278     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
16279     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
16280   else
16281     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16282     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
16283   fi
16284 fi
16285
16286 echo $ac_n "checking for install location""... $ac_c" 1>&6
16287 echo "configure:16288: checking for install location" >&5
16288 echo "$ac_t""$gxx_include_dir" 1>&6
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298 # Export all the include and flag information to makefiles.
16299
16300   # Root level of the build directory include sources.
16301   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
16302
16303   # Passed down for canadian crosses.
16304   if test x"$CANADIAN" = xyes; then
16305     TOPLEVEL_INCLUDES='-I$(includedir)'
16306   fi
16307
16308   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
16309
16310   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
16311
16312   if test x"$need_libio" = xyes; then
16313     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
16314     
16315   fi
16316
16317   # Now, export this to all the little Makefiles....
16318   
16319   
16320   
16321   
16322
16323
16324   # Optimization flags that are probably a good idea for thrill-seekers. Just
16325   # uncomment the lines below and make, everything else is ready to go... 
16326   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
16327   OPTIMIZE_CXXFLAGS=
16328   
16329
16330   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
16331   
16332
16333
16334 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
16335    grep "enable shared" > /dev/null; then
16336   LIBSUPCXX_PICFLAGS=-prefer-pic
16337 else
16338   LIBSUPCXX_PICFLAGS=
16339 fi
16340
16341
16342 # Generate the various Makefiles, include files, and scripts.
16343 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
16344 # and libsupc++/Makefile.am so that multilib installs will end up
16345 # installed in the correct place. To work around this not being passed
16346 # down from config-ml.in -> top_srcdir/Makefile.am ->
16347 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
16348 trap '' 1 2 15
16349 cat > confcache <<\EOF
16350 # This file is a shell script that caches the results of configure
16351 # tests run on this system so they can be shared between configure
16352 # scripts and configure runs.  It is not useful on other systems.
16353 # If it contains results you don't want to keep, you may remove or edit it.
16354 #
16355 # By default, configure uses ./config.cache as the cache file,
16356 # creating it if it does not exist already.  You can give configure
16357 # the --cache-file=FILE option to use a different cache file; that is
16358 # what configure does when it calls configure scripts in
16359 # subdirectories, so they share the cache.
16360 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16361 # config.status only pays attention to the cache file if you give it the
16362 # --recheck option to rerun configure.
16363 #
16364 EOF
16365 # The following way of writing the cache mishandles newlines in values,
16366 # but we know of no workaround that is simple, portable, and efficient.
16367 # So, don't put newlines in cache variables' values.
16368 # Ultrix sh set writes to stderr and can't be redirected directly,
16369 # and sets the high bit in the cache file unless we assign to the vars.
16370 (set) 2>&1 |
16371   case `(ac_space=' '; set | grep ac_space) 2>&1` in
16372   *ac_space=\ *)
16373     # `set' does not quote correctly, so add quotes (double-quote substitution
16374     # turns \\\\ into \\, and sed turns \\ into \).
16375     sed -n \
16376       -e "s/'/'\\\\''/g" \
16377       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16378     ;;
16379   *)
16380     # `set' quotes correctly as required by POSIX, so do not add quotes.
16381     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16382     ;;
16383   esac >> confcache
16384 if cmp -s $cache_file confcache; then
16385   :
16386 else
16387   if test -w $cache_file; then
16388     echo "updating cache $cache_file"
16389     cat confcache > $cache_file
16390   else
16391     echo "not updating unwritable cache $cache_file"
16392   fi
16393 fi
16394 rm -f confcache
16395
16396 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16397
16398 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16399 # Let make expand exec_prefix.
16400 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16401
16402 # Any assignment to VPATH causes Sun make to only execute
16403 # the first set of double-colon rules, so remove it if not needed.
16404 # If there is a colon in the path, we need to keep it.
16405 if test "x$srcdir" = x.; then
16406   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
16407 fi
16408
16409 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16410
16411 DEFS=-DHAVE_CONFIG_H
16412
16413 # Without the "./", some shells look in PATH for config.status.
16414 : ${CONFIG_STATUS=./config.status}
16415
16416 echo creating $CONFIG_STATUS
16417 rm -f $CONFIG_STATUS
16418 cat > $CONFIG_STATUS <<EOF
16419 #! /bin/sh
16420 # Generated automatically by configure.
16421 # Run this file to recreate the current configuration.
16422 # This directory was configured as follows,
16423 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16424 #
16425 # $0 $ac_configure_args
16426 #
16427 # Compiler output produced by configure, useful for debugging
16428 # configure, is in ./config.log if it exists.
16429
16430 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16431 for ac_option
16432 do
16433   case "\$ac_option" in
16434   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16435     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16436     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16437   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16438     echo "$CONFIG_STATUS generated by autoconf version 2.13"
16439     exit 0 ;;
16440   -help | --help | --hel | --he | --h)
16441     echo "\$ac_cs_usage"; exit 0 ;;
16442   *) echo "\$ac_cs_usage"; exit 1 ;;
16443   esac
16444 done
16445
16446 ac_given_srcdir=$srcdir
16447 ac_given_INSTALL="$INSTALL"
16448
16449 trap 'rm -fr `echo "Makefile \
16450     include/Makefile src/Makefile \
16451     libmath/Makefile libio/Makefile libsupc++/Makefile \
16452     testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16453 EOF
16454 cat >> $CONFIG_STATUS <<EOF
16455
16456 # Protect against being on the right side of a sed subst in config.status.
16457 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16458  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16459 $ac_vpsub
16460 $extrasub
16461 s%@SHELL@%$SHELL%g
16462 s%@CFLAGS@%$CFLAGS%g
16463 s%@CPPFLAGS@%$CPPFLAGS%g
16464 s%@CXXFLAGS@%$CXXFLAGS%g
16465 s%@FFLAGS@%$FFLAGS%g
16466 s%@DEFS@%$DEFS%g
16467 s%@LDFLAGS@%$LDFLAGS%g
16468 s%@LIBS@%$LIBS%g
16469 s%@exec_prefix@%$exec_prefix%g
16470 s%@prefix@%$prefix%g
16471 s%@program_transform_name@%$program_transform_name%g
16472 s%@bindir@%$bindir%g
16473 s%@sbindir@%$sbindir%g
16474 s%@libexecdir@%$libexecdir%g
16475 s%@datadir@%$datadir%g
16476 s%@sysconfdir@%$sysconfdir%g
16477 s%@sharedstatedir@%$sharedstatedir%g
16478 s%@localstatedir@%$localstatedir%g
16479 s%@libdir@%$libdir%g
16480 s%@includedir@%$includedir%g
16481 s%@oldincludedir@%$oldincludedir%g
16482 s%@infodir@%$infodir%g
16483 s%@mandir@%$mandir%g
16484 s%@toplevel_srcdir@%$toplevel_srcdir%g
16485 s%@host@%$host%g
16486 s%@host_alias@%$host_alias%g
16487 s%@host_cpu@%$host_cpu%g
16488 s%@host_vendor@%$host_vendor%g
16489 s%@host_os@%$host_os%g
16490 s%@target@%$target%g
16491 s%@target_alias@%$target_alias%g
16492 s%@target_cpu@%$target_cpu%g
16493 s%@target_vendor@%$target_vendor%g
16494 s%@target_os@%$target_os%g
16495 s%@build@%$build%g
16496 s%@build_alias@%$build_alias%g
16497 s%@build_cpu@%$build_cpu%g
16498 s%@build_vendor@%$build_vendor%g
16499 s%@build_os@%$build_os%g
16500 s%@LN_S@%$LN_S%g
16501 s%@glibcpp_basedir@%$glibcpp_basedir%g
16502 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16503 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16504 s%@INSTALL_DATA@%$INSTALL_DATA%g
16505 s%@PACKAGE@%$PACKAGE%g
16506 s%@VERSION@%$VERSION%g
16507 s%@ACLOCAL@%$ACLOCAL%g
16508 s%@AUTOCONF@%$AUTOCONF%g
16509 s%@AUTOMAKE@%$AUTOMAKE%g
16510 s%@AUTOHEADER@%$AUTOHEADER%g
16511 s%@MAKEINFO@%$MAKEINFO%g
16512 s%@SET_MAKE@%$SET_MAKE%g
16513 s%@CC@%$CC%g
16514 s%@glibcpp_CXX@%$glibcpp_CXX%g
16515 s%@AS@%$AS%g
16516 s%@AR@%$AR%g
16517 s%@RANLIB@%$RANLIB%g
16518 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
16519 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
16520 s%@MAINT@%$MAINT%g
16521 s%@EXEEXT@%$EXEEXT%g
16522 s%@OBJEXT@%$OBJEXT%g
16523 s%@STRIP@%$STRIP%g
16524 s%@LIBTOOL@%$LIBTOOL%g
16525 s%@CXXCPP@%$CXXCPP%g
16526 s%@enable_shared@%$enable_shared%g
16527 s%@enable_static@%$enable_static%g
16528 s%@ifGNUmake@%$ifGNUmake%g
16529 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
16530 s%@CPP@%$CPP%g
16531 s%@CSTDIO_H@%$CSTDIO_H%g
16532 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
16533 s%@CCODECVT_C@%$CCODECVT_C%g
16534 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
16535 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
16536 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
16537 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
16538 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
16539 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
16540 s%@libio_la@%$libio_la%g
16541 s%@CLOCALE_H@%$CLOCALE_H%g
16542 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
16543 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
16544 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
16545 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
16546 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
16547 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
16548 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
16549 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
16550 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
16551 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
16552 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
16553 s%@WERROR@%$WERROR%g
16554 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
16555 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
16556 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
16557 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
16558 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
16559 s%@glibcpp_builddir@%$glibcpp_builddir%g
16560 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
16561 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
16562 s%@gxx_include_dir@%$gxx_include_dir%g
16563 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
16564 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
16565 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
16566 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
16567 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
16568 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
16569 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
16570 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
16571 s%@WARN_FLAGS@%$WARN_FLAGS%g
16572 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
16573
16574 CEOF
16575 EOF
16576
16577 cat >> $CONFIG_STATUS <<\EOF
16578
16579 # Split the substitutions into bite-sized pieces for seds with
16580 # small command number limits, like on Digital OSF/1 and HP-UX.
16581 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16582 ac_file=1 # Number of current file.
16583 ac_beg=1 # First line for current file.
16584 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16585 ac_more_lines=:
16586 ac_sed_cmds=""
16587 while $ac_more_lines; do
16588   if test $ac_beg -gt 1; then
16589     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16590   else
16591     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16592   fi
16593   if test ! -s conftest.s$ac_file; then
16594     ac_more_lines=false
16595     rm -f conftest.s$ac_file
16596   else
16597     if test -z "$ac_sed_cmds"; then
16598       ac_sed_cmds="sed -f conftest.s$ac_file"
16599     else
16600       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16601     fi
16602     ac_file=`expr $ac_file + 1`
16603     ac_beg=$ac_end
16604     ac_end=`expr $ac_end + $ac_max_sed_cmds`
16605   fi
16606 done
16607 if test -z "$ac_sed_cmds"; then
16608   ac_sed_cmds=cat
16609 fi
16610 EOF
16611
16612 cat >> $CONFIG_STATUS <<EOF
16613
16614 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
16615     include/Makefile src/Makefile \
16616     libmath/Makefile libio/Makefile libsupc++/Makefile \
16617     testsuite/Makefile mkcheck testsuite_flags"}
16618 EOF
16619 cat >> $CONFIG_STATUS <<\EOF
16620 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16621   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16622   case "$ac_file" in
16623   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16624        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16625   *) ac_file_in="${ac_file}.in" ;;
16626   esac
16627
16628   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16629
16630   # Remove last slash and all that follows it.  Not all systems have dirname.
16631   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16632   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16633     # The file is in a subdirectory.
16634     test ! -d "$ac_dir" && mkdir "$ac_dir"
16635     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16636     # A "../" for each directory in $ac_dir_suffix.
16637     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16638   else
16639     ac_dir_suffix= ac_dots=
16640   fi
16641
16642   case "$ac_given_srcdir" in
16643   .)  srcdir=.
16644       if test -z "$ac_dots"; then top_srcdir=.
16645       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16646   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16647   *) # Relative path.
16648     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16649     top_srcdir="$ac_dots$ac_given_srcdir" ;;
16650   esac
16651
16652   case "$ac_given_INSTALL" in
16653   [/$]*) INSTALL="$ac_given_INSTALL" ;;
16654   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16655   esac
16656
16657   echo creating "$ac_file"
16658   rm -f "$ac_file"
16659   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16660   case "$ac_file" in
16661   *Makefile*) ac_comsub="1i\\
16662 # $configure_input" ;;
16663   *) ac_comsub= ;;
16664   esac
16665
16666   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16667   sed -e "$ac_comsub
16668 s%@configure_input@%$configure_input%g
16669 s%@srcdir@%$srcdir%g
16670 s%@top_srcdir@%$top_srcdir%g
16671 s%@INSTALL@%$INSTALL%g
16672 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16673 fi; done
16674 rm -f conftest.s*
16675
16676 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16677 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16678 #
16679 # ac_d sets the value in "#define NAME VALUE" lines.
16680 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16681 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
16682 ac_dC='\3'
16683 ac_dD='%g'
16684 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16685 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16686 ac_uB='\([      ]\)%\1#\2define\3'
16687 ac_uC=' '
16688 ac_uD='\4%g'
16689 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16690 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16691 ac_eB='$%\1#\2define\3'
16692 ac_eC=' '
16693 ac_eD='%g'
16694
16695 if test "${CONFIG_HEADERS+set}" != set; then
16696 EOF
16697 cat >> $CONFIG_STATUS <<EOF
16698   CONFIG_HEADERS="config.h"
16699 EOF
16700 cat >> $CONFIG_STATUS <<\EOF
16701 fi
16702 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16703   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16704   case "$ac_file" in
16705   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16706        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16707   *) ac_file_in="${ac_file}.in" ;;
16708   esac
16709
16710   echo creating $ac_file
16711
16712   rm -f conftest.frag conftest.in conftest.out
16713   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16714   cat $ac_file_inputs > conftest.in
16715
16716 EOF
16717
16718 # Transform confdefs.h into a sed script conftest.vals that substitutes
16719 # the proper values into config.h.in to produce config.h.  And first:
16720 # Protect against being on the right side of a sed subst in config.status.
16721 # Protect against being in an unquoted here document in config.status.
16722 rm -f conftest.vals
16723 cat > conftest.hdr <<\EOF
16724 s/[\\&%]/\\&/g
16725 s%[\\$`]%\\&%g
16726 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16727 s%ac_d%ac_u%gp
16728 s%ac_u%ac_e%gp
16729 EOF
16730 sed -n -f conftest.hdr confdefs.h > conftest.vals
16731 rm -f conftest.hdr
16732
16733 # This sed command replaces #undef with comments.  This is necessary, for
16734 # example, in the case of _POSIX_SOURCE, which is predefined and required
16735 # on some systems where configure will not decide to define it.
16736 cat >> conftest.vals <<\EOF
16737 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16738 EOF
16739
16740 # Break up conftest.vals because some shells have a limit on
16741 # the size of here documents, and old seds have small limits too.
16742
16743 rm -f conftest.tail
16744 while :
16745 do
16746   ac_lines=`grep -c . conftest.vals`
16747   # grep -c gives empty output for an empty file on some AIX systems.
16748   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16749   # Write a limited-size here document to conftest.frag.
16750   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16751   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16752   echo 'CEOF
16753   sed -f conftest.frag conftest.in > conftest.out
16754   rm -f conftest.in
16755   mv conftest.out conftest.in
16756 ' >> $CONFIG_STATUS
16757   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16758   rm -f conftest.vals
16759   mv conftest.tail conftest.vals
16760 done
16761 rm -f conftest.vals
16762
16763 cat >> $CONFIG_STATUS <<\EOF
16764   rm -f conftest.frag conftest.h
16765   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
16766   cat conftest.in >> conftest.h
16767   rm -f conftest.in
16768   if cmp -s $ac_file conftest.h 2>/dev/null; then
16769     echo "$ac_file is unchanged"
16770     rm -f conftest.h
16771   else
16772     # Remove last slash and all that follows it.  Not all systems have dirname.
16773       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16774       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16775       # The file is in a subdirectory.
16776       test ! -d "$ac_dir" && mkdir "$ac_dir"
16777     fi
16778     rm -f $ac_file
16779     mv conftest.h $ac_file
16780   fi
16781 fi; done
16782
16783 EOF
16784
16785 cat >> $CONFIG_STATUS <<EOF
16786 ac_sources="$BASIC_FILE_CC $CLOCALE_CC"
16787 ac_dests="src/basic_file.cc src/c++locale.cc"
16788 EOF
16789
16790 cat >> $CONFIG_STATUS <<\EOF
16791 srcdir=$ac_given_srcdir
16792 while test -n "$ac_sources"; do
16793   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
16794   set $ac_sources; ac_source=$1; shift; ac_sources=$*
16795
16796   echo "linking $srcdir/$ac_source to $ac_dest"
16797
16798   if test ! -r $srcdir/$ac_source; then
16799     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
16800   fi
16801   rm -f $ac_dest
16802
16803   # Make relative symlinks.
16804   # Remove last slash and all that follows it.  Not all systems have dirname.
16805   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
16806   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
16807     # The dest file is in a subdirectory.
16808     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
16809     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
16810     # A "../" for each directory in $ac_dest_dir_suffix.
16811     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
16812   else
16813     ac_dest_dir_suffix= ac_dots=
16814   fi
16815
16816   case "$srcdir" in
16817   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
16818   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
16819   esac
16820
16821   # Make a symlink if possible; otherwise try a hard link.
16822   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16823     ln $srcdir/$ac_source $ac_dest; then :
16824   else
16825     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
16826   fi
16827 done
16828 EOF
16829 cat >> $CONFIG_STATUS <<EOF
16830
16831 srcdir=${srcdir}
16832 host=${host}
16833 target=${target}
16834 with_multisubdir=${with_multisubdir}
16835 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16836 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16837 glibcpp_basedir=${glibcpp_basedir}
16838 CC="${CC}"
16839 CXX="${CXX}"
16840
16841 EOF
16842 cat >> $CONFIG_STATUS <<\EOF
16843 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
16844 if test -n "$CONFIG_FILES"; then
16845   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
16846   grep '^MULTISUBDIR =' Makefile >> src/Makefile
16847   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
16848 fi
16849 chmod +x mkcheck
16850 chmod +x testsuite_flags
16851
16852 exit 0
16853 EOF
16854 chmod +x $CONFIG_STATUS
16855 rm -fr confdefs* $ac_clean_files
16856 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
16857
16858
16859
16860 # Sanity checking & User-visible messages.
16861 # Checks down here, otherwise they get scrolled off before
16862 # the user will notice.
16863
16864 # Trying to get more people to read documentation.  Possibly remove
16865 # check and warn all the time. There is no "informational" AC_MSG_
16866 # macro, so these are going to be printed even when --quiet/--silent
16867 # is given.
16868 if test ! -f stamp-sanity-warned; then
16869   touch stamp-sanity-warned
16870   echo ""
16871   echo "Please make certain that you read the installation information here:"
16872   echo "  faster => ${srcdir}/docs/install.html"
16873   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
16874   echo ""
16875   echo "and the configuration information here:"
16876   echo "  faster => ${srcdir}/docs/configopts.html"
16877   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
16878   echo ""
16879   echo "before proceeding with ${_cv_gnu_make_command}."
16880   echo ""
16881 fi