OSDN Git Service

* configure.in: Update local install.html, configopts.html paths.
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-multilib       build hella library versions (default)"
16 ac_help="$ac_help
17   --with-target-subdir=SUBDIR
18                           configuring in a subdirectory"
19 ac_help="$ac_help
20   --with-cross-host=HOST  configuring with a cross compiler"
21 ac_help="$ac_help
22   --enable-maintainer-mode enable make rules and dependencies not useful
23                           (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25   --enable-shared[=PKGS]  build shared libraries [default=yes]"
26 ac_help="$ac_help
27   --enable-static[=PKGS]  build static libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33   --disable-libtool-lock  avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37   --enable-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-nls            use Native Language Support (default)"
48 ac_help="$ac_help
49   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
50 ac_help="$ac_help
51   --enable-c99            turns on 'ISO/IEC 9899:1999 support' [default=yes]"
52 ac_help="$ac_help
53   --enable-long-long      turns on 'long long' [default=yes]"
54 ac_help="$ac_help
55   --enable-cheaders       construct "C" header files for g++ [default=c_std]"
56 ac_help="$ac_help
57   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
58                                 [default=none]"
59 ac_help="$ac_help
60   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
61 ac_help="$ac_help
62   --enable-libunwind-exceptions  force use of libunwind for exceptions"
63 ac_help="$ac_help
64   --enable-concept-checks use Boost-derived template checks [default=no]"
65 ac_help="$ac_help
66   --enable-symvers=style  enables symbol versioning of the shared library [default=yes]"
67 ac_help="$ac_help
68   --with-gxx-include-dir  the installation directory for include files"
69 ac_help="$ac_help
70   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
71
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
75 build=NONE
76 cache_file=./config.cache
77 exec_prefix=NONE
78 host=NONE
79 no_create=
80 nonopt=NONE
81 no_recursion=
82 prefix=NONE
83 program_prefix=NONE
84 program_suffix=NONE
85 program_transform_name=s,x,x,
86 silent=
87 site=
88 srcdir=
89 target=NONE
90 verbose=
91 x_includes=NONE
92 x_libraries=NONE
93 bindir='${exec_prefix}/bin'
94 sbindir='${exec_prefix}/sbin'
95 libexecdir='${exec_prefix}/libexec'
96 datadir='${prefix}/share'
97 sysconfdir='${prefix}/etc'
98 sharedstatedir='${prefix}/com'
99 localstatedir='${prefix}/var'
100 libdir='${exec_prefix}/lib'
101 includedir='${prefix}/include'
102 oldincludedir='/usr/include'
103 infodir='${prefix}/info'
104 mandir='${prefix}/man'
105
106 # Initialize some other variables.
107 subdirs=
108 MFLAGS= MAKEFLAGS=
109 SHELL=${CONFIG_SHELL-/bin/sh}
110 # Maximum number of lines to put in a shell here document.
111 ac_max_here_lines=12
112
113 ac_prev=
114 for ac_option
115 do
116
117   # If the previous option needs an argument, assign it.
118   if test -n "$ac_prev"; then
119     eval "$ac_prev=\$ac_option"
120     ac_prev=
121     continue
122   fi
123
124   case "$ac_option" in
125   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126   *) ac_optarg= ;;
127   esac
128
129   # Accept the important Cygnus configure options, so we can diagnose typos.
130
131   case "$ac_option" in
132
133   -bindir | --bindir | --bindi | --bind | --bin | --bi)
134     ac_prev=bindir ;;
135   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
136     bindir="$ac_optarg" ;;
137
138   -build | --build | --buil | --bui | --bu)
139     ac_prev=build ;;
140   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
141     build="$ac_optarg" ;;
142
143   -cache-file | --cache-file | --cache-fil | --cache-fi \
144   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
145     ac_prev=cache_file ;;
146   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
147   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
148     cache_file="$ac_optarg" ;;
149
150   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
151     ac_prev=datadir ;;
152   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
153   | --da=*)
154     datadir="$ac_optarg" ;;
155
156   -disable-* | --disable-*)
157     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
158     # Reject names that are not valid shell variable names.
159     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
161     fi
162     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163     eval "enable_${ac_feature}=no" ;;
164
165   -enable-* | --enable-*)
166     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167     # Reject names that are not valid shell variable names.
168     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170     fi
171     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172     case "$ac_option" in
173       *=*) ;;
174       *) ac_optarg=yes ;;
175     esac
176     eval "enable_${ac_feature}='$ac_optarg'" ;;
177
178   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
179   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
180   | --exec | --exe | --ex)
181     ac_prev=exec_prefix ;;
182   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
183   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
184   | --exec=* | --exe=* | --ex=*)
185     exec_prefix="$ac_optarg" ;;
186
187   -gas | --gas | --ga | --g)
188     # Obsolete; use --with-gas.
189     with_gas=yes ;;
190
191   -help | --help | --hel | --he)
192     # Omit some internal or obsolete options to make the list less imposing.
193     # This message is too long to be a string in the A/UX 3.1 sh.
194     cat << EOF
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
197 Configuration:
198   --cache-file=FILE       cache test results in FILE
199   --help                  print this message
200   --no-create             do not create output files
201   --quiet, --silent       do not print \`checking...' messages
202   --version               print the version of autoconf that created configure
203 Directory and file names:
204   --prefix=PREFIX         install architecture-independent files in PREFIX
205                           [$ac_default_prefix]
206   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
207                           [same as prefix]
208   --bindir=DIR            user executables in DIR [EPREFIX/bin]
209   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
210   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
211   --datadir=DIR           read-only architecture-independent data in DIR
212                           [PREFIX/share]
213   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
214   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
215                           [PREFIX/com]
216   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
217   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
218   --includedir=DIR        C header files in DIR [PREFIX/include]
219   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
220   --infodir=DIR           info documentation in DIR [PREFIX/info]
221   --mandir=DIR            man documentation in DIR [PREFIX/man]
222   --srcdir=DIR            find the sources in DIR [configure dir or ..]
223   --program-prefix=PREFIX prepend PREFIX to installed program names
224   --program-suffix=SUFFIX append SUFFIX to installed program names
225   --program-transform-name=PROGRAM
226                           run sed PROGRAM on installed program names
227 EOF
228     cat << EOF
229 Host type:
230   --build=BUILD           configure for building on BUILD [BUILD=HOST]
231   --host=HOST             configure for HOST [guessed]
232   --target=TARGET         configure for TARGET [TARGET=HOST]
233 Features and packages:
234   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
235   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
236   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
237   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
238   --x-includes=DIR        X include files are in DIR
239   --x-libraries=DIR       X library files are in DIR
240 EOF
241     if test -n "$ac_help"; then
242       echo "--enable and --with options recognized:$ac_help"
243     fi
244     exit 0 ;;
245
246   -host | --host | --hos | --ho)
247     ac_prev=host ;;
248   -host=* | --host=* | --hos=* | --ho=*)
249     host="$ac_optarg" ;;
250
251   -includedir | --includedir | --includedi | --included | --include \
252   | --includ | --inclu | --incl | --inc)
253     ac_prev=includedir ;;
254   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255   | --includ=* | --inclu=* | --incl=* | --inc=*)
256     includedir="$ac_optarg" ;;
257
258   -infodir | --infodir | --infodi | --infod | --info | --inf)
259     ac_prev=infodir ;;
260   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261     infodir="$ac_optarg" ;;
262
263   -libdir | --libdir | --libdi | --libd)
264     ac_prev=libdir ;;
265   -libdir=* | --libdir=* | --libdi=* | --libd=*)
266     libdir="$ac_optarg" ;;
267
268   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269   | --libexe | --libex | --libe)
270     ac_prev=libexecdir ;;
271   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272   | --libexe=* | --libex=* | --libe=*)
273     libexecdir="$ac_optarg" ;;
274
275   -localstatedir | --localstatedir | --localstatedi | --localstated \
276   | --localstate | --localstat | --localsta | --localst \
277   | --locals | --local | --loca | --loc | --lo)
278     ac_prev=localstatedir ;;
279   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282     localstatedir="$ac_optarg" ;;
283
284   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
285     ac_prev=mandir ;;
286   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
287     mandir="$ac_optarg" ;;
288
289   -nfp | --nfp | --nf)
290     # Obsolete; use --without-fp.
291     with_fp=no ;;
292
293   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
294   | --no-cr | --no-c)
295     no_create=yes ;;
296
297   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
299     no_recursion=yes ;;
300
301   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303   | --oldin | --oldi | --old | --ol | --o)
304     ac_prev=oldincludedir ;;
305   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308     oldincludedir="$ac_optarg" ;;
309
310   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
311     ac_prev=prefix ;;
312   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
313     prefix="$ac_optarg" ;;
314
315   -program-prefix | --program-prefix | --program-prefi | --program-pref \
316   | --program-pre | --program-pr | --program-p)
317     ac_prev=program_prefix ;;
318   -program-prefix=* | --program-prefix=* | --program-prefi=* \
319   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320     program_prefix="$ac_optarg" ;;
321
322   -program-suffix | --program-suffix | --program-suffi | --program-suff \
323   | --program-suf | --program-su | --program-s)
324     ac_prev=program_suffix ;;
325   -program-suffix=* | --program-suffix=* | --program-suffi=* \
326   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327     program_suffix="$ac_optarg" ;;
328
329   -program-transform-name | --program-transform-name \
330   | --program-transform-nam | --program-transform-na \
331   | --program-transform-n | --program-transform- \
332   | --program-transform | --program-transfor \
333   | --program-transfo | --program-transf \
334   | --program-trans | --program-tran \
335   | --progr-tra | --program-tr | --program-t)
336     ac_prev=program_transform_name ;;
337   -program-transform-name=* | --program-transform-name=* \
338   | --program-transform-nam=* | --program-transform-na=* \
339   | --program-transform-n=* | --program-transform-=* \
340   | --program-transform=* | --program-transfor=* \
341   | --program-transfo=* | --program-transf=* \
342   | --program-trans=* | --program-tran=* \
343   | --progr-tra=* | --program-tr=* | --program-t=*)
344     program_transform_name="$ac_optarg" ;;
345
346   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347   | -silent | --silent | --silen | --sile | --sil)
348     silent=yes ;;
349
350   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
351     ac_prev=sbindir ;;
352   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
353   | --sbi=* | --sb=*)
354     sbindir="$ac_optarg" ;;
355
356   -sharedstatedir | --sharedstatedir | --sharedstatedi \
357   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358   | --sharedst | --shareds | --shared | --share | --shar \
359   | --sha | --sh)
360     ac_prev=sharedstatedir ;;
361   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
364   | --sha=* | --sh=*)
365     sharedstatedir="$ac_optarg" ;;
366
367   -site | --site | --sit)
368     ac_prev=site ;;
369   -site=* | --site=* | --sit=*)
370     site="$ac_optarg" ;;
371
372   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
373     ac_prev=srcdir ;;
374   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
375     srcdir="$ac_optarg" ;;
376
377   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378   | --syscon | --sysco | --sysc | --sys | --sy)
379     ac_prev=sysconfdir ;;
380   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382     sysconfdir="$ac_optarg" ;;
383
384   -target | --target | --targe | --targ | --tar | --ta | --t)
385     ac_prev=target ;;
386   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387     target="$ac_optarg" ;;
388
389   -v | -verbose | --verbose | --verbos | --verbo | --verb)
390     verbose=yes ;;
391
392   -version | --version | --versio | --versi | --vers)
393     echo "configure generated by autoconf version 2.13"
394     exit 0 ;;
395
396   -with-* | --with-*)
397     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398     # Reject names that are not valid shell variable names.
399     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
401     fi
402     ac_package=`echo $ac_package| sed 's/-/_/g'`
403     case "$ac_option" in
404       *=*) ;;
405       *) ac_optarg=yes ;;
406     esac
407     eval "with_${ac_package}='$ac_optarg'" ;;
408
409   -without-* | --without-*)
410     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
411     # Reject names that are not valid shell variable names.
412     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414     fi
415     ac_package=`echo $ac_package| sed 's/-/_/g'`
416     eval "with_${ac_package}=no" ;;
417
418   --x)
419     # Obsolete; use --with-x.
420     with_x=yes ;;
421
422   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423   | --x-incl | --x-inc | --x-in | --x-i)
424     ac_prev=x_includes ;;
425   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427     x_includes="$ac_optarg" ;;
428
429   -x-libraries | --x-libraries | --x-librarie | --x-librari \
430   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431     ac_prev=x_libraries ;;
432   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434     x_libraries="$ac_optarg" ;;
435
436   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437     ;;
438
439   *)
440     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441       echo "configure: warning: $ac_option: invalid host type" 1>&2
442     fi
443     if test "x$nonopt" != xNONE; then
444       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
445     fi
446     nonopt="$ac_option"
447     ;;
448
449   esac
450 done
451
452 if test -n "$ac_prev"; then
453   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
454 fi
455
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
457
458 # File descriptor usage:
459 # 0 standard input
460 # 1 file creation
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
467   exec 6>/dev/null
468 else
469   exec 6>&1
470 fi
471 exec 5>./config.log
472
473 echo "\
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
476 " 1>&5
477
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
480 ac_configure_args=
481 for ac_arg
482 do
483   case "$ac_arg" in
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c) ;;
486   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
488   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
490   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
491   esac
492 done
493
494 # NLS nuisances.
495 # Only set these to C if already set.  These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
500 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
502 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
503
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
507 echo > confdefs.h
508
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file=src/ios.cc
512
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515   ac_srcdir_defaulted=yes
516   # Try the directory containing this script, then its parent.
517   ac_prog=$0
518   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520   srcdir=$ac_confdir
521   if test ! -r $srcdir/$ac_unique_file; then
522     srcdir=..
523   fi
524 else
525   ac_srcdir_defaulted=no
526 fi
527 if test ! -r $srcdir/$ac_unique_file; then
528   if test "$ac_srcdir_defaulted" = yes; then
529     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530   else
531     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
532   fi
533 fi
534 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
535
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$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 for ac_site_file in $CONFIG_SITE; do
545   if test -r "$ac_site_file"; then
546     echo "loading site script $ac_site_file"
547     . "$ac_site_file"
548   fi
549 done
550
551 if test -r "$cache_file"; then
552   echo "loading cache $cache_file"
553   . $cache_file
554 else
555   echo "creating cache $cache_file"
556   > $cache_file
557 fi
558
559 ac_ext=c
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp='$CPP $CPPFLAGS'
562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling=$ac_cv_prog_cc_cross
565
566 ac_exeext=
567 ac_objext=o
568 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
569   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
571     ac_n= ac_c='
572 ' ac_t='        '
573   else
574     ac_n=-n ac_c= ac_t=
575   fi
576 else
577   ac_n= ac_c='\c' ac_t=
578 fi
579
580
581
582 PACKAGE=libstdc++
583
584 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
585 release_VERSION=3.1.0
586
587 # For libtool versioning info, format is CURRENT:REVISION:AGE
588 libtool_VERSION=4:0:0
589
590
591 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
592 # AC 2.5x sets target_alias iff the user specified --target, but we use it
593 # everywhere, so we set it here just to be sure.  In AC 2.13
594 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
595 ac_aux_dir=
596 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
597   if test -f $ac_dir/install-sh; then
598     ac_aux_dir=$ac_dir
599     ac_install_sh="$ac_aux_dir/install-sh -c"
600     break
601   elif test -f $ac_dir/install.sh; then
602     ac_aux_dir=$ac_dir
603     ac_install_sh="$ac_aux_dir/install.sh -c"
604     break
605   fi
606 done
607 if test -z "$ac_aux_dir"; then
608   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
609 fi
610 ac_config_guess=$ac_aux_dir/config.guess
611 ac_config_sub=$ac_aux_dir/config.sub
612 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
613
614
615 # Do some error checking and defaulting for the host and target type.
616 # The inputs are:
617 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
618 #
619 # The rules are:
620 # 1. You are not allowed to specify --host, --target, and nonopt at the
621 #    same time.
622 # 2. Host defaults to nonopt.
623 # 3. If nonopt is not specified, then host defaults to the current host,
624 #    as determined by config.guess.
625 # 4. Target and build default to nonopt.
626 # 5. If nonopt is not specified, then target and build default to host.
627
628 # The aliases save the names the user supplied, while $host etc.
629 # will get canonicalized.
630 case $host---$target---$nonopt in
631 NONE---*---* | *---NONE---* | *---*---NONE) ;;
632 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
633 esac
634
635
636 # Make sure we can run config.sub.
637 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
638 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
639 fi
640
641 echo $ac_n "checking host system type""... $ac_c" 1>&6
642 echo "configure:643: checking host system type" >&5
643
644 host_alias=$host
645 case "$host_alias" in
646 NONE)
647   case $nonopt in
648   NONE)
649     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
650     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
651     fi ;;
652   *) host_alias=$nonopt ;;
653   esac ;;
654 esac
655
656 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
657 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
658 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
659 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
660 echo "$ac_t""$host" 1>&6
661
662 echo $ac_n "checking target system type""... $ac_c" 1>&6
663 echo "configure:664: checking target system type" >&5
664
665 target_alias=$target
666 case "$target_alias" in
667 NONE)
668   case $nonopt in
669   NONE) target_alias=$host_alias ;;
670   *) target_alias=$nonopt ;;
671   esac ;;
672 esac
673
674 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
675 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
676 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
677 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
678 echo "$ac_t""$target" 1>&6
679
680 echo $ac_n "checking build system type""... $ac_c" 1>&6
681 echo "configure:682: checking build system type" >&5
682
683 build_alias=$build
684 case "$build_alias" in
685 NONE)
686   case $nonopt in
687   NONE) build_alias=$host_alias ;;
688   *) build_alias=$nonopt ;;
689   esac ;;
690 esac
691
692 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
693 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
694 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
695 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
696 echo "$ac_t""$build" 1>&6
697
698 test "$host_alias" != "$target_alias" &&
699   test "$program_prefix$program_suffix$program_transform_name" = \
700     NONENONEs,x,x, &&
701   program_prefix=${target_alias}-
702
703 target_alias=${target_alias-$target}
704
705
706 # Find a good install program.  We prefer a C program (faster),
707 # so one script is as good as another.  But avoid the broken or
708 # incompatible versions:
709 # SysV /etc/install, /usr/sbin/install
710 # SunOS /usr/etc/install
711 # IRIX /sbin/install
712 # AIX /bin/install
713 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
714 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
715 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
716 # ./install, which can be erroneously created by make from ./install.sh.
717 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
718 echo "configure:719: checking for a BSD compatible install" >&5
719 if test -z "$INSTALL"; then
720 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
721   echo $ac_n "(cached) $ac_c" 1>&6
722 else
723     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
724   for ac_dir in $PATH; do
725     # Account for people who put trailing slashes in PATH elements.
726     case "$ac_dir/" in
727     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
728     *)
729       # OSF1 and SCO ODT 3.0 have their own names for install.
730       # Don't use installbsd from OSF since it installs stuff as root
731       # by default.
732       for ac_prog in ginstall scoinst install; do
733         if test -f $ac_dir/$ac_prog; then
734           if test $ac_prog = install &&
735             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
736             # AIX install.  It has an incompatible calling convention.
737             :
738           else
739             ac_cv_path_install="$ac_dir/$ac_prog -c"
740             break 2
741           fi
742         fi
743       done
744       ;;
745     esac
746   done
747   IFS="$ac_save_IFS"
748
749 fi
750   if test "${ac_cv_path_install+set}" = set; then
751     INSTALL="$ac_cv_path_install"
752   else
753     # As a last resort, use the slow shell script.  We don't cache a
754     # path for INSTALL within a source directory, because that will
755     # break other packages using the cache if that directory is
756     # removed, or if the path is relative.
757     INSTALL="$ac_install_sh"
758   fi
759 fi
760 echo "$ac_t""$INSTALL" 1>&6
761
762 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
763 # It thinks the first close brace ends the variable substitution.
764 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
765
766 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
767
768 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
769
770 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
771 echo "configure:772: checking whether build environment is sane" >&5
772 # Just in case
773 sleep 1
774 echo timestamp > conftestfile
775 # Do `set' in a subshell so we don't clobber the current shell's
776 # arguments.  Must try -L first in case configure is actually a
777 # symlink; some systems play weird games with the mod time of symlinks
778 # (eg FreeBSD returns the mod time of the symlink's containing
779 # directory).
780 if (
781    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
782    if test "$*" = "X"; then
783       # -L didn't work.
784       set X `ls -t $srcdir/configure conftestfile`
785    fi
786    if test "$*" != "X $srcdir/configure conftestfile" \
787       && test "$*" != "X conftestfile $srcdir/configure"; then
788
789       # If neither matched, then we have a broken ls.  This can happen
790       # if, for instance, CONFIG_SHELL is bash and it inherits a
791       # broken ls alias from the environment.  This has actually
792       # happened.  Such a system could not be considered "sane".
793       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
794 alias in your environment" 1>&2; exit 1; }
795    fi
796
797    test "$2" = conftestfile
798    )
799 then
800    # Ok.
801    :
802 else
803    { echo "configure: error: newly created file is older than distributed files!
804 Check your system clock" 1>&2; exit 1; }
805 fi
806 rm -f conftest*
807 echo "$ac_t""yes" 1>&6
808 if test "$program_transform_name" = s,x,x,; then
809   program_transform_name=
810 else
811   # Double any \ or $.  echo might interpret backslashes.
812   cat <<\EOF_SED > conftestsed
813 s,\\,\\\\,g; s,\$,$$,g
814 EOF_SED
815   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
816   rm -f conftestsed
817 fi
818 test "$program_prefix" != NONE &&
819   program_transform_name="s,^,${program_prefix},; $program_transform_name"
820 # Use a double $ so make ignores it.
821 test "$program_suffix" != NONE &&
822   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
823
824 # sed with no file args requires a program.
825 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
826
827 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
828 echo "configure:829: checking whether ${MAKE-make} sets \${MAKE}" >&5
829 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
830 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
831   echo $ac_n "(cached) $ac_c" 1>&6
832 else
833   cat > conftestmake <<\EOF
834 all:
835         @echo 'ac_maketemp="${MAKE}"'
836 EOF
837 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
838 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
839 if test -n "$ac_maketemp"; then
840   eval ac_cv_prog_make_${ac_make}_set=yes
841 else
842   eval ac_cv_prog_make_${ac_make}_set=no
843 fi
844 rm -f conftestmake
845 fi
846 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
847   echo "$ac_t""yes" 1>&6
848   SET_MAKE=
849 else
850   echo "$ac_t""no" 1>&6
851   SET_MAKE="MAKE=${MAKE-make}"
852 fi
853
854
855 PACKAGE=$PACKAGE
856
857 VERSION=$release_VERSION
858
859 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
860   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
861 fi
862 cat >> confdefs.h <<EOF
863 #define PACKAGE "$PACKAGE"
864 EOF
865
866 cat >> confdefs.h <<EOF
867 #define VERSION "$VERSION"
868 EOF
869
870
871
872 missing_dir=`cd $ac_aux_dir && pwd`
873 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
874 echo "configure:875: checking for working aclocal" >&5
875 # Run test in a subshell; some versions of sh will print an error if
876 # an executable is not found, even if stderr is redirected.
877 # Redirect stdin to placate older versions of autoconf.  Sigh.
878 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
879    ACLOCAL=aclocal
880    echo "$ac_t""found" 1>&6
881 else
882    ACLOCAL="$missing_dir/missing aclocal"
883    echo "$ac_t""missing" 1>&6
884 fi
885
886 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
887 echo "configure:888: checking for working autoconf" >&5
888 # Run test in a subshell; some versions of sh will print an error if
889 # an executable is not found, even if stderr is redirected.
890 # Redirect stdin to placate older versions of autoconf.  Sigh.
891 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
892    AUTOCONF=autoconf
893    echo "$ac_t""found" 1>&6
894 else
895    AUTOCONF="$missing_dir/missing autoconf"
896    echo "$ac_t""missing" 1>&6
897 fi
898
899 echo $ac_n "checking for working automake""... $ac_c" 1>&6
900 echo "configure:901: checking for working automake" >&5
901 # Run test in a subshell; some versions of sh will print an error if
902 # an executable is not found, even if stderr is redirected.
903 # Redirect stdin to placate older versions of autoconf.  Sigh.
904 if (automake --version) < /dev/null > /dev/null 2>&1; then
905    AUTOMAKE=automake
906    echo "$ac_t""found" 1>&6
907 else
908    AUTOMAKE="$missing_dir/missing automake"
909    echo "$ac_t""missing" 1>&6
910 fi
911
912 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
913 echo "configure:914: checking for working autoheader" >&5
914 # Run test in a subshell; some versions of sh will print an error if
915 # an executable is not found, even if stderr is redirected.
916 # Redirect stdin to placate older versions of autoconf.  Sigh.
917 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
918    AUTOHEADER=autoheader
919    echo "$ac_t""found" 1>&6
920 else
921    AUTOHEADER="$missing_dir/missing autoheader"
922    echo "$ac_t""missing" 1>&6
923 fi
924
925 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
926 echo "configure:927: checking for working makeinfo" >&5
927 # Run test in a subshell; some versions of sh will print an error if
928 # an executable is not found, even if stderr is redirected.
929 # Redirect stdin to placate older versions of autoconf.  Sigh.
930 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
931    MAKEINFO=makeinfo
932    echo "$ac_t""found" 1>&6
933 else
934    MAKEINFO="$missing_dir/missing makeinfo"
935    echo "$ac_t""missing" 1>&6
936 fi
937
938
939
940
941
942
943 # Runs configure.host and configure.target, as well as finds CC, CXX
944 # and assorted other critical bits.  Have to run this before the
945 # GLIBCPP_ENABLE_* macros below.
946 if test $host != $build; then
947   ac_tool_prefix=${host_alias}-
948 else
949   ac_tool_prefix=
950 fi
951
952 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
953 echo "configure:954: checking for Cygwin environment" >&5
954 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
955   echo $ac_n "(cached) $ac_c" 1>&6
956 else
957   cat > conftest.$ac_ext <<EOF
958 #line 959 "configure"
959 #include "confdefs.h"
960
961 int main() {
962
963 #ifndef __CYGWIN__
964 #define __CYGWIN__ __CYGWIN32__
965 #endif
966 return __CYGWIN__;
967 ; return 0; }
968 EOF
969 if { (eval echo configure:970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
970   rm -rf conftest*
971   ac_cv_cygwin=yes
972 else
973   echo "configure: failed program was:" >&5
974   cat conftest.$ac_ext >&5
975   rm -rf conftest*
976   ac_cv_cygwin=no
977 fi
978 rm -f conftest*
979 rm -f conftest*
980 fi
981
982 echo "$ac_t""$ac_cv_cygwin" 1>&6
983 CYGWIN=
984 test "$ac_cv_cygwin" = yes && CYGWIN=yes
985 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
986 echo "configure:987: checking for mingw32 environment" >&5
987 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
988   echo $ac_n "(cached) $ac_c" 1>&6
989 else
990   cat > conftest.$ac_ext <<EOF
991 #line 992 "configure"
992 #include "confdefs.h"
993
994 int main() {
995 return __MINGW32__;
996 ; return 0; }
997 EOF
998 if { (eval echo configure:999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
999   rm -rf conftest*
1000   ac_cv_mingw32=yes
1001 else
1002   echo "configure: failed program was:" >&5
1003   cat conftest.$ac_ext >&5
1004   rm -rf conftest*
1005   ac_cv_mingw32=no
1006 fi
1007 rm -f conftest*
1008 rm -f conftest*
1009 fi
1010
1011 echo "$ac_t""$ac_cv_mingw32" 1>&6
1012 MINGW32=
1013 test "$ac_cv_mingw32" = yes && MINGW32=yes
1014
1015     # Check whether --enable-multilib or --disable-multilib was given.
1016 if test "${enable_multilib+set}" = set; then
1017   enableval="$enable_multilib"
1018   case "${enableval}" in
1019     yes) multilib=yes ;;
1020     no)  multilib=no ;;
1021     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1022    esac
1023 else
1024   multilib=yes
1025 fi
1026
1027   # When building with srcdir == objdir, links to the source files will
1028   # be created in directories within the target_subdir.  We have to
1029   # adjust toplevel_srcdir accordingly, so that configure finds
1030   # install-sh and other auxiliary files that live in the top-level
1031   # source directory.
1032   if test "${srcdir}" = "."; then
1033     if test -z "${with_target_subdir}"; then
1034       toprel=".."
1035     else
1036       if test "${with_target_subdir}" != "."; then
1037         toprel="${with_multisrctop}../.."
1038       else
1039         toprel="${with_multisrctop}.."
1040       fi
1041     fi
1042   else
1043     toprel=".."
1044   fi
1045   ac_aux_dir=
1046 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1047   if test -f $ac_dir/install-sh; then
1048     ac_aux_dir=$ac_dir
1049     ac_install_sh="$ac_aux_dir/install-sh -c"
1050     break
1051   elif test -f $ac_dir/install.sh; then
1052     ac_aux_dir=$ac_dir
1053     ac_install_sh="$ac_aux_dir/install.sh -c"
1054     break
1055   fi
1056 done
1057 if test -z "$ac_aux_dir"; then
1058   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1059 fi
1060 ac_config_guess=$ac_aux_dir/config.guess
1061 ac_config_sub=$ac_aux_dir/config.sub
1062 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1063
1064   toplevel_srcdir=\${top_srcdir}/$toprel
1065   
1066
1067   # Export build and source directories.
1068   # These need to be absolute paths, yet at the same time need to
1069   # canonicalize only relative paths, because then amd will not unmount
1070   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1071   glibcpp_builddir=`pwd`
1072   case $srcdir in
1073   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1074   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1075   esac
1076   
1077   
1078
1079     
1080
1081   for ac_prog in gawk mawk nawk awk
1082 do
1083 # Extract the first word of "$ac_prog", so it can be a program name with args.
1084 set dummy $ac_prog; ac_word=$2
1085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1086 echo "configure:1087: checking for $ac_word" >&5
1087 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1088   echo $ac_n "(cached) $ac_c" 1>&6
1089 else
1090   if test -n "$AWK"; then
1091   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1092 else
1093   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1094   ac_dummy="$PATH"
1095   for ac_dir in $ac_dummy; do
1096     test -z "$ac_dir" && ac_dir=.
1097     if test -f $ac_dir/$ac_word; then
1098       ac_cv_prog_AWK="$ac_prog"
1099       break
1100     fi
1101   done
1102   IFS="$ac_save_ifs"
1103 fi
1104 fi
1105 AWK="$ac_cv_prog_AWK"
1106 if test -n "$AWK"; then
1107   echo "$ac_t""$AWK" 1>&6
1108 else
1109   echo "$ac_t""no" 1>&6
1110 fi
1111
1112 test -n "$AWK" && break
1113 done
1114
1115   # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.5x, can also
1116   # be 'cp -p' if linking isn't available.
1117   #ac_cv_prog_LN_S='cp -p'
1118   echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1119 echo "configure:1120: checking whether ln -s works" >&5
1120 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1121   echo $ac_n "(cached) $ac_c" 1>&6
1122 else
1123   rm -f conftestdata
1124 if ln -s X conftestdata 2>/dev/null
1125 then
1126   rm -f conftestdata
1127   ac_cv_prog_LN_S="ln -s"
1128 else
1129   ac_cv_prog_LN_S=ln
1130 fi
1131 fi
1132 LN_S="$ac_cv_prog_LN_S"
1133 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1134   echo "$ac_t""yes" 1>&6
1135 else
1136   echo "$ac_t""no" 1>&6
1137 fi
1138
1139
1140   # We use these options to decide which functions to include.
1141   # Check whether --with-target-subdir or --without-target-subdir was given.
1142 if test "${with_target_subdir+set}" = set; then
1143   withval="$with_target_subdir"
1144   :
1145 fi
1146
1147   # Check whether --with-cross-host or --without-cross-host was given.
1148 if test "${with_cross_host+set}" = set; then
1149   withval="$with_cross_host"
1150   :
1151 fi
1152
1153
1154   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1155   
1156
1157   # Never versions of autoconf add an underscore to these functions.
1158   # Prevent future problems ...
1159   
1160   
1161   
1162   
1163
1164   # AC_PROG_CC
1165   # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1166   # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1167   # are probably using a cross compiler, which will not be able to fully
1168   # link an executable.  This is addressed in later versions of autoconf.
1169
1170   
1171
1172       
1173   # Extract the first word of "gcc", so it can be a program name with args.
1174 set dummy gcc; ac_word=$2
1175 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1176 echo "configure:1177: checking for $ac_word" >&5
1177 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1178   echo $ac_n "(cached) $ac_c" 1>&6
1179 else
1180   if test -n "$CC"; then
1181   ac_cv_prog_CC="$CC" # Let the user override the test.
1182 else
1183   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1184   ac_dummy="$PATH"
1185   for ac_dir in $ac_dummy; do
1186     test -z "$ac_dir" && ac_dir=.
1187     if test -f $ac_dir/$ac_word; then
1188       ac_cv_prog_CC="gcc"
1189       break
1190     fi
1191   done
1192   IFS="$ac_save_ifs"
1193 fi
1194 fi
1195 CC="$ac_cv_prog_CC"
1196 if test -n "$CC"; then
1197   echo "$ac_t""$CC" 1>&6
1198 else
1199   echo "$ac_t""no" 1>&6
1200 fi
1201
1202   if test -z "$CC"; then
1203     # Extract the first word of "cc", so it can be a program name with args.
1204 set dummy cc; ac_word=$2
1205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1206 echo "configure:1207: checking for $ac_word" >&5
1207 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1208   echo $ac_n "(cached) $ac_c" 1>&6
1209 else
1210   if test -n "$CC"; then
1211   ac_cv_prog_CC="$CC" # Let the user override the test.
1212 else
1213   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1214   ac_prog_rejected=no
1215   ac_dummy="$PATH"
1216   for ac_dir in $ac_dummy; do
1217     test -z "$ac_dir" && ac_dir=.
1218     if test -f $ac_dir/$ac_word; then
1219       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1220         ac_prog_rejected=yes
1221         continue
1222       fi
1223       ac_cv_prog_CC="cc"
1224       break
1225     fi
1226   done
1227   IFS="$ac_save_ifs"
1228 if test $ac_prog_rejected = yes; then
1229   # We found a bogon in the path, so make sure we never use it.
1230   set dummy $ac_cv_prog_CC
1231   shift
1232   if test $# -gt 0; then
1233     # We chose a different compiler from the bogus one.
1234     # However, it has the same basename, so the bogon will be chosen
1235     # first if we set CC to just the basename; use the full file name.
1236     shift
1237     set dummy "$ac_dir/$ac_word" "$@"
1238     shift
1239     ac_cv_prog_CC="$@"
1240   fi
1241 fi
1242 fi
1243 fi
1244 CC="$ac_cv_prog_CC"
1245 if test -n "$CC"; then
1246   echo "$ac_t""$CC" 1>&6
1247 else
1248   echo "$ac_t""no" 1>&6
1249 fi
1250
1251     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1252   fi
1253
1254   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1255 echo "configure:1256: checking whether we are using GNU C" >&5
1256 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1257   echo $ac_n "(cached) $ac_c" 1>&6
1258 else
1259   cat > conftest.c <<EOF
1260 #ifdef __GNUC__
1261   yes;
1262 #endif
1263 EOF
1264 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1265   ac_cv_prog_gcc=yes
1266 else
1267   ac_cv_prog_gcc=no
1268 fi
1269 fi
1270
1271 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1272
1273   if test $ac_cv_prog_gcc = yes; then
1274     GCC=yes
1275           ac_test_CFLAGS="${CFLAGS+set}"
1276     ac_save_CFLAGS="$CFLAGS"
1277     CFLAGS=
1278     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1279 echo "configure:1280: checking whether ${CC-cc} accepts -g" >&5
1280 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1281   echo $ac_n "(cached) $ac_c" 1>&6
1282 else
1283   echo 'void f(){}' > conftest.c
1284 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1285   ac_cv_prog_cc_g=yes
1286 else
1287   ac_cv_prog_cc_g=no
1288 fi
1289 rm -f conftest*
1290
1291 fi
1292
1293 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1294     if test "$ac_test_CFLAGS" = set; then
1295       CFLAGS="$ac_save_CFLAGS"
1296     elif test $ac_cv_prog_cc_g = yes; then
1297       CFLAGS="-g -O2"
1298     else
1299       CFLAGS="-O2"
1300     fi
1301   else
1302     GCC=
1303     test "${CFLAGS+set}" = set || CFLAGS="-g"
1304   fi
1305   
1306
1307   # Likewise for AC_PROG_CXX.  We can't just call it directly because g++
1308   # will try to link in libstdc++.
1309   
1310
1311       
1312   # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1313   # flags that come in CXX while configuring libstdc++.  They're different
1314   # from those used for all other target libraries.  If CXX is set in
1315   # the environment, respect that here.
1316   glibcpp_CXX=$CXX
1317   for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1318 do
1319 # Extract the first word of "$ac_prog", so it can be a program name with args.
1320 set dummy $ac_prog; ac_word=$2
1321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1322 echo "configure:1323: checking for $ac_word" >&5
1323 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1324   echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326   if test -n "$glibcpp_CXX"; then
1327   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1328 else
1329   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1330   ac_dummy="$PATH"
1331   for ac_dir in $ac_dummy; do
1332     test -z "$ac_dir" && ac_dir=.
1333     if test -f $ac_dir/$ac_word; then
1334       ac_cv_prog_glibcpp_CXX="$ac_prog"
1335       break
1336     fi
1337   done
1338   IFS="$ac_save_ifs"
1339 fi
1340 fi
1341 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1342 if test -n "$glibcpp_CXX"; then
1343   echo "$ac_t""$glibcpp_CXX" 1>&6
1344 else
1345   echo "$ac_t""no" 1>&6
1346 fi
1347
1348 test -n "$glibcpp_CXX" && break
1349 done
1350 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1351
1352   
1353   CXX=$glibcpp_CXX
1354   test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1355
1356   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1357 echo "configure:1358: checking whether we are using GNU C++" >&5
1358 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1359   echo $ac_n "(cached) $ac_c" 1>&6
1360 else
1361   cat > conftest.C <<EOF
1362 #ifdef __GNUC__
1363   yes;
1364 #endif
1365 EOF
1366 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1367   ac_cv_prog_gxx=yes
1368 else
1369   ac_cv_prog_gxx=no
1370 fi
1371 fi
1372
1373 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1374
1375   if test $ac_cv_prog_gxx = yes; then
1376     GXX=yes
1377                 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1378     ac_save_CXXFLAGS="$CXXFLAGS"
1379     CXXFLAGS=
1380     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1381 echo "configure:1382: checking whether ${CXX-g++} accepts -g" >&5
1382 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1383   echo $ac_n "(cached) $ac_c" 1>&6
1384 else
1385   echo 'void f(){}' > conftest.cc
1386 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1387   ac_cv_prog_cxx_g=yes
1388 else
1389   ac_cv_prog_cxx_g=no
1390 fi
1391 rm -f conftest*
1392
1393 fi
1394
1395 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1396     if test "$ac_test_CXXFLAGS" = set; then
1397       CXXFLAGS="$ac_save_CXXFLAGS"
1398     elif test $ac_cv_prog_cxx_g = yes; then
1399       CXXFLAGS="-g -O2"
1400     else
1401       CXXFLAGS="-O2"
1402     fi
1403   else
1404     GXX=
1405     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1406   fi
1407   
1408
1409   # For some reason, gettext needs this.
1410   
1411         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1412 echo "configure:1413: checking for strerror in -lcposix" >&5
1413 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1414 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1415   echo $ac_n "(cached) $ac_c" 1>&6
1416 else
1417   ac_save_LIBS="$LIBS"
1418 LIBS="-lcposix  $LIBS"
1419 cat > conftest.$ac_ext <<EOF
1420 #line 1421 "configure"
1421 #include "confdefs.h"
1422 /* Override any gcc2 internal prototype to avoid an error.  */
1423 /* We use char because int might match the return type of a gcc2
1424     builtin and then its argument prototype would still apply.  */
1425 char strerror();
1426
1427 int main() {
1428 strerror()
1429 ; return 0; }
1430 EOF
1431 if { (eval echo configure:1432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1432   rm -rf conftest*
1433   eval "ac_cv_lib_$ac_lib_var=yes"
1434 else
1435   echo "configure: failed program was:" >&5
1436   cat conftest.$ac_ext >&5
1437   rm -rf conftest*
1438   eval "ac_cv_lib_$ac_lib_var=no"
1439 fi
1440 rm -f conftest*
1441 LIBS="$ac_save_LIBS"
1442
1443 fi
1444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1445   echo "$ac_t""yes" 1>&6
1446   LIBS="$LIBS -lcposix"
1447 else
1448   echo "$ac_t""no" 1>&6
1449 fi
1450
1451   
1452
1453
1454   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1455 set dummy ${ac_tool_prefix}as; ac_word=$2
1456 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1457 echo "configure:1458: checking for $ac_word" >&5
1458 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1459   echo $ac_n "(cached) $ac_c" 1>&6
1460 else
1461   if test -n "$AS"; then
1462   ac_cv_prog_AS="$AS" # Let the user override the test.
1463 else
1464   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1465   ac_dummy="$PATH"
1466   for ac_dir in $ac_dummy; do
1467     test -z "$ac_dir" && ac_dir=.
1468     if test -f $ac_dir/$ac_word; then
1469       ac_cv_prog_AS="${ac_tool_prefix}as"
1470       break
1471     fi
1472   done
1473   IFS="$ac_save_ifs"
1474   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1475 fi
1476 fi
1477 AS="$ac_cv_prog_AS"
1478 if test -n "$AS"; then
1479   echo "$ac_t""$AS" 1>&6
1480 else
1481   echo "$ac_t""no" 1>&6
1482 fi
1483
1484
1485
1486   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1487 set dummy ${ac_tool_prefix}ar; ac_word=$2
1488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1489 echo "configure:1490: checking for $ac_word" >&5
1490 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1491   echo $ac_n "(cached) $ac_c" 1>&6
1492 else
1493   if test -n "$AR"; then
1494   ac_cv_prog_AR="$AR" # Let the user override the test.
1495 else
1496   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1497   ac_dummy="$PATH"
1498   for ac_dir in $ac_dummy; do
1499     test -z "$ac_dir" && ac_dir=.
1500     if test -f $ac_dir/$ac_word; then
1501       ac_cv_prog_AR="${ac_tool_prefix}ar"
1502       break
1503     fi
1504   done
1505   IFS="$ac_save_ifs"
1506   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1507 fi
1508 fi
1509 AR="$ac_cv_prog_AR"
1510 if test -n "$AR"; then
1511   echo "$ac_t""$AR" 1>&6
1512 else
1513   echo "$ac_t""no" 1>&6
1514 fi
1515
1516
1517
1518   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1519 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1520 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1521 echo "configure:1522: checking for $ac_word" >&5
1522 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1523   echo $ac_n "(cached) $ac_c" 1>&6
1524 else
1525   if test -n "$RANLIB"; then
1526   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1527 else
1528   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1529   ac_dummy="$PATH"
1530   for ac_dir in $ac_dummy; do
1531     test -z "$ac_dir" && ac_dir=.
1532     if test -f $ac_dir/$ac_word; then
1533       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1534       break
1535     fi
1536   done
1537   IFS="$ac_save_ifs"
1538 fi
1539 fi
1540 RANLIB="$ac_cv_prog_RANLIB"
1541 if test -n "$RANLIB"; then
1542   echo "$ac_t""$RANLIB" 1>&6
1543 else
1544   echo "$ac_t""no" 1>&6
1545 fi
1546
1547
1548 if test -z "$ac_cv_prog_RANLIB"; then
1549 if test -n "$ac_tool_prefix"; then
1550   # Extract the first word of "ranlib", so it can be a program name with args.
1551 set dummy ranlib; ac_word=$2
1552 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1553 echo "configure:1554: checking for $ac_word" >&5
1554 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1555   echo $ac_n "(cached) $ac_c" 1>&6
1556 else
1557   if test -n "$RANLIB"; then
1558   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1559 else
1560   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1561   ac_dummy="$PATH"
1562   for ac_dir in $ac_dummy; do
1563     test -z "$ac_dir" && ac_dir=.
1564     if test -f $ac_dir/$ac_word; then
1565       ac_cv_prog_RANLIB="ranlib"
1566       break
1567     fi
1568   done
1569   IFS="$ac_save_ifs"
1570   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1571 fi
1572 fi
1573 RANLIB="$ac_cv_prog_RANLIB"
1574 if test -n "$RANLIB"; then
1575   echo "$ac_t""$RANLIB" 1>&6
1576 else
1577   echo "$ac_t""no" 1>&6
1578 fi
1579
1580 else
1581   RANLIB="ranlib-not-found-in-path-error"
1582 fi
1583 fi
1584
1585   # Find a good install program.  We prefer a C program (faster),
1586 # so one script is as good as another.  But avoid the broken or
1587 # incompatible versions:
1588 # SysV /etc/install, /usr/sbin/install
1589 # SunOS /usr/etc/install
1590 # IRIX /sbin/install
1591 # AIX /bin/install
1592 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1593 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1594 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1595 # ./install, which can be erroneously created by make from ./install.sh.
1596 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1597 echo "configure:1598: checking for a BSD compatible install" >&5
1598 if test -z "$INSTALL"; then
1599 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1600   echo $ac_n "(cached) $ac_c" 1>&6
1601 else
1602     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1603   for ac_dir in $PATH; do
1604     # Account for people who put trailing slashes in PATH elements.
1605     case "$ac_dir/" in
1606     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1607     *)
1608       # OSF1 and SCO ODT 3.0 have their own names for install.
1609       # Don't use installbsd from OSF since it installs stuff as root
1610       # by default.
1611       for ac_prog in ginstall scoinst install; do
1612         if test -f $ac_dir/$ac_prog; then
1613           if test $ac_prog = install &&
1614             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1615             # AIX install.  It has an incompatible calling convention.
1616             :
1617           else
1618             ac_cv_path_install="$ac_dir/$ac_prog -c"
1619             break 2
1620           fi
1621         fi
1622       done
1623       ;;
1624     esac
1625   done
1626   IFS="$ac_save_IFS"
1627
1628 fi
1629   if test "${ac_cv_path_install+set}" = set; then
1630     INSTALL="$ac_cv_path_install"
1631   else
1632     # As a last resort, use the slow shell script.  We don't cache a
1633     # path for INSTALL within a source directory, because that will
1634     # break other packages using the cache if that directory is
1635     # removed, or if the path is relative.
1636     INSTALL="$ac_install_sh"
1637   fi
1638 fi
1639 echo "$ac_t""$INSTALL" 1>&6
1640
1641 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1642 # It thinks the first close brace ends the variable substitution.
1643 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1644
1645 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1646
1647 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1648
1649
1650   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1651 echo "configure:1652: checking whether to enable maintainer-specific portions of Makefiles" >&5
1652     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1653 if test "${enable_maintainer_mode+set}" = set; then
1654   enableval="$enable_maintainer_mode"
1655   USE_MAINTAINER_MODE=$enableval
1656 else
1657   USE_MAINTAINER_MODE=no
1658 fi
1659
1660   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1661   
1662
1663 if test $USE_MAINTAINER_MODE = yes; then
1664   MAINTAINER_MODE_TRUE=
1665   MAINTAINER_MODE_FALSE='#'
1666 else
1667   MAINTAINER_MODE_TRUE='#'
1668   MAINTAINER_MODE_FALSE=
1669 fi
1670   MAINT=$MAINTAINER_MODE_TRUE
1671   
1672
1673
1674   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1675   # at least currently, we never actually build a program, so we never
1676   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1677   # fails, because we are probably configuring with a cross compiler
1678   # which can't create executables.  So we include AC_EXEEXT to keep
1679   # automake happy, but we don't execute it, since we don't care about
1680   # the result.
1681   if false; then
1682     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1683     # to nothing, so nothing would remain between `then' and `fi' if it
1684     # were not for the `:' below.
1685     :
1686     
1687
1688 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1689 echo "configure:1690: checking for executable suffix" >&5
1690 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1691   echo $ac_n "(cached) $ac_c" 1>&6
1692 else
1693   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1694   ac_cv_exeext=.exe
1695 else
1696   rm -f conftest*
1697   echo 'int main () { return 0; }' > conftest.$ac_ext
1698   ac_cv_exeext=
1699   if { (eval echo configure:1700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1700     for file in conftest.*; do
1701       case $file in
1702       *.c | *.o | *.obj) ;;
1703       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1704       esac
1705     done
1706   else
1707     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1708   fi
1709   rm -f conftest*
1710   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1711 fi
1712 fi
1713
1714 EXEEXT=""
1715 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1716 echo "$ac_t""${ac_cv_exeext}" 1>&6
1717 ac_exeext=$EXEEXT
1718
1719   fi
1720
1721   . ${glibcpp_basedir}/configure.host
1722
1723   case ${glibcpp_basedir} in
1724     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1725     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1726   esac
1727
1728   # This does for the target what configure.host does for the host.  In
1729   # addition to possibly modifying the same flags, it also sets up symlinks.
1730   
1731     . ${glibcpp_basedir}/configure.target
1732     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1733     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1734
1735
1736
1737
1738
1739 # Check whether --enable-shared or --disable-shared was given.
1740 if test "${enable_shared+set}" = set; then
1741   enableval="$enable_shared"
1742   p=${PACKAGE-default}
1743 case $enableval in
1744 yes) enable_shared=yes ;;
1745 no) enable_shared=no ;;
1746 *)
1747   enable_shared=no
1748   # Look at the argument we got.  We use all the common list separators.
1749   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1750   for pkg in $enableval; do
1751     if test "X$pkg" = "X$p"; then
1752       enable_shared=yes
1753     fi
1754   done
1755   IFS="$ac_save_ifs"
1756   ;;
1757 esac
1758 else
1759   enable_shared=yes
1760 fi
1761
1762 # Check whether --enable-static or --disable-static was given.
1763 if test "${enable_static+set}" = set; then
1764   enableval="$enable_static"
1765   p=${PACKAGE-default}
1766 case $enableval in
1767 yes) enable_static=yes ;;
1768 no) enable_static=no ;;
1769 *)
1770   enable_static=no
1771   # Look at the argument we got.  We use all the common list separators.
1772   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1773   for pkg in $enableval; do
1774     if test "X$pkg" = "X$p"; then
1775       enable_static=yes
1776     fi
1777   done
1778   IFS="$ac_save_ifs"
1779   ;;
1780 esac
1781 else
1782   enable_static=yes
1783 fi
1784
1785 # Check whether --enable-fast-install or --disable-fast-install was given.
1786 if test "${enable_fast_install+set}" = set; then
1787   enableval="$enable_fast_install"
1788   p=${PACKAGE-default}
1789 case $enableval in
1790 yes) enable_fast_install=yes ;;
1791 no) enable_fast_install=no ;;
1792 *)
1793   enable_fast_install=no
1794   # Look at the argument we got.  We use all the common list separators.
1795   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1796   for pkg in $enableval; do
1797     if test "X$pkg" = "X$p"; then
1798       enable_fast_install=yes
1799     fi
1800   done
1801   IFS="$ac_save_ifs"
1802   ;;
1803 esac
1804 else
1805   enable_fast_install=yes
1806 fi
1807
1808 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1809 if test "${with_gnu_ld+set}" = set; then
1810   withval="$with_gnu_ld"
1811   test "$withval" = no || with_gnu_ld=yes
1812 else
1813   with_gnu_ld=no
1814 fi
1815
1816 ac_prog=ld
1817 if test "$GCC" = yes; then
1818   # Check if gcc -print-prog-name=ld gives a path.
1819   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1820 echo "configure:1821: checking for ld used by GCC" >&5
1821   case $host in
1822   *-*-mingw*)
1823     # gcc leaves a trailing carriage return which upsets mingw
1824     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1825   *)
1826     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1827   esac
1828   case $ac_prog in
1829     # Accept absolute paths.
1830     [\\/]* | [A-Za-z]:[\\/]*)
1831       re_direlt='/[^/][^/]*/\.\./'
1832       # Canonicalize the path of ld
1833       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1834       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1835         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1836       done
1837       test -z "$LD" && LD="$ac_prog"
1838       ;;
1839   "")
1840     # If it fails, then pretend we aren't using GCC.
1841     ac_prog=ld
1842     ;;
1843   *)
1844     # If it is relative, then search for the first ld in PATH.
1845     with_gnu_ld=unknown
1846     ;;
1847   esac
1848 elif test "$with_gnu_ld" = yes; then
1849   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1850 echo "configure:1851: checking for GNU ld" >&5
1851 else
1852   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1853 echo "configure:1854: checking for non-GNU ld" >&5
1854 fi
1855 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1856   echo $ac_n "(cached) $ac_c" 1>&6
1857 else
1858   if test -z "$LD"; then
1859   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1860   for ac_dir in $PATH; do
1861     test -z "$ac_dir" && ac_dir=.
1862     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1863       lt_cv_path_LD="$ac_dir/$ac_prog"
1864       # Check to see if the program is GNU ld.  I'd rather use --version,
1865       # but apparently some GNU ld's only accept -v.
1866       # Break only if it was the GNU/non-GNU ld that we prefer.
1867       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1868         test "$with_gnu_ld" != no && break
1869       else
1870         test "$with_gnu_ld" != yes && break
1871       fi
1872     fi
1873   done
1874   IFS="$ac_save_ifs"
1875 else
1876   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1877 fi
1878 fi
1879
1880 LD="$lt_cv_path_LD"
1881 if test -n "$LD"; then
1882   echo "$ac_t""$LD" 1>&6
1883 else
1884   echo "$ac_t""no" 1>&6
1885 fi
1886 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1887 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1888 echo "configure:1889: checking if the linker ($LD) is GNU ld" >&5
1889 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1890   echo $ac_n "(cached) $ac_c" 1>&6
1891 else
1892   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1893 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1894   lt_cv_prog_gnu_ld=yes
1895 else
1896   lt_cv_prog_gnu_ld=no
1897 fi
1898 fi
1899
1900 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1901 with_gnu_ld=$lt_cv_prog_gnu_ld
1902
1903
1904 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1905 echo "configure:1906: checking for $LD option to reload object files" >&5
1906 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1907   echo $ac_n "(cached) $ac_c" 1>&6
1908 else
1909   lt_cv_ld_reload_flag='-r'
1910 fi
1911
1912 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1913 reload_flag=$lt_cv_ld_reload_flag
1914 test -n "$reload_flag" && reload_flag=" $reload_flag"
1915
1916 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1917 echo "configure:1918: checking for BSD-compatible nm" >&5
1918 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1919   echo $ac_n "(cached) $ac_c" 1>&6
1920 else
1921   if test -n "$NM"; then
1922   # Let the user override the test.
1923   lt_cv_path_NM="$NM"
1924 else
1925   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1926   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1927     test -z "$ac_dir" && ac_dir=.
1928     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1929     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1930       # Check to see if the nm accepts a BSD-compat flag.
1931       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1932       #   nm: unknown option "B" ignored
1933       # Tru64's nm complains that /dev/null is an invalid object file
1934       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1935         lt_cv_path_NM="$tmp_nm -B"
1936         break
1937       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1938         lt_cv_path_NM="$tmp_nm -p"
1939         break
1940       else
1941         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1942         continue # so that we can try to find one that supports BSD flags
1943       fi
1944     fi
1945   done
1946   IFS="$ac_save_ifs"
1947   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1948 fi
1949 fi
1950
1951 NM="$lt_cv_path_NM"
1952 echo "$ac_t""$NM" 1>&6
1953
1954 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1955 echo "configure:1956: checking how to recognise dependant libraries" >&5
1956 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1957   echo $ac_n "(cached) $ac_c" 1>&6
1958 else
1959   lt_cv_file_magic_cmd='$MAGIC_CMD'
1960 lt_cv_file_magic_test_file=
1961 lt_cv_deplibs_check_method='unknown'
1962 # Need to set the preceding variable on all platforms that support
1963 # interlibrary dependencies.
1964 # 'none' -- dependencies not supported.
1965 # `unknown' -- same as none, but documents that we really don't know.
1966 # 'pass_all' -- all dependencies passed with no checks.
1967 # 'test_compile' -- check by making test program.
1968 # 'file_magic [regex]' -- check by looking for files in library path
1969 # which responds to the $file_magic_cmd with a given egrep regex.
1970 # If you have `file' or equivalent on your system and you're not sure
1971 # whether `pass_all' will *always* work, you probably want this one.
1972
1973 case $host_os in
1974 aix*)
1975   lt_cv_deplibs_check_method=pass_all
1976   ;;
1977
1978 beos*)
1979   lt_cv_deplibs_check_method=pass_all
1980   ;;
1981
1982 bsdi4*)
1983   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1984   lt_cv_file_magic_cmd='/usr/bin/file -L'
1985   lt_cv_file_magic_test_file=/shlib/libc.so
1986   ;;
1987
1988 cygwin* | mingw* |pw32*)
1989   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1990   lt_cv_file_magic_cmd='$OBJDUMP -f'
1991   ;;
1992
1993 darwin* | rhapsody*)
1994   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1995   lt_cv_file_magic_cmd='/usr/bin/file -L'
1996   case "$host_os" in
1997   rhapsody* | darwin1.012)
1998     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1999     ;;
2000   *) # Darwin 1.3 on
2001     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2002     ;;
2003   esac
2004   ;;
2005
2006 freebsd* )
2007   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2008     case $host_cpu in
2009     i*86 )
2010       # Not sure whether the presence of OpenBSD here was a mistake.
2011       # Let's accept both of them until this is cleared up.
2012       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2013       lt_cv_file_magic_cmd=/usr/bin/file
2014       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2015       ;;
2016     esac
2017   else
2018     lt_cv_deplibs_check_method=pass_all
2019   fi
2020   ;;
2021
2022 gnu*)
2023   lt_cv_deplibs_check_method=pass_all
2024   ;;
2025
2026 hpux10.20*|hpux11*)
2027   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2028   lt_cv_file_magic_cmd=/usr/bin/file
2029   lt_cv_file_magic_test_file=/usr/lib/libc.sl
2030   ;;
2031
2032 irix5* | irix6*)
2033   case $host_os in
2034   irix5*)
2035     # this will be overridden with pass_all, but let us keep it just in case
2036     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2037     ;;
2038   *)
2039     case $LD in
2040     *-32|*"-32 ") libmagic=32-bit;;
2041     *-n32|*"-n32 ") libmagic=N32;;
2042     *-64|*"-64 ") libmagic=64-bit;;
2043     *) libmagic=never-match;;
2044     esac
2045     # this will be overridden with pass_all, but let us keep it just in case
2046     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2047     ;;
2048   esac
2049   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2050   lt_cv_deplibs_check_method=pass_all
2051   ;;
2052
2053 # This must be Linux ELF.
2054 linux-gnu*)
2055   case $host_cpu in
2056   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2057     lt_cv_deplibs_check_method=pass_all ;;
2058   *)
2059     # glibc up to 2.1.1 does not perform some relocations on ARM
2060     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2061   esac
2062   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2063   ;;
2064
2065 netbsd*)
2066   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2067     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2068   else
2069     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2070   fi
2071   ;;
2072
2073 newsos6)
2074   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2075   lt_cv_file_magic_cmd=/usr/bin/file
2076   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2077   ;;
2078
2079 osf3* | osf4* | osf5*)
2080   # this will be overridden with pass_all, but let us keep it just in case
2081   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2082   lt_cv_file_magic_test_file=/shlib/libc.so
2083   lt_cv_deplibs_check_method=pass_all
2084   ;;
2085
2086 sco3.2v5*)
2087   lt_cv_deplibs_check_method=pass_all
2088   ;;
2089
2090 solaris*)
2091   lt_cv_deplibs_check_method=pass_all
2092   lt_cv_file_magic_test_file=/lib/libc.so
2093   ;;
2094
2095 sysv5uw[78]* | sysv4*uw2*)
2096   lt_cv_deplibs_check_method=pass_all
2097   ;;
2098
2099 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2100   case $host_vendor in
2101   ncr)
2102     lt_cv_deplibs_check_method=pass_all
2103     ;;
2104   motorola)
2105     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]'
2106     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2107     ;;
2108   esac
2109   ;;
2110 esac
2111
2112 fi
2113
2114 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2115 file_magic_cmd=$lt_cv_file_magic_cmd
2116 deplibs_check_method=$lt_cv_deplibs_check_method
2117
2118 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2119 echo "configure:2120: checking for object suffix" >&5
2120 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2121   echo $ac_n "(cached) $ac_c" 1>&6
2122 else
2123   rm -f conftest*
2124 echo 'int i = 1;' > conftest.$ac_ext
2125 if { (eval echo configure:2126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2126   for ac_file in conftest.*; do
2127     case $ac_file in
2128     *.c) ;;
2129     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2130     esac
2131   done
2132 else
2133   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2134 fi
2135 rm -f conftest*
2136 fi
2137
2138 echo "$ac_t""$ac_cv_objext" 1>&6
2139 OBJEXT=$ac_cv_objext
2140 ac_objext=$ac_cv_objext
2141
2142 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2143
2144 # Only perform the check for file, if the check method requires it
2145 case $deplibs_check_method in
2146 file_magic*)
2147   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2148     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2149 echo "configure:2150: checking for ${ac_tool_prefix}file" >&5
2150 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2151   echo $ac_n "(cached) $ac_c" 1>&6
2152 else
2153   case $MAGIC_CMD in
2154   /*)
2155   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2156   ;;
2157   ?:/*)
2158   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2159   ;;
2160   *)
2161   ac_save_MAGIC_CMD="$MAGIC_CMD"
2162   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2163   ac_dummy="/usr/bin:$PATH"
2164   for ac_dir in $ac_dummy; do
2165     test -z "$ac_dir" && ac_dir=.
2166     if test -f $ac_dir/${ac_tool_prefix}file; then
2167       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2168       if test -n "$file_magic_test_file"; then
2169         case $deplibs_check_method in
2170         "file_magic "*)
2171           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2172           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2173           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2174             egrep "$file_magic_regex" > /dev/null; then
2175             :
2176           else
2177             cat <<EOF 1>&2
2178
2179 *** Warning: the command libtool uses to detect shared libraries,
2180 *** $file_magic_cmd, produces output that libtool cannot recognize.
2181 *** The result is that libtool may fail to recognize shared libraries
2182 *** as such.  This will affect the creation of libtool libraries that
2183 *** depend on shared libraries, but programs linked with such libtool
2184 *** libraries will work regardless of this problem.  Nevertheless, you
2185 *** may want to report the problem to your system manager and/or to
2186 *** bug-libtool@gnu.org
2187
2188 EOF
2189           fi ;;
2190         esac
2191       fi
2192       break
2193     fi
2194   done
2195   IFS="$ac_save_ifs"
2196   MAGIC_CMD="$ac_save_MAGIC_CMD"
2197   ;;
2198 esac
2199 fi
2200
2201 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2202 if test -n "$MAGIC_CMD"; then
2203   echo "$ac_t""$MAGIC_CMD" 1>&6
2204 else
2205   echo "$ac_t""no" 1>&6
2206 fi
2207
2208 if test -z "$lt_cv_path_MAGIC_CMD"; then
2209   if test -n "$ac_tool_prefix"; then
2210     echo $ac_n "checking for file""... $ac_c" 1>&6
2211 echo "configure:2212: checking for file" >&5
2212 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2213   echo $ac_n "(cached) $ac_c" 1>&6
2214 else
2215   case $MAGIC_CMD in
2216   /*)
2217   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2218   ;;
2219   ?:/*)
2220   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2221   ;;
2222   *)
2223   ac_save_MAGIC_CMD="$MAGIC_CMD"
2224   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2225   ac_dummy="/usr/bin:$PATH"
2226   for ac_dir in $ac_dummy; do
2227     test -z "$ac_dir" && ac_dir=.
2228     if test -f $ac_dir/file; then
2229       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2230       if test -n "$file_magic_test_file"; then
2231         case $deplibs_check_method in
2232         "file_magic "*)
2233           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2234           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2235           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2236             egrep "$file_magic_regex" > /dev/null; then
2237             :
2238           else
2239             cat <<EOF 1>&2
2240
2241 *** Warning: the command libtool uses to detect shared libraries,
2242 *** $file_magic_cmd, produces output that libtool cannot recognize.
2243 *** The result is that libtool may fail to recognize shared libraries
2244 *** as such.  This will affect the creation of libtool libraries that
2245 *** depend on shared libraries, but programs linked with such libtool
2246 *** libraries will work regardless of this problem.  Nevertheless, you
2247 *** may want to report the problem to your system manager and/or to
2248 *** bug-libtool@gnu.org
2249
2250 EOF
2251           fi ;;
2252         esac
2253       fi
2254       break
2255     fi
2256   done
2257   IFS="$ac_save_ifs"
2258   MAGIC_CMD="$ac_save_MAGIC_CMD"
2259   ;;
2260 esac
2261 fi
2262
2263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2264 if test -n "$MAGIC_CMD"; then
2265   echo "$ac_t""$MAGIC_CMD" 1>&6
2266 else
2267   echo "$ac_t""no" 1>&6
2268 fi
2269
2270   else
2271     MAGIC_CMD=:
2272   fi
2273 fi
2274
2275   fi
2276   ;;
2277 esac
2278
2279 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2280 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2281 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2282 echo "configure:2283: checking for $ac_word" >&5
2283 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2284   echo $ac_n "(cached) $ac_c" 1>&6
2285 else
2286   if test -n "$RANLIB"; then
2287   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2288 else
2289   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2290   ac_dummy="$PATH"
2291   for ac_dir in $ac_dummy; do
2292     test -z "$ac_dir" && ac_dir=.
2293     if test -f $ac_dir/$ac_word; then
2294       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2295       break
2296     fi
2297   done
2298   IFS="$ac_save_ifs"
2299 fi
2300 fi
2301 RANLIB="$ac_cv_prog_RANLIB"
2302 if test -n "$RANLIB"; then
2303   echo "$ac_t""$RANLIB" 1>&6
2304 else
2305   echo "$ac_t""no" 1>&6
2306 fi
2307
2308
2309 if test -z "$ac_cv_prog_RANLIB"; then
2310 if test -n "$ac_tool_prefix"; then
2311   # Extract the first word of "ranlib", so it can be a program name with args.
2312 set dummy ranlib; ac_word=$2
2313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2314 echo "configure:2315: checking for $ac_word" >&5
2315 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2316   echo $ac_n "(cached) $ac_c" 1>&6
2317 else
2318   if test -n "$RANLIB"; then
2319   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2320 else
2321   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2322   ac_dummy="$PATH"
2323   for ac_dir in $ac_dummy; do
2324     test -z "$ac_dir" && ac_dir=.
2325     if test -f $ac_dir/$ac_word; then
2326       ac_cv_prog_RANLIB="ranlib"
2327       break
2328     fi
2329   done
2330   IFS="$ac_save_ifs"
2331   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2332 fi
2333 fi
2334 RANLIB="$ac_cv_prog_RANLIB"
2335 if test -n "$RANLIB"; then
2336   echo "$ac_t""$RANLIB" 1>&6
2337 else
2338   echo "$ac_t""no" 1>&6
2339 fi
2340
2341 else
2342   RANLIB=":"
2343 fi
2344 fi
2345
2346 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2347 set dummy ${ac_tool_prefix}strip; ac_word=$2
2348 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2349 echo "configure:2350: checking for $ac_word" >&5
2350 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2351   echo $ac_n "(cached) $ac_c" 1>&6
2352 else
2353   if test -n "$STRIP"; then
2354   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2355 else
2356   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2357   ac_dummy="$PATH"
2358   for ac_dir in $ac_dummy; do
2359     test -z "$ac_dir" && ac_dir=.
2360     if test -f $ac_dir/$ac_word; then
2361       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2362       break
2363     fi
2364   done
2365   IFS="$ac_save_ifs"
2366 fi
2367 fi
2368 STRIP="$ac_cv_prog_STRIP"
2369 if test -n "$STRIP"; then
2370   echo "$ac_t""$STRIP" 1>&6
2371 else
2372   echo "$ac_t""no" 1>&6
2373 fi
2374
2375
2376 if test -z "$ac_cv_prog_STRIP"; then
2377 if test -n "$ac_tool_prefix"; then
2378   # Extract the first word of "strip", so it can be a program name with args.
2379 set dummy strip; ac_word=$2
2380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2381 echo "configure:2382: checking for $ac_word" >&5
2382 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2383   echo $ac_n "(cached) $ac_c" 1>&6
2384 else
2385   if test -n "$STRIP"; then
2386   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2387 else
2388   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2389   ac_dummy="$PATH"
2390   for ac_dir in $ac_dummy; do
2391     test -z "$ac_dir" && ac_dir=.
2392     if test -f $ac_dir/$ac_word; then
2393       ac_cv_prog_STRIP="strip"
2394       break
2395     fi
2396   done
2397   IFS="$ac_save_ifs"
2398   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2399 fi
2400 fi
2401 STRIP="$ac_cv_prog_STRIP"
2402 if test -n "$STRIP"; then
2403   echo "$ac_t""$STRIP" 1>&6
2404 else
2405   echo "$ac_t""no" 1>&6
2406 fi
2407
2408 else
2409   STRIP=":"
2410 fi
2411 fi
2412
2413
2414 # Check for any special flags to pass to ltconfig.
2415 libtool_flags="--cache-file=$cache_file"
2416 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2417 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2418 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2419 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2420 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2421 libtool_flags="$libtool_flags --enable-dlopen"
2422
2423 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2424 if test "${enable_libtool_lock+set}" = set; then
2425   enableval="$enable_libtool_lock"
2426   :
2427 fi
2428
2429 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2430 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2431
2432 # Check whether --with-pic or --without-pic was given.
2433 if test "${with_pic+set}" = set; then
2434   withval="$with_pic"
2435   pic_mode="$withval"
2436 else
2437   pic_mode=default
2438 fi
2439
2440 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2441 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2442
2443 # Some flags need to be propagated to the compiler or linker for good
2444 # libtool support.
2445 case $host in
2446 *-*-irix6*)
2447   # Find out which ABI we are using.
2448   echo '#line 2449 "configure"' > conftest.$ac_ext
2449   if { (eval echo configure:2450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2450     case `/usr/bin/file conftest.$ac_objext` in
2451     *32-bit*)
2452       LD="${LD-ld} -32"
2453       ;;
2454     *N32*)
2455       LD="${LD-ld} -n32"
2456       ;;
2457     *64-bit*)
2458       LD="${LD-ld} -64"
2459       ;;
2460     esac
2461   fi
2462   rm -rf conftest*
2463   ;;
2464
2465 *-*-sco3.2v5*)
2466   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2467   SAVE_CFLAGS="$CFLAGS"
2468   CFLAGS="$CFLAGS -belf"
2469   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2470 echo "configure:2471: checking whether the C compiler needs -belf" >&5
2471 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2472   echo $ac_n "(cached) $ac_c" 1>&6
2473 else
2474   
2475      ac_ext=c
2476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2477 ac_cpp='$CPP $CPPFLAGS'
2478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2480 cross_compiling=$ac_cv_prog_cc_cross
2481
2482      cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2485
2486 int main() {
2487
2488 ; return 0; }
2489 EOF
2490 if { (eval echo configure:2491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2491   rm -rf conftest*
2492   lt_cv_cc_needs_belf=yes
2493 else
2494   echo "configure: failed program was:" >&5
2495   cat conftest.$ac_ext >&5
2496   rm -rf conftest*
2497   lt_cv_cc_needs_belf=no
2498 fi
2499 rm -f conftest*
2500      ac_ext=c
2501 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2502 ac_cpp='$CPP $CPPFLAGS'
2503 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2504 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2505 cross_compiling=$ac_cv_prog_cc_cross
2506
2507 fi
2508
2509 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2510   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2511     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2512     CFLAGS="$SAVE_CFLAGS"
2513   fi
2514   ;;
2515
2516
2517 esac
2518
2519 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2520 echo "configure:2521: checking how to run the C++ preprocessor" >&5
2521 if test -z "$CXXCPP"; then
2522 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2523   echo $ac_n "(cached) $ac_c" 1>&6
2524 else
2525   ac_ext=C
2526 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2527 ac_cpp='$CXXCPP $CPPFLAGS'
2528 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2529 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2530 cross_compiling=$ac_cv_prog_cxx_cross
2531   CXXCPP="${CXX-g++} -E"
2532   cat > conftest.$ac_ext <<EOF
2533 #line 2534 "configure"
2534 #include "confdefs.h"
2535 #include <stdlib.h>
2536 EOF
2537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2538 { (eval echo configure:2539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2540 if test -z "$ac_err"; then
2541   :
2542 else
2543   echo "$ac_err" >&5
2544   echo "configure: failed program was:" >&5
2545   cat conftest.$ac_ext >&5
2546   rm -rf conftest*
2547   CXXCPP=/lib/cpp
2548 fi
2549 rm -f conftest*
2550   ac_cv_prog_CXXCPP="$CXXCPP"
2551 ac_ext=c
2552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2553 ac_cpp='$CPP $CPPFLAGS'
2554 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2555 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2556 cross_compiling=$ac_cv_prog_cc_cross
2557 fi
2558 fi
2559 CXXCPP="$ac_cv_prog_CXXCPP"
2560 echo "$ac_t""$CXXCPP" 1>&6
2561
2562
2563 # Save cache, so that ltconfig can load it
2564 cat > confcache <<\EOF
2565 # This file is a shell script that caches the results of configure
2566 # tests run on this system so they can be shared between configure
2567 # scripts and configure runs.  It is not useful on other systems.
2568 # If it contains results you don't want to keep, you may remove or edit it.
2569 #
2570 # By default, configure uses ./config.cache as the cache file,
2571 # creating it if it does not exist already.  You can give configure
2572 # the --cache-file=FILE option to use a different cache file; that is
2573 # what configure does when it calls configure scripts in
2574 # subdirectories, so they share the cache.
2575 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2576 # config.status only pays attention to the cache file if you give it the
2577 # --recheck option to rerun configure.
2578 #
2579 EOF
2580 # The following way of writing the cache mishandles newlines in values,
2581 # but we know of no workaround that is simple, portable, and efficient.
2582 # So, don't put newlines in cache variables' values.
2583 # Ultrix sh set writes to stderr and can't be redirected directly,
2584 # and sets the high bit in the cache file unless we assign to the vars.
2585 (set) 2>&1 |
2586   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2587   *ac_space=\ *)
2588     # `set' does not quote correctly, so add quotes (double-quote substitution
2589     # turns \\\\ into \\, and sed turns \\ into \).
2590     sed -n \
2591       -e "s/'/'\\\\''/g" \
2592       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2593     ;;
2594   *)
2595     # `set' quotes correctly as required by POSIX, so do not add quotes.
2596     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2597     ;;
2598   esac >> confcache
2599 if cmp -s $cache_file confcache; then
2600   :
2601 else
2602   if test -w $cache_file; then
2603     echo "updating cache $cache_file"
2604     cat confcache > $cache_file
2605   else
2606     echo "not updating unwritable cache $cache_file"
2607   fi
2608 fi
2609 rm -f confcache
2610
2611
2612 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2613 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2614 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2615 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2616 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2617 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2618 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2619 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2620 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2621 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2622
2623 # Reload cache, that may have been modified by ltconfig
2624 if test -r "$cache_file"; then
2625   echo "loading cache $cache_file"
2626   . $cache_file
2627 else
2628   echo "creating cache $cache_file"
2629   > $cache_file
2630 fi
2631
2632
2633 # This can be used to rebuild libtool when needed
2634 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2635
2636 # Always use our own libtool.
2637 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2638
2639 # Redirect the config.log output again, so that the ltconfig log is not
2640 # clobbered by the next message.
2641 exec 5>>./config.log
2642
2643
2644
2645 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2646 lt_save_CC="$CC"
2647 lt_save_CFLAGS="$CFLAGS"
2648 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2649 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2650 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2651 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2652 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2653 deplibs_check_method="$deplibs_check_method" \
2654 file_magic_cmd="$file_magic_cmd" \
2655 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2656 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2657 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2658 CC="$lt_save_CC"
2659 CFLAGS="$lt_save_CFLAGS"
2660
2661 # Redirect the config.log output again, so that the ltconfig log is not
2662 # clobbered by the next message.
2663 exec 5>>./config.log
2664
2665   
2666
2667   
2668          
2669          
2670
2671
2672
2673 # Check for c++ or library specific bits that don't require linking.
2674 #GLIBCPP_CHECK_COMPILER_VERSION
2675 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2676 echo "configure:2677: checking for GNU make" >&5
2677 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2678   echo $ac_n "(cached) $ac_c" 1>&6
2679 else
2680   _cv_gnu_make_command='' ;
2681           for a in "${MAKE-make}" make gmake gnumake ; do
2682                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2683                   then
2684                           _cv_gnu_make_command=$a ;
2685                           break;
2686                   fi
2687           done ;
2688   
2689 fi
2690
2691 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2692   if test  "x$_cv_gnu_make_command" != "x"  ; then
2693           ifGNUmake='' ;
2694   else
2695           ifGNUmake='#' ;
2696   fi
2697   
2698
2699
2700 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2701 # Check whether --enable-debug or --disable-debug was given.
2702 if test "${enable_debug+set}" = set; then
2703   enableval="$enable_debug"
2704   case "${enableval}" in
2705  yes) enable_debug=yes ;;
2706  no)  enable_debug=no ;;
2707  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2708  esac
2709 else
2710   enable_debug=no
2711 fi
2712
2713 case "${enable_debug}" in
2714     yes) 
2715         DEBUG_FLAGS='-O0 -ggdb3'                        
2716         ;; 
2717     no)   
2718         DEBUG_FLAGS='-g'
2719         ;;
2720 esac
2721
2722
2723 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2724 echo "configure:2725: checking how to run the C preprocessor" >&5
2725 # On Suns, sometimes $CPP names a directory.
2726 if test -n "$CPP" && test -d "$CPP"; then
2727   CPP=
2728 fi
2729 if test -z "$CPP"; then
2730 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2731   echo $ac_n "(cached) $ac_c" 1>&6
2732 else
2733     # This must be in double quotes, not single quotes, because CPP may get
2734   # substituted into the Makefile and "${CC-cc}" will confuse make.
2735   CPP="${CC-cc} -E"
2736   # On the NeXT, cc -E runs the code through the compiler's parser,
2737   # not just through cpp.
2738   cat > conftest.$ac_ext <<EOF
2739 #line 2740 "configure"
2740 #include "confdefs.h"
2741 #include <assert.h>
2742 Syntax Error
2743 EOF
2744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2745 { (eval echo configure:2746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2747 if test -z "$ac_err"; then
2748   :
2749 else
2750   echo "$ac_err" >&5
2751   echo "configure: failed program was:" >&5
2752   cat conftest.$ac_ext >&5
2753   rm -rf conftest*
2754   CPP="${CC-cc} -E -traditional-cpp"
2755   cat > conftest.$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2758 #include <assert.h>
2759 Syntax Error
2760 EOF
2761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2762 { (eval echo configure:2763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2764 if test -z "$ac_err"; then
2765   :
2766 else
2767   echo "$ac_err" >&5
2768   echo "configure: failed program was:" >&5
2769   cat conftest.$ac_ext >&5
2770   rm -rf conftest*
2771   CPP="${CC-cc} -nologo -E"
2772   cat > conftest.$ac_ext <<EOF
2773 #line 2774 "configure"
2774 #include "confdefs.h"
2775 #include <assert.h>
2776 Syntax Error
2777 EOF
2778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2779 { (eval echo configure:2780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2781 if test -z "$ac_err"; then
2782   :
2783 else
2784   echo "$ac_err" >&5
2785   echo "configure: failed program was:" >&5
2786   cat conftest.$ac_ext >&5
2787   rm -rf conftest*
2788   CPP=/lib/cpp
2789 fi
2790 rm -f conftest*
2791 fi
2792 rm -f conftest*
2793 fi
2794 rm -f conftest*
2795   ac_cv_prog_CPP="$CPP"
2796 fi
2797   CPP="$ac_cv_prog_CPP"
2798 else
2799   ac_cv_prog_CPP="$CPP"
2800 fi
2801 echo "$ac_t""$CPP" 1>&6
2802
2803
2804   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2805 echo "configure:2806: checking for cstdio to use" >&5
2806   # Check whether --enable-cstdio or --disable-cstdio was given.
2807 if test "${enable_cstdio+set}" = set; then
2808   enableval="$enable_cstdio"
2809   if test x$enable_cstdio = xno; then
2810      enable_cstdio=stdio
2811   fi
2812 else
2813   enable_cstdio=stdio
2814 fi
2815
2816
2817   enable_cstdio_flag=$enable_cstdio
2818
2819     case x${enable_cstdio_flag} in
2820     xlibio)
2821       CSTDIO_H=config/io/c_io_libio.h
2822       BASIC_FILE_H=config/io/basic_file_libio.h
2823       BASIC_FILE_CC=config/io/basic_file_libio.cc
2824       echo "$ac_t""libio" 1>&6
2825
2826       # see if we are on a system with libio native (ie, linux)
2827       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2828 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2829 echo "configure:2830: checking for libio.h" >&5
2830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2831   echo $ac_n "(cached) $ac_c" 1>&6
2832 else
2833   cat > conftest.$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2836 #include <libio.h>
2837 EOF
2838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2839 { (eval echo configure:2840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2841 if test -z "$ac_err"; then
2842   rm -rf conftest*
2843   eval "ac_cv_header_$ac_safe=yes"
2844 else
2845   echo "$ac_err" >&5
2846   echo "configure: failed program was:" >&5
2847   cat conftest.$ac_ext >&5
2848   rm -rf conftest*
2849   eval "ac_cv_header_$ac_safe=no"
2850 fi
2851 rm -f conftest*
2852 fi
2853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2854   echo "$ac_t""yes" 1>&6
2855   has_libio=yes
2856 else
2857   echo "$ac_t""no" 1>&6
2858 has_libio=no
2859 fi
2860
2861
2862       # Need to check and see what version of glibc is being used. If
2863       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2864       # compile most of libio for linux systems.
2865       if test x$has_libio = x"yes"; then
2866         case "$target" in
2867           *-*-linux*)
2868               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2869 echo "configure:2870: checking for glibc version >= 2.2" >&5
2870               cat > conftest.$ac_ext <<EOF
2871 #line 2872 "configure"
2872 #include "confdefs.h"
2873
2874             #include <features.h>
2875               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2876                     ok
2877               #endif
2878               
2879 EOF
2880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2881   egrep "ok" >/dev/null 2>&1; then
2882   rm -rf conftest*
2883   glibc_satisfactory=yes
2884 else
2885   rm -rf conftest*
2886   glibc_satisfactory=no
2887 fi
2888 rm -f conftest*
2889
2890               echo "$ac_t""$glibc_satisfactory" 1>&6
2891             ;;
2892         esac
2893
2894         # XXX at the moment, admit defeat and force the recompilation
2895         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2896         glibc_satisfactory=no        
2897
2898         if test x$glibc_satisfactory = x"yes"; then
2899            need_libio=no
2900            need_wlibio=no        
2901         else
2902            need_libio=yes
2903            # bkoz XXX need to add checks to enable this
2904            # pme XXX here's a first pass at such a check
2905            if test x$enable_c_mbchar != xno; then
2906               need_wlibio=yes
2907            else
2908               need_wlibio=no
2909            fi
2910         fi
2911
2912       else
2913          # Using libio, but <libio.h> doesn't exist on the target system. . .
2914          need_libio=yes
2915          # bkoz XXX need to add checks to enable this
2916          # pme XXX here's a first pass at such a check
2917          if test x$enable_c_mbchar != xno; then
2918              need_wlibio=yes
2919          else
2920              need_wlibio=no
2921          fi
2922       fi
2923       ;;
2924     xstdio | x | xno | xnone | xyes)
2925       # default
2926       CSTDIO_H=config/io/c_io_stdio.h
2927       BASIC_FILE_H=config/io/basic_file_stdio.h
2928       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2929       echo "$ac_t""stdio" 1>&6
2930
2931       # We're not using stdio.
2932       need_libio=no
2933       need_wlibio=no
2934       ;;
2935     *)
2936       echo "$enable_cstdio is an unknown io package" 1>&2
2937       exit 1
2938       ;;
2939   esac
2940   
2941   
2942   
2943
2944   # 2000-08-04 bkoz hack
2945   CCODECVT_C=config/io/c_io_libio_codecvt.c
2946   
2947   # 2000-08-04 bkoz hack
2948
2949   
2950
2951 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2952   GLIBCPP_BUILD_LIBIO_TRUE=
2953   GLIBCPP_BUILD_LIBIO_FALSE='#'
2954 else
2955   GLIBCPP_BUILD_LIBIO_TRUE='#'
2956   GLIBCPP_BUILD_LIBIO_FALSE=
2957 fi
2958   
2959
2960 if test "$need_libio" = yes; then
2961   GLIBCPP_NEED_LIBIO_TRUE=
2962   GLIBCPP_NEED_LIBIO_FALSE='#'
2963 else
2964   GLIBCPP_NEED_LIBIO_TRUE='#'
2965   GLIBCPP_NEED_LIBIO_FALSE=
2966 fi
2967   
2968
2969 if test "$need_wlibio" = yes; then
2970   GLIBCPP_NEED_WLIBIO_TRUE=
2971   GLIBCPP_NEED_WLIBIO_FALSE='#'
2972 else
2973   GLIBCPP_NEED_WLIBIO_TRUE='#'
2974   GLIBCPP_NEED_WLIBIO_FALSE=
2975 fi
2976   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2977     libio_la=../libio/libio.la
2978   else
2979     libio_la=
2980   fi
2981   
2982
2983
2984   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2985 echo "configure:2986: checking for clocale to use" >&5
2986   # Check whether --enable-clocale or --disable-clocale was given.
2987 if test "${enable_clocale+set}" = set; then
2988   enableval="$enable_clocale"
2989   if test x$enable_clocale = xno; then
2990      enable_clocale=no
2991   fi
2992 else
2993   enable_clocale=no
2994 fi
2995
2996
2997   enable_clocale_flag=$enable_clocale
2998
2999       if test x$enable_clocale_flag = xno; then
3000     case x${target_os} in
3001       xlinux* | xgnu*)
3002         cat > conftest.$ac_ext <<EOF
3003 #line 3004 "configure"
3004 #include "confdefs.h"
3005
3006         #include <features.h>
3007         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
3008           _GLIBCPP_ok
3009         #endif
3010         
3011 EOF
3012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3013   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3014   rm -rf conftest*
3015   enable_clocale_flag=gnu
3016 else
3017   rm -rf conftest*
3018   enable_clocale_flag=generic
3019 fi
3020 rm -f conftest*
3021
3022
3023         # Test for bugs early in glibc-2.2.x series
3024         if test x$enable_clocale_flag = xgnu; then
3025           if test "$cross_compiling" = yes; then
3026   enable_clocale_flag=generic
3027 else
3028   cat > conftest.$ac_ext <<EOF
3029 #line 3030 "configure"
3030 #include "confdefs.h"
3031
3032           #define _GNU_SOURCE 1
3033           #include <locale.h>
3034           int main()
3035           {
3036             const char __one[] = "Äuglein Augmen";
3037             const char __two[] = "Äuglein";
3038             int i;
3039             int j;
3040             __locale_t  loc;
3041             __locale_t  loc_dup;
3042             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3043             loc_dup = __duplocale(loc);
3044             i = __strcoll_l(__one, __two, loc);
3045             j = __strcoll_l(__one, __two, loc_dup);
3046             return 0;
3047           }
3048           
3049 EOF
3050 if { (eval echo configure:3051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3051 then
3052   enable_clocale_flag=gnu
3053 else
3054   echo "configure: failed program was:" >&5
3055   cat conftest.$ac_ext >&5
3056   rm -fr conftest*
3057   enable_clocale_flag=generic
3058 fi
3059 rm -fr conftest*
3060 fi
3061
3062         fi
3063
3064         # ... at some point put __strxfrm_l tests in as well.
3065         ;;
3066       *)
3067         enable_clocale_flag=generic
3068         ;;
3069     esac
3070   fi
3071
3072     # Check whether --enable-nls or --disable-nls was given.
3073 if test "${enable_nls+set}" = set; then
3074   enableval="$enable_nls"
3075   :
3076 else
3077   enable_nls=yes
3078 fi
3079
3080   USE_NLS=no
3081
3082     case x${enable_clocale_flag} in
3083     xgeneric)
3084       echo "$ac_t""generic" 1>&6
3085
3086       CLOCALE_H=config/locale/generic/c_locale.h
3087       CLOCALE_CC=config/locale/generic/c_locale.cc
3088       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3089       CCOLLATE_CC=config/locale/generic/collate_members.cc
3090       CCTYPE_CC=config/locale/generic/ctype_members.cc
3091       CMESSAGES_H=config/locale/generic/messages_members.h
3092       CMESSAGES_CC=config/locale/generic/messages_members.cc
3093       CMONEY_CC=config/locale/generic/monetary_members.cc
3094       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3095       CTIME_CC=config/locale/generic/time_members.cc
3096       ;;
3097     xgnu)
3098       echo "$ac_t""gnu" 1>&6
3099
3100       # Declare intention to use gettext, and add support for specific
3101       # languages.
3102       # For some reason, ALL_LINGUAS has to be before AM_GNU_GETTEXT
3103       ALL_LINGUAS="de fr"
3104
3105       # Don't call AM_GNU_GETTEXT here. Instead, assume glibc.
3106       # Extract the first word of "msgfmt", so it can be a program name with args.
3107 set dummy msgfmt; ac_word=$2
3108 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3109 echo "configure:3110: checking for $ac_word" >&5
3110 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3111   echo $ac_n "(cached) $ac_c" 1>&6
3112 else
3113   if test -n "$check_msgfmt"; then
3114   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3115 else
3116   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3117   ac_dummy="$PATH"
3118   for ac_dir in $ac_dummy; do
3119     test -z "$ac_dir" && ac_dir=.
3120     if test -f $ac_dir/$ac_word; then
3121       ac_cv_prog_check_msgfmt="yes"
3122       break
3123     fi
3124   done
3125   IFS="$ac_save_ifs"
3126   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3127 fi
3128 fi
3129 check_msgfmt="$ac_cv_prog_check_msgfmt"
3130 if test -n "$check_msgfmt"; then
3131   echo "$ac_t""$check_msgfmt" 1>&6
3132 else
3133   echo "$ac_t""no" 1>&6
3134 fi
3135
3136       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3137         USE_NLS=yes
3138       fi
3139
3140       # Export the build objects.
3141       for ling in $ALL_LINGUAS; do \
3142         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3143         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3144       done
3145       
3146       
3147
3148       CLOCALE_H=config/locale/gnu/c_locale.h
3149       CLOCALE_CC=config/locale/gnu/c_locale.cc
3150       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3151       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3152       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3153       CMESSAGES_H=config/locale/gnu/messages_members.h
3154       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3155       CMONEY_CC=config/locale/gnu/monetary_members.cc
3156       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3157       CTIME_CC=config/locale/gnu/time_members.cc
3158       ;;
3159     xieee_1003.1-2001)
3160       echo "$ac_t""generic" 1>&6
3161
3162       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3163       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3164       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3165       CCOLLATE_CC=config/locale/generic/collate_members.cc
3166       CCTYPE_CC=config/locale/generic/ctype_members.cc
3167       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3168       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3169       CMONEY_CC=config/locale/generic/monetary_members.cc
3170       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3171       CTIME_CC=config/locale/generic/time_members.cc
3172       ;;
3173     *)
3174       echo "$enable_clocale is an unknown locale package" 1>&2
3175       exit 1
3176       ;;
3177   esac
3178
3179   # This is where the testsuite looks for locale catalogs, using the
3180   # -DLOCALEDIR define during testsuite compilation.
3181   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3182   
3183
3184   
3185   
3186   
3187   
3188   
3189   
3190   
3191   
3192   
3193   
3194   
3195
3196 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3197 if test "${enable_c_mbchar+set}" = set; then
3198   enableval="$enable_c_mbchar"
3199   case "$enableval" in
3200  yes) enable_c_mbchar=yes ;;
3201  no)  enable_c_mbchar=no ;;
3202  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3203  esac
3204 else
3205   enable_c_mbchar=yes
3206 fi
3207
3208   
3209   # Check whether --enable-c99 or --disable-c99 was given.
3210 if test "${enable_c99+set}" = set; then
3211   enableval="$enable_c99"
3212     case "$enableval" in
3213    yes) enable_c99=yes ;;
3214    no)  enable_c99=no ;;
3215    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3216    esac
3217 else
3218   enable_c99=yes
3219 fi
3220  
3221   
3222   ac_ext=C
3223 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3224 ac_cpp='$CXXCPP $CPPFLAGS'
3225 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3226 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3227 cross_compiling=$ac_cv_prog_cxx_cross
3228
3229
3230   # Check for the existence of <math.h> functions used if C99 is enabled.
3231   ac_c99_math=yes;
3232   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3233 echo "configure:3234: checking for ISO C99 support in <math.h>" >&5
3234   cat > conftest.$ac_ext <<EOF
3235 #line 3236 "configure"
3236 #include "confdefs.h"
3237 #include <math.h>
3238 int main() {
3239 fpclassify(0.0);
3240 ; return 0; }
3241 EOF
3242 if { (eval echo configure:3243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3243   :
3244 else
3245   echo "configure: failed program was:" >&5
3246   cat conftest.$ac_ext >&5
3247   rm -rf conftest*
3248   ac_c99_math=no
3249 fi
3250 rm -f conftest*
3251   cat > conftest.$ac_ext <<EOF
3252 #line 3253 "configure"
3253 #include "confdefs.h"
3254 #include <math.h>
3255 int main() {
3256 isfinite(0.0);
3257 ; return 0; }
3258 EOF
3259 if { (eval echo configure:3260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3260   :
3261 else
3262   echo "configure: failed program was:" >&5
3263   cat conftest.$ac_ext >&5
3264   rm -rf conftest*
3265   ac_c99_math=no
3266 fi
3267 rm -f conftest*
3268   cat > conftest.$ac_ext <<EOF
3269 #line 3270 "configure"
3270 #include "confdefs.h"
3271 #include <math.h>
3272 int main() {
3273 isinf(0.0);
3274 ; return 0; }
3275 EOF
3276 if { (eval echo configure:3277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3277   :
3278 else
3279   echo "configure: failed program was:" >&5
3280   cat conftest.$ac_ext >&5
3281   rm -rf conftest*
3282   ac_c99_math=no
3283 fi
3284 rm -f conftest*
3285   cat > conftest.$ac_ext <<EOF
3286 #line 3287 "configure"
3287 #include "confdefs.h"
3288 #include <math.h>
3289 int main() {
3290 isnan(0.0);
3291 ; return 0; }
3292 EOF
3293 if { (eval echo configure:3294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3294   :
3295 else
3296   echo "configure: failed program was:" >&5
3297   cat conftest.$ac_ext >&5
3298   rm -rf conftest*
3299   ac_c99_math=no
3300 fi
3301 rm -f conftest*
3302   cat > conftest.$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3305 #include <math.h>
3306 int main() {
3307 isnormal(0.0);
3308 ; return 0; }
3309 EOF
3310 if { (eval echo configure:3311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3311   :
3312 else
3313   echo "configure: failed program was:" >&5
3314   cat conftest.$ac_ext >&5
3315   rm -rf conftest*
3316   ac_c99_math=no
3317 fi
3318 rm -f conftest*
3319   cat > conftest.$ac_ext <<EOF
3320 #line 3321 "configure"
3321 #include "confdefs.h"
3322 #include <math.h>
3323 int main() {
3324 signbit(0.0);
3325 ; return 0; }
3326 EOF
3327 if { (eval echo configure:3328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3328   :
3329 else
3330   echo "configure: failed program was:" >&5
3331   cat conftest.$ac_ext >&5
3332   rm -rf conftest*
3333   ac_c99_math=no
3334 fi
3335 rm -f conftest*
3336   cat > conftest.$ac_ext <<EOF
3337 #line 3338 "configure"
3338 #include "confdefs.h"
3339 #include <math.h>
3340 int main() {
3341 isgreater(0.0,0.0);
3342 ; return 0; }
3343 EOF
3344 if { (eval echo configure:3345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3345   :
3346 else
3347   echo "configure: failed program was:" >&5
3348   cat conftest.$ac_ext >&5
3349   rm -rf conftest*
3350   ac_c99_math=no
3351 fi
3352 rm -f conftest*
3353   cat > conftest.$ac_ext <<EOF
3354 #line 3355 "configure"
3355 #include "confdefs.h"
3356 #include <math.h>
3357 int main() {
3358 isgreaterequal(0.0,0.0);
3359 ; return 0; }
3360 EOF
3361 if { (eval echo configure:3362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3362   :
3363 else
3364   echo "configure: failed program was:" >&5
3365   cat conftest.$ac_ext >&5
3366   rm -rf conftest*
3367   ac_c99_math=no
3368 fi
3369 rm -f conftest*
3370   cat > conftest.$ac_ext <<EOF
3371 #line 3372 "configure"
3372 #include "confdefs.h"
3373 #include <math.h>
3374 int main() {
3375 isless(0.0,0.0);
3376 ; return 0; }
3377 EOF
3378 if { (eval echo configure:3379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3379   :
3380 else
3381   echo "configure: failed program was:" >&5
3382   cat conftest.$ac_ext >&5
3383   rm -rf conftest*
3384   ac_c99_math=no
3385 fi
3386 rm -f conftest*
3387   cat > conftest.$ac_ext <<EOF
3388 #line 3389 "configure"
3389 #include "confdefs.h"
3390 #include <math.h>
3391 int main() {
3392 islessequal(0.0,0.0);
3393 ; return 0; }
3394 EOF
3395 if { (eval echo configure:3396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3396   :
3397 else
3398   echo "configure: failed program was:" >&5
3399   cat conftest.$ac_ext >&5
3400   rm -rf conftest*
3401   ac_c99_math=no
3402 fi
3403 rm -f conftest*
3404   cat > conftest.$ac_ext <<EOF
3405 #line 3406 "configure"
3406 #include "confdefs.h"
3407 #include <math.h>
3408 int main() {
3409 islessgreater(0.0,0.0);
3410 ; return 0; }
3411 EOF
3412 if { (eval echo configure:3413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3413   :
3414 else
3415   echo "configure: failed program was:" >&5
3416   cat conftest.$ac_ext >&5
3417   rm -rf conftest*
3418   ac_c99_math=no
3419 fi
3420 rm -f conftest*
3421   cat > conftest.$ac_ext <<EOF
3422 #line 3423 "configure"
3423 #include "confdefs.h"
3424 #include <math.h>
3425 int main() {
3426 isunordered(0.0,0.0);
3427 ; return 0; }
3428 EOF
3429 if { (eval echo configure:3430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3430   :
3431 else
3432   echo "configure: failed program was:" >&5
3433   cat conftest.$ac_ext >&5
3434   rm -rf conftest*
3435   ac_c99_math=no
3436 fi
3437 rm -f conftest*
3438   echo "$ac_t""$ac_c99_math" 1>&6
3439
3440   # Check for the existence in <stdio.h> of vscanf, et. al.
3441   ac_c99_stdio=yes;
3442   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3443 echo "configure:3444: checking for ISO C99 support in <stdio.h>" >&5
3444   cat > conftest.$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3447 #include <stdio.h>
3448 int main() {
3449 snprintf("12", 0, "%i");
3450 ; return 0; }
3451 EOF
3452 if { (eval echo configure:3453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3453   :
3454 else
3455   echo "configure: failed program was:" >&5
3456   cat conftest.$ac_ext >&5
3457   rm -rf conftest*
3458   ac_c99_stdio=no
3459 fi
3460 rm -f conftest*
3461   cat > conftest.$ac_ext <<EOF
3462 #line 3463 "configure"
3463 #include "confdefs.h"
3464 #include <stdio.h>
3465                   #include <stdarg.h>
3466                   void foo(char* fmt, ...)
3467                   {va_list args; va_start(args, fmt);
3468                   vfscanf(stderr, "%i", args);}
3469 int main() {
3470
3471 ; return 0; }
3472 EOF
3473 if { (eval echo configure:3474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3474   :
3475 else
3476   echo "configure: failed program was:" >&5
3477   cat conftest.$ac_ext >&5
3478   rm -rf conftest*
3479   ac_c99_stdio=no
3480 fi
3481 rm -f conftest*
3482   cat > conftest.$ac_ext <<EOF
3483 #line 3484 "configure"
3484 #include "confdefs.h"
3485 #include <stdio.h>
3486                   #include <stdarg.h>
3487                   void foo(char* fmt, ...)
3488                   {va_list args; va_start(args, fmt);
3489                   vscanf("%i", args);}
3490 int main() {
3491
3492 ; return 0; }
3493 EOF
3494 if { (eval echo configure:3495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3495   :
3496 else
3497   echo "configure: failed program was:" >&5
3498   cat conftest.$ac_ext >&5
3499   rm -rf conftest*
3500   ac_c99_stdio=no
3501 fi
3502 rm -f conftest*
3503   cat > conftest.$ac_ext <<EOF
3504 #line 3505 "configure"
3505 #include "confdefs.h"
3506 #include <stdio.h>
3507                   #include <stdarg.h>
3508                   void foo(char* fmt, ...)
3509                   {va_list args; va_start(args, fmt);
3510                   vsnprintf(fmt, 0, "%i", args);}
3511 int main() {
3512
3513 ; return 0; }
3514 EOF
3515 if { (eval echo configure:3516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3516   :
3517 else
3518   echo "configure: failed program was:" >&5
3519   cat conftest.$ac_ext >&5
3520   rm -rf conftest*
3521   ac_c99_stdio=no
3522 fi
3523 rm -f conftest*
3524   cat > conftest.$ac_ext <<EOF
3525 #line 3526 "configure"
3526 #include "confdefs.h"
3527 #include <stdio.h>
3528                   #include <stdarg.h>
3529                   void foo(char* fmt, ...)
3530                   {va_list args; va_start(args, fmt);
3531                   vsscanf(fmt, "%i", args);}
3532 int main() {
3533
3534 ; return 0; }
3535 EOF
3536 if { (eval echo configure:3537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3537   :
3538 else
3539   echo "configure: failed program was:" >&5
3540   cat conftest.$ac_ext >&5
3541   rm -rf conftest*
3542   ac_c99_stdio=no
3543 fi
3544 rm -f conftest*
3545   echo "$ac_t""$ac_c99_stdio" 1>&6
3546
3547   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3548   ac_c99_stdlib=yes;
3549   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3550 echo "configure:3551: checking for lldiv_t declaration" >&5
3551   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3552   echo $ac_n "(cached) $ac_c" 1>&6
3553 else
3554   
3555   cat > conftest.$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3558 #include <stdlib.h>
3559 int main() {
3560  lldiv_t mydivt;
3561 ; return 0; }
3562 EOF
3563 if { (eval echo configure:3564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3564   rm -rf conftest*
3565   ac_c99_lldiv_t=yes
3566 else
3567   echo "configure: failed program was:" >&5
3568   cat conftest.$ac_ext >&5
3569   rm -rf conftest*
3570   ac_c99_lldiv_t=no
3571 fi
3572 rm -f conftest*
3573   
3574 fi
3575
3576   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3577
3578   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3579 echo "configure:3580: checking for ISO C99 support in <stdlib.h>" >&5
3580   cat > conftest.$ac_ext <<EOF
3581 #line 3582 "configure"
3582 #include "confdefs.h"
3583 #include <stdlib.h>
3584 int main() {
3585 char* tmp; strtof("gnu", &tmp);
3586 ; return 0; }
3587 EOF
3588 if { (eval echo configure:3589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3589   :
3590 else
3591   echo "configure: failed program was:" >&5
3592   cat conftest.$ac_ext >&5
3593   rm -rf conftest*
3594   ac_c99_stdlib=no
3595 fi
3596 rm -f conftest*
3597   cat > conftest.$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3600 #include <stdlib.h>
3601 int main() {
3602 char* tmp; strtold("gnu", &tmp);
3603 ; return 0; }
3604 EOF
3605 if { (eval echo configure:3606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3606   :
3607 else
3608   echo "configure: failed program was:" >&5
3609   cat conftest.$ac_ext >&5
3610   rm -rf conftest*
3611   ac_c99_stdlib=no
3612 fi
3613 rm -f conftest*
3614   cat > conftest.$ac_ext <<EOF
3615 #line 3616 "configure"
3616 #include "confdefs.h"
3617 #include <stdlib.h>
3618 int main() {
3619 llabs(10);
3620 ; return 0; }
3621 EOF
3622 if { (eval echo configure:3623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3623   :
3624 else
3625   echo "configure: failed program was:" >&5
3626   cat conftest.$ac_ext >&5
3627   rm -rf conftest*
3628   ac_c99_stdlib=no
3629 fi
3630 rm -f conftest*
3631   cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 #include <stdlib.h>
3635 int main() {
3636 lldiv(10,1);
3637 ; return 0; }
3638 EOF
3639 if { (eval echo configure:3640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3640   :
3641 else
3642   echo "configure: failed program was:" >&5
3643   cat conftest.$ac_ext >&5
3644   rm -rf conftest*
3645   ac_c99_stdlib=no
3646 fi
3647 rm -f conftest*
3648   cat > conftest.$ac_ext <<EOF
3649 #line 3650 "configure"
3650 #include "confdefs.h"
3651 #include <stdlib.h>
3652 int main() {
3653 atoll("10");
3654 ; return 0; }
3655 EOF
3656 if { (eval echo configure:3657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3657   :
3658 else
3659   echo "configure: failed program was:" >&5
3660   cat conftest.$ac_ext >&5
3661   rm -rf conftest*
3662   ac_c99_stdlib=no
3663 fi
3664 rm -f conftest*
3665   cat > conftest.$ac_ext <<EOF
3666 #line 3667 "configure"
3667 #include "confdefs.h"
3668 #include <stdlib.h>
3669 int main() {
3670 _Exit(0);
3671 ; return 0; }
3672 EOF
3673 if { (eval echo configure:3674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3674   :
3675 else
3676   echo "configure: failed program was:" >&5
3677   cat conftest.$ac_ext >&5
3678   rm -rf conftest*
3679   ac_c99_stdlib=no
3680 fi
3681 rm -f conftest*
3682   if test x"$ac_c99_lldiv_t" = x"no"; then
3683     ac_c99_stdlib=no; 
3684   fi; 
3685   echo "$ac_t""$ac_c99_stdlib" 1>&6
3686
3687   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3688   # XXX the wchar.h checks should be rolled into the general C99 bits.
3689   ac_c99_wchar=yes;
3690   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3691 echo "configure:3692: checking for additional ISO C99 support in <wchar.h>" >&5
3692   cat > conftest.$ac_ext <<EOF
3693 #line 3694 "configure"
3694 #include "confdefs.h"
3695 #include <wchar.h>
3696 int main() {
3697 wcstold(L"10.0", NULL);
3698 ; return 0; }
3699 EOF
3700 if { (eval echo configure:3701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3701   :
3702 else
3703   echo "configure: failed program was:" >&5
3704   cat conftest.$ac_ext >&5
3705   rm -rf conftest*
3706   ac_c99_wchar=no
3707 fi
3708 rm -f conftest*
3709   cat > conftest.$ac_ext <<EOF
3710 #line 3711 "configure"
3711 #include "confdefs.h"
3712 #include <wchar.h>
3713 int main() {
3714 wcstoll(L"10", NULL, 10);
3715 ; return 0; }
3716 EOF
3717 if { (eval echo configure:3718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3718   :
3719 else
3720   echo "configure: failed program was:" >&5
3721   cat conftest.$ac_ext >&5
3722   rm -rf conftest*
3723   ac_c99_wchar=no
3724 fi
3725 rm -f conftest*
3726   cat > conftest.$ac_ext <<EOF
3727 #line 3728 "configure"
3728 #include "confdefs.h"
3729 #include <wchar.h>
3730 int main() {
3731 wcstoull(L"10", NULL, 10);
3732 ; return 0; }
3733 EOF
3734 if { (eval echo configure:3735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3735   :
3736 else
3737   echo "configure: failed program was:" >&5
3738   cat conftest.$ac_ext >&5
3739   rm -rf conftest*
3740   ac_c99_wchar=no
3741 fi
3742 rm -f conftest*
3743   echo "$ac_t""$ac_c99_wchar" 1>&6
3744
3745   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3746 echo "configure:3747: checking for enabled ISO C99 support" >&5
3747   if test x"$ac_c99_math" = x"no" ||
3748      test x"$ac_c99_stdio" = x"no" ||
3749      test x"$ac_c99_stdlib" = x"no" ||
3750      test x"$ac_c99_wchar" = x"no"; then
3751     enable_c99=no; 
3752   fi; 
3753   echo "$ac_t""$enable_c99" 1>&6
3754
3755   # Option parsed, now set things appropriately
3756   if test x"$enable_c99" = x"yes"; then
3757     cat >> confdefs.h <<\EOF
3758 #define _GLIBCPP_USE_C99 1
3759 EOF
3760
3761   fi
3762
3763   ac_ext=c
3764 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3765 ac_cpp='$CPP $CPPFLAGS'
3766 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3767 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3768 cross_compiling=$ac_cv_prog_cc_cross
3769
3770
3771   
3772   # Check whether --enable-long-long or --disable-long-long was given.
3773 if test "${enable_long_long+set}" = set; then
3774   enableval="$enable_long_long"
3775     case "$enableval" in
3776    yes) enable_long_long=yes ;;
3777    no)  enable_long_long=no ;;
3778    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3779    esac
3780 else
3781   enable_long_long=yes
3782 fi
3783
3784   
3785   ac_ext=C
3786 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3787 ac_cpp='$CXXCPP $CPPFLAGS'
3788 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3789 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3790 cross_compiling=$ac_cv_prog_cxx_cross
3791
3792
3793   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3794 echo "configure:3795: checking for enabled long long I/O support" >&5
3795   # iostreams require strtoll, strtoull to compile
3796   cat > conftest.$ac_ext <<EOF
3797 #line 3798 "configure"
3798 #include "confdefs.h"
3799 #include <stdlib.h>
3800 int main() {
3801 char* tmp; strtoll("gnu", &tmp, 10);
3802 ; return 0; }
3803 EOF
3804 if { (eval echo configure:3805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3805   :
3806 else
3807   echo "configure: failed program was:" >&5
3808   cat conftest.$ac_ext >&5
3809   rm -rf conftest*
3810   enable_long_long=no
3811 fi
3812 rm -f conftest*
3813   cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3816 #include <stdlib.h>
3817 int main() {
3818 char* tmp; strtoull("gnu", &tmp, 10);
3819 ; return 0; }
3820 EOF
3821 if { (eval echo configure:3822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3822   :
3823 else
3824   echo "configure: failed program was:" >&5
3825   cat conftest.$ac_ext >&5
3826   rm -rf conftest*
3827   enable_long_long=no
3828 fi
3829 rm -f conftest*
3830
3831   # Option parsed, now set things appropriately
3832   if test x"$enable_long_long" = xyes; then
3833     cat >> confdefs.h <<\EOF
3834 #define _GLIBCPP_USE_LONG_LONG 1
3835 EOF
3836
3837   fi
3838   echo "$ac_t""$enable_long_long" 1>&6
3839
3840   ac_ext=c
3841 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3842 ac_cpp='$CPP $CPPFLAGS'
3843 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3844 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3845 cross_compiling=$ac_cv_prog_cc_cross
3846
3847
3848 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3849 echo "configure:3850: checking for c header strategy to use" >&5
3850 # Check whether --enable-cheaders or --disable-cheaders was given.
3851 if test "${enable_cheaders+set}" = set; then
3852   enableval="$enable_cheaders"
3853   
3854   case "$enableval" in
3855    c) 
3856         enable_cheaders=c 
3857         ;;
3858    c_std)  
3859         enable_cheaders=c_std 
3860         ;;
3861    c_shadow)  
3862         enable_cheaders=c_shadow 
3863         ;;
3864    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3865         ;;
3866   esac
3867 else
3868   enable_cheaders=c_std
3869 fi
3870
3871   echo "$ac_t""$enable_cheaders" 1>&6
3872
3873     case "$enable_cheaders" in
3874     c_shadow) 
3875         CSHADOW_FLAGS="-fno-builtin"
3876         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3877         ;;
3878     c_std)   
3879         CSHADOW_FLAGS=""
3880         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3881         ;;
3882     c)   
3883         CSHADOW_FLAGS=""
3884         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3885         ;;
3886   esac
3887
3888   
3889   
3890   
3891
3892 if test "$enable_cheaders" = c; then
3893   GLIBCPP_C_HEADERS_C_TRUE=
3894   GLIBCPP_C_HEADERS_C_FALSE='#'
3895 else
3896   GLIBCPP_C_HEADERS_C_TRUE='#'
3897   GLIBCPP_C_HEADERS_C_FALSE=
3898 fi
3899   
3900
3901 if test "$enable_cheaders" = c_std; then
3902   GLIBCPP_C_HEADERS_C_STD_TRUE=
3903   GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3904 else
3905   GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3906   GLIBCPP_C_HEADERS_C_STD_FALSE=
3907 fi
3908
3909
3910   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3911 echo "configure:3912: checking for thread model used by GCC" >&5
3912   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3913   echo "$ac_t""$target_thread_file" 1>&6
3914
3915   if test $target_thread_file != single; then
3916     cat >> confdefs.h <<\EOF
3917 #define HAVE_GTHR_DEFAULT 1
3918 EOF
3919
3920     cat >> confdefs.h <<\EOF
3921 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3922 EOF
3923
3924   fi
3925
3926   glibcpp_thread_h=gthr-$target_thread_file.h
3927   
3928
3929 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3930 if test "${enable_cxx_flags+set}" = set; then
3931   enableval="$enable_cxx_flags"
3932   case "x$enableval" in
3933  xyes)   
3934         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3935  xno|x)  
3936         enable_cxx_flags='' ;;
3937  *)      
3938         enable_cxx_flags="$enableval" ;;
3939  esac
3940 else
3941   enable_cxx_flags='none'
3942 fi
3943
3944
3945 if test "$enable_cxx_flags" = "none"; then 
3946   enable_cxx_flags=''; 
3947 fi
3948
3949 if test -n "$enable_cxx_flags"; then
3950     for f in $enable_cxx_flags; do
3951         case "$f" in
3952             -fhonor-std)  ;;
3953             -*)  ;;
3954             *)   # and we're trying to pass /what/ exactly?
3955                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3956         esac
3957     done
3958 fi
3959 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3960
3961
3962
3963   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3964 echo "configure:3965: checking for exception model to use" >&5
3965   
3966   ac_ext=C
3967 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3968 ac_cpp='$CXXCPP $CPPFLAGS'
3969 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3970 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3971 cross_compiling=$ac_cv_prog_cxx_cross
3972
3973   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3974 if test "${enable_sjlj_exceptions+set}" = set; then
3975   enableval="$enable_sjlj_exceptions"
3976   :
3977 else
3978                        cat > conftest.$ac_ext << EOF
3979 #line 3980 "configure"
3980 struct S { ~S(); };
3981 void bar();
3982 void foo()
3983 {
3984   S s;
3985   bar();
3986 }
3987 EOF
3988    old_CXXFLAGS="$CXXFLAGS"  
3989    CXXFLAGS=-S
3990    if { (eval echo configure:3991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3991      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3992        enable_sjlj_exceptions=yes
3993      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3994        enable_sjlj_exceptions=no
3995      fi
3996    fi
3997    CXXFLAGS="$old_CXXFLAGS"
3998    rm -f conftest*
3999 fi
4000
4001    if test x$enable_sjlj_exceptions = xyes; then
4002      cat >> confdefs.h <<\EOF
4003 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
4004 EOF
4005
4006      ac_exception_model_name=sjlj
4007    elif test x$enable_sjlj_exceptions = xno; then
4008      ac_exception_model_name="call frame"
4009    else
4010      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
4011    fi
4012    ac_ext=c
4013 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4014 ac_cpp='$CPP $CPPFLAGS'
4015 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4016 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4017 cross_compiling=$ac_cv_prog_cc_cross
4018
4019    echo "$ac_t""$ac_exception_model_name" 1>&6
4020
4021
4022   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4023 echo "configure:4024: checking for use of libunwind" >&5
4024   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4025 if test "${enable_libunwind_exceptions+set}" = set; then
4026   enableval="$enable_libunwind_exceptions"
4027   use_libunwind_exceptions=$enableval
4028 else
4029   use_libunwind_exceptions=no
4030 fi
4031
4032   echo "$ac_t""$use_libunwind_exceptions" 1>&6
4033     if test x"$use_libunwind_exceptions" = xyes; then
4034     LIBUNWIND_FLAG="-lunwind"
4035   else
4036     LIBUNWIND_FLAG=""
4037   fi
4038   
4039
4040 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4041 if test "${enable_concept_checks+set}" = set; then
4042   enableval="$enable_concept_checks"
4043   case "$enableval" in
4044  yes) enable_concept_checks=yes ;;
4045  no)  enable_concept_checks=no ;;
4046  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4047  esac
4048 else
4049   enable_concept_checks=no
4050 fi
4051 if test x"$enable_concept_checks" = xyes; then
4052   cat >> confdefs.h <<\EOF
4053 #define _GLIBCPP_CONCEPT_CHECKS 1
4054 EOF
4055
4056 fi
4057
4058
4059
4060 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4061
4062   # This lets us hard-code the functionality we know
4063   # we'll have in the cross target environment. "Let" is a
4064   # sugar-coated word placed on an especially dull and tedious hack, actually.
4065   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4066   # that involve linking can't be used:
4067   # "cannot open sim-crt0.o"
4068   # "cannot open crt0.o"
4069   # etc. All this is because there currently exists no unified,
4070   # consistent way for top level CC information to be passed down
4071   # to target directories: newlib includes, newlib linking info,
4072   # libgloss versus newlib crt0.o, etc. When all of this is done, all
4073   # of this hokey, excessive AC_DEFINE junk for crosses can be removed.
4074
4075   # We are being configured with some form of cross compiler.
4076   GLIBCPP_IS_CROSS_COMPILING=1
4077
4078   # If Canadian cross, then don't pick up tools from the build
4079   # directory.
4080   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4081     CANADIAN=yes
4082   else
4083     CANADIAN=no
4084   fi
4085
4086   # Construct crosses by hand, eliminating bits that need ld...
4087   # GLIBCPP_CHECK_COMPILER_FEATURES
4088   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4089   # GLIBCPP_CHECK_MATH_SUPPORT
4090
4091   case "$target_alias" in
4092     *-linux*)
4093       # Check for available headers.
4094       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4095         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4096         fp.h locale.h float.h inttypes.h
4097 do
4098 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4099 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4100 echo "configure:4101: checking for $ac_hdr" >&5
4101 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4102   echo $ac_n "(cached) $ac_c" 1>&6
4103 else
4104   cat > conftest.$ac_ext <<EOF
4105 #line 4106 "configure"
4106 #include "confdefs.h"
4107 #include <$ac_hdr>
4108 EOF
4109 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4110 { (eval echo configure:4111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4111 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4112 if test -z "$ac_err"; then
4113   rm -rf conftest*
4114   eval "ac_cv_header_$ac_safe=yes"
4115 else
4116   echo "$ac_err" >&5
4117   echo "configure: failed program was:" >&5
4118   cat conftest.$ac_ext >&5
4119   rm -rf conftest*
4120   eval "ac_cv_header_$ac_safe=no"
4121 fi
4122 rm -f conftest*
4123 fi
4124 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4125   echo "$ac_t""yes" 1>&6
4126     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4127   cat >> confdefs.h <<EOF
4128 #define $ac_tr_hdr 1
4129 EOF
4130  
4131 else
4132   echo "$ac_t""no" 1>&6
4133 fi
4134 done
4135
4136       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4137       
4138       
4139   # If we're not using GNU ld, then there's no point in even trying these
4140   # tests.  Check for that first.  We should have already tested for gld
4141   # by now (in libtool), but require it now just to be safe...
4142   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4143   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4144   
4145
4146   # The name set by libtool depends on the version of libtool.  Shame on us
4147   # for depending on an impl detail, but c'est la vie.  Older versions used
4148   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4149   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4150   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4151   # set (hence we're using an older libtool), then set it.
4152   if test x${with_gnu_ld+set} != xset; then
4153     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4154       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4155       with_gnu_ld=no
4156     else
4157       with_gnu_ld=$ac_cv_prog_gnu_ld
4158     fi
4159   fi
4160
4161   # Start by getting the version number.  I think the libtool test already
4162   # does some of this, but throws away the result.
4163   
4164   ldver=`$LD --version 2>/dev/null | head -1 | \
4165          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4166   
4167   glibcpp_gnu_ld_version=`echo $ldver | \
4168          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4169
4170   # Set --gc-sections.
4171   if test "$with_gnu_ld" = "notbroken"; then
4172     # GNU ld it is!  Joy and bunny rabbits!
4173
4174     # All these tests are for C++; save the language and the compiler flags.
4175     # Need to do this so that g++ won't try to link in libstdc++
4176     ac_test_CFLAGS="${CFLAGS+set}"
4177     ac_save_CFLAGS="$CFLAGS"
4178     CFLAGS='-x c++  -Wl,--gc-sections'
4179
4180     # Check for -Wl,--gc-sections
4181     # XXX This test is broken at the moment, as symbols required for
4182     # linking are now in libsupc++ (not built yet.....). In addition, 
4183     # this test has cored on solaris in the past. In addition,
4184     # --gc-sections doesn't really work at the moment (keeps on discarding
4185     # used sections, first .eh_frame and now some of the glibc sections for
4186     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4187     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4188 echo "configure:4189: checking for ld that supports -Wl,--gc-sections" >&5
4189     if test "$cross_compiling" = yes; then
4190   ac_sectionLDflags=yes
4191 else
4192   cat > conftest.$ac_ext <<EOF
4193 #line 4194 "configure"
4194 #include "confdefs.h"
4195
4196      int main(void) 
4197      {
4198        try { throw 1; }
4199        catch (...) { };
4200        return 0;
4201      }
4202     
4203 EOF
4204 if { (eval echo configure:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4205 then
4206   ac_sectionLDflags=yes
4207 else
4208   echo "configure: failed program was:" >&5
4209   cat conftest.$ac_ext >&5
4210   rm -fr conftest*
4211   ac_sectionLDflags=no
4212 fi
4213 rm -fr conftest*
4214 fi
4215
4216     if test "$ac_test_CFLAGS" = set; then
4217       CFLAGS="$ac_save_CFLAGS"
4218     else
4219       # this is the suspicious part
4220       CFLAGS=''
4221     fi
4222     if test "$ac_sectionLDflags" = "yes"; then
4223       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4224     fi
4225     echo "$ac_t""$ac_sectionLDflags" 1>&6
4226   fi
4227
4228   # Set linker optimization flags.
4229   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4230     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4231   fi
4232
4233   
4234   
4235
4236       
4237     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4238 echo "configure:4239: checking for main in -lm" >&5
4239 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4241   echo $ac_n "(cached) $ac_c" 1>&6
4242 else
4243   ac_save_LIBS="$LIBS"
4244 LIBS="-lm  $LIBS"
4245 cat > conftest.$ac_ext <<EOF
4246 #line 4247 "configure"
4247 #include "confdefs.h"
4248
4249 int main() {
4250 main()
4251 ; return 0; }
4252 EOF
4253 if { (eval echo configure:4254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4254   rm -rf conftest*
4255   eval "ac_cv_lib_$ac_lib_var=yes"
4256 else
4257   echo "configure: failed program was:" >&5
4258   cat conftest.$ac_ext >&5
4259   rm -rf conftest*
4260   eval "ac_cv_lib_$ac_lib_var=no"
4261 fi
4262 rm -f conftest*
4263 LIBS="$ac_save_LIBS"
4264
4265 fi
4266 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4267   echo "$ac_t""yes" 1>&6
4268     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4269     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4270   cat >> confdefs.h <<EOF
4271 #define $ac_tr_lib 1
4272 EOF
4273
4274   LIBS="-lm $LIBS"
4275
4276 else
4277   echo "$ac_t""no" 1>&6
4278 fi
4279
4280   for ac_func in nan copysignf
4281 do
4282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4283 echo "configure:4284: checking for $ac_func" >&5
4284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4285   echo $ac_n "(cached) $ac_c" 1>&6
4286 else
4287   cat > conftest.$ac_ext <<EOF
4288 #line 4289 "configure"
4289 #include "confdefs.h"
4290 /* System header to define __stub macros and hopefully few prototypes,
4291     which can conflict with char $ac_func(); below.  */
4292 #include <assert.h>
4293 /* Override any gcc2 internal prototype to avoid an error.  */
4294 /* We use char because int might match the return type of a gcc2
4295     builtin and then its argument prototype would still apply.  */
4296 char $ac_func();
4297
4298 int main() {
4299
4300 /* The GNU C library defines this for functions which it implements
4301     to always fail with ENOSYS.  Some functions are actually named
4302     something starting with __ and the normal name is an alias.  */
4303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4304 choke me
4305 #else
4306 $ac_func();
4307 #endif
4308
4309 ; return 0; }
4310 EOF
4311 if { (eval echo configure:4312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4312   rm -rf conftest*
4313   eval "ac_cv_func_$ac_func=yes"
4314 else
4315   echo "configure: failed program was:" >&5
4316   cat conftest.$ac_ext >&5
4317   rm -rf conftest*
4318   eval "ac_cv_func_$ac_func=no"
4319 fi
4320 rm -f conftest*
4321 fi
4322
4323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4324   echo "$ac_t""yes" 1>&6
4325     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4326   cat >> confdefs.h <<EOF
4327 #define $ac_tr_func 1
4328 EOF
4329  
4330 else
4331   echo "$ac_t""no" 1>&6
4332 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4333 fi
4334 done
4335
4336
4337     for ac_func in __signbit
4338 do
4339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4340 echo "configure:4341: checking for $ac_func" >&5
4341 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4342   echo $ac_n "(cached) $ac_c" 1>&6
4343 else
4344   cat > conftest.$ac_ext <<EOF
4345 #line 4346 "configure"
4346 #include "confdefs.h"
4347 /* System header to define __stub macros and hopefully few prototypes,
4348     which can conflict with char $ac_func(); below.  */
4349 #include <assert.h>
4350 /* Override any gcc2 internal prototype to avoid an error.  */
4351 /* We use char because int might match the return type of a gcc2
4352     builtin and then its argument prototype would still apply.  */
4353 char $ac_func();
4354
4355 int main() {
4356
4357 /* The GNU C library defines this for functions which it implements
4358     to always fail with ENOSYS.  Some functions are actually named
4359     something starting with __ and the normal name is an alias.  */
4360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4361 choke me
4362 #else
4363 $ac_func();
4364 #endif
4365
4366 ; return 0; }
4367 EOF
4368 if { (eval echo configure:4369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4369   rm -rf conftest*
4370   eval "ac_cv_func_$ac_func=yes"
4371 else
4372   echo "configure: failed program was:" >&5
4373   cat conftest.$ac_ext >&5
4374   rm -rf conftest*
4375   eval "ac_cv_func_$ac_func=no"
4376 fi
4377 rm -f conftest*
4378 fi
4379
4380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4381   echo "$ac_t""yes" 1>&6
4382     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4383   cat >> confdefs.h <<EOF
4384 #define $ac_tr_func 1
4385 EOF
4386  
4387 else
4388   echo "$ac_t""no" 1>&6
4389 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4390 fi
4391 done
4392
4393   for ac_func in __signbitf
4394 do
4395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4396 echo "configure:4397: checking for $ac_func" >&5
4397 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4398   echo $ac_n "(cached) $ac_c" 1>&6
4399 else
4400   cat > conftest.$ac_ext <<EOF
4401 #line 4402 "configure"
4402 #include "confdefs.h"
4403 /* System header to define __stub macros and hopefully few prototypes,
4404     which can conflict with char $ac_func(); below.  */
4405 #include <assert.h>
4406 /* Override any gcc2 internal prototype to avoid an error.  */
4407 /* We use char because int might match the return type of a gcc2
4408     builtin and then its argument prototype would still apply.  */
4409 char $ac_func();
4410
4411 int main() {
4412
4413 /* The GNU C library defines this for functions which it implements
4414     to always fail with ENOSYS.  Some functions are actually named
4415     something starting with __ and the normal name is an alias.  */
4416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4417 choke me
4418 #else
4419 $ac_func();
4420 #endif
4421
4422 ; return 0; }
4423 EOF
4424 if { (eval echo configure:4425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4425   rm -rf conftest*
4426   eval "ac_cv_func_$ac_func=yes"
4427 else
4428   echo "configure: failed program was:" >&5
4429   cat conftest.$ac_ext >&5
4430   rm -rf conftest*
4431   eval "ac_cv_func_$ac_func=no"
4432 fi
4433 rm -f conftest*
4434 fi
4435
4436 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4437   echo "$ac_t""yes" 1>&6
4438     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4439   cat >> confdefs.h <<EOF
4440 #define $ac_tr_func 1
4441 EOF
4442  
4443 else
4444   echo "$ac_t""no" 1>&6
4445 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4446 fi
4447 done
4448
4449
4450           if test x$ac_cv_func_copysignl = x"yes"; then
4451     for ac_func in __signbitl
4452 do
4453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4454 echo "configure:4455: checking for $ac_func" >&5
4455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4456   echo $ac_n "(cached) $ac_c" 1>&6
4457 else
4458   cat > conftest.$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4461 /* System header to define __stub macros and hopefully few prototypes,
4462     which can conflict with char $ac_func(); below.  */
4463 #include <assert.h>
4464 /* Override any gcc2 internal prototype to avoid an error.  */
4465 /* We use char because int might match the return type of a gcc2
4466     builtin and then its argument prototype would still apply.  */
4467 char $ac_func();
4468
4469 int main() {
4470
4471 /* The GNU C library defines this for functions which it implements
4472     to always fail with ENOSYS.  Some functions are actually named
4473     something starting with __ and the normal name is an alias.  */
4474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4475 choke me
4476 #else
4477 $ac_func();
4478 #endif
4479
4480 ; return 0; }
4481 EOF
4482 if { (eval echo configure:4483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4483   rm -rf conftest*
4484   eval "ac_cv_func_$ac_func=yes"
4485 else
4486   echo "configure: failed program was:" >&5
4487   cat conftest.$ac_ext >&5
4488   rm -rf conftest*
4489   eval "ac_cv_func_$ac_func=no"
4490 fi
4491 rm -f conftest*
4492 fi
4493
4494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4495   echo "$ac_t""yes" 1>&6
4496     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4497   cat >> confdefs.h <<EOF
4498 #define $ac_tr_func 1
4499 EOF
4500  
4501 else
4502   echo "$ac_t""no" 1>&6
4503 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4504 fi
4505 done
4506
4507   fi
4508
4509   
4510
4511       
4512
4513       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4514 echo "configure:4515: checking for mbstate_t" >&5
4515   cat > conftest.$ac_ext <<EOF
4516 #line 4517 "configure"
4517 #include "confdefs.h"
4518 #include <wchar.h>
4519 int main() {
4520 mbstate_t teststate;
4521 ; return 0; }
4522 EOF
4523 if { (eval echo configure:4524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4524   rm -rf conftest*
4525   have_mbstate_t=yes
4526 else
4527   echo "configure: failed program was:" >&5
4528   cat conftest.$ac_ext >&5
4529   rm -rf conftest*
4530   have_mbstate_t=no
4531 fi
4532 rm -f conftest*
4533   echo "$ac_t""$have_mbstate_t" 1>&6
4534   if test x"$have_mbstate_t" = xyes; then
4535     cat >> confdefs.h <<\EOF
4536 #define HAVE_MBSTATE_T 1
4537 EOF
4538
4539   fi
4540
4541     for ac_hdr in wchar.h
4542 do
4543 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4544 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4545 echo "configure:4546: checking for $ac_hdr" >&5
4546 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4547   echo $ac_n "(cached) $ac_c" 1>&6
4548 else
4549   cat > conftest.$ac_ext <<EOF
4550 #line 4551 "configure"
4551 #include "confdefs.h"
4552 #include <$ac_hdr>
4553 EOF
4554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4555 { (eval echo configure:4556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4557 if test -z "$ac_err"; then
4558   rm -rf conftest*
4559   eval "ac_cv_header_$ac_safe=yes"
4560 else
4561   echo "$ac_err" >&5
4562   echo "configure: failed program was:" >&5
4563   cat conftest.$ac_ext >&5
4564   rm -rf conftest*
4565   eval "ac_cv_header_$ac_safe=no"
4566 fi
4567 rm -f conftest*
4568 fi
4569 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4570   echo "$ac_t""yes" 1>&6
4571     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4572   cat >> confdefs.h <<EOF
4573 #define $ac_tr_hdr 1
4574 EOF
4575  ac_has_wchar_h=yes
4576 else
4577   echo "$ac_t""no" 1>&6
4578 ac_has_wchar_h=no
4579 fi
4580 done
4581
4582   for ac_hdr in wctype.h
4583 do
4584 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4585 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4586 echo "configure:4587: checking for $ac_hdr" >&5
4587 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4588   echo $ac_n "(cached) $ac_c" 1>&6
4589 else
4590   cat > conftest.$ac_ext <<EOF
4591 #line 4592 "configure"
4592 #include "confdefs.h"
4593 #include <$ac_hdr>
4594 EOF
4595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4596 { (eval echo configure:4597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4598 if test -z "$ac_err"; then
4599   rm -rf conftest*
4600   eval "ac_cv_header_$ac_safe=yes"
4601 else
4602   echo "$ac_err" >&5
4603   echo "configure: failed program was:" >&5
4604   cat conftest.$ac_ext >&5
4605   rm -rf conftest*
4606   eval "ac_cv_header_$ac_safe=no"
4607 fi
4608 rm -f conftest*
4609 fi
4610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4611   echo "$ac_t""yes" 1>&6
4612     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4613   cat >> confdefs.h <<EOF
4614 #define $ac_tr_hdr 1
4615 EOF
4616  ac_has_wctype_h=yes
4617 else
4618   echo "$ac_t""no" 1>&6
4619 ac_has_wctype_h=no
4620 fi
4621 done
4622
4623   
4624     if test x"$ac_has_wchar_h" = xyes &&
4625      test x"$ac_has_wctype_h" = xyes &&
4626      test x"$enable_c_mbchar" != xno; then
4627       
4628             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4629 echo "configure:4630: checking for WCHAR_MIN and WCHAR_MAX" >&5
4630     cat > conftest.$ac_ext <<EOF
4631 #line 4632 "configure"
4632 #include "confdefs.h"
4633 #include <wchar.h>
4634 int main() {
4635 int i = WCHAR_MIN; int j = WCHAR_MAX;
4636 ; return 0; }
4637 EOF
4638 if { (eval echo configure:4639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4639   rm -rf conftest*
4640   has_wchar_minmax=yes
4641 else
4642   echo "configure: failed program was:" >&5
4643   cat conftest.$ac_ext >&5
4644   rm -rf conftest*
4645   has_wchar_minmax=no
4646 fi
4647 rm -f conftest*
4648     echo "$ac_t""$has_wchar_minmax" 1>&6
4649     
4650             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4651 echo "configure:4652: checking for WEOF" >&5
4652     cat > conftest.$ac_ext <<EOF
4653 #line 4654 "configure"
4654 #include "confdefs.h"
4655
4656       #include <wchar.h>
4657       #include <stddef.h>
4658 int main() {
4659 wint_t i = WEOF;
4660 ; return 0; }
4661 EOF
4662 if { (eval echo configure:4663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4663   rm -rf conftest*
4664   has_weof=yes
4665 else
4666   echo "configure: failed program was:" >&5
4667   cat conftest.$ac_ext >&5
4668   rm -rf conftest*
4669   has_weof=no
4670 fi
4671 rm -f conftest*
4672     echo "$ac_t""$has_weof" 1>&6
4673   
4674         ac_wfuncs=yes
4675     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4676 do
4677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4678 echo "configure:4679: checking for $ac_func" >&5
4679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4680   echo $ac_n "(cached) $ac_c" 1>&6
4681 else
4682   cat > conftest.$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4685 /* System header to define __stub macros and hopefully few prototypes,
4686     which can conflict with char $ac_func(); below.  */
4687 #include <assert.h>
4688 /* Override any gcc2 internal prototype to avoid an error.  */
4689 /* We use char because int might match the return type of a gcc2
4690     builtin and then its argument prototype would still apply.  */
4691 char $ac_func();
4692
4693 int main() {
4694
4695 /* The GNU C library defines this for functions which it implements
4696     to always fail with ENOSYS.  Some functions are actually named
4697     something starting with __ and the normal name is an alias.  */
4698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4699 choke me
4700 #else
4701 $ac_func();
4702 #endif
4703
4704 ; return 0; }
4705 EOF
4706 if { (eval echo configure:4707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4707   rm -rf conftest*
4708   eval "ac_cv_func_$ac_func=yes"
4709 else
4710   echo "configure: failed program was:" >&5
4711   cat conftest.$ac_ext >&5
4712   rm -rf conftest*
4713   eval "ac_cv_func_$ac_func=no"
4714 fi
4715 rm -f conftest*
4716 fi
4717
4718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4719   echo "$ac_t""yes" 1>&6
4720     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4721   cat >> confdefs.h <<EOF
4722 #define $ac_tr_func 1
4723 EOF
4724  
4725 else
4726   echo "$ac_t""no" 1>&6
4727 \
4728     ac_wfuncs=no
4729 fi
4730 done
4731
4732   
4733         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4734     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4735     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4736     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4737     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4738     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4739 do
4740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4741 echo "configure:4742: checking for $ac_func" >&5
4742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4743   echo $ac_n "(cached) $ac_c" 1>&6
4744 else
4745   cat > conftest.$ac_ext <<EOF
4746 #line 4747 "configure"
4747 #include "confdefs.h"
4748 /* System header to define __stub macros and hopefully few prototypes,
4749     which can conflict with char $ac_func(); below.  */
4750 #include <assert.h>
4751 /* Override any gcc2 internal prototype to avoid an error.  */
4752 /* We use char because int might match the return type of a gcc2
4753     builtin and then its argument prototype would still apply.  */
4754 char $ac_func();
4755
4756 int main() {
4757
4758 /* The GNU C library defines this for functions which it implements
4759     to always fail with ENOSYS.  Some functions are actually named
4760     something starting with __ and the normal name is an alias.  */
4761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4762 choke me
4763 #else
4764 $ac_func();
4765 #endif
4766
4767 ; return 0; }
4768 EOF
4769 if { (eval echo configure:4770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4770   rm -rf conftest*
4771   eval "ac_cv_func_$ac_func=yes"
4772 else
4773   echo "configure: failed program was:" >&5
4774   cat conftest.$ac_ext >&5
4775   rm -rf conftest*
4776   eval "ac_cv_func_$ac_func=no"
4777 fi
4778 rm -f conftest*
4779 fi
4780
4781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4782   echo "$ac_t""yes" 1>&6
4783     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4784   cat >> confdefs.h <<EOF
4785 #define $ac_tr_func 1
4786 EOF
4787  
4788 else
4789   echo "$ac_t""no" 1>&6
4790 \
4791     ac_wfuncs=no
4792 fi
4793 done
4794
4795
4796     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4797 echo "configure:4798: checking for ISO C99 wchar_t support" >&5
4798     if test x"$has_weof" = xyes &&
4799        test x"$has_wchar_minmax" = xyes &&
4800        test x"$ac_wfuncs" = xyes; then
4801       ac_isoC99_wchar_t=yes
4802     else
4803       ac_isoC99_wchar_t=no
4804     fi
4805     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4806   
4807             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4808 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4809 echo "configure:4810: checking for iconv.h" >&5
4810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4811   echo $ac_n "(cached) $ac_c" 1>&6
4812 else
4813   cat > conftest.$ac_ext <<EOF
4814 #line 4815 "configure"
4815 #include "confdefs.h"
4816 #include <iconv.h>
4817 EOF
4818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4819 { (eval echo configure:4820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4821 if test -z "$ac_err"; then
4822   rm -rf conftest*
4823   eval "ac_cv_header_$ac_safe=yes"
4824 else
4825   echo "$ac_err" >&5
4826   echo "configure: failed program was:" >&5
4827   cat conftest.$ac_ext >&5
4828   rm -rf conftest*
4829   eval "ac_cv_header_$ac_safe=no"
4830 fi
4831 rm -f conftest*
4832 fi
4833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4834   echo "$ac_t""yes" 1>&6
4835   ac_has_iconv_h=yes
4836 else
4837   echo "$ac_t""no" 1>&6
4838 ac_has_iconv_h=no
4839 fi
4840
4841     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4842 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4843 echo "configure:4844: checking for langinfo.h" >&5
4844 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4845   echo $ac_n "(cached) $ac_c" 1>&6
4846 else
4847   cat > conftest.$ac_ext <<EOF
4848 #line 4849 "configure"
4849 #include "confdefs.h"
4850 #include <langinfo.h>
4851 EOF
4852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4853 { (eval echo configure:4854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4855 if test -z "$ac_err"; then
4856   rm -rf conftest*
4857   eval "ac_cv_header_$ac_safe=yes"
4858 else
4859   echo "$ac_err" >&5
4860   echo "configure: failed program was:" >&5
4861   cat conftest.$ac_ext >&5
4862   rm -rf conftest*
4863   eval "ac_cv_header_$ac_safe=no"
4864 fi
4865 rm -f conftest*
4866 fi
4867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4868   echo "$ac_t""yes" 1>&6
4869   ac_has_langinfo_h=yes
4870 else
4871   echo "$ac_t""no" 1>&6
4872 ac_has_langinfo_h=no
4873 fi
4874
4875
4876         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4877 echo "configure:4878: checking for iconv in -liconv" >&5
4878 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4880   echo $ac_n "(cached) $ac_c" 1>&6
4881 else
4882   ac_save_LIBS="$LIBS"
4883 LIBS="-liconv  $LIBS"
4884 cat > conftest.$ac_ext <<EOF
4885 #line 4886 "configure"
4886 #include "confdefs.h"
4887 /* Override any gcc2 internal prototype to avoid an error.  */
4888 /* We use char because int might match the return type of a gcc2
4889     builtin and then its argument prototype would still apply.  */
4890 char iconv();
4891
4892 int main() {
4893 iconv()
4894 ; return 0; }
4895 EOF
4896 if { (eval echo configure:4897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4897   rm -rf conftest*
4898   eval "ac_cv_lib_$ac_lib_var=yes"
4899 else
4900   echo "configure: failed program was:" >&5
4901   cat conftest.$ac_ext >&5
4902   rm -rf conftest*
4903   eval "ac_cv_lib_$ac_lib_var=no"
4904 fi
4905 rm -f conftest*
4906 LIBS="$ac_save_LIBS"
4907
4908 fi
4909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4910   echo "$ac_t""yes" 1>&6
4911   libiconv="-liconv"
4912 else
4913   echo "$ac_t""no" 1>&6
4914 fi
4915
4916     ac_save_LIBS="$LIBS"
4917     LIBS="$LIBS $libiconv"
4918
4919     for ac_func in iconv_open iconv_close iconv nl_langinfo
4920 do
4921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4922 echo "configure:4923: checking for $ac_func" >&5
4923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4924   echo $ac_n "(cached) $ac_c" 1>&6
4925 else
4926   cat > conftest.$ac_ext <<EOF
4927 #line 4928 "configure"
4928 #include "confdefs.h"
4929 /* System header to define __stub macros and hopefully few prototypes,
4930     which can conflict with char $ac_func(); below.  */
4931 #include <assert.h>
4932 /* Override any gcc2 internal prototype to avoid an error.  */
4933 /* We use char because int might match the return type of a gcc2
4934     builtin and then its argument prototype would still apply.  */
4935 char $ac_func();
4936
4937 int main() {
4938
4939 /* The GNU C library defines this for functions which it implements
4940     to always fail with ENOSYS.  Some functions are actually named
4941     something starting with __ and the normal name is an alias.  */
4942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4943 choke me
4944 #else
4945 $ac_func();
4946 #endif
4947
4948 ; return 0; }
4949 EOF
4950 if { (eval echo configure:4951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4951   rm -rf conftest*
4952   eval "ac_cv_func_$ac_func=yes"
4953 else
4954   echo "configure: failed program was:" >&5
4955   cat conftest.$ac_ext >&5
4956   rm -rf conftest*
4957   eval "ac_cv_func_$ac_func=no"
4958 fi
4959 rm -f conftest*
4960 fi
4961
4962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4963   echo "$ac_t""yes" 1>&6
4964     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4965   cat >> confdefs.h <<EOF
4966 #define $ac_tr_func 1
4967 EOF
4968  \
4969     ac_XPG2funcs=yes
4970 else
4971   echo "$ac_t""no" 1>&6
4972 ac_XPG2funcs=no
4973 fi
4974 done
4975
4976   
4977     LIBS="$ac_save_LIBS"
4978
4979     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4980 echo "configure:4981: checking for XPG2 wchar_t support" >&5
4981     if test x"$ac_has_iconv_h" = xyes &&
4982        test x"$ac_has_langinfo_h" = xyes &&
4983        test x"$ac_XPG2funcs" = xyes; then
4984       ac_XPG2_wchar_t=yes
4985     else
4986       ac_XPG2_wchar_t=no
4987     fi
4988     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4989   
4990             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4991 echo "configure:4992: checking for enabled wchar_t specializations" >&5
4992     if test x"$ac_isoC99_wchar_t" = xyes &&
4993        test x"$ac_XPG2_wchar_t" = xyes; then
4994       cat >> confdefs.h <<\EOF
4995 #define _GLIBCPP_USE_WCHAR_T 1
4996 EOF
4997
4998       echo "$ac_t"""yes"" 1>&6
4999     else
5000       echo "$ac_t"""no"" 1>&6
5001     fi
5002   else
5003         echo "configure: warning: wchar_t support disabled." 1>&2
5004   fi
5005
5006       os_include_dir="config/os/gnu-linux"
5007       cat >> confdefs.h <<\EOF
5008 #define HAVE_COPYSIGN 1
5009 EOF
5010
5011       cat >> confdefs.h <<\EOF
5012 #define HAVE_COPYSIGNF 1
5013 EOF
5014
5015       cat >> confdefs.h <<\EOF
5016 #define HAVE_FINITEF 1
5017 EOF
5018
5019       cat >> confdefs.h <<\EOF
5020 #define HAVE_FREXPF 1
5021 EOF
5022
5023       cat >> confdefs.h <<\EOF
5024 #define HAVE_HYPOTF 1
5025 EOF
5026
5027       cat >> confdefs.h <<\EOF
5028 #define HAVE_SINCOS 1
5029 EOF
5030
5031       cat >> confdefs.h <<\EOF
5032 #define HAVE_SINCOSF 1
5033 EOF
5034
5035       if test x"long_double_math_on_this_cpu" = x"yes"; then
5036         cat >> confdefs.h <<\EOF
5037 #define HAVE_HYPOTL 1
5038 EOF
5039
5040       fi
5041       ;;
5042     *-hpux*)
5043       # Check for available headers.
5044       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5045         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5046         fp.h locale.h float.h inttypes.h
5047 do
5048 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5049 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5050 echo "configure:5051: checking for $ac_hdr" >&5
5051 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5052   echo $ac_n "(cached) $ac_c" 1>&6
5053 else
5054   cat > conftest.$ac_ext <<EOF
5055 #line 5056 "configure"
5056 #include "confdefs.h"
5057 #include <$ac_hdr>
5058 EOF
5059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5060 { (eval echo configure:5061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5062 if test -z "$ac_err"; then
5063   rm -rf conftest*
5064   eval "ac_cv_header_$ac_safe=yes"
5065 else
5066   echo "$ac_err" >&5
5067   echo "configure: failed program was:" >&5
5068   cat conftest.$ac_ext >&5
5069   rm -rf conftest*
5070   eval "ac_cv_header_$ac_safe=no"
5071 fi
5072 rm -f conftest*
5073 fi
5074 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5075   echo "$ac_t""yes" 1>&6
5076     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5077   cat >> confdefs.h <<EOF
5078 #define $ac_tr_hdr 1
5079 EOF
5080  
5081 else
5082   echo "$ac_t""no" 1>&6
5083 fi
5084 done
5085
5086       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5087       
5088       
5089   # If we're not using GNU ld, then there's no point in even trying these
5090   # tests.  Check for that first.  We should have already tested for gld
5091   # by now (in libtool), but require it now just to be safe...
5092   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5093   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5094   
5095
5096   # The name set by libtool depends on the version of libtool.  Shame on us
5097   # for depending on an impl detail, but c'est la vie.  Older versions used
5098   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5099   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5100   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5101   # set (hence we're using an older libtool), then set it.
5102   if test x${with_gnu_ld+set} != xset; then
5103     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5104       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5105       with_gnu_ld=no
5106     else
5107       with_gnu_ld=$ac_cv_prog_gnu_ld
5108     fi
5109   fi
5110
5111   # Start by getting the version number.  I think the libtool test already
5112   # does some of this, but throws away the result.
5113   
5114   ldver=`$LD --version 2>/dev/null | head -1 | \
5115          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5116   
5117   glibcpp_gnu_ld_version=`echo $ldver | \
5118          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5119
5120   # Set --gc-sections.
5121   if test "$with_gnu_ld" = "notbroken"; then
5122     # GNU ld it is!  Joy and bunny rabbits!
5123
5124     # All these tests are for C++; save the language and the compiler flags.
5125     # Need to do this so that g++ won't try to link in libstdc++
5126     ac_test_CFLAGS="${CFLAGS+set}"
5127     ac_save_CFLAGS="$CFLAGS"
5128     CFLAGS='-x c++  -Wl,--gc-sections'
5129
5130     # Check for -Wl,--gc-sections
5131     # XXX This test is broken at the moment, as symbols required for
5132     # linking are now in libsupc++ (not built yet.....). In addition, 
5133     # this test has cored on solaris in the past. In addition,
5134     # --gc-sections doesn't really work at the moment (keeps on discarding
5135     # used sections, first .eh_frame and now some of the glibc sections for
5136     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5137     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5138 echo "configure:5139: checking for ld that supports -Wl,--gc-sections" >&5
5139     if test "$cross_compiling" = yes; then
5140   ac_sectionLDflags=yes
5141 else
5142   cat > conftest.$ac_ext <<EOF
5143 #line 5144 "configure"
5144 #include "confdefs.h"
5145
5146      int main(void) 
5147      {
5148        try { throw 1; }
5149        catch (...) { };
5150        return 0;
5151      }
5152     
5153 EOF
5154 if { (eval echo configure:5155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5155 then
5156   ac_sectionLDflags=yes
5157 else
5158   echo "configure: failed program was:" >&5
5159   cat conftest.$ac_ext >&5
5160   rm -fr conftest*
5161   ac_sectionLDflags=no
5162 fi
5163 rm -fr conftest*
5164 fi
5165
5166     if test "$ac_test_CFLAGS" = set; then
5167       CFLAGS="$ac_save_CFLAGS"
5168     else
5169       # this is the suspicious part
5170       CFLAGS=''
5171     fi
5172     if test "$ac_sectionLDflags" = "yes"; then
5173       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5174     fi
5175     echo "$ac_t""$ac_sectionLDflags" 1>&6
5176   fi
5177
5178   # Set linker optimization flags.
5179   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5180     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5181   fi
5182
5183   
5184   
5185
5186       
5187     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5188 echo "configure:5189: checking for main in -lm" >&5
5189 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5190 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5191   echo $ac_n "(cached) $ac_c" 1>&6
5192 else
5193   ac_save_LIBS="$LIBS"
5194 LIBS="-lm  $LIBS"
5195 cat > conftest.$ac_ext <<EOF
5196 #line 5197 "configure"
5197 #include "confdefs.h"
5198
5199 int main() {
5200 main()
5201 ; return 0; }
5202 EOF
5203 if { (eval echo configure:5204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5204   rm -rf conftest*
5205   eval "ac_cv_lib_$ac_lib_var=yes"
5206 else
5207   echo "configure: failed program was:" >&5
5208   cat conftest.$ac_ext >&5
5209   rm -rf conftest*
5210   eval "ac_cv_lib_$ac_lib_var=no"
5211 fi
5212 rm -f conftest*
5213 LIBS="$ac_save_LIBS"
5214
5215 fi
5216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5217   echo "$ac_t""yes" 1>&6
5218     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5219     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5220   cat >> confdefs.h <<EOF
5221 #define $ac_tr_lib 1
5222 EOF
5223
5224   LIBS="-lm $LIBS"
5225
5226 else
5227   echo "$ac_t""no" 1>&6
5228 fi
5229
5230   for ac_func in nan copysignf
5231 do
5232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5233 echo "configure:5234: checking for $ac_func" >&5
5234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5235   echo $ac_n "(cached) $ac_c" 1>&6
5236 else
5237   cat > conftest.$ac_ext <<EOF
5238 #line 5239 "configure"
5239 #include "confdefs.h"
5240 /* System header to define __stub macros and hopefully few prototypes,
5241     which can conflict with char $ac_func(); below.  */
5242 #include <assert.h>
5243 /* Override any gcc2 internal prototype to avoid an error.  */
5244 /* We use char because int might match the return type of a gcc2
5245     builtin and then its argument prototype would still apply.  */
5246 char $ac_func();
5247
5248 int main() {
5249
5250 /* The GNU C library defines this for functions which it implements
5251     to always fail with ENOSYS.  Some functions are actually named
5252     something starting with __ and the normal name is an alias.  */
5253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5254 choke me
5255 #else
5256 $ac_func();
5257 #endif
5258
5259 ; return 0; }
5260 EOF
5261 if { (eval echo configure:5262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5262   rm -rf conftest*
5263   eval "ac_cv_func_$ac_func=yes"
5264 else
5265   echo "configure: failed program was:" >&5
5266   cat conftest.$ac_ext >&5
5267   rm -rf conftest*
5268   eval "ac_cv_func_$ac_func=no"
5269 fi
5270 rm -f conftest*
5271 fi
5272
5273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5274   echo "$ac_t""yes" 1>&6
5275     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5276   cat >> confdefs.h <<EOF
5277 #define $ac_tr_func 1
5278 EOF
5279  
5280 else
5281   echo "$ac_t""no" 1>&6
5282 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5283 fi
5284 done
5285
5286
5287     for ac_func in __signbit
5288 do
5289 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5290 echo "configure:5291: checking for $ac_func" >&5
5291 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5292   echo $ac_n "(cached) $ac_c" 1>&6
5293 else
5294   cat > conftest.$ac_ext <<EOF
5295 #line 5296 "configure"
5296 #include "confdefs.h"
5297 /* System header to define __stub macros and hopefully few prototypes,
5298     which can conflict with char $ac_func(); below.  */
5299 #include <assert.h>
5300 /* Override any gcc2 internal prototype to avoid an error.  */
5301 /* We use char because int might match the return type of a gcc2
5302     builtin and then its argument prototype would still apply.  */
5303 char $ac_func();
5304
5305 int main() {
5306
5307 /* The GNU C library defines this for functions which it implements
5308     to always fail with ENOSYS.  Some functions are actually named
5309     something starting with __ and the normal name is an alias.  */
5310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5311 choke me
5312 #else
5313 $ac_func();
5314 #endif
5315
5316 ; return 0; }
5317 EOF
5318 if { (eval echo configure:5319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5319   rm -rf conftest*
5320   eval "ac_cv_func_$ac_func=yes"
5321 else
5322   echo "configure: failed program was:" >&5
5323   cat conftest.$ac_ext >&5
5324   rm -rf conftest*
5325   eval "ac_cv_func_$ac_func=no"
5326 fi
5327 rm -f conftest*
5328 fi
5329
5330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5331   echo "$ac_t""yes" 1>&6
5332     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5333   cat >> confdefs.h <<EOF
5334 #define $ac_tr_func 1
5335 EOF
5336  
5337 else
5338   echo "$ac_t""no" 1>&6
5339 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5340 fi
5341 done
5342
5343   for ac_func in __signbitf
5344 do
5345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5346 echo "configure:5347: checking for $ac_func" >&5
5347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5348   echo $ac_n "(cached) $ac_c" 1>&6
5349 else
5350   cat > conftest.$ac_ext <<EOF
5351 #line 5352 "configure"
5352 #include "confdefs.h"
5353 /* System header to define __stub macros and hopefully few prototypes,
5354     which can conflict with char $ac_func(); below.  */
5355 #include <assert.h>
5356 /* Override any gcc2 internal prototype to avoid an error.  */
5357 /* We use char because int might match the return type of a gcc2
5358     builtin and then its argument prototype would still apply.  */
5359 char $ac_func();
5360
5361 int main() {
5362
5363 /* The GNU C library defines this for functions which it implements
5364     to always fail with ENOSYS.  Some functions are actually named
5365     something starting with __ and the normal name is an alias.  */
5366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5367 choke me
5368 #else
5369 $ac_func();
5370 #endif
5371
5372 ; return 0; }
5373 EOF
5374 if { (eval echo configure:5375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5375   rm -rf conftest*
5376   eval "ac_cv_func_$ac_func=yes"
5377 else
5378   echo "configure: failed program was:" >&5
5379   cat conftest.$ac_ext >&5
5380   rm -rf conftest*
5381   eval "ac_cv_func_$ac_func=no"
5382 fi
5383 rm -f conftest*
5384 fi
5385
5386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5387   echo "$ac_t""yes" 1>&6
5388     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5389   cat >> confdefs.h <<EOF
5390 #define $ac_tr_func 1
5391 EOF
5392  
5393 else
5394   echo "$ac_t""no" 1>&6
5395 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5396 fi
5397 done
5398
5399
5400           if test x$ac_cv_func_copysignl = x"yes"; then
5401     for ac_func in __signbitl
5402 do
5403 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5404 echo "configure:5405: checking for $ac_func" >&5
5405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5406   echo $ac_n "(cached) $ac_c" 1>&6
5407 else
5408   cat > conftest.$ac_ext <<EOF
5409 #line 5410 "configure"
5410 #include "confdefs.h"
5411 /* System header to define __stub macros and hopefully few prototypes,
5412     which can conflict with char $ac_func(); below.  */
5413 #include <assert.h>
5414 /* Override any gcc2 internal prototype to avoid an error.  */
5415 /* We use char because int might match the return type of a gcc2
5416     builtin and then its argument prototype would still apply.  */
5417 char $ac_func();
5418
5419 int main() {
5420
5421 /* The GNU C library defines this for functions which it implements
5422     to always fail with ENOSYS.  Some functions are actually named
5423     something starting with __ and the normal name is an alias.  */
5424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5425 choke me
5426 #else
5427 $ac_func();
5428 #endif
5429
5430 ; return 0; }
5431 EOF
5432 if { (eval echo configure:5433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5433   rm -rf conftest*
5434   eval "ac_cv_func_$ac_func=yes"
5435 else
5436   echo "configure: failed program was:" >&5
5437   cat conftest.$ac_ext >&5
5438   rm -rf conftest*
5439   eval "ac_cv_func_$ac_func=no"
5440 fi
5441 rm -f conftest*
5442 fi
5443
5444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5445   echo "$ac_t""yes" 1>&6
5446     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5447   cat >> confdefs.h <<EOF
5448 #define $ac_tr_func 1
5449 EOF
5450  
5451 else
5452   echo "$ac_t""no" 1>&6
5453 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5454 fi
5455 done
5456
5457   fi
5458
5459   
5460
5461       
5462
5463       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5464 echo "configure:5465: checking for mbstate_t" >&5
5465   cat > conftest.$ac_ext <<EOF
5466 #line 5467 "configure"
5467 #include "confdefs.h"
5468 #include <wchar.h>
5469 int main() {
5470 mbstate_t teststate;
5471 ; return 0; }
5472 EOF
5473 if { (eval echo configure:5474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5474   rm -rf conftest*
5475   have_mbstate_t=yes
5476 else
5477   echo "configure: failed program was:" >&5
5478   cat conftest.$ac_ext >&5
5479   rm -rf conftest*
5480   have_mbstate_t=no
5481 fi
5482 rm -f conftest*
5483   echo "$ac_t""$have_mbstate_t" 1>&6
5484   if test x"$have_mbstate_t" = xyes; then
5485     cat >> confdefs.h <<\EOF
5486 #define HAVE_MBSTATE_T 1
5487 EOF
5488
5489   fi
5490
5491     for ac_hdr in wchar.h
5492 do
5493 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5494 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5495 echo "configure:5496: checking for $ac_hdr" >&5
5496 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5497   echo $ac_n "(cached) $ac_c" 1>&6
5498 else
5499   cat > conftest.$ac_ext <<EOF
5500 #line 5501 "configure"
5501 #include "confdefs.h"
5502 #include <$ac_hdr>
5503 EOF
5504 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5505 { (eval echo configure:5506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5506 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5507 if test -z "$ac_err"; then
5508   rm -rf conftest*
5509   eval "ac_cv_header_$ac_safe=yes"
5510 else
5511   echo "$ac_err" >&5
5512   echo "configure: failed program was:" >&5
5513   cat conftest.$ac_ext >&5
5514   rm -rf conftest*
5515   eval "ac_cv_header_$ac_safe=no"
5516 fi
5517 rm -f conftest*
5518 fi
5519 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5520   echo "$ac_t""yes" 1>&6
5521     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5522   cat >> confdefs.h <<EOF
5523 #define $ac_tr_hdr 1
5524 EOF
5525  ac_has_wchar_h=yes
5526 else
5527   echo "$ac_t""no" 1>&6
5528 ac_has_wchar_h=no
5529 fi
5530 done
5531
5532   for ac_hdr in wctype.h
5533 do
5534 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5535 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5536 echo "configure:5537: checking for $ac_hdr" >&5
5537 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5538   echo $ac_n "(cached) $ac_c" 1>&6
5539 else
5540   cat > conftest.$ac_ext <<EOF
5541 #line 5542 "configure"
5542 #include "confdefs.h"
5543 #include <$ac_hdr>
5544 EOF
5545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5546 { (eval echo configure:5547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5548 if test -z "$ac_err"; then
5549   rm -rf conftest*
5550   eval "ac_cv_header_$ac_safe=yes"
5551 else
5552   echo "$ac_err" >&5
5553   echo "configure: failed program was:" >&5
5554   cat conftest.$ac_ext >&5
5555   rm -rf conftest*
5556   eval "ac_cv_header_$ac_safe=no"
5557 fi
5558 rm -f conftest*
5559 fi
5560 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5561   echo "$ac_t""yes" 1>&6
5562     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5563   cat >> confdefs.h <<EOF
5564 #define $ac_tr_hdr 1
5565 EOF
5566  ac_has_wctype_h=yes
5567 else
5568   echo "$ac_t""no" 1>&6
5569 ac_has_wctype_h=no
5570 fi
5571 done
5572
5573   
5574     if test x"$ac_has_wchar_h" = xyes &&
5575      test x"$ac_has_wctype_h" = xyes &&
5576      test x"$enable_c_mbchar" != xno; then
5577       
5578             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5579 echo "configure:5580: checking for WCHAR_MIN and WCHAR_MAX" >&5
5580     cat > conftest.$ac_ext <<EOF
5581 #line 5582 "configure"
5582 #include "confdefs.h"
5583 #include <wchar.h>
5584 int main() {
5585 int i = WCHAR_MIN; int j = WCHAR_MAX;
5586 ; return 0; }
5587 EOF
5588 if { (eval echo configure:5589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5589   rm -rf conftest*
5590   has_wchar_minmax=yes
5591 else
5592   echo "configure: failed program was:" >&5
5593   cat conftest.$ac_ext >&5
5594   rm -rf conftest*
5595   has_wchar_minmax=no
5596 fi
5597 rm -f conftest*
5598     echo "$ac_t""$has_wchar_minmax" 1>&6
5599     
5600             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5601 echo "configure:5602: checking for WEOF" >&5
5602     cat > conftest.$ac_ext <<EOF
5603 #line 5604 "configure"
5604 #include "confdefs.h"
5605
5606       #include <wchar.h>
5607       #include <stddef.h>
5608 int main() {
5609 wint_t i = WEOF;
5610 ; return 0; }
5611 EOF
5612 if { (eval echo configure:5613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5613   rm -rf conftest*
5614   has_weof=yes
5615 else
5616   echo "configure: failed program was:" >&5
5617   cat conftest.$ac_ext >&5
5618   rm -rf conftest*
5619   has_weof=no
5620 fi
5621 rm -f conftest*
5622     echo "$ac_t""$has_weof" 1>&6
5623   
5624         ac_wfuncs=yes
5625     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5626 do
5627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5628 echo "configure:5629: checking for $ac_func" >&5
5629 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5630   echo $ac_n "(cached) $ac_c" 1>&6
5631 else
5632   cat > conftest.$ac_ext <<EOF
5633 #line 5634 "configure"
5634 #include "confdefs.h"
5635 /* System header to define __stub macros and hopefully few prototypes,
5636     which can conflict with char $ac_func(); below.  */
5637 #include <assert.h>
5638 /* Override any gcc2 internal prototype to avoid an error.  */
5639 /* We use char because int might match the return type of a gcc2
5640     builtin and then its argument prototype would still apply.  */
5641 char $ac_func();
5642
5643 int main() {
5644
5645 /* The GNU C library defines this for functions which it implements
5646     to always fail with ENOSYS.  Some functions are actually named
5647     something starting with __ and the normal name is an alias.  */
5648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5649 choke me
5650 #else
5651 $ac_func();
5652 #endif
5653
5654 ; return 0; }
5655 EOF
5656 if { (eval echo configure:5657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5657   rm -rf conftest*
5658   eval "ac_cv_func_$ac_func=yes"
5659 else
5660   echo "configure: failed program was:" >&5
5661   cat conftest.$ac_ext >&5
5662   rm -rf conftest*
5663   eval "ac_cv_func_$ac_func=no"
5664 fi
5665 rm -f conftest*
5666 fi
5667
5668 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5669   echo "$ac_t""yes" 1>&6
5670     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5671   cat >> confdefs.h <<EOF
5672 #define $ac_tr_func 1
5673 EOF
5674  
5675 else
5676   echo "$ac_t""no" 1>&6
5677 \
5678     ac_wfuncs=no
5679 fi
5680 done
5681
5682   
5683         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5684     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5685     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5686     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5687     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5688     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5689 do
5690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5691 echo "configure:5692: checking for $ac_func" >&5
5692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5693   echo $ac_n "(cached) $ac_c" 1>&6
5694 else
5695   cat > conftest.$ac_ext <<EOF
5696 #line 5697 "configure"
5697 #include "confdefs.h"
5698 /* System header to define __stub macros and hopefully few prototypes,
5699     which can conflict with char $ac_func(); below.  */
5700 #include <assert.h>
5701 /* Override any gcc2 internal prototype to avoid an error.  */
5702 /* We use char because int might match the return type of a gcc2
5703     builtin and then its argument prototype would still apply.  */
5704 char $ac_func();
5705
5706 int main() {
5707
5708 /* The GNU C library defines this for functions which it implements
5709     to always fail with ENOSYS.  Some functions are actually named
5710     something starting with __ and the normal name is an alias.  */
5711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5712 choke me
5713 #else
5714 $ac_func();
5715 #endif
5716
5717 ; return 0; }
5718 EOF
5719 if { (eval echo configure:5720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5720   rm -rf conftest*
5721   eval "ac_cv_func_$ac_func=yes"
5722 else
5723   echo "configure: failed program was:" >&5
5724   cat conftest.$ac_ext >&5
5725   rm -rf conftest*
5726   eval "ac_cv_func_$ac_func=no"
5727 fi
5728 rm -f conftest*
5729 fi
5730
5731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5732   echo "$ac_t""yes" 1>&6
5733     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5734   cat >> confdefs.h <<EOF
5735 #define $ac_tr_func 1
5736 EOF
5737  
5738 else
5739   echo "$ac_t""no" 1>&6
5740 \
5741     ac_wfuncs=no
5742 fi
5743 done
5744
5745
5746     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5747 echo "configure:5748: checking for ISO C99 wchar_t support" >&5
5748     if test x"$has_weof" = xyes &&
5749        test x"$has_wchar_minmax" = xyes &&
5750        test x"$ac_wfuncs" = xyes; then
5751       ac_isoC99_wchar_t=yes
5752     else
5753       ac_isoC99_wchar_t=no
5754     fi
5755     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5756   
5757             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5758 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5759 echo "configure:5760: checking for iconv.h" >&5
5760 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5761   echo $ac_n "(cached) $ac_c" 1>&6
5762 else
5763   cat > conftest.$ac_ext <<EOF
5764 #line 5765 "configure"
5765 #include "confdefs.h"
5766 #include <iconv.h>
5767 EOF
5768 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5769 { (eval echo configure:5770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5770 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5771 if test -z "$ac_err"; then
5772   rm -rf conftest*
5773   eval "ac_cv_header_$ac_safe=yes"
5774 else
5775   echo "$ac_err" >&5
5776   echo "configure: failed program was:" >&5
5777   cat conftest.$ac_ext >&5
5778   rm -rf conftest*
5779   eval "ac_cv_header_$ac_safe=no"
5780 fi
5781 rm -f conftest*
5782 fi
5783 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5784   echo "$ac_t""yes" 1>&6
5785   ac_has_iconv_h=yes
5786 else
5787   echo "$ac_t""no" 1>&6
5788 ac_has_iconv_h=no
5789 fi
5790
5791     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5792 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5793 echo "configure:5794: checking for langinfo.h" >&5
5794 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5795   echo $ac_n "(cached) $ac_c" 1>&6
5796 else
5797   cat > conftest.$ac_ext <<EOF
5798 #line 5799 "configure"
5799 #include "confdefs.h"
5800 #include <langinfo.h>
5801 EOF
5802 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5803 { (eval echo configure:5804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5804 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5805 if test -z "$ac_err"; then
5806   rm -rf conftest*
5807   eval "ac_cv_header_$ac_safe=yes"
5808 else
5809   echo "$ac_err" >&5
5810   echo "configure: failed program was:" >&5
5811   cat conftest.$ac_ext >&5
5812   rm -rf conftest*
5813   eval "ac_cv_header_$ac_safe=no"
5814 fi
5815 rm -f conftest*
5816 fi
5817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5818   echo "$ac_t""yes" 1>&6
5819   ac_has_langinfo_h=yes
5820 else
5821   echo "$ac_t""no" 1>&6
5822 ac_has_langinfo_h=no
5823 fi
5824
5825
5826         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5827 echo "configure:5828: checking for iconv in -liconv" >&5
5828 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5829 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5830   echo $ac_n "(cached) $ac_c" 1>&6
5831 else
5832   ac_save_LIBS="$LIBS"
5833 LIBS="-liconv  $LIBS"
5834 cat > conftest.$ac_ext <<EOF
5835 #line 5836 "configure"
5836 #include "confdefs.h"
5837 /* Override any gcc2 internal prototype to avoid an error.  */
5838 /* We use char because int might match the return type of a gcc2
5839     builtin and then its argument prototype would still apply.  */
5840 char iconv();
5841
5842 int main() {
5843 iconv()
5844 ; return 0; }
5845 EOF
5846 if { (eval echo configure:5847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5847   rm -rf conftest*
5848   eval "ac_cv_lib_$ac_lib_var=yes"
5849 else
5850   echo "configure: failed program was:" >&5
5851   cat conftest.$ac_ext >&5
5852   rm -rf conftest*
5853   eval "ac_cv_lib_$ac_lib_var=no"
5854 fi
5855 rm -f conftest*
5856 LIBS="$ac_save_LIBS"
5857
5858 fi
5859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5860   echo "$ac_t""yes" 1>&6
5861   libiconv="-liconv"
5862 else
5863   echo "$ac_t""no" 1>&6
5864 fi
5865
5866     ac_save_LIBS="$LIBS"
5867     LIBS="$LIBS $libiconv"
5868
5869     for ac_func in iconv_open iconv_close iconv nl_langinfo
5870 do
5871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5872 echo "configure:5873: checking for $ac_func" >&5
5873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5874   echo $ac_n "(cached) $ac_c" 1>&6
5875 else
5876   cat > conftest.$ac_ext <<EOF
5877 #line 5878 "configure"
5878 #include "confdefs.h"
5879 /* System header to define __stub macros and hopefully few prototypes,
5880     which can conflict with char $ac_func(); below.  */
5881 #include <assert.h>
5882 /* Override any gcc2 internal prototype to avoid an error.  */
5883 /* We use char because int might match the return type of a gcc2
5884     builtin and then its argument prototype would still apply.  */
5885 char $ac_func();
5886
5887 int main() {
5888
5889 /* The GNU C library defines this for functions which it implements
5890     to always fail with ENOSYS.  Some functions are actually named
5891     something starting with __ and the normal name is an alias.  */
5892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5893 choke me
5894 #else
5895 $ac_func();
5896 #endif
5897
5898 ; return 0; }
5899 EOF
5900 if { (eval echo configure:5901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5901   rm -rf conftest*
5902   eval "ac_cv_func_$ac_func=yes"
5903 else
5904   echo "configure: failed program was:" >&5
5905   cat conftest.$ac_ext >&5
5906   rm -rf conftest*
5907   eval "ac_cv_func_$ac_func=no"
5908 fi
5909 rm -f conftest*
5910 fi
5911
5912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5913   echo "$ac_t""yes" 1>&6
5914     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5915   cat >> confdefs.h <<EOF
5916 #define $ac_tr_func 1
5917 EOF
5918  \
5919     ac_XPG2funcs=yes
5920 else
5921   echo "$ac_t""no" 1>&6
5922 ac_XPG2funcs=no
5923 fi
5924 done
5925
5926   
5927     LIBS="$ac_save_LIBS"
5928
5929     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5930 echo "configure:5931: checking for XPG2 wchar_t support" >&5
5931     if test x"$ac_has_iconv_h" = xyes &&
5932        test x"$ac_has_langinfo_h" = xyes &&
5933        test x"$ac_XPG2funcs" = xyes; then
5934       ac_XPG2_wchar_t=yes
5935     else
5936       ac_XPG2_wchar_t=no
5937     fi
5938     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5939   
5940             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5941 echo "configure:5942: checking for enabled wchar_t specializations" >&5
5942     if test x"$ac_isoC99_wchar_t" = xyes &&
5943        test x"$ac_XPG2_wchar_t" = xyes; then
5944       cat >> confdefs.h <<\EOF
5945 #define _GLIBCPP_USE_WCHAR_T 1
5946 EOF
5947
5948       echo "$ac_t"""yes"" 1>&6
5949     else
5950       echo "$ac_t"""no"" 1>&6
5951     fi
5952   else
5953         echo "configure: warning: wchar_t support disabled." 1>&2
5954   fi
5955
5956       os_include_dir="config/os/hpux"
5957       cat >> confdefs.h <<\EOF
5958 #define HAVE_COPYSIGN 1
5959 EOF
5960
5961       cat >> confdefs.h <<\EOF
5962 #define HAVE_COPYSIGNF 1
5963 EOF
5964
5965       cat >> confdefs.h <<\EOF
5966 #define HAVE_FINITEF 1
5967 EOF
5968
5969       cat >> confdefs.h <<\EOF
5970 #define HAVE_FREXPF 1
5971 EOF
5972
5973       cat >> confdefs.h <<\EOF
5974 #define HAVE_HYPOT 1
5975 EOF
5976
5977       cat >> confdefs.h <<\EOF
5978 #define HAVE_SINCOS 1
5979 EOF
5980
5981       cat >> confdefs.h <<\EOF
5982 #define HAVE_SINCOSF 1
5983 EOF
5984
5985       ;;
5986     *-netbsd*)
5987       # Check for available headers.
5988       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5989         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5990         fp.h locale.h float.h inttypes.h
5991 do
5992 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5993 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5994 echo "configure:5995: checking for $ac_hdr" >&5
5995 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5996   echo $ac_n "(cached) $ac_c" 1>&6
5997 else
5998   cat > conftest.$ac_ext <<EOF
5999 #line 6000 "configure"
6000 #include "confdefs.h"
6001 #include <$ac_hdr>
6002 EOF
6003 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6004 { (eval echo configure:6005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6005 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6006 if test -z "$ac_err"; then
6007   rm -rf conftest*
6008   eval "ac_cv_header_$ac_safe=yes"
6009 else
6010   echo "$ac_err" >&5
6011   echo "configure: failed program was:" >&5
6012   cat conftest.$ac_ext >&5
6013   rm -rf conftest*
6014   eval "ac_cv_header_$ac_safe=no"
6015 fi
6016 rm -f conftest*
6017 fi
6018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6019   echo "$ac_t""yes" 1>&6
6020     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6021   cat >> confdefs.h <<EOF
6022 #define $ac_tr_hdr 1
6023 EOF
6024  
6025 else
6026   echo "$ac_t""no" 1>&6
6027 fi
6028 done
6029
6030       SECTION_FLAGS='-ffunction-sections -fdata-sections'
6031        
6032       
6033   # If we're not using GNU ld, then there's no point in even trying these
6034   # tests.  Check for that first.  We should have already tested for gld
6035   # by now (in libtool), but require it now just to be safe...
6036   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6037   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6038   
6039
6040   # The name set by libtool depends on the version of libtool.  Shame on us
6041   # for depending on an impl detail, but c'est la vie.  Older versions used
6042   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6043   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6044   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6045   # set (hence we're using an older libtool), then set it.
6046   if test x${with_gnu_ld+set} != xset; then
6047     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6048       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6049       with_gnu_ld=no
6050     else
6051       with_gnu_ld=$ac_cv_prog_gnu_ld
6052     fi
6053   fi
6054
6055   # Start by getting the version number.  I think the libtool test already
6056   # does some of this, but throws away the result.
6057   
6058   ldver=`$LD --version 2>/dev/null | head -1 | \
6059          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6060   
6061   glibcpp_gnu_ld_version=`echo $ldver | \
6062          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6063
6064   # Set --gc-sections.
6065   if test "$with_gnu_ld" = "notbroken"; then
6066     # GNU ld it is!  Joy and bunny rabbits!
6067
6068     # All these tests are for C++; save the language and the compiler flags.
6069     # Need to do this so that g++ won't try to link in libstdc++
6070     ac_test_CFLAGS="${CFLAGS+set}"
6071     ac_save_CFLAGS="$CFLAGS"
6072     CFLAGS='-x c++  -Wl,--gc-sections'
6073
6074     # Check for -Wl,--gc-sections
6075     # XXX This test is broken at the moment, as symbols required for
6076     # linking are now in libsupc++ (not built yet.....). In addition, 
6077     # this test has cored on solaris in the past. In addition,
6078     # --gc-sections doesn't really work at the moment (keeps on discarding
6079     # used sections, first .eh_frame and now some of the glibc sections for
6080     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6081     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6082 echo "configure:6083: checking for ld that supports -Wl,--gc-sections" >&5
6083     if test "$cross_compiling" = yes; then
6084   ac_sectionLDflags=yes
6085 else
6086   cat > conftest.$ac_ext <<EOF
6087 #line 6088 "configure"
6088 #include "confdefs.h"
6089
6090      int main(void) 
6091      {
6092        try { throw 1; }
6093        catch (...) { };
6094        return 0;
6095      }
6096     
6097 EOF
6098 if { (eval echo configure:6099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6099 then
6100   ac_sectionLDflags=yes
6101 else
6102   echo "configure: failed program was:" >&5
6103   cat conftest.$ac_ext >&5
6104   rm -fr conftest*
6105   ac_sectionLDflags=no
6106 fi
6107 rm -fr conftest*
6108 fi
6109
6110     if test "$ac_test_CFLAGS" = set; then
6111       CFLAGS="$ac_save_CFLAGS"
6112     else
6113       # this is the suspicious part
6114       CFLAGS=''
6115     fi
6116     if test "$ac_sectionLDflags" = "yes"; then
6117       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6118     fi
6119     echo "$ac_t""$ac_sectionLDflags" 1>&6
6120   fi
6121
6122   # Set linker optimization flags.
6123   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6124     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6125   fi
6126
6127   
6128   
6129
6130       
6131     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6132 echo "configure:6133: checking for main in -lm" >&5
6133 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6134 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6135   echo $ac_n "(cached) $ac_c" 1>&6
6136 else
6137   ac_save_LIBS="$LIBS"
6138 LIBS="-lm  $LIBS"
6139 cat > conftest.$ac_ext <<EOF
6140 #line 6141 "configure"
6141 #include "confdefs.h"
6142
6143 int main() {
6144 main()
6145 ; return 0; }
6146 EOF
6147 if { (eval echo configure:6148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6148   rm -rf conftest*
6149   eval "ac_cv_lib_$ac_lib_var=yes"
6150 else
6151   echo "configure: failed program was:" >&5
6152   cat conftest.$ac_ext >&5
6153   rm -rf conftest*
6154   eval "ac_cv_lib_$ac_lib_var=no"
6155 fi
6156 rm -f conftest*
6157 LIBS="$ac_save_LIBS"
6158
6159 fi
6160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6161   echo "$ac_t""yes" 1>&6
6162     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6163     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6164   cat >> confdefs.h <<EOF
6165 #define $ac_tr_lib 1
6166 EOF
6167
6168   LIBS="-lm $LIBS"
6169
6170 else
6171   echo "$ac_t""no" 1>&6
6172 fi
6173
6174   for ac_func in nan copysignf
6175 do
6176 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6177 echo "configure:6178: checking for $ac_func" >&5
6178 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6179   echo $ac_n "(cached) $ac_c" 1>&6
6180 else
6181   cat > conftest.$ac_ext <<EOF
6182 #line 6183 "configure"
6183 #include "confdefs.h"
6184 /* System header to define __stub macros and hopefully few prototypes,
6185     which can conflict with char $ac_func(); below.  */
6186 #include <assert.h>
6187 /* Override any gcc2 internal prototype to avoid an error.  */
6188 /* We use char because int might match the return type of a gcc2
6189     builtin and then its argument prototype would still apply.  */
6190 char $ac_func();
6191
6192 int main() {
6193
6194 /* The GNU C library defines this for functions which it implements
6195     to always fail with ENOSYS.  Some functions are actually named
6196     something starting with __ and the normal name is an alias.  */
6197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6198 choke me
6199 #else
6200 $ac_func();
6201 #endif
6202
6203 ; return 0; }
6204 EOF
6205 if { (eval echo configure:6206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6206   rm -rf conftest*
6207   eval "ac_cv_func_$ac_func=yes"
6208 else
6209   echo "configure: failed program was:" >&5
6210   cat conftest.$ac_ext >&5
6211   rm -rf conftest*
6212   eval "ac_cv_func_$ac_func=no"
6213 fi
6214 rm -f conftest*
6215 fi
6216
6217 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6218   echo "$ac_t""yes" 1>&6
6219     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6220   cat >> confdefs.h <<EOF
6221 #define $ac_tr_func 1
6222 EOF
6223  
6224 else
6225   echo "$ac_t""no" 1>&6
6226 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6227 fi
6228 done
6229
6230
6231     for ac_func in __signbit
6232 do
6233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6234 echo "configure:6235: checking for $ac_func" >&5
6235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6236   echo $ac_n "(cached) $ac_c" 1>&6
6237 else
6238   cat > conftest.$ac_ext <<EOF
6239 #line 6240 "configure"
6240 #include "confdefs.h"
6241 /* System header to define __stub macros and hopefully few prototypes,
6242     which can conflict with char $ac_func(); below.  */
6243 #include <assert.h>
6244 /* Override any gcc2 internal prototype to avoid an error.  */
6245 /* We use char because int might match the return type of a gcc2
6246     builtin and then its argument prototype would still apply.  */
6247 char $ac_func();
6248
6249 int main() {
6250
6251 /* The GNU C library defines this for functions which it implements
6252     to always fail with ENOSYS.  Some functions are actually named
6253     something starting with __ and the normal name is an alias.  */
6254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6255 choke me
6256 #else
6257 $ac_func();
6258 #endif
6259
6260 ; return 0; }
6261 EOF
6262 if { (eval echo configure:6263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6263   rm -rf conftest*
6264   eval "ac_cv_func_$ac_func=yes"
6265 else
6266   echo "configure: failed program was:" >&5
6267   cat conftest.$ac_ext >&5
6268   rm -rf conftest*
6269   eval "ac_cv_func_$ac_func=no"
6270 fi
6271 rm -f conftest*
6272 fi
6273
6274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6275   echo "$ac_t""yes" 1>&6
6276     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6277   cat >> confdefs.h <<EOF
6278 #define $ac_tr_func 1
6279 EOF
6280  
6281 else
6282   echo "$ac_t""no" 1>&6
6283 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6284 fi
6285 done
6286
6287   for ac_func in __signbitf
6288 do
6289 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6290 echo "configure:6291: checking for $ac_func" >&5
6291 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6292   echo $ac_n "(cached) $ac_c" 1>&6
6293 else
6294   cat > conftest.$ac_ext <<EOF
6295 #line 6296 "configure"
6296 #include "confdefs.h"
6297 /* System header to define __stub macros and hopefully few prototypes,
6298     which can conflict with char $ac_func(); below.  */
6299 #include <assert.h>
6300 /* Override any gcc2 internal prototype to avoid an error.  */
6301 /* We use char because int might match the return type of a gcc2
6302     builtin and then its argument prototype would still apply.  */
6303 char $ac_func();
6304
6305 int main() {
6306
6307 /* The GNU C library defines this for functions which it implements
6308     to always fail with ENOSYS.  Some functions are actually named
6309     something starting with __ and the normal name is an alias.  */
6310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6311 choke me
6312 #else
6313 $ac_func();
6314 #endif
6315
6316 ; return 0; }
6317 EOF
6318 if { (eval echo configure:6319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6319   rm -rf conftest*
6320   eval "ac_cv_func_$ac_func=yes"
6321 else
6322   echo "configure: failed program was:" >&5
6323   cat conftest.$ac_ext >&5
6324   rm -rf conftest*
6325   eval "ac_cv_func_$ac_func=no"
6326 fi
6327 rm -f conftest*
6328 fi
6329
6330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6331   echo "$ac_t""yes" 1>&6
6332     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6333   cat >> confdefs.h <<EOF
6334 #define $ac_tr_func 1
6335 EOF
6336  
6337 else
6338   echo "$ac_t""no" 1>&6
6339 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6340 fi
6341 done
6342
6343
6344           if test x$ac_cv_func_copysignl = x"yes"; then
6345     for ac_func in __signbitl
6346 do
6347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6348 echo "configure:6349: checking for $ac_func" >&5
6349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6350   echo $ac_n "(cached) $ac_c" 1>&6
6351 else
6352   cat > conftest.$ac_ext <<EOF
6353 #line 6354 "configure"
6354 #include "confdefs.h"
6355 /* System header to define __stub macros and hopefully few prototypes,
6356     which can conflict with char $ac_func(); below.  */
6357 #include <assert.h>
6358 /* Override any gcc2 internal prototype to avoid an error.  */
6359 /* We use char because int might match the return type of a gcc2
6360     builtin and then its argument prototype would still apply.  */
6361 char $ac_func();
6362
6363 int main() {
6364
6365 /* The GNU C library defines this for functions which it implements
6366     to always fail with ENOSYS.  Some functions are actually named
6367     something starting with __ and the normal name is an alias.  */
6368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6369 choke me
6370 #else
6371 $ac_func();
6372 #endif
6373
6374 ; return 0; }
6375 EOF
6376 if { (eval echo configure:6377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6377   rm -rf conftest*
6378   eval "ac_cv_func_$ac_func=yes"
6379 else
6380   echo "configure: failed program was:" >&5
6381   cat conftest.$ac_ext >&5
6382   rm -rf conftest*
6383   eval "ac_cv_func_$ac_func=no"
6384 fi
6385 rm -f conftest*
6386 fi
6387
6388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6389   echo "$ac_t""yes" 1>&6
6390     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6391   cat >> confdefs.h <<EOF
6392 #define $ac_tr_func 1
6393 EOF
6394  
6395 else
6396   echo "$ac_t""no" 1>&6
6397 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6398 fi
6399 done
6400
6401   fi
6402
6403   
6404
6405       
6406
6407       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6408 echo "configure:6409: checking for mbstate_t" >&5
6409   cat > conftest.$ac_ext <<EOF
6410 #line 6411 "configure"
6411 #include "confdefs.h"
6412 #include <wchar.h>
6413 int main() {
6414 mbstate_t teststate;
6415 ; return 0; }
6416 EOF
6417 if { (eval echo configure:6418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6418   rm -rf conftest*
6419   have_mbstate_t=yes
6420 else
6421   echo "configure: failed program was:" >&5
6422   cat conftest.$ac_ext >&5
6423   rm -rf conftest*
6424   have_mbstate_t=no
6425 fi
6426 rm -f conftest*
6427   echo "$ac_t""$have_mbstate_t" 1>&6
6428   if test x"$have_mbstate_t" = xyes; then
6429     cat >> confdefs.h <<\EOF
6430 #define HAVE_MBSTATE_T 1
6431 EOF
6432
6433   fi
6434
6435     for ac_hdr in wchar.h
6436 do
6437 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6438 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6439 echo "configure:6440: checking for $ac_hdr" >&5
6440 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6441   echo $ac_n "(cached) $ac_c" 1>&6
6442 else
6443   cat > conftest.$ac_ext <<EOF
6444 #line 6445 "configure"
6445 #include "confdefs.h"
6446 #include <$ac_hdr>
6447 EOF
6448 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6449 { (eval echo configure:6450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6450 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6451 if test -z "$ac_err"; then
6452   rm -rf conftest*
6453   eval "ac_cv_header_$ac_safe=yes"
6454 else
6455   echo "$ac_err" >&5
6456   echo "configure: failed program was:" >&5
6457   cat conftest.$ac_ext >&5
6458   rm -rf conftest*
6459   eval "ac_cv_header_$ac_safe=no"
6460 fi
6461 rm -f conftest*
6462 fi
6463 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6464   echo "$ac_t""yes" 1>&6
6465     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6466   cat >> confdefs.h <<EOF
6467 #define $ac_tr_hdr 1
6468 EOF
6469  ac_has_wchar_h=yes
6470 else
6471   echo "$ac_t""no" 1>&6
6472 ac_has_wchar_h=no
6473 fi
6474 done
6475
6476   for ac_hdr in wctype.h
6477 do
6478 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6479 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6480 echo "configure:6481: checking for $ac_hdr" >&5
6481 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6482   echo $ac_n "(cached) $ac_c" 1>&6
6483 else
6484   cat > conftest.$ac_ext <<EOF
6485 #line 6486 "configure"
6486 #include "confdefs.h"
6487 #include <$ac_hdr>
6488 EOF
6489 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6490 { (eval echo configure:6491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6491 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6492 if test -z "$ac_err"; then
6493   rm -rf conftest*
6494   eval "ac_cv_header_$ac_safe=yes"
6495 else
6496   echo "$ac_err" >&5
6497   echo "configure: failed program was:" >&5
6498   cat conftest.$ac_ext >&5
6499   rm -rf conftest*
6500   eval "ac_cv_header_$ac_safe=no"
6501 fi
6502 rm -f conftest*
6503 fi
6504 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6505   echo "$ac_t""yes" 1>&6
6506     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6507   cat >> confdefs.h <<EOF
6508 #define $ac_tr_hdr 1
6509 EOF
6510  ac_has_wctype_h=yes
6511 else
6512   echo "$ac_t""no" 1>&6
6513 ac_has_wctype_h=no
6514 fi
6515 done
6516
6517   
6518     if test x"$ac_has_wchar_h" = xyes &&
6519      test x"$ac_has_wctype_h" = xyes &&
6520      test x"$enable_c_mbchar" != xno; then
6521       
6522             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6523 echo "configure:6524: checking for WCHAR_MIN and WCHAR_MAX" >&5
6524     cat > conftest.$ac_ext <<EOF
6525 #line 6526 "configure"
6526 #include "confdefs.h"
6527 #include <wchar.h>
6528 int main() {
6529 int i = WCHAR_MIN; int j = WCHAR_MAX;
6530 ; return 0; }
6531 EOF
6532 if { (eval echo configure:6533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6533   rm -rf conftest*
6534   has_wchar_minmax=yes
6535 else
6536   echo "configure: failed program was:" >&5
6537   cat conftest.$ac_ext >&5
6538   rm -rf conftest*
6539   has_wchar_minmax=no
6540 fi
6541 rm -f conftest*
6542     echo "$ac_t""$has_wchar_minmax" 1>&6
6543     
6544             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6545 echo "configure:6546: checking for WEOF" >&5
6546     cat > conftest.$ac_ext <<EOF
6547 #line 6548 "configure"
6548 #include "confdefs.h"
6549
6550       #include <wchar.h>
6551       #include <stddef.h>
6552 int main() {
6553 wint_t i = WEOF;
6554 ; return 0; }
6555 EOF
6556 if { (eval echo configure:6557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6557   rm -rf conftest*
6558   has_weof=yes
6559 else
6560   echo "configure: failed program was:" >&5
6561   cat conftest.$ac_ext >&5
6562   rm -rf conftest*
6563   has_weof=no
6564 fi
6565 rm -f conftest*
6566     echo "$ac_t""$has_weof" 1>&6
6567   
6568         ac_wfuncs=yes
6569     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6570 do
6571 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6572 echo "configure:6573: checking for $ac_func" >&5
6573 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6574   echo $ac_n "(cached) $ac_c" 1>&6
6575 else
6576   cat > conftest.$ac_ext <<EOF
6577 #line 6578 "configure"
6578 #include "confdefs.h"
6579 /* System header to define __stub macros and hopefully few prototypes,
6580     which can conflict with char $ac_func(); below.  */
6581 #include <assert.h>
6582 /* Override any gcc2 internal prototype to avoid an error.  */
6583 /* We use char because int might match the return type of a gcc2
6584     builtin and then its argument prototype would still apply.  */
6585 char $ac_func();
6586
6587 int main() {
6588
6589 /* The GNU C library defines this for functions which it implements
6590     to always fail with ENOSYS.  Some functions are actually named
6591     something starting with __ and the normal name is an alias.  */
6592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6593 choke me
6594 #else
6595 $ac_func();
6596 #endif
6597
6598 ; return 0; }
6599 EOF
6600 if { (eval echo configure:6601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6601   rm -rf conftest*
6602   eval "ac_cv_func_$ac_func=yes"
6603 else
6604   echo "configure: failed program was:" >&5
6605   cat conftest.$ac_ext >&5
6606   rm -rf conftest*
6607   eval "ac_cv_func_$ac_func=no"
6608 fi
6609 rm -f conftest*
6610 fi
6611
6612 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6613   echo "$ac_t""yes" 1>&6
6614     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6615   cat >> confdefs.h <<EOF
6616 #define $ac_tr_func 1
6617 EOF
6618  
6619 else
6620   echo "$ac_t""no" 1>&6
6621 \
6622     ac_wfuncs=no
6623 fi
6624 done
6625
6626   
6627         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6628     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6629     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6630     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6631     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6632     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6633 do
6634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6635 echo "configure:6636: checking for $ac_func" >&5
6636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6637   echo $ac_n "(cached) $ac_c" 1>&6
6638 else
6639   cat > conftest.$ac_ext <<EOF
6640 #line 6641 "configure"
6641 #include "confdefs.h"
6642 /* System header to define __stub macros and hopefully few prototypes,
6643     which can conflict with char $ac_func(); below.  */
6644 #include <assert.h>
6645 /* Override any gcc2 internal prototype to avoid an error.  */
6646 /* We use char because int might match the return type of a gcc2
6647     builtin and then its argument prototype would still apply.  */
6648 char $ac_func();
6649
6650 int main() {
6651
6652 /* The GNU C library defines this for functions which it implements
6653     to always fail with ENOSYS.  Some functions are actually named
6654     something starting with __ and the normal name is an alias.  */
6655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6656 choke me
6657 #else
6658 $ac_func();
6659 #endif
6660
6661 ; return 0; }
6662 EOF
6663 if { (eval echo configure:6664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6664   rm -rf conftest*
6665   eval "ac_cv_func_$ac_func=yes"
6666 else
6667   echo "configure: failed program was:" >&5
6668   cat conftest.$ac_ext >&5
6669   rm -rf conftest*
6670   eval "ac_cv_func_$ac_func=no"
6671 fi
6672 rm -f conftest*
6673 fi
6674
6675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6676   echo "$ac_t""yes" 1>&6
6677     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6678   cat >> confdefs.h <<EOF
6679 #define $ac_tr_func 1
6680 EOF
6681  
6682 else
6683   echo "$ac_t""no" 1>&6
6684 \
6685     ac_wfuncs=no
6686 fi
6687 done
6688
6689
6690     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6691 echo "configure:6692: checking for ISO C99 wchar_t support" >&5
6692     if test x"$has_weof" = xyes &&
6693        test x"$has_wchar_minmax" = xyes &&
6694        test x"$ac_wfuncs" = xyes; then
6695       ac_isoC99_wchar_t=yes
6696     else
6697       ac_isoC99_wchar_t=no
6698     fi
6699     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6700   
6701             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6702 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6703 echo "configure:6704: checking for iconv.h" >&5
6704 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6705   echo $ac_n "(cached) $ac_c" 1>&6
6706 else
6707   cat > conftest.$ac_ext <<EOF
6708 #line 6709 "configure"
6709 #include "confdefs.h"
6710 #include <iconv.h>
6711 EOF
6712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6713 { (eval echo configure:6714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6715 if test -z "$ac_err"; then
6716   rm -rf conftest*
6717   eval "ac_cv_header_$ac_safe=yes"
6718 else
6719   echo "$ac_err" >&5
6720   echo "configure: failed program was:" >&5
6721   cat conftest.$ac_ext >&5
6722   rm -rf conftest*
6723   eval "ac_cv_header_$ac_safe=no"
6724 fi
6725 rm -f conftest*
6726 fi
6727 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6728   echo "$ac_t""yes" 1>&6
6729   ac_has_iconv_h=yes
6730 else
6731   echo "$ac_t""no" 1>&6
6732 ac_has_iconv_h=no
6733 fi
6734
6735     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6736 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6737 echo "configure:6738: checking for langinfo.h" >&5
6738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6739   echo $ac_n "(cached) $ac_c" 1>&6
6740 else
6741   cat > conftest.$ac_ext <<EOF
6742 #line 6743 "configure"
6743 #include "confdefs.h"
6744 #include <langinfo.h>
6745 EOF
6746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6747 { (eval echo configure:6748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6749 if test -z "$ac_err"; then
6750   rm -rf conftest*
6751   eval "ac_cv_header_$ac_safe=yes"
6752 else
6753   echo "$ac_err" >&5
6754   echo "configure: failed program was:" >&5
6755   cat conftest.$ac_ext >&5
6756   rm -rf conftest*
6757   eval "ac_cv_header_$ac_safe=no"
6758 fi
6759 rm -f conftest*
6760 fi
6761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6762   echo "$ac_t""yes" 1>&6
6763   ac_has_langinfo_h=yes
6764 else
6765   echo "$ac_t""no" 1>&6
6766 ac_has_langinfo_h=no
6767 fi
6768
6769
6770         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6771 echo "configure:6772: checking for iconv in -liconv" >&5
6772 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6774   echo $ac_n "(cached) $ac_c" 1>&6
6775 else
6776   ac_save_LIBS="$LIBS"
6777 LIBS="-liconv  $LIBS"
6778 cat > conftest.$ac_ext <<EOF
6779 #line 6780 "configure"
6780 #include "confdefs.h"
6781 /* Override any gcc2 internal prototype to avoid an error.  */
6782 /* We use char because int might match the return type of a gcc2
6783     builtin and then its argument prototype would still apply.  */
6784 char iconv();
6785
6786 int main() {
6787 iconv()
6788 ; return 0; }
6789 EOF
6790 if { (eval echo configure:6791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6791   rm -rf conftest*
6792   eval "ac_cv_lib_$ac_lib_var=yes"
6793 else
6794   echo "configure: failed program was:" >&5
6795   cat conftest.$ac_ext >&5
6796   rm -rf conftest*
6797   eval "ac_cv_lib_$ac_lib_var=no"
6798 fi
6799 rm -f conftest*
6800 LIBS="$ac_save_LIBS"
6801
6802 fi
6803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6804   echo "$ac_t""yes" 1>&6
6805   libiconv="-liconv"
6806 else
6807   echo "$ac_t""no" 1>&6
6808 fi
6809
6810     ac_save_LIBS="$LIBS"
6811     LIBS="$LIBS $libiconv"
6812
6813     for ac_func in iconv_open iconv_close iconv nl_langinfo
6814 do
6815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6816 echo "configure:6817: checking for $ac_func" >&5
6817 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6818   echo $ac_n "(cached) $ac_c" 1>&6
6819 else
6820   cat > conftest.$ac_ext <<EOF
6821 #line 6822 "configure"
6822 #include "confdefs.h"
6823 /* System header to define __stub macros and hopefully few prototypes,
6824     which can conflict with char $ac_func(); below.  */
6825 #include <assert.h>
6826 /* Override any gcc2 internal prototype to avoid an error.  */
6827 /* We use char because int might match the return type of a gcc2
6828     builtin and then its argument prototype would still apply.  */
6829 char $ac_func();
6830
6831 int main() {
6832
6833 /* The GNU C library defines this for functions which it implements
6834     to always fail with ENOSYS.  Some functions are actually named
6835     something starting with __ and the normal name is an alias.  */
6836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6837 choke me
6838 #else
6839 $ac_func();
6840 #endif
6841
6842 ; return 0; }
6843 EOF
6844 if { (eval echo configure:6845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6845   rm -rf conftest*
6846   eval "ac_cv_func_$ac_func=yes"
6847 else
6848   echo "configure: failed program was:" >&5
6849   cat conftest.$ac_ext >&5
6850   rm -rf conftest*
6851   eval "ac_cv_func_$ac_func=no"
6852 fi
6853 rm -f conftest*
6854 fi
6855
6856 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6857   echo "$ac_t""yes" 1>&6
6858     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6859   cat >> confdefs.h <<EOF
6860 #define $ac_tr_func 1
6861 EOF
6862  \
6863     ac_XPG2funcs=yes
6864 else
6865   echo "$ac_t""no" 1>&6
6866 ac_XPG2funcs=no
6867 fi
6868 done
6869
6870   
6871     LIBS="$ac_save_LIBS"
6872
6873     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6874 echo "configure:6875: checking for XPG2 wchar_t support" >&5
6875     if test x"$ac_has_iconv_h" = xyes &&
6876        test x"$ac_has_langinfo_h" = xyes &&
6877        test x"$ac_XPG2funcs" = xyes; then
6878       ac_XPG2_wchar_t=yes
6879     else
6880       ac_XPG2_wchar_t=no
6881     fi
6882     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6883   
6884             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6885 echo "configure:6886: checking for enabled wchar_t specializations" >&5
6886     if test x"$ac_isoC99_wchar_t" = xyes &&
6887        test x"$ac_XPG2_wchar_t" = xyes; then
6888       cat >> confdefs.h <<\EOF
6889 #define _GLIBCPP_USE_WCHAR_T 1
6890 EOF
6891
6892       echo "$ac_t"""yes"" 1>&6
6893     else
6894       echo "$ac_t"""no"" 1>&6
6895     fi
6896   else
6897         echo "configure: warning: wchar_t support disabled." 1>&2
6898   fi
6899
6900       os_include_dir="config/os/bsd/netbsd"
6901       cat >> confdefs.h <<\EOF
6902 #define HAVE_COPYSIGN 1
6903 EOF
6904
6905       cat >> confdefs.h <<\EOF
6906 #define HAVE_COPYSIGNF 1
6907 EOF
6908
6909       cat >> confdefs.h <<\EOF
6910 #define HAVE_FINITEF 1
6911 EOF
6912
6913       cat >> confdefs.h <<\EOF
6914 #define HAVE_FREXPF 1
6915 EOF
6916
6917       cat >> confdefs.h <<\EOF
6918 #define HAVE_HYPOTF 1
6919 EOF
6920
6921       ;;
6922     *-mingw32*)
6923       for ac_hdr in sys/types.h locale.h float.h
6924 do
6925 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6926 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6927 echo "configure:6928: checking for $ac_hdr" >&5
6928 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6929   echo $ac_n "(cached) $ac_c" 1>&6
6930 else
6931   cat > conftest.$ac_ext <<EOF
6932 #line 6933 "configure"
6933 #include "confdefs.h"
6934 #include <$ac_hdr>
6935 EOF
6936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6937 { (eval echo configure:6938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6939 if test -z "$ac_err"; then
6940   rm -rf conftest*
6941   eval "ac_cv_header_$ac_safe=yes"
6942 else
6943   echo "$ac_err" >&5
6944   echo "configure: failed program was:" >&5
6945   cat conftest.$ac_ext >&5
6946   rm -rf conftest*
6947   eval "ac_cv_header_$ac_safe=no"
6948 fi
6949 rm -f conftest*
6950 fi
6951 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6952   echo "$ac_t""yes" 1>&6
6953     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6954   cat >> confdefs.h <<EOF
6955 #define $ac_tr_hdr 1
6956 EOF
6957  
6958 else
6959   echo "$ac_t""no" 1>&6
6960 fi
6961 done
6962
6963       
6964   # If we're not using GNU ld, then there's no point in even trying these
6965   # tests.  Check for that first.  We should have already tested for gld
6966   # by now (in libtool), but require it now just to be safe...
6967   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6968   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6969   
6970
6971   # The name set by libtool depends on the version of libtool.  Shame on us
6972   # for depending on an impl detail, but c'est la vie.  Older versions used
6973   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6974   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6975   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6976   # set (hence we're using an older libtool), then set it.
6977   if test x${with_gnu_ld+set} != xset; then
6978     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6979       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6980       with_gnu_ld=no
6981     else
6982       with_gnu_ld=$ac_cv_prog_gnu_ld
6983     fi
6984   fi
6985
6986   # Start by getting the version number.  I think the libtool test already
6987   # does some of this, but throws away the result.
6988   
6989   ldver=`$LD --version 2>/dev/null | head -1 | \
6990          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6991   
6992   glibcpp_gnu_ld_version=`echo $ldver | \
6993          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6994
6995   # Set --gc-sections.
6996   if test "$with_gnu_ld" = "notbroken"; then
6997     # GNU ld it is!  Joy and bunny rabbits!
6998
6999     # All these tests are for C++; save the language and the compiler flags.
7000     # Need to do this so that g++ won't try to link in libstdc++
7001     ac_test_CFLAGS="${CFLAGS+set}"
7002     ac_save_CFLAGS="$CFLAGS"
7003     CFLAGS='-x c++  -Wl,--gc-sections'
7004
7005     # Check for -Wl,--gc-sections
7006     # XXX This test is broken at the moment, as symbols required for
7007     # linking are now in libsupc++ (not built yet.....). In addition, 
7008     # this test has cored on solaris in the past. In addition,
7009     # --gc-sections doesn't really work at the moment (keeps on discarding
7010     # used sections, first .eh_frame and now some of the glibc sections for
7011     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7012     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7013 echo "configure:7014: checking for ld that supports -Wl,--gc-sections" >&5
7014     if test "$cross_compiling" = yes; then
7015   ac_sectionLDflags=yes
7016 else
7017   cat > conftest.$ac_ext <<EOF
7018 #line 7019 "configure"
7019 #include "confdefs.h"
7020
7021      int main(void) 
7022      {
7023        try { throw 1; }
7024        catch (...) { };
7025        return 0;
7026      }
7027     
7028 EOF
7029 if { (eval echo configure:7030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7030 then
7031   ac_sectionLDflags=yes
7032 else
7033   echo "configure: failed program was:" >&5
7034   cat conftest.$ac_ext >&5
7035   rm -fr conftest*
7036   ac_sectionLDflags=no
7037 fi
7038 rm -fr conftest*
7039 fi
7040
7041     if test "$ac_test_CFLAGS" = set; then
7042       CFLAGS="$ac_save_CFLAGS"
7043     else
7044       # this is the suspicious part
7045       CFLAGS=''
7046     fi
7047     if test "$ac_sectionLDflags" = "yes"; then
7048       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7049     fi
7050     echo "$ac_t""$ac_sectionLDflags" 1>&6
7051   fi
7052
7053   # Set linker optimization flags.
7054   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7055     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7056   fi
7057
7058   
7059   
7060
7061       
7062     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7063 echo "configure:7064: checking for main in -lm" >&5
7064 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7065 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7066   echo $ac_n "(cached) $ac_c" 1>&6
7067 else
7068   ac_save_LIBS="$LIBS"
7069 LIBS="-lm  $LIBS"
7070 cat > conftest.$ac_ext <<EOF
7071 #line 7072 "configure"
7072 #include "confdefs.h"
7073
7074 int main() {
7075 main()
7076 ; return 0; }
7077 EOF
7078 if { (eval echo configure:7079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7079   rm -rf conftest*
7080   eval "ac_cv_lib_$ac_lib_var=yes"
7081 else
7082   echo "configure: failed program was:" >&5
7083   cat conftest.$ac_ext >&5
7084   rm -rf conftest*
7085   eval "ac_cv_lib_$ac_lib_var=no"
7086 fi
7087 rm -f conftest*
7088 LIBS="$ac_save_LIBS"
7089
7090 fi
7091 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7092   echo "$ac_t""yes" 1>&6
7093     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7094     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7095   cat >> confdefs.h <<EOF
7096 #define $ac_tr_lib 1
7097 EOF
7098
7099   LIBS="-lm $LIBS"
7100
7101 else
7102   echo "$ac_t""no" 1>&6
7103 fi
7104
7105   for ac_func in nan copysignf
7106 do
7107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7108 echo "configure:7109: checking for $ac_func" >&5
7109 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7110   echo $ac_n "(cached) $ac_c" 1>&6
7111 else
7112   cat > conftest.$ac_ext <<EOF
7113 #line 7114 "configure"
7114 #include "confdefs.h"
7115 /* System header to define __stub macros and hopefully few prototypes,
7116     which can conflict with char $ac_func(); below.  */
7117 #include <assert.h>
7118 /* Override any gcc2 internal prototype to avoid an error.  */
7119 /* We use char because int might match the return type of a gcc2
7120     builtin and then its argument prototype would still apply.  */
7121 char $ac_func();
7122
7123 int main() {
7124
7125 /* The GNU C library defines this for functions which it implements
7126     to always fail with ENOSYS.  Some functions are actually named
7127     something starting with __ and the normal name is an alias.  */
7128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7129 choke me
7130 #else
7131 $ac_func();
7132 #endif
7133
7134 ; return 0; }
7135 EOF
7136 if { (eval echo configure:7137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7137   rm -rf conftest*
7138   eval "ac_cv_func_$ac_func=yes"
7139 else
7140   echo "configure: failed program was:" >&5
7141   cat conftest.$ac_ext >&5
7142   rm -rf conftest*
7143   eval "ac_cv_func_$ac_func=no"
7144 fi
7145 rm -f conftest*
7146 fi
7147
7148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7149   echo "$ac_t""yes" 1>&6
7150     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7151   cat >> confdefs.h <<EOF
7152 #define $ac_tr_func 1
7153 EOF
7154  
7155 else
7156   echo "$ac_t""no" 1>&6
7157 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7158 fi
7159 done
7160
7161
7162     for ac_func in __signbit
7163 do
7164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7165 echo "configure:7166: checking for $ac_func" >&5
7166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7167   echo $ac_n "(cached) $ac_c" 1>&6
7168 else
7169   cat > conftest.$ac_ext <<EOF
7170 #line 7171 "configure"
7171 #include "confdefs.h"
7172 /* System header to define __stub macros and hopefully few prototypes,
7173     which can conflict with char $ac_func(); below.  */
7174 #include <assert.h>
7175 /* Override any gcc2 internal prototype to avoid an error.  */
7176 /* We use char because int might match the return type of a gcc2
7177     builtin and then its argument prototype would still apply.  */
7178 char $ac_func();
7179
7180 int main() {
7181
7182 /* The GNU C library defines this for functions which it implements
7183     to always fail with ENOSYS.  Some functions are actually named
7184     something starting with __ and the normal name is an alias.  */
7185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7186 choke me
7187 #else
7188 $ac_func();
7189 #endif
7190
7191 ; return 0; }
7192 EOF
7193 if { (eval echo configure:7194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7194   rm -rf conftest*
7195   eval "ac_cv_func_$ac_func=yes"
7196 else
7197   echo "configure: failed program was:" >&5
7198   cat conftest.$ac_ext >&5
7199   rm -rf conftest*
7200   eval "ac_cv_func_$ac_func=no"
7201 fi
7202 rm -f conftest*
7203 fi
7204
7205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7206   echo "$ac_t""yes" 1>&6
7207     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7208   cat >> confdefs.h <<EOF
7209 #define $ac_tr_func 1
7210 EOF
7211  
7212 else
7213   echo "$ac_t""no" 1>&6
7214 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7215 fi
7216 done
7217
7218   for ac_func in __signbitf
7219 do
7220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7221 echo "configure:7222: checking for $ac_func" >&5
7222 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7223   echo $ac_n "(cached) $ac_c" 1>&6
7224 else
7225   cat > conftest.$ac_ext <<EOF
7226 #line 7227 "configure"
7227 #include "confdefs.h"
7228 /* System header to define __stub macros and hopefully few prototypes,
7229     which can conflict with char $ac_func(); below.  */
7230 #include <assert.h>
7231 /* Override any gcc2 internal prototype to avoid an error.  */
7232 /* We use char because int might match the return type of a gcc2
7233     builtin and then its argument prototype would still apply.  */
7234 char $ac_func();
7235
7236 int main() {
7237
7238 /* The GNU C library defines this for functions which it implements
7239     to always fail with ENOSYS.  Some functions are actually named
7240     something starting with __ and the normal name is an alias.  */
7241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7242 choke me
7243 #else
7244 $ac_func();
7245 #endif
7246
7247 ; return 0; }
7248 EOF
7249 if { (eval echo configure:7250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7250   rm -rf conftest*
7251   eval "ac_cv_func_$ac_func=yes"
7252 else
7253   echo "configure: failed program was:" >&5
7254   cat conftest.$ac_ext >&5
7255   rm -rf conftest*
7256   eval "ac_cv_func_$ac_func=no"
7257 fi
7258 rm -f conftest*
7259 fi
7260
7261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7262   echo "$ac_t""yes" 1>&6
7263     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7264   cat >> confdefs.h <<EOF
7265 #define $ac_tr_func 1
7266 EOF
7267  
7268 else
7269   echo "$ac_t""no" 1>&6
7270 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7271 fi
7272 done
7273
7274
7275           if test x$ac_cv_func_copysignl = x"yes"; then
7276     for ac_func in __signbitl
7277 do
7278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7279 echo "configure:7280: checking for $ac_func" >&5
7280 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7281   echo $ac_n "(cached) $ac_c" 1>&6
7282 else
7283   cat > conftest.$ac_ext <<EOF
7284 #line 7285 "configure"
7285 #include "confdefs.h"
7286 /* System header to define __stub macros and hopefully few prototypes,
7287     which can conflict with char $ac_func(); below.  */
7288 #include <assert.h>
7289 /* Override any gcc2 internal prototype to avoid an error.  */
7290 /* We use char because int might match the return type of a gcc2
7291     builtin and then its argument prototype would still apply.  */
7292 char $ac_func();
7293
7294 int main() {
7295
7296 /* The GNU C library defines this for functions which it implements
7297     to always fail with ENOSYS.  Some functions are actually named
7298     something starting with __ and the normal name is an alias.  */
7299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7300 choke me
7301 #else
7302 $ac_func();
7303 #endif
7304
7305 ; return 0; }
7306 EOF
7307 if { (eval echo configure:7308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7308   rm -rf conftest*
7309   eval "ac_cv_func_$ac_func=yes"
7310 else
7311   echo "configure: failed program was:" >&5
7312   cat conftest.$ac_ext >&5
7313   rm -rf conftest*
7314   eval "ac_cv_func_$ac_func=no"
7315 fi
7316 rm -f conftest*
7317 fi
7318
7319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7320   echo "$ac_t""yes" 1>&6
7321     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7322   cat >> confdefs.h <<EOF
7323 #define $ac_tr_func 1
7324 EOF
7325  
7326 else
7327   echo "$ac_t""no" 1>&6
7328 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7329 fi
7330 done
7331
7332   fi
7333
7334   
7335
7336       
7337
7338       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7339 echo "configure:7340: checking for mbstate_t" >&5
7340   cat > conftest.$ac_ext <<EOF
7341 #line 7342 "configure"
7342 #include "confdefs.h"
7343 #include <wchar.h>
7344 int main() {
7345 mbstate_t teststate;
7346 ; return 0; }
7347 EOF
7348 if { (eval echo configure:7349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7349   rm -rf conftest*
7350   have_mbstate_t=yes
7351 else
7352   echo "configure: failed program was:" >&5
7353   cat conftest.$ac_ext >&5
7354   rm -rf conftest*
7355   have_mbstate_t=no
7356 fi
7357 rm -f conftest*
7358   echo "$ac_t""$have_mbstate_t" 1>&6
7359   if test x"$have_mbstate_t" = xyes; then
7360     cat >> confdefs.h <<\EOF
7361 #define HAVE_MBSTATE_T 1
7362 EOF
7363
7364   fi
7365
7366     for ac_hdr in wchar.h
7367 do
7368 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7369 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7370 echo "configure:7371: checking for $ac_hdr" >&5
7371 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7372   echo $ac_n "(cached) $ac_c" 1>&6
7373 else
7374   cat > conftest.$ac_ext <<EOF
7375 #line 7376 "configure"
7376 #include "confdefs.h"
7377 #include <$ac_hdr>
7378 EOF
7379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7380 { (eval echo configure:7381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7381 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7382 if test -z "$ac_err"; then
7383   rm -rf conftest*
7384   eval "ac_cv_header_$ac_safe=yes"
7385 else
7386   echo "$ac_err" >&5
7387   echo "configure: failed program was:" >&5
7388   cat conftest.$ac_ext >&5
7389   rm -rf conftest*
7390   eval "ac_cv_header_$ac_safe=no"
7391 fi
7392 rm -f conftest*
7393 fi
7394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7395   echo "$ac_t""yes" 1>&6
7396     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7397   cat >> confdefs.h <<EOF
7398 #define $ac_tr_hdr 1
7399 EOF
7400  ac_has_wchar_h=yes
7401 else
7402   echo "$ac_t""no" 1>&6
7403 ac_has_wchar_h=no
7404 fi
7405 done
7406
7407   for ac_hdr in wctype.h
7408 do
7409 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7410 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7411 echo "configure:7412: checking for $ac_hdr" >&5
7412 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7413   echo $ac_n "(cached) $ac_c" 1>&6
7414 else
7415   cat > conftest.$ac_ext <<EOF
7416 #line 7417 "configure"
7417 #include "confdefs.h"
7418 #include <$ac_hdr>
7419 EOF
7420 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7421 { (eval echo configure:7422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7422 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7423 if test -z "$ac_err"; then
7424   rm -rf conftest*
7425   eval "ac_cv_header_$ac_safe=yes"
7426 else
7427   echo "$ac_err" >&5
7428   echo "configure: failed program was:" >&5
7429   cat conftest.$ac_ext >&5
7430   rm -rf conftest*
7431   eval "ac_cv_header_$ac_safe=no"
7432 fi
7433 rm -f conftest*
7434 fi
7435 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7436   echo "$ac_t""yes" 1>&6
7437     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7438   cat >> confdefs.h <<EOF
7439 #define $ac_tr_hdr 1
7440 EOF
7441  ac_has_wctype_h=yes
7442 else
7443   echo "$ac_t""no" 1>&6
7444 ac_has_wctype_h=no
7445 fi
7446 done
7447
7448   
7449     if test x"$ac_has_wchar_h" = xyes &&
7450      test x"$ac_has_wctype_h" = xyes &&
7451      test x"$enable_c_mbchar" != xno; then
7452       
7453             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7454 echo "configure:7455: checking for WCHAR_MIN and WCHAR_MAX" >&5
7455     cat > conftest.$ac_ext <<EOF
7456 #line 7457 "configure"
7457 #include "confdefs.h"
7458 #include <wchar.h>
7459 int main() {
7460 int i = WCHAR_MIN; int j = WCHAR_MAX;
7461 ; return 0; }
7462 EOF
7463 if { (eval echo configure:7464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7464   rm -rf conftest*
7465   has_wchar_minmax=yes
7466 else
7467   echo "configure: failed program was:" >&5
7468   cat conftest.$ac_ext >&5
7469   rm -rf conftest*
7470   has_wchar_minmax=no
7471 fi
7472 rm -f conftest*
7473     echo "$ac_t""$has_wchar_minmax" 1>&6
7474     
7475             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7476 echo "configure:7477: checking for WEOF" >&5
7477     cat > conftest.$ac_ext <<EOF
7478 #line 7479 "configure"
7479 #include "confdefs.h"
7480
7481       #include <wchar.h>
7482       #include <stddef.h>
7483 int main() {
7484 wint_t i = WEOF;
7485 ; return 0; }
7486 EOF
7487 if { (eval echo configure:7488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7488   rm -rf conftest*
7489   has_weof=yes
7490 else
7491   echo "configure: failed program was:" >&5
7492   cat conftest.$ac_ext >&5
7493   rm -rf conftest*
7494   has_weof=no
7495 fi
7496 rm -f conftest*
7497     echo "$ac_t""$has_weof" 1>&6
7498   
7499         ac_wfuncs=yes
7500     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7501 do
7502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7503 echo "configure:7504: checking for $ac_func" >&5
7504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7505   echo $ac_n "(cached) $ac_c" 1>&6
7506 else
7507   cat > conftest.$ac_ext <<EOF
7508 #line 7509 "configure"
7509 #include "confdefs.h"
7510 /* System header to define __stub macros and hopefully few prototypes,
7511     which can conflict with char $ac_func(); below.  */
7512 #include <assert.h>
7513 /* Override any gcc2 internal prototype to avoid an error.  */
7514 /* We use char because int might match the return type of a gcc2
7515     builtin and then its argument prototype would still apply.  */
7516 char $ac_func();
7517
7518 int main() {
7519
7520 /* The GNU C library defines this for functions which it implements
7521     to always fail with ENOSYS.  Some functions are actually named
7522     something starting with __ and the normal name is an alias.  */
7523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7524 choke me
7525 #else
7526 $ac_func();
7527 #endif
7528
7529 ; return 0; }
7530 EOF
7531 if { (eval echo configure:7532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7532   rm -rf conftest*
7533   eval "ac_cv_func_$ac_func=yes"
7534 else
7535   echo "configure: failed program was:" >&5
7536   cat conftest.$ac_ext >&5
7537   rm -rf conftest*
7538   eval "ac_cv_func_$ac_func=no"
7539 fi
7540 rm -f conftest*
7541 fi
7542
7543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7544   echo "$ac_t""yes" 1>&6
7545     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7546   cat >> confdefs.h <<EOF
7547 #define $ac_tr_func 1
7548 EOF
7549  
7550 else
7551   echo "$ac_t""no" 1>&6
7552 \
7553     ac_wfuncs=no
7554 fi
7555 done
7556
7557   
7558         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7559     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7560     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7561     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7562     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7563     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7564 do
7565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7566 echo "configure:7567: checking for $ac_func" >&5
7567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7568   echo $ac_n "(cached) $ac_c" 1>&6
7569 else
7570   cat > conftest.$ac_ext <<EOF
7571 #line 7572 "configure"
7572 #include "confdefs.h"
7573 /* System header to define __stub macros and hopefully few prototypes,
7574     which can conflict with char $ac_func(); below.  */
7575 #include <assert.h>
7576 /* Override any gcc2 internal prototype to avoid an error.  */
7577 /* We use char because int might match the return type of a gcc2
7578     builtin and then its argument prototype would still apply.  */
7579 char $ac_func();
7580
7581 int main() {
7582
7583 /* The GNU C library defines this for functions which it implements
7584     to always fail with ENOSYS.  Some functions are actually named
7585     something starting with __ and the normal name is an alias.  */
7586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7587 choke me
7588 #else
7589 $ac_func();
7590 #endif
7591
7592 ; return 0; }
7593 EOF
7594 if { (eval echo configure:7595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7595   rm -rf conftest*
7596   eval "ac_cv_func_$ac_func=yes"
7597 else
7598   echo "configure: failed program was:" >&5
7599   cat conftest.$ac_ext >&5
7600   rm -rf conftest*
7601   eval "ac_cv_func_$ac_func=no"
7602 fi
7603 rm -f conftest*
7604 fi
7605
7606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7607   echo "$ac_t""yes" 1>&6
7608     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7609   cat >> confdefs.h <<EOF
7610 #define $ac_tr_func 1
7611 EOF
7612  
7613 else
7614   echo "$ac_t""no" 1>&6
7615 \
7616     ac_wfuncs=no
7617 fi
7618 done
7619
7620
7621     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7622 echo "configure:7623: checking for ISO C99 wchar_t support" >&5
7623     if test x"$has_weof" = xyes &&
7624        test x"$has_wchar_minmax" = xyes &&
7625        test x"$ac_wfuncs" = xyes; then
7626       ac_isoC99_wchar_t=yes
7627     else
7628       ac_isoC99_wchar_t=no
7629     fi
7630     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7631   
7632             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7633 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7634 echo "configure:7635: checking for iconv.h" >&5
7635 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7636   echo $ac_n "(cached) $ac_c" 1>&6
7637 else
7638   cat > conftest.$ac_ext <<EOF
7639 #line 7640 "configure"
7640 #include "confdefs.h"
7641 #include <iconv.h>
7642 EOF
7643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7644 { (eval echo configure:7645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7646 if test -z "$ac_err"; then
7647   rm -rf conftest*
7648   eval "ac_cv_header_$ac_safe=yes"
7649 else
7650   echo "$ac_err" >&5
7651   echo "configure: failed program was:" >&5
7652   cat conftest.$ac_ext >&5
7653   rm -rf conftest*
7654   eval "ac_cv_header_$ac_safe=no"
7655 fi
7656 rm -f conftest*
7657 fi
7658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7659   echo "$ac_t""yes" 1>&6
7660   ac_has_iconv_h=yes
7661 else
7662   echo "$ac_t""no" 1>&6
7663 ac_has_iconv_h=no
7664 fi
7665
7666     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7667 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7668 echo "configure:7669: checking for langinfo.h" >&5
7669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7670   echo $ac_n "(cached) $ac_c" 1>&6
7671 else
7672   cat > conftest.$ac_ext <<EOF
7673 #line 7674 "configure"
7674 #include "confdefs.h"
7675 #include <langinfo.h>
7676 EOF
7677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7678 { (eval echo configure:7679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7680 if test -z "$ac_err"; then
7681   rm -rf conftest*
7682   eval "ac_cv_header_$ac_safe=yes"
7683 else
7684   echo "$ac_err" >&5
7685   echo "configure: failed program was:" >&5
7686   cat conftest.$ac_ext >&5
7687   rm -rf conftest*
7688   eval "ac_cv_header_$ac_safe=no"
7689 fi
7690 rm -f conftest*
7691 fi
7692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7693   echo "$ac_t""yes" 1>&6
7694   ac_has_langinfo_h=yes
7695 else
7696   echo "$ac_t""no" 1>&6
7697 ac_has_langinfo_h=no
7698 fi
7699
7700
7701         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7702 echo "configure:7703: checking for iconv in -liconv" >&5
7703 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7704 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7705   echo $ac_n "(cached) $ac_c" 1>&6
7706 else
7707   ac_save_LIBS="$LIBS"
7708 LIBS="-liconv  $LIBS"
7709 cat > conftest.$ac_ext <<EOF
7710 #line 7711 "configure"
7711 #include "confdefs.h"
7712 /* Override any gcc2 internal prototype to avoid an error.  */
7713 /* We use char because int might match the return type of a gcc2
7714     builtin and then its argument prototype would still apply.  */
7715 char iconv();
7716
7717 int main() {
7718 iconv()
7719 ; return 0; }
7720 EOF
7721 if { (eval echo configure:7722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7722   rm -rf conftest*
7723   eval "ac_cv_lib_$ac_lib_var=yes"
7724 else
7725   echo "configure: failed program was:" >&5
7726   cat conftest.$ac_ext >&5
7727   rm -rf conftest*
7728   eval "ac_cv_lib_$ac_lib_var=no"
7729 fi
7730 rm -f conftest*
7731 LIBS="$ac_save_LIBS"
7732
7733 fi
7734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7735   echo "$ac_t""yes" 1>&6
7736   libiconv="-liconv"
7737 else
7738   echo "$ac_t""no" 1>&6
7739 fi
7740
7741     ac_save_LIBS="$LIBS"
7742     LIBS="$LIBS $libiconv"
7743
7744     for ac_func in iconv_open iconv_close iconv nl_langinfo
7745 do
7746 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7747 echo "configure:7748: checking for $ac_func" >&5
7748 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7749   echo $ac_n "(cached) $ac_c" 1>&6
7750 else
7751   cat > conftest.$ac_ext <<EOF
7752 #line 7753 "configure"
7753 #include "confdefs.h"
7754 /* System header to define __stub macros and hopefully few prototypes,
7755     which can conflict with char $ac_func(); below.  */
7756 #include <assert.h>
7757 /* Override any gcc2 internal prototype to avoid an error.  */
7758 /* We use char because int might match the return type of a gcc2
7759     builtin and then its argument prototype would still apply.  */
7760 char $ac_func();
7761
7762 int main() {
7763
7764 /* The GNU C library defines this for functions which it implements
7765     to always fail with ENOSYS.  Some functions are actually named
7766     something starting with __ and the normal name is an alias.  */
7767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7768 choke me
7769 #else
7770 $ac_func();
7771 #endif
7772
7773 ; return 0; }
7774 EOF
7775 if { (eval echo configure:7776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7776   rm -rf conftest*
7777   eval "ac_cv_func_$ac_func=yes"
7778 else
7779   echo "configure: failed program was:" >&5
7780   cat conftest.$ac_ext >&5
7781   rm -rf conftest*
7782   eval "ac_cv_func_$ac_func=no"
7783 fi
7784 rm -f conftest*
7785 fi
7786
7787 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7788   echo "$ac_t""yes" 1>&6
7789     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7790   cat >> confdefs.h <<EOF
7791 #define $ac_tr_func 1
7792 EOF
7793  \
7794     ac_XPG2funcs=yes
7795 else
7796   echo "$ac_t""no" 1>&6
7797 ac_XPG2funcs=no
7798 fi
7799 done
7800
7801   
7802     LIBS="$ac_save_LIBS"
7803
7804     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7805 echo "configure:7806: checking for XPG2 wchar_t support" >&5
7806     if test x"$ac_has_iconv_h" = xyes &&
7807        test x"$ac_has_langinfo_h" = xyes &&
7808        test x"$ac_XPG2funcs" = xyes; then
7809       ac_XPG2_wchar_t=yes
7810     else
7811       ac_XPG2_wchar_t=no
7812     fi
7813     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7814   
7815             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7816 echo "configure:7817: checking for enabled wchar_t specializations" >&5
7817     if test x"$ac_isoC99_wchar_t" = xyes &&
7818        test x"$ac_XPG2_wchar_t" = xyes; then
7819       cat >> confdefs.h <<\EOF
7820 #define _GLIBCPP_USE_WCHAR_T 1
7821 EOF
7822
7823       echo "$ac_t"""yes"" 1>&6
7824     else
7825       echo "$ac_t"""no"" 1>&6
7826     fi
7827   else
7828         echo "configure: warning: wchar_t support disabled." 1>&2
7829   fi
7830
7831       os_include_dir="config/os/mingw32"
7832       ;;
7833     *)
7834       os_include_dir="config/os/newlib"
7835       cat >> confdefs.h <<\EOF
7836 #define HAVE_HYPOT 1
7837 EOF
7838
7839       ;;
7840   esac
7841
7842   case "$target_alias" in
7843     *-mingw32*)
7844       ;;
7845     *)
7846       # GLIBCPP_CHECK_STDLIB_SUPPORT
7847       cat >> confdefs.h <<\EOF
7848 #define HAVE_STRTOF 1
7849 EOF
7850         
7851       cat >> confdefs.h <<\EOF
7852 #define HAVE_STRTOLD 1
7853 EOF
7854         
7855       # AC_FUNC_MMAP
7856       cat >> confdefs.h <<\EOF
7857 #define HAVE_MMAP 1
7858 EOF
7859
7860
7861       cat >> confdefs.h <<\EOF
7862 #define HAVE_ACOSF 1
7863 EOF
7864
7865       cat >> confdefs.h <<\EOF
7866 #define HAVE_ASINF 1
7867 EOF
7868
7869       cat >> confdefs.h <<\EOF
7870 #define HAVE_ATAN2F 1
7871 EOF
7872
7873       cat >> confdefs.h <<\EOF
7874 #define HAVE_ATANF 1
7875 EOF
7876
7877       cat >> confdefs.h <<\EOF
7878 #define HAVE_CEILF 1
7879 EOF
7880
7881       cat >> confdefs.h <<\EOF
7882 #define HAVE_COPYSIGN 1
7883 EOF
7884
7885       cat >> confdefs.h <<\EOF
7886 #define HAVE_COPYSIGNF 1
7887 EOF
7888
7889       cat >> confdefs.h <<\EOF
7890 #define HAVE_COSF 1
7891 EOF
7892
7893       cat >> confdefs.h <<\EOF
7894 #define HAVE_COSHF 1
7895 EOF
7896
7897       cat >> confdefs.h <<\EOF
7898 #define HAVE_EXPF 1
7899 EOF
7900
7901       cat >> confdefs.h <<\EOF
7902 #define HAVE_FABSF 1
7903 EOF
7904
7905       cat >> confdefs.h <<\EOF
7906 #define HAVE_FINITE 1
7907 EOF
7908
7909       cat >> confdefs.h <<\EOF
7910 #define HAVE_FINITEF 1
7911 EOF
7912
7913       cat >> confdefs.h <<\EOF
7914 #define HAVE_FLOORF 1
7915 EOF
7916
7917       cat >> confdefs.h <<\EOF
7918 #define HAVE_FMODF 1
7919 EOF
7920
7921       cat >> confdefs.h <<\EOF
7922 #define HAVE_FREXPF 1
7923 EOF
7924
7925       cat >> confdefs.h <<\EOF
7926 #define HAVE_ISINF 1
7927 EOF
7928
7929       cat >> confdefs.h <<\EOF
7930 #define HAVE_ISINFF 1
7931 EOF
7932
7933       cat >> confdefs.h <<\EOF
7934 #define HAVE_ISNAN 1
7935 EOF
7936
7937       cat >> confdefs.h <<\EOF
7938 #define HAVE_ISNANF 1
7939 EOF
7940
7941       cat >> confdefs.h <<\EOF
7942 #define HAVE_LDEXPF 1
7943 EOF
7944
7945       cat >> confdefs.h <<\EOF
7946 #define HAVE_LOG10F 1
7947 EOF
7948
7949       cat >> confdefs.h <<\EOF
7950 #define HAVE_LOGF 1
7951 EOF
7952
7953       cat >> confdefs.h <<\EOF
7954 #define HAVE_MODFF 1
7955 EOF
7956
7957       cat >> confdefs.h <<\EOF
7958 #define HAVE_POWF 1
7959 EOF
7960
7961       cat >> confdefs.h <<\EOF
7962 #define HAVE_SINF 1
7963 EOF
7964
7965       cat >> confdefs.h <<\EOF
7966 #define HAVE_SINHF 1
7967 EOF
7968
7969       cat >> confdefs.h <<\EOF
7970 #define HAVE_SQRTF 1
7971 EOF
7972
7973       cat >> confdefs.h <<\EOF
7974 #define HAVE_TANF 1
7975 EOF
7976
7977       cat >> confdefs.h <<\EOF
7978 #define HAVE_TANHF 1
7979 EOF
7980
7981       ;;
7982   esac
7983
7984   # At some point, we should differentiate between architectures
7985   # like x86, which have long double versions, and alpha/powerpc/etc.,
7986   # which don't. For the time being, punt.
7987   if test x"long_double_math_on_this_cpu" = x"yes"; then
7988     cat >> confdefs.h <<\EOF
7989 #define HAVE_ACOSL 1
7990 EOF
7991
7992     cat >> confdefs.h <<\EOF
7993 #define HAVE_ASINL 1
7994 EOF
7995
7996     cat >> confdefs.h <<\EOF
7997 #define HAVE_ATAN2L 1
7998 EOF
7999
8000     cat >> confdefs.h <<\EOF
8001 #define HAVE_ATANL 1
8002 EOF
8003
8004     cat >> confdefs.h <<\EOF
8005 #define HAVE_CEILL 1
8006 EOF
8007
8008     cat >> confdefs.h <<\EOF
8009 #define HAVE_COPYSIGNL 1
8010 EOF
8011
8012     cat >> confdefs.h <<\EOF
8013 #define HAVE_COSL 1
8014 EOF
8015
8016     cat >> confdefs.h <<\EOF
8017 #define HAVE_COSHL 1
8018 EOF
8019
8020     cat >> confdefs.h <<\EOF
8021 #define HAVE_EXPL 1
8022 EOF
8023
8024     cat >> confdefs.h <<\EOF
8025 #define HAVE_FABSL 1
8026 EOF
8027
8028     cat >> confdefs.h <<\EOF
8029 #define HAVE_FINITEL 1
8030 EOF
8031
8032     cat >> confdefs.h <<\EOF
8033 #define HAVE_FLOORL 1
8034 EOF
8035
8036     cat >> confdefs.h <<\EOF
8037 #define HAVE_FMODL 1
8038 EOF
8039
8040     cat >> confdefs.h <<\EOF
8041 #define HAVE_FREXPL 1
8042 EOF
8043
8044     cat >> confdefs.h <<\EOF
8045 #define HAVE_ISINFL 1
8046 EOF
8047
8048     cat >> confdefs.h <<\EOF
8049 #define HAVE_ISNANL 1
8050 EOF
8051
8052     cat >> confdefs.h <<\EOF
8053 #define HAVE_LDEXPL 1
8054 EOF
8055
8056     cat >> confdefs.h <<\EOF
8057 #define HAVE_LOG10L 1
8058 EOF
8059
8060     cat >> confdefs.h <<\EOF
8061 #define HAVE_LOGL 1
8062 EOF
8063
8064     cat >> confdefs.h <<\EOF
8065 #define HAVE_MODFL 1
8066 EOF
8067
8068     cat >> confdefs.h <<\EOF
8069 #define HAVE_POWL 1
8070 EOF
8071
8072     cat >> confdefs.h <<\EOF
8073 #define HAVE_SINCOSL 1
8074 EOF
8075
8076     cat >> confdefs.h <<\EOF
8077 #define HAVE_SINL 1
8078 EOF
8079
8080     cat >> confdefs.h <<\EOF
8081 #define HAVE_SINHL 1
8082 EOF
8083
8084     cat >> confdefs.h <<\EOF
8085 #define HAVE_SQRTL 1
8086 EOF
8087
8088     cat >> confdefs.h <<\EOF
8089 #define HAVE_TANL 1
8090 EOF
8091
8092     cat >> confdefs.h <<\EOF
8093 #define HAVE_TANHL 1
8094 EOF
8095
8096   fi
8097 else
8098
8099   # We are being configured natively. We can do more elaborate tests
8100   # that include AC_TRY_COMPILE now, as the linker is assumed to be
8101   # working.
8102   GLIBCPP_IS_CROSS_COMPILING=0
8103   CANADIAN=no
8104
8105   # Check for available headers.
8106   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
8107   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
8108 do
8109 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8110 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8111 echo "configure:8112: checking for $ac_hdr" >&5
8112 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8113   echo $ac_n "(cached) $ac_c" 1>&6
8114 else
8115   cat > conftest.$ac_ext <<EOF
8116 #line 8117 "configure"
8117 #include "confdefs.h"
8118 #include <$ac_hdr>
8119 EOF
8120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8121 { (eval echo configure:8122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8123 if test -z "$ac_err"; then
8124   rm -rf conftest*
8125   eval "ac_cv_header_$ac_safe=yes"
8126 else
8127   echo "$ac_err" >&5
8128   echo "configure: failed program was:" >&5
8129   cat conftest.$ac_ext >&5
8130   rm -rf conftest*
8131   eval "ac_cv_header_$ac_safe=no"
8132 fi
8133 rm -f conftest*
8134 fi
8135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8136   echo "$ac_t""yes" 1>&6
8137     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8138   cat >> confdefs.h <<EOF
8139 #define $ac_tr_hdr 1
8140 EOF
8141  
8142 else
8143   echo "$ac_t""no" 1>&6
8144 fi
8145 done
8146
8147
8148   
8149   # All these tests are for C++; save the language and the compiler flags.
8150   # The CXXFLAGS thing is suspicious, but based on similar bits previously
8151   # found in GLIBCPP_CONFIGURE.
8152   
8153   ac_ext=C
8154 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8155 ac_cpp='$CXXCPP $CPPFLAGS'
8156 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8157 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8158 cross_compiling=$ac_cv_prog_cxx_cross
8159
8160   ac_test_CXXFLAGS="${CXXFLAGS+set}"
8161   ac_save_CXXFLAGS="$CXXFLAGS"
8162
8163   # Check for maintainer-mode bits.
8164   if test x"$USE_MAINTAINER_MODE" = xno; then
8165     WERROR=''
8166   else
8167     WERROR='-Werror'
8168   fi
8169
8170   # Check for -ffunction-sections -fdata-sections
8171   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
8172 echo "configure:8173: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
8173   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
8174   cat > conftest.$ac_ext <<EOF
8175 #line 8176 "configure"
8176 #include "confdefs.h"
8177
8178 int main() {
8179 int foo;
8180   
8181 ; return 0; }
8182 EOF
8183 if { (eval echo configure:8184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8184   rm -rf conftest*
8185   ac_fdsections=yes
8186 else
8187   echo "configure: failed program was:" >&5
8188   cat conftest.$ac_ext >&5
8189   rm -rf conftest*
8190   ac_fdsections=no
8191 fi
8192 rm -f conftest*
8193   if test "$ac_test_CXXFLAGS" = set; then
8194     CXXFLAGS="$ac_save_CXXFLAGS"
8195   else
8196     # this is the suspicious part
8197     CXXFLAGS=''
8198   fi
8199   if test x"$ac_fdsections" = x"yes" &&
8200      test x"$enable_debug" = x"no"; then
8201     SECTION_FLAGS='-ffunction-sections -fdata-sections'
8202   fi
8203   echo "$ac_t""$ac_fdsections" 1>&6
8204
8205   ac_ext=c
8206 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8207 ac_cpp='$CPP $CPPFLAGS'
8208 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8209 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8210 cross_compiling=$ac_cv_prog_cc_cross
8211
8212   
8213   
8214
8215   
8216   # If we're not using GNU ld, then there's no point in even trying these
8217   # tests.  Check for that first.  We should have already tested for gld
8218   # by now (in libtool), but require it now just to be safe...
8219   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8220   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8221   
8222
8223   # The name set by libtool depends on the version of libtool.  Shame on us
8224   # for depending on an impl detail, but c'est la vie.  Older versions used
8225   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8226   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8227   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
8228   # set (hence we're using an older libtool), then set it.
8229   if test x${with_gnu_ld+set} != xset; then
8230     if test x${ac_cv_prog_gnu_ld+set} != xset; then
8231       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
8232       with_gnu_ld=no
8233     else
8234       with_gnu_ld=$ac_cv_prog_gnu_ld
8235     fi
8236   fi
8237
8238   # Start by getting the version number.  I think the libtool test already
8239   # does some of this, but throws away the result.
8240   
8241   ldver=`$LD --version 2>/dev/null | head -1 | \
8242          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8243   
8244   glibcpp_gnu_ld_version=`echo $ldver | \
8245          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8246
8247   # Set --gc-sections.
8248   if test "$with_gnu_ld" = "notbroken"; then
8249     # GNU ld it is!  Joy and bunny rabbits!
8250
8251     # All these tests are for C++; save the language and the compiler flags.
8252     # Need to do this so that g++ won't try to link in libstdc++
8253     ac_test_CFLAGS="${CFLAGS+set}"
8254     ac_save_CFLAGS="$CFLAGS"
8255     CFLAGS='-x c++  -Wl,--gc-sections'
8256
8257     # Check for -Wl,--gc-sections
8258     # XXX This test is broken at the moment, as symbols required for
8259     # linking are now in libsupc++ (not built yet.....). In addition, 
8260     # this test has cored on solaris in the past. In addition,
8261     # --gc-sections doesn't really work at the moment (keeps on discarding
8262     # used sections, first .eh_frame and now some of the glibc sections for
8263     # iconv). Bzzzzt. Thanks for playing, maybe next time.
8264     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8265 echo "configure:8266: checking for ld that supports -Wl,--gc-sections" >&5
8266     if test "$cross_compiling" = yes; then
8267   ac_sectionLDflags=yes
8268 else
8269   cat > conftest.$ac_ext <<EOF
8270 #line 8271 "configure"
8271 #include "confdefs.h"
8272
8273      int main(void) 
8274      {
8275        try { throw 1; }
8276        catch (...) { };
8277        return 0;
8278      }
8279     
8280 EOF
8281 if { (eval echo configure:8282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8282 then
8283   ac_sectionLDflags=yes
8284 else
8285   echo "configure: failed program was:" >&5
8286   cat conftest.$ac_ext >&5
8287   rm -fr conftest*
8288   ac_sectionLDflags=no
8289 fi
8290 rm -fr conftest*
8291 fi
8292
8293     if test "$ac_test_CFLAGS" = set; then
8294       CFLAGS="$ac_save_CFLAGS"
8295     else
8296       # this is the suspicious part
8297       CFLAGS=''
8298     fi
8299     if test "$ac_sectionLDflags" = "yes"; then
8300       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8301     fi
8302     echo "$ac_t""$ac_sectionLDflags" 1>&6
8303   fi
8304
8305   # Set linker optimization flags.
8306   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
8307     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8308   fi
8309
8310   
8311   
8312
8313   
8314       
8315   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
8316 echo "configure:8317: checking for __builtin_abs declaration" >&5
8317   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
8318     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
8319   echo $ac_n "(cached) $ac_c" 1>&6
8320 else
8321   
8322       
8323       ac_ext=C
8324 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8325 ac_cpp='$CXXCPP $CPPFLAGS'
8326 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8327 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8328 cross_compiling=$ac_cv_prog_cxx_cross
8329
8330       cat > conftest.$ac_ext <<EOF
8331 #line 8332 "configure"
8332 #include "confdefs.h"
8333 #include <math.h>
8334 int main() {
8335  __builtin_abs(0);
8336 ; return 0; }
8337 EOF
8338 if { (eval echo configure:8339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8339   rm -rf conftest*
8340   glibcpp_cv_func___builtin_abs_use=yes
8341 else
8342   echo "configure: failed program was:" >&5
8343   cat conftest.$ac_ext >&5
8344   rm -rf conftest*
8345   glibcpp_cv_func___builtin_abs_use=no
8346 fi
8347 rm -f conftest*
8348       ac_ext=c
8349 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8350 ac_cpp='$CPP $CPPFLAGS'
8351 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8352 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8353 cross_compiling=$ac_cv_prog_cc_cross
8354
8355     
8356 fi
8357
8358   fi
8359   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
8360   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
8361     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
8362 echo "configure:8363: checking for __builtin_abs linkage" >&5
8363     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
8364       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
8365   echo $ac_n "(cached) $ac_c" 1>&6
8366 else
8367   
8368         cat > conftest.$ac_ext <<EOF
8369 #line 8370 "configure"
8370 #include "confdefs.h"
8371 #include <math.h>
8372 int main() {
8373  __builtin_abs(0);
8374 ; return 0; }
8375 EOF
8376 if { (eval echo configure:8377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8377   rm -rf conftest*
8378   glibcpp_cv_func___builtin_abs_link=yes
8379 else
8380   echo "configure: failed program was:" >&5
8381   cat conftest.$ac_ext >&5
8382   rm -rf conftest*
8383   glibcpp_cv_func___builtin_abs_link=no
8384 fi
8385 rm -f conftest*
8386       
8387 fi
8388
8389     fi
8390     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
8391     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
8392       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8393       cat >> confdefs.h <<EOF
8394 #define ${ac_tr_func} 1
8395 EOF
8396
8397     fi
8398   fi
8399
8400   
8401   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
8402 echo "configure:8403: checking for __builtin_fabsf declaration" >&5
8403   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
8404     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
8405   echo $ac_n "(cached) $ac_c" 1>&6
8406 else
8407   
8408       
8409       ac_ext=C
8410 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8411 ac_cpp='$CXXCPP $CPPFLAGS'
8412 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8413 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8414 cross_compiling=$ac_cv_prog_cxx_cross
8415
8416       cat > conftest.$ac_ext <<EOF
8417 #line 8418 "configure"
8418 #include "confdefs.h"
8419 #include <math.h>
8420 int main() {
8421  __builtin_fabsf(0);
8422 ; return 0; }
8423 EOF
8424 if { (eval echo configure:8425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8425   rm -rf conftest*
8426   glibcpp_cv_func___builtin_fabsf_use=yes
8427 else
8428   echo "configure: failed program was:" >&5
8429   cat conftest.$ac_ext >&5
8430   rm -rf conftest*
8431   glibcpp_cv_func___builtin_fabsf_use=no
8432 fi
8433 rm -f conftest*
8434       ac_ext=c
8435 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8436 ac_cpp='$CPP $CPPFLAGS'
8437 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8438 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8439 cross_compiling=$ac_cv_prog_cc_cross
8440
8441     
8442 fi
8443
8444   fi
8445   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
8446   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
8447     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
8448 echo "configure:8449: checking for __builtin_fabsf linkage" >&5
8449     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
8450       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
8451   echo $ac_n "(cached) $ac_c" 1>&6
8452 else
8453   
8454         cat > conftest.$ac_ext <<EOF
8455 #line 8456 "configure"
8456 #include "confdefs.h"
8457 #include <math.h>
8458 int main() {
8459  __builtin_fabsf(0);
8460 ; return 0; }
8461 EOF
8462 if { (eval echo configure:8463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8463   rm -rf conftest*
8464   glibcpp_cv_func___builtin_fabsf_link=yes
8465 else
8466   echo "configure: failed program was:" >&5
8467   cat conftest.$ac_ext >&5
8468   rm -rf conftest*
8469   glibcpp_cv_func___builtin_fabsf_link=no
8470 fi
8471 rm -f conftest*
8472       
8473 fi
8474
8475     fi
8476     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
8477     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
8478       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8479       cat >> confdefs.h <<EOF
8480 #define ${ac_tr_func} 1
8481 EOF
8482
8483     fi
8484   fi
8485
8486   
8487   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
8488 echo "configure:8489: checking for __builtin_fabs declaration" >&5
8489   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
8490     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
8491   echo $ac_n "(cached) $ac_c" 1>&6
8492 else
8493   
8494       
8495       ac_ext=C
8496 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8497 ac_cpp='$CXXCPP $CPPFLAGS'
8498 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8499 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8500 cross_compiling=$ac_cv_prog_cxx_cross
8501
8502       cat > conftest.$ac_ext <<EOF
8503 #line 8504 "configure"
8504 #include "confdefs.h"
8505 #include <math.h>
8506 int main() {
8507  __builtin_fabs(0);
8508 ; return 0; }
8509 EOF
8510 if { (eval echo configure:8511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8511   rm -rf conftest*
8512   glibcpp_cv_func___builtin_fabs_use=yes
8513 else
8514   echo "configure: failed program was:" >&5
8515   cat conftest.$ac_ext >&5
8516   rm -rf conftest*
8517   glibcpp_cv_func___builtin_fabs_use=no
8518 fi
8519 rm -f conftest*
8520       ac_ext=c
8521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8522 ac_cpp='$CPP $CPPFLAGS'
8523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8525 cross_compiling=$ac_cv_prog_cc_cross
8526
8527     
8528 fi
8529
8530   fi
8531   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
8532   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
8533     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
8534 echo "configure:8535: checking for __builtin_fabs linkage" >&5
8535     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
8536       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
8537   echo $ac_n "(cached) $ac_c" 1>&6
8538 else
8539   
8540         cat > conftest.$ac_ext <<EOF
8541 #line 8542 "configure"
8542 #include "confdefs.h"
8543 #include <math.h>
8544 int main() {
8545  __builtin_fabs(0);
8546 ; return 0; }
8547 EOF
8548 if { (eval echo configure:8549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8549   rm -rf conftest*
8550   glibcpp_cv_func___builtin_fabs_link=yes
8551 else
8552   echo "configure: failed program was:" >&5
8553   cat conftest.$ac_ext >&5
8554   rm -rf conftest*
8555   glibcpp_cv_func___builtin_fabs_link=no
8556 fi
8557 rm -f conftest*
8558       
8559 fi
8560
8561     fi
8562     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
8563     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
8564       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8565       cat >> confdefs.h <<EOF
8566 #define ${ac_tr_func} 1
8567 EOF
8568
8569     fi
8570   fi
8571
8572   
8573   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
8574 echo "configure:8575: checking for __builtin_fabsl declaration" >&5
8575   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
8576     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
8577   echo $ac_n "(cached) $ac_c" 1>&6
8578 else
8579   
8580       
8581       ac_ext=C
8582 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8583 ac_cpp='$CXXCPP $CPPFLAGS'
8584 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8585 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8586 cross_compiling=$ac_cv_prog_cxx_cross
8587
8588       cat > conftest.$ac_ext <<EOF
8589 #line 8590 "configure"
8590 #include "confdefs.h"
8591 #include <math.h>
8592 int main() {
8593  __builtin_fabsl(0);
8594 ; return 0; }
8595 EOF
8596 if { (eval echo configure:8597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8597   rm -rf conftest*
8598   glibcpp_cv_func___builtin_fabsl_use=yes
8599 else
8600   echo "configure: failed program was:" >&5
8601   cat conftest.$ac_ext >&5
8602   rm -rf conftest*
8603   glibcpp_cv_func___builtin_fabsl_use=no
8604 fi
8605 rm -f conftest*
8606       ac_ext=c
8607 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8608 ac_cpp='$CPP $CPPFLAGS'
8609 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8610 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8611 cross_compiling=$ac_cv_prog_cc_cross
8612
8613     
8614 fi
8615
8616   fi
8617   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
8618   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
8619     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
8620 echo "configure:8621: checking for __builtin_fabsl linkage" >&5
8621     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
8622       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
8623   echo $ac_n "(cached) $ac_c" 1>&6
8624 else
8625   
8626         cat > conftest.$ac_ext <<EOF
8627 #line 8628 "configure"
8628 #include "confdefs.h"
8629 #include <math.h>
8630 int main() {
8631  __builtin_fabsl(0);
8632 ; return 0; }
8633 EOF
8634 if { (eval echo configure:8635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8635   rm -rf conftest*
8636   glibcpp_cv_func___builtin_fabsl_link=yes
8637 else
8638   echo "configure: failed program was:" >&5
8639   cat conftest.$ac_ext >&5
8640   rm -rf conftest*
8641   glibcpp_cv_func___builtin_fabsl_link=no
8642 fi
8643 rm -f conftest*
8644       
8645 fi
8646
8647     fi
8648     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
8649     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
8650       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8651       cat >> confdefs.h <<EOF
8652 #define ${ac_tr_func} 1
8653 EOF
8654
8655     fi
8656   fi
8657
8658   
8659   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
8660 echo "configure:8661: checking for __builtin_labs declaration" >&5
8661   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
8662     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
8663   echo $ac_n "(cached) $ac_c" 1>&6
8664 else
8665   
8666       
8667       ac_ext=C
8668 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8669 ac_cpp='$CXXCPP $CPPFLAGS'
8670 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8671 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8672 cross_compiling=$ac_cv_prog_cxx_cross
8673
8674       cat > conftest.$ac_ext <<EOF
8675 #line 8676 "configure"
8676 #include "confdefs.h"
8677 #include <math.h>
8678 int main() {
8679  __builtin_labs(0);
8680 ; return 0; }
8681 EOF
8682 if { (eval echo configure:8683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8683   rm -rf conftest*
8684   glibcpp_cv_func___builtin_labs_use=yes
8685 else
8686   echo "configure: failed program was:" >&5
8687   cat conftest.$ac_ext >&5
8688   rm -rf conftest*
8689   glibcpp_cv_func___builtin_labs_use=no
8690 fi
8691 rm -f conftest*
8692       ac_ext=c
8693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8694 ac_cpp='$CPP $CPPFLAGS'
8695 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8696 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8697 cross_compiling=$ac_cv_prog_cc_cross
8698
8699     
8700 fi
8701
8702   fi
8703   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
8704   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
8705     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
8706 echo "configure:8707: checking for __builtin_labs linkage" >&5
8707     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
8708       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
8709   echo $ac_n "(cached) $ac_c" 1>&6
8710 else
8711   
8712         cat > conftest.$ac_ext <<EOF
8713 #line 8714 "configure"
8714 #include "confdefs.h"
8715 #include <math.h>
8716 int main() {
8717  __builtin_labs(0);
8718 ; return 0; }
8719 EOF
8720 if { (eval echo configure:8721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8721   rm -rf conftest*
8722   glibcpp_cv_func___builtin_labs_link=yes
8723 else
8724   echo "configure: failed program was:" >&5
8725   cat conftest.$ac_ext >&5
8726   rm -rf conftest*
8727   glibcpp_cv_func___builtin_labs_link=no
8728 fi
8729 rm -f conftest*
8730       
8731 fi
8732
8733     fi
8734     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
8735     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
8736       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8737       cat >> confdefs.h <<EOF
8738 #define ${ac_tr_func} 1
8739 EOF
8740
8741     fi
8742   fi
8743
8744
8745   
8746   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
8747 echo "configure:8748: checking for __builtin_sqrtf declaration" >&5
8748   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
8749     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
8750   echo $ac_n "(cached) $ac_c" 1>&6
8751 else
8752   
8753       
8754       ac_ext=C
8755 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8756 ac_cpp='$CXXCPP $CPPFLAGS'
8757 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8758 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8759 cross_compiling=$ac_cv_prog_cxx_cross
8760
8761       cat > conftest.$ac_ext <<EOF
8762 #line 8763 "configure"
8763 #include "confdefs.h"
8764 #include <math.h>
8765 int main() {
8766  __builtin_sqrtf(0);
8767 ; return 0; }
8768 EOF
8769 if { (eval echo configure:8770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8770   rm -rf conftest*
8771   glibcpp_cv_func___builtin_sqrtf_use=yes
8772 else
8773   echo "configure: failed program was:" >&5
8774   cat conftest.$ac_ext >&5
8775   rm -rf conftest*
8776   glibcpp_cv_func___builtin_sqrtf_use=no
8777 fi
8778 rm -f conftest*
8779       ac_ext=c
8780 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8781 ac_cpp='$CPP $CPPFLAGS'
8782 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8783 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8784 cross_compiling=$ac_cv_prog_cc_cross
8785
8786     
8787 fi
8788
8789   fi
8790   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
8791   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
8792     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
8793 echo "configure:8794: checking for __builtin_sqrtf linkage" >&5
8794     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
8795       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
8796   echo $ac_n "(cached) $ac_c" 1>&6
8797 else
8798   
8799         cat > conftest.$ac_ext <<EOF
8800 #line 8801 "configure"
8801 #include "confdefs.h"
8802 #include <math.h>
8803 int main() {
8804  __builtin_sqrtf(0);
8805 ; return 0; }
8806 EOF
8807 if { (eval echo configure:8808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8808   rm -rf conftest*
8809   glibcpp_cv_func___builtin_sqrtf_link=yes
8810 else
8811   echo "configure: failed program was:" >&5
8812   cat conftest.$ac_ext >&5
8813   rm -rf conftest*
8814   glibcpp_cv_func___builtin_sqrtf_link=no
8815 fi
8816 rm -f conftest*
8817       
8818 fi
8819
8820     fi
8821     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
8822     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
8823       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8824       cat >> confdefs.h <<EOF
8825 #define ${ac_tr_func} 1
8826 EOF
8827
8828     fi
8829   fi
8830
8831   
8832   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
8833 echo "configure:8834: checking for __builtin_sqrt declaration" >&5
8834   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
8835     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
8836   echo $ac_n "(cached) $ac_c" 1>&6
8837 else
8838   
8839       
8840       ac_ext=C
8841 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8842 ac_cpp='$CXXCPP $CPPFLAGS'
8843 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8844 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8845 cross_compiling=$ac_cv_prog_cxx_cross
8846
8847       cat > conftest.$ac_ext <<EOF
8848 #line 8849 "configure"
8849 #include "confdefs.h"
8850 #include <math.h>
8851 int main() {
8852  __builtin_sqrt(0);
8853 ; return 0; }
8854 EOF
8855 if { (eval echo configure:8856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8856   rm -rf conftest*
8857   glibcpp_cv_func___builtin_sqrt_use=yes
8858 else
8859   echo "configure: failed program was:" >&5
8860   cat conftest.$ac_ext >&5
8861   rm -rf conftest*
8862   glibcpp_cv_func___builtin_sqrt_use=no
8863 fi
8864 rm -f conftest*
8865       ac_ext=c
8866 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8867 ac_cpp='$CPP $CPPFLAGS'
8868 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8869 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8870 cross_compiling=$ac_cv_prog_cc_cross
8871
8872     
8873 fi
8874
8875   fi
8876   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
8877   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
8878     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
8879 echo "configure:8880: checking for __builtin_sqrt linkage" >&5
8880     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
8881       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
8882   echo $ac_n "(cached) $ac_c" 1>&6
8883 else
8884   
8885         cat > conftest.$ac_ext <<EOF
8886 #line 8887 "configure"
8887 #include "confdefs.h"
8888 #include <math.h>
8889 int main() {
8890  __builtin_sqrt(0);
8891 ; return 0; }
8892 EOF
8893 if { (eval echo configure:8894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8894   rm -rf conftest*
8895   glibcpp_cv_func___builtin_sqrt_link=yes
8896 else
8897   echo "configure: failed program was:" >&5
8898   cat conftest.$ac_ext >&5
8899   rm -rf conftest*
8900   glibcpp_cv_func___builtin_sqrt_link=no
8901 fi
8902 rm -f conftest*
8903       
8904 fi
8905
8906     fi
8907     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
8908     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
8909       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8910       cat >> confdefs.h <<EOF
8911 #define ${ac_tr_func} 1
8912 EOF
8913
8914     fi
8915   fi
8916
8917   
8918   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
8919 echo "configure:8920: checking for __builtin_sqrtl declaration" >&5
8920   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
8921     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
8922   echo $ac_n "(cached) $ac_c" 1>&6
8923 else
8924   
8925       
8926       ac_ext=C
8927 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8928 ac_cpp='$CXXCPP $CPPFLAGS'
8929 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8930 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8931 cross_compiling=$ac_cv_prog_cxx_cross
8932
8933       cat > conftest.$ac_ext <<EOF
8934 #line 8935 "configure"
8935 #include "confdefs.h"
8936 #include <math.h>
8937 int main() {
8938  __builtin_sqrtl(0);
8939 ; return 0; }
8940 EOF
8941 if { (eval echo configure:8942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8942   rm -rf conftest*
8943   glibcpp_cv_func___builtin_sqrtl_use=yes
8944 else
8945   echo "configure: failed program was:" >&5
8946   cat conftest.$ac_ext >&5
8947   rm -rf conftest*
8948   glibcpp_cv_func___builtin_sqrtl_use=no
8949 fi
8950 rm -f conftest*
8951       ac_ext=c
8952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8953 ac_cpp='$CPP $CPPFLAGS'
8954 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8955 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8956 cross_compiling=$ac_cv_prog_cc_cross
8957
8958     
8959 fi
8960
8961   fi
8962   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
8963   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
8964     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
8965 echo "configure:8966: checking for __builtin_sqrtl linkage" >&5
8966     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
8967       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
8968   echo $ac_n "(cached) $ac_c" 1>&6
8969 else
8970   
8971         cat > conftest.$ac_ext <<EOF
8972 #line 8973 "configure"
8973 #include "confdefs.h"
8974 #include <math.h>
8975 int main() {
8976  __builtin_sqrtl(0);
8977 ; return 0; }
8978 EOF
8979 if { (eval echo configure:8980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8980   rm -rf conftest*
8981   glibcpp_cv_func___builtin_sqrtl_link=yes
8982 else
8983   echo "configure: failed program was:" >&5
8984   cat conftest.$ac_ext >&5
8985   rm -rf conftest*
8986   glibcpp_cv_func___builtin_sqrtl_link=no
8987 fi
8988 rm -f conftest*
8989       
8990 fi
8991
8992     fi
8993     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
8994     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
8995       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8996       cat >> confdefs.h <<EOF
8997 #define ${ac_tr_func} 1
8998 EOF
8999
9000     fi
9001   fi
9002
9003
9004   
9005   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
9006 echo "configure:9007: checking for __builtin_sinf declaration" >&5
9007   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
9008     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
9009   echo $ac_n "(cached) $ac_c" 1>&6
9010 else
9011   
9012       
9013       ac_ext=C
9014 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9015 ac_cpp='$CXXCPP $CPPFLAGS'
9016 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9017 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9018 cross_compiling=$ac_cv_prog_cxx_cross
9019
9020       cat > conftest.$ac_ext <<EOF
9021 #line 9022 "configure"
9022 #include "confdefs.h"
9023 #include <math.h>
9024 int main() {
9025  __builtin_sinf(0);
9026 ; return 0; }
9027 EOF
9028 if { (eval echo configure:9029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9029   rm -rf conftest*
9030   glibcpp_cv_func___builtin_sinf_use=yes
9031 else
9032   echo "configure: failed program was:" >&5
9033   cat conftest.$ac_ext >&5
9034   rm -rf conftest*
9035   glibcpp_cv_func___builtin_sinf_use=no
9036 fi
9037 rm -f conftest*
9038       ac_ext=c
9039 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9040 ac_cpp='$CPP $CPPFLAGS'
9041 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9042 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9043 cross_compiling=$ac_cv_prog_cc_cross
9044
9045     
9046 fi
9047
9048   fi
9049   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
9050   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
9051     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
9052 echo "configure:9053: checking for __builtin_sinf linkage" >&5
9053     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
9054       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
9055   echo $ac_n "(cached) $ac_c" 1>&6
9056 else
9057   
9058         cat > conftest.$ac_ext <<EOF
9059 #line 9060 "configure"
9060 #include "confdefs.h"
9061 #include <math.h>
9062 int main() {
9063  __builtin_sinf(0);
9064 ; return 0; }
9065 EOF
9066 if { (eval echo configure:9067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9067   rm -rf conftest*
9068   glibcpp_cv_func___builtin_sinf_link=yes
9069 else
9070   echo "configure: failed program was:" >&5
9071   cat conftest.$ac_ext >&5
9072   rm -rf conftest*
9073   glibcpp_cv_func___builtin_sinf_link=no
9074 fi
9075 rm -f conftest*
9076       
9077 fi
9078
9079     fi
9080     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
9081     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
9082       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9083       cat >> confdefs.h <<EOF
9084 #define ${ac_tr_func} 1
9085 EOF
9086
9087     fi
9088   fi
9089
9090   
9091   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
9092 echo "configure:9093: checking for __builtin_sin declaration" >&5
9093   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
9094     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
9095   echo $ac_n "(cached) $ac_c" 1>&6
9096 else
9097   
9098       
9099       ac_ext=C
9100 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9101 ac_cpp='$CXXCPP $CPPFLAGS'
9102 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9103 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9104 cross_compiling=$ac_cv_prog_cxx_cross
9105
9106       cat > conftest.$ac_ext <<EOF
9107 #line 9108 "configure"
9108 #include "confdefs.h"
9109 #include <math.h>
9110 int main() {
9111  __builtin_sin(0);
9112 ; return 0; }
9113 EOF
9114 if { (eval echo configure:9115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9115   rm -rf conftest*
9116   glibcpp_cv_func___builtin_sin_use=yes
9117 else
9118   echo "configure: failed program was:" >&5
9119   cat conftest.$ac_ext >&5
9120   rm -rf conftest*
9121   glibcpp_cv_func___builtin_sin_use=no
9122 fi
9123 rm -f conftest*
9124       ac_ext=c
9125 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9126 ac_cpp='$CPP $CPPFLAGS'
9127 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9128 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9129 cross_compiling=$ac_cv_prog_cc_cross
9130
9131     
9132 fi
9133
9134   fi
9135   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
9136   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
9137     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
9138 echo "configure:9139: checking for __builtin_sin linkage" >&5
9139     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
9140       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
9141   echo $ac_n "(cached) $ac_c" 1>&6
9142 else
9143   
9144         cat > conftest.$ac_ext <<EOF
9145 #line 9146 "configure"
9146 #include "confdefs.h"
9147 #include <math.h>
9148 int main() {
9149  __builtin_sin(0);
9150 ; return 0; }
9151 EOF
9152 if { (eval echo configure:9153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9153   rm -rf conftest*
9154   glibcpp_cv_func___builtin_sin_link=yes
9155 else
9156   echo "configure: failed program was:" >&5
9157   cat conftest.$ac_ext >&5
9158   rm -rf conftest*
9159   glibcpp_cv_func___builtin_sin_link=no
9160 fi
9161 rm -f conftest*
9162       
9163 fi
9164
9165     fi
9166     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
9167     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
9168       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9169       cat >> confdefs.h <<EOF
9170 #define ${ac_tr_func} 1
9171 EOF
9172
9173     fi
9174   fi
9175
9176   
9177   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
9178 echo "configure:9179: checking for __builtin_sinl declaration" >&5
9179   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
9180     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
9181   echo $ac_n "(cached) $ac_c" 1>&6
9182 else
9183   
9184       
9185       ac_ext=C
9186 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9187 ac_cpp='$CXXCPP $CPPFLAGS'
9188 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9189 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9190 cross_compiling=$ac_cv_prog_cxx_cross
9191
9192       cat > conftest.$ac_ext <<EOF
9193 #line 9194 "configure"
9194 #include "confdefs.h"
9195 #include <math.h>
9196 int main() {
9197  __builtin_sinl(0);
9198 ; return 0; }
9199 EOF
9200 if { (eval echo configure:9201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9201   rm -rf conftest*
9202   glibcpp_cv_func___builtin_sinl_use=yes
9203 else
9204   echo "configure: failed program was:" >&5
9205   cat conftest.$ac_ext >&5
9206   rm -rf conftest*
9207   glibcpp_cv_func___builtin_sinl_use=no
9208 fi
9209 rm -f conftest*
9210       ac_ext=c
9211 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9212 ac_cpp='$CPP $CPPFLAGS'
9213 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9214 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9215 cross_compiling=$ac_cv_prog_cc_cross
9216
9217     
9218 fi
9219
9220   fi
9221   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
9222   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
9223     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
9224 echo "configure:9225: checking for __builtin_sinl linkage" >&5
9225     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
9226       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
9227   echo $ac_n "(cached) $ac_c" 1>&6
9228 else
9229   
9230         cat > conftest.$ac_ext <<EOF
9231 #line 9232 "configure"
9232 #include "confdefs.h"
9233 #include <math.h>
9234 int main() {
9235  __builtin_sinl(0);
9236 ; return 0; }
9237 EOF
9238 if { (eval echo configure:9239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9239   rm -rf conftest*
9240   glibcpp_cv_func___builtin_sinl_link=yes
9241 else
9242   echo "configure: failed program was:" >&5
9243   cat conftest.$ac_ext >&5
9244   rm -rf conftest*
9245   glibcpp_cv_func___builtin_sinl_link=no
9246 fi
9247 rm -f conftest*
9248       
9249 fi
9250
9251     fi
9252     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
9253     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
9254       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9255       cat >> confdefs.h <<EOF
9256 #define ${ac_tr_func} 1
9257 EOF
9258
9259     fi
9260   fi
9261
9262
9263   
9264   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
9265 echo "configure:9266: checking for __builtin_cosf declaration" >&5
9266   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
9267     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
9268   echo $ac_n "(cached) $ac_c" 1>&6
9269 else
9270   
9271       
9272       ac_ext=C
9273 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9274 ac_cpp='$CXXCPP $CPPFLAGS'
9275 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9276 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9277 cross_compiling=$ac_cv_prog_cxx_cross
9278
9279       cat > conftest.$ac_ext <<EOF
9280 #line 9281 "configure"
9281 #include "confdefs.h"
9282 #include <math.h>
9283 int main() {
9284  __builtin_cosf(0);
9285 ; return 0; }
9286 EOF
9287 if { (eval echo configure:9288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9288   rm -rf conftest*
9289   glibcpp_cv_func___builtin_cosf_use=yes
9290 else
9291   echo "configure: failed program was:" >&5
9292   cat conftest.$ac_ext >&5
9293   rm -rf conftest*
9294   glibcpp_cv_func___builtin_cosf_use=no
9295 fi
9296 rm -f conftest*
9297       ac_ext=c
9298 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9299 ac_cpp='$CPP $CPPFLAGS'
9300 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9301 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9302 cross_compiling=$ac_cv_prog_cc_cross
9303
9304     
9305 fi
9306
9307   fi
9308   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
9309   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
9310     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
9311 echo "configure:9312: checking for __builtin_cosf linkage" >&5
9312     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
9313       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
9314   echo $ac_n "(cached) $ac_c" 1>&6
9315 else
9316   
9317         cat > conftest.$ac_ext <<EOF
9318 #line 9319 "configure"
9319 #include "confdefs.h"
9320 #include <math.h>
9321 int main() {
9322  __builtin_cosf(0);
9323 ; return 0; }
9324 EOF
9325 if { (eval echo configure:9326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9326   rm -rf conftest*
9327   glibcpp_cv_func___builtin_cosf_link=yes
9328 else
9329   echo "configure: failed program was:" >&5
9330   cat conftest.$ac_ext >&5
9331   rm -rf conftest*
9332   glibcpp_cv_func___builtin_cosf_link=no
9333 fi
9334 rm -f conftest*
9335       
9336 fi
9337
9338     fi
9339     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
9340     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
9341       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9342       cat >> confdefs.h <<EOF
9343 #define ${ac_tr_func} 1
9344 EOF
9345
9346     fi
9347   fi
9348
9349   
9350   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
9351 echo "configure:9352: checking for __builtin_cos declaration" >&5
9352   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
9353     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
9354   echo $ac_n "(cached) $ac_c" 1>&6
9355 else
9356   
9357       
9358       ac_ext=C
9359 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9360 ac_cpp='$CXXCPP $CPPFLAGS'
9361 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9362 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9363 cross_compiling=$ac_cv_prog_cxx_cross
9364
9365       cat > conftest.$ac_ext <<EOF
9366 #line 9367 "configure"
9367 #include "confdefs.h"
9368 #include <math.h>
9369 int main() {
9370  __builtin_cos(0);
9371 ; return 0; }
9372 EOF
9373 if { (eval echo configure:9374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9374   rm -rf conftest*
9375   glibcpp_cv_func___builtin_cos_use=yes
9376 else
9377   echo "configure: failed program was:" >&5
9378   cat conftest.$ac_ext >&5
9379   rm -rf conftest*
9380   glibcpp_cv_func___builtin_cos_use=no
9381 fi
9382 rm -f conftest*
9383       ac_ext=c
9384 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9385 ac_cpp='$CPP $CPPFLAGS'
9386 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9387 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9388 cross_compiling=$ac_cv_prog_cc_cross
9389
9390     
9391 fi
9392
9393   fi
9394   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
9395   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
9396     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
9397 echo "configure:9398: checking for __builtin_cos linkage" >&5
9398     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
9399       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
9400   echo $ac_n "(cached) $ac_c" 1>&6
9401 else
9402   
9403         cat > conftest.$ac_ext <<EOF
9404 #line 9405 "configure"
9405 #include "confdefs.h"
9406 #include <math.h>
9407 int main() {
9408  __builtin_cos(0);
9409 ; return 0; }
9410 EOF
9411 if { (eval echo configure:9412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9412   rm -rf conftest*
9413   glibcpp_cv_func___builtin_cos_link=yes
9414 else
9415   echo "configure: failed program was:" >&5
9416   cat conftest.$ac_ext >&5
9417   rm -rf conftest*
9418   glibcpp_cv_func___builtin_cos_link=no
9419 fi
9420 rm -f conftest*
9421       
9422 fi
9423
9424     fi
9425     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
9426     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
9427       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9428       cat >> confdefs.h <<EOF
9429 #define ${ac_tr_func} 1
9430 EOF
9431
9432     fi
9433   fi
9434
9435   
9436   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
9437 echo "configure:9438: checking for __builtin_cosl declaration" >&5
9438   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
9439     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
9440   echo $ac_n "(cached) $ac_c" 1>&6
9441 else
9442   
9443       
9444       ac_ext=C
9445 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9446 ac_cpp='$CXXCPP $CPPFLAGS'
9447 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9448 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9449 cross_compiling=$ac_cv_prog_cxx_cross
9450
9451       cat > conftest.$ac_ext <<EOF
9452 #line 9453 "configure"
9453 #include "confdefs.h"
9454 #include <math.h>
9455 int main() {
9456  __builtin_cosl(0);
9457 ; return 0; }
9458 EOF
9459 if { (eval echo configure:9460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9460   rm -rf conftest*
9461   glibcpp_cv_func___builtin_cosl_use=yes
9462 else
9463   echo "configure: failed program was:" >&5
9464   cat conftest.$ac_ext >&5
9465   rm -rf conftest*
9466   glibcpp_cv_func___builtin_cosl_use=no
9467 fi
9468 rm -f conftest*
9469       ac_ext=c
9470 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9471 ac_cpp='$CPP $CPPFLAGS'
9472 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9473 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9474 cross_compiling=$ac_cv_prog_cc_cross
9475
9476     
9477 fi
9478
9479   fi
9480   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
9481   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
9482     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
9483 echo "configure:9484: checking for __builtin_cosl linkage" >&5
9484     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
9485       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
9486   echo $ac_n "(cached) $ac_c" 1>&6
9487 else
9488   
9489         cat > conftest.$ac_ext <<EOF
9490 #line 9491 "configure"
9491 #include "confdefs.h"
9492 #include <math.h>
9493 int main() {
9494  __builtin_cosl(0);
9495 ; return 0; }
9496 EOF
9497 if { (eval echo configure:9498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9498   rm -rf conftest*
9499   glibcpp_cv_func___builtin_cosl_link=yes
9500 else
9501   echo "configure: failed program was:" >&5
9502   cat conftest.$ac_ext >&5
9503   rm -rf conftest*
9504   glibcpp_cv_func___builtin_cosl_link=no
9505 fi
9506 rm -f conftest*
9507       
9508 fi
9509
9510     fi
9511     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
9512     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
9513       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9514       cat >> confdefs.h <<EOF
9515 #define ${ac_tr_func} 1
9516 EOF
9517
9518     fi
9519   fi
9520
9521
9522               dummyvar=no
9523   if test x$dummyvar = x"yes"; then
9524     cat >> confdefs.h <<\EOF
9525 #define HAVE___BUILTIN_ABS 1
9526 EOF
9527
9528     cat >> confdefs.h <<\EOF
9529 #define HAVE___BUILTIN_LABS 1
9530 EOF
9531
9532     cat >> confdefs.h <<\EOF
9533 #define HAVE___BUILTIN_COS 1
9534 EOF
9535
9536     cat >> confdefs.h <<\EOF
9537 #define HAVE___BUILTIN_COSF 1
9538 EOF
9539
9540     cat >> confdefs.h <<\EOF
9541 #define HAVE___BUILTIN_COSL 1
9542 EOF
9543
9544     cat >> confdefs.h <<\EOF
9545 #define HAVE___BUILTIN_FABS 1
9546 EOF
9547
9548     cat >> confdefs.h <<\EOF
9549 #define HAVE___BUILTIN_FABSF 1
9550 EOF
9551
9552     cat >> confdefs.h <<\EOF
9553 #define HAVE___BUILTIN_FABSL 1
9554 EOF
9555
9556     cat >> confdefs.h <<\EOF
9557 #define HAVE___BUILTIN_SIN 1
9558 EOF
9559
9560     cat >> confdefs.h <<\EOF
9561 #define HAVE___BUILTIN_SINF 1
9562 EOF
9563
9564     cat >> confdefs.h <<\EOF
9565 #define HAVE___BUILTIN_SINL 1
9566 EOF
9567
9568     cat >> confdefs.h <<\EOF
9569 #define HAVE___BUILTIN_SQRT 1
9570 EOF
9571
9572     cat >> confdefs.h <<\EOF
9573 #define HAVE___BUILTIN_SQRTF 1
9574 EOF
9575
9576     cat >> confdefs.h <<\EOF
9577 #define HAVE___BUILTIN_SQRTL 1
9578 EOF
9579
9580   fi
9581
9582   
9583   ac_test_CXXFLAGS="${CXXFLAGS+set}"
9584   ac_save_CXXFLAGS="$CXXFLAGS"
9585   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
9586
9587     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
9588 echo "configure:9589: checking for sin in -lm" >&5
9589 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
9590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9591   echo $ac_n "(cached) $ac_c" 1>&6
9592 else
9593   ac_save_LIBS="$LIBS"
9594 LIBS="-lm  $LIBS"
9595 cat > conftest.$ac_ext <<EOF
9596 #line 9597 "configure"
9597 #include "confdefs.h"
9598 /* Override any gcc2 internal prototype to avoid an error.  */
9599 /* We use char because int might match the return type of a gcc2
9600     builtin and then its argument prototype would still apply.  */
9601 char sin();
9602
9603 int main() {
9604 sin()
9605 ; return 0; }
9606 EOF
9607 if { (eval echo configure:9608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9608   rm -rf conftest*
9609   eval "ac_cv_lib_$ac_lib_var=yes"
9610 else
9611   echo "configure: failed program was:" >&5
9612   cat conftest.$ac_ext >&5
9613   rm -rf conftest*
9614   eval "ac_cv_lib_$ac_lib_var=no"
9615 fi
9616 rm -f conftest*
9617 LIBS="$ac_save_LIBS"
9618
9619 fi
9620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9621   echo "$ac_t""yes" 1>&6
9622   libm="-lm"
9623 else
9624   echo "$ac_t""no" 1>&6
9625 fi
9626
9627   ac_save_LIBS="$LIBS"
9628   LIBS="$LIBS $libm"
9629
9630     
9631   
9632   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
9633 echo "configure:9634: checking for isinf declaration" >&5
9634   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
9635     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
9636   echo $ac_n "(cached) $ac_c" 1>&6
9637 else
9638   
9639       
9640       ac_ext=C
9641 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9642 ac_cpp='$CXXCPP $CPPFLAGS'
9643 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9644 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9645 cross_compiling=$ac_cv_prog_cxx_cross
9646
9647       cat > conftest.$ac_ext <<EOF
9648 #line 9649 "configure"
9649 #include "confdefs.h"
9650 #include <math.h>
9651                       #ifdef HAVE_IEEEFP_H
9652                       #include <ieeefp.h>
9653                       #endif
9654                      
9655 int main() {
9656  isinf(0);
9657 ; return 0; }
9658 EOF
9659 if { (eval echo configure:9660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9660   rm -rf conftest*
9661   glibcpp_cv_func_isinf_use=yes
9662 else
9663   echo "configure: failed program was:" >&5
9664   cat conftest.$ac_ext >&5
9665   rm -rf conftest*
9666   glibcpp_cv_func_isinf_use=no
9667 fi
9668 rm -f conftest*
9669       ac_ext=c
9670 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9671 ac_cpp='$CPP $CPPFLAGS'
9672 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9673 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9674 cross_compiling=$ac_cv_prog_cc_cross
9675
9676     
9677 fi
9678
9679   fi
9680   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
9681
9682   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
9683     for ac_func in isinf
9684 do
9685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9686 echo "configure:9687: checking for $ac_func" >&5
9687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9688   echo $ac_n "(cached) $ac_c" 1>&6
9689 else
9690   cat > conftest.$ac_ext <<EOF
9691 #line 9692 "configure"
9692 #include "confdefs.h"
9693 /* System header to define __stub macros and hopefully few prototypes,
9694     which can conflict with char $ac_func(); below.  */
9695 #include <assert.h>
9696 /* Override any gcc2 internal prototype to avoid an error.  */
9697 /* We use char because int might match the return type of a gcc2
9698     builtin and then its argument prototype would still apply.  */
9699 char $ac_func();
9700
9701 int main() {
9702
9703 /* The GNU C library defines this for functions which it implements
9704     to always fail with ENOSYS.  Some functions are actually named
9705     something starting with __ and the normal name is an alias.  */
9706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9707 choke me
9708 #else
9709 $ac_func();
9710 #endif
9711
9712 ; return 0; }
9713 EOF
9714 if { (eval echo configure:9715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9715   rm -rf conftest*
9716   eval "ac_cv_func_$ac_func=yes"
9717 else
9718   echo "configure: failed program was:" >&5
9719   cat conftest.$ac_ext >&5
9720   rm -rf conftest*
9721   eval "ac_cv_func_$ac_func=no"
9722 fi
9723 rm -f conftest*
9724 fi
9725
9726 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9727   echo "$ac_t""yes" 1>&6
9728     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9729   cat >> confdefs.h <<EOF
9730 #define $ac_tr_func 1
9731 EOF
9732  
9733 else
9734   echo "$ac_t""no" 1>&6
9735 fi
9736 done
9737     
9738   else
9739     
9740   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
9741 echo "configure:9742: checking for _isinf declaration" >&5
9742   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
9743     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
9744   echo $ac_n "(cached) $ac_c" 1>&6
9745 else
9746   
9747       
9748       ac_ext=C
9749 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9750 ac_cpp='$CXXCPP $CPPFLAGS'
9751 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9752 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9753 cross_compiling=$ac_cv_prog_cxx_cross
9754
9755       cat > conftest.$ac_ext <<EOF
9756 #line 9757 "configure"
9757 #include "confdefs.h"
9758 #include <math.h>
9759                       #ifdef HAVE_IEEEFP_H
9760                       #include <ieeefp.h>
9761                       #endif
9762                      
9763 int main() {
9764  _isinf(0);
9765 ; return 0; }
9766 EOF
9767 if { (eval echo configure:9768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9768   rm -rf conftest*
9769   glibcpp_cv_func__isinf_use=yes
9770 else
9771   echo "configure: failed program was:" >&5
9772   cat conftest.$ac_ext >&5
9773   rm -rf conftest*
9774   glibcpp_cv_func__isinf_use=no
9775 fi
9776 rm -f conftest*
9777       ac_ext=c
9778 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9779 ac_cpp='$CPP $CPPFLAGS'
9780 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9781 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9782 cross_compiling=$ac_cv_prog_cc_cross
9783
9784     
9785 fi
9786
9787   fi
9788   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
9789
9790     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
9791       for ac_func in _isinf
9792 do
9793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9794 echo "configure:9795: checking for $ac_func" >&5
9795 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9796   echo $ac_n "(cached) $ac_c" 1>&6
9797 else
9798   cat > conftest.$ac_ext <<EOF
9799 #line 9800 "configure"
9800 #include "confdefs.h"
9801 /* System header to define __stub macros and hopefully few prototypes,
9802     which can conflict with char $ac_func(); below.  */
9803 #include <assert.h>
9804 /* Override any gcc2 internal prototype to avoid an error.  */
9805 /* We use char because int might match the return type of a gcc2
9806     builtin and then its argument prototype would still apply.  */
9807 char $ac_func();
9808
9809 int main() {
9810
9811 /* The GNU C library defines this for functions which it implements
9812     to always fail with ENOSYS.  Some functions are actually named
9813     something starting with __ and the normal name is an alias.  */
9814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9815 choke me
9816 #else
9817 $ac_func();
9818 #endif
9819
9820 ; return 0; }
9821 EOF
9822 if { (eval echo configure:9823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9823   rm -rf conftest*
9824   eval "ac_cv_func_$ac_func=yes"
9825 else
9826   echo "configure: failed program was:" >&5
9827   cat conftest.$ac_ext >&5
9828   rm -rf conftest*
9829   eval "ac_cv_func_$ac_func=no"
9830 fi
9831 rm -f conftest*
9832 fi
9833
9834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9835   echo "$ac_t""yes" 1>&6
9836     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9837   cat >> confdefs.h <<EOF
9838 #define $ac_tr_func 1
9839 EOF
9840  
9841 else
9842   echo "$ac_t""no" 1>&6
9843 fi
9844 done
9845     
9846     fi
9847   fi
9848
9849   
9850   
9851   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
9852 echo "configure:9853: checking for isnan declaration" >&5
9853   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
9854     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
9855   echo $ac_n "(cached) $ac_c" 1>&6
9856 else
9857   
9858       
9859       ac_ext=C
9860 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9861 ac_cpp='$CXXCPP $CPPFLAGS'
9862 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9863 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9864 cross_compiling=$ac_cv_prog_cxx_cross
9865
9866       cat > conftest.$ac_ext <<EOF
9867 #line 9868 "configure"
9868 #include "confdefs.h"
9869 #include <math.h>
9870                       #ifdef HAVE_IEEEFP_H
9871                       #include <ieeefp.h>
9872                       #endif
9873                      
9874 int main() {
9875  isnan(0);
9876 ; return 0; }
9877 EOF
9878 if { (eval echo configure:9879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9879   rm -rf conftest*
9880   glibcpp_cv_func_isnan_use=yes
9881 else
9882   echo "configure: failed program was:" >&5
9883   cat conftest.$ac_ext >&5
9884   rm -rf conftest*
9885   glibcpp_cv_func_isnan_use=no
9886 fi
9887 rm -f conftest*
9888       ac_ext=c
9889 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9890 ac_cpp='$CPP $CPPFLAGS'
9891 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9892 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9893 cross_compiling=$ac_cv_prog_cc_cross
9894
9895     
9896 fi
9897
9898   fi
9899   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
9900
9901   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
9902     for ac_func in isnan
9903 do
9904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9905 echo "configure:9906: checking for $ac_func" >&5
9906 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9907   echo $ac_n "(cached) $ac_c" 1>&6
9908 else
9909   cat > conftest.$ac_ext <<EOF
9910 #line 9911 "configure"
9911 #include "confdefs.h"
9912 /* System header to define __stub macros and hopefully few prototypes,
9913     which can conflict with char $ac_func(); below.  */
9914 #include <assert.h>
9915 /* Override any gcc2 internal prototype to avoid an error.  */
9916 /* We use char because int might match the return type of a gcc2
9917     builtin and then its argument prototype would still apply.  */
9918 char $ac_func();
9919
9920 int main() {
9921
9922 /* The GNU C library defines this for functions which it implements
9923     to always fail with ENOSYS.  Some functions are actually named
9924     something starting with __ and the normal name is an alias.  */
9925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9926 choke me
9927 #else
9928 $ac_func();
9929 #endif
9930
9931 ; return 0; }
9932 EOF
9933 if { (eval echo configure:9934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9934   rm -rf conftest*
9935   eval "ac_cv_func_$ac_func=yes"
9936 else
9937   echo "configure: failed program was:" >&5
9938   cat conftest.$ac_ext >&5
9939   rm -rf conftest*
9940   eval "ac_cv_func_$ac_func=no"
9941 fi
9942 rm -f conftest*
9943 fi
9944
9945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9946   echo "$ac_t""yes" 1>&6
9947     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9948   cat >> confdefs.h <<EOF
9949 #define $ac_tr_func 1
9950 EOF
9951  
9952 else
9953   echo "$ac_t""no" 1>&6
9954 fi
9955 done
9956     
9957   else
9958     
9959   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
9960 echo "configure:9961: checking for _isnan declaration" >&5
9961   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
9962     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
9963   echo $ac_n "(cached) $ac_c" 1>&6
9964 else
9965   
9966       
9967       ac_ext=C
9968 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9969 ac_cpp='$CXXCPP $CPPFLAGS'
9970 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9971 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9972 cross_compiling=$ac_cv_prog_cxx_cross
9973
9974       cat > conftest.$ac_ext <<EOF
9975 #line 9976 "configure"
9976 #include "confdefs.h"
9977 #include <math.h>
9978                       #ifdef HAVE_IEEEFP_H
9979                       #include <ieeefp.h>
9980                       #endif
9981                      
9982 int main() {
9983  _isnan(0);
9984 ; return 0; }
9985 EOF
9986 if { (eval echo configure:9987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9987   rm -rf conftest*
9988   glibcpp_cv_func__isnan_use=yes
9989 else
9990   echo "configure: failed program was:" >&5
9991   cat conftest.$ac_ext >&5
9992   rm -rf conftest*
9993   glibcpp_cv_func__isnan_use=no
9994 fi
9995 rm -f conftest*
9996       ac_ext=c
9997 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9998 ac_cpp='$CPP $CPPFLAGS'
9999 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10000 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10001 cross_compiling=$ac_cv_prog_cc_cross
10002
10003     
10004 fi
10005
10006   fi
10007   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
10008
10009     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
10010       for ac_func in _isnan
10011 do
10012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10013 echo "configure:10014: checking for $ac_func" >&5
10014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10015   echo $ac_n "(cached) $ac_c" 1>&6
10016 else
10017   cat > conftest.$ac_ext <<EOF
10018 #line 10019 "configure"
10019 #include "confdefs.h"
10020 /* System header to define __stub macros and hopefully few prototypes,
10021     which can conflict with char $ac_func(); below.  */
10022 #include <assert.h>
10023 /* Override any gcc2 internal prototype to avoid an error.  */
10024 /* We use char because int might match the return type of a gcc2
10025     builtin and then its argument prototype would still apply.  */
10026 char $ac_func();
10027
10028 int main() {
10029
10030 /* The GNU C library defines this for functions which it implements
10031     to always fail with ENOSYS.  Some functions are actually named
10032     something starting with __ and the normal name is an alias.  */
10033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10034 choke me
10035 #else
10036 $ac_func();
10037 #endif
10038
10039 ; return 0; }
10040 EOF
10041 if { (eval echo configure:10042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10042   rm -rf conftest*
10043   eval "ac_cv_func_$ac_func=yes"
10044 else
10045   echo "configure: failed program was:" >&5
10046   cat conftest.$ac_ext >&5
10047   rm -rf conftest*
10048   eval "ac_cv_func_$ac_func=no"
10049 fi
10050 rm -f conftest*
10051 fi
10052
10053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10054   echo "$ac_t""yes" 1>&6
10055     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10056   cat >> confdefs.h <<EOF
10057 #define $ac_tr_func 1
10058 EOF
10059  
10060 else
10061   echo "$ac_t""no" 1>&6
10062 fi
10063 done
10064     
10065     fi
10066   fi
10067
10068   
10069   
10070   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
10071 echo "configure:10072: checking for finite declaration" >&5
10072   if test x${glibcpp_cv_func_finite_use+set} != xset; then
10073     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
10074   echo $ac_n "(cached) $ac_c" 1>&6
10075 else
10076   
10077       
10078       ac_ext=C
10079 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10080 ac_cpp='$CXXCPP $CPPFLAGS'
10081 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10082 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10083 cross_compiling=$ac_cv_prog_cxx_cross
10084
10085       cat > conftest.$ac_ext <<EOF
10086 #line 10087 "configure"
10087 #include "confdefs.h"
10088 #include <math.h>
10089                       #ifdef HAVE_IEEEFP_H
10090                       #include <ieeefp.h>
10091                       #endif
10092                      
10093 int main() {
10094  finite(0);
10095 ; return 0; }
10096 EOF
10097 if { (eval echo configure:10098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10098   rm -rf conftest*
10099   glibcpp_cv_func_finite_use=yes
10100 else
10101   echo "configure: failed program was:" >&5
10102   cat conftest.$ac_ext >&5
10103   rm -rf conftest*
10104   glibcpp_cv_func_finite_use=no
10105 fi
10106 rm -f conftest*
10107       ac_ext=c
10108 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10109 ac_cpp='$CPP $CPPFLAGS'
10110 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10111 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10112 cross_compiling=$ac_cv_prog_cc_cross
10113
10114     
10115 fi
10116
10117   fi
10118   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
10119
10120   if test x$glibcpp_cv_func_finite_use = x"yes"; then
10121     for ac_func in finite
10122 do
10123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10124 echo "configure:10125: checking for $ac_func" >&5
10125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10126   echo $ac_n "(cached) $ac_c" 1>&6
10127 else
10128   cat > conftest.$ac_ext <<EOF
10129 #line 10130 "configure"
10130 #include "confdefs.h"
10131 /* System header to define __stub macros and hopefully few prototypes,
10132     which can conflict with char $ac_func(); below.  */
10133 #include <assert.h>
10134 /* Override any gcc2 internal prototype to avoid an error.  */
10135 /* We use char because int might match the return type of a gcc2
10136     builtin and then its argument prototype would still apply.  */
10137 char $ac_func();
10138
10139 int main() {
10140
10141 /* The GNU C library defines this for functions which it implements
10142     to always fail with ENOSYS.  Some functions are actually named
10143     something starting with __ and the normal name is an alias.  */
10144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10145 choke me
10146 #else
10147 $ac_func();
10148 #endif
10149
10150 ; return 0; }
10151 EOF
10152 if { (eval echo configure:10153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10153   rm -rf conftest*
10154   eval "ac_cv_func_$ac_func=yes"
10155 else
10156   echo "configure: failed program was:" >&5
10157   cat conftest.$ac_ext >&5
10158   rm -rf conftest*
10159   eval "ac_cv_func_$ac_func=no"
10160 fi
10161 rm -f conftest*
10162 fi
10163
10164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10165   echo "$ac_t""yes" 1>&6
10166     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10167   cat >> confdefs.h <<EOF
10168 #define $ac_tr_func 1
10169 EOF
10170  
10171 else
10172   echo "$ac_t""no" 1>&6
10173 fi
10174 done
10175     
10176   else
10177     
10178   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
10179 echo "configure:10180: checking for _finite declaration" >&5
10180   if test x${glibcpp_cv_func__finite_use+set} != xset; then
10181     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
10182   echo $ac_n "(cached) $ac_c" 1>&6
10183 else
10184   
10185       
10186       ac_ext=C
10187 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10188 ac_cpp='$CXXCPP $CPPFLAGS'
10189 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10190 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10191 cross_compiling=$ac_cv_prog_cxx_cross
10192
10193       cat > conftest.$ac_ext <<EOF
10194 #line 10195 "configure"
10195 #include "confdefs.h"
10196 #include <math.h>
10197                       #ifdef HAVE_IEEEFP_H
10198                       #include <ieeefp.h>
10199                       #endif
10200                      
10201 int main() {
10202  _finite(0);
10203 ; return 0; }
10204 EOF
10205 if { (eval echo configure:10206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10206   rm -rf conftest*
10207   glibcpp_cv_func__finite_use=yes
10208 else
10209   echo "configure: failed program was:" >&5
10210   cat conftest.$ac_ext >&5
10211   rm -rf conftest*
10212   glibcpp_cv_func__finite_use=no
10213 fi
10214 rm -f conftest*
10215       ac_ext=c
10216 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10217 ac_cpp='$CPP $CPPFLAGS'
10218 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10219 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10220 cross_compiling=$ac_cv_prog_cc_cross
10221
10222     
10223 fi
10224
10225   fi
10226   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
10227
10228     if test x$glibcpp_cv_func__finite_use = x"yes"; then
10229       for ac_func in _finite
10230 do
10231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10232 echo "configure:10233: checking for $ac_func" >&5
10233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10234   echo $ac_n "(cached) $ac_c" 1>&6
10235 else
10236   cat > conftest.$ac_ext <<EOF
10237 #line 10238 "configure"
10238 #include "confdefs.h"
10239 /* System header to define __stub macros and hopefully few prototypes,
10240     which can conflict with char $ac_func(); below.  */
10241 #include <assert.h>
10242 /* Override any gcc2 internal prototype to avoid an error.  */
10243 /* We use char because int might match the return type of a gcc2
10244     builtin and then its argument prototype would still apply.  */
10245 char $ac_func();
10246
10247 int main() {
10248
10249 /* The GNU C library defines this for functions which it implements
10250     to always fail with ENOSYS.  Some functions are actually named
10251     something starting with __ and the normal name is an alias.  */
10252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10253 choke me
10254 #else
10255 $ac_func();
10256 #endif
10257
10258 ; return 0; }
10259 EOF
10260 if { (eval echo configure:10261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10261   rm -rf conftest*
10262   eval "ac_cv_func_$ac_func=yes"
10263 else
10264   echo "configure: failed program was:" >&5
10265   cat conftest.$ac_ext >&5
10266   rm -rf conftest*
10267   eval "ac_cv_func_$ac_func=no"
10268 fi
10269 rm -f conftest*
10270 fi
10271
10272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10273   echo "$ac_t""yes" 1>&6
10274     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10275   cat >> confdefs.h <<EOF
10276 #define $ac_tr_func 1
10277 EOF
10278  
10279 else
10280   echo "$ac_t""no" 1>&6
10281 fi
10282 done
10283     
10284     fi
10285   fi
10286
10287   
10288   
10289   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
10290 echo "configure:10291: checking for copysign declaration" >&5
10291   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
10292     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
10293   echo $ac_n "(cached) $ac_c" 1>&6
10294 else
10295   
10296       
10297       ac_ext=C
10298 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10299 ac_cpp='$CXXCPP $CPPFLAGS'
10300 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10301 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10302 cross_compiling=$ac_cv_prog_cxx_cross
10303
10304       cat > conftest.$ac_ext <<EOF
10305 #line 10306 "configure"
10306 #include "confdefs.h"
10307 #include <math.h>
10308 int main() {
10309  copysign(0, 0);
10310 ; return 0; }
10311 EOF
10312 if { (eval echo configure:10313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10313   rm -rf conftest*
10314   glibcpp_cv_func_copysign_use=yes
10315 else
10316   echo "configure: failed program was:" >&5
10317   cat conftest.$ac_ext >&5
10318   rm -rf conftest*
10319   glibcpp_cv_func_copysign_use=no
10320 fi
10321 rm -f conftest*
10322       ac_ext=c
10323 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10324 ac_cpp='$CPP $CPPFLAGS'
10325 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10326 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10327 cross_compiling=$ac_cv_prog_cc_cross
10328
10329     
10330 fi
10331
10332   fi
10333   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
10334
10335   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
10336     for ac_func in copysign
10337 do
10338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10339 echo "configure:10340: checking for $ac_func" >&5
10340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10341   echo $ac_n "(cached) $ac_c" 1>&6
10342 else
10343   cat > conftest.$ac_ext <<EOF
10344 #line 10345 "configure"
10345 #include "confdefs.h"
10346 /* System header to define __stub macros and hopefully few prototypes,
10347     which can conflict with char $ac_func(); below.  */
10348 #include <assert.h>
10349 /* Override any gcc2 internal prototype to avoid an error.  */
10350 /* We use char because int might match the return type of a gcc2
10351     builtin and then its argument prototype would still apply.  */
10352 char $ac_func();
10353
10354 int main() {
10355
10356 /* The GNU C library defines this for functions which it implements
10357     to always fail with ENOSYS.  Some functions are actually named
10358     something starting with __ and the normal name is an alias.  */
10359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10360 choke me
10361 #else
10362 $ac_func();
10363 #endif
10364
10365 ; return 0; }
10366 EOF
10367 if { (eval echo configure:10368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10368   rm -rf conftest*
10369   eval "ac_cv_func_$ac_func=yes"
10370 else
10371   echo "configure: failed program was:" >&5
10372   cat conftest.$ac_ext >&5
10373   rm -rf conftest*
10374   eval "ac_cv_func_$ac_func=no"
10375 fi
10376 rm -f conftest*
10377 fi
10378
10379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10380   echo "$ac_t""yes" 1>&6
10381     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10382   cat >> confdefs.h <<EOF
10383 #define $ac_tr_func 1
10384 EOF
10385  
10386 else
10387   echo "$ac_t""no" 1>&6
10388 fi
10389 done
10390     
10391   else
10392     
10393   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
10394 echo "configure:10395: checking for _copysign declaration" >&5
10395   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
10396     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
10397   echo $ac_n "(cached) $ac_c" 1>&6
10398 else
10399   
10400       
10401       ac_ext=C
10402 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10403 ac_cpp='$CXXCPP $CPPFLAGS'
10404 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10405 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10406 cross_compiling=$ac_cv_prog_cxx_cross
10407
10408       cat > conftest.$ac_ext <<EOF
10409 #line 10410 "configure"
10410 #include "confdefs.h"
10411 #include <math.h>
10412 int main() {
10413  _copysign(0, 0);
10414 ; return 0; }
10415 EOF
10416 if { (eval echo configure:10417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10417   rm -rf conftest*
10418   glibcpp_cv_func__copysign_use=yes
10419 else
10420   echo "configure: failed program was:" >&5
10421   cat conftest.$ac_ext >&5
10422   rm -rf conftest*
10423   glibcpp_cv_func__copysign_use=no
10424 fi
10425 rm -f conftest*
10426       ac_ext=c
10427 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10428 ac_cpp='$CPP $CPPFLAGS'
10429 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10430 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10431 cross_compiling=$ac_cv_prog_cc_cross
10432
10433     
10434 fi
10435
10436   fi
10437   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
10438
10439     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
10440       for ac_func in _copysign
10441 do
10442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10443 echo "configure:10444: checking for $ac_func" >&5
10444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10445   echo $ac_n "(cached) $ac_c" 1>&6
10446 else
10447   cat > conftest.$ac_ext <<EOF
10448 #line 10449 "configure"
10449 #include "confdefs.h"
10450 /* System header to define __stub macros and hopefully few prototypes,
10451     which can conflict with char $ac_func(); below.  */
10452 #include <assert.h>
10453 /* Override any gcc2 internal prototype to avoid an error.  */
10454 /* We use char because int might match the return type of a gcc2
10455     builtin and then its argument prototype would still apply.  */
10456 char $ac_func();
10457
10458 int main() {
10459
10460 /* The GNU C library defines this for functions which it implements
10461     to always fail with ENOSYS.  Some functions are actually named
10462     something starting with __ and the normal name is an alias.  */
10463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10464 choke me
10465 #else
10466 $ac_func();
10467 #endif
10468
10469 ; return 0; }
10470 EOF
10471 if { (eval echo configure:10472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10472   rm -rf conftest*
10473   eval "ac_cv_func_$ac_func=yes"
10474 else
10475   echo "configure: failed program was:" >&5
10476   cat conftest.$ac_ext >&5
10477   rm -rf conftest*
10478   eval "ac_cv_func_$ac_func=no"
10479 fi
10480 rm -f conftest*
10481 fi
10482
10483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10484   echo "$ac_t""yes" 1>&6
10485     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10486   cat >> confdefs.h <<EOF
10487 #define $ac_tr_func 1
10488 EOF
10489  
10490 else
10491   echo "$ac_t""no" 1>&6
10492 fi
10493 done
10494     
10495     fi
10496   fi
10497
10498   
10499   
10500   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
10501 echo "configure:10502: checking for sincos declaration" >&5
10502   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
10503     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
10504   echo $ac_n "(cached) $ac_c" 1>&6
10505 else
10506   
10507       
10508       ac_ext=C
10509 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10510 ac_cpp='$CXXCPP $CPPFLAGS'
10511 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10512 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10513 cross_compiling=$ac_cv_prog_cxx_cross
10514
10515       cat > conftest.$ac_ext <<EOF
10516 #line 10517 "configure"
10517 #include "confdefs.h"
10518 #include <math.h>
10519 int main() {
10520  sincos(0, 0, 0);
10521 ; return 0; }
10522 EOF
10523 if { (eval echo configure:10524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10524   rm -rf conftest*
10525   glibcpp_cv_func_sincos_use=yes
10526 else
10527   echo "configure: failed program was:" >&5
10528   cat conftest.$ac_ext >&5
10529   rm -rf conftest*
10530   glibcpp_cv_func_sincos_use=no
10531 fi
10532 rm -f conftest*
10533       ac_ext=c
10534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10535 ac_cpp='$CPP $CPPFLAGS'
10536 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10537 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10538 cross_compiling=$ac_cv_prog_cc_cross
10539
10540     
10541 fi
10542
10543   fi
10544   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
10545
10546   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
10547     for ac_func in sincos
10548 do
10549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10550 echo "configure:10551: checking for $ac_func" >&5
10551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10552   echo $ac_n "(cached) $ac_c" 1>&6
10553 else
10554   cat > conftest.$ac_ext <<EOF
10555 #line 10556 "configure"
10556 #include "confdefs.h"
10557 /* System header to define __stub macros and hopefully few prototypes,
10558     which can conflict with char $ac_func(); below.  */
10559 #include <assert.h>
10560 /* Override any gcc2 internal prototype to avoid an error.  */
10561 /* We use char because int might match the return type of a gcc2
10562     builtin and then its argument prototype would still apply.  */
10563 char $ac_func();
10564
10565 int main() {
10566
10567 /* The GNU C library defines this for functions which it implements
10568     to always fail with ENOSYS.  Some functions are actually named
10569     something starting with __ and the normal name is an alias.  */
10570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10571 choke me
10572 #else
10573 $ac_func();
10574 #endif
10575
10576 ; return 0; }
10577 EOF
10578 if { (eval echo configure:10579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10579   rm -rf conftest*
10580   eval "ac_cv_func_$ac_func=yes"
10581 else
10582   echo "configure: failed program was:" >&5
10583   cat conftest.$ac_ext >&5
10584   rm -rf conftest*
10585   eval "ac_cv_func_$ac_func=no"
10586 fi
10587 rm -f conftest*
10588 fi
10589
10590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10591   echo "$ac_t""yes" 1>&6
10592     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10593   cat >> confdefs.h <<EOF
10594 #define $ac_tr_func 1
10595 EOF
10596  
10597 else
10598   echo "$ac_t""no" 1>&6
10599 fi
10600 done
10601     
10602   else
10603     
10604   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
10605 echo "configure:10606: checking for _sincos declaration" >&5
10606   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
10607     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
10608   echo $ac_n "(cached) $ac_c" 1>&6
10609 else
10610   
10611       
10612       ac_ext=C
10613 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10614 ac_cpp='$CXXCPP $CPPFLAGS'
10615 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10616 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10617 cross_compiling=$ac_cv_prog_cxx_cross
10618
10619       cat > conftest.$ac_ext <<EOF
10620 #line 10621 "configure"
10621 #include "confdefs.h"
10622 #include <math.h>
10623 int main() {
10624  _sincos(0, 0, 0);
10625 ; return 0; }
10626 EOF
10627 if { (eval echo configure:10628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10628   rm -rf conftest*
10629   glibcpp_cv_func__sincos_use=yes
10630 else
10631   echo "configure: failed program was:" >&5
10632   cat conftest.$ac_ext >&5
10633   rm -rf conftest*
10634   glibcpp_cv_func__sincos_use=no
10635 fi
10636 rm -f conftest*
10637       ac_ext=c
10638 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10639 ac_cpp='$CPP $CPPFLAGS'
10640 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10641 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10642 cross_compiling=$ac_cv_prog_cc_cross
10643
10644     
10645 fi
10646
10647   fi
10648   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
10649
10650     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
10651       for ac_func in _sincos
10652 do
10653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10654 echo "configure:10655: checking for $ac_func" >&5
10655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10656   echo $ac_n "(cached) $ac_c" 1>&6
10657 else
10658   cat > conftest.$ac_ext <<EOF
10659 #line 10660 "configure"
10660 #include "confdefs.h"
10661 /* System header to define __stub macros and hopefully few prototypes,
10662     which can conflict with char $ac_func(); below.  */
10663 #include <assert.h>
10664 /* Override any gcc2 internal prototype to avoid an error.  */
10665 /* We use char because int might match the return type of a gcc2
10666     builtin and then its argument prototype would still apply.  */
10667 char $ac_func();
10668
10669 int main() {
10670
10671 /* The GNU C library defines this for functions which it implements
10672     to always fail with ENOSYS.  Some functions are actually named
10673     something starting with __ and the normal name is an alias.  */
10674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10675 choke me
10676 #else
10677 $ac_func();
10678 #endif
10679
10680 ; return 0; }
10681 EOF
10682 if { (eval echo configure:10683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10683   rm -rf conftest*
10684   eval "ac_cv_func_$ac_func=yes"
10685 else
10686   echo "configure: failed program was:" >&5
10687   cat conftest.$ac_ext >&5
10688   rm -rf conftest*
10689   eval "ac_cv_func_$ac_func=no"
10690 fi
10691 rm -f conftest*
10692 fi
10693
10694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10695   echo "$ac_t""yes" 1>&6
10696     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10697   cat >> confdefs.h <<EOF
10698 #define $ac_tr_func 1
10699 EOF
10700  
10701 else
10702   echo "$ac_t""no" 1>&6
10703 fi
10704 done
10705     
10706     fi
10707   fi
10708
10709   
10710   
10711   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
10712 echo "configure:10713: checking for fpclass declaration" >&5
10713   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
10714     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
10715   echo $ac_n "(cached) $ac_c" 1>&6
10716 else
10717   
10718       
10719       ac_ext=C
10720 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10721 ac_cpp='$CXXCPP $CPPFLAGS'
10722 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10723 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10724 cross_compiling=$ac_cv_prog_cxx_cross
10725
10726       cat > conftest.$ac_ext <<EOF
10727 #line 10728 "configure"
10728 #include "confdefs.h"
10729 #include <math.h>
10730                       #ifdef HAVE_IEEEFP_H
10731                       #include <ieeefp.h>
10732                       #endif
10733                      
10734 int main() {
10735  fpclass(0);
10736 ; return 0; }
10737 EOF
10738 if { (eval echo configure:10739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10739   rm -rf conftest*
10740   glibcpp_cv_func_fpclass_use=yes
10741 else
10742   echo "configure: failed program was:" >&5
10743   cat conftest.$ac_ext >&5
10744   rm -rf conftest*
10745   glibcpp_cv_func_fpclass_use=no
10746 fi
10747 rm -f conftest*
10748       ac_ext=c
10749 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10750 ac_cpp='$CPP $CPPFLAGS'
10751 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10752 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10753 cross_compiling=$ac_cv_prog_cc_cross
10754
10755     
10756 fi
10757
10758   fi
10759   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
10760
10761   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
10762     for ac_func in fpclass
10763 do
10764 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10765 echo "configure:10766: checking for $ac_func" >&5
10766 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10767   echo $ac_n "(cached) $ac_c" 1>&6
10768 else
10769   cat > conftest.$ac_ext <<EOF
10770 #line 10771 "configure"
10771 #include "confdefs.h"
10772 /* System header to define __stub macros and hopefully few prototypes,
10773     which can conflict with char $ac_func(); below.  */
10774 #include <assert.h>
10775 /* Override any gcc2 internal prototype to avoid an error.  */
10776 /* We use char because int might match the return type of a gcc2
10777     builtin and then its argument prototype would still apply.  */
10778 char $ac_func();
10779
10780 int main() {
10781
10782 /* The GNU C library defines this for functions which it implements
10783     to always fail with ENOSYS.  Some functions are actually named
10784     something starting with __ and the normal name is an alias.  */
10785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10786 choke me
10787 #else
10788 $ac_func();
10789 #endif
10790
10791 ; return 0; }
10792 EOF
10793 if { (eval echo configure:10794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10794   rm -rf conftest*
10795   eval "ac_cv_func_$ac_func=yes"
10796 else
10797   echo "configure: failed program was:" >&5
10798   cat conftest.$ac_ext >&5
10799   rm -rf conftest*
10800   eval "ac_cv_func_$ac_func=no"
10801 fi
10802 rm -f conftest*
10803 fi
10804
10805 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10806   echo "$ac_t""yes" 1>&6
10807     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10808   cat >> confdefs.h <<EOF
10809 #define $ac_tr_func 1
10810 EOF
10811  
10812 else
10813   echo "$ac_t""no" 1>&6
10814 fi
10815 done
10816     
10817   else
10818     
10819   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
10820 echo "configure:10821: checking for _fpclass declaration" >&5
10821   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
10822     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
10823   echo $ac_n "(cached) $ac_c" 1>&6
10824 else
10825   
10826       
10827       ac_ext=C
10828 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10829 ac_cpp='$CXXCPP $CPPFLAGS'
10830 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10831 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10832 cross_compiling=$ac_cv_prog_cxx_cross
10833
10834       cat > conftest.$ac_ext <<EOF
10835 #line 10836 "configure"
10836 #include "confdefs.h"
10837 #include <math.h>
10838                       #ifdef HAVE_IEEEFP_H
10839                       #include <ieeefp.h>
10840                       #endif
10841                      
10842 int main() {
10843  _fpclass(0);
10844 ; return 0; }
10845 EOF
10846 if { (eval echo configure:10847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10847   rm -rf conftest*
10848   glibcpp_cv_func__fpclass_use=yes
10849 else
10850   echo "configure: failed program was:" >&5
10851   cat conftest.$ac_ext >&5
10852   rm -rf conftest*
10853   glibcpp_cv_func__fpclass_use=no
10854 fi
10855 rm -f conftest*
10856       ac_ext=c
10857 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10858 ac_cpp='$CPP $CPPFLAGS'
10859 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10860 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10861 cross_compiling=$ac_cv_prog_cc_cross
10862
10863     
10864 fi
10865
10866   fi
10867   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
10868
10869     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
10870       for ac_func in _fpclass
10871 do
10872 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10873 echo "configure:10874: checking for $ac_func" >&5
10874 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10875   echo $ac_n "(cached) $ac_c" 1>&6
10876 else
10877   cat > conftest.$ac_ext <<EOF
10878 #line 10879 "configure"
10879 #include "confdefs.h"
10880 /* System header to define __stub macros and hopefully few prototypes,
10881     which can conflict with char $ac_func(); below.  */
10882 #include <assert.h>
10883 /* Override any gcc2 internal prototype to avoid an error.  */
10884 /* We use char because int might match the return type of a gcc2
10885     builtin and then its argument prototype would still apply.  */
10886 char $ac_func();
10887
10888 int main() {
10889
10890 /* The GNU C library defines this for functions which it implements
10891     to always fail with ENOSYS.  Some functions are actually named
10892     something starting with __ and the normal name is an alias.  */
10893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10894 choke me
10895 #else
10896 $ac_func();
10897 #endif
10898
10899 ; return 0; }
10900 EOF
10901 if { (eval echo configure:10902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10902   rm -rf conftest*
10903   eval "ac_cv_func_$ac_func=yes"
10904 else
10905   echo "configure: failed program was:" >&5
10906   cat conftest.$ac_ext >&5
10907   rm -rf conftest*
10908   eval "ac_cv_func_$ac_func=no"
10909 fi
10910 rm -f conftest*
10911 fi
10912
10913 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10914   echo "$ac_t""yes" 1>&6
10915     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10916   cat >> confdefs.h <<EOF
10917 #define $ac_tr_func 1
10918 EOF
10919  
10920 else
10921   echo "$ac_t""no" 1>&6
10922 fi
10923 done
10924     
10925     fi
10926   fi
10927
10928   
10929   
10930   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
10931 echo "configure:10932: checking for qfpclass declaration" >&5
10932   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
10933     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
10934   echo $ac_n "(cached) $ac_c" 1>&6
10935 else
10936   
10937       
10938       ac_ext=C
10939 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10940 ac_cpp='$CXXCPP $CPPFLAGS'
10941 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10942 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10943 cross_compiling=$ac_cv_prog_cxx_cross
10944
10945       cat > conftest.$ac_ext <<EOF
10946 #line 10947 "configure"
10947 #include "confdefs.h"
10948 #include <math.h>
10949                       #ifdef HAVE_IEEEFP_H
10950                       #include <ieeefp.h>
10951                       #endif
10952                      
10953 int main() {
10954  qfpclass(0);
10955 ; return 0; }
10956 EOF
10957 if { (eval echo configure:10958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10958   rm -rf conftest*
10959   glibcpp_cv_func_qfpclass_use=yes
10960 else
10961   echo "configure: failed program was:" >&5
10962   cat conftest.$ac_ext >&5
10963   rm -rf conftest*
10964   glibcpp_cv_func_qfpclass_use=no
10965 fi
10966 rm -f conftest*
10967       ac_ext=c
10968 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10969 ac_cpp='$CPP $CPPFLAGS'
10970 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10971 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10972 cross_compiling=$ac_cv_prog_cc_cross
10973
10974     
10975 fi
10976
10977   fi
10978   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
10979
10980   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
10981     for ac_func in qfpclass
10982 do
10983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10984 echo "configure:10985: checking for $ac_func" >&5
10985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10986   echo $ac_n "(cached) $ac_c" 1>&6
10987 else
10988   cat > conftest.$ac_ext <<EOF
10989 #line 10990 "configure"
10990 #include "confdefs.h"
10991 /* System header to define __stub macros and hopefully few prototypes,
10992     which can conflict with char $ac_func(); below.  */
10993 #include <assert.h>
10994 /* Override any gcc2 internal prototype to avoid an error.  */
10995 /* We use char because int might match the return type of a gcc2
10996     builtin and then its argument prototype would still apply.  */
10997 char $ac_func();
10998
10999 int main() {
11000
11001 /* The GNU C library defines this for functions which it implements
11002     to always fail with ENOSYS.  Some functions are actually named
11003     something starting with __ and the normal name is an alias.  */
11004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11005 choke me
11006 #else
11007 $ac_func();
11008 #endif
11009
11010 ; return 0; }
11011 EOF
11012 if { (eval echo configure:11013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11013   rm -rf conftest*
11014   eval "ac_cv_func_$ac_func=yes"
11015 else
11016   echo "configure: failed program was:" >&5
11017   cat conftest.$ac_ext >&5
11018   rm -rf conftest*
11019   eval "ac_cv_func_$ac_func=no"
11020 fi
11021 rm -f conftest*
11022 fi
11023
11024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11025   echo "$ac_t""yes" 1>&6
11026     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11027   cat >> confdefs.h <<EOF
11028 #define $ac_tr_func 1
11029 EOF
11030  
11031 else
11032   echo "$ac_t""no" 1>&6
11033 fi
11034 done
11035     
11036   else
11037     
11038   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
11039 echo "configure:11040: checking for _qfpclass declaration" >&5
11040   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
11041     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
11042   echo $ac_n "(cached) $ac_c" 1>&6
11043 else
11044   
11045       
11046       ac_ext=C
11047 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11048 ac_cpp='$CXXCPP $CPPFLAGS'
11049 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11050 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11051 cross_compiling=$ac_cv_prog_cxx_cross
11052
11053       cat > conftest.$ac_ext <<EOF
11054 #line 11055 "configure"
11055 #include "confdefs.h"
11056 #include <math.h>
11057                       #ifdef HAVE_IEEEFP_H
11058                       #include <ieeefp.h>
11059                       #endif
11060                      
11061 int main() {
11062  _qfpclass(0);
11063 ; return 0; }
11064 EOF
11065 if { (eval echo configure:11066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11066   rm -rf conftest*
11067   glibcpp_cv_func__qfpclass_use=yes
11068 else
11069   echo "configure: failed program was:" >&5
11070   cat conftest.$ac_ext >&5
11071   rm -rf conftest*
11072   glibcpp_cv_func__qfpclass_use=no
11073 fi
11074 rm -f conftest*
11075       ac_ext=c
11076 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11077 ac_cpp='$CPP $CPPFLAGS'
11078 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11079 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11080 cross_compiling=$ac_cv_prog_cc_cross
11081
11082     
11083 fi
11084
11085   fi
11086   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
11087
11088     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
11089       for ac_func in _qfpclass
11090 do
11091 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11092 echo "configure:11093: checking for $ac_func" >&5
11093 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11094   echo $ac_n "(cached) $ac_c" 1>&6
11095 else
11096   cat > conftest.$ac_ext <<EOF
11097 #line 11098 "configure"
11098 #include "confdefs.h"
11099 /* System header to define __stub macros and hopefully few prototypes,
11100     which can conflict with char $ac_func(); below.  */
11101 #include <assert.h>
11102 /* Override any gcc2 internal prototype to avoid an error.  */
11103 /* We use char because int might match the return type of a gcc2
11104     builtin and then its argument prototype would still apply.  */
11105 char $ac_func();
11106
11107 int main() {
11108
11109 /* The GNU C library defines this for functions which it implements
11110     to always fail with ENOSYS.  Some functions are actually named
11111     something starting with __ and the normal name is an alias.  */
11112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11113 choke me
11114 #else
11115 $ac_func();
11116 #endif
11117
11118 ; return 0; }
11119 EOF
11120 if { (eval echo configure:11121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11121   rm -rf conftest*
11122   eval "ac_cv_func_$ac_func=yes"
11123 else
11124   echo "configure: failed program was:" >&5
11125   cat conftest.$ac_ext >&5
11126   rm -rf conftest*
11127   eval "ac_cv_func_$ac_func=no"
11128 fi
11129 rm -f conftest*
11130 fi
11131
11132 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11133   echo "$ac_t""yes" 1>&6
11134     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11135   cat >> confdefs.h <<EOF
11136 #define $ac_tr_func 1
11137 EOF
11138  
11139 else
11140   echo "$ac_t""no" 1>&6
11141 fi
11142 done
11143     
11144     fi
11145   fi
11146
11147   
11148   
11149   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
11150 echo "configure:11151: checking for hypot declaration" >&5
11151   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
11152     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
11153   echo $ac_n "(cached) $ac_c" 1>&6
11154 else
11155   
11156       
11157       ac_ext=C
11158 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11159 ac_cpp='$CXXCPP $CPPFLAGS'
11160 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11161 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11162 cross_compiling=$ac_cv_prog_cxx_cross
11163
11164       cat > conftest.$ac_ext <<EOF
11165 #line 11166 "configure"
11166 #include "confdefs.h"
11167 #include <math.h>
11168 int main() {
11169  hypot(0, 0);
11170 ; return 0; }
11171 EOF
11172 if { (eval echo configure:11173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11173   rm -rf conftest*
11174   glibcpp_cv_func_hypot_use=yes
11175 else
11176   echo "configure: failed program was:" >&5
11177   cat conftest.$ac_ext >&5
11178   rm -rf conftest*
11179   glibcpp_cv_func_hypot_use=no
11180 fi
11181 rm -f conftest*
11182       ac_ext=c
11183 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11184 ac_cpp='$CPP $CPPFLAGS'
11185 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11186 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11187 cross_compiling=$ac_cv_prog_cc_cross
11188
11189     
11190 fi
11191
11192   fi
11193   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
11194
11195   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
11196     for ac_func in hypot
11197 do
11198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11199 echo "configure:11200: checking for $ac_func" >&5
11200 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11201   echo $ac_n "(cached) $ac_c" 1>&6
11202 else
11203   cat > conftest.$ac_ext <<EOF
11204 #line 11205 "configure"
11205 #include "confdefs.h"
11206 /* System header to define __stub macros and hopefully few prototypes,
11207     which can conflict with char $ac_func(); below.  */
11208 #include <assert.h>
11209 /* Override any gcc2 internal prototype to avoid an error.  */
11210 /* We use char because int might match the return type of a gcc2
11211     builtin and then its argument prototype would still apply.  */
11212 char $ac_func();
11213
11214 int main() {
11215
11216 /* The GNU C library defines this for functions which it implements
11217     to always fail with ENOSYS.  Some functions are actually named
11218     something starting with __ and the normal name is an alias.  */
11219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11220 choke me
11221 #else
11222 $ac_func();
11223 #endif
11224
11225 ; return 0; }
11226 EOF
11227 if { (eval echo configure:11228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11228   rm -rf conftest*
11229   eval "ac_cv_func_$ac_func=yes"
11230 else
11231   echo "configure: failed program was:" >&5
11232   cat conftest.$ac_ext >&5
11233   rm -rf conftest*
11234   eval "ac_cv_func_$ac_func=no"
11235 fi
11236 rm -f conftest*
11237 fi
11238
11239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11240   echo "$ac_t""yes" 1>&6
11241     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11242   cat >> confdefs.h <<EOF
11243 #define $ac_tr_func 1
11244 EOF
11245  
11246 else
11247   echo "$ac_t""no" 1>&6
11248 fi
11249 done
11250     
11251   else
11252     
11253   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
11254 echo "configure:11255: checking for _hypot declaration" >&5
11255   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
11256     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
11257   echo $ac_n "(cached) $ac_c" 1>&6
11258 else
11259   
11260       
11261       ac_ext=C
11262 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11263 ac_cpp='$CXXCPP $CPPFLAGS'
11264 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11265 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11266 cross_compiling=$ac_cv_prog_cxx_cross
11267
11268       cat > conftest.$ac_ext <<EOF
11269 #line 11270 "configure"
11270 #include "confdefs.h"
11271 #include <math.h>
11272 int main() {
11273  _hypot(0, 0);
11274 ; return 0; }
11275 EOF
11276 if { (eval echo configure:11277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11277   rm -rf conftest*
11278   glibcpp_cv_func__hypot_use=yes
11279 else
11280   echo "configure: failed program was:" >&5
11281   cat conftest.$ac_ext >&5
11282   rm -rf conftest*
11283   glibcpp_cv_func__hypot_use=no
11284 fi
11285 rm -f conftest*
11286       ac_ext=c
11287 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11288 ac_cpp='$CPP $CPPFLAGS'
11289 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11290 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11291 cross_compiling=$ac_cv_prog_cc_cross
11292
11293     
11294 fi
11295
11296   fi
11297   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
11298
11299     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
11300       for ac_func in _hypot
11301 do
11302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11303 echo "configure:11304: checking for $ac_func" >&5
11304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11305   echo $ac_n "(cached) $ac_c" 1>&6
11306 else
11307   cat > conftest.$ac_ext <<EOF
11308 #line 11309 "configure"
11309 #include "confdefs.h"
11310 /* System header to define __stub macros and hopefully few prototypes,
11311     which can conflict with char $ac_func(); below.  */
11312 #include <assert.h>
11313 /* Override any gcc2 internal prototype to avoid an error.  */
11314 /* We use char because int might match the return type of a gcc2
11315     builtin and then its argument prototype would still apply.  */
11316 char $ac_func();
11317
11318 int main() {
11319
11320 /* The GNU C library defines this for functions which it implements
11321     to always fail with ENOSYS.  Some functions are actually named
11322     something starting with __ and the normal name is an alias.  */
11323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11324 choke me
11325 #else
11326 $ac_func();
11327 #endif
11328
11329 ; return 0; }
11330 EOF
11331 if { (eval echo configure:11332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11332   rm -rf conftest*
11333   eval "ac_cv_func_$ac_func=yes"
11334 else
11335   echo "configure: failed program was:" >&5
11336   cat conftest.$ac_ext >&5
11337   rm -rf conftest*
11338   eval "ac_cv_func_$ac_func=no"
11339 fi
11340 rm -f conftest*
11341 fi
11342
11343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11344   echo "$ac_t""yes" 1>&6
11345     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11346   cat >> confdefs.h <<EOF
11347 #define $ac_tr_func 1
11348 EOF
11349  
11350 else
11351   echo "$ac_t""no" 1>&6
11352 fi
11353 done
11354     
11355     fi
11356   fi
11357
11358
11359     
11360   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
11361 echo "configure:11362: checking for float trig functions" >&5
11362   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
11363   echo $ac_n "(cached) $ac_c" 1>&6
11364 else
11365   
11366     
11367     ac_ext=C
11368 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11369 ac_cpp='$CXXCPP $CPPFLAGS'
11370 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11371 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11372 cross_compiling=$ac_cv_prog_cxx_cross
11373
11374     cat > conftest.$ac_ext <<EOF
11375 #line 11376 "configure"
11376 #include "confdefs.h"
11377 #include <math.h>
11378 int main() {
11379  `for x in acosf asinf atanf \
11380                                           cosf sinf tanf \
11381                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
11382 ; return 0; }
11383 EOF
11384 if { (eval echo configure:11385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11385   rm -rf conftest*
11386   glibcpp_cv_func_float_trig_use=yes
11387 else
11388   echo "configure: failed program was:" >&5
11389   cat conftest.$ac_ext >&5
11390   rm -rf conftest*
11391   glibcpp_cv_func_float_trig_use=no
11392 fi
11393 rm -f conftest*
11394     ac_ext=c
11395 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11396 ac_cpp='$CPP $CPPFLAGS'
11397 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11398 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11399 cross_compiling=$ac_cv_prog_cc_cross
11400
11401 fi
11402
11403   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
11404   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
11405     for ac_func in acosf asinf atanf \
11406                                           cosf sinf tanf \
11407                                           coshf sinhf tanhf
11408 do
11409 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11410 echo "configure:11411: checking for $ac_func" >&5
11411 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11412   echo $ac_n "(cached) $ac_c" 1>&6
11413 else
11414   cat > conftest.$ac_ext <<EOF
11415 #line 11416 "configure"
11416 #include "confdefs.h"
11417 /* System header to define __stub macros and hopefully few prototypes,
11418     which can conflict with char $ac_func(); below.  */
11419 #include <assert.h>
11420 /* Override any gcc2 internal prototype to avoid an error.  */
11421 /* We use char because int might match the return type of a gcc2
11422     builtin and then its argument prototype would still apply.  */
11423 char $ac_func();
11424
11425 int main() {
11426
11427 /* The GNU C library defines this for functions which it implements
11428     to always fail with ENOSYS.  Some functions are actually named
11429     something starting with __ and the normal name is an alias.  */
11430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11431 choke me
11432 #else
11433 $ac_func();
11434 #endif
11435
11436 ; return 0; }
11437 EOF
11438 if { (eval echo configure:11439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11439   rm -rf conftest*
11440   eval "ac_cv_func_$ac_func=yes"
11441 else
11442   echo "configure: failed program was:" >&5
11443   cat conftest.$ac_ext >&5
11444   rm -rf conftest*
11445   eval "ac_cv_func_$ac_func=no"
11446 fi
11447 rm -f conftest*
11448 fi
11449
11450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11451   echo "$ac_t""yes" 1>&6
11452     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11453   cat >> confdefs.h <<EOF
11454 #define $ac_tr_func 1
11455 EOF
11456  
11457 else
11458   echo "$ac_t""no" 1>&6
11459 fi
11460 done
11461
11462   fi
11463
11464   
11465   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
11466 echo "configure:11467: checking for float round functions" >&5
11467   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
11468   echo $ac_n "(cached) $ac_c" 1>&6
11469 else
11470   
11471     
11472     ac_ext=C
11473 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11474 ac_cpp='$CXXCPP $CPPFLAGS'
11475 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11476 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11477 cross_compiling=$ac_cv_prog_cxx_cross
11478
11479     cat > conftest.$ac_ext <<EOF
11480 #line 11481 "configure"
11481 #include "confdefs.h"
11482 #include <math.h>
11483 int main() {
11484  `for x in ceilf floorf; do echo "$x (0);"; done` 
11485 ; return 0; }
11486 EOF
11487 if { (eval echo configure:11488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11488   rm -rf conftest*
11489   glibcpp_cv_func_float_round_use=yes
11490 else
11491   echo "configure: failed program was:" >&5
11492   cat conftest.$ac_ext >&5
11493   rm -rf conftest*
11494   glibcpp_cv_func_float_round_use=no
11495 fi
11496 rm -f conftest*
11497     ac_ext=c
11498 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11499 ac_cpp='$CPP $CPPFLAGS'
11500 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11501 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11502 cross_compiling=$ac_cv_prog_cc_cross
11503
11504 fi
11505
11506   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
11507   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
11508     for ac_func in ceilf floorf
11509 do
11510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11511 echo "configure:11512: checking for $ac_func" >&5
11512 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11513   echo $ac_n "(cached) $ac_c" 1>&6
11514 else
11515   cat > conftest.$ac_ext <<EOF
11516 #line 11517 "configure"
11517 #include "confdefs.h"
11518 /* System header to define __stub macros and hopefully few prototypes,
11519     which can conflict with char $ac_func(); below.  */
11520 #include <assert.h>
11521 /* Override any gcc2 internal prototype to avoid an error.  */
11522 /* We use char because int might match the return type of a gcc2
11523     builtin and then its argument prototype would still apply.  */
11524 char $ac_func();
11525
11526 int main() {
11527
11528 /* The GNU C library defines this for functions which it implements
11529     to always fail with ENOSYS.  Some functions are actually named
11530     something starting with __ and the normal name is an alias.  */
11531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11532 choke me
11533 #else
11534 $ac_func();
11535 #endif
11536
11537 ; return 0; }
11538 EOF
11539 if { (eval echo configure:11540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11540   rm -rf conftest*
11541   eval "ac_cv_func_$ac_func=yes"
11542 else
11543   echo "configure: failed program was:" >&5
11544   cat conftest.$ac_ext >&5
11545   rm -rf conftest*
11546   eval "ac_cv_func_$ac_func=no"
11547 fi
11548 rm -f conftest*
11549 fi
11550
11551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11552   echo "$ac_t""yes" 1>&6
11553     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11554   cat >> confdefs.h <<EOF
11555 #define $ac_tr_func 1
11556 EOF
11557  
11558 else
11559   echo "$ac_t""no" 1>&6
11560 fi
11561 done
11562
11563   fi
11564
11565   
11566   
11567   echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
11568 echo "configure:11569: checking for expf declaration" >&5
11569   if test x${glibcpp_cv_func_expf_use+set} != xset; then
11570     if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
11571   echo $ac_n "(cached) $ac_c" 1>&6
11572 else
11573   
11574       
11575       ac_ext=C
11576 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11577 ac_cpp='$CXXCPP $CPPFLAGS'
11578 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11579 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11580 cross_compiling=$ac_cv_prog_cxx_cross
11581
11582       cat > conftest.$ac_ext <<EOF
11583 #line 11584 "configure"
11584 #include "confdefs.h"
11585 #include <math.h>
11586                       #ifdef HAVE_IEEEFP_H
11587                       #include <ieeefp.h>
11588                       #endif
11589                      
11590 int main() {
11591  expf(0);
11592 ; return 0; }
11593 EOF
11594 if { (eval echo configure:11595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11595   rm -rf conftest*
11596   glibcpp_cv_func_expf_use=yes
11597 else
11598   echo "configure: failed program was:" >&5
11599   cat conftest.$ac_ext >&5
11600   rm -rf conftest*
11601   glibcpp_cv_func_expf_use=no
11602 fi
11603 rm -f conftest*
11604       ac_ext=c
11605 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11606 ac_cpp='$CPP $CPPFLAGS'
11607 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11608 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11609 cross_compiling=$ac_cv_prog_cc_cross
11610
11611     
11612 fi
11613
11614   fi
11615   echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
11616
11617   if test x$glibcpp_cv_func_expf_use = x"yes"; then
11618     for ac_func in expf
11619 do
11620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11621 echo "configure:11622: checking for $ac_func" >&5
11622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11623   echo $ac_n "(cached) $ac_c" 1>&6
11624 else
11625   cat > conftest.$ac_ext <<EOF
11626 #line 11627 "configure"
11627 #include "confdefs.h"
11628 /* System header to define __stub macros and hopefully few prototypes,
11629     which can conflict with char $ac_func(); below.  */
11630 #include <assert.h>
11631 /* Override any gcc2 internal prototype to avoid an error.  */
11632 /* We use char because int might match the return type of a gcc2
11633     builtin and then its argument prototype would still apply.  */
11634 char $ac_func();
11635
11636 int main() {
11637
11638 /* The GNU C library defines this for functions which it implements
11639     to always fail with ENOSYS.  Some functions are actually named
11640     something starting with __ and the normal name is an alias.  */
11641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11642 choke me
11643 #else
11644 $ac_func();
11645 #endif
11646
11647 ; return 0; }
11648 EOF
11649 if { (eval echo configure:11650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11650   rm -rf conftest*
11651   eval "ac_cv_func_$ac_func=yes"
11652 else
11653   echo "configure: failed program was:" >&5
11654   cat conftest.$ac_ext >&5
11655   rm -rf conftest*
11656   eval "ac_cv_func_$ac_func=no"
11657 fi
11658 rm -f conftest*
11659 fi
11660
11661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11662   echo "$ac_t""yes" 1>&6
11663     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11664   cat >> confdefs.h <<EOF
11665 #define $ac_tr_func 1
11666 EOF
11667  
11668 else
11669   echo "$ac_t""no" 1>&6
11670 fi
11671 done
11672     
11673   else
11674     
11675   echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
11676 echo "configure:11677: checking for _expf declaration" >&5
11677   if test x${glibcpp_cv_func__expf_use+set} != xset; then
11678     if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
11679   echo $ac_n "(cached) $ac_c" 1>&6
11680 else
11681   
11682       
11683       ac_ext=C
11684 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11685 ac_cpp='$CXXCPP $CPPFLAGS'
11686 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11687 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11688 cross_compiling=$ac_cv_prog_cxx_cross
11689
11690       cat > conftest.$ac_ext <<EOF
11691 #line 11692 "configure"
11692 #include "confdefs.h"
11693 #include <math.h>
11694                       #ifdef HAVE_IEEEFP_H
11695                       #include <ieeefp.h>
11696                       #endif
11697                      
11698 int main() {
11699  _expf(0);
11700 ; return 0; }
11701 EOF
11702 if { (eval echo configure:11703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11703   rm -rf conftest*
11704   glibcpp_cv_func__expf_use=yes
11705 else
11706   echo "configure: failed program was:" >&5
11707   cat conftest.$ac_ext >&5
11708   rm -rf conftest*
11709   glibcpp_cv_func__expf_use=no
11710 fi
11711 rm -f conftest*
11712       ac_ext=c
11713 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11714 ac_cpp='$CPP $CPPFLAGS'
11715 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11716 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11717 cross_compiling=$ac_cv_prog_cc_cross
11718
11719     
11720 fi
11721
11722   fi
11723   echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
11724
11725     if test x$glibcpp_cv_func__expf_use = x"yes"; then
11726       for ac_func in _expf
11727 do
11728 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11729 echo "configure:11730: checking for $ac_func" >&5
11730 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11731   echo $ac_n "(cached) $ac_c" 1>&6
11732 else
11733   cat > conftest.$ac_ext <<EOF
11734 #line 11735 "configure"
11735 #include "confdefs.h"
11736 /* System header to define __stub macros and hopefully few prototypes,
11737     which can conflict with char $ac_func(); below.  */
11738 #include <assert.h>
11739 /* Override any gcc2 internal prototype to avoid an error.  */
11740 /* We use char because int might match the return type of a gcc2
11741     builtin and then its argument prototype would still apply.  */
11742 char $ac_func();
11743
11744 int main() {
11745
11746 /* The GNU C library defines this for functions which it implements
11747     to always fail with ENOSYS.  Some functions are actually named
11748     something starting with __ and the normal name is an alias.  */
11749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11750 choke me
11751 #else
11752 $ac_func();
11753 #endif
11754
11755 ; return 0; }
11756 EOF
11757 if { (eval echo configure:11758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11758   rm -rf conftest*
11759   eval "ac_cv_func_$ac_func=yes"
11760 else
11761   echo "configure: failed program was:" >&5
11762   cat conftest.$ac_ext >&5
11763   rm -rf conftest*
11764   eval "ac_cv_func_$ac_func=no"
11765 fi
11766 rm -f conftest*
11767 fi
11768
11769 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11770   echo "$ac_t""yes" 1>&6
11771     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11772   cat >> confdefs.h <<EOF
11773 #define $ac_tr_func 1
11774 EOF
11775  
11776 else
11777   echo "$ac_t""no" 1>&6
11778 fi
11779 done
11780     
11781     fi
11782   fi
11783
11784   
11785   
11786   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
11787 echo "configure:11788: checking for isnanf declaration" >&5
11788   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
11789     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
11790   echo $ac_n "(cached) $ac_c" 1>&6
11791 else
11792   
11793       
11794       ac_ext=C
11795 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11796 ac_cpp='$CXXCPP $CPPFLAGS'
11797 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11798 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11799 cross_compiling=$ac_cv_prog_cxx_cross
11800
11801       cat > conftest.$ac_ext <<EOF
11802 #line 11803 "configure"
11803 #include "confdefs.h"
11804 #include <math.h>
11805                       #ifdef HAVE_IEEEFP_H
11806                       #include <ieeefp.h>
11807                       #endif
11808                      
11809 int main() {
11810  isnanf(0);
11811 ; return 0; }
11812 EOF
11813 if { (eval echo configure:11814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11814   rm -rf conftest*
11815   glibcpp_cv_func_isnanf_use=yes
11816 else
11817   echo "configure: failed program was:" >&5
11818   cat conftest.$ac_ext >&5
11819   rm -rf conftest*
11820   glibcpp_cv_func_isnanf_use=no
11821 fi
11822 rm -f conftest*
11823       ac_ext=c
11824 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11825 ac_cpp='$CPP $CPPFLAGS'
11826 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11827 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11828 cross_compiling=$ac_cv_prog_cc_cross
11829
11830     
11831 fi
11832
11833   fi
11834   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
11835
11836   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
11837     for ac_func in isnanf
11838 do
11839 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11840 echo "configure:11841: checking for $ac_func" >&5
11841 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11842   echo $ac_n "(cached) $ac_c" 1>&6
11843 else
11844   cat > conftest.$ac_ext <<EOF
11845 #line 11846 "configure"
11846 #include "confdefs.h"
11847 /* System header to define __stub macros and hopefully few prototypes,
11848     which can conflict with char $ac_func(); below.  */
11849 #include <assert.h>
11850 /* Override any gcc2 internal prototype to avoid an error.  */
11851 /* We use char because int might match the return type of a gcc2
11852     builtin and then its argument prototype would still apply.  */
11853 char $ac_func();
11854
11855 int main() {
11856
11857 /* The GNU C library defines this for functions which it implements
11858     to always fail with ENOSYS.  Some functions are actually named
11859     something starting with __ and the normal name is an alias.  */
11860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11861 choke me
11862 #else
11863 $ac_func();
11864 #endif
11865
11866 ; return 0; }
11867 EOF
11868 if { (eval echo configure:11869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11869   rm -rf conftest*
11870   eval "ac_cv_func_$ac_func=yes"
11871 else
11872   echo "configure: failed program was:" >&5
11873   cat conftest.$ac_ext >&5
11874   rm -rf conftest*
11875   eval "ac_cv_func_$ac_func=no"
11876 fi
11877 rm -f conftest*
11878 fi
11879
11880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11881   echo "$ac_t""yes" 1>&6
11882     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11883   cat >> confdefs.h <<EOF
11884 #define $ac_tr_func 1
11885 EOF
11886  
11887 else
11888   echo "$ac_t""no" 1>&6
11889 fi
11890 done
11891     
11892   else
11893     
11894   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
11895 echo "configure:11896: checking for _isnanf declaration" >&5
11896   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
11897     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
11898   echo $ac_n "(cached) $ac_c" 1>&6
11899 else
11900   
11901       
11902       ac_ext=C
11903 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11904 ac_cpp='$CXXCPP $CPPFLAGS'
11905 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11906 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11907 cross_compiling=$ac_cv_prog_cxx_cross
11908
11909       cat > conftest.$ac_ext <<EOF
11910 #line 11911 "configure"
11911 #include "confdefs.h"
11912 #include <math.h>
11913                       #ifdef HAVE_IEEEFP_H
11914                       #include <ieeefp.h>
11915                       #endif
11916                      
11917 int main() {
11918  _isnanf(0);
11919 ; return 0; }
11920 EOF
11921 if { (eval echo configure:11922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11922   rm -rf conftest*
11923   glibcpp_cv_func__isnanf_use=yes
11924 else
11925   echo "configure: failed program was:" >&5
11926   cat conftest.$ac_ext >&5
11927   rm -rf conftest*
11928   glibcpp_cv_func__isnanf_use=no
11929 fi
11930 rm -f conftest*
11931       ac_ext=c
11932 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11933 ac_cpp='$CPP $CPPFLAGS'
11934 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11935 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11936 cross_compiling=$ac_cv_prog_cc_cross
11937
11938     
11939 fi
11940
11941   fi
11942   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
11943
11944     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
11945       for ac_func in _isnanf
11946 do
11947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11948 echo "configure:11949: checking for $ac_func" >&5
11949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11950   echo $ac_n "(cached) $ac_c" 1>&6
11951 else
11952   cat > conftest.$ac_ext <<EOF
11953 #line 11954 "configure"
11954 #include "confdefs.h"
11955 /* System header to define __stub macros and hopefully few prototypes,
11956     which can conflict with char $ac_func(); below.  */
11957 #include <assert.h>
11958 /* Override any gcc2 internal prototype to avoid an error.  */
11959 /* We use char because int might match the return type of a gcc2
11960     builtin and then its argument prototype would still apply.  */
11961 char $ac_func();
11962
11963 int main() {
11964
11965 /* The GNU C library defines this for functions which it implements
11966     to always fail with ENOSYS.  Some functions are actually named
11967     something starting with __ and the normal name is an alias.  */
11968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11969 choke me
11970 #else
11971 $ac_func();
11972 #endif
11973
11974 ; return 0; }
11975 EOF
11976 if { (eval echo configure:11977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11977   rm -rf conftest*
11978   eval "ac_cv_func_$ac_func=yes"
11979 else
11980   echo "configure: failed program was:" >&5
11981   cat conftest.$ac_ext >&5
11982   rm -rf conftest*
11983   eval "ac_cv_func_$ac_func=no"
11984 fi
11985 rm -f conftest*
11986 fi
11987
11988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11989   echo "$ac_t""yes" 1>&6
11990     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11991   cat >> confdefs.h <<EOF
11992 #define $ac_tr_func 1
11993 EOF
11994  
11995 else
11996   echo "$ac_t""no" 1>&6
11997 fi
11998 done
11999     
12000     fi
12001   fi
12002
12003   
12004   
12005   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
12006 echo "configure:12007: checking for isinff declaration" >&5
12007   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
12008     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
12009   echo $ac_n "(cached) $ac_c" 1>&6
12010 else
12011   
12012       
12013       ac_ext=C
12014 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12015 ac_cpp='$CXXCPP $CPPFLAGS'
12016 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12017 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12018 cross_compiling=$ac_cv_prog_cxx_cross
12019
12020       cat > conftest.$ac_ext <<EOF
12021 #line 12022 "configure"
12022 #include "confdefs.h"
12023 #include <math.h>
12024                       #ifdef HAVE_IEEEFP_H
12025                       #include <ieeefp.h>
12026                       #endif
12027                      
12028 int main() {
12029  isinff(0);
12030 ; return 0; }
12031 EOF
12032 if { (eval echo configure:12033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12033   rm -rf conftest*
12034   glibcpp_cv_func_isinff_use=yes
12035 else
12036   echo "configure: failed program was:" >&5
12037   cat conftest.$ac_ext >&5
12038   rm -rf conftest*
12039   glibcpp_cv_func_isinff_use=no
12040 fi
12041 rm -f conftest*
12042       ac_ext=c
12043 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12044 ac_cpp='$CPP $CPPFLAGS'
12045 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12046 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12047 cross_compiling=$ac_cv_prog_cc_cross
12048
12049     
12050 fi
12051
12052   fi
12053   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
12054
12055   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
12056     for ac_func in isinff
12057 do
12058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12059 echo "configure:12060: checking for $ac_func" >&5
12060 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12061   echo $ac_n "(cached) $ac_c" 1>&6
12062 else
12063   cat > conftest.$ac_ext <<EOF
12064 #line 12065 "configure"
12065 #include "confdefs.h"
12066 /* System header to define __stub macros and hopefully few prototypes,
12067     which can conflict with char $ac_func(); below.  */
12068 #include <assert.h>
12069 /* Override any gcc2 internal prototype to avoid an error.  */
12070 /* We use char because int might match the return type of a gcc2
12071     builtin and then its argument prototype would still apply.  */
12072 char $ac_func();
12073
12074 int main() {
12075
12076 /* The GNU C library defines this for functions which it implements
12077     to always fail with ENOSYS.  Some functions are actually named
12078     something starting with __ and the normal name is an alias.  */
12079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12080 choke me
12081 #else
12082 $ac_func();
12083 #endif
12084
12085 ; return 0; }
12086 EOF
12087 if { (eval echo configure:12088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12088   rm -rf conftest*
12089   eval "ac_cv_func_$ac_func=yes"
12090 else
12091   echo "configure: failed program was:" >&5
12092   cat conftest.$ac_ext >&5
12093   rm -rf conftest*
12094   eval "ac_cv_func_$ac_func=no"
12095 fi
12096 rm -f conftest*
12097 fi
12098
12099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12100   echo "$ac_t""yes" 1>&6
12101     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12102   cat >> confdefs.h <<EOF
12103 #define $ac_tr_func 1
12104 EOF
12105  
12106 else
12107   echo "$ac_t""no" 1>&6
12108 fi
12109 done
12110     
12111   else
12112     
12113   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
12114 echo "configure:12115: checking for _isinff declaration" >&5
12115   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
12116     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
12117   echo $ac_n "(cached) $ac_c" 1>&6
12118 else
12119   
12120       
12121       ac_ext=C
12122 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12123 ac_cpp='$CXXCPP $CPPFLAGS'
12124 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12125 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12126 cross_compiling=$ac_cv_prog_cxx_cross
12127
12128       cat > conftest.$ac_ext <<EOF
12129 #line 12130 "configure"
12130 #include "confdefs.h"
12131 #include <math.h>
12132                       #ifdef HAVE_IEEEFP_H
12133                       #include <ieeefp.h>
12134                       #endif
12135                      
12136 int main() {
12137  _isinff(0);
12138 ; return 0; }
12139 EOF
12140 if { (eval echo configure:12141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12141   rm -rf conftest*
12142   glibcpp_cv_func__isinff_use=yes
12143 else
12144   echo "configure: failed program was:" >&5
12145   cat conftest.$ac_ext >&5
12146   rm -rf conftest*
12147   glibcpp_cv_func__isinff_use=no
12148 fi
12149 rm -f conftest*
12150       ac_ext=c
12151 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12152 ac_cpp='$CPP $CPPFLAGS'
12153 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12154 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12155 cross_compiling=$ac_cv_prog_cc_cross
12156
12157     
12158 fi
12159
12160   fi
12161   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
12162
12163     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
12164       for ac_func in _isinff
12165 do
12166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12167 echo "configure:12168: checking for $ac_func" >&5
12168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12169   echo $ac_n "(cached) $ac_c" 1>&6
12170 else
12171   cat > conftest.$ac_ext <<EOF
12172 #line 12173 "configure"
12173 #include "confdefs.h"
12174 /* System header to define __stub macros and hopefully few prototypes,
12175     which can conflict with char $ac_func(); below.  */
12176 #include <assert.h>
12177 /* Override any gcc2 internal prototype to avoid an error.  */
12178 /* We use char because int might match the return type of a gcc2
12179     builtin and then its argument prototype would still apply.  */
12180 char $ac_func();
12181
12182 int main() {
12183
12184 /* The GNU C library defines this for functions which it implements
12185     to always fail with ENOSYS.  Some functions are actually named
12186     something starting with __ and the normal name is an alias.  */
12187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12188 choke me
12189 #else
12190 $ac_func();
12191 #endif
12192
12193 ; return 0; }
12194 EOF
12195 if { (eval echo configure:12196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12196   rm -rf conftest*
12197   eval "ac_cv_func_$ac_func=yes"
12198 else
12199   echo "configure: failed program was:" >&5
12200   cat conftest.$ac_ext >&5
12201   rm -rf conftest*
12202   eval "ac_cv_func_$ac_func=no"
12203 fi
12204 rm -f conftest*
12205 fi
12206
12207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12208   echo "$ac_t""yes" 1>&6
12209     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12210   cat >> confdefs.h <<EOF
12211 #define $ac_tr_func 1
12212 EOF
12213  
12214 else
12215   echo "$ac_t""no" 1>&6
12216 fi
12217 done
12218     
12219     fi
12220   fi
12221
12222   
12223   
12224   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
12225 echo "configure:12226: checking for atan2f declaration" >&5
12226   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
12227     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
12228   echo $ac_n "(cached) $ac_c" 1>&6
12229 else
12230   
12231       
12232       ac_ext=C
12233 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12234 ac_cpp='$CXXCPP $CPPFLAGS'
12235 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12236 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12237 cross_compiling=$ac_cv_prog_cxx_cross
12238
12239       cat > conftest.$ac_ext <<EOF
12240 #line 12241 "configure"
12241 #include "confdefs.h"
12242 #include <math.h>
12243 int main() {
12244  atan2f(0, 0);
12245 ; return 0; }
12246 EOF
12247 if { (eval echo configure:12248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12248   rm -rf conftest*
12249   glibcpp_cv_func_atan2f_use=yes
12250 else
12251   echo "configure: failed program was:" >&5
12252   cat conftest.$ac_ext >&5
12253   rm -rf conftest*
12254   glibcpp_cv_func_atan2f_use=no
12255 fi
12256 rm -f conftest*
12257       ac_ext=c
12258 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12259 ac_cpp='$CPP $CPPFLAGS'
12260 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12261 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12262 cross_compiling=$ac_cv_prog_cc_cross
12263
12264     
12265 fi
12266
12267   fi
12268   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
12269
12270   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
12271     for ac_func in atan2f
12272 do
12273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12274 echo "configure:12275: checking for $ac_func" >&5
12275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12276   echo $ac_n "(cached) $ac_c" 1>&6
12277 else
12278   cat > conftest.$ac_ext <<EOF
12279 #line 12280 "configure"
12280 #include "confdefs.h"
12281 /* System header to define __stub macros and hopefully few prototypes,
12282     which can conflict with char $ac_func(); below.  */
12283 #include <assert.h>
12284 /* Override any gcc2 internal prototype to avoid an error.  */
12285 /* We use char because int might match the return type of a gcc2
12286     builtin and then its argument prototype would still apply.  */
12287 char $ac_func();
12288
12289 int main() {
12290
12291 /* The GNU C library defines this for functions which it implements
12292     to always fail with ENOSYS.  Some functions are actually named
12293     something starting with __ and the normal name is an alias.  */
12294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12295 choke me
12296 #else
12297 $ac_func();
12298 #endif
12299
12300 ; return 0; }
12301 EOF
12302 if { (eval echo configure:12303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12303   rm -rf conftest*
12304   eval "ac_cv_func_$ac_func=yes"
12305 else
12306   echo "configure: failed program was:" >&5
12307   cat conftest.$ac_ext >&5
12308   rm -rf conftest*
12309   eval "ac_cv_func_$ac_func=no"
12310 fi
12311 rm -f conftest*
12312 fi
12313
12314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12315   echo "$ac_t""yes" 1>&6
12316     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12317   cat >> confdefs.h <<EOF
12318 #define $ac_tr_func 1
12319 EOF
12320  
12321 else
12322   echo "$ac_t""no" 1>&6
12323 fi
12324 done
12325     
12326   else
12327     
12328   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
12329 echo "configure:12330: checking for _atan2f declaration" >&5
12330   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
12331     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
12332   echo $ac_n "(cached) $ac_c" 1>&6
12333 else
12334   
12335       
12336       ac_ext=C
12337 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12338 ac_cpp='$CXXCPP $CPPFLAGS'
12339 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12340 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12341 cross_compiling=$ac_cv_prog_cxx_cross
12342
12343       cat > conftest.$ac_ext <<EOF
12344 #line 12345 "configure"
12345 #include "confdefs.h"
12346 #include <math.h>
12347 int main() {
12348  _atan2f(0, 0);
12349 ; return 0; }
12350 EOF
12351 if { (eval echo configure:12352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12352   rm -rf conftest*
12353   glibcpp_cv_func__atan2f_use=yes
12354 else
12355   echo "configure: failed program was:" >&5
12356   cat conftest.$ac_ext >&5
12357   rm -rf conftest*
12358   glibcpp_cv_func__atan2f_use=no
12359 fi
12360 rm -f conftest*
12361       ac_ext=c
12362 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12363 ac_cpp='$CPP $CPPFLAGS'
12364 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12365 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12366 cross_compiling=$ac_cv_prog_cc_cross
12367
12368     
12369 fi
12370
12371   fi
12372   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
12373
12374     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
12375       for ac_func in _atan2f
12376 do
12377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12378 echo "configure:12379: checking for $ac_func" >&5
12379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12380   echo $ac_n "(cached) $ac_c" 1>&6
12381 else
12382   cat > conftest.$ac_ext <<EOF
12383 #line 12384 "configure"
12384 #include "confdefs.h"
12385 /* System header to define __stub macros and hopefully few prototypes,
12386     which can conflict with char $ac_func(); below.  */
12387 #include <assert.h>
12388 /* Override any gcc2 internal prototype to avoid an error.  */
12389 /* We use char because int might match the return type of a gcc2
12390     builtin and then its argument prototype would still apply.  */
12391 char $ac_func();
12392
12393 int main() {
12394
12395 /* The GNU C library defines this for functions which it implements
12396     to always fail with ENOSYS.  Some functions are actually named
12397     something starting with __ and the normal name is an alias.  */
12398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12399 choke me
12400 #else
12401 $ac_func();
12402 #endif
12403
12404 ; return 0; }
12405 EOF
12406 if { (eval echo configure:12407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12407   rm -rf conftest*
12408   eval "ac_cv_func_$ac_func=yes"
12409 else
12410   echo "configure: failed program was:" >&5
12411   cat conftest.$ac_ext >&5
12412   rm -rf conftest*
12413   eval "ac_cv_func_$ac_func=no"
12414 fi
12415 rm -f conftest*
12416 fi
12417
12418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12419   echo "$ac_t""yes" 1>&6
12420     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12421   cat >> confdefs.h <<EOF
12422 #define $ac_tr_func 1
12423 EOF
12424  
12425 else
12426   echo "$ac_t""no" 1>&6
12427 fi
12428 done
12429     
12430     fi
12431   fi
12432
12433   
12434   
12435   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
12436 echo "configure:12437: checking for fabsf declaration" >&5
12437   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
12438     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
12439   echo $ac_n "(cached) $ac_c" 1>&6
12440 else
12441   
12442       
12443       ac_ext=C
12444 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12445 ac_cpp='$CXXCPP $CPPFLAGS'
12446 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12447 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12448 cross_compiling=$ac_cv_prog_cxx_cross
12449
12450       cat > conftest.$ac_ext <<EOF
12451 #line 12452 "configure"
12452 #include "confdefs.h"
12453 #include <math.h>
12454                       #ifdef HAVE_IEEEFP_H
12455                       #include <ieeefp.h>
12456                       #endif
12457                      
12458 int main() {
12459  fabsf(0);
12460 ; return 0; }
12461 EOF
12462 if { (eval echo configure:12463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12463   rm -rf conftest*
12464   glibcpp_cv_func_fabsf_use=yes
12465 else
12466   echo "configure: failed program was:" >&5
12467   cat conftest.$ac_ext >&5
12468   rm -rf conftest*
12469   glibcpp_cv_func_fabsf_use=no
12470 fi
12471 rm -f conftest*
12472       ac_ext=c
12473 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12474 ac_cpp='$CPP $CPPFLAGS'
12475 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12476 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12477 cross_compiling=$ac_cv_prog_cc_cross
12478
12479     
12480 fi
12481
12482   fi
12483   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
12484
12485   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
12486     for ac_func in fabsf
12487 do
12488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12489 echo "configure:12490: checking for $ac_func" >&5
12490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12491   echo $ac_n "(cached) $ac_c" 1>&6
12492 else
12493   cat > conftest.$ac_ext <<EOF
12494 #line 12495 "configure"
12495 #include "confdefs.h"
12496 /* System header to define __stub macros and hopefully few prototypes,
12497     which can conflict with char $ac_func(); below.  */
12498 #include <assert.h>
12499 /* Override any gcc2 internal prototype to avoid an error.  */
12500 /* We use char because int might match the return type of a gcc2
12501     builtin and then its argument prototype would still apply.  */
12502 char $ac_func();
12503
12504 int main() {
12505
12506 /* The GNU C library defines this for functions which it implements
12507     to always fail with ENOSYS.  Some functions are actually named
12508     something starting with __ and the normal name is an alias.  */
12509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12510 choke me
12511 #else
12512 $ac_func();
12513 #endif
12514
12515 ; return 0; }
12516 EOF
12517 if { (eval echo configure:12518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12518   rm -rf conftest*
12519   eval "ac_cv_func_$ac_func=yes"
12520 else
12521   echo "configure: failed program was:" >&5
12522   cat conftest.$ac_ext >&5
12523   rm -rf conftest*
12524   eval "ac_cv_func_$ac_func=no"
12525 fi
12526 rm -f conftest*
12527 fi
12528
12529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12530   echo "$ac_t""yes" 1>&6
12531     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12532   cat >> confdefs.h <<EOF
12533 #define $ac_tr_func 1
12534 EOF
12535  
12536 else
12537   echo "$ac_t""no" 1>&6
12538 fi
12539 done
12540     
12541   else
12542     
12543   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
12544 echo "configure:12545: checking for _fabsf declaration" >&5
12545   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
12546     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
12547   echo $ac_n "(cached) $ac_c" 1>&6
12548 else
12549   
12550       
12551       ac_ext=C
12552 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12553 ac_cpp='$CXXCPP $CPPFLAGS'
12554 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12555 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12556 cross_compiling=$ac_cv_prog_cxx_cross
12557
12558       cat > conftest.$ac_ext <<EOF
12559 #line 12560 "configure"
12560 #include "confdefs.h"
12561 #include <math.h>
12562                       #ifdef HAVE_IEEEFP_H
12563                       #include <ieeefp.h>
12564                       #endif
12565                      
12566 int main() {
12567  _fabsf(0);
12568 ; return 0; }
12569 EOF
12570 if { (eval echo configure:12571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12571   rm -rf conftest*
12572   glibcpp_cv_func__fabsf_use=yes
12573 else
12574   echo "configure: failed program was:" >&5
12575   cat conftest.$ac_ext >&5
12576   rm -rf conftest*
12577   glibcpp_cv_func__fabsf_use=no
12578 fi
12579 rm -f conftest*
12580       ac_ext=c
12581 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12582 ac_cpp='$CPP $CPPFLAGS'
12583 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12584 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12585 cross_compiling=$ac_cv_prog_cc_cross
12586
12587     
12588 fi
12589
12590   fi
12591   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
12592
12593     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
12594       for ac_func in _fabsf
12595 do
12596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12597 echo "configure:12598: checking for $ac_func" >&5
12598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12599   echo $ac_n "(cached) $ac_c" 1>&6
12600 else
12601   cat > conftest.$ac_ext <<EOF
12602 #line 12603 "configure"
12603 #include "confdefs.h"
12604 /* System header to define __stub macros and hopefully few prototypes,
12605     which can conflict with char $ac_func(); below.  */
12606 #include <assert.h>
12607 /* Override any gcc2 internal prototype to avoid an error.  */
12608 /* We use char because int might match the return type of a gcc2
12609     builtin and then its argument prototype would still apply.  */
12610 char $ac_func();
12611
12612 int main() {
12613
12614 /* The GNU C library defines this for functions which it implements
12615     to always fail with ENOSYS.  Some functions are actually named
12616     something starting with __ and the normal name is an alias.  */
12617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12618 choke me
12619 #else
12620 $ac_func();
12621 #endif
12622
12623 ; return 0; }
12624 EOF
12625 if { (eval echo configure:12626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12626   rm -rf conftest*
12627   eval "ac_cv_func_$ac_func=yes"
12628 else
12629   echo "configure: failed program was:" >&5
12630   cat conftest.$ac_ext >&5
12631   rm -rf conftest*
12632   eval "ac_cv_func_$ac_func=no"
12633 fi
12634 rm -f conftest*
12635 fi
12636
12637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12638   echo "$ac_t""yes" 1>&6
12639     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12640   cat >> confdefs.h <<EOF
12641 #define $ac_tr_func 1
12642 EOF
12643  
12644 else
12645   echo "$ac_t""no" 1>&6
12646 fi
12647 done
12648     
12649     fi
12650   fi
12651
12652   
12653   
12654   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
12655 echo "configure:12656: checking for fmodf declaration" >&5
12656   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
12657     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
12658   echo $ac_n "(cached) $ac_c" 1>&6
12659 else
12660   
12661       
12662       ac_ext=C
12663 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12664 ac_cpp='$CXXCPP $CPPFLAGS'
12665 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12666 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12667 cross_compiling=$ac_cv_prog_cxx_cross
12668
12669       cat > conftest.$ac_ext <<EOF
12670 #line 12671 "configure"
12671 #include "confdefs.h"
12672 #include <math.h>
12673 int main() {
12674  fmodf(0, 0);
12675 ; return 0; }
12676 EOF
12677 if { (eval echo configure:12678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12678   rm -rf conftest*
12679   glibcpp_cv_func_fmodf_use=yes
12680 else
12681   echo "configure: failed program was:" >&5
12682   cat conftest.$ac_ext >&5
12683   rm -rf conftest*
12684   glibcpp_cv_func_fmodf_use=no
12685 fi
12686 rm -f conftest*
12687       ac_ext=c
12688 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12689 ac_cpp='$CPP $CPPFLAGS'
12690 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12691 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12692 cross_compiling=$ac_cv_prog_cc_cross
12693
12694     
12695 fi
12696
12697   fi
12698   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
12699
12700   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
12701     for ac_func in fmodf
12702 do
12703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12704 echo "configure:12705: checking for $ac_func" >&5
12705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12706   echo $ac_n "(cached) $ac_c" 1>&6
12707 else
12708   cat > conftest.$ac_ext <<EOF
12709 #line 12710 "configure"
12710 #include "confdefs.h"
12711 /* System header to define __stub macros and hopefully few prototypes,
12712     which can conflict with char $ac_func(); below.  */
12713 #include <assert.h>
12714 /* Override any gcc2 internal prototype to avoid an error.  */
12715 /* We use char because int might match the return type of a gcc2
12716     builtin and then its argument prototype would still apply.  */
12717 char $ac_func();
12718
12719 int main() {
12720
12721 /* The GNU C library defines this for functions which it implements
12722     to always fail with ENOSYS.  Some functions are actually named
12723     something starting with __ and the normal name is an alias.  */
12724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12725 choke me
12726 #else
12727 $ac_func();
12728 #endif
12729
12730 ; return 0; }
12731 EOF
12732 if { (eval echo configure:12733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12733   rm -rf conftest*
12734   eval "ac_cv_func_$ac_func=yes"
12735 else
12736   echo "configure: failed program was:" >&5
12737   cat conftest.$ac_ext >&5
12738   rm -rf conftest*
12739   eval "ac_cv_func_$ac_func=no"
12740 fi
12741 rm -f conftest*
12742 fi
12743
12744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12745   echo "$ac_t""yes" 1>&6
12746     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12747   cat >> confdefs.h <<EOF
12748 #define $ac_tr_func 1
12749 EOF
12750  
12751 else
12752   echo "$ac_t""no" 1>&6
12753 fi
12754 done
12755     
12756   else
12757     
12758   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
12759 echo "configure:12760: checking for _fmodf declaration" >&5
12760   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
12761     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
12762   echo $ac_n "(cached) $ac_c" 1>&6
12763 else
12764   
12765       
12766       ac_ext=C
12767 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12768 ac_cpp='$CXXCPP $CPPFLAGS'
12769 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12770 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12771 cross_compiling=$ac_cv_prog_cxx_cross
12772
12773       cat > conftest.$ac_ext <<EOF
12774 #line 12775 "configure"
12775 #include "confdefs.h"
12776 #include <math.h>
12777 int main() {
12778  _fmodf(0, 0);
12779 ; return 0; }
12780 EOF
12781 if { (eval echo configure:12782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12782   rm -rf conftest*
12783   glibcpp_cv_func__fmodf_use=yes
12784 else
12785   echo "configure: failed program was:" >&5
12786   cat conftest.$ac_ext >&5
12787   rm -rf conftest*
12788   glibcpp_cv_func__fmodf_use=no
12789 fi
12790 rm -f conftest*
12791       ac_ext=c
12792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12793 ac_cpp='$CPP $CPPFLAGS'
12794 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12795 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12796 cross_compiling=$ac_cv_prog_cc_cross
12797
12798     
12799 fi
12800
12801   fi
12802   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
12803
12804     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
12805       for ac_func in _fmodf
12806 do
12807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12808 echo "configure:12809: checking for $ac_func" >&5
12809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12810   echo $ac_n "(cached) $ac_c" 1>&6
12811 else
12812   cat > conftest.$ac_ext <<EOF
12813 #line 12814 "configure"
12814 #include "confdefs.h"
12815 /* System header to define __stub macros and hopefully few prototypes,
12816     which can conflict with char $ac_func(); below.  */
12817 #include <assert.h>
12818 /* Override any gcc2 internal prototype to avoid an error.  */
12819 /* We use char because int might match the return type of a gcc2
12820     builtin and then its argument prototype would still apply.  */
12821 char $ac_func();
12822
12823 int main() {
12824
12825 /* The GNU C library defines this for functions which it implements
12826     to always fail with ENOSYS.  Some functions are actually named
12827     something starting with __ and the normal name is an alias.  */
12828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12829 choke me
12830 #else
12831 $ac_func();
12832 #endif
12833
12834 ; return 0; }
12835 EOF
12836 if { (eval echo configure:12837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12837   rm -rf conftest*
12838   eval "ac_cv_func_$ac_func=yes"
12839 else
12840   echo "configure: failed program was:" >&5
12841   cat conftest.$ac_ext >&5
12842   rm -rf conftest*
12843   eval "ac_cv_func_$ac_func=no"
12844 fi
12845 rm -f conftest*
12846 fi
12847
12848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12849   echo "$ac_t""yes" 1>&6
12850     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12851   cat >> confdefs.h <<EOF
12852 #define $ac_tr_func 1
12853 EOF
12854  
12855 else
12856   echo "$ac_t""no" 1>&6
12857 fi
12858 done
12859     
12860     fi
12861   fi
12862
12863   
12864   
12865   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
12866 echo "configure:12867: checking for frexpf declaration" >&5
12867   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
12868     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
12869   echo $ac_n "(cached) $ac_c" 1>&6
12870 else
12871   
12872       
12873       ac_ext=C
12874 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12875 ac_cpp='$CXXCPP $CPPFLAGS'
12876 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12877 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12878 cross_compiling=$ac_cv_prog_cxx_cross
12879
12880       cat > conftest.$ac_ext <<EOF
12881 #line 12882 "configure"
12882 #include "confdefs.h"
12883 #include <math.h>
12884 int main() {
12885  frexpf(0, 0);
12886 ; return 0; }
12887 EOF
12888 if { (eval echo configure:12889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12889   rm -rf conftest*
12890   glibcpp_cv_func_frexpf_use=yes
12891 else
12892   echo "configure: failed program was:" >&5
12893   cat conftest.$ac_ext >&5
12894   rm -rf conftest*
12895   glibcpp_cv_func_frexpf_use=no
12896 fi
12897 rm -f conftest*
12898       ac_ext=c
12899 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12900 ac_cpp='$CPP $CPPFLAGS'
12901 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12902 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12903 cross_compiling=$ac_cv_prog_cc_cross
12904
12905     
12906 fi
12907
12908   fi
12909   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
12910
12911   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
12912     for ac_func in frexpf
12913 do
12914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12915 echo "configure:12916: checking for $ac_func" >&5
12916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12917   echo $ac_n "(cached) $ac_c" 1>&6
12918 else
12919   cat > conftest.$ac_ext <<EOF
12920 #line 12921 "configure"
12921 #include "confdefs.h"
12922 /* System header to define __stub macros and hopefully few prototypes,
12923     which can conflict with char $ac_func(); below.  */
12924 #include <assert.h>
12925 /* Override any gcc2 internal prototype to avoid an error.  */
12926 /* We use char because int might match the return type of a gcc2
12927     builtin and then its argument prototype would still apply.  */
12928 char $ac_func();
12929
12930 int main() {
12931
12932 /* The GNU C library defines this for functions which it implements
12933     to always fail with ENOSYS.  Some functions are actually named
12934     something starting with __ and the normal name is an alias.  */
12935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12936 choke me
12937 #else
12938 $ac_func();
12939 #endif
12940
12941 ; return 0; }
12942 EOF
12943 if { (eval echo configure:12944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12944   rm -rf conftest*
12945   eval "ac_cv_func_$ac_func=yes"
12946 else
12947   echo "configure: failed program was:" >&5
12948   cat conftest.$ac_ext >&5
12949   rm -rf conftest*
12950   eval "ac_cv_func_$ac_func=no"
12951 fi
12952 rm -f conftest*
12953 fi
12954
12955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12956   echo "$ac_t""yes" 1>&6
12957     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12958   cat >> confdefs.h <<EOF
12959 #define $ac_tr_func 1
12960 EOF
12961  
12962 else
12963   echo "$ac_t""no" 1>&6
12964 fi
12965 done
12966     
12967   else
12968     
12969   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
12970 echo "configure:12971: checking for _frexpf declaration" >&5
12971   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
12972     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
12973   echo $ac_n "(cached) $ac_c" 1>&6
12974 else
12975   
12976       
12977       ac_ext=C
12978 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12979 ac_cpp='$CXXCPP $CPPFLAGS'
12980 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12981 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12982 cross_compiling=$ac_cv_prog_cxx_cross
12983
12984       cat > conftest.$ac_ext <<EOF
12985 #line 12986 "configure"
12986 #include "confdefs.h"
12987 #include <math.h>
12988 int main() {
12989  _frexpf(0, 0);
12990 ; return 0; }
12991 EOF
12992 if { (eval echo configure:12993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12993   rm -rf conftest*
12994   glibcpp_cv_func__frexpf_use=yes
12995 else
12996   echo "configure: failed program was:" >&5
12997   cat conftest.$ac_ext >&5
12998   rm -rf conftest*
12999   glibcpp_cv_func__frexpf_use=no
13000 fi
13001 rm -f conftest*
13002       ac_ext=c
13003 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13004 ac_cpp='$CPP $CPPFLAGS'
13005 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13006 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13007 cross_compiling=$ac_cv_prog_cc_cross
13008
13009     
13010 fi
13011
13012   fi
13013   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
13014
13015     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
13016       for ac_func in _frexpf
13017 do
13018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13019 echo "configure:13020: checking for $ac_func" >&5
13020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13021   echo $ac_n "(cached) $ac_c" 1>&6
13022 else
13023   cat > conftest.$ac_ext <<EOF
13024 #line 13025 "configure"
13025 #include "confdefs.h"
13026 /* System header to define __stub macros and hopefully few prototypes,
13027     which can conflict with char $ac_func(); below.  */
13028 #include <assert.h>
13029 /* Override any gcc2 internal prototype to avoid an error.  */
13030 /* We use char because int might match the return type of a gcc2
13031     builtin and then its argument prototype would still apply.  */
13032 char $ac_func();
13033
13034 int main() {
13035
13036 /* The GNU C library defines this for functions which it implements
13037     to always fail with ENOSYS.  Some functions are actually named
13038     something starting with __ and the normal name is an alias.  */
13039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13040 choke me
13041 #else
13042 $ac_func();
13043 #endif
13044
13045 ; return 0; }
13046 EOF
13047 if { (eval echo configure:13048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13048   rm -rf conftest*
13049   eval "ac_cv_func_$ac_func=yes"
13050 else
13051   echo "configure: failed program was:" >&5
13052   cat conftest.$ac_ext >&5
13053   rm -rf conftest*
13054   eval "ac_cv_func_$ac_func=no"
13055 fi
13056 rm -f conftest*
13057 fi
13058
13059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13060   echo "$ac_t""yes" 1>&6
13061     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13062   cat >> confdefs.h <<EOF
13063 #define $ac_tr_func 1
13064 EOF
13065  
13066 else
13067   echo "$ac_t""no" 1>&6
13068 fi
13069 done
13070     
13071     fi
13072   fi
13073
13074   
13075   
13076   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
13077 echo "configure:13078: checking for hypotf declaration" >&5
13078   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
13079     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
13080   echo $ac_n "(cached) $ac_c" 1>&6
13081 else
13082   
13083       
13084       ac_ext=C
13085 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13086 ac_cpp='$CXXCPP $CPPFLAGS'
13087 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13088 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13089 cross_compiling=$ac_cv_prog_cxx_cross
13090
13091       cat > conftest.$ac_ext <<EOF
13092 #line 13093 "configure"
13093 #include "confdefs.h"
13094 #include <math.h>
13095 int main() {
13096  hypotf(0, 0);
13097 ; return 0; }
13098 EOF
13099 if { (eval echo configure:13100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13100   rm -rf conftest*
13101   glibcpp_cv_func_hypotf_use=yes
13102 else
13103   echo "configure: failed program was:" >&5
13104   cat conftest.$ac_ext >&5
13105   rm -rf conftest*
13106   glibcpp_cv_func_hypotf_use=no
13107 fi
13108 rm -f conftest*
13109       ac_ext=c
13110 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13111 ac_cpp='$CPP $CPPFLAGS'
13112 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13113 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13114 cross_compiling=$ac_cv_prog_cc_cross
13115
13116     
13117 fi
13118
13119   fi
13120   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
13121
13122   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
13123     for ac_func in hypotf
13124 do
13125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13126 echo "configure:13127: checking for $ac_func" >&5
13127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13128   echo $ac_n "(cached) $ac_c" 1>&6
13129 else
13130   cat > conftest.$ac_ext <<EOF
13131 #line 13132 "configure"
13132 #include "confdefs.h"
13133 /* System header to define __stub macros and hopefully few prototypes,
13134     which can conflict with char $ac_func(); below.  */
13135 #include <assert.h>
13136 /* Override any gcc2 internal prototype to avoid an error.  */
13137 /* We use char because int might match the return type of a gcc2
13138     builtin and then its argument prototype would still apply.  */
13139 char $ac_func();
13140
13141 int main() {
13142
13143 /* The GNU C library defines this for functions which it implements
13144     to always fail with ENOSYS.  Some functions are actually named
13145     something starting with __ and the normal name is an alias.  */
13146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13147 choke me
13148 #else
13149 $ac_func();
13150 #endif
13151
13152 ; return 0; }
13153 EOF
13154 if { (eval echo configure:13155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13155   rm -rf conftest*
13156   eval "ac_cv_func_$ac_func=yes"
13157 else
13158   echo "configure: failed program was:" >&5
13159   cat conftest.$ac_ext >&5
13160   rm -rf conftest*
13161   eval "ac_cv_func_$ac_func=no"
13162 fi
13163 rm -f conftest*
13164 fi
13165
13166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13167   echo "$ac_t""yes" 1>&6
13168     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13169   cat >> confdefs.h <<EOF
13170 #define $ac_tr_func 1
13171 EOF
13172  
13173 else
13174   echo "$ac_t""no" 1>&6
13175 fi
13176 done
13177     
13178   else
13179     
13180   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
13181 echo "configure:13182: checking for _hypotf declaration" >&5
13182   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
13183     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
13184   echo $ac_n "(cached) $ac_c" 1>&6
13185 else
13186   
13187       
13188       ac_ext=C
13189 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13190 ac_cpp='$CXXCPP $CPPFLAGS'
13191 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13192 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13193 cross_compiling=$ac_cv_prog_cxx_cross
13194
13195       cat > conftest.$ac_ext <<EOF
13196 #line 13197 "configure"
13197 #include "confdefs.h"
13198 #include <math.h>
13199 int main() {
13200  _hypotf(0, 0);
13201 ; return 0; }
13202 EOF
13203 if { (eval echo configure:13204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13204   rm -rf conftest*
13205   glibcpp_cv_func__hypotf_use=yes
13206 else
13207   echo "configure: failed program was:" >&5
13208   cat conftest.$ac_ext >&5
13209   rm -rf conftest*
13210   glibcpp_cv_func__hypotf_use=no
13211 fi
13212 rm -f conftest*
13213       ac_ext=c
13214 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13215 ac_cpp='$CPP $CPPFLAGS'
13216 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13217 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13218 cross_compiling=$ac_cv_prog_cc_cross
13219
13220     
13221 fi
13222
13223   fi
13224   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
13225
13226     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
13227       for ac_func in _hypotf
13228 do
13229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13230 echo "configure:13231: checking for $ac_func" >&5
13231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13232   echo $ac_n "(cached) $ac_c" 1>&6
13233 else
13234   cat > conftest.$ac_ext <<EOF
13235 #line 13236 "configure"
13236 #include "confdefs.h"
13237 /* System header to define __stub macros and hopefully few prototypes,
13238     which can conflict with char $ac_func(); below.  */
13239 #include <assert.h>
13240 /* Override any gcc2 internal prototype to avoid an error.  */
13241 /* We use char because int might match the return type of a gcc2
13242     builtin and then its argument prototype would still apply.  */
13243 char $ac_func();
13244
13245 int main() {
13246
13247 /* The GNU C library defines this for functions which it implements
13248     to always fail with ENOSYS.  Some functions are actually named
13249     something starting with __ and the normal name is an alias.  */
13250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13251 choke me
13252 #else
13253 $ac_func();
13254 #endif
13255
13256 ; return 0; }
13257 EOF
13258 if { (eval echo configure:13259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13259   rm -rf conftest*
13260   eval "ac_cv_func_$ac_func=yes"
13261 else
13262   echo "configure: failed program was:" >&5
13263   cat conftest.$ac_ext >&5
13264   rm -rf conftest*
13265   eval "ac_cv_func_$ac_func=no"
13266 fi
13267 rm -f conftest*
13268 fi
13269
13270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13271   echo "$ac_t""yes" 1>&6
13272     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13273   cat >> confdefs.h <<EOF
13274 #define $ac_tr_func 1
13275 EOF
13276  
13277 else
13278   echo "$ac_t""no" 1>&6
13279 fi
13280 done
13281     
13282     fi
13283   fi
13284
13285   
13286   
13287   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
13288 echo "configure:13289: checking for ldexpf declaration" >&5
13289   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
13290     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
13291   echo $ac_n "(cached) $ac_c" 1>&6
13292 else
13293   
13294       
13295       ac_ext=C
13296 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13297 ac_cpp='$CXXCPP $CPPFLAGS'
13298 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13299 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13300 cross_compiling=$ac_cv_prog_cxx_cross
13301
13302       cat > conftest.$ac_ext <<EOF
13303 #line 13304 "configure"
13304 #include "confdefs.h"
13305 #include <math.h>
13306 int main() {
13307  ldexpf(0, 0);
13308 ; return 0; }
13309 EOF
13310 if { (eval echo configure:13311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13311   rm -rf conftest*
13312   glibcpp_cv_func_ldexpf_use=yes
13313 else
13314   echo "configure: failed program was:" >&5
13315   cat conftest.$ac_ext >&5
13316   rm -rf conftest*
13317   glibcpp_cv_func_ldexpf_use=no
13318 fi
13319 rm -f conftest*
13320       ac_ext=c
13321 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13322 ac_cpp='$CPP $CPPFLAGS'
13323 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13324 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13325 cross_compiling=$ac_cv_prog_cc_cross
13326
13327     
13328 fi
13329
13330   fi
13331   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
13332
13333   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
13334     for ac_func in ldexpf
13335 do
13336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13337 echo "configure:13338: checking for $ac_func" >&5
13338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13339   echo $ac_n "(cached) $ac_c" 1>&6
13340 else
13341   cat > conftest.$ac_ext <<EOF
13342 #line 13343 "configure"
13343 #include "confdefs.h"
13344 /* System header to define __stub macros and hopefully few prototypes,
13345     which can conflict with char $ac_func(); below.  */
13346 #include <assert.h>
13347 /* Override any gcc2 internal prototype to avoid an error.  */
13348 /* We use char because int might match the return type of a gcc2
13349     builtin and then its argument prototype would still apply.  */
13350 char $ac_func();
13351
13352 int main() {
13353
13354 /* The GNU C library defines this for functions which it implements
13355     to always fail with ENOSYS.  Some functions are actually named
13356     something starting with __ and the normal name is an alias.  */
13357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13358 choke me
13359 #else
13360 $ac_func();
13361 #endif
13362
13363 ; return 0; }
13364 EOF
13365 if { (eval echo configure:13366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13366   rm -rf conftest*
13367   eval "ac_cv_func_$ac_func=yes"
13368 else
13369   echo "configure: failed program was:" >&5
13370   cat conftest.$ac_ext >&5
13371   rm -rf conftest*
13372   eval "ac_cv_func_$ac_func=no"
13373 fi
13374 rm -f conftest*
13375 fi
13376
13377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13378   echo "$ac_t""yes" 1>&6
13379     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13380   cat >> confdefs.h <<EOF
13381 #define $ac_tr_func 1
13382 EOF
13383  
13384 else
13385   echo "$ac_t""no" 1>&6
13386 fi
13387 done
13388     
13389   else
13390     
13391   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
13392 echo "configure:13393: checking for _ldexpf declaration" >&5
13393   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
13394     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
13395   echo $ac_n "(cached) $ac_c" 1>&6
13396 else
13397   
13398       
13399       ac_ext=C
13400 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13401 ac_cpp='$CXXCPP $CPPFLAGS'
13402 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13403 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13404 cross_compiling=$ac_cv_prog_cxx_cross
13405
13406       cat > conftest.$ac_ext <<EOF
13407 #line 13408 "configure"
13408 #include "confdefs.h"
13409 #include <math.h>
13410 int main() {
13411  _ldexpf(0, 0);
13412 ; return 0; }
13413 EOF
13414 if { (eval echo configure:13415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13415   rm -rf conftest*
13416   glibcpp_cv_func__ldexpf_use=yes
13417 else
13418   echo "configure: failed program was:" >&5
13419   cat conftest.$ac_ext >&5
13420   rm -rf conftest*
13421   glibcpp_cv_func__ldexpf_use=no
13422 fi
13423 rm -f conftest*
13424       ac_ext=c
13425 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13426 ac_cpp='$CPP $CPPFLAGS'
13427 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13428 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13429 cross_compiling=$ac_cv_prog_cc_cross
13430
13431     
13432 fi
13433
13434   fi
13435   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
13436
13437     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
13438       for ac_func in _ldexpf
13439 do
13440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13441 echo "configure:13442: checking for $ac_func" >&5
13442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13443   echo $ac_n "(cached) $ac_c" 1>&6
13444 else
13445   cat > conftest.$ac_ext <<EOF
13446 #line 13447 "configure"
13447 #include "confdefs.h"
13448 /* System header to define __stub macros and hopefully few prototypes,
13449     which can conflict with char $ac_func(); below.  */
13450 #include <assert.h>
13451 /* Override any gcc2 internal prototype to avoid an error.  */
13452 /* We use char because int might match the return type of a gcc2
13453     builtin and then its argument prototype would still apply.  */
13454 char $ac_func();
13455
13456 int main() {
13457
13458 /* The GNU C library defines this for functions which it implements
13459     to always fail with ENOSYS.  Some functions are actually named
13460     something starting with __ and the normal name is an alias.  */
13461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13462 choke me
13463 #else
13464 $ac_func();
13465 #endif
13466
13467 ; return 0; }
13468 EOF
13469 if { (eval echo configure:13470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13470   rm -rf conftest*
13471   eval "ac_cv_func_$ac_func=yes"
13472 else
13473   echo "configure: failed program was:" >&5
13474   cat conftest.$ac_ext >&5
13475   rm -rf conftest*
13476   eval "ac_cv_func_$ac_func=no"
13477 fi
13478 rm -f conftest*
13479 fi
13480
13481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13482   echo "$ac_t""yes" 1>&6
13483     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13484   cat >> confdefs.h <<EOF
13485 #define $ac_tr_func 1
13486 EOF
13487  
13488 else
13489   echo "$ac_t""no" 1>&6
13490 fi
13491 done
13492     
13493     fi
13494   fi
13495
13496   
13497   
13498   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
13499 echo "configure:13500: checking for logf declaration" >&5
13500   if test x${glibcpp_cv_func_logf_use+set} != xset; then
13501     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
13502   echo $ac_n "(cached) $ac_c" 1>&6
13503 else
13504   
13505       
13506       ac_ext=C
13507 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13508 ac_cpp='$CXXCPP $CPPFLAGS'
13509 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13510 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13511 cross_compiling=$ac_cv_prog_cxx_cross
13512
13513       cat > conftest.$ac_ext <<EOF
13514 #line 13515 "configure"
13515 #include "confdefs.h"
13516 #include <math.h>
13517                       #ifdef HAVE_IEEEFP_H
13518                       #include <ieeefp.h>
13519                       #endif
13520                      
13521 int main() {
13522  logf(0);
13523 ; return 0; }
13524 EOF
13525 if { (eval echo configure:13526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13526   rm -rf conftest*
13527   glibcpp_cv_func_logf_use=yes
13528 else
13529   echo "configure: failed program was:" >&5
13530   cat conftest.$ac_ext >&5
13531   rm -rf conftest*
13532   glibcpp_cv_func_logf_use=no
13533 fi
13534 rm -f conftest*
13535       ac_ext=c
13536 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13537 ac_cpp='$CPP $CPPFLAGS'
13538 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13539 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13540 cross_compiling=$ac_cv_prog_cc_cross
13541
13542     
13543 fi
13544
13545   fi
13546   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
13547
13548   if test x$glibcpp_cv_func_logf_use = x"yes"; then
13549     for ac_func in logf
13550 do
13551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13552 echo "configure:13553: checking for $ac_func" >&5
13553 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13554   echo $ac_n "(cached) $ac_c" 1>&6
13555 else
13556   cat > conftest.$ac_ext <<EOF
13557 #line 13558 "configure"
13558 #include "confdefs.h"
13559 /* System header to define __stub macros and hopefully few prototypes,
13560     which can conflict with char $ac_func(); below.  */
13561 #include <assert.h>
13562 /* Override any gcc2 internal prototype to avoid an error.  */
13563 /* We use char because int might match the return type of a gcc2
13564     builtin and then its argument prototype would still apply.  */
13565 char $ac_func();
13566
13567 int main() {
13568
13569 /* The GNU C library defines this for functions which it implements
13570     to always fail with ENOSYS.  Some functions are actually named
13571     something starting with __ and the normal name is an alias.  */
13572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13573 choke me
13574 #else
13575 $ac_func();
13576 #endif
13577
13578 ; return 0; }
13579 EOF
13580 if { (eval echo configure:13581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13581   rm -rf conftest*
13582   eval "ac_cv_func_$ac_func=yes"
13583 else
13584   echo "configure: failed program was:" >&5
13585   cat conftest.$ac_ext >&5
13586   rm -rf conftest*
13587   eval "ac_cv_func_$ac_func=no"
13588 fi
13589 rm -f conftest*
13590 fi
13591
13592 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13593   echo "$ac_t""yes" 1>&6
13594     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13595   cat >> confdefs.h <<EOF
13596 #define $ac_tr_func 1
13597 EOF
13598  
13599 else
13600   echo "$ac_t""no" 1>&6
13601 fi
13602 done
13603     
13604   else
13605     
13606   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
13607 echo "configure:13608: checking for _logf declaration" >&5
13608   if test x${glibcpp_cv_func__logf_use+set} != xset; then
13609     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
13610   echo $ac_n "(cached) $ac_c" 1>&6
13611 else
13612   
13613       
13614       ac_ext=C
13615 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13616 ac_cpp='$CXXCPP $CPPFLAGS'
13617 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13618 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13619 cross_compiling=$ac_cv_prog_cxx_cross
13620
13621       cat > conftest.$ac_ext <<EOF
13622 #line 13623 "configure"
13623 #include "confdefs.h"
13624 #include <math.h>
13625                       #ifdef HAVE_IEEEFP_H
13626                       #include <ieeefp.h>
13627                       #endif
13628                      
13629 int main() {
13630  _logf(0);
13631 ; return 0; }
13632 EOF
13633 if { (eval echo configure:13634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13634   rm -rf conftest*
13635   glibcpp_cv_func__logf_use=yes
13636 else
13637   echo "configure: failed program was:" >&5
13638   cat conftest.$ac_ext >&5
13639   rm -rf conftest*
13640   glibcpp_cv_func__logf_use=no
13641 fi
13642 rm -f conftest*
13643       ac_ext=c
13644 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13645 ac_cpp='$CPP $CPPFLAGS'
13646 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13647 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13648 cross_compiling=$ac_cv_prog_cc_cross
13649
13650     
13651 fi
13652
13653   fi
13654   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
13655
13656     if test x$glibcpp_cv_func__logf_use = x"yes"; then
13657       for ac_func in _logf
13658 do
13659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13660 echo "configure:13661: checking for $ac_func" >&5
13661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13662   echo $ac_n "(cached) $ac_c" 1>&6
13663 else
13664   cat > conftest.$ac_ext <<EOF
13665 #line 13666 "configure"
13666 #include "confdefs.h"
13667 /* System header to define __stub macros and hopefully few prototypes,
13668     which can conflict with char $ac_func(); below.  */
13669 #include <assert.h>
13670 /* Override any gcc2 internal prototype to avoid an error.  */
13671 /* We use char because int might match the return type of a gcc2
13672     builtin and then its argument prototype would still apply.  */
13673 char $ac_func();
13674
13675 int main() {
13676
13677 /* The GNU C library defines this for functions which it implements
13678     to always fail with ENOSYS.  Some functions are actually named
13679     something starting with __ and the normal name is an alias.  */
13680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13681 choke me
13682 #else
13683 $ac_func();
13684 #endif
13685
13686 ; return 0; }
13687 EOF
13688 if { (eval echo configure:13689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13689   rm -rf conftest*
13690   eval "ac_cv_func_$ac_func=yes"
13691 else
13692   echo "configure: failed program was:" >&5
13693   cat conftest.$ac_ext >&5
13694   rm -rf conftest*
13695   eval "ac_cv_func_$ac_func=no"
13696 fi
13697 rm -f conftest*
13698 fi
13699
13700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13701   echo "$ac_t""yes" 1>&6
13702     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13703   cat >> confdefs.h <<EOF
13704 #define $ac_tr_func 1
13705 EOF
13706  
13707 else
13708   echo "$ac_t""no" 1>&6
13709 fi
13710 done
13711     
13712     fi
13713   fi
13714
13715   
13716   
13717   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
13718 echo "configure:13719: checking for log10f declaration" >&5
13719   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
13720     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
13721   echo $ac_n "(cached) $ac_c" 1>&6
13722 else
13723   
13724       
13725       ac_ext=C
13726 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13727 ac_cpp='$CXXCPP $CPPFLAGS'
13728 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13729 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13730 cross_compiling=$ac_cv_prog_cxx_cross
13731
13732       cat > conftest.$ac_ext <<EOF
13733 #line 13734 "configure"
13734 #include "confdefs.h"
13735 #include <math.h>
13736                       #ifdef HAVE_IEEEFP_H
13737                       #include <ieeefp.h>
13738                       #endif
13739                      
13740 int main() {
13741  log10f(0);
13742 ; return 0; }
13743 EOF
13744 if { (eval echo configure:13745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13745   rm -rf conftest*
13746   glibcpp_cv_func_log10f_use=yes
13747 else
13748   echo "configure: failed program was:" >&5
13749   cat conftest.$ac_ext >&5
13750   rm -rf conftest*
13751   glibcpp_cv_func_log10f_use=no
13752 fi
13753 rm -f conftest*
13754       ac_ext=c
13755 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13756 ac_cpp='$CPP $CPPFLAGS'
13757 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13758 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13759 cross_compiling=$ac_cv_prog_cc_cross
13760
13761     
13762 fi
13763
13764   fi
13765   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
13766
13767   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
13768     for ac_func in log10f
13769 do
13770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13771 echo "configure:13772: checking for $ac_func" >&5
13772 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13773   echo $ac_n "(cached) $ac_c" 1>&6
13774 else
13775   cat > conftest.$ac_ext <<EOF
13776 #line 13777 "configure"
13777 #include "confdefs.h"
13778 /* System header to define __stub macros and hopefully few prototypes,
13779     which can conflict with char $ac_func(); below.  */
13780 #include <assert.h>
13781 /* Override any gcc2 internal prototype to avoid an error.  */
13782 /* We use char because int might match the return type of a gcc2
13783     builtin and then its argument prototype would still apply.  */
13784 char $ac_func();
13785
13786 int main() {
13787
13788 /* The GNU C library defines this for functions which it implements
13789     to always fail with ENOSYS.  Some functions are actually named
13790     something starting with __ and the normal name is an alias.  */
13791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13792 choke me
13793 #else
13794 $ac_func();
13795 #endif
13796
13797 ; return 0; }
13798 EOF
13799 if { (eval echo configure:13800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13800   rm -rf conftest*
13801   eval "ac_cv_func_$ac_func=yes"
13802 else
13803   echo "configure: failed program was:" >&5
13804   cat conftest.$ac_ext >&5
13805   rm -rf conftest*
13806   eval "ac_cv_func_$ac_func=no"
13807 fi
13808 rm -f conftest*
13809 fi
13810
13811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13812   echo "$ac_t""yes" 1>&6
13813     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13814   cat >> confdefs.h <<EOF
13815 #define $ac_tr_func 1
13816 EOF
13817  
13818 else
13819   echo "$ac_t""no" 1>&6
13820 fi
13821 done
13822     
13823   else
13824     
13825   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
13826 echo "configure:13827: checking for _log10f declaration" >&5
13827   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
13828     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
13829   echo $ac_n "(cached) $ac_c" 1>&6
13830 else
13831   
13832       
13833       ac_ext=C
13834 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13835 ac_cpp='$CXXCPP $CPPFLAGS'
13836 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13837 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13838 cross_compiling=$ac_cv_prog_cxx_cross
13839
13840       cat > conftest.$ac_ext <<EOF
13841 #line 13842 "configure"
13842 #include "confdefs.h"
13843 #include <math.h>
13844                       #ifdef HAVE_IEEEFP_H
13845                       #include <ieeefp.h>
13846                       #endif
13847                      
13848 int main() {
13849  _log10f(0);
13850 ; return 0; }
13851 EOF
13852 if { (eval echo configure:13853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13853   rm -rf conftest*
13854   glibcpp_cv_func__log10f_use=yes
13855 else
13856   echo "configure: failed program was:" >&5
13857   cat conftest.$ac_ext >&5
13858   rm -rf conftest*
13859   glibcpp_cv_func__log10f_use=no
13860 fi
13861 rm -f conftest*
13862       ac_ext=c
13863 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13864 ac_cpp='$CPP $CPPFLAGS'
13865 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13866 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13867 cross_compiling=$ac_cv_prog_cc_cross
13868
13869     
13870 fi
13871
13872   fi
13873   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
13874
13875     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
13876       for ac_func in _log10f
13877 do
13878 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13879 echo "configure:13880: checking for $ac_func" >&5
13880 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13881   echo $ac_n "(cached) $ac_c" 1>&6
13882 else
13883   cat > conftest.$ac_ext <<EOF
13884 #line 13885 "configure"
13885 #include "confdefs.h"
13886 /* System header to define __stub macros and hopefully few prototypes,
13887     which can conflict with char $ac_func(); below.  */
13888 #include <assert.h>
13889 /* Override any gcc2 internal prototype to avoid an error.  */
13890 /* We use char because int might match the return type of a gcc2
13891     builtin and then its argument prototype would still apply.  */
13892 char $ac_func();
13893
13894 int main() {
13895
13896 /* The GNU C library defines this for functions which it implements
13897     to always fail with ENOSYS.  Some functions are actually named
13898     something starting with __ and the normal name is an alias.  */
13899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13900 choke me
13901 #else
13902 $ac_func();
13903 #endif
13904
13905 ; return 0; }
13906 EOF
13907 if { (eval echo configure:13908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13908   rm -rf conftest*
13909   eval "ac_cv_func_$ac_func=yes"
13910 else
13911   echo "configure: failed program was:" >&5
13912   cat conftest.$ac_ext >&5
13913   rm -rf conftest*
13914   eval "ac_cv_func_$ac_func=no"
13915 fi
13916 rm -f conftest*
13917 fi
13918
13919 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13920   echo "$ac_t""yes" 1>&6
13921     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13922   cat >> confdefs.h <<EOF
13923 #define $ac_tr_func 1
13924 EOF
13925  
13926 else
13927   echo "$ac_t""no" 1>&6
13928 fi
13929 done
13930     
13931     fi
13932   fi
13933
13934   
13935   
13936   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
13937 echo "configure:13938: checking for modff declaration" >&5
13938   if test x${glibcpp_cv_func_modff_use+set} != xset; then
13939     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
13940   echo $ac_n "(cached) $ac_c" 1>&6
13941 else
13942   
13943       
13944       ac_ext=C
13945 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13946 ac_cpp='$CXXCPP $CPPFLAGS'
13947 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13948 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13949 cross_compiling=$ac_cv_prog_cxx_cross
13950
13951       cat > conftest.$ac_ext <<EOF
13952 #line 13953 "configure"
13953 #include "confdefs.h"
13954 #include <math.h>
13955 int main() {
13956  modff(0, 0);
13957 ; return 0; }
13958 EOF
13959 if { (eval echo configure:13960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13960   rm -rf conftest*
13961   glibcpp_cv_func_modff_use=yes
13962 else
13963   echo "configure: failed program was:" >&5
13964   cat conftest.$ac_ext >&5
13965   rm -rf conftest*
13966   glibcpp_cv_func_modff_use=no
13967 fi
13968 rm -f conftest*
13969       ac_ext=c
13970 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13971 ac_cpp='$CPP $CPPFLAGS'
13972 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13973 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13974 cross_compiling=$ac_cv_prog_cc_cross
13975
13976     
13977 fi
13978
13979   fi
13980   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
13981
13982   if test x$glibcpp_cv_func_modff_use = x"yes"; then
13983     for ac_func in modff
13984 do
13985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13986 echo "configure:13987: checking for $ac_func" >&5
13987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13988   echo $ac_n "(cached) $ac_c" 1>&6
13989 else
13990   cat > conftest.$ac_ext <<EOF
13991 #line 13992 "configure"
13992 #include "confdefs.h"
13993 /* System header to define __stub macros and hopefully few prototypes,
13994     which can conflict with char $ac_func(); below.  */
13995 #include <assert.h>
13996 /* Override any gcc2 internal prototype to avoid an error.  */
13997 /* We use char because int might match the return type of a gcc2
13998     builtin and then its argument prototype would still apply.  */
13999 char $ac_func();
14000
14001 int main() {
14002
14003 /* The GNU C library defines this for functions which it implements
14004     to always fail with ENOSYS.  Some functions are actually named
14005     something starting with __ and the normal name is an alias.  */
14006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14007 choke me
14008 #else
14009 $ac_func();
14010 #endif
14011
14012 ; return 0; }
14013 EOF
14014 if { (eval echo configure:14015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14015   rm -rf conftest*
14016   eval "ac_cv_func_$ac_func=yes"
14017 else
14018   echo "configure: failed program was:" >&5
14019   cat conftest.$ac_ext >&5
14020   rm -rf conftest*
14021   eval "ac_cv_func_$ac_func=no"
14022 fi
14023 rm -f conftest*
14024 fi
14025
14026 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14027   echo "$ac_t""yes" 1>&6
14028     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14029   cat >> confdefs.h <<EOF
14030 #define $ac_tr_func 1
14031 EOF
14032  
14033 else
14034   echo "$ac_t""no" 1>&6
14035 fi
14036 done
14037     
14038   else
14039     
14040   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
14041 echo "configure:14042: checking for _modff declaration" >&5
14042   if test x${glibcpp_cv_func__modff_use+set} != xset; then
14043     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
14044   echo $ac_n "(cached) $ac_c" 1>&6
14045 else
14046   
14047       
14048       ac_ext=C
14049 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14050 ac_cpp='$CXXCPP $CPPFLAGS'
14051 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14052 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14053 cross_compiling=$ac_cv_prog_cxx_cross
14054
14055       cat > conftest.$ac_ext <<EOF
14056 #line 14057 "configure"
14057 #include "confdefs.h"
14058 #include <math.h>
14059 int main() {
14060  _modff(0, 0);
14061 ; return 0; }
14062 EOF
14063 if { (eval echo configure:14064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14064   rm -rf conftest*
14065   glibcpp_cv_func__modff_use=yes
14066 else
14067   echo "configure: failed program was:" >&5
14068   cat conftest.$ac_ext >&5
14069   rm -rf conftest*
14070   glibcpp_cv_func__modff_use=no
14071 fi
14072 rm -f conftest*
14073       ac_ext=c
14074 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14075 ac_cpp='$CPP $CPPFLAGS'
14076 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14077 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14078 cross_compiling=$ac_cv_prog_cc_cross
14079
14080     
14081 fi
14082
14083   fi
14084   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
14085
14086     if test x$glibcpp_cv_func__modff_use = x"yes"; then
14087       for ac_func in _modff
14088 do
14089 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14090 echo "configure:14091: checking for $ac_func" >&5
14091 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14092   echo $ac_n "(cached) $ac_c" 1>&6
14093 else
14094   cat > conftest.$ac_ext <<EOF
14095 #line 14096 "configure"
14096 #include "confdefs.h"
14097 /* System header to define __stub macros and hopefully few prototypes,
14098     which can conflict with char $ac_func(); below.  */
14099 #include <assert.h>
14100 /* Override any gcc2 internal prototype to avoid an error.  */
14101 /* We use char because int might match the return type of a gcc2
14102     builtin and then its argument prototype would still apply.  */
14103 char $ac_func();
14104
14105 int main() {
14106
14107 /* The GNU C library defines this for functions which it implements
14108     to always fail with ENOSYS.  Some functions are actually named
14109     something starting with __ and the normal name is an alias.  */
14110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14111 choke me
14112 #else
14113 $ac_func();
14114 #endif
14115
14116 ; return 0; }
14117 EOF
14118 if { (eval echo configure:14119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14119   rm -rf conftest*
14120   eval "ac_cv_func_$ac_func=yes"
14121 else
14122   echo "configure: failed program was:" >&5
14123   cat conftest.$ac_ext >&5
14124   rm -rf conftest*
14125   eval "ac_cv_func_$ac_func=no"
14126 fi
14127 rm -f conftest*
14128 fi
14129
14130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14131   echo "$ac_t""yes" 1>&6
14132     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14133   cat >> confdefs.h <<EOF
14134 #define $ac_tr_func 1
14135 EOF
14136  
14137 else
14138   echo "$ac_t""no" 1>&6
14139 fi
14140 done
14141     
14142     fi
14143   fi
14144
14145   
14146   
14147   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
14148 echo "configure:14149: checking for powf declaration" >&5
14149   if test x${glibcpp_cv_func_powf_use+set} != xset; then
14150     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
14151   echo $ac_n "(cached) $ac_c" 1>&6
14152 else
14153   
14154       
14155       ac_ext=C
14156 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14157 ac_cpp='$CXXCPP $CPPFLAGS'
14158 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14159 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14160 cross_compiling=$ac_cv_prog_cxx_cross
14161
14162       cat > conftest.$ac_ext <<EOF
14163 #line 14164 "configure"
14164 #include "confdefs.h"
14165 #include <math.h>
14166 int main() {
14167  powf(0, 0);
14168 ; return 0; }
14169 EOF
14170 if { (eval echo configure:14171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14171   rm -rf conftest*
14172   glibcpp_cv_func_powf_use=yes
14173 else
14174   echo "configure: failed program was:" >&5
14175   cat conftest.$ac_ext >&5
14176   rm -rf conftest*
14177   glibcpp_cv_func_powf_use=no
14178 fi
14179 rm -f conftest*
14180       ac_ext=c
14181 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14182 ac_cpp='$CPP $CPPFLAGS'
14183 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14184 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14185 cross_compiling=$ac_cv_prog_cc_cross
14186
14187     
14188 fi
14189
14190   fi
14191   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
14192
14193   if test x$glibcpp_cv_func_powf_use = x"yes"; then
14194     for ac_func in powf
14195 do
14196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14197 echo "configure:14198: checking for $ac_func" >&5
14198 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14199   echo $ac_n "(cached) $ac_c" 1>&6
14200 else
14201   cat > conftest.$ac_ext <<EOF
14202 #line 14203 "configure"
14203 #include "confdefs.h"
14204 /* System header to define __stub macros and hopefully few prototypes,
14205     which can conflict with char $ac_func(); below.  */
14206 #include <assert.h>
14207 /* Override any gcc2 internal prototype to avoid an error.  */
14208 /* We use char because int might match the return type of a gcc2
14209     builtin and then its argument prototype would still apply.  */
14210 char $ac_func();
14211
14212 int main() {
14213
14214 /* The GNU C library defines this for functions which it implements
14215     to always fail with ENOSYS.  Some functions are actually named
14216     something starting with __ and the normal name is an alias.  */
14217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14218 choke me
14219 #else
14220 $ac_func();
14221 #endif
14222
14223 ; return 0; }
14224 EOF
14225 if { (eval echo configure:14226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14226   rm -rf conftest*
14227   eval "ac_cv_func_$ac_func=yes"
14228 else
14229   echo "configure: failed program was:" >&5
14230   cat conftest.$ac_ext >&5
14231   rm -rf conftest*
14232   eval "ac_cv_func_$ac_func=no"
14233 fi
14234 rm -f conftest*
14235 fi
14236
14237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14238   echo "$ac_t""yes" 1>&6
14239     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14240   cat >> confdefs.h <<EOF
14241 #define $ac_tr_func 1
14242 EOF
14243  
14244 else
14245   echo "$ac_t""no" 1>&6
14246 fi
14247 done
14248     
14249   else
14250     
14251   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
14252 echo "configure:14253: checking for _powf declaration" >&5
14253   if test x${glibcpp_cv_func__powf_use+set} != xset; then
14254     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
14255   echo $ac_n "(cached) $ac_c" 1>&6
14256 else
14257   
14258       
14259       ac_ext=C
14260 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14261 ac_cpp='$CXXCPP $CPPFLAGS'
14262 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14263 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14264 cross_compiling=$ac_cv_prog_cxx_cross
14265
14266       cat > conftest.$ac_ext <<EOF
14267 #line 14268 "configure"
14268 #include "confdefs.h"
14269 #include <math.h>
14270 int main() {
14271  _powf(0, 0);
14272 ; return 0; }
14273 EOF
14274 if { (eval echo configure:14275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14275   rm -rf conftest*
14276   glibcpp_cv_func__powf_use=yes
14277 else
14278   echo "configure: failed program was:" >&5
14279   cat conftest.$ac_ext >&5
14280   rm -rf conftest*
14281   glibcpp_cv_func__powf_use=no
14282 fi
14283 rm -f conftest*
14284       ac_ext=c
14285 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14286 ac_cpp='$CPP $CPPFLAGS'
14287 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14288 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14289 cross_compiling=$ac_cv_prog_cc_cross
14290
14291     
14292 fi
14293
14294   fi
14295   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
14296
14297     if test x$glibcpp_cv_func__powf_use = x"yes"; then
14298       for ac_func in _powf
14299 do
14300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14301 echo "configure:14302: checking for $ac_func" >&5
14302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14303   echo $ac_n "(cached) $ac_c" 1>&6
14304 else
14305   cat > conftest.$ac_ext <<EOF
14306 #line 14307 "configure"
14307 #include "confdefs.h"
14308 /* System header to define __stub macros and hopefully few prototypes,
14309     which can conflict with char $ac_func(); below.  */
14310 #include <assert.h>
14311 /* Override any gcc2 internal prototype to avoid an error.  */
14312 /* We use char because int might match the return type of a gcc2
14313     builtin and then its argument prototype would still apply.  */
14314 char $ac_func();
14315
14316 int main() {
14317
14318 /* The GNU C library defines this for functions which it implements
14319     to always fail with ENOSYS.  Some functions are actually named
14320     something starting with __ and the normal name is an alias.  */
14321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14322 choke me
14323 #else
14324 $ac_func();
14325 #endif
14326
14327 ; return 0; }
14328 EOF
14329 if { (eval echo configure:14330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14330   rm -rf conftest*
14331   eval "ac_cv_func_$ac_func=yes"
14332 else
14333   echo "configure: failed program was:" >&5
14334   cat conftest.$ac_ext >&5
14335   rm -rf conftest*
14336   eval "ac_cv_func_$ac_func=no"
14337 fi
14338 rm -f conftest*
14339 fi
14340
14341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14342   echo "$ac_t""yes" 1>&6
14343     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14344   cat >> confdefs.h <<EOF
14345 #define $ac_tr_func 1
14346 EOF
14347  
14348 else
14349   echo "$ac_t""no" 1>&6
14350 fi
14351 done
14352     
14353     fi
14354   fi
14355
14356   
14357   
14358   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
14359 echo "configure:14360: checking for sqrtf declaration" >&5
14360   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
14361     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
14362   echo $ac_n "(cached) $ac_c" 1>&6
14363 else
14364   
14365       
14366       ac_ext=C
14367 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14368 ac_cpp='$CXXCPP $CPPFLAGS'
14369 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14370 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14371 cross_compiling=$ac_cv_prog_cxx_cross
14372
14373       cat > conftest.$ac_ext <<EOF
14374 #line 14375 "configure"
14375 #include "confdefs.h"
14376 #include <math.h>
14377                       #ifdef HAVE_IEEEFP_H
14378                       #include <ieeefp.h>
14379                       #endif
14380                      
14381 int main() {
14382  sqrtf(0);
14383 ; return 0; }
14384 EOF
14385 if { (eval echo configure:14386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14386   rm -rf conftest*
14387   glibcpp_cv_func_sqrtf_use=yes
14388 else
14389   echo "configure: failed program was:" >&5
14390   cat conftest.$ac_ext >&5
14391   rm -rf conftest*
14392   glibcpp_cv_func_sqrtf_use=no
14393 fi
14394 rm -f conftest*
14395       ac_ext=c
14396 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14397 ac_cpp='$CPP $CPPFLAGS'
14398 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14399 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14400 cross_compiling=$ac_cv_prog_cc_cross
14401
14402     
14403 fi
14404
14405   fi
14406   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
14407
14408   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
14409     for ac_func in sqrtf
14410 do
14411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14412 echo "configure:14413: checking for $ac_func" >&5
14413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14414   echo $ac_n "(cached) $ac_c" 1>&6
14415 else
14416   cat > conftest.$ac_ext <<EOF
14417 #line 14418 "configure"
14418 #include "confdefs.h"
14419 /* System header to define __stub macros and hopefully few prototypes,
14420     which can conflict with char $ac_func(); below.  */
14421 #include <assert.h>
14422 /* Override any gcc2 internal prototype to avoid an error.  */
14423 /* We use char because int might match the return type of a gcc2
14424     builtin and then its argument prototype would still apply.  */
14425 char $ac_func();
14426
14427 int main() {
14428
14429 /* The GNU C library defines this for functions which it implements
14430     to always fail with ENOSYS.  Some functions are actually named
14431     something starting with __ and the normal name is an alias.  */
14432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14433 choke me
14434 #else
14435 $ac_func();
14436 #endif
14437
14438 ; return 0; }
14439 EOF
14440 if { (eval echo configure:14441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14441   rm -rf conftest*
14442   eval "ac_cv_func_$ac_func=yes"
14443 else
14444   echo "configure: failed program was:" >&5
14445   cat conftest.$ac_ext >&5
14446   rm -rf conftest*
14447   eval "ac_cv_func_$ac_func=no"
14448 fi
14449 rm -f conftest*
14450 fi
14451
14452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14453   echo "$ac_t""yes" 1>&6
14454     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14455   cat >> confdefs.h <<EOF
14456 #define $ac_tr_func 1
14457 EOF
14458  
14459 else
14460   echo "$ac_t""no" 1>&6
14461 fi
14462 done
14463     
14464   else
14465     
14466   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
14467 echo "configure:14468: checking for _sqrtf declaration" >&5
14468   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
14469     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
14470   echo $ac_n "(cached) $ac_c" 1>&6
14471 else
14472   
14473       
14474       ac_ext=C
14475 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14476 ac_cpp='$CXXCPP $CPPFLAGS'
14477 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14478 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14479 cross_compiling=$ac_cv_prog_cxx_cross
14480
14481       cat > conftest.$ac_ext <<EOF
14482 #line 14483 "configure"
14483 #include "confdefs.h"
14484 #include <math.h>
14485                       #ifdef HAVE_IEEEFP_H
14486                       #include <ieeefp.h>
14487                       #endif
14488                      
14489 int main() {
14490  _sqrtf(0);
14491 ; return 0; }
14492 EOF
14493 if { (eval echo configure:14494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14494   rm -rf conftest*
14495   glibcpp_cv_func__sqrtf_use=yes
14496 else
14497   echo "configure: failed program was:" >&5
14498   cat conftest.$ac_ext >&5
14499   rm -rf conftest*
14500   glibcpp_cv_func__sqrtf_use=no
14501 fi
14502 rm -f conftest*
14503       ac_ext=c
14504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14505 ac_cpp='$CPP $CPPFLAGS'
14506 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14507 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14508 cross_compiling=$ac_cv_prog_cc_cross
14509
14510     
14511 fi
14512
14513   fi
14514   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
14515
14516     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
14517       for ac_func in _sqrtf
14518 do
14519 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14520 echo "configure:14521: checking for $ac_func" >&5
14521 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14522   echo $ac_n "(cached) $ac_c" 1>&6
14523 else
14524   cat > conftest.$ac_ext <<EOF
14525 #line 14526 "configure"
14526 #include "confdefs.h"
14527 /* System header to define __stub macros and hopefully few prototypes,
14528     which can conflict with char $ac_func(); below.  */
14529 #include <assert.h>
14530 /* Override any gcc2 internal prototype to avoid an error.  */
14531 /* We use char because int might match the return type of a gcc2
14532     builtin and then its argument prototype would still apply.  */
14533 char $ac_func();
14534
14535 int main() {
14536
14537 /* The GNU C library defines this for functions which it implements
14538     to always fail with ENOSYS.  Some functions are actually named
14539     something starting with __ and the normal name is an alias.  */
14540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14541 choke me
14542 #else
14543 $ac_func();
14544 #endif
14545
14546 ; return 0; }
14547 EOF
14548 if { (eval echo configure:14549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14549   rm -rf conftest*
14550   eval "ac_cv_func_$ac_func=yes"
14551 else
14552   echo "configure: failed program was:" >&5
14553   cat conftest.$ac_ext >&5
14554   rm -rf conftest*
14555   eval "ac_cv_func_$ac_func=no"
14556 fi
14557 rm -f conftest*
14558 fi
14559
14560 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14561   echo "$ac_t""yes" 1>&6
14562     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14563   cat >> confdefs.h <<EOF
14564 #define $ac_tr_func 1
14565 EOF
14566  
14567 else
14568   echo "$ac_t""no" 1>&6
14569 fi
14570 done
14571     
14572     fi
14573   fi
14574
14575   
14576   
14577   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
14578 echo "configure:14579: checking for sincosf declaration" >&5
14579   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
14580     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
14581   echo $ac_n "(cached) $ac_c" 1>&6
14582 else
14583   
14584       
14585       ac_ext=C
14586 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14587 ac_cpp='$CXXCPP $CPPFLAGS'
14588 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14589 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14590 cross_compiling=$ac_cv_prog_cxx_cross
14591
14592       cat > conftest.$ac_ext <<EOF
14593 #line 14594 "configure"
14594 #include "confdefs.h"
14595 #include <math.h>
14596 int main() {
14597  sincosf(0, 0, 0);
14598 ; return 0; }
14599 EOF
14600 if { (eval echo configure:14601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14601   rm -rf conftest*
14602   glibcpp_cv_func_sincosf_use=yes
14603 else
14604   echo "configure: failed program was:" >&5
14605   cat conftest.$ac_ext >&5
14606   rm -rf conftest*
14607   glibcpp_cv_func_sincosf_use=no
14608 fi
14609 rm -f conftest*
14610       ac_ext=c
14611 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14612 ac_cpp='$CPP $CPPFLAGS'
14613 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14614 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14615 cross_compiling=$ac_cv_prog_cc_cross
14616
14617     
14618 fi
14619
14620   fi
14621   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
14622
14623   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
14624     for ac_func in sincosf
14625 do
14626 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14627 echo "configure:14628: checking for $ac_func" >&5
14628 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14629   echo $ac_n "(cached) $ac_c" 1>&6
14630 else
14631   cat > conftest.$ac_ext <<EOF
14632 #line 14633 "configure"
14633 #include "confdefs.h"
14634 /* System header to define __stub macros and hopefully few prototypes,
14635     which can conflict with char $ac_func(); below.  */
14636 #include <assert.h>
14637 /* Override any gcc2 internal prototype to avoid an error.  */
14638 /* We use char because int might match the return type of a gcc2
14639     builtin and then its argument prototype would still apply.  */
14640 char $ac_func();
14641
14642 int main() {
14643
14644 /* The GNU C library defines this for functions which it implements
14645     to always fail with ENOSYS.  Some functions are actually named
14646     something starting with __ and the normal name is an alias.  */
14647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14648 choke me
14649 #else
14650 $ac_func();
14651 #endif
14652
14653 ; return 0; }
14654 EOF
14655 if { (eval echo configure:14656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14656   rm -rf conftest*
14657   eval "ac_cv_func_$ac_func=yes"
14658 else
14659   echo "configure: failed program was:" >&5
14660   cat conftest.$ac_ext >&5
14661   rm -rf conftest*
14662   eval "ac_cv_func_$ac_func=no"
14663 fi
14664 rm -f conftest*
14665 fi
14666
14667 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14668   echo "$ac_t""yes" 1>&6
14669     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14670   cat >> confdefs.h <<EOF
14671 #define $ac_tr_func 1
14672 EOF
14673  
14674 else
14675   echo "$ac_t""no" 1>&6
14676 fi
14677 done
14678     
14679   else
14680     
14681   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
14682 echo "configure:14683: checking for _sincosf declaration" >&5
14683   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
14684     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
14685   echo $ac_n "(cached) $ac_c" 1>&6
14686 else
14687   
14688       
14689       ac_ext=C
14690 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14691 ac_cpp='$CXXCPP $CPPFLAGS'
14692 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14693 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14694 cross_compiling=$ac_cv_prog_cxx_cross
14695
14696       cat > conftest.$ac_ext <<EOF
14697 #line 14698 "configure"
14698 #include "confdefs.h"
14699 #include <math.h>
14700 int main() {
14701  _sincosf(0, 0, 0);
14702 ; return 0; }
14703 EOF
14704 if { (eval echo configure:14705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14705   rm -rf conftest*
14706   glibcpp_cv_func__sincosf_use=yes
14707 else
14708   echo "configure: failed program was:" >&5
14709   cat conftest.$ac_ext >&5
14710   rm -rf conftest*
14711   glibcpp_cv_func__sincosf_use=no
14712 fi
14713 rm -f conftest*
14714       ac_ext=c
14715 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14716 ac_cpp='$CPP $CPPFLAGS'
14717 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14718 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14719 cross_compiling=$ac_cv_prog_cc_cross
14720
14721     
14722 fi
14723
14724   fi
14725   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
14726
14727     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
14728       for ac_func in _sincosf
14729 do
14730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14731 echo "configure:14732: checking for $ac_func" >&5
14732 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14733   echo $ac_n "(cached) $ac_c" 1>&6
14734 else
14735   cat > conftest.$ac_ext <<EOF
14736 #line 14737 "configure"
14737 #include "confdefs.h"
14738 /* System header to define __stub macros and hopefully few prototypes,
14739     which can conflict with char $ac_func(); below.  */
14740 #include <assert.h>
14741 /* Override any gcc2 internal prototype to avoid an error.  */
14742 /* We use char because int might match the return type of a gcc2
14743     builtin and then its argument prototype would still apply.  */
14744 char $ac_func();
14745
14746 int main() {
14747
14748 /* The GNU C library defines this for functions which it implements
14749     to always fail with ENOSYS.  Some functions are actually named
14750     something starting with __ and the normal name is an alias.  */
14751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14752 choke me
14753 #else
14754 $ac_func();
14755 #endif
14756
14757 ; return 0; }
14758 EOF
14759 if { (eval echo configure:14760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14760   rm -rf conftest*
14761   eval "ac_cv_func_$ac_func=yes"
14762 else
14763   echo "configure: failed program was:" >&5
14764   cat conftest.$ac_ext >&5
14765   rm -rf conftest*
14766   eval "ac_cv_func_$ac_func=no"
14767 fi
14768 rm -f conftest*
14769 fi
14770
14771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14772   echo "$ac_t""yes" 1>&6
14773     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14774   cat >> confdefs.h <<EOF
14775 #define $ac_tr_func 1
14776 EOF
14777  
14778 else
14779   echo "$ac_t""no" 1>&6
14780 fi
14781 done
14782     
14783     fi
14784   fi
14785
14786   
14787   
14788   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
14789 echo "configure:14790: checking for finitef declaration" >&5
14790   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
14791     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
14792   echo $ac_n "(cached) $ac_c" 1>&6
14793 else
14794   
14795       
14796       ac_ext=C
14797 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14798 ac_cpp='$CXXCPP $CPPFLAGS'
14799 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14800 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14801 cross_compiling=$ac_cv_prog_cxx_cross
14802
14803       cat > conftest.$ac_ext <<EOF
14804 #line 14805 "configure"
14805 #include "confdefs.h"
14806 #include <math.h>
14807                       #ifdef HAVE_IEEEFP_H
14808                       #include <ieeefp.h>
14809                       #endif
14810                      
14811 int main() {
14812  finitef(0);
14813 ; return 0; }
14814 EOF
14815 if { (eval echo configure:14816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14816   rm -rf conftest*
14817   glibcpp_cv_func_finitef_use=yes
14818 else
14819   echo "configure: failed program was:" >&5
14820   cat conftest.$ac_ext >&5
14821   rm -rf conftest*
14822   glibcpp_cv_func_finitef_use=no
14823 fi
14824 rm -f conftest*
14825       ac_ext=c
14826 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14827 ac_cpp='$CPP $CPPFLAGS'
14828 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14829 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14830 cross_compiling=$ac_cv_prog_cc_cross
14831
14832     
14833 fi
14834
14835   fi
14836   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
14837
14838   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
14839     for ac_func in finitef
14840 do
14841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14842 echo "configure:14843: checking for $ac_func" >&5
14843 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14844   echo $ac_n "(cached) $ac_c" 1>&6
14845 else
14846   cat > conftest.$ac_ext <<EOF
14847 #line 14848 "configure"
14848 #include "confdefs.h"
14849 /* System header to define __stub macros and hopefully few prototypes,
14850     which can conflict with char $ac_func(); below.  */
14851 #include <assert.h>
14852 /* Override any gcc2 internal prototype to avoid an error.  */
14853 /* We use char because int might match the return type of a gcc2
14854     builtin and then its argument prototype would still apply.  */
14855 char $ac_func();
14856
14857 int main() {
14858
14859 /* The GNU C library defines this for functions which it implements
14860     to always fail with ENOSYS.  Some functions are actually named
14861     something starting with __ and the normal name is an alias.  */
14862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14863 choke me
14864 #else
14865 $ac_func();
14866 #endif
14867
14868 ; return 0; }
14869 EOF
14870 if { (eval echo configure:14871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14871   rm -rf conftest*
14872   eval "ac_cv_func_$ac_func=yes"
14873 else
14874   echo "configure: failed program was:" >&5
14875   cat conftest.$ac_ext >&5
14876   rm -rf conftest*
14877   eval "ac_cv_func_$ac_func=no"
14878 fi
14879 rm -f conftest*
14880 fi
14881
14882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14883   echo "$ac_t""yes" 1>&6
14884     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14885   cat >> confdefs.h <<EOF
14886 #define $ac_tr_func 1
14887 EOF
14888  
14889 else
14890   echo "$ac_t""no" 1>&6
14891 fi
14892 done
14893     
14894   else
14895     
14896   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
14897 echo "configure:14898: checking for _finitef declaration" >&5
14898   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
14899     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
14900   echo $ac_n "(cached) $ac_c" 1>&6
14901 else
14902   
14903       
14904       ac_ext=C
14905 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14906 ac_cpp='$CXXCPP $CPPFLAGS'
14907 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14908 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14909 cross_compiling=$ac_cv_prog_cxx_cross
14910
14911       cat > conftest.$ac_ext <<EOF
14912 #line 14913 "configure"
14913 #include "confdefs.h"
14914 #include <math.h>
14915                       #ifdef HAVE_IEEEFP_H
14916                       #include <ieeefp.h>
14917                       #endif
14918                      
14919 int main() {
14920  _finitef(0);
14921 ; return 0; }
14922 EOF
14923 if { (eval echo configure:14924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14924   rm -rf conftest*
14925   glibcpp_cv_func__finitef_use=yes
14926 else
14927   echo "configure: failed program was:" >&5
14928   cat conftest.$ac_ext >&5
14929   rm -rf conftest*
14930   glibcpp_cv_func__finitef_use=no
14931 fi
14932 rm -f conftest*
14933       ac_ext=c
14934 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14935 ac_cpp='$CPP $CPPFLAGS'
14936 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14937 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14938 cross_compiling=$ac_cv_prog_cc_cross
14939
14940     
14941 fi
14942
14943   fi
14944   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
14945
14946     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
14947       for ac_func in _finitef
14948 do
14949 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14950 echo "configure:14951: checking for $ac_func" >&5
14951 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14952   echo $ac_n "(cached) $ac_c" 1>&6
14953 else
14954   cat > conftest.$ac_ext <<EOF
14955 #line 14956 "configure"
14956 #include "confdefs.h"
14957 /* System header to define __stub macros and hopefully few prototypes,
14958     which can conflict with char $ac_func(); below.  */
14959 #include <assert.h>
14960 /* Override any gcc2 internal prototype to avoid an error.  */
14961 /* We use char because int might match the return type of a gcc2
14962     builtin and then its argument prototype would still apply.  */
14963 char $ac_func();
14964
14965 int main() {
14966
14967 /* The GNU C library defines this for functions which it implements
14968     to always fail with ENOSYS.  Some functions are actually named
14969     something starting with __ and the normal name is an alias.  */
14970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14971 choke me
14972 #else
14973 $ac_func();
14974 #endif
14975
14976 ; return 0; }
14977 EOF
14978 if { (eval echo configure:14979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14979   rm -rf conftest*
14980   eval "ac_cv_func_$ac_func=yes"
14981 else
14982   echo "configure: failed program was:" >&5
14983   cat conftest.$ac_ext >&5
14984   rm -rf conftest*
14985   eval "ac_cv_func_$ac_func=no"
14986 fi
14987 rm -f conftest*
14988 fi
14989
14990 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14991   echo "$ac_t""yes" 1>&6
14992     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14993   cat >> confdefs.h <<EOF
14994 #define $ac_tr_func 1
14995 EOF
14996  
14997 else
14998   echo "$ac_t""no" 1>&6
14999 fi
15000 done
15001     
15002     fi
15003   fi
15004
15005
15006     
15007   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
15008 echo "configure:15009: checking for long double trig functions" >&5
15009   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
15010   echo $ac_n "(cached) $ac_c" 1>&6
15011 else
15012   
15013     
15014     ac_ext=C
15015 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15016 ac_cpp='$CXXCPP $CPPFLAGS'
15017 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15018 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15019 cross_compiling=$ac_cv_prog_cxx_cross
15020
15021     cat > conftest.$ac_ext <<EOF
15022 #line 15023 "configure"
15023 #include "confdefs.h"
15024 #include <math.h>
15025 int main() {
15026  `for x in acosl asinl atanl \
15027                                           cosl sinl tanl \
15028                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
15029 ; return 0; }
15030 EOF
15031 if { (eval echo configure:15032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15032   rm -rf conftest*
15033   glibcpp_cv_func_long_double_trig_use=yes
15034 else
15035   echo "configure: failed program was:" >&5
15036   cat conftest.$ac_ext >&5
15037   rm -rf conftest*
15038   glibcpp_cv_func_long_double_trig_use=no
15039 fi
15040 rm -f conftest*
15041     ac_ext=c
15042 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15043 ac_cpp='$CPP $CPPFLAGS'
15044 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15045 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15046 cross_compiling=$ac_cv_prog_cc_cross
15047
15048 fi
15049
15050   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
15051   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
15052     for ac_func in acosl asinl atanl \
15053                                           cosl sinl tanl \
15054                                           coshl sinhl tanhl
15055 do
15056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15057 echo "configure:15058: checking for $ac_func" >&5
15058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15059   echo $ac_n "(cached) $ac_c" 1>&6
15060 else
15061   cat > conftest.$ac_ext <<EOF
15062 #line 15063 "configure"
15063 #include "confdefs.h"
15064 /* System header to define __stub macros and hopefully few prototypes,
15065     which can conflict with char $ac_func(); below.  */
15066 #include <assert.h>
15067 /* Override any gcc2 internal prototype to avoid an error.  */
15068 /* We use char because int might match the return type of a gcc2
15069     builtin and then its argument prototype would still apply.  */
15070 char $ac_func();
15071
15072 int main() {
15073
15074 /* The GNU C library defines this for functions which it implements
15075     to always fail with ENOSYS.  Some functions are actually named
15076     something starting with __ and the normal name is an alias.  */
15077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15078 choke me
15079 #else
15080 $ac_func();
15081 #endif
15082
15083 ; return 0; }
15084 EOF
15085 if { (eval echo configure:15086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15086   rm -rf conftest*
15087   eval "ac_cv_func_$ac_func=yes"
15088 else
15089   echo "configure: failed program was:" >&5
15090   cat conftest.$ac_ext >&5
15091   rm -rf conftest*
15092   eval "ac_cv_func_$ac_func=no"
15093 fi
15094 rm -f conftest*
15095 fi
15096
15097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15098   echo "$ac_t""yes" 1>&6
15099     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15100   cat >> confdefs.h <<EOF
15101 #define $ac_tr_func 1
15102 EOF
15103  
15104 else
15105   echo "$ac_t""no" 1>&6
15106 fi
15107 done
15108
15109   fi
15110
15111   
15112   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
15113 echo "configure:15114: checking for long double round functions" >&5
15114   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
15115   echo $ac_n "(cached) $ac_c" 1>&6
15116 else
15117   
15118     
15119     ac_ext=C
15120 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15121 ac_cpp='$CXXCPP $CPPFLAGS'
15122 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15123 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15124 cross_compiling=$ac_cv_prog_cxx_cross
15125
15126     cat > conftest.$ac_ext <<EOF
15127 #line 15128 "configure"
15128 #include "confdefs.h"
15129 #include <math.h>
15130 int main() {
15131  `for x in ceill floorl; do echo "$x (0);"; done` 
15132 ; return 0; }
15133 EOF
15134 if { (eval echo configure:15135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15135   rm -rf conftest*
15136   glibcpp_cv_func_long_double_round_use=yes
15137 else
15138   echo "configure: failed program was:" >&5
15139   cat conftest.$ac_ext >&5
15140   rm -rf conftest*
15141   glibcpp_cv_func_long_double_round_use=no
15142 fi
15143 rm -f conftest*
15144     ac_ext=c
15145 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15146 ac_cpp='$CPP $CPPFLAGS'
15147 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15148 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15149 cross_compiling=$ac_cv_prog_cc_cross
15150
15151 fi
15152
15153   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
15154   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
15155     for ac_func in ceill floorl
15156 do
15157 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15158 echo "configure:15159: checking for $ac_func" >&5
15159 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15160   echo $ac_n "(cached) $ac_c" 1>&6
15161 else
15162   cat > conftest.$ac_ext <<EOF
15163 #line 15164 "configure"
15164 #include "confdefs.h"
15165 /* System header to define __stub macros and hopefully few prototypes,
15166     which can conflict with char $ac_func(); below.  */
15167 #include <assert.h>
15168 /* Override any gcc2 internal prototype to avoid an error.  */
15169 /* We use char because int might match the return type of a gcc2
15170     builtin and then its argument prototype would still apply.  */
15171 char $ac_func();
15172
15173 int main() {
15174
15175 /* The GNU C library defines this for functions which it implements
15176     to always fail with ENOSYS.  Some functions are actually named
15177     something starting with __ and the normal name is an alias.  */
15178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15179 choke me
15180 #else
15181 $ac_func();
15182 #endif
15183
15184 ; return 0; }
15185 EOF
15186 if { (eval echo configure:15187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15187   rm -rf conftest*
15188   eval "ac_cv_func_$ac_func=yes"
15189 else
15190   echo "configure: failed program was:" >&5
15191   cat conftest.$ac_ext >&5
15192   rm -rf conftest*
15193   eval "ac_cv_func_$ac_func=no"
15194 fi
15195 rm -f conftest*
15196 fi
15197
15198 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15199   echo "$ac_t""yes" 1>&6
15200     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15201   cat >> confdefs.h <<EOF
15202 #define $ac_tr_func 1
15203 EOF
15204  
15205 else
15206   echo "$ac_t""no" 1>&6
15207 fi
15208 done
15209
15210   fi
15211
15212   
15213   
15214   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
15215 echo "configure:15216: checking for isnanl declaration" >&5
15216   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
15217     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
15218   echo $ac_n "(cached) $ac_c" 1>&6
15219 else
15220   
15221       
15222       ac_ext=C
15223 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15224 ac_cpp='$CXXCPP $CPPFLAGS'
15225 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15226 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15227 cross_compiling=$ac_cv_prog_cxx_cross
15228
15229       cat > conftest.$ac_ext <<EOF
15230 #line 15231 "configure"
15231 #include "confdefs.h"
15232 #include <math.h>
15233                       #ifdef HAVE_IEEEFP_H
15234                       #include <ieeefp.h>
15235                       #endif
15236                      
15237 int main() {
15238  isnanl(0);
15239 ; return 0; }
15240 EOF
15241 if { (eval echo configure:15242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15242   rm -rf conftest*
15243   glibcpp_cv_func_isnanl_use=yes
15244 else
15245   echo "configure: failed program was:" >&5
15246   cat conftest.$ac_ext >&5
15247   rm -rf conftest*
15248   glibcpp_cv_func_isnanl_use=no
15249 fi
15250 rm -f conftest*
15251       ac_ext=c
15252 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15253 ac_cpp='$CPP $CPPFLAGS'
15254 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15255 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15256 cross_compiling=$ac_cv_prog_cc_cross
15257
15258     
15259 fi
15260
15261   fi
15262   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
15263
15264   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
15265     for ac_func in isnanl
15266 do
15267 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15268 echo "configure:15269: checking for $ac_func" >&5
15269 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15270   echo $ac_n "(cached) $ac_c" 1>&6
15271 else
15272   cat > conftest.$ac_ext <<EOF
15273 #line 15274 "configure"
15274 #include "confdefs.h"
15275 /* System header to define __stub macros and hopefully few prototypes,
15276     which can conflict with char $ac_func(); below.  */
15277 #include <assert.h>
15278 /* Override any gcc2 internal prototype to avoid an error.  */
15279 /* We use char because int might match the return type of a gcc2
15280     builtin and then its argument prototype would still apply.  */
15281 char $ac_func();
15282
15283 int main() {
15284
15285 /* The GNU C library defines this for functions which it implements
15286     to always fail with ENOSYS.  Some functions are actually named
15287     something starting with __ and the normal name is an alias.  */
15288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15289 choke me
15290 #else
15291 $ac_func();
15292 #endif
15293
15294 ; return 0; }
15295 EOF
15296 if { (eval echo configure:15297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15297   rm -rf conftest*
15298   eval "ac_cv_func_$ac_func=yes"
15299 else
15300   echo "configure: failed program was:" >&5
15301   cat conftest.$ac_ext >&5
15302   rm -rf conftest*
15303   eval "ac_cv_func_$ac_func=no"
15304 fi
15305 rm -f conftest*
15306 fi
15307
15308 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15309   echo "$ac_t""yes" 1>&6
15310     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15311   cat >> confdefs.h <<EOF
15312 #define $ac_tr_func 1
15313 EOF
15314  
15315 else
15316   echo "$ac_t""no" 1>&6
15317 fi
15318 done
15319     
15320   else
15321     
15322   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
15323 echo "configure:15324: checking for _isnanl declaration" >&5
15324   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
15325     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
15326   echo $ac_n "(cached) $ac_c" 1>&6
15327 else
15328   
15329       
15330       ac_ext=C
15331 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15332 ac_cpp='$CXXCPP $CPPFLAGS'
15333 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15334 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15335 cross_compiling=$ac_cv_prog_cxx_cross
15336
15337       cat > conftest.$ac_ext <<EOF
15338 #line 15339 "configure"
15339 #include "confdefs.h"
15340 #include <math.h>
15341                       #ifdef HAVE_IEEEFP_H
15342                       #include <ieeefp.h>
15343                       #endif
15344                      
15345 int main() {
15346  _isnanl(0);
15347 ; return 0; }
15348 EOF
15349 if { (eval echo configure:15350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15350   rm -rf conftest*
15351   glibcpp_cv_func__isnanl_use=yes
15352 else
15353   echo "configure: failed program was:" >&5
15354   cat conftest.$ac_ext >&5
15355   rm -rf conftest*
15356   glibcpp_cv_func__isnanl_use=no
15357 fi
15358 rm -f conftest*
15359       ac_ext=c
15360 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15361 ac_cpp='$CPP $CPPFLAGS'
15362 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15363 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15364 cross_compiling=$ac_cv_prog_cc_cross
15365
15366     
15367 fi
15368
15369   fi
15370   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
15371
15372     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
15373       for ac_func in _isnanl
15374 do
15375 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15376 echo "configure:15377: checking for $ac_func" >&5
15377 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15378   echo $ac_n "(cached) $ac_c" 1>&6
15379 else
15380   cat > conftest.$ac_ext <<EOF
15381 #line 15382 "configure"
15382 #include "confdefs.h"
15383 /* System header to define __stub macros and hopefully few prototypes,
15384     which can conflict with char $ac_func(); below.  */
15385 #include <assert.h>
15386 /* Override any gcc2 internal prototype to avoid an error.  */
15387 /* We use char because int might match the return type of a gcc2
15388     builtin and then its argument prototype would still apply.  */
15389 char $ac_func();
15390
15391 int main() {
15392
15393 /* The GNU C library defines this for functions which it implements
15394     to always fail with ENOSYS.  Some functions are actually named
15395     something starting with __ and the normal name is an alias.  */
15396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15397 choke me
15398 #else
15399 $ac_func();
15400 #endif
15401
15402 ; return 0; }
15403 EOF
15404 if { (eval echo configure:15405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15405   rm -rf conftest*
15406   eval "ac_cv_func_$ac_func=yes"
15407 else
15408   echo "configure: failed program was:" >&5
15409   cat conftest.$ac_ext >&5
15410   rm -rf conftest*
15411   eval "ac_cv_func_$ac_func=no"
15412 fi
15413 rm -f conftest*
15414 fi
15415
15416 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15417   echo "$ac_t""yes" 1>&6
15418     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15419   cat >> confdefs.h <<EOF
15420 #define $ac_tr_func 1
15421 EOF
15422  
15423 else
15424   echo "$ac_t""no" 1>&6
15425 fi
15426 done
15427     
15428     fi
15429   fi
15430
15431   
15432   
15433   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
15434 echo "configure:15435: checking for isinfl declaration" >&5
15435   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
15436     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
15437   echo $ac_n "(cached) $ac_c" 1>&6
15438 else
15439   
15440       
15441       ac_ext=C
15442 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15443 ac_cpp='$CXXCPP $CPPFLAGS'
15444 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15445 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15446 cross_compiling=$ac_cv_prog_cxx_cross
15447
15448       cat > conftest.$ac_ext <<EOF
15449 #line 15450 "configure"
15450 #include "confdefs.h"
15451 #include <math.h>
15452                       #ifdef HAVE_IEEEFP_H
15453                       #include <ieeefp.h>
15454                       #endif
15455                      
15456 int main() {
15457  isinfl(0);
15458 ; return 0; }
15459 EOF
15460 if { (eval echo configure:15461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15461   rm -rf conftest*
15462   glibcpp_cv_func_isinfl_use=yes
15463 else
15464   echo "configure: failed program was:" >&5
15465   cat conftest.$ac_ext >&5
15466   rm -rf conftest*
15467   glibcpp_cv_func_isinfl_use=no
15468 fi
15469 rm -f conftest*
15470       ac_ext=c
15471 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15472 ac_cpp='$CPP $CPPFLAGS'
15473 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15474 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15475 cross_compiling=$ac_cv_prog_cc_cross
15476
15477     
15478 fi
15479
15480   fi
15481   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
15482
15483   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
15484     for ac_func in isinfl
15485 do
15486 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15487 echo "configure:15488: checking for $ac_func" >&5
15488 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15489   echo $ac_n "(cached) $ac_c" 1>&6
15490 else
15491   cat > conftest.$ac_ext <<EOF
15492 #line 15493 "configure"
15493 #include "confdefs.h"
15494 /* System header to define __stub macros and hopefully few prototypes,
15495     which can conflict with char $ac_func(); below.  */
15496 #include <assert.h>
15497 /* Override any gcc2 internal prototype to avoid an error.  */
15498 /* We use char because int might match the return type of a gcc2
15499     builtin and then its argument prototype would still apply.  */
15500 char $ac_func();
15501
15502 int main() {
15503
15504 /* The GNU C library defines this for functions which it implements
15505     to always fail with ENOSYS.  Some functions are actually named
15506     something starting with __ and the normal name is an alias.  */
15507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15508 choke me
15509 #else
15510 $ac_func();
15511 #endif
15512
15513 ; return 0; }
15514 EOF
15515 if { (eval echo configure:15516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15516   rm -rf conftest*
15517   eval "ac_cv_func_$ac_func=yes"
15518 else
15519   echo "configure: failed program was:" >&5
15520   cat conftest.$ac_ext >&5
15521   rm -rf conftest*
15522   eval "ac_cv_func_$ac_func=no"
15523 fi
15524 rm -f conftest*
15525 fi
15526
15527 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15528   echo "$ac_t""yes" 1>&6
15529     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15530   cat >> confdefs.h <<EOF
15531 #define $ac_tr_func 1
15532 EOF
15533  
15534 else
15535   echo "$ac_t""no" 1>&6
15536 fi
15537 done
15538     
15539   else
15540     
15541   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
15542 echo "configure:15543: checking for _isinfl declaration" >&5
15543   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
15544     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
15545   echo $ac_n "(cached) $ac_c" 1>&6
15546 else
15547   
15548       
15549       ac_ext=C
15550 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15551 ac_cpp='$CXXCPP $CPPFLAGS'
15552 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15553 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15554 cross_compiling=$ac_cv_prog_cxx_cross
15555
15556       cat > conftest.$ac_ext <<EOF
15557 #line 15558 "configure"
15558 #include "confdefs.h"
15559 #include <math.h>
15560                       #ifdef HAVE_IEEEFP_H
15561                       #include <ieeefp.h>
15562                       #endif
15563                      
15564 int main() {
15565  _isinfl(0);
15566 ; return 0; }
15567 EOF
15568 if { (eval echo configure:15569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15569   rm -rf conftest*
15570   glibcpp_cv_func__isinfl_use=yes
15571 else
15572   echo "configure: failed program was:" >&5
15573   cat conftest.$ac_ext >&5
15574   rm -rf conftest*
15575   glibcpp_cv_func__isinfl_use=no
15576 fi
15577 rm -f conftest*
15578       ac_ext=c
15579 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15580 ac_cpp='$CPP $CPPFLAGS'
15581 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15582 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15583 cross_compiling=$ac_cv_prog_cc_cross
15584
15585     
15586 fi
15587
15588   fi
15589   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
15590
15591     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
15592       for ac_func in _isinfl
15593 do
15594 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15595 echo "configure:15596: checking for $ac_func" >&5
15596 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15597   echo $ac_n "(cached) $ac_c" 1>&6
15598 else
15599   cat > conftest.$ac_ext <<EOF
15600 #line 15601 "configure"
15601 #include "confdefs.h"
15602 /* System header to define __stub macros and hopefully few prototypes,
15603     which can conflict with char $ac_func(); below.  */
15604 #include <assert.h>
15605 /* Override any gcc2 internal prototype to avoid an error.  */
15606 /* We use char because int might match the return type of a gcc2
15607     builtin and then its argument prototype would still apply.  */
15608 char $ac_func();
15609
15610 int main() {
15611
15612 /* The GNU C library defines this for functions which it implements
15613     to always fail with ENOSYS.  Some functions are actually named
15614     something starting with __ and the normal name is an alias.  */
15615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15616 choke me
15617 #else
15618 $ac_func();
15619 #endif
15620
15621 ; return 0; }
15622 EOF
15623 if { (eval echo configure:15624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15624   rm -rf conftest*
15625   eval "ac_cv_func_$ac_func=yes"
15626 else
15627   echo "configure: failed program was:" >&5
15628   cat conftest.$ac_ext >&5
15629   rm -rf conftest*
15630   eval "ac_cv_func_$ac_func=no"
15631 fi
15632 rm -f conftest*
15633 fi
15634
15635 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15636   echo "$ac_t""yes" 1>&6
15637     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15638   cat >> confdefs.h <<EOF
15639 #define $ac_tr_func 1
15640 EOF
15641  
15642 else
15643   echo "$ac_t""no" 1>&6
15644 fi
15645 done
15646     
15647     fi
15648   fi
15649
15650   
15651   
15652   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
15653 echo "configure:15654: checking for copysignl declaration" >&5
15654   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
15655     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
15656   echo $ac_n "(cached) $ac_c" 1>&6
15657 else
15658   
15659       
15660       ac_ext=C
15661 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15662 ac_cpp='$CXXCPP $CPPFLAGS'
15663 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15664 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15665 cross_compiling=$ac_cv_prog_cxx_cross
15666
15667       cat > conftest.$ac_ext <<EOF
15668 #line 15669 "configure"
15669 #include "confdefs.h"
15670 #include <math.h>
15671 int main() {
15672  copysignl(0, 0);
15673 ; return 0; }
15674 EOF
15675 if { (eval echo configure:15676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15676   rm -rf conftest*
15677   glibcpp_cv_func_copysignl_use=yes
15678 else
15679   echo "configure: failed program was:" >&5
15680   cat conftest.$ac_ext >&5
15681   rm -rf conftest*
15682   glibcpp_cv_func_copysignl_use=no
15683 fi
15684 rm -f conftest*
15685       ac_ext=c
15686 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15687 ac_cpp='$CPP $CPPFLAGS'
15688 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15689 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15690 cross_compiling=$ac_cv_prog_cc_cross
15691
15692     
15693 fi
15694
15695   fi
15696   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
15697
15698   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
15699     for ac_func in copysignl
15700 do
15701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15702 echo "configure:15703: checking for $ac_func" >&5
15703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15704   echo $ac_n "(cached) $ac_c" 1>&6
15705 else
15706   cat > conftest.$ac_ext <<EOF
15707 #line 15708 "configure"
15708 #include "confdefs.h"
15709 /* System header to define __stub macros and hopefully few prototypes,
15710     which can conflict with char $ac_func(); below.  */
15711 #include <assert.h>
15712 /* Override any gcc2 internal prototype to avoid an error.  */
15713 /* We use char because int might match the return type of a gcc2
15714     builtin and then its argument prototype would still apply.  */
15715 char $ac_func();
15716
15717 int main() {
15718
15719 /* The GNU C library defines this for functions which it implements
15720     to always fail with ENOSYS.  Some functions are actually named
15721     something starting with __ and the normal name is an alias.  */
15722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15723 choke me
15724 #else
15725 $ac_func();
15726 #endif
15727
15728 ; return 0; }
15729 EOF
15730 if { (eval echo configure:15731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15731   rm -rf conftest*
15732   eval "ac_cv_func_$ac_func=yes"
15733 else
15734   echo "configure: failed program was:" >&5
15735   cat conftest.$ac_ext >&5
15736   rm -rf conftest*
15737   eval "ac_cv_func_$ac_func=no"
15738 fi
15739 rm -f conftest*
15740 fi
15741
15742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15743   echo "$ac_t""yes" 1>&6
15744     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15745   cat >> confdefs.h <<EOF
15746 #define $ac_tr_func 1
15747 EOF
15748  
15749 else
15750   echo "$ac_t""no" 1>&6
15751 fi
15752 done
15753     
15754   else
15755     
15756   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
15757 echo "configure:15758: checking for _copysignl declaration" >&5
15758   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
15759     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
15760   echo $ac_n "(cached) $ac_c" 1>&6
15761 else
15762   
15763       
15764       ac_ext=C
15765 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15766 ac_cpp='$CXXCPP $CPPFLAGS'
15767 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15768 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15769 cross_compiling=$ac_cv_prog_cxx_cross
15770
15771       cat > conftest.$ac_ext <<EOF
15772 #line 15773 "configure"
15773 #include "confdefs.h"
15774 #include <math.h>
15775 int main() {
15776  _copysignl(0, 0);
15777 ; return 0; }
15778 EOF
15779 if { (eval echo configure:15780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15780   rm -rf conftest*
15781   glibcpp_cv_func__copysignl_use=yes
15782 else
15783   echo "configure: failed program was:" >&5
15784   cat conftest.$ac_ext >&5
15785   rm -rf conftest*
15786   glibcpp_cv_func__copysignl_use=no
15787 fi
15788 rm -f conftest*
15789       ac_ext=c
15790 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15791 ac_cpp='$CPP $CPPFLAGS'
15792 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15793 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15794 cross_compiling=$ac_cv_prog_cc_cross
15795
15796     
15797 fi
15798
15799   fi
15800   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
15801
15802     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
15803       for ac_func in _copysignl
15804 do
15805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15806 echo "configure:15807: checking for $ac_func" >&5
15807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15808   echo $ac_n "(cached) $ac_c" 1>&6
15809 else
15810   cat > conftest.$ac_ext <<EOF
15811 #line 15812 "configure"
15812 #include "confdefs.h"
15813 /* System header to define __stub macros and hopefully few prototypes,
15814     which can conflict with char $ac_func(); below.  */
15815 #include <assert.h>
15816 /* Override any gcc2 internal prototype to avoid an error.  */
15817 /* We use char because int might match the return type of a gcc2
15818     builtin and then its argument prototype would still apply.  */
15819 char $ac_func();
15820
15821 int main() {
15822
15823 /* The GNU C library defines this for functions which it implements
15824     to always fail with ENOSYS.  Some functions are actually named
15825     something starting with __ and the normal name is an alias.  */
15826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15827 choke me
15828 #else
15829 $ac_func();
15830 #endif
15831
15832 ; return 0; }
15833 EOF
15834 if { (eval echo configure:15835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15835   rm -rf conftest*
15836   eval "ac_cv_func_$ac_func=yes"
15837 else
15838   echo "configure: failed program was:" >&5
15839   cat conftest.$ac_ext >&5
15840   rm -rf conftest*
15841   eval "ac_cv_func_$ac_func=no"
15842 fi
15843 rm -f conftest*
15844 fi
15845
15846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15847   echo "$ac_t""yes" 1>&6
15848     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15849   cat >> confdefs.h <<EOF
15850 #define $ac_tr_func 1
15851 EOF
15852  
15853 else
15854   echo "$ac_t""no" 1>&6
15855 fi
15856 done
15857     
15858     fi
15859   fi
15860
15861   
15862   
15863   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
15864 echo "configure:15865: checking for atan2l declaration" >&5
15865   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
15866     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
15867   echo $ac_n "(cached) $ac_c" 1>&6
15868 else
15869   
15870       
15871       ac_ext=C
15872 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15873 ac_cpp='$CXXCPP $CPPFLAGS'
15874 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15875 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15876 cross_compiling=$ac_cv_prog_cxx_cross
15877
15878       cat > conftest.$ac_ext <<EOF
15879 #line 15880 "configure"
15880 #include "confdefs.h"
15881 #include <math.h>
15882 int main() {
15883  atan2l(0, 0);
15884 ; return 0; }
15885 EOF
15886 if { (eval echo configure:15887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15887   rm -rf conftest*
15888   glibcpp_cv_func_atan2l_use=yes
15889 else
15890   echo "configure: failed program was:" >&5
15891   cat conftest.$ac_ext >&5
15892   rm -rf conftest*
15893   glibcpp_cv_func_atan2l_use=no
15894 fi
15895 rm -f conftest*
15896       ac_ext=c
15897 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15898 ac_cpp='$CPP $CPPFLAGS'
15899 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15900 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15901 cross_compiling=$ac_cv_prog_cc_cross
15902
15903     
15904 fi
15905
15906   fi
15907   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
15908
15909   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
15910     for ac_func in atan2l
15911 do
15912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15913 echo "configure:15914: checking for $ac_func" >&5
15914 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15915   echo $ac_n "(cached) $ac_c" 1>&6
15916 else
15917   cat > conftest.$ac_ext <<EOF
15918 #line 15919 "configure"
15919 #include "confdefs.h"
15920 /* System header to define __stub macros and hopefully few prototypes,
15921     which can conflict with char $ac_func(); below.  */
15922 #include <assert.h>
15923 /* Override any gcc2 internal prototype to avoid an error.  */
15924 /* We use char because int might match the return type of a gcc2
15925     builtin and then its argument prototype would still apply.  */
15926 char $ac_func();
15927
15928 int main() {
15929
15930 /* The GNU C library defines this for functions which it implements
15931     to always fail with ENOSYS.  Some functions are actually named
15932     something starting with __ and the normal name is an alias.  */
15933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15934 choke me
15935 #else
15936 $ac_func();
15937 #endif
15938
15939 ; return 0; }
15940 EOF
15941 if { (eval echo configure:15942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15942   rm -rf conftest*
15943   eval "ac_cv_func_$ac_func=yes"
15944 else
15945   echo "configure: failed program was:" >&5
15946   cat conftest.$ac_ext >&5
15947   rm -rf conftest*
15948   eval "ac_cv_func_$ac_func=no"
15949 fi
15950 rm -f conftest*
15951 fi
15952
15953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15954   echo "$ac_t""yes" 1>&6
15955     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15956   cat >> confdefs.h <<EOF
15957 #define $ac_tr_func 1
15958 EOF
15959  
15960 else
15961   echo "$ac_t""no" 1>&6
15962 fi
15963 done
15964     
15965   else
15966     
15967   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
15968 echo "configure:15969: checking for _atan2l declaration" >&5
15969   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
15970     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
15971   echo $ac_n "(cached) $ac_c" 1>&6
15972 else
15973   
15974       
15975       ac_ext=C
15976 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15977 ac_cpp='$CXXCPP $CPPFLAGS'
15978 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15979 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15980 cross_compiling=$ac_cv_prog_cxx_cross
15981
15982       cat > conftest.$ac_ext <<EOF
15983 #line 15984 "configure"
15984 #include "confdefs.h"
15985 #include <math.h>
15986 int main() {
15987  _atan2l(0, 0);
15988 ; return 0; }
15989 EOF
15990 if { (eval echo configure:15991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15991   rm -rf conftest*
15992   glibcpp_cv_func__atan2l_use=yes
15993 else
15994   echo "configure: failed program was:" >&5
15995   cat conftest.$ac_ext >&5
15996   rm -rf conftest*
15997   glibcpp_cv_func__atan2l_use=no
15998 fi
15999 rm -f conftest*
16000       ac_ext=c
16001 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16002 ac_cpp='$CPP $CPPFLAGS'
16003 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16004 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16005 cross_compiling=$ac_cv_prog_cc_cross
16006
16007     
16008 fi
16009
16010   fi
16011   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
16012
16013     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
16014       for ac_func in _atan2l
16015 do
16016 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16017 echo "configure:16018: checking for $ac_func" >&5
16018 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16019   echo $ac_n "(cached) $ac_c" 1>&6
16020 else
16021   cat > conftest.$ac_ext <<EOF
16022 #line 16023 "configure"
16023 #include "confdefs.h"
16024 /* System header to define __stub macros and hopefully few prototypes,
16025     which can conflict with char $ac_func(); below.  */
16026 #include <assert.h>
16027 /* Override any gcc2 internal prototype to avoid an error.  */
16028 /* We use char because int might match the return type of a gcc2
16029     builtin and then its argument prototype would still apply.  */
16030 char $ac_func();
16031
16032 int main() {
16033
16034 /* The GNU C library defines this for functions which it implements
16035     to always fail with ENOSYS.  Some functions are actually named
16036     something starting with __ and the normal name is an alias.  */
16037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16038 choke me
16039 #else
16040 $ac_func();
16041 #endif
16042
16043 ; return 0; }
16044 EOF
16045 if { (eval echo configure:16046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16046   rm -rf conftest*
16047   eval "ac_cv_func_$ac_func=yes"
16048 else
16049   echo "configure: failed program was:" >&5
16050   cat conftest.$ac_ext >&5
16051   rm -rf conftest*
16052   eval "ac_cv_func_$ac_func=no"
16053 fi
16054 rm -f conftest*
16055 fi
16056
16057 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16058   echo "$ac_t""yes" 1>&6
16059     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16060   cat >> confdefs.h <<EOF
16061 #define $ac_tr_func 1
16062 EOF
16063  
16064 else
16065   echo "$ac_t""no" 1>&6
16066 fi
16067 done
16068     
16069     fi
16070   fi
16071
16072   
16073   
16074   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
16075 echo "configure:16076: checking for expl declaration" >&5
16076   if test x${glibcpp_cv_func_expl_use+set} != xset; then
16077     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
16078   echo $ac_n "(cached) $ac_c" 1>&6
16079 else
16080   
16081       
16082       ac_ext=C
16083 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16084 ac_cpp='$CXXCPP $CPPFLAGS'
16085 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16086 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16087 cross_compiling=$ac_cv_prog_cxx_cross
16088
16089       cat > conftest.$ac_ext <<EOF
16090 #line 16091 "configure"
16091 #include "confdefs.h"
16092 #include <math.h>
16093                       #ifdef HAVE_IEEEFP_H
16094                       #include <ieeefp.h>
16095                       #endif
16096                      
16097 int main() {
16098  expl(0);
16099 ; return 0; }
16100 EOF
16101 if { (eval echo configure:16102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16102   rm -rf conftest*
16103   glibcpp_cv_func_expl_use=yes
16104 else
16105   echo "configure: failed program was:" >&5
16106   cat conftest.$ac_ext >&5
16107   rm -rf conftest*
16108   glibcpp_cv_func_expl_use=no
16109 fi
16110 rm -f conftest*
16111       ac_ext=c
16112 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16113 ac_cpp='$CPP $CPPFLAGS'
16114 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16115 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16116 cross_compiling=$ac_cv_prog_cc_cross
16117
16118     
16119 fi
16120
16121   fi
16122   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
16123
16124   if test x$glibcpp_cv_func_expl_use = x"yes"; then
16125     for ac_func in expl
16126 do
16127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16128 echo "configure:16129: checking for $ac_func" >&5
16129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16130   echo $ac_n "(cached) $ac_c" 1>&6
16131 else
16132   cat > conftest.$ac_ext <<EOF
16133 #line 16134 "configure"
16134 #include "confdefs.h"
16135 /* System header to define __stub macros and hopefully few prototypes,
16136     which can conflict with char $ac_func(); below.  */
16137 #include <assert.h>
16138 /* Override any gcc2 internal prototype to avoid an error.  */
16139 /* We use char because int might match the return type of a gcc2
16140     builtin and then its argument prototype would still apply.  */
16141 char $ac_func();
16142
16143 int main() {
16144
16145 /* The GNU C library defines this for functions which it implements
16146     to always fail with ENOSYS.  Some functions are actually named
16147     something starting with __ and the normal name is an alias.  */
16148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16149 choke me
16150 #else
16151 $ac_func();
16152 #endif
16153
16154 ; return 0; }
16155 EOF
16156 if { (eval echo configure:16157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16157   rm -rf conftest*
16158   eval "ac_cv_func_$ac_func=yes"
16159 else
16160   echo "configure: failed program was:" >&5
16161   cat conftest.$ac_ext >&5
16162   rm -rf conftest*
16163   eval "ac_cv_func_$ac_func=no"
16164 fi
16165 rm -f conftest*
16166 fi
16167
16168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16169   echo "$ac_t""yes" 1>&6
16170     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16171   cat >> confdefs.h <<EOF
16172 #define $ac_tr_func 1
16173 EOF
16174  
16175 else
16176   echo "$ac_t""no" 1>&6
16177 fi
16178 done
16179     
16180   else
16181     
16182   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
16183 echo "configure:16184: checking for _expl declaration" >&5
16184   if test x${glibcpp_cv_func__expl_use+set} != xset; then
16185     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
16186   echo $ac_n "(cached) $ac_c" 1>&6
16187 else
16188   
16189       
16190       ac_ext=C
16191 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16192 ac_cpp='$CXXCPP $CPPFLAGS'
16193 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16194 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16195 cross_compiling=$ac_cv_prog_cxx_cross
16196
16197       cat > conftest.$ac_ext <<EOF
16198 #line 16199 "configure"
16199 #include "confdefs.h"
16200 #include <math.h>
16201                       #ifdef HAVE_IEEEFP_H
16202                       #include <ieeefp.h>
16203                       #endif
16204                      
16205 int main() {
16206  _expl(0);
16207 ; return 0; }
16208 EOF
16209 if { (eval echo configure:16210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16210   rm -rf conftest*
16211   glibcpp_cv_func__expl_use=yes
16212 else
16213   echo "configure: failed program was:" >&5
16214   cat conftest.$ac_ext >&5
16215   rm -rf conftest*
16216   glibcpp_cv_func__expl_use=no
16217 fi
16218 rm -f conftest*
16219       ac_ext=c
16220 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16221 ac_cpp='$CPP $CPPFLAGS'
16222 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16223 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16224 cross_compiling=$ac_cv_prog_cc_cross
16225
16226     
16227 fi
16228
16229   fi
16230   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
16231
16232     if test x$glibcpp_cv_func__expl_use = x"yes"; then
16233       for ac_func in _expl
16234 do
16235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16236 echo "configure:16237: checking for $ac_func" >&5
16237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16238   echo $ac_n "(cached) $ac_c" 1>&6
16239 else
16240   cat > conftest.$ac_ext <<EOF
16241 #line 16242 "configure"
16242 #include "confdefs.h"
16243 /* System header to define __stub macros and hopefully few prototypes,
16244     which can conflict with char $ac_func(); below.  */
16245 #include <assert.h>
16246 /* Override any gcc2 internal prototype to avoid an error.  */
16247 /* We use char because int might match the return type of a gcc2
16248     builtin and then its argument prototype would still apply.  */
16249 char $ac_func();
16250
16251 int main() {
16252
16253 /* The GNU C library defines this for functions which it implements
16254     to always fail with ENOSYS.  Some functions are actually named
16255     something starting with __ and the normal name is an alias.  */
16256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16257 choke me
16258 #else
16259 $ac_func();
16260 #endif
16261
16262 ; return 0; }
16263 EOF
16264 if { (eval echo configure:16265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16265   rm -rf conftest*
16266   eval "ac_cv_func_$ac_func=yes"
16267 else
16268   echo "configure: failed program was:" >&5
16269   cat conftest.$ac_ext >&5
16270   rm -rf conftest*
16271   eval "ac_cv_func_$ac_func=no"
16272 fi
16273 rm -f conftest*
16274 fi
16275
16276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16277   echo "$ac_t""yes" 1>&6
16278     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16279   cat >> confdefs.h <<EOF
16280 #define $ac_tr_func 1
16281 EOF
16282  
16283 else
16284   echo "$ac_t""no" 1>&6
16285 fi
16286 done
16287     
16288     fi
16289   fi
16290
16291   
16292   
16293   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
16294 echo "configure:16295: checking for fabsl declaration" >&5
16295   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
16296     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
16297   echo $ac_n "(cached) $ac_c" 1>&6
16298 else
16299   
16300       
16301       ac_ext=C
16302 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16303 ac_cpp='$CXXCPP $CPPFLAGS'
16304 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16305 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16306 cross_compiling=$ac_cv_prog_cxx_cross
16307
16308       cat > conftest.$ac_ext <<EOF
16309 #line 16310 "configure"
16310 #include "confdefs.h"
16311 #include <math.h>
16312                       #ifdef HAVE_IEEEFP_H
16313                       #include <ieeefp.h>
16314                       #endif
16315                      
16316 int main() {
16317  fabsl(0);
16318 ; return 0; }
16319 EOF
16320 if { (eval echo configure:16321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16321   rm -rf conftest*
16322   glibcpp_cv_func_fabsl_use=yes
16323 else
16324   echo "configure: failed program was:" >&5
16325   cat conftest.$ac_ext >&5
16326   rm -rf conftest*
16327   glibcpp_cv_func_fabsl_use=no
16328 fi
16329 rm -f conftest*
16330       ac_ext=c
16331 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16332 ac_cpp='$CPP $CPPFLAGS'
16333 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16334 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16335 cross_compiling=$ac_cv_prog_cc_cross
16336
16337     
16338 fi
16339
16340   fi
16341   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
16342
16343   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
16344     for ac_func in fabsl
16345 do
16346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16347 echo "configure:16348: checking for $ac_func" >&5
16348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16349   echo $ac_n "(cached) $ac_c" 1>&6
16350 else
16351   cat > conftest.$ac_ext <<EOF
16352 #line 16353 "configure"
16353 #include "confdefs.h"
16354 /* System header to define __stub macros and hopefully few prototypes,
16355     which can conflict with char $ac_func(); below.  */
16356 #include <assert.h>
16357 /* Override any gcc2 internal prototype to avoid an error.  */
16358 /* We use char because int might match the return type of a gcc2
16359     builtin and then its argument prototype would still apply.  */
16360 char $ac_func();
16361
16362 int main() {
16363
16364 /* The GNU C library defines this for functions which it implements
16365     to always fail with ENOSYS.  Some functions are actually named
16366     something starting with __ and the normal name is an alias.  */
16367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16368 choke me
16369 #else
16370 $ac_func();
16371 #endif
16372
16373 ; return 0; }
16374 EOF
16375 if { (eval echo configure:16376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16376   rm -rf conftest*
16377   eval "ac_cv_func_$ac_func=yes"
16378 else
16379   echo "configure: failed program was:" >&5
16380   cat conftest.$ac_ext >&5
16381   rm -rf conftest*
16382   eval "ac_cv_func_$ac_func=no"
16383 fi
16384 rm -f conftest*
16385 fi
16386
16387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16388   echo "$ac_t""yes" 1>&6
16389     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16390   cat >> confdefs.h <<EOF
16391 #define $ac_tr_func 1
16392 EOF
16393  
16394 else
16395   echo "$ac_t""no" 1>&6
16396 fi
16397 done
16398     
16399   else
16400     
16401   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
16402 echo "configure:16403: checking for _fabsl declaration" >&5
16403   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
16404     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
16405   echo $ac_n "(cached) $ac_c" 1>&6
16406 else
16407   
16408       
16409       ac_ext=C
16410 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16411 ac_cpp='$CXXCPP $CPPFLAGS'
16412 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16413 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16414 cross_compiling=$ac_cv_prog_cxx_cross
16415
16416       cat > conftest.$ac_ext <<EOF
16417 #line 16418 "configure"
16418 #include "confdefs.h"
16419 #include <math.h>
16420                       #ifdef HAVE_IEEEFP_H
16421                       #include <ieeefp.h>
16422                       #endif
16423                      
16424 int main() {
16425  _fabsl(0);
16426 ; return 0; }
16427 EOF
16428 if { (eval echo configure:16429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16429   rm -rf conftest*
16430   glibcpp_cv_func__fabsl_use=yes
16431 else
16432   echo "configure: failed program was:" >&5
16433   cat conftest.$ac_ext >&5
16434   rm -rf conftest*
16435   glibcpp_cv_func__fabsl_use=no
16436 fi
16437 rm -f conftest*
16438       ac_ext=c
16439 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16440 ac_cpp='$CPP $CPPFLAGS'
16441 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16442 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16443 cross_compiling=$ac_cv_prog_cc_cross
16444
16445     
16446 fi
16447
16448   fi
16449   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
16450
16451     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
16452       for ac_func in _fabsl
16453 do
16454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16455 echo "configure:16456: checking for $ac_func" >&5
16456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16457   echo $ac_n "(cached) $ac_c" 1>&6
16458 else
16459   cat > conftest.$ac_ext <<EOF
16460 #line 16461 "configure"
16461 #include "confdefs.h"
16462 /* System header to define __stub macros and hopefully few prototypes,
16463     which can conflict with char $ac_func(); below.  */
16464 #include <assert.h>
16465 /* Override any gcc2 internal prototype to avoid an error.  */
16466 /* We use char because int might match the return type of a gcc2
16467     builtin and then its argument prototype would still apply.  */
16468 char $ac_func();
16469
16470 int main() {
16471
16472 /* The GNU C library defines this for functions which it implements
16473     to always fail with ENOSYS.  Some functions are actually named
16474     something starting with __ and the normal name is an alias.  */
16475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16476 choke me
16477 #else
16478 $ac_func();
16479 #endif
16480
16481 ; return 0; }
16482 EOF
16483 if { (eval echo configure:16484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16484   rm -rf conftest*
16485   eval "ac_cv_func_$ac_func=yes"
16486 else
16487   echo "configure: failed program was:" >&5
16488   cat conftest.$ac_ext >&5
16489   rm -rf conftest*
16490   eval "ac_cv_func_$ac_func=no"
16491 fi
16492 rm -f conftest*
16493 fi
16494
16495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16496   echo "$ac_t""yes" 1>&6
16497     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16498   cat >> confdefs.h <<EOF
16499 #define $ac_tr_func 1
16500 EOF
16501  
16502 else
16503   echo "$ac_t""no" 1>&6
16504 fi
16505 done
16506     
16507     fi
16508   fi
16509
16510   
16511   
16512   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
16513 echo "configure:16514: checking for fmodl declaration" >&5
16514   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
16515     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
16516   echo $ac_n "(cached) $ac_c" 1>&6
16517 else
16518   
16519       
16520       ac_ext=C
16521 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16522 ac_cpp='$CXXCPP $CPPFLAGS'
16523 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16524 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16525 cross_compiling=$ac_cv_prog_cxx_cross
16526
16527       cat > conftest.$ac_ext <<EOF
16528 #line 16529 "configure"
16529 #include "confdefs.h"
16530 #include <math.h>
16531 int main() {
16532  fmodl(0, 0);
16533 ; return 0; }
16534 EOF
16535 if { (eval echo configure:16536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16536   rm -rf conftest*
16537   glibcpp_cv_func_fmodl_use=yes
16538 else
16539   echo "configure: failed program was:" >&5
16540   cat conftest.$ac_ext >&5
16541   rm -rf conftest*
16542   glibcpp_cv_func_fmodl_use=no
16543 fi
16544 rm -f conftest*
16545       ac_ext=c
16546 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16547 ac_cpp='$CPP $CPPFLAGS'
16548 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16549 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16550 cross_compiling=$ac_cv_prog_cc_cross
16551
16552     
16553 fi
16554
16555   fi
16556   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
16557
16558   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
16559     for ac_func in fmodl
16560 do
16561 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16562 echo "configure:16563: checking for $ac_func" >&5
16563 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16564   echo $ac_n "(cached) $ac_c" 1>&6
16565 else
16566   cat > conftest.$ac_ext <<EOF
16567 #line 16568 "configure"
16568 #include "confdefs.h"
16569 /* System header to define __stub macros and hopefully few prototypes,
16570     which can conflict with char $ac_func(); below.  */
16571 #include <assert.h>
16572 /* Override any gcc2 internal prototype to avoid an error.  */
16573 /* We use char because int might match the return type of a gcc2
16574     builtin and then its argument prototype would still apply.  */
16575 char $ac_func();
16576
16577 int main() {
16578
16579 /* The GNU C library defines this for functions which it implements
16580     to always fail with ENOSYS.  Some functions are actually named
16581     something starting with __ and the normal name is an alias.  */
16582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16583 choke me
16584 #else
16585 $ac_func();
16586 #endif
16587
16588 ; return 0; }
16589 EOF
16590 if { (eval echo configure:16591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16591   rm -rf conftest*
16592   eval "ac_cv_func_$ac_func=yes"
16593 else
16594   echo "configure: failed program was:" >&5
16595   cat conftest.$ac_ext >&5
16596   rm -rf conftest*
16597   eval "ac_cv_func_$ac_func=no"
16598 fi
16599 rm -f conftest*
16600 fi
16601
16602 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16603   echo "$ac_t""yes" 1>&6
16604     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16605   cat >> confdefs.h <<EOF
16606 #define $ac_tr_func 1
16607 EOF
16608  
16609 else
16610   echo "$ac_t""no" 1>&6
16611 fi
16612 done
16613     
16614   else
16615     
16616   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
16617 echo "configure:16618: checking for _fmodl declaration" >&5
16618   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
16619     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
16620   echo $ac_n "(cached) $ac_c" 1>&6
16621 else
16622   
16623       
16624       ac_ext=C
16625 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16626 ac_cpp='$CXXCPP $CPPFLAGS'
16627 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16628 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16629 cross_compiling=$ac_cv_prog_cxx_cross
16630
16631       cat > conftest.$ac_ext <<EOF
16632 #line 16633 "configure"
16633 #include "confdefs.h"
16634 #include <math.h>
16635 int main() {
16636  _fmodl(0, 0);
16637 ; return 0; }
16638 EOF
16639 if { (eval echo configure:16640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16640   rm -rf conftest*
16641   glibcpp_cv_func__fmodl_use=yes
16642 else
16643   echo "configure: failed program was:" >&5
16644   cat conftest.$ac_ext >&5
16645   rm -rf conftest*
16646   glibcpp_cv_func__fmodl_use=no
16647 fi
16648 rm -f conftest*
16649       ac_ext=c
16650 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16651 ac_cpp='$CPP $CPPFLAGS'
16652 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16653 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16654 cross_compiling=$ac_cv_prog_cc_cross
16655
16656     
16657 fi
16658
16659   fi
16660   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
16661
16662     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
16663       for ac_func in _fmodl
16664 do
16665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16666 echo "configure:16667: checking for $ac_func" >&5
16667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16668   echo $ac_n "(cached) $ac_c" 1>&6
16669 else
16670   cat > conftest.$ac_ext <<EOF
16671 #line 16672 "configure"
16672 #include "confdefs.h"
16673 /* System header to define __stub macros and hopefully few prototypes,
16674     which can conflict with char $ac_func(); below.  */
16675 #include <assert.h>
16676 /* Override any gcc2 internal prototype to avoid an error.  */
16677 /* We use char because int might match the return type of a gcc2
16678     builtin and then its argument prototype would still apply.  */
16679 char $ac_func();
16680
16681 int main() {
16682
16683 /* The GNU C library defines this for functions which it implements
16684     to always fail with ENOSYS.  Some functions are actually named
16685     something starting with __ and the normal name is an alias.  */
16686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16687 choke me
16688 #else
16689 $ac_func();
16690 #endif
16691
16692 ; return 0; }
16693 EOF
16694 if { (eval echo configure:16695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16695   rm -rf conftest*
16696   eval "ac_cv_func_$ac_func=yes"
16697 else
16698   echo "configure: failed program was:" >&5
16699   cat conftest.$ac_ext >&5
16700   rm -rf conftest*
16701   eval "ac_cv_func_$ac_func=no"
16702 fi
16703 rm -f conftest*
16704 fi
16705
16706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16707   echo "$ac_t""yes" 1>&6
16708     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16709   cat >> confdefs.h <<EOF
16710 #define $ac_tr_func 1
16711 EOF
16712  
16713 else
16714   echo "$ac_t""no" 1>&6
16715 fi
16716 done
16717     
16718     fi
16719   fi
16720
16721   
16722   
16723   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
16724 echo "configure:16725: checking for frexpl declaration" >&5
16725   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
16726     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
16727   echo $ac_n "(cached) $ac_c" 1>&6
16728 else
16729   
16730       
16731       ac_ext=C
16732 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16733 ac_cpp='$CXXCPP $CPPFLAGS'
16734 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16735 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16736 cross_compiling=$ac_cv_prog_cxx_cross
16737
16738       cat > conftest.$ac_ext <<EOF
16739 #line 16740 "configure"
16740 #include "confdefs.h"
16741 #include <math.h>
16742 int main() {
16743  frexpl(0, 0);
16744 ; return 0; }
16745 EOF
16746 if { (eval echo configure:16747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16747   rm -rf conftest*
16748   glibcpp_cv_func_frexpl_use=yes
16749 else
16750   echo "configure: failed program was:" >&5
16751   cat conftest.$ac_ext >&5
16752   rm -rf conftest*
16753   glibcpp_cv_func_frexpl_use=no
16754 fi
16755 rm -f conftest*
16756       ac_ext=c
16757 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16758 ac_cpp='$CPP $CPPFLAGS'
16759 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16760 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16761 cross_compiling=$ac_cv_prog_cc_cross
16762
16763     
16764 fi
16765
16766   fi
16767   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
16768
16769   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
16770     for ac_func in frexpl
16771 do
16772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16773 echo "configure:16774: checking for $ac_func" >&5
16774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16775   echo $ac_n "(cached) $ac_c" 1>&6
16776 else
16777   cat > conftest.$ac_ext <<EOF
16778 #line 16779 "configure"
16779 #include "confdefs.h"
16780 /* System header to define __stub macros and hopefully few prototypes,
16781     which can conflict with char $ac_func(); below.  */
16782 #include <assert.h>
16783 /* Override any gcc2 internal prototype to avoid an error.  */
16784 /* We use char because int might match the return type of a gcc2
16785     builtin and then its argument prototype would still apply.  */
16786 char $ac_func();
16787
16788 int main() {
16789
16790 /* The GNU C library defines this for functions which it implements
16791     to always fail with ENOSYS.  Some functions are actually named
16792     something starting with __ and the normal name is an alias.  */
16793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16794 choke me
16795 #else
16796 $ac_func();
16797 #endif
16798
16799 ; return 0; }
16800 EOF
16801 if { (eval echo configure:16802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16802   rm -rf conftest*
16803   eval "ac_cv_func_$ac_func=yes"
16804 else
16805   echo "configure: failed program was:" >&5
16806   cat conftest.$ac_ext >&5
16807   rm -rf conftest*
16808   eval "ac_cv_func_$ac_func=no"
16809 fi
16810 rm -f conftest*
16811 fi
16812
16813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16814   echo "$ac_t""yes" 1>&6
16815     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16816   cat >> confdefs.h <<EOF
16817 #define $ac_tr_func 1
16818 EOF
16819  
16820 else
16821   echo "$ac_t""no" 1>&6
16822 fi
16823 done
16824     
16825   else
16826     
16827   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
16828 echo "configure:16829: checking for _frexpl declaration" >&5
16829   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
16830     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
16831   echo $ac_n "(cached) $ac_c" 1>&6
16832 else
16833   
16834       
16835       ac_ext=C
16836 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16837 ac_cpp='$CXXCPP $CPPFLAGS'
16838 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16839 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16840 cross_compiling=$ac_cv_prog_cxx_cross
16841
16842       cat > conftest.$ac_ext <<EOF
16843 #line 16844 "configure"
16844 #include "confdefs.h"
16845 #include <math.h>
16846 int main() {
16847  _frexpl(0, 0);
16848 ; return 0; }
16849 EOF
16850 if { (eval echo configure:16851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16851   rm -rf conftest*
16852   glibcpp_cv_func__frexpl_use=yes
16853 else
16854   echo "configure: failed program was:" >&5
16855   cat conftest.$ac_ext >&5
16856   rm -rf conftest*
16857   glibcpp_cv_func__frexpl_use=no
16858 fi
16859 rm -f conftest*
16860       ac_ext=c
16861 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16862 ac_cpp='$CPP $CPPFLAGS'
16863 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16864 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16865 cross_compiling=$ac_cv_prog_cc_cross
16866
16867     
16868 fi
16869
16870   fi
16871   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
16872
16873     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
16874       for ac_func in _frexpl
16875 do
16876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16877 echo "configure:16878: checking for $ac_func" >&5
16878 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16879   echo $ac_n "(cached) $ac_c" 1>&6
16880 else
16881   cat > conftest.$ac_ext <<EOF
16882 #line 16883 "configure"
16883 #include "confdefs.h"
16884 /* System header to define __stub macros and hopefully few prototypes,
16885     which can conflict with char $ac_func(); below.  */
16886 #include <assert.h>
16887 /* Override any gcc2 internal prototype to avoid an error.  */
16888 /* We use char because int might match the return type of a gcc2
16889     builtin and then its argument prototype would still apply.  */
16890 char $ac_func();
16891
16892 int main() {
16893
16894 /* The GNU C library defines this for functions which it implements
16895     to always fail with ENOSYS.  Some functions are actually named
16896     something starting with __ and the normal name is an alias.  */
16897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16898 choke me
16899 #else
16900 $ac_func();
16901 #endif
16902
16903 ; return 0; }
16904 EOF
16905 if { (eval echo configure:16906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16906   rm -rf conftest*
16907   eval "ac_cv_func_$ac_func=yes"
16908 else
16909   echo "configure: failed program was:" >&5
16910   cat conftest.$ac_ext >&5
16911   rm -rf conftest*
16912   eval "ac_cv_func_$ac_func=no"
16913 fi
16914 rm -f conftest*
16915 fi
16916
16917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16918   echo "$ac_t""yes" 1>&6
16919     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16920   cat >> confdefs.h <<EOF
16921 #define $ac_tr_func 1
16922 EOF
16923  
16924 else
16925   echo "$ac_t""no" 1>&6
16926 fi
16927 done
16928     
16929     fi
16930   fi
16931
16932   
16933   
16934   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
16935 echo "configure:16936: checking for hypotl declaration" >&5
16936   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
16937     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
16938   echo $ac_n "(cached) $ac_c" 1>&6
16939 else
16940   
16941       
16942       ac_ext=C
16943 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16944 ac_cpp='$CXXCPP $CPPFLAGS'
16945 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16946 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16947 cross_compiling=$ac_cv_prog_cxx_cross
16948
16949       cat > conftest.$ac_ext <<EOF
16950 #line 16951 "configure"
16951 #include "confdefs.h"
16952 #include <math.h>
16953 int main() {
16954  hypotl(0, 0);
16955 ; return 0; }
16956 EOF
16957 if { (eval echo configure:16958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16958   rm -rf conftest*
16959   glibcpp_cv_func_hypotl_use=yes
16960 else
16961   echo "configure: failed program was:" >&5
16962   cat conftest.$ac_ext >&5
16963   rm -rf conftest*
16964   glibcpp_cv_func_hypotl_use=no
16965 fi
16966 rm -f conftest*
16967       ac_ext=c
16968 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16969 ac_cpp='$CPP $CPPFLAGS'
16970 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16971 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16972 cross_compiling=$ac_cv_prog_cc_cross
16973
16974     
16975 fi
16976
16977   fi
16978   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
16979
16980   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
16981     for ac_func in hypotl
16982 do
16983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16984 echo "configure:16985: checking for $ac_func" >&5
16985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16986   echo $ac_n "(cached) $ac_c" 1>&6
16987 else
16988   cat > conftest.$ac_ext <<EOF
16989 #line 16990 "configure"
16990 #include "confdefs.h"
16991 /* System header to define __stub macros and hopefully few prototypes,
16992     which can conflict with char $ac_func(); below.  */
16993 #include <assert.h>
16994 /* Override any gcc2 internal prototype to avoid an error.  */
16995 /* We use char because int might match the return type of a gcc2
16996     builtin and then its argument prototype would still apply.  */
16997 char $ac_func();
16998
16999 int main() {
17000
17001 /* The GNU C library defines this for functions which it implements
17002     to always fail with ENOSYS.  Some functions are actually named
17003     something starting with __ and the normal name is an alias.  */
17004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17005 choke me
17006 #else
17007 $ac_func();
17008 #endif
17009
17010 ; return 0; }
17011 EOF
17012 if { (eval echo configure:17013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17013   rm -rf conftest*
17014   eval "ac_cv_func_$ac_func=yes"
17015 else
17016   echo "configure: failed program was:" >&5
17017   cat conftest.$ac_ext >&5
17018   rm -rf conftest*
17019   eval "ac_cv_func_$ac_func=no"
17020 fi
17021 rm -f conftest*
17022 fi
17023
17024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17025   echo "$ac_t""yes" 1>&6
17026     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17027   cat >> confdefs.h <<EOF
17028 #define $ac_tr_func 1
17029 EOF
17030  
17031 else
17032   echo "$ac_t""no" 1>&6
17033 fi
17034 done
17035     
17036   else
17037     
17038   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
17039 echo "configure:17040: checking for _hypotl declaration" >&5
17040   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
17041     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
17042   echo $ac_n "(cached) $ac_c" 1>&6
17043 else
17044   
17045       
17046       ac_ext=C
17047 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17048 ac_cpp='$CXXCPP $CPPFLAGS'
17049 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17050 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17051 cross_compiling=$ac_cv_prog_cxx_cross
17052
17053       cat > conftest.$ac_ext <<EOF
17054 #line 17055 "configure"
17055 #include "confdefs.h"
17056 #include <math.h>
17057 int main() {
17058  _hypotl(0, 0);
17059 ; return 0; }
17060 EOF
17061 if { (eval echo configure:17062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17062   rm -rf conftest*
17063   glibcpp_cv_func__hypotl_use=yes
17064 else
17065   echo "configure: failed program was:" >&5
17066   cat conftest.$ac_ext >&5
17067   rm -rf conftest*
17068   glibcpp_cv_func__hypotl_use=no
17069 fi
17070 rm -f conftest*
17071       ac_ext=c
17072 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17073 ac_cpp='$CPP $CPPFLAGS'
17074 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17075 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17076 cross_compiling=$ac_cv_prog_cc_cross
17077
17078     
17079 fi
17080
17081   fi
17082   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
17083
17084     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
17085       for ac_func in _hypotl
17086 do
17087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17088 echo "configure:17089: checking for $ac_func" >&5
17089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17090   echo $ac_n "(cached) $ac_c" 1>&6
17091 else
17092   cat > conftest.$ac_ext <<EOF
17093 #line 17094 "configure"
17094 #include "confdefs.h"
17095 /* System header to define __stub macros and hopefully few prototypes,
17096     which can conflict with char $ac_func(); below.  */
17097 #include <assert.h>
17098 /* Override any gcc2 internal prototype to avoid an error.  */
17099 /* We use char because int might match the return type of a gcc2
17100     builtin and then its argument prototype would still apply.  */
17101 char $ac_func();
17102
17103 int main() {
17104
17105 /* The GNU C library defines this for functions which it implements
17106     to always fail with ENOSYS.  Some functions are actually named
17107     something starting with __ and the normal name is an alias.  */
17108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17109 choke me
17110 #else
17111 $ac_func();
17112 #endif
17113
17114 ; return 0; }
17115 EOF
17116 if { (eval echo configure:17117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17117   rm -rf conftest*
17118   eval "ac_cv_func_$ac_func=yes"
17119 else
17120   echo "configure: failed program was:" >&5
17121   cat conftest.$ac_ext >&5
17122   rm -rf conftest*
17123   eval "ac_cv_func_$ac_func=no"
17124 fi
17125 rm -f conftest*
17126 fi
17127
17128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17129   echo "$ac_t""yes" 1>&6
17130     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17131   cat >> confdefs.h <<EOF
17132 #define $ac_tr_func 1
17133 EOF
17134  
17135 else
17136   echo "$ac_t""no" 1>&6
17137 fi
17138 done
17139     
17140     fi
17141   fi
17142
17143   
17144   
17145   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
17146 echo "configure:17147: checking for ldexpl declaration" >&5
17147   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
17148     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
17149   echo $ac_n "(cached) $ac_c" 1>&6
17150 else
17151   
17152       
17153       ac_ext=C
17154 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17155 ac_cpp='$CXXCPP $CPPFLAGS'
17156 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17157 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17158 cross_compiling=$ac_cv_prog_cxx_cross
17159
17160       cat > conftest.$ac_ext <<EOF
17161 #line 17162 "configure"
17162 #include "confdefs.h"
17163 #include <math.h>
17164 int main() {
17165  ldexpl(0, 0);
17166 ; return 0; }
17167 EOF
17168 if { (eval echo configure:17169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17169   rm -rf conftest*
17170   glibcpp_cv_func_ldexpl_use=yes
17171 else
17172   echo "configure: failed program was:" >&5
17173   cat conftest.$ac_ext >&5
17174   rm -rf conftest*
17175   glibcpp_cv_func_ldexpl_use=no
17176 fi
17177 rm -f conftest*
17178       ac_ext=c
17179 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17180 ac_cpp='$CPP $CPPFLAGS'
17181 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17182 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17183 cross_compiling=$ac_cv_prog_cc_cross
17184
17185     
17186 fi
17187
17188   fi
17189   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
17190
17191   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
17192     for ac_func in ldexpl
17193 do
17194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17195 echo "configure:17196: checking for $ac_func" >&5
17196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17197   echo $ac_n "(cached) $ac_c" 1>&6
17198 else
17199   cat > conftest.$ac_ext <<EOF
17200 #line 17201 "configure"
17201 #include "confdefs.h"
17202 /* System header to define __stub macros and hopefully few prototypes,
17203     which can conflict with char $ac_func(); below.  */
17204 #include <assert.h>
17205 /* Override any gcc2 internal prototype to avoid an error.  */
17206 /* We use char because int might match the return type of a gcc2
17207     builtin and then its argument prototype would still apply.  */
17208 char $ac_func();
17209
17210 int main() {
17211
17212 /* The GNU C library defines this for functions which it implements
17213     to always fail with ENOSYS.  Some functions are actually named
17214     something starting with __ and the normal name is an alias.  */
17215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17216 choke me
17217 #else
17218 $ac_func();
17219 #endif
17220
17221 ; return 0; }
17222 EOF
17223 if { (eval echo configure:17224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17224   rm -rf conftest*
17225   eval "ac_cv_func_$ac_func=yes"
17226 else
17227   echo "configure: failed program was:" >&5
17228   cat conftest.$ac_ext >&5
17229   rm -rf conftest*
17230   eval "ac_cv_func_$ac_func=no"
17231 fi
17232 rm -f conftest*
17233 fi
17234
17235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17236   echo "$ac_t""yes" 1>&6
17237     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17238   cat >> confdefs.h <<EOF
17239 #define $ac_tr_func 1
17240 EOF
17241  
17242 else
17243   echo "$ac_t""no" 1>&6
17244 fi
17245 done
17246     
17247   else
17248     
17249   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
17250 echo "configure:17251: checking for _ldexpl declaration" >&5
17251   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
17252     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
17253   echo $ac_n "(cached) $ac_c" 1>&6
17254 else
17255   
17256       
17257       ac_ext=C
17258 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17259 ac_cpp='$CXXCPP $CPPFLAGS'
17260 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17261 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17262 cross_compiling=$ac_cv_prog_cxx_cross
17263
17264       cat > conftest.$ac_ext <<EOF
17265 #line 17266 "configure"
17266 #include "confdefs.h"
17267 #include <math.h>
17268 int main() {
17269  _ldexpl(0, 0);
17270 ; return 0; }
17271 EOF
17272 if { (eval echo configure:17273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17273   rm -rf conftest*
17274   glibcpp_cv_func__ldexpl_use=yes
17275 else
17276   echo "configure: failed program was:" >&5
17277   cat conftest.$ac_ext >&5
17278   rm -rf conftest*
17279   glibcpp_cv_func__ldexpl_use=no
17280 fi
17281 rm -f conftest*
17282       ac_ext=c
17283 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17284 ac_cpp='$CPP $CPPFLAGS'
17285 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17286 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17287 cross_compiling=$ac_cv_prog_cc_cross
17288
17289     
17290 fi
17291
17292   fi
17293   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
17294
17295     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
17296       for ac_func in _ldexpl
17297 do
17298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17299 echo "configure:17300: checking for $ac_func" >&5
17300 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17301   echo $ac_n "(cached) $ac_c" 1>&6
17302 else
17303   cat > conftest.$ac_ext <<EOF
17304 #line 17305 "configure"
17305 #include "confdefs.h"
17306 /* System header to define __stub macros and hopefully few prototypes,
17307     which can conflict with char $ac_func(); below.  */
17308 #include <assert.h>
17309 /* Override any gcc2 internal prototype to avoid an error.  */
17310 /* We use char because int might match the return type of a gcc2
17311     builtin and then its argument prototype would still apply.  */
17312 char $ac_func();
17313
17314 int main() {
17315
17316 /* The GNU C library defines this for functions which it implements
17317     to always fail with ENOSYS.  Some functions are actually named
17318     something starting with __ and the normal name is an alias.  */
17319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17320 choke me
17321 #else
17322 $ac_func();
17323 #endif
17324
17325 ; return 0; }
17326 EOF
17327 if { (eval echo configure:17328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17328   rm -rf conftest*
17329   eval "ac_cv_func_$ac_func=yes"
17330 else
17331   echo "configure: failed program was:" >&5
17332   cat conftest.$ac_ext >&5
17333   rm -rf conftest*
17334   eval "ac_cv_func_$ac_func=no"
17335 fi
17336 rm -f conftest*
17337 fi
17338
17339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17340   echo "$ac_t""yes" 1>&6
17341     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17342   cat >> confdefs.h <<EOF
17343 #define $ac_tr_func 1
17344 EOF
17345  
17346 else
17347   echo "$ac_t""no" 1>&6
17348 fi
17349 done
17350     
17351     fi
17352   fi
17353
17354   
17355   
17356   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
17357 echo "configure:17358: checking for logl declaration" >&5
17358   if test x${glibcpp_cv_func_logl_use+set} != xset; then
17359     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
17360   echo $ac_n "(cached) $ac_c" 1>&6
17361 else
17362   
17363       
17364       ac_ext=C
17365 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17366 ac_cpp='$CXXCPP $CPPFLAGS'
17367 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17368 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17369 cross_compiling=$ac_cv_prog_cxx_cross
17370
17371       cat > conftest.$ac_ext <<EOF
17372 #line 17373 "configure"
17373 #include "confdefs.h"
17374 #include <math.h>
17375                       #ifdef HAVE_IEEEFP_H
17376                       #include <ieeefp.h>
17377                       #endif
17378                      
17379 int main() {
17380  logl(0);
17381 ; return 0; }
17382 EOF
17383 if { (eval echo configure:17384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17384   rm -rf conftest*
17385   glibcpp_cv_func_logl_use=yes
17386 else
17387   echo "configure: failed program was:" >&5
17388   cat conftest.$ac_ext >&5
17389   rm -rf conftest*
17390   glibcpp_cv_func_logl_use=no
17391 fi
17392 rm -f conftest*
17393       ac_ext=c
17394 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17395 ac_cpp='$CPP $CPPFLAGS'
17396 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17397 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17398 cross_compiling=$ac_cv_prog_cc_cross
17399
17400     
17401 fi
17402
17403   fi
17404   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
17405
17406   if test x$glibcpp_cv_func_logl_use = x"yes"; then
17407     for ac_func in logl
17408 do
17409 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17410 echo "configure:17411: checking for $ac_func" >&5
17411 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17412   echo $ac_n "(cached) $ac_c" 1>&6
17413 else
17414   cat > conftest.$ac_ext <<EOF
17415 #line 17416 "configure"
17416 #include "confdefs.h"
17417 /* System header to define __stub macros and hopefully few prototypes,
17418     which can conflict with char $ac_func(); below.  */
17419 #include <assert.h>
17420 /* Override any gcc2 internal prototype to avoid an error.  */
17421 /* We use char because int might match the return type of a gcc2
17422     builtin and then its argument prototype would still apply.  */
17423 char $ac_func();
17424
17425 int main() {
17426
17427 /* The GNU C library defines this for functions which it implements
17428     to always fail with ENOSYS.  Some functions are actually named
17429     something starting with __ and the normal name is an alias.  */
17430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17431 choke me
17432 #else
17433 $ac_func();
17434 #endif
17435
17436 ; return 0; }
17437 EOF
17438 if { (eval echo configure:17439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17439   rm -rf conftest*
17440   eval "ac_cv_func_$ac_func=yes"
17441 else
17442   echo "configure: failed program was:" >&5
17443   cat conftest.$ac_ext >&5
17444   rm -rf conftest*
17445   eval "ac_cv_func_$ac_func=no"
17446 fi
17447 rm -f conftest*
17448 fi
17449
17450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17451   echo "$ac_t""yes" 1>&6
17452     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17453   cat >> confdefs.h <<EOF
17454 #define $ac_tr_func 1
17455 EOF
17456  
17457 else
17458   echo "$ac_t""no" 1>&6
17459 fi
17460 done
17461     
17462   else
17463     
17464   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
17465 echo "configure:17466: checking for _logl declaration" >&5
17466   if test x${glibcpp_cv_func__logl_use+set} != xset; then
17467     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
17468   echo $ac_n "(cached) $ac_c" 1>&6
17469 else
17470   
17471       
17472       ac_ext=C
17473 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17474 ac_cpp='$CXXCPP $CPPFLAGS'
17475 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17476 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17477 cross_compiling=$ac_cv_prog_cxx_cross
17478
17479       cat > conftest.$ac_ext <<EOF
17480 #line 17481 "configure"
17481 #include "confdefs.h"
17482 #include <math.h>
17483                       #ifdef HAVE_IEEEFP_H
17484                       #include <ieeefp.h>
17485                       #endif
17486                      
17487 int main() {
17488  _logl(0);
17489 ; return 0; }
17490 EOF
17491 if { (eval echo configure:17492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17492   rm -rf conftest*
17493   glibcpp_cv_func__logl_use=yes
17494 else
17495   echo "configure: failed program was:" >&5
17496   cat conftest.$ac_ext >&5
17497   rm -rf conftest*
17498   glibcpp_cv_func__logl_use=no
17499 fi
17500 rm -f conftest*
17501       ac_ext=c
17502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17503 ac_cpp='$CPP $CPPFLAGS'
17504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17505 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17506 cross_compiling=$ac_cv_prog_cc_cross
17507
17508     
17509 fi
17510
17511   fi
17512   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
17513
17514     if test x$glibcpp_cv_func__logl_use = x"yes"; then
17515       for ac_func in _logl
17516 do
17517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17518 echo "configure:17519: checking for $ac_func" >&5
17519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17520   echo $ac_n "(cached) $ac_c" 1>&6
17521 else
17522   cat > conftest.$ac_ext <<EOF
17523 #line 17524 "configure"
17524 #include "confdefs.h"
17525 /* System header to define __stub macros and hopefully few prototypes,
17526     which can conflict with char $ac_func(); below.  */
17527 #include <assert.h>
17528 /* Override any gcc2 internal prototype to avoid an error.  */
17529 /* We use char because int might match the return type of a gcc2
17530     builtin and then its argument prototype would still apply.  */
17531 char $ac_func();
17532
17533 int main() {
17534
17535 /* The GNU C library defines this for functions which it implements
17536     to always fail with ENOSYS.  Some functions are actually named
17537     something starting with __ and the normal name is an alias.  */
17538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17539 choke me
17540 #else
17541 $ac_func();
17542 #endif
17543
17544 ; return 0; }
17545 EOF
17546 if { (eval echo configure:17547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17547   rm -rf conftest*
17548   eval "ac_cv_func_$ac_func=yes"
17549 else
17550   echo "configure: failed program was:" >&5
17551   cat conftest.$ac_ext >&5
17552   rm -rf conftest*
17553   eval "ac_cv_func_$ac_func=no"
17554 fi
17555 rm -f conftest*
17556 fi
17557
17558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17559   echo "$ac_t""yes" 1>&6
17560     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17561   cat >> confdefs.h <<EOF
17562 #define $ac_tr_func 1
17563 EOF
17564  
17565 else
17566   echo "$ac_t""no" 1>&6
17567 fi
17568 done
17569     
17570     fi
17571   fi
17572
17573   
17574   
17575   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
17576 echo "configure:17577: checking for log10l declaration" >&5
17577   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
17578     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
17579   echo $ac_n "(cached) $ac_c" 1>&6
17580 else
17581   
17582       
17583       ac_ext=C
17584 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17585 ac_cpp='$CXXCPP $CPPFLAGS'
17586 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17587 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17588 cross_compiling=$ac_cv_prog_cxx_cross
17589
17590       cat > conftest.$ac_ext <<EOF
17591 #line 17592 "configure"
17592 #include "confdefs.h"
17593 #include <math.h>
17594                       #ifdef HAVE_IEEEFP_H
17595                       #include <ieeefp.h>
17596                       #endif
17597                      
17598 int main() {
17599  log10l(0);
17600 ; return 0; }
17601 EOF
17602 if { (eval echo configure:17603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17603   rm -rf conftest*
17604   glibcpp_cv_func_log10l_use=yes
17605 else
17606   echo "configure: failed program was:" >&5
17607   cat conftest.$ac_ext >&5
17608   rm -rf conftest*
17609   glibcpp_cv_func_log10l_use=no
17610 fi
17611 rm -f conftest*
17612       ac_ext=c
17613 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17614 ac_cpp='$CPP $CPPFLAGS'
17615 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17616 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17617 cross_compiling=$ac_cv_prog_cc_cross
17618
17619     
17620 fi
17621
17622   fi
17623   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
17624
17625   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
17626     for ac_func in log10l
17627 do
17628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17629 echo "configure:17630: checking for $ac_func" >&5
17630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17631   echo $ac_n "(cached) $ac_c" 1>&6
17632 else
17633   cat > conftest.$ac_ext <<EOF
17634 #line 17635 "configure"
17635 #include "confdefs.h"
17636 /* System header to define __stub macros and hopefully few prototypes,
17637     which can conflict with char $ac_func(); below.  */
17638 #include <assert.h>
17639 /* Override any gcc2 internal prototype to avoid an error.  */
17640 /* We use char because int might match the return type of a gcc2
17641     builtin and then its argument prototype would still apply.  */
17642 char $ac_func();
17643
17644 int main() {
17645
17646 /* The GNU C library defines this for functions which it implements
17647     to always fail with ENOSYS.  Some functions are actually named
17648     something starting with __ and the normal name is an alias.  */
17649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17650 choke me
17651 #else
17652 $ac_func();
17653 #endif
17654
17655 ; return 0; }
17656 EOF
17657 if { (eval echo configure:17658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17658   rm -rf conftest*
17659   eval "ac_cv_func_$ac_func=yes"
17660 else
17661   echo "configure: failed program was:" >&5
17662   cat conftest.$ac_ext >&5
17663   rm -rf conftest*
17664   eval "ac_cv_func_$ac_func=no"
17665 fi
17666 rm -f conftest*
17667 fi
17668
17669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17670   echo "$ac_t""yes" 1>&6
17671     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17672   cat >> confdefs.h <<EOF
17673 #define $ac_tr_func 1
17674 EOF
17675  
17676 else
17677   echo "$ac_t""no" 1>&6
17678 fi
17679 done
17680     
17681   else
17682     
17683   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
17684 echo "configure:17685: checking for _log10l declaration" >&5
17685   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
17686     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
17687   echo $ac_n "(cached) $ac_c" 1>&6
17688 else
17689   
17690       
17691       ac_ext=C
17692 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17693 ac_cpp='$CXXCPP $CPPFLAGS'
17694 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17695 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17696 cross_compiling=$ac_cv_prog_cxx_cross
17697
17698       cat > conftest.$ac_ext <<EOF
17699 #line 17700 "configure"
17700 #include "confdefs.h"
17701 #include <math.h>
17702                       #ifdef HAVE_IEEEFP_H
17703                       #include <ieeefp.h>
17704                       #endif
17705                      
17706 int main() {
17707  _log10l(0);
17708 ; return 0; }
17709 EOF
17710 if { (eval echo configure:17711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17711   rm -rf conftest*
17712   glibcpp_cv_func__log10l_use=yes
17713 else
17714   echo "configure: failed program was:" >&5
17715   cat conftest.$ac_ext >&5
17716   rm -rf conftest*
17717   glibcpp_cv_func__log10l_use=no
17718 fi
17719 rm -f conftest*
17720       ac_ext=c
17721 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17722 ac_cpp='$CPP $CPPFLAGS'
17723 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17724 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17725 cross_compiling=$ac_cv_prog_cc_cross
17726
17727     
17728 fi
17729
17730   fi
17731   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
17732
17733     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
17734       for ac_func in _log10l
17735 do
17736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17737 echo "configure:17738: checking for $ac_func" >&5
17738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17739   echo $ac_n "(cached) $ac_c" 1>&6
17740 else
17741   cat > conftest.$ac_ext <<EOF
17742 #line 17743 "configure"
17743 #include "confdefs.h"
17744 /* System header to define __stub macros and hopefully few prototypes,
17745     which can conflict with char $ac_func(); below.  */
17746 #include <assert.h>
17747 /* Override any gcc2 internal prototype to avoid an error.  */
17748 /* We use char because int might match the return type of a gcc2
17749     builtin and then its argument prototype would still apply.  */
17750 char $ac_func();
17751
17752 int main() {
17753
17754 /* The GNU C library defines this for functions which it implements
17755     to always fail with ENOSYS.  Some functions are actually named
17756     something starting with __ and the normal name is an alias.  */
17757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17758 choke me
17759 #else
17760 $ac_func();
17761 #endif
17762
17763 ; return 0; }
17764 EOF
17765 if { (eval echo configure:17766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17766   rm -rf conftest*
17767   eval "ac_cv_func_$ac_func=yes"
17768 else
17769   echo "configure: failed program was:" >&5
17770   cat conftest.$ac_ext >&5
17771   rm -rf conftest*
17772   eval "ac_cv_func_$ac_func=no"
17773 fi
17774 rm -f conftest*
17775 fi
17776
17777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17778   echo "$ac_t""yes" 1>&6
17779     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17780   cat >> confdefs.h <<EOF
17781 #define $ac_tr_func 1
17782 EOF
17783  
17784 else
17785   echo "$ac_t""no" 1>&6
17786 fi
17787 done
17788     
17789     fi
17790   fi
17791
17792   
17793   
17794   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
17795 echo "configure:17796: checking for modfl declaration" >&5
17796   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
17797     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
17798   echo $ac_n "(cached) $ac_c" 1>&6
17799 else
17800   
17801       
17802       ac_ext=C
17803 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17804 ac_cpp='$CXXCPP $CPPFLAGS'
17805 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17806 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17807 cross_compiling=$ac_cv_prog_cxx_cross
17808
17809       cat > conftest.$ac_ext <<EOF
17810 #line 17811 "configure"
17811 #include "confdefs.h"
17812 #include <math.h>
17813 int main() {
17814  modfl(0, 0);
17815 ; return 0; }
17816 EOF
17817 if { (eval echo configure:17818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17818   rm -rf conftest*
17819   glibcpp_cv_func_modfl_use=yes
17820 else
17821   echo "configure: failed program was:" >&5
17822   cat conftest.$ac_ext >&5
17823   rm -rf conftest*
17824   glibcpp_cv_func_modfl_use=no
17825 fi
17826 rm -f conftest*
17827       ac_ext=c
17828 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17829 ac_cpp='$CPP $CPPFLAGS'
17830 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17831 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17832 cross_compiling=$ac_cv_prog_cc_cross
17833
17834     
17835 fi
17836
17837   fi
17838   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
17839
17840   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
17841     for ac_func in modfl
17842 do
17843 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17844 echo "configure:17845: checking for $ac_func" >&5
17845 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17846   echo $ac_n "(cached) $ac_c" 1>&6
17847 else
17848   cat > conftest.$ac_ext <<EOF
17849 #line 17850 "configure"
17850 #include "confdefs.h"
17851 /* System header to define __stub macros and hopefully few prototypes,
17852     which can conflict with char $ac_func(); below.  */
17853 #include <assert.h>
17854 /* Override any gcc2 internal prototype to avoid an error.  */
17855 /* We use char because int might match the return type of a gcc2
17856     builtin and then its argument prototype would still apply.  */
17857 char $ac_func();
17858
17859 int main() {
17860
17861 /* The GNU C library defines this for functions which it implements
17862     to always fail with ENOSYS.  Some functions are actually named
17863     something starting with __ and the normal name is an alias.  */
17864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17865 choke me
17866 #else
17867 $ac_func();
17868 #endif
17869
17870 ; return 0; }
17871 EOF
17872 if { (eval echo configure:17873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17873   rm -rf conftest*
17874   eval "ac_cv_func_$ac_func=yes"
17875 else
17876   echo "configure: failed program was:" >&5
17877   cat conftest.$ac_ext >&5
17878   rm -rf conftest*
17879   eval "ac_cv_func_$ac_func=no"
17880 fi
17881 rm -f conftest*
17882 fi
17883
17884 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17885   echo "$ac_t""yes" 1>&6
17886     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17887   cat >> confdefs.h <<EOF
17888 #define $ac_tr_func 1
17889 EOF
17890  
17891 else
17892   echo "$ac_t""no" 1>&6
17893 fi
17894 done
17895     
17896   else
17897     
17898   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
17899 echo "configure:17900: checking for _modfl declaration" >&5
17900   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
17901     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
17902   echo $ac_n "(cached) $ac_c" 1>&6
17903 else
17904   
17905       
17906       ac_ext=C
17907 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17908 ac_cpp='$CXXCPP $CPPFLAGS'
17909 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17910 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17911 cross_compiling=$ac_cv_prog_cxx_cross
17912
17913       cat > conftest.$ac_ext <<EOF
17914 #line 17915 "configure"
17915 #include "confdefs.h"
17916 #include <math.h>
17917 int main() {
17918  _modfl(0, 0);
17919 ; return 0; }
17920 EOF
17921 if { (eval echo configure:17922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17922   rm -rf conftest*
17923   glibcpp_cv_func__modfl_use=yes
17924 else
17925   echo "configure: failed program was:" >&5
17926   cat conftest.$ac_ext >&5
17927   rm -rf conftest*
17928   glibcpp_cv_func__modfl_use=no
17929 fi
17930 rm -f conftest*
17931       ac_ext=c
17932 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17933 ac_cpp='$CPP $CPPFLAGS'
17934 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17935 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17936 cross_compiling=$ac_cv_prog_cc_cross
17937
17938     
17939 fi
17940
17941   fi
17942   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
17943
17944     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
17945       for ac_func in _modfl
17946 do
17947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17948 echo "configure:17949: checking for $ac_func" >&5
17949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17950   echo $ac_n "(cached) $ac_c" 1>&6
17951 else
17952   cat > conftest.$ac_ext <<EOF
17953 #line 17954 "configure"
17954 #include "confdefs.h"
17955 /* System header to define __stub macros and hopefully few prototypes,
17956     which can conflict with char $ac_func(); below.  */
17957 #include <assert.h>
17958 /* Override any gcc2 internal prototype to avoid an error.  */
17959 /* We use char because int might match the return type of a gcc2
17960     builtin and then its argument prototype would still apply.  */
17961 char $ac_func();
17962
17963 int main() {
17964
17965 /* The GNU C library defines this for functions which it implements
17966     to always fail with ENOSYS.  Some functions are actually named
17967     something starting with __ and the normal name is an alias.  */
17968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17969 choke me
17970 #else
17971 $ac_func();
17972 #endif
17973
17974 ; return 0; }
17975 EOF
17976 if { (eval echo configure:17977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17977   rm -rf conftest*
17978   eval "ac_cv_func_$ac_func=yes"
17979 else
17980   echo "configure: failed program was:" >&5
17981   cat conftest.$ac_ext >&5
17982   rm -rf conftest*
17983   eval "ac_cv_func_$ac_func=no"
17984 fi
17985 rm -f conftest*
17986 fi
17987
17988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17989   echo "$ac_t""yes" 1>&6
17990     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17991   cat >> confdefs.h <<EOF
17992 #define $ac_tr_func 1
17993 EOF
17994  
17995 else
17996   echo "$ac_t""no" 1>&6
17997 fi
17998 done
17999     
18000     fi
18001   fi
18002
18003   
18004   
18005   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
18006 echo "configure:18007: checking for powl declaration" >&5
18007   if test x${glibcpp_cv_func_powl_use+set} != xset; then
18008     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
18009   echo $ac_n "(cached) $ac_c" 1>&6
18010 else
18011   
18012       
18013       ac_ext=C
18014 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18015 ac_cpp='$CXXCPP $CPPFLAGS'
18016 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18017 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18018 cross_compiling=$ac_cv_prog_cxx_cross
18019
18020       cat > conftest.$ac_ext <<EOF
18021 #line 18022 "configure"
18022 #include "confdefs.h"
18023 #include <math.h>
18024 int main() {
18025  powl(0, 0);
18026 ; return 0; }
18027 EOF
18028 if { (eval echo configure:18029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18029   rm -rf conftest*
18030   glibcpp_cv_func_powl_use=yes
18031 else
18032   echo "configure: failed program was:" >&5
18033   cat conftest.$ac_ext >&5
18034   rm -rf conftest*
18035   glibcpp_cv_func_powl_use=no
18036 fi
18037 rm -f conftest*
18038       ac_ext=c
18039 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18040 ac_cpp='$CPP $CPPFLAGS'
18041 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18042 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18043 cross_compiling=$ac_cv_prog_cc_cross
18044
18045     
18046 fi
18047
18048   fi
18049   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
18050
18051   if test x$glibcpp_cv_func_powl_use = x"yes"; then
18052     for ac_func in powl
18053 do
18054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18055 echo "configure:18056: checking for $ac_func" >&5
18056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18057   echo $ac_n "(cached) $ac_c" 1>&6
18058 else
18059   cat > conftest.$ac_ext <<EOF
18060 #line 18061 "configure"
18061 #include "confdefs.h"
18062 /* System header to define __stub macros and hopefully few prototypes,
18063     which can conflict with char $ac_func(); below.  */
18064 #include <assert.h>
18065 /* Override any gcc2 internal prototype to avoid an error.  */
18066 /* We use char because int might match the return type of a gcc2
18067     builtin and then its argument prototype would still apply.  */
18068 char $ac_func();
18069
18070 int main() {
18071
18072 /* The GNU C library defines this for functions which it implements
18073     to always fail with ENOSYS.  Some functions are actually named
18074     something starting with __ and the normal name is an alias.  */
18075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18076 choke me
18077 #else
18078 $ac_func();
18079 #endif
18080
18081 ; return 0; }
18082 EOF
18083 if { (eval echo configure:18084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18084   rm -rf conftest*
18085   eval "ac_cv_func_$ac_func=yes"
18086 else
18087   echo "configure: failed program was:" >&5
18088   cat conftest.$ac_ext >&5
18089   rm -rf conftest*
18090   eval "ac_cv_func_$ac_func=no"
18091 fi
18092 rm -f conftest*
18093 fi
18094
18095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18096   echo "$ac_t""yes" 1>&6
18097     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18098   cat >> confdefs.h <<EOF
18099 #define $ac_tr_func 1
18100 EOF
18101  
18102 else
18103   echo "$ac_t""no" 1>&6
18104 fi
18105 done
18106     
18107   else
18108     
18109   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
18110 echo "configure:18111: checking for _powl declaration" >&5
18111   if test x${glibcpp_cv_func__powl_use+set} != xset; then
18112     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
18113   echo $ac_n "(cached) $ac_c" 1>&6
18114 else
18115   
18116       
18117       ac_ext=C
18118 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18119 ac_cpp='$CXXCPP $CPPFLAGS'
18120 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18121 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18122 cross_compiling=$ac_cv_prog_cxx_cross
18123
18124       cat > conftest.$ac_ext <<EOF
18125 #line 18126 "configure"
18126 #include "confdefs.h"
18127 #include <math.h>
18128 int main() {
18129  _powl(0, 0);
18130 ; return 0; }
18131 EOF
18132 if { (eval echo configure:18133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18133   rm -rf conftest*
18134   glibcpp_cv_func__powl_use=yes
18135 else
18136   echo "configure: failed program was:" >&5
18137   cat conftest.$ac_ext >&5
18138   rm -rf conftest*
18139   glibcpp_cv_func__powl_use=no
18140 fi
18141 rm -f conftest*
18142       ac_ext=c
18143 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18144 ac_cpp='$CPP $CPPFLAGS'
18145 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18146 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18147 cross_compiling=$ac_cv_prog_cc_cross
18148
18149     
18150 fi
18151
18152   fi
18153   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
18154
18155     if test x$glibcpp_cv_func__powl_use = x"yes"; then
18156       for ac_func in _powl
18157 do
18158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18159 echo "configure:18160: checking for $ac_func" >&5
18160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18161   echo $ac_n "(cached) $ac_c" 1>&6
18162 else
18163   cat > conftest.$ac_ext <<EOF
18164 #line 18165 "configure"
18165 #include "confdefs.h"
18166 /* System header to define __stub macros and hopefully few prototypes,
18167     which can conflict with char $ac_func(); below.  */
18168 #include <assert.h>
18169 /* Override any gcc2 internal prototype to avoid an error.  */
18170 /* We use char because int might match the return type of a gcc2
18171     builtin and then its argument prototype would still apply.  */
18172 char $ac_func();
18173
18174 int main() {
18175
18176 /* The GNU C library defines this for functions which it implements
18177     to always fail with ENOSYS.  Some functions are actually named
18178     something starting with __ and the normal name is an alias.  */
18179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18180 choke me
18181 #else
18182 $ac_func();
18183 #endif
18184
18185 ; return 0; }
18186 EOF
18187 if { (eval echo configure:18188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18188   rm -rf conftest*
18189   eval "ac_cv_func_$ac_func=yes"
18190 else
18191   echo "configure: failed program was:" >&5
18192   cat conftest.$ac_ext >&5
18193   rm -rf conftest*
18194   eval "ac_cv_func_$ac_func=no"
18195 fi
18196 rm -f conftest*
18197 fi
18198
18199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18200   echo "$ac_t""yes" 1>&6
18201     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18202   cat >> confdefs.h <<EOF
18203 #define $ac_tr_func 1
18204 EOF
18205  
18206 else
18207   echo "$ac_t""no" 1>&6
18208 fi
18209 done
18210     
18211     fi
18212   fi
18213
18214   
18215   
18216   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
18217 echo "configure:18218: checking for sqrtl declaration" >&5
18218   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
18219     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
18220   echo $ac_n "(cached) $ac_c" 1>&6
18221 else
18222   
18223       
18224       ac_ext=C
18225 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18226 ac_cpp='$CXXCPP $CPPFLAGS'
18227 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18228 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18229 cross_compiling=$ac_cv_prog_cxx_cross
18230
18231       cat > conftest.$ac_ext <<EOF
18232 #line 18233 "configure"
18233 #include "confdefs.h"
18234 #include <math.h>
18235                       #ifdef HAVE_IEEEFP_H
18236                       #include <ieeefp.h>
18237                       #endif
18238                      
18239 int main() {
18240  sqrtl(0);
18241 ; return 0; }
18242 EOF
18243 if { (eval echo configure:18244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18244   rm -rf conftest*
18245   glibcpp_cv_func_sqrtl_use=yes
18246 else
18247   echo "configure: failed program was:" >&5
18248   cat conftest.$ac_ext >&5
18249   rm -rf conftest*
18250   glibcpp_cv_func_sqrtl_use=no
18251 fi
18252 rm -f conftest*
18253       ac_ext=c
18254 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18255 ac_cpp='$CPP $CPPFLAGS'
18256 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18257 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18258 cross_compiling=$ac_cv_prog_cc_cross
18259
18260     
18261 fi
18262
18263   fi
18264   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
18265
18266   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
18267     for ac_func in sqrtl
18268 do
18269 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18270 echo "configure:18271: checking for $ac_func" >&5
18271 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18272   echo $ac_n "(cached) $ac_c" 1>&6
18273 else
18274   cat > conftest.$ac_ext <<EOF
18275 #line 18276 "configure"
18276 #include "confdefs.h"
18277 /* System header to define __stub macros and hopefully few prototypes,
18278     which can conflict with char $ac_func(); below.  */
18279 #include <assert.h>
18280 /* Override any gcc2 internal prototype to avoid an error.  */
18281 /* We use char because int might match the return type of a gcc2
18282     builtin and then its argument prototype would still apply.  */
18283 char $ac_func();
18284
18285 int main() {
18286
18287 /* The GNU C library defines this for functions which it implements
18288     to always fail with ENOSYS.  Some functions are actually named
18289     something starting with __ and the normal name is an alias.  */
18290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18291 choke me
18292 #else
18293 $ac_func();
18294 #endif
18295
18296 ; return 0; }
18297 EOF
18298 if { (eval echo configure:18299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18299   rm -rf conftest*
18300   eval "ac_cv_func_$ac_func=yes"
18301 else
18302   echo "configure: failed program was:" >&5
18303   cat conftest.$ac_ext >&5
18304   rm -rf conftest*
18305   eval "ac_cv_func_$ac_func=no"
18306 fi
18307 rm -f conftest*
18308 fi
18309
18310 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18311   echo "$ac_t""yes" 1>&6
18312     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18313   cat >> confdefs.h <<EOF
18314 #define $ac_tr_func 1
18315 EOF
18316  
18317 else
18318   echo "$ac_t""no" 1>&6
18319 fi
18320 done
18321     
18322   else
18323     
18324   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
18325 echo "configure:18326: checking for _sqrtl declaration" >&5
18326   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
18327     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
18328   echo $ac_n "(cached) $ac_c" 1>&6
18329 else
18330   
18331       
18332       ac_ext=C
18333 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18334 ac_cpp='$CXXCPP $CPPFLAGS'
18335 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18336 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18337 cross_compiling=$ac_cv_prog_cxx_cross
18338
18339       cat > conftest.$ac_ext <<EOF
18340 #line 18341 "configure"
18341 #include "confdefs.h"
18342 #include <math.h>
18343                       #ifdef HAVE_IEEEFP_H
18344                       #include <ieeefp.h>
18345                       #endif
18346                      
18347 int main() {
18348  _sqrtl(0);
18349 ; return 0; }
18350 EOF
18351 if { (eval echo configure:18352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18352   rm -rf conftest*
18353   glibcpp_cv_func__sqrtl_use=yes
18354 else
18355   echo "configure: failed program was:" >&5
18356   cat conftest.$ac_ext >&5
18357   rm -rf conftest*
18358   glibcpp_cv_func__sqrtl_use=no
18359 fi
18360 rm -f conftest*
18361       ac_ext=c
18362 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18363 ac_cpp='$CPP $CPPFLAGS'
18364 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18365 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18366 cross_compiling=$ac_cv_prog_cc_cross
18367
18368     
18369 fi
18370
18371   fi
18372   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
18373
18374     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
18375       for ac_func in _sqrtl
18376 do
18377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18378 echo "configure:18379: checking for $ac_func" >&5
18379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18380   echo $ac_n "(cached) $ac_c" 1>&6
18381 else
18382   cat > conftest.$ac_ext <<EOF
18383 #line 18384 "configure"
18384 #include "confdefs.h"
18385 /* System header to define __stub macros and hopefully few prototypes,
18386     which can conflict with char $ac_func(); below.  */
18387 #include <assert.h>
18388 /* Override any gcc2 internal prototype to avoid an error.  */
18389 /* We use char because int might match the return type of a gcc2
18390     builtin and then its argument prototype would still apply.  */
18391 char $ac_func();
18392
18393 int main() {
18394
18395 /* The GNU C library defines this for functions which it implements
18396     to always fail with ENOSYS.  Some functions are actually named
18397     something starting with __ and the normal name is an alias.  */
18398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18399 choke me
18400 #else
18401 $ac_func();
18402 #endif
18403
18404 ; return 0; }
18405 EOF
18406 if { (eval echo configure:18407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18407   rm -rf conftest*
18408   eval "ac_cv_func_$ac_func=yes"
18409 else
18410   echo "configure: failed program was:" >&5
18411   cat conftest.$ac_ext >&5
18412   rm -rf conftest*
18413   eval "ac_cv_func_$ac_func=no"
18414 fi
18415 rm -f conftest*
18416 fi
18417
18418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18419   echo "$ac_t""yes" 1>&6
18420     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18421   cat >> confdefs.h <<EOF
18422 #define $ac_tr_func 1
18423 EOF
18424  
18425 else
18426   echo "$ac_t""no" 1>&6
18427 fi
18428 done
18429     
18430     fi
18431   fi
18432
18433   
18434   
18435   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
18436 echo "configure:18437: checking for sincosl declaration" >&5
18437   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
18438     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
18439   echo $ac_n "(cached) $ac_c" 1>&6
18440 else
18441   
18442       
18443       ac_ext=C
18444 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18445 ac_cpp='$CXXCPP $CPPFLAGS'
18446 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18447 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18448 cross_compiling=$ac_cv_prog_cxx_cross
18449
18450       cat > conftest.$ac_ext <<EOF
18451 #line 18452 "configure"
18452 #include "confdefs.h"
18453 #include <math.h>
18454 int main() {
18455  sincosl(0, 0, 0);
18456 ; return 0; }
18457 EOF
18458 if { (eval echo configure:18459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18459   rm -rf conftest*
18460   glibcpp_cv_func_sincosl_use=yes
18461 else
18462   echo "configure: failed program was:" >&5
18463   cat conftest.$ac_ext >&5
18464   rm -rf conftest*
18465   glibcpp_cv_func_sincosl_use=no
18466 fi
18467 rm -f conftest*
18468       ac_ext=c
18469 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18470 ac_cpp='$CPP $CPPFLAGS'
18471 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18472 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18473 cross_compiling=$ac_cv_prog_cc_cross
18474
18475     
18476 fi
18477
18478   fi
18479   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
18480
18481   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
18482     for ac_func in sincosl
18483 do
18484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18485 echo "configure:18486: checking for $ac_func" >&5
18486 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18487   echo $ac_n "(cached) $ac_c" 1>&6
18488 else
18489   cat > conftest.$ac_ext <<EOF
18490 #line 18491 "configure"
18491 #include "confdefs.h"
18492 /* System header to define __stub macros and hopefully few prototypes,
18493     which can conflict with char $ac_func(); below.  */
18494 #include <assert.h>
18495 /* Override any gcc2 internal prototype to avoid an error.  */
18496 /* We use char because int might match the return type of a gcc2
18497     builtin and then its argument prototype would still apply.  */
18498 char $ac_func();
18499
18500 int main() {
18501
18502 /* The GNU C library defines this for functions which it implements
18503     to always fail with ENOSYS.  Some functions are actually named
18504     something starting with __ and the normal name is an alias.  */
18505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18506 choke me
18507 #else
18508 $ac_func();
18509 #endif
18510
18511 ; return 0; }
18512 EOF
18513 if { (eval echo configure:18514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18514   rm -rf conftest*
18515   eval "ac_cv_func_$ac_func=yes"
18516 else
18517   echo "configure: failed program was:" >&5
18518   cat conftest.$ac_ext >&5
18519   rm -rf conftest*
18520   eval "ac_cv_func_$ac_func=no"
18521 fi
18522 rm -f conftest*
18523 fi
18524
18525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18526   echo "$ac_t""yes" 1>&6
18527     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18528   cat >> confdefs.h <<EOF
18529 #define $ac_tr_func 1
18530 EOF
18531  
18532 else
18533   echo "$ac_t""no" 1>&6
18534 fi
18535 done
18536     
18537   else
18538     
18539   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
18540 echo "configure:18541: checking for _sincosl declaration" >&5
18541   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
18542     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
18543   echo $ac_n "(cached) $ac_c" 1>&6
18544 else
18545   
18546       
18547       ac_ext=C
18548 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18549 ac_cpp='$CXXCPP $CPPFLAGS'
18550 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18551 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18552 cross_compiling=$ac_cv_prog_cxx_cross
18553
18554       cat > conftest.$ac_ext <<EOF
18555 #line 18556 "configure"
18556 #include "confdefs.h"
18557 #include <math.h>
18558 int main() {
18559  _sincosl(0, 0, 0);
18560 ; return 0; }
18561 EOF
18562 if { (eval echo configure:18563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18563   rm -rf conftest*
18564   glibcpp_cv_func__sincosl_use=yes
18565 else
18566   echo "configure: failed program was:" >&5
18567   cat conftest.$ac_ext >&5
18568   rm -rf conftest*
18569   glibcpp_cv_func__sincosl_use=no
18570 fi
18571 rm -f conftest*
18572       ac_ext=c
18573 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18574 ac_cpp='$CPP $CPPFLAGS'
18575 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18576 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18577 cross_compiling=$ac_cv_prog_cc_cross
18578
18579     
18580 fi
18581
18582   fi
18583   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
18584
18585     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
18586       for ac_func in _sincosl
18587 do
18588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18589 echo "configure:18590: checking for $ac_func" >&5
18590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18591   echo $ac_n "(cached) $ac_c" 1>&6
18592 else
18593   cat > conftest.$ac_ext <<EOF
18594 #line 18595 "configure"
18595 #include "confdefs.h"
18596 /* System header to define __stub macros and hopefully few prototypes,
18597     which can conflict with char $ac_func(); below.  */
18598 #include <assert.h>
18599 /* Override any gcc2 internal prototype to avoid an error.  */
18600 /* We use char because int might match the return type of a gcc2
18601     builtin and then its argument prototype would still apply.  */
18602 char $ac_func();
18603
18604 int main() {
18605
18606 /* The GNU C library defines this for functions which it implements
18607     to always fail with ENOSYS.  Some functions are actually named
18608     something starting with __ and the normal name is an alias.  */
18609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18610 choke me
18611 #else
18612 $ac_func();
18613 #endif
18614
18615 ; return 0; }
18616 EOF
18617 if { (eval echo configure:18618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18618   rm -rf conftest*
18619   eval "ac_cv_func_$ac_func=yes"
18620 else
18621   echo "configure: failed program was:" >&5
18622   cat conftest.$ac_ext >&5
18623   rm -rf conftest*
18624   eval "ac_cv_func_$ac_func=no"
18625 fi
18626 rm -f conftest*
18627 fi
18628
18629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18630   echo "$ac_t""yes" 1>&6
18631     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18632   cat >> confdefs.h <<EOF
18633 #define $ac_tr_func 1
18634 EOF
18635  
18636 else
18637   echo "$ac_t""no" 1>&6
18638 fi
18639 done
18640     
18641     fi
18642   fi
18643
18644   
18645   
18646   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
18647 echo "configure:18648: checking for finitel declaration" >&5
18648   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
18649     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
18650   echo $ac_n "(cached) $ac_c" 1>&6
18651 else
18652   
18653       
18654       ac_ext=C
18655 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18656 ac_cpp='$CXXCPP $CPPFLAGS'
18657 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18658 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18659 cross_compiling=$ac_cv_prog_cxx_cross
18660
18661       cat > conftest.$ac_ext <<EOF
18662 #line 18663 "configure"
18663 #include "confdefs.h"
18664 #include <math.h>
18665                       #ifdef HAVE_IEEEFP_H
18666                       #include <ieeefp.h>
18667                       #endif
18668                      
18669 int main() {
18670  finitel(0);
18671 ; return 0; }
18672 EOF
18673 if { (eval echo configure:18674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18674   rm -rf conftest*
18675   glibcpp_cv_func_finitel_use=yes
18676 else
18677   echo "configure: failed program was:" >&5
18678   cat conftest.$ac_ext >&5
18679   rm -rf conftest*
18680   glibcpp_cv_func_finitel_use=no
18681 fi
18682 rm -f conftest*
18683       ac_ext=c
18684 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18685 ac_cpp='$CPP $CPPFLAGS'
18686 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18687 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18688 cross_compiling=$ac_cv_prog_cc_cross
18689
18690     
18691 fi
18692
18693   fi
18694   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
18695
18696   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
18697     for ac_func in finitel
18698 do
18699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18700 echo "configure:18701: checking for $ac_func" >&5
18701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18702   echo $ac_n "(cached) $ac_c" 1>&6
18703 else
18704   cat > conftest.$ac_ext <<EOF
18705 #line 18706 "configure"
18706 #include "confdefs.h"
18707 /* System header to define __stub macros and hopefully few prototypes,
18708     which can conflict with char $ac_func(); below.  */
18709 #include <assert.h>
18710 /* Override any gcc2 internal prototype to avoid an error.  */
18711 /* We use char because int might match the return type of a gcc2
18712     builtin and then its argument prototype would still apply.  */
18713 char $ac_func();
18714
18715 int main() {
18716
18717 /* The GNU C library defines this for functions which it implements
18718     to always fail with ENOSYS.  Some functions are actually named
18719     something starting with __ and the normal name is an alias.  */
18720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18721 choke me
18722 #else
18723 $ac_func();
18724 #endif
18725
18726 ; return 0; }
18727 EOF
18728 if { (eval echo configure:18729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18729   rm -rf conftest*
18730   eval "ac_cv_func_$ac_func=yes"
18731 else
18732   echo "configure: failed program was:" >&5
18733   cat conftest.$ac_ext >&5
18734   rm -rf conftest*
18735   eval "ac_cv_func_$ac_func=no"
18736 fi
18737 rm -f conftest*
18738 fi
18739
18740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18741   echo "$ac_t""yes" 1>&6
18742     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18743   cat >> confdefs.h <<EOF
18744 #define $ac_tr_func 1
18745 EOF
18746  
18747 else
18748   echo "$ac_t""no" 1>&6
18749 fi
18750 done
18751     
18752   else
18753     
18754   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
18755 echo "configure:18756: checking for _finitel declaration" >&5
18756   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
18757     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
18758   echo $ac_n "(cached) $ac_c" 1>&6
18759 else
18760   
18761       
18762       ac_ext=C
18763 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18764 ac_cpp='$CXXCPP $CPPFLAGS'
18765 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18766 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18767 cross_compiling=$ac_cv_prog_cxx_cross
18768
18769       cat > conftest.$ac_ext <<EOF
18770 #line 18771 "configure"
18771 #include "confdefs.h"
18772 #include <math.h>
18773                       #ifdef HAVE_IEEEFP_H
18774                       #include <ieeefp.h>
18775                       #endif
18776                      
18777 int main() {
18778  _finitel(0);
18779 ; return 0; }
18780 EOF
18781 if { (eval echo configure:18782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18782   rm -rf conftest*
18783   glibcpp_cv_func__finitel_use=yes
18784 else
18785   echo "configure: failed program was:" >&5
18786   cat conftest.$ac_ext >&5
18787   rm -rf conftest*
18788   glibcpp_cv_func__finitel_use=no
18789 fi
18790 rm -f conftest*
18791       ac_ext=c
18792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18793 ac_cpp='$CPP $CPPFLAGS'
18794 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18795 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18796 cross_compiling=$ac_cv_prog_cc_cross
18797
18798     
18799 fi
18800
18801   fi
18802   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
18803
18804     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
18805       for ac_func in _finitel
18806 do
18807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18808 echo "configure:18809: checking for $ac_func" >&5
18809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18810   echo $ac_n "(cached) $ac_c" 1>&6
18811 else
18812   cat > conftest.$ac_ext <<EOF
18813 #line 18814 "configure"
18814 #include "confdefs.h"
18815 /* System header to define __stub macros and hopefully few prototypes,
18816     which can conflict with char $ac_func(); below.  */
18817 #include <assert.h>
18818 /* Override any gcc2 internal prototype to avoid an error.  */
18819 /* We use char because int might match the return type of a gcc2
18820     builtin and then its argument prototype would still apply.  */
18821 char $ac_func();
18822
18823 int main() {
18824
18825 /* The GNU C library defines this for functions which it implements
18826     to always fail with ENOSYS.  Some functions are actually named
18827     something starting with __ and the normal name is an alias.  */
18828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18829 choke me
18830 #else
18831 $ac_func();
18832 #endif
18833
18834 ; return 0; }
18835 EOF
18836 if { (eval echo configure:18837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18837   rm -rf conftest*
18838   eval "ac_cv_func_$ac_func=yes"
18839 else
18840   echo "configure: failed program was:" >&5
18841   cat conftest.$ac_ext >&5
18842   rm -rf conftest*
18843   eval "ac_cv_func_$ac_func=no"
18844 fi
18845 rm -f conftest*
18846 fi
18847
18848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18849   echo "$ac_t""yes" 1>&6
18850     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18851   cat >> confdefs.h <<EOF
18852 #define $ac_tr_func 1
18853 EOF
18854  
18855 else
18856   echo "$ac_t""no" 1>&6
18857 fi
18858 done
18859     
18860     fi
18861   fi
18862
18863
18864         
18865     
18866   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
18867 echo "configure:18868: checking for _float trig functions" >&5
18868   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
18869   echo $ac_n "(cached) $ac_c" 1>&6
18870 else
18871   
18872     
18873     ac_ext=C
18874 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18875 ac_cpp='$CXXCPP $CPPFLAGS'
18876 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18877 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18878 cross_compiling=$ac_cv_prog_cxx_cross
18879
18880     cat > conftest.$ac_ext <<EOF
18881 #line 18882 "configure"
18882 #include "confdefs.h"
18883 #include <math.h>
18884 int main() {
18885  `for x in _acosf _asinf _atanf \
18886                                           _cosf _sinf _tanf \
18887                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
18888 ; return 0; }
18889 EOF
18890 if { (eval echo configure:18891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18891   rm -rf conftest*
18892   glibcpp_cv_func__float_trig_use=yes
18893 else
18894   echo "configure: failed program was:" >&5
18895   cat conftest.$ac_ext >&5
18896   rm -rf conftest*
18897   glibcpp_cv_func__float_trig_use=no
18898 fi
18899 rm -f conftest*
18900     ac_ext=c
18901 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18902 ac_cpp='$CPP $CPPFLAGS'
18903 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18904 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18905 cross_compiling=$ac_cv_prog_cc_cross
18906
18907 fi
18908
18909   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
18910   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
18911     for ac_func in _acosf _asinf _atanf \
18912                                           _cosf _sinf _tanf \
18913                                           _coshf _sinhf _tanhf
18914 do
18915 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18916 echo "configure:18917: checking for $ac_func" >&5
18917 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18918   echo $ac_n "(cached) $ac_c" 1>&6
18919 else
18920   cat > conftest.$ac_ext <<EOF
18921 #line 18922 "configure"
18922 #include "confdefs.h"
18923 /* System header to define __stub macros and hopefully few prototypes,
18924     which can conflict with char $ac_func(); below.  */
18925 #include <assert.h>
18926 /* Override any gcc2 internal prototype to avoid an error.  */
18927 /* We use char because int might match the return type of a gcc2
18928     builtin and then its argument prototype would still apply.  */
18929 char $ac_func();
18930
18931 int main() {
18932
18933 /* The GNU C library defines this for functions which it implements
18934     to always fail with ENOSYS.  Some functions are actually named
18935     something starting with __ and the normal name is an alias.  */
18936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18937 choke me
18938 #else
18939 $ac_func();
18940 #endif
18941
18942 ; return 0; }
18943 EOF
18944 if { (eval echo configure:18945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18945   rm -rf conftest*
18946   eval "ac_cv_func_$ac_func=yes"
18947 else
18948   echo "configure: failed program was:" >&5
18949   cat conftest.$ac_ext >&5
18950   rm -rf conftest*
18951   eval "ac_cv_func_$ac_func=no"
18952 fi
18953 rm -f conftest*
18954 fi
18955
18956 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18957   echo "$ac_t""yes" 1>&6
18958     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18959   cat >> confdefs.h <<EOF
18960 #define $ac_tr_func 1
18961 EOF
18962  
18963 else
18964   echo "$ac_t""no" 1>&6
18965 fi
18966 done
18967
18968   fi
18969
18970   
18971   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
18972 echo "configure:18973: checking for _float round functions" >&5
18973   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
18974   echo $ac_n "(cached) $ac_c" 1>&6
18975 else
18976   
18977     
18978     ac_ext=C
18979 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18980 ac_cpp='$CXXCPP $CPPFLAGS'
18981 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18982 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18983 cross_compiling=$ac_cv_prog_cxx_cross
18984
18985     cat > conftest.$ac_ext <<EOF
18986 #line 18987 "configure"
18987 #include "confdefs.h"
18988 #include <math.h>
18989 int main() {
18990  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
18991 ; return 0; }
18992 EOF
18993 if { (eval echo configure:18994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18994   rm -rf conftest*
18995   glibcpp_cv_func__float_round_use=yes
18996 else
18997   echo "configure: failed program was:" >&5
18998   cat conftest.$ac_ext >&5
18999   rm -rf conftest*
19000   glibcpp_cv_func__float_round_use=no
19001 fi
19002 rm -f conftest*
19003     ac_ext=c
19004 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19005 ac_cpp='$CPP $CPPFLAGS'
19006 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19007 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19008 cross_compiling=$ac_cv_prog_cc_cross
19009
19010 fi
19011
19012   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
19013   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
19014     for ac_func in _ceilf _floorf
19015 do
19016 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19017 echo "configure:19018: checking for $ac_func" >&5
19018 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19019   echo $ac_n "(cached) $ac_c" 1>&6
19020 else
19021   cat > conftest.$ac_ext <<EOF
19022 #line 19023 "configure"
19023 #include "confdefs.h"
19024 /* System header to define __stub macros and hopefully few prototypes,
19025     which can conflict with char $ac_func(); below.  */
19026 #include <assert.h>
19027 /* Override any gcc2 internal prototype to avoid an error.  */
19028 /* We use char because int might match the return type of a gcc2
19029     builtin and then its argument prototype would still apply.  */
19030 char $ac_func();
19031
19032 int main() {
19033
19034 /* The GNU C library defines this for functions which it implements
19035     to always fail with ENOSYS.  Some functions are actually named
19036     something starting with __ and the normal name is an alias.  */
19037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19038 choke me
19039 #else
19040 $ac_func();
19041 #endif
19042
19043 ; return 0; }
19044 EOF
19045 if { (eval echo configure:19046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19046   rm -rf conftest*
19047   eval "ac_cv_func_$ac_func=yes"
19048 else
19049   echo "configure: failed program was:" >&5
19050   cat conftest.$ac_ext >&5
19051   rm -rf conftest*
19052   eval "ac_cv_func_$ac_func=no"
19053 fi
19054 rm -f conftest*
19055 fi
19056
19057 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19058   echo "$ac_t""yes" 1>&6
19059     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19060   cat >> confdefs.h <<EOF
19061 #define $ac_tr_func 1
19062 EOF
19063  
19064 else
19065   echo "$ac_t""no" 1>&6
19066 fi
19067 done
19068
19069   fi
19070
19071
19072     
19073   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
19074 echo "configure:19075: checking for _long double trig functions" >&5
19075   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
19076   echo $ac_n "(cached) $ac_c" 1>&6
19077 else
19078   
19079     
19080     ac_ext=C
19081 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19082 ac_cpp='$CXXCPP $CPPFLAGS'
19083 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19084 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19085 cross_compiling=$ac_cv_prog_cxx_cross
19086
19087     cat > conftest.$ac_ext <<EOF
19088 #line 19089 "configure"
19089 #include "confdefs.h"
19090 #include <math.h>
19091 int main() {
19092  `for x in _acosl _asinl _atanl \
19093                                           _cosl _sinl _tanl \
19094                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
19095 ; return 0; }
19096 EOF
19097 if { (eval echo configure:19098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19098   rm -rf conftest*
19099   glibcpp_cv_func__long_double_trig_use=yes
19100 else
19101   echo "configure: failed program was:" >&5
19102   cat conftest.$ac_ext >&5
19103   rm -rf conftest*
19104   glibcpp_cv_func__long_double_trig_use=no
19105 fi
19106 rm -f conftest*
19107     ac_ext=c
19108 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19109 ac_cpp='$CPP $CPPFLAGS'
19110 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19111 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19112 cross_compiling=$ac_cv_prog_cc_cross
19113
19114 fi
19115
19116   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
19117   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
19118     for ac_func in _acosl _asinl _atanl \
19119                                           _cosl _sinl _tanl \
19120                                           _coshl _sinhl _tanhl
19121 do
19122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19123 echo "configure:19124: checking for $ac_func" >&5
19124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19125   echo $ac_n "(cached) $ac_c" 1>&6
19126 else
19127   cat > conftest.$ac_ext <<EOF
19128 #line 19129 "configure"
19129 #include "confdefs.h"
19130 /* System header to define __stub macros and hopefully few prototypes,
19131     which can conflict with char $ac_func(); below.  */
19132 #include <assert.h>
19133 /* Override any gcc2 internal prototype to avoid an error.  */
19134 /* We use char because int might match the return type of a gcc2
19135     builtin and then its argument prototype would still apply.  */
19136 char $ac_func();
19137
19138 int main() {
19139
19140 /* The GNU C library defines this for functions which it implements
19141     to always fail with ENOSYS.  Some functions are actually named
19142     something starting with __ and the normal name is an alias.  */
19143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19144 choke me
19145 #else
19146 $ac_func();
19147 #endif
19148
19149 ; return 0; }
19150 EOF
19151 if { (eval echo configure:19152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19152   rm -rf conftest*
19153   eval "ac_cv_func_$ac_func=yes"
19154 else
19155   echo "configure: failed program was:" >&5
19156   cat conftest.$ac_ext >&5
19157   rm -rf conftest*
19158   eval "ac_cv_func_$ac_func=no"
19159 fi
19160 rm -f conftest*
19161 fi
19162
19163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19164   echo "$ac_t""yes" 1>&6
19165     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19166   cat >> confdefs.h <<EOF
19167 #define $ac_tr_func 1
19168 EOF
19169  
19170 else
19171   echo "$ac_t""no" 1>&6
19172 fi
19173 done
19174
19175   fi
19176
19177   
19178   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
19179 echo "configure:19180: checking for _long double round functions" >&5
19180   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
19181   echo $ac_n "(cached) $ac_c" 1>&6
19182 else
19183   
19184     
19185     ac_ext=C
19186 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19187 ac_cpp='$CXXCPP $CPPFLAGS'
19188 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19189 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19190 cross_compiling=$ac_cv_prog_cxx_cross
19191
19192     cat > conftest.$ac_ext <<EOF
19193 #line 19194 "configure"
19194 #include "confdefs.h"
19195 #include <math.h>
19196 int main() {
19197  `for x in _ceill _floorl; do echo "$x (0);"; done` 
19198 ; return 0; }
19199 EOF
19200 if { (eval echo configure:19201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19201   rm -rf conftest*
19202   glibcpp_cv_func__long_double_round_use=yes
19203 else
19204   echo "configure: failed program was:" >&5
19205   cat conftest.$ac_ext >&5
19206   rm -rf conftest*
19207   glibcpp_cv_func__long_double_round_use=no
19208 fi
19209 rm -f conftest*
19210     ac_ext=c
19211 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19212 ac_cpp='$CPP $CPPFLAGS'
19213 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19214 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19215 cross_compiling=$ac_cv_prog_cc_cross
19216
19217 fi
19218
19219   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
19220   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
19221     for ac_func in _ceill _floorl
19222 do
19223 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19224 echo "configure:19225: checking for $ac_func" >&5
19225 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19226   echo $ac_n "(cached) $ac_c" 1>&6
19227 else
19228   cat > conftest.$ac_ext <<EOF
19229 #line 19230 "configure"
19230 #include "confdefs.h"
19231 /* System header to define __stub macros and hopefully few prototypes,
19232     which can conflict with char $ac_func(); below.  */
19233 #include <assert.h>
19234 /* Override any gcc2 internal prototype to avoid an error.  */
19235 /* We use char because int might match the return type of a gcc2
19236     builtin and then its argument prototype would still apply.  */
19237 char $ac_func();
19238
19239 int main() {
19240
19241 /* The GNU C library defines this for functions which it implements
19242     to always fail with ENOSYS.  Some functions are actually named
19243     something starting with __ and the normal name is an alias.  */
19244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19245 choke me
19246 #else
19247 $ac_func();
19248 #endif
19249
19250 ; return 0; }
19251 EOF
19252 if { (eval echo configure:19253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19253   rm -rf conftest*
19254   eval "ac_cv_func_$ac_func=yes"
19255 else
19256   echo "configure: failed program was:" >&5
19257   cat conftest.$ac_ext >&5
19258   rm -rf conftest*
19259   eval "ac_cv_func_$ac_func=no"
19260 fi
19261 rm -f conftest*
19262 fi
19263
19264 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19265   echo "$ac_t""yes" 1>&6
19266     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19267   cat >> confdefs.h <<EOF
19268 #define $ac_tr_func 1
19269 EOF
19270  
19271 else
19272   echo "$ac_t""no" 1>&6
19273 fi
19274 done
19275
19276   fi
19277
19278
19279   LIBS="$ac_save_LIBS"
19280   CXXFLAGS="$ac_save_CXXFLAGS"
19281
19282   
19283     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
19284 echo "configure:19285: checking for main in -lm" >&5
19285 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
19286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19287   echo $ac_n "(cached) $ac_c" 1>&6
19288 else
19289   ac_save_LIBS="$LIBS"
19290 LIBS="-lm  $LIBS"
19291 cat > conftest.$ac_ext <<EOF
19292 #line 19293 "configure"
19293 #include "confdefs.h"
19294
19295 int main() {
19296 main()
19297 ; return 0; }
19298 EOF
19299 if { (eval echo configure:19300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19300   rm -rf conftest*
19301   eval "ac_cv_lib_$ac_lib_var=yes"
19302 else
19303   echo "configure: failed program was:" >&5
19304   cat conftest.$ac_ext >&5
19305   rm -rf conftest*
19306   eval "ac_cv_lib_$ac_lib_var=no"
19307 fi
19308 rm -f conftest*
19309 LIBS="$ac_save_LIBS"
19310
19311 fi
19312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19313   echo "$ac_t""yes" 1>&6
19314     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
19315     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
19316   cat >> confdefs.h <<EOF
19317 #define $ac_tr_lib 1
19318 EOF
19319
19320   LIBS="-lm $LIBS"
19321
19322 else
19323   echo "$ac_t""no" 1>&6
19324 fi
19325
19326   for ac_func in nan copysignf
19327 do
19328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19329 echo "configure:19330: checking for $ac_func" >&5
19330 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19331   echo $ac_n "(cached) $ac_c" 1>&6
19332 else
19333   cat > conftest.$ac_ext <<EOF
19334 #line 19335 "configure"
19335 #include "confdefs.h"
19336 /* System header to define __stub macros and hopefully few prototypes,
19337     which can conflict with char $ac_func(); below.  */
19338 #include <assert.h>
19339 /* Override any gcc2 internal prototype to avoid an error.  */
19340 /* We use char because int might match the return type of a gcc2
19341     builtin and then its argument prototype would still apply.  */
19342 char $ac_func();
19343
19344 int main() {
19345
19346 /* The GNU C library defines this for functions which it implements
19347     to always fail with ENOSYS.  Some functions are actually named
19348     something starting with __ and the normal name is an alias.  */
19349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19350 choke me
19351 #else
19352 $ac_func();
19353 #endif
19354
19355 ; return 0; }
19356 EOF
19357 if { (eval echo configure:19358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19358   rm -rf conftest*
19359   eval "ac_cv_func_$ac_func=yes"
19360 else
19361   echo "configure: failed program was:" >&5
19362   cat conftest.$ac_ext >&5
19363   rm -rf conftest*
19364   eval "ac_cv_func_$ac_func=no"
19365 fi
19366 rm -f conftest*
19367 fi
19368
19369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19370   echo "$ac_t""yes" 1>&6
19371     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19372   cat >> confdefs.h <<EOF
19373 #define $ac_tr_func 1
19374 EOF
19375  
19376 else
19377   echo "$ac_t""no" 1>&6
19378 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
19379 fi
19380 done
19381
19382
19383     for ac_func in __signbit
19384 do
19385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19386 echo "configure:19387: checking for $ac_func" >&5
19387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19388   echo $ac_n "(cached) $ac_c" 1>&6
19389 else
19390   cat > conftest.$ac_ext <<EOF
19391 #line 19392 "configure"
19392 #include "confdefs.h"
19393 /* System header to define __stub macros and hopefully few prototypes,
19394     which can conflict with char $ac_func(); below.  */
19395 #include <assert.h>
19396 /* Override any gcc2 internal prototype to avoid an error.  */
19397 /* We use char because int might match the return type of a gcc2
19398     builtin and then its argument prototype would still apply.  */
19399 char $ac_func();
19400
19401 int main() {
19402
19403 /* The GNU C library defines this for functions which it implements
19404     to always fail with ENOSYS.  Some functions are actually named
19405     something starting with __ and the normal name is an alias.  */
19406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19407 choke me
19408 #else
19409 $ac_func();
19410 #endif
19411
19412 ; return 0; }
19413 EOF
19414 if { (eval echo configure:19415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19415   rm -rf conftest*
19416   eval "ac_cv_func_$ac_func=yes"
19417 else
19418   echo "configure: failed program was:" >&5
19419   cat conftest.$ac_ext >&5
19420   rm -rf conftest*
19421   eval "ac_cv_func_$ac_func=no"
19422 fi
19423 rm -f conftest*
19424 fi
19425
19426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19427   echo "$ac_t""yes" 1>&6
19428     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19429   cat >> confdefs.h <<EOF
19430 #define $ac_tr_func 1
19431 EOF
19432  
19433 else
19434   echo "$ac_t""no" 1>&6
19435 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
19436 fi
19437 done
19438
19439   for ac_func in __signbitf
19440 do
19441 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19442 echo "configure:19443: checking for $ac_func" >&5
19443 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19444   echo $ac_n "(cached) $ac_c" 1>&6
19445 else
19446   cat > conftest.$ac_ext <<EOF
19447 #line 19448 "configure"
19448 #include "confdefs.h"
19449 /* System header to define __stub macros and hopefully few prototypes,
19450     which can conflict with char $ac_func(); below.  */
19451 #include <assert.h>
19452 /* Override any gcc2 internal prototype to avoid an error.  */
19453 /* We use char because int might match the return type of a gcc2
19454     builtin and then its argument prototype would still apply.  */
19455 char $ac_func();
19456
19457 int main() {
19458
19459 /* The GNU C library defines this for functions which it implements
19460     to always fail with ENOSYS.  Some functions are actually named
19461     something starting with __ and the normal name is an alias.  */
19462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19463 choke me
19464 #else
19465 $ac_func();
19466 #endif
19467
19468 ; return 0; }
19469 EOF
19470 if { (eval echo configure:19471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19471   rm -rf conftest*
19472   eval "ac_cv_func_$ac_func=yes"
19473 else
19474   echo "configure: failed program was:" >&5
19475   cat conftest.$ac_ext >&5
19476   rm -rf conftest*
19477   eval "ac_cv_func_$ac_func=no"
19478 fi
19479 rm -f conftest*
19480 fi
19481
19482 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19483   echo "$ac_t""yes" 1>&6
19484     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19485   cat >> confdefs.h <<EOF
19486 #define $ac_tr_func 1
19487 EOF
19488  
19489 else
19490   echo "$ac_t""no" 1>&6
19491 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
19492 fi
19493 done
19494
19495
19496           if test x$ac_cv_func_copysignl = x"yes"; then
19497     for ac_func in __signbitl
19498 do
19499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19500 echo "configure:19501: checking for $ac_func" >&5
19501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19502   echo $ac_n "(cached) $ac_c" 1>&6
19503 else
19504   cat > conftest.$ac_ext <<EOF
19505 #line 19506 "configure"
19506 #include "confdefs.h"
19507 /* System header to define __stub macros and hopefully few prototypes,
19508     which can conflict with char $ac_func(); below.  */
19509 #include <assert.h>
19510 /* Override any gcc2 internal prototype to avoid an error.  */
19511 /* We use char because int might match the return type of a gcc2
19512     builtin and then its argument prototype would still apply.  */
19513 char $ac_func();
19514
19515 int main() {
19516
19517 /* The GNU C library defines this for functions which it implements
19518     to always fail with ENOSYS.  Some functions are actually named
19519     something starting with __ and the normal name is an alias.  */
19520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19521 choke me
19522 #else
19523 $ac_func();
19524 #endif
19525
19526 ; return 0; }
19527 EOF
19528 if { (eval echo configure:19529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19529   rm -rf conftest*
19530   eval "ac_cv_func_$ac_func=yes"
19531 else
19532   echo "configure: failed program was:" >&5
19533   cat conftest.$ac_ext >&5
19534   rm -rf conftest*
19535   eval "ac_cv_func_$ac_func=no"
19536 fi
19537 rm -f conftest*
19538 fi
19539
19540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19541   echo "$ac_t""yes" 1>&6
19542     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19543   cat >> confdefs.h <<EOF
19544 #define $ac_tr_func 1
19545 EOF
19546  
19547 else
19548   echo "$ac_t""no" 1>&6
19549 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
19550 fi
19551 done
19552
19553   fi
19554
19555   
19556
19557   
19558
19559       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
19560 echo "configure:19561: checking for mbstate_t" >&5
19561   cat > conftest.$ac_ext <<EOF
19562 #line 19563 "configure"
19563 #include "confdefs.h"
19564 #include <wchar.h>
19565 int main() {
19566 mbstate_t teststate;
19567 ; return 0; }
19568 EOF
19569 if { (eval echo configure:19570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19570   rm -rf conftest*
19571   have_mbstate_t=yes
19572 else
19573   echo "configure: failed program was:" >&5
19574   cat conftest.$ac_ext >&5
19575   rm -rf conftest*
19576   have_mbstate_t=no
19577 fi
19578 rm -f conftest*
19579   echo "$ac_t""$have_mbstate_t" 1>&6
19580   if test x"$have_mbstate_t" = xyes; then
19581     cat >> confdefs.h <<\EOF
19582 #define HAVE_MBSTATE_T 1
19583 EOF
19584
19585   fi
19586
19587     for ac_hdr in wchar.h
19588 do
19589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19591 echo "configure:19592: checking for $ac_hdr" >&5
19592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19593   echo $ac_n "(cached) $ac_c" 1>&6
19594 else
19595   cat > conftest.$ac_ext <<EOF
19596 #line 19597 "configure"
19597 #include "confdefs.h"
19598 #include <$ac_hdr>
19599 EOF
19600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19601 { (eval echo configure:19602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19603 if test -z "$ac_err"; then
19604   rm -rf conftest*
19605   eval "ac_cv_header_$ac_safe=yes"
19606 else
19607   echo "$ac_err" >&5
19608   echo "configure: failed program was:" >&5
19609   cat conftest.$ac_ext >&5
19610   rm -rf conftest*
19611   eval "ac_cv_header_$ac_safe=no"
19612 fi
19613 rm -f conftest*
19614 fi
19615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19616   echo "$ac_t""yes" 1>&6
19617     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19618   cat >> confdefs.h <<EOF
19619 #define $ac_tr_hdr 1
19620 EOF
19621  ac_has_wchar_h=yes
19622 else
19623   echo "$ac_t""no" 1>&6
19624 ac_has_wchar_h=no
19625 fi
19626 done
19627
19628   for ac_hdr in wctype.h
19629 do
19630 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19631 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19632 echo "configure:19633: checking for $ac_hdr" >&5
19633 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19634   echo $ac_n "(cached) $ac_c" 1>&6
19635 else
19636   cat > conftest.$ac_ext <<EOF
19637 #line 19638 "configure"
19638 #include "confdefs.h"
19639 #include <$ac_hdr>
19640 EOF
19641 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19642 { (eval echo configure:19643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19643 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19644 if test -z "$ac_err"; then
19645   rm -rf conftest*
19646   eval "ac_cv_header_$ac_safe=yes"
19647 else
19648   echo "$ac_err" >&5
19649   echo "configure: failed program was:" >&5
19650   cat conftest.$ac_ext >&5
19651   rm -rf conftest*
19652   eval "ac_cv_header_$ac_safe=no"
19653 fi
19654 rm -f conftest*
19655 fi
19656 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19657   echo "$ac_t""yes" 1>&6
19658     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19659   cat >> confdefs.h <<EOF
19660 #define $ac_tr_hdr 1
19661 EOF
19662  ac_has_wctype_h=yes
19663 else
19664   echo "$ac_t""no" 1>&6
19665 ac_has_wctype_h=no
19666 fi
19667 done
19668
19669   
19670     if test x"$ac_has_wchar_h" = xyes &&
19671      test x"$ac_has_wctype_h" = xyes &&
19672      test x"$enable_c_mbchar" != xno; then
19673       
19674             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
19675 echo "configure:19676: checking for WCHAR_MIN and WCHAR_MAX" >&5
19676     cat > conftest.$ac_ext <<EOF
19677 #line 19678 "configure"
19678 #include "confdefs.h"
19679 #include <wchar.h>
19680 int main() {
19681 int i = WCHAR_MIN; int j = WCHAR_MAX;
19682 ; return 0; }
19683 EOF
19684 if { (eval echo configure:19685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19685   rm -rf conftest*
19686   has_wchar_minmax=yes
19687 else
19688   echo "configure: failed program was:" >&5
19689   cat conftest.$ac_ext >&5
19690   rm -rf conftest*
19691   has_wchar_minmax=no
19692 fi
19693 rm -f conftest*
19694     echo "$ac_t""$has_wchar_minmax" 1>&6
19695     
19696             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
19697 echo "configure:19698: checking for WEOF" >&5
19698     cat > conftest.$ac_ext <<EOF
19699 #line 19700 "configure"
19700 #include "confdefs.h"
19701
19702       #include <wchar.h>
19703       #include <stddef.h>
19704 int main() {
19705 wint_t i = WEOF;
19706 ; return 0; }
19707 EOF
19708 if { (eval echo configure:19709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19709   rm -rf conftest*
19710   has_weof=yes
19711 else
19712   echo "configure: failed program was:" >&5
19713   cat conftest.$ac_ext >&5
19714   rm -rf conftest*
19715   has_weof=no
19716 fi
19717 rm -f conftest*
19718     echo "$ac_t""$has_weof" 1>&6
19719   
19720         ac_wfuncs=yes
19721     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
19722 do
19723 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19724 echo "configure:19725: checking for $ac_func" >&5
19725 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19726   echo $ac_n "(cached) $ac_c" 1>&6
19727 else
19728   cat > conftest.$ac_ext <<EOF
19729 #line 19730 "configure"
19730 #include "confdefs.h"
19731 /* System header to define __stub macros and hopefully few prototypes,
19732     which can conflict with char $ac_func(); below.  */
19733 #include <assert.h>
19734 /* Override any gcc2 internal prototype to avoid an error.  */
19735 /* We use char because int might match the return type of a gcc2
19736     builtin and then its argument prototype would still apply.  */
19737 char $ac_func();
19738
19739 int main() {
19740
19741 /* The GNU C library defines this for functions which it implements
19742     to always fail with ENOSYS.  Some functions are actually named
19743     something starting with __ and the normal name is an alias.  */
19744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19745 choke me
19746 #else
19747 $ac_func();
19748 #endif
19749
19750 ; return 0; }
19751 EOF
19752 if { (eval echo configure:19753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19753   rm -rf conftest*
19754   eval "ac_cv_func_$ac_func=yes"
19755 else
19756   echo "configure: failed program was:" >&5
19757   cat conftest.$ac_ext >&5
19758   rm -rf conftest*
19759   eval "ac_cv_func_$ac_func=no"
19760 fi
19761 rm -f conftest*
19762 fi
19763
19764 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19765   echo "$ac_t""yes" 1>&6
19766     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19767   cat >> confdefs.h <<EOF
19768 #define $ac_tr_func 1
19769 EOF
19770  
19771 else
19772   echo "$ac_t""no" 1>&6
19773 \
19774     ac_wfuncs=no
19775 fi
19776 done
19777
19778   
19779         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
19780     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
19781     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
19782     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
19783     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
19784     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
19785 do
19786 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19787 echo "configure:19788: checking for $ac_func" >&5
19788 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19789   echo $ac_n "(cached) $ac_c" 1>&6
19790 else
19791   cat > conftest.$ac_ext <<EOF
19792 #line 19793 "configure"
19793 #include "confdefs.h"
19794 /* System header to define __stub macros and hopefully few prototypes,
19795     which can conflict with char $ac_func(); below.  */
19796 #include <assert.h>
19797 /* Override any gcc2 internal prototype to avoid an error.  */
19798 /* We use char because int might match the return type of a gcc2
19799     builtin and then its argument prototype would still apply.  */
19800 char $ac_func();
19801
19802 int main() {
19803
19804 /* The GNU C library defines this for functions which it implements
19805     to always fail with ENOSYS.  Some functions are actually named
19806     something starting with __ and the normal name is an alias.  */
19807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19808 choke me
19809 #else
19810 $ac_func();
19811 #endif
19812
19813 ; return 0; }
19814 EOF
19815 if { (eval echo configure:19816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19816   rm -rf conftest*
19817   eval "ac_cv_func_$ac_func=yes"
19818 else
19819   echo "configure: failed program was:" >&5
19820   cat conftest.$ac_ext >&5
19821   rm -rf conftest*
19822   eval "ac_cv_func_$ac_func=no"
19823 fi
19824 rm -f conftest*
19825 fi
19826
19827 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19828   echo "$ac_t""yes" 1>&6
19829     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19830   cat >> confdefs.h <<EOF
19831 #define $ac_tr_func 1
19832 EOF
19833  
19834 else
19835   echo "$ac_t""no" 1>&6
19836 \
19837     ac_wfuncs=no
19838 fi
19839 done
19840
19841
19842     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
19843 echo "configure:19844: checking for ISO C99 wchar_t support" >&5
19844     if test x"$has_weof" = xyes &&
19845        test x"$has_wchar_minmax" = xyes &&
19846        test x"$ac_wfuncs" = xyes; then
19847       ac_isoC99_wchar_t=yes
19848     else
19849       ac_isoC99_wchar_t=no
19850     fi
19851     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
19852   
19853             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
19854 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
19855 echo "configure:19856: checking for iconv.h" >&5
19856 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19857   echo $ac_n "(cached) $ac_c" 1>&6
19858 else
19859   cat > conftest.$ac_ext <<EOF
19860 #line 19861 "configure"
19861 #include "confdefs.h"
19862 #include <iconv.h>
19863 EOF
19864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19865 { (eval echo configure:19866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19867 if test -z "$ac_err"; then
19868   rm -rf conftest*
19869   eval "ac_cv_header_$ac_safe=yes"
19870 else
19871   echo "$ac_err" >&5
19872   echo "configure: failed program was:" >&5
19873   cat conftest.$ac_ext >&5
19874   rm -rf conftest*
19875   eval "ac_cv_header_$ac_safe=no"
19876 fi
19877 rm -f conftest*
19878 fi
19879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19880   echo "$ac_t""yes" 1>&6
19881   ac_has_iconv_h=yes
19882 else
19883   echo "$ac_t""no" 1>&6
19884 ac_has_iconv_h=no
19885 fi
19886
19887     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
19888 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
19889 echo "configure:19890: checking for langinfo.h" >&5
19890 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19891   echo $ac_n "(cached) $ac_c" 1>&6
19892 else
19893   cat > conftest.$ac_ext <<EOF
19894 #line 19895 "configure"
19895 #include "confdefs.h"
19896 #include <langinfo.h>
19897 EOF
19898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19899 { (eval echo configure:19900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19901 if test -z "$ac_err"; then
19902   rm -rf conftest*
19903   eval "ac_cv_header_$ac_safe=yes"
19904 else
19905   echo "$ac_err" >&5
19906   echo "configure: failed program was:" >&5
19907   cat conftest.$ac_ext >&5
19908   rm -rf conftest*
19909   eval "ac_cv_header_$ac_safe=no"
19910 fi
19911 rm -f conftest*
19912 fi
19913 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19914   echo "$ac_t""yes" 1>&6
19915   ac_has_langinfo_h=yes
19916 else
19917   echo "$ac_t""no" 1>&6
19918 ac_has_langinfo_h=no
19919 fi
19920
19921
19922         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
19923 echo "configure:19924: checking for iconv in -liconv" >&5
19924 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
19925 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19926   echo $ac_n "(cached) $ac_c" 1>&6
19927 else
19928   ac_save_LIBS="$LIBS"
19929 LIBS="-liconv  $LIBS"
19930 cat > conftest.$ac_ext <<EOF
19931 #line 19932 "configure"
19932 #include "confdefs.h"
19933 /* Override any gcc2 internal prototype to avoid an error.  */
19934 /* We use char because int might match the return type of a gcc2
19935     builtin and then its argument prototype would still apply.  */
19936 char iconv();
19937
19938 int main() {
19939 iconv()
19940 ; return 0; }
19941 EOF
19942 if { (eval echo configure:19943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19943   rm -rf conftest*
19944   eval "ac_cv_lib_$ac_lib_var=yes"
19945 else
19946   echo "configure: failed program was:" >&5
19947   cat conftest.$ac_ext >&5
19948   rm -rf conftest*
19949   eval "ac_cv_lib_$ac_lib_var=no"
19950 fi
19951 rm -f conftest*
19952 LIBS="$ac_save_LIBS"
19953
19954 fi
19955 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19956   echo "$ac_t""yes" 1>&6
19957   libiconv="-liconv"
19958 else
19959   echo "$ac_t""no" 1>&6
19960 fi
19961
19962     ac_save_LIBS="$LIBS"
19963     LIBS="$LIBS $libiconv"
19964
19965     for ac_func in iconv_open iconv_close iconv nl_langinfo
19966 do
19967 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19968 echo "configure:19969: checking for $ac_func" >&5
19969 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19970   echo $ac_n "(cached) $ac_c" 1>&6
19971 else
19972   cat > conftest.$ac_ext <<EOF
19973 #line 19974 "configure"
19974 #include "confdefs.h"
19975 /* System header to define __stub macros and hopefully few prototypes,
19976     which can conflict with char $ac_func(); below.  */
19977 #include <assert.h>
19978 /* Override any gcc2 internal prototype to avoid an error.  */
19979 /* We use char because int might match the return type of a gcc2
19980     builtin and then its argument prototype would still apply.  */
19981 char $ac_func();
19982
19983 int main() {
19984
19985 /* The GNU C library defines this for functions which it implements
19986     to always fail with ENOSYS.  Some functions are actually named
19987     something starting with __ and the normal name is an alias.  */
19988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19989 choke me
19990 #else
19991 $ac_func();
19992 #endif
19993
19994 ; return 0; }
19995 EOF
19996 if { (eval echo configure:19997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19997   rm -rf conftest*
19998   eval "ac_cv_func_$ac_func=yes"
19999 else
20000   echo "configure: failed program was:" >&5
20001   cat conftest.$ac_ext >&5
20002   rm -rf conftest*
20003   eval "ac_cv_func_$ac_func=no"
20004 fi
20005 rm -f conftest*
20006 fi
20007
20008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20009   echo "$ac_t""yes" 1>&6
20010     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20011   cat >> confdefs.h <<EOF
20012 #define $ac_tr_func 1
20013 EOF
20014  \
20015     ac_XPG2funcs=yes
20016 else
20017   echo "$ac_t""no" 1>&6
20018 ac_XPG2funcs=no
20019 fi
20020 done
20021
20022   
20023     LIBS="$ac_save_LIBS"
20024
20025     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
20026 echo "configure:20027: checking for XPG2 wchar_t support" >&5
20027     if test x"$ac_has_iconv_h" = xyes &&
20028        test x"$ac_has_langinfo_h" = xyes &&
20029        test x"$ac_XPG2funcs" = xyes; then
20030       ac_XPG2_wchar_t=yes
20031     else
20032       ac_XPG2_wchar_t=no
20033     fi
20034     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
20035   
20036             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
20037 echo "configure:20038: checking for enabled wchar_t specializations" >&5
20038     if test x"$ac_isoC99_wchar_t" = xyes &&
20039        test x"$ac_XPG2_wchar_t" = xyes; then
20040       cat >> confdefs.h <<\EOF
20041 #define _GLIBCPP_USE_WCHAR_T 1
20042 EOF
20043
20044       echo "$ac_t"""yes"" 1>&6
20045     else
20046       echo "$ac_t"""no"" 1>&6
20047     fi
20048   else
20049         echo "configure: warning: wchar_t support disabled." 1>&2
20050   fi
20051
20052   
20053   ac_test_CXXFLAGS="${CXXFLAGS+set}"
20054   ac_save_CXXFLAGS="$CXXFLAGS"
20055   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
20056
20057   
20058   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
20059 echo "configure:20060: checking for strtold declaration" >&5
20060   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
20061     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
20062   echo $ac_n "(cached) $ac_c" 1>&6
20063 else
20064   
20065       
20066       ac_ext=C
20067 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20068 ac_cpp='$CXXCPP $CPPFLAGS'
20069 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20070 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20071 cross_compiling=$ac_cv_prog_cxx_cross
20072
20073       cat > conftest.$ac_ext <<EOF
20074 #line 20075 "configure"
20075 #include "confdefs.h"
20076 #include <stdlib.h>
20077 int main() {
20078  strtold(0, 0);
20079 ; return 0; }
20080 EOF
20081 if { (eval echo configure:20082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20082   rm -rf conftest*
20083   glibcpp_cv_func_strtold_use=yes
20084 else
20085   echo "configure: failed program was:" >&5
20086   cat conftest.$ac_ext >&5
20087   rm -rf conftest*
20088   glibcpp_cv_func_strtold_use=no
20089 fi
20090 rm -f conftest*
20091       ac_ext=c
20092 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20093 ac_cpp='$CPP $CPPFLAGS'
20094 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20095 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20096 cross_compiling=$ac_cv_prog_cc_cross
20097
20098     
20099 fi
20100
20101   fi
20102   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
20103   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
20104     for ac_func in strtold
20105 do
20106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20107 echo "configure:20108: checking for $ac_func" >&5
20108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20109   echo $ac_n "(cached) $ac_c" 1>&6
20110 else
20111   cat > conftest.$ac_ext <<EOF
20112 #line 20113 "configure"
20113 #include "confdefs.h"
20114 /* System header to define __stub macros and hopefully few prototypes,
20115     which can conflict with char $ac_func(); below.  */
20116 #include <assert.h>
20117 /* Override any gcc2 internal prototype to avoid an error.  */
20118 /* We use char because int might match the return type of a gcc2
20119     builtin and then its argument prototype would still apply.  */
20120 char $ac_func();
20121
20122 int main() {
20123
20124 /* The GNU C library defines this for functions which it implements
20125     to always fail with ENOSYS.  Some functions are actually named
20126     something starting with __ and the normal name is an alias.  */
20127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20128 choke me
20129 #else
20130 $ac_func();
20131 #endif
20132
20133 ; return 0; }
20134 EOF
20135 if { (eval echo configure:20136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20136   rm -rf conftest*
20137   eval "ac_cv_func_$ac_func=yes"
20138 else
20139   echo "configure: failed program was:" >&5
20140   cat conftest.$ac_ext >&5
20141   rm -rf conftest*
20142   eval "ac_cv_func_$ac_func=no"
20143 fi
20144 rm -f conftest*
20145 fi
20146
20147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20148   echo "$ac_t""yes" 1>&6
20149     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20150   cat >> confdefs.h <<EOF
20151 #define $ac_tr_func 1
20152 EOF
20153  
20154 else
20155   echo "$ac_t""no" 1>&6
20156 fi
20157 done
20158     
20159   fi
20160
20161   
20162   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
20163 echo "configure:20164: checking for strtof declaration" >&5
20164   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
20165     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
20166   echo $ac_n "(cached) $ac_c" 1>&6
20167 else
20168   
20169       
20170       ac_ext=C
20171 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20172 ac_cpp='$CXXCPP $CPPFLAGS'
20173 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20174 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20175 cross_compiling=$ac_cv_prog_cxx_cross
20176
20177       cat > conftest.$ac_ext <<EOF
20178 #line 20179 "configure"
20179 #include "confdefs.h"
20180 #include <stdlib.h>
20181 int main() {
20182  strtof(0, 0);
20183 ; return 0; }
20184 EOF
20185 if { (eval echo configure:20186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20186   rm -rf conftest*
20187   glibcpp_cv_func_strtof_use=yes
20188 else
20189   echo "configure: failed program was:" >&5
20190   cat conftest.$ac_ext >&5
20191   rm -rf conftest*
20192   glibcpp_cv_func_strtof_use=no
20193 fi
20194 rm -f conftest*
20195       ac_ext=c
20196 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20197 ac_cpp='$CPP $CPPFLAGS'
20198 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20199 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20200 cross_compiling=$ac_cv_prog_cc_cross
20201
20202     
20203 fi
20204
20205   fi
20206   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
20207   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
20208     for ac_func in strtof
20209 do
20210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20211 echo "configure:20212: checking for $ac_func" >&5
20212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20213   echo $ac_n "(cached) $ac_c" 1>&6
20214 else
20215   cat > conftest.$ac_ext <<EOF
20216 #line 20217 "configure"
20217 #include "confdefs.h"
20218 /* System header to define __stub macros and hopefully few prototypes,
20219     which can conflict with char $ac_func(); below.  */
20220 #include <assert.h>
20221 /* Override any gcc2 internal prototype to avoid an error.  */
20222 /* We use char because int might match the return type of a gcc2
20223     builtin and then its argument prototype would still apply.  */
20224 char $ac_func();
20225
20226 int main() {
20227
20228 /* The GNU C library defines this for functions which it implements
20229     to always fail with ENOSYS.  Some functions are actually named
20230     something starting with __ and the normal name is an alias.  */
20231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20232 choke me
20233 #else
20234 $ac_func();
20235 #endif
20236
20237 ; return 0; }
20238 EOF
20239 if { (eval echo configure:20240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20240   rm -rf conftest*
20241   eval "ac_cv_func_$ac_func=yes"
20242 else
20243   echo "configure: failed program was:" >&5
20244   cat conftest.$ac_ext >&5
20245   rm -rf conftest*
20246   eval "ac_cv_func_$ac_func=no"
20247 fi
20248 rm -f conftest*
20249 fi
20250
20251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20252   echo "$ac_t""yes" 1>&6
20253     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20254   cat >> confdefs.h <<EOF
20255 #define $ac_tr_func 1
20256 EOF
20257  
20258 else
20259   echo "$ac_t""no" 1>&6
20260 fi
20261 done
20262     
20263   fi
20264
20265   for ac_func in drand48
20266 do
20267 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20268 echo "configure:20269: checking for $ac_func" >&5
20269 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20270   echo $ac_n "(cached) $ac_c" 1>&6
20271 else
20272   cat > conftest.$ac_ext <<EOF
20273 #line 20274 "configure"
20274 #include "confdefs.h"
20275 /* System header to define __stub macros and hopefully few prototypes,
20276     which can conflict with char $ac_func(); below.  */
20277 #include <assert.h>
20278 /* Override any gcc2 internal prototype to avoid an error.  */
20279 /* We use char because int might match the return type of a gcc2
20280     builtin and then its argument prototype would still apply.  */
20281 char $ac_func();
20282
20283 int main() {
20284
20285 /* The GNU C library defines this for functions which it implements
20286     to always fail with ENOSYS.  Some functions are actually named
20287     something starting with __ and the normal name is an alias.  */
20288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20289 choke me
20290 #else
20291 $ac_func();
20292 #endif
20293
20294 ; return 0; }
20295 EOF
20296 if { (eval echo configure:20297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20297   rm -rf conftest*
20298   eval "ac_cv_func_$ac_func=yes"
20299 else
20300   echo "configure: failed program was:" >&5
20301   cat conftest.$ac_ext >&5
20302   rm -rf conftest*
20303   eval "ac_cv_func_$ac_func=no"
20304 fi
20305 rm -f conftest*
20306 fi
20307
20308 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20309   echo "$ac_t""yes" 1>&6
20310     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20311   cat >> confdefs.h <<EOF
20312 #define $ac_tr_func 1
20313 EOF
20314  
20315 else
20316   echo "$ac_t""no" 1>&6
20317 fi
20318 done
20319
20320
20321   CXXFLAGS="$ac_save_CXXFLAGS"
20322
20323   
20324   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
20325 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
20326 echo "configure:20327: checking for locale.h" >&5
20327 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20328   echo $ac_n "(cached) $ac_c" 1>&6
20329 else
20330   cat > conftest.$ac_ext <<EOF
20331 #line 20332 "configure"
20332 #include "confdefs.h"
20333 #include <locale.h>
20334 EOF
20335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20336 { (eval echo configure:20337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20338 if test -z "$ac_err"; then
20339   rm -rf conftest*
20340   eval "ac_cv_header_$ac_safe=yes"
20341 else
20342   echo "$ac_err" >&5
20343   echo "configure: failed program was:" >&5
20344   cat conftest.$ac_ext >&5
20345   rm -rf conftest*
20346   eval "ac_cv_header_$ac_safe=no"
20347 fi
20348 rm -f conftest*
20349 fi
20350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20351   echo "$ac_t""yes" 1>&6
20352   
20353     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
20354 echo "configure:20355: checking for LC_MESSAGES" >&5
20355 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
20356   echo $ac_n "(cached) $ac_c" 1>&6
20357 else
20358   cat > conftest.$ac_ext <<EOF
20359 #line 20360 "configure"
20360 #include "confdefs.h"
20361 #include <locale.h>
20362 int main() {
20363 return LC_MESSAGES
20364 ; return 0; }
20365 EOF
20366 if { (eval echo configure:20367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20367   rm -rf conftest*
20368   ac_cv_val_LC_MESSAGES=yes
20369 else
20370   echo "configure: failed program was:" >&5
20371   cat conftest.$ac_ext >&5
20372   rm -rf conftest*
20373   ac_cv_val_LC_MESSAGES=no
20374 fi
20375 rm -f conftest*
20376 fi
20377
20378 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
20379     if test $ac_cv_val_LC_MESSAGES = yes; then
20380       cat >> confdefs.h <<\EOF
20381 #define HAVE_LC_MESSAGES 1
20382 EOF
20383
20384     fi
20385   
20386 else
20387   echo "$ac_t""no" 1>&6
20388 fi
20389
20390
20391
20392   cat > conftest.$ac_ext <<EOF
20393 #line 20394 "configure"
20394 #include "confdefs.h"
20395
20396   #include <setjmp.h>
20397   
20398 int main() {
20399 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
20400 ; return 0; }
20401 EOF
20402 if { (eval echo configure:20403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20403   rm -rf conftest*
20404   cat >> confdefs.h <<\EOF
20405 #define HAVE_SIGSETJMP 1
20406 EOF
20407
20408   
20409 else
20410   echo "configure: failed program was:" >&5
20411   cat conftest.$ac_ext >&5
20412 fi
20413 rm -f conftest*
20414
20415   for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
20416 do
20417 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20418 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20419 echo "configure:20420: checking for $ac_hdr" >&5
20420 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20421   echo $ac_n "(cached) $ac_c" 1>&6
20422 else
20423   cat > conftest.$ac_ext <<EOF
20424 #line 20425 "configure"
20425 #include "confdefs.h"
20426 #include <$ac_hdr>
20427 EOF
20428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20429 { (eval echo configure:20430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20430 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20431 if test -z "$ac_err"; then
20432   rm -rf conftest*
20433   eval "ac_cv_header_$ac_safe=yes"
20434 else
20435   echo "$ac_err" >&5
20436   echo "configure: failed program was:" >&5
20437   cat conftest.$ac_ext >&5
20438   rm -rf conftest*
20439   eval "ac_cv_header_$ac_safe=no"
20440 fi
20441 rm -f conftest*
20442 fi
20443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20444   echo "$ac_t""yes" 1>&6
20445     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20446   cat >> confdefs.h <<EOF
20447 #define $ac_tr_hdr 1
20448 EOF
20449  
20450 else
20451   echo "$ac_t""no" 1>&6
20452 fi
20453 done
20454
20455 for ac_func in getpagesize
20456 do
20457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20458 echo "configure:20459: checking for $ac_func" >&5
20459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20460   echo $ac_n "(cached) $ac_c" 1>&6
20461 else
20462   cat > conftest.$ac_ext <<EOF
20463 #line 20464 "configure"
20464 #include "confdefs.h"
20465 /* System header to define __stub macros and hopefully few prototypes,
20466     which can conflict with char $ac_func(); below.  */
20467 #include <assert.h>
20468 /* Override any gcc2 internal prototype to avoid an error.  */
20469 /* We use char because int might match the return type of a gcc2
20470     builtin and then its argument prototype would still apply.  */
20471 char $ac_func();
20472
20473 int main() {
20474
20475 /* The GNU C library defines this for functions which it implements
20476     to always fail with ENOSYS.  Some functions are actually named
20477     something starting with __ and the normal name is an alias.  */
20478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20479 choke me
20480 #else
20481 $ac_func();
20482 #endif
20483
20484 ; return 0; }
20485 EOF
20486 if { (eval echo configure:20487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20487   rm -rf conftest*
20488   eval "ac_cv_func_$ac_func=yes"
20489 else
20490   echo "configure: failed program was:" >&5
20491   cat conftest.$ac_ext >&5
20492   rm -rf conftest*
20493   eval "ac_cv_func_$ac_func=no"
20494 fi
20495 rm -f conftest*
20496 fi
20497
20498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20499   echo "$ac_t""yes" 1>&6
20500     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20501   cat >> confdefs.h <<EOF
20502 #define $ac_tr_func 1
20503 EOF
20504  
20505 else
20506   echo "$ac_t""no" 1>&6
20507 fi
20508 done
20509
20510 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
20511 echo "configure:20512: checking for working mmap" >&5
20512 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
20513   echo $ac_n "(cached) $ac_c" 1>&6
20514 else
20515   if test "$cross_compiling" = yes; then
20516   ac_cv_func_mmap_fixed_mapped=no
20517 else
20518   cat > conftest.$ac_ext <<EOF
20519 #line 20520 "configure"
20520 #include "confdefs.h"
20521
20522 /* Thanks to Mike Haertel and Jim Avera for this test.
20523    Here is a matrix of mmap possibilities:
20524         mmap private not fixed
20525         mmap private fixed at somewhere currently unmapped
20526         mmap private fixed at somewhere already mapped
20527         mmap shared not fixed
20528         mmap shared fixed at somewhere currently unmapped
20529         mmap shared fixed at somewhere already mapped
20530    For private mappings, we should verify that changes cannot be read()
20531    back from the file, nor mmap's back from the file at a different
20532    address.  (There have been systems where private was not correctly
20533    implemented like the infamous i386 svr4.0, and systems where the
20534    VM page cache was not coherent with the filesystem buffer cache
20535    like early versions of FreeBSD and possibly contemporary NetBSD.)
20536    For shared mappings, we should conversely verify that changes get
20537    propogated back to all the places they're supposed to be.
20538
20539    Grep wants private fixed already mapped.
20540    The main things grep needs to know about mmap are:
20541    * does it exist and is it safe to write into the mmap'd area
20542    * how to use it (BSD variants)  */
20543 #include <sys/types.h>
20544 #include <fcntl.h>
20545 #include <sys/mman.h>
20546
20547 #if HAVE_SYS_TYPES_H
20548 # include <sys/types.h>
20549 #endif
20550
20551 #if HAVE_STDLIB_H
20552 # include <stdlib.h>
20553 #endif
20554
20555 #if HAVE_SYS_STAT_H
20556 # include <sys/stat.h>
20557 #endif
20558
20559 #if HAVE_UNISTD_H
20560 # include <unistd.h>
20561 #endif
20562
20563 /* This mess was copied from the GNU getpagesize.h.  */
20564 #ifndef HAVE_GETPAGESIZE
20565
20566 /* Assume that all systems that can run configure have sys/param.h.  */
20567 # ifndef HAVE_SYS_PARAM_H
20568 #  define HAVE_SYS_PARAM_H 1
20569 # endif
20570
20571 # ifdef _SC_PAGESIZE
20572 #  define getpagesize() sysconf(_SC_PAGESIZE)
20573 # else /* no _SC_PAGESIZE */
20574 #  ifdef HAVE_SYS_PARAM_H
20575 #   include <sys/param.h>
20576 #   ifdef EXEC_PAGESIZE
20577 #    define getpagesize() EXEC_PAGESIZE
20578 #   else /* no EXEC_PAGESIZE */
20579 #    ifdef NBPG
20580 #     define getpagesize() NBPG * CLSIZE
20581 #     ifndef CLSIZE
20582 #      define CLSIZE 1
20583 #     endif /* no CLSIZE */
20584 #    else /* no NBPG */
20585 #     ifdef NBPC
20586 #      define getpagesize() NBPC
20587 #     else /* no NBPC */
20588 #      ifdef PAGESIZE
20589 #       define getpagesize() PAGESIZE
20590 #      endif /* PAGESIZE */
20591 #     endif /* no NBPC */
20592 #    endif /* no NBPG */
20593 #   endif /* no EXEC_PAGESIZE */
20594 #  else /* no HAVE_SYS_PARAM_H */
20595 #   define getpagesize() 8192   /* punt totally */
20596 #  endif /* no HAVE_SYS_PARAM_H */
20597 # endif /* no _SC_PAGESIZE */
20598
20599 #endif /* no HAVE_GETPAGESIZE */
20600
20601 #ifdef __cplusplus
20602 extern "C" { void *malloc(unsigned); }
20603 #else
20604 char *malloc();
20605 #endif
20606
20607 int
20608 main()
20609 {
20610         char *data, *data2, *data3;
20611         int i, pagesize;
20612         int fd;
20613
20614         pagesize = getpagesize();
20615
20616         /*
20617          * First, make a file with some known garbage in it.
20618          */
20619         data = malloc(pagesize);
20620         if (!data)
20621                 exit(1);
20622         for (i = 0; i < pagesize; ++i)
20623                 *(data + i) = rand();
20624         umask(0);
20625         fd = creat("conftestmmap", 0600);
20626         if (fd < 0)
20627                 exit(1);
20628         if (write(fd, data, pagesize) != pagesize)
20629                 exit(1);
20630         close(fd);
20631
20632         /*
20633          * Next, try to mmap the file at a fixed address which
20634          * already has something else allocated at it.  If we can,
20635          * also make sure that we see the same garbage.
20636          */
20637         fd = open("conftestmmap", O_RDWR);
20638         if (fd < 0)
20639                 exit(1);
20640         data2 = malloc(2 * pagesize);
20641         if (!data2)
20642                 exit(1);
20643         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
20644         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
20645             MAP_PRIVATE | MAP_FIXED, fd, 0L))
20646                 exit(1);
20647         for (i = 0; i < pagesize; ++i)
20648                 if (*(data + i) != *(data2 + i))
20649                         exit(1);
20650
20651         /*
20652          * Finally, make sure that changes to the mapped area
20653          * do not percolate back to the file as seen by read().
20654          * (This is a bug on some variants of i386 svr4.0.)
20655          */
20656         for (i = 0; i < pagesize; ++i)
20657                 *(data2 + i) = *(data2 + i) + 1;
20658         data3 = malloc(pagesize);
20659         if (!data3)
20660                 exit(1);
20661         if (read(fd, data3, pagesize) != pagesize)
20662                 exit(1);
20663         for (i = 0; i < pagesize; ++i)
20664                 if (*(data + i) != *(data3 + i))
20665                         exit(1);
20666         close(fd);
20667         unlink("conftestmmap");
20668         exit(0);
20669 }
20670
20671 EOF
20672 if { (eval echo configure:20673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20673 then
20674   ac_cv_func_mmap_fixed_mapped=yes
20675 else
20676   echo "configure: failed program was:" >&5
20677   cat conftest.$ac_ext >&5
20678   rm -fr conftest*
20679   ac_cv_func_mmap_fixed_mapped=no
20680 fi
20681 rm -fr conftest*
20682 fi
20683
20684 fi
20685
20686 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
20687 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20688   cat >> confdefs.h <<\EOF
20689 #define HAVE_MMAP 1
20690 EOF
20691
20692 fi
20693
20694
20695   # Establish limits on memory usage during 'make check'
20696   
20697   
20698   setrlimit_have_headers=yes
20699   for ac_hdr in sys/resource.h unistd.h
20700 do
20701 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20702 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20703 echo "configure:20704: checking for $ac_hdr" >&5
20704 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20705   echo $ac_n "(cached) $ac_c" 1>&6
20706 else
20707   cat > conftest.$ac_ext <<EOF
20708 #line 20709 "configure"
20709 #include "confdefs.h"
20710 #include <$ac_hdr>
20711 EOF
20712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20713 { (eval echo configure:20714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20715 if test -z "$ac_err"; then
20716   rm -rf conftest*
20717   eval "ac_cv_header_$ac_safe=yes"
20718 else
20719   echo "$ac_err" >&5
20720   echo "configure: failed program was:" >&5
20721   cat conftest.$ac_ext >&5
20722   rm -rf conftest*
20723   eval "ac_cv_header_$ac_safe=no"
20724 fi
20725 rm -f conftest*
20726 fi
20727 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20728   echo "$ac_t""yes" 1>&6
20729     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20730   cat >> confdefs.h <<EOF
20731 #define $ac_tr_hdr 1
20732 EOF
20733  
20734 else
20735   echo "$ac_t""no" 1>&6
20736 setrlimit_have_headers=no
20737 fi
20738 done
20739
20740   # If don't have the headers, then we can't run the tests now, and we
20741   # won't be seeing any of these during testsuite compilation.
20742   if test $setrlimit_have_headers = yes; then
20743     # Can't do these in a loop, else the resulting syntax is wrong.
20744     
20745   cat > conftest.$ac_ext <<EOF
20746 #line 20747 "configure"
20747 #include "confdefs.h"
20748 #include <sys/resource.h>
20749                   #include <unistd.h>
20750                  
20751 int main() {
20752  int f = RLIMIT_DATA ; 
20753 ; return 0; }
20754 EOF
20755 if { (eval echo configure:20756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20756   rm -rf conftest*
20757   glibcpp_mresult=1
20758 else
20759   echo "configure: failed program was:" >&5
20760   cat conftest.$ac_ext >&5
20761   rm -rf conftest*
20762   glibcpp_mresult=0
20763 fi
20764 rm -f conftest*
20765   cat >> confdefs.h <<EOF
20766 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
20767 EOF
20768
20769
20770     
20771   cat > conftest.$ac_ext <<EOF
20772 #line 20773 "configure"
20773 #include "confdefs.h"
20774 #include <sys/resource.h>
20775                   #include <unistd.h>
20776                  
20777 int main() {
20778  int f = RLIMIT_RSS ; 
20779 ; return 0; }
20780 EOF
20781 if { (eval echo configure:20782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20782   rm -rf conftest*
20783   glibcpp_mresult=1
20784 else
20785   echo "configure: failed program was:" >&5
20786   cat conftest.$ac_ext >&5
20787   rm -rf conftest*
20788   glibcpp_mresult=0
20789 fi
20790 rm -f conftest*
20791   cat >> confdefs.h <<EOF
20792 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
20793 EOF
20794
20795
20796     
20797   cat > conftest.$ac_ext <<EOF
20798 #line 20799 "configure"
20799 #include "confdefs.h"
20800 #include <sys/resource.h>
20801                   #include <unistd.h>
20802                  
20803 int main() {
20804  int f = RLIMIT_VMEM ; 
20805 ; return 0; }
20806 EOF
20807 if { (eval echo configure:20808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20808   rm -rf conftest*
20809   glibcpp_mresult=1
20810 else
20811   echo "configure: failed program was:" >&5
20812   cat conftest.$ac_ext >&5
20813   rm -rf conftest*
20814   glibcpp_mresult=0
20815 fi
20816 rm -f conftest*
20817   cat >> confdefs.h <<EOF
20818 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
20819 EOF
20820
20821
20822     
20823   cat > conftest.$ac_ext <<EOF
20824 #line 20825 "configure"
20825 #include "confdefs.h"
20826 #include <sys/resource.h>
20827                   #include <unistd.h>
20828                  
20829 int main() {
20830  int f = RLIMIT_AS ; 
20831 ; return 0; }
20832 EOF
20833 if { (eval echo configure:20834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20834   rm -rf conftest*
20835   glibcpp_mresult=1
20836 else
20837   echo "configure: failed program was:" >&5
20838   cat conftest.$ac_ext >&5
20839   rm -rf conftest*
20840   glibcpp_mresult=0
20841 fi
20842 rm -f conftest*
20843   cat >> confdefs.h <<EOF
20844 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
20845 EOF
20846
20847
20848
20849     # Check for rlimit, setrlimit.
20850     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
20851   echo $ac_n "(cached) $ac_c" 1>&6
20852 else
20853   
20854       cat > conftest.$ac_ext <<EOF
20855 #line 20856 "configure"
20856 #include "confdefs.h"
20857 #include <sys/resource.h>
20858                       #include <unistd.h>
20859                      
20860 int main() {
20861  struct rlimit r; setrlimit(0, &r);
20862 ; return 0; }
20863 EOF
20864 if { (eval echo configure:20865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20865   rm -rf conftest*
20866   ac_setrlimit=yes
20867 else
20868   echo "configure: failed program was:" >&5
20869   cat conftest.$ac_ext >&5
20870   rm -rf conftest*
20871   ac_setrlimit=no
20872 fi
20873 rm -f conftest*
20874     
20875 fi
20876
20877   fi
20878
20879   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
20880 echo "configure:20881: checking for testsuite memory limit support" >&5
20881   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
20882     ac_mem_limits=yes
20883     cat >> confdefs.h <<\EOF
20884 #define _GLIBCPP_MEM_LIMITS 1
20885 EOF
20886
20887   else
20888     ac_mem_limits=no
20889   fi
20890   echo "$ac_t""$ac_mem_limits" 1>&6
20891
20892
20893   # Look for setenv, so that extended locale tests can be performed.
20894   
20895   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
20896 echo "configure:20897: checking for setenv declaration" >&5
20897   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
20898     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
20899   echo $ac_n "(cached) $ac_c" 1>&6
20900 else
20901   
20902       
20903       ac_ext=C
20904 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20905 ac_cpp='$CXXCPP $CPPFLAGS'
20906 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20907 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20908 cross_compiling=$ac_cv_prog_cxx_cross
20909
20910       cat > conftest.$ac_ext <<EOF
20911 #line 20912 "configure"
20912 #include "confdefs.h"
20913 #include <stdlib.h>
20914 int main() {
20915  setenv(0, 0, 0);
20916 ; return 0; }
20917 EOF
20918 if { (eval echo configure:20919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20919   rm -rf conftest*
20920   glibcpp_cv_func_setenv_use=yes
20921 else
20922   echo "configure: failed program was:" >&5
20923   cat conftest.$ac_ext >&5
20924   rm -rf conftest*
20925   glibcpp_cv_func_setenv_use=no
20926 fi
20927 rm -f conftest*
20928       ac_ext=c
20929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20930 ac_cpp='$CPP $CPPFLAGS'
20931 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20932 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20933 cross_compiling=$ac_cv_prog_cc_cross
20934
20935     
20936 fi
20937
20938   fi
20939   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
20940   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
20941     for ac_func in setenv
20942 do
20943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20944 echo "configure:20945: checking for $ac_func" >&5
20945 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20946   echo $ac_n "(cached) $ac_c" 1>&6
20947 else
20948   cat > conftest.$ac_ext <<EOF
20949 #line 20950 "configure"
20950 #include "confdefs.h"
20951 /* System header to define __stub macros and hopefully few prototypes,
20952     which can conflict with char $ac_func(); below.  */
20953 #include <assert.h>
20954 /* Override any gcc2 internal prototype to avoid an error.  */
20955 /* We use char because int might match the return type of a gcc2
20956     builtin and then its argument prototype would still apply.  */
20957 char $ac_func();
20958
20959 int main() {
20960
20961 /* The GNU C library defines this for functions which it implements
20962     to always fail with ENOSYS.  Some functions are actually named
20963     something starting with __ and the normal name is an alias.  */
20964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20965 choke me
20966 #else
20967 $ac_func();
20968 #endif
20969
20970 ; return 0; }
20971 EOF
20972 if { (eval echo configure:20973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20973   rm -rf conftest*
20974   eval "ac_cv_func_$ac_func=yes"
20975 else
20976   echo "configure: failed program was:" >&5
20977   cat conftest.$ac_ext >&5
20978   rm -rf conftest*
20979   eval "ac_cv_func_$ac_func=no"
20980 fi
20981 rm -f conftest*
20982 fi
20983
20984 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20985   echo "$ac_t""yes" 1>&6
20986     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20987   cat >> confdefs.h <<EOF
20988 #define $ac_tr_func 1
20989 EOF
20990  
20991 else
20992   echo "$ac_t""no" 1>&6
20993 fi
20994 done
20995     
20996   fi
20997
20998
20999 fi
21000
21001 # This depends on the possibly-skipped linker test above.
21002 # Check whether --enable-symvers or --disable-symvers was given.
21003 if test "${enable_symvers+set}" = set; then
21004   enableval="$enable_symvers"
21005   case "$enableval" in
21006  yes) enable_symvers=yes ;;
21007  no)  enable_symvers=no ;;
21008  # other names here, just as sanity checks
21009  #gnu|sun|etcetera) enable_symvers=$enableval ;;
21010  gnu) enable_symvers=$enableval ;;
21011  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
21012  esac
21013 else
21014   enable_symvers=yes
21015 fi
21016
21017 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
21018 # don't know enough about $LD to do tricks... 
21019 if test x$enable_shared = xno || 
21020         test x$LD = x || 
21021         test x$glibcpp_gnu_ld_version = x; then
21022   enable_symvers=no
21023 fi
21024
21025 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
21026 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
21027 echo "configure:21028: checking for shared libgcc" >&5
21028 ac_save_CFLAGS="$CFLAGS"
21029 CFLAGS=' -lgcc_s'
21030 cat > conftest.$ac_ext <<EOF
21031 #line 21032 "configure"
21032 #include "confdefs.h"
21033
21034 int main() {
21035 return 0
21036 ; return 0; }
21037 EOF
21038 if { (eval echo configure:21039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21039   rm -rf conftest*
21040   glibcpp_shared_libgcc=yes
21041 else
21042   echo "configure: failed program was:" >&5
21043   cat conftest.$ac_ext >&5
21044   rm -rf conftest*
21045   glibcpp_shared_libgcc=no
21046 fi
21047 rm -f conftest*
21048 CFLAGS="$ac_save_CFLAGS"
21049 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
21050
21051 # For GNU ld, we need at least this version.  It's 2.12 in the same format
21052 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
21053 glibcpp_min_gnu_ld_version=21200
21054
21055 # Check to see if unspecified "yes" value can win, given results
21056 # above.  
21057 if test $enable_symvers = yes ; then
21058   if test $with_gnu_ld = yes &&
21059     test $glibcpp_shared_libgcc = yes ;
21060   then
21061     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
21062         enable_symvers=gnu
21063     else
21064       ac_test_CFLAGS="${CFLAGS+set}"
21065       ac_save_CFLAGS="$CFLAGS"
21066       CFLAGS='-shared -Wl,--version-script,conftest.map'
21067       enable_symvers=no
21068       
21069       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
21070       
21071       cat > conftest.$ac_ext <<EOF
21072 #line 21073 "configure"
21073 #include "confdefs.h"
21074 int foo;
21075 int main() {
21076
21077 ; return 0; }
21078 EOF
21079 if { (eval echo configure:21080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21080   rm -rf conftest*
21081   enable_symvers=gnu
21082 else
21083   echo "configure: failed program was:" >&5
21084   cat conftest.$ac_ext >&5
21085 fi
21086 rm -f conftest*
21087       if test "$ac_test_CFLAGS" = set; then
21088         CFLAGS="$ac_save_CFLAGS"
21089       else
21090         # this is the suspicious part
21091         CFLAGS=''
21092       fi
21093       rm -f conftest.map
21094     fi
21095   else
21096     # just fail for now
21097     enable_symvers=no
21098   fi
21099 fi
21100
21101 case $enable_symvers in
21102   no)
21103       LINKER_MAP=config/linker-map.dummy
21104       ;;
21105   gnu)
21106       LINKER_MAP=config/linker-map.gnu
21107       ;;
21108 esac
21109
21110
21111
21112
21113 if test $enable_symvers != no; then
21114   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
21115   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
21116 else
21117   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
21118   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
21119 fi
21120 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
21121 echo "configure:21122: checking versioning on shared library symbols" >&5
21122 echo "$ac_t""$enable_symvers" 1>&6
21123
21124
21125 # Propagate the target-specific source directories through the build chain.
21126 OS_INC_SRCDIR=$os_include_dir/bits
21127 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
21128 CPU_LIMITS_INC_SRCDIR=$CPULIMITSH/bits
21129
21130
21131
21132
21133 # Set up cross-compile flags
21134
21135
21136
21137 if test "$CANADIAN" = yes; then
21138   CANADIAN_TRUE=
21139   CANADIAN_FALSE='#'
21140 else
21141   CANADIAN_TRUE='#'
21142   CANADIAN_FALSE=
21143 fi
21144  
21145 cat > confcache <<\EOF
21146 # This file is a shell script that caches the results of configure
21147 # tests run on this system so they can be shared between configure
21148 # scripts and configure runs.  It is not useful on other systems.
21149 # If it contains results you don't want to keep, you may remove or edit it.
21150 #
21151 # By default, configure uses ./config.cache as the cache file,
21152 # creating it if it does not exist already.  You can give configure
21153 # the --cache-file=FILE option to use a different cache file; that is
21154 # what configure does when it calls configure scripts in
21155 # subdirectories, so they share the cache.
21156 # Giving --cache-file=/dev/null disables caching, for debugging configure.
21157 # config.status only pays attention to the cache file if you give it the
21158 # --recheck option to rerun configure.
21159 #
21160 EOF
21161 # The following way of writing the cache mishandles newlines in values,
21162 # but we know of no workaround that is simple, portable, and efficient.
21163 # So, don't put newlines in cache variables' values.
21164 # Ultrix sh set writes to stderr and can't be redirected directly,
21165 # and sets the high bit in the cache file unless we assign to the vars.
21166 (set) 2>&1 |
21167   case `(ac_space=' '; set | grep ac_space) 2>&1` in
21168   *ac_space=\ *)
21169     # `set' does not quote correctly, so add quotes (double-quote substitution
21170     # turns \\\\ into \\, and sed turns \\ into \).
21171     sed -n \
21172       -e "s/'/'\\\\''/g" \
21173       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
21174     ;;
21175   *)
21176     # `set' quotes correctly as required by POSIX, so do not add quotes.
21177     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
21178     ;;
21179   esac >> confcache
21180 if cmp -s $cache_file confcache; then
21181   :
21182 else
21183   if test -w $cache_file; then
21184     echo "updating cache $cache_file"
21185     cat confcache > $cache_file
21186   else
21187     echo "not updating unwritable cache $cache_file"
21188   fi
21189 fi
21190 rm -f confcache
21191
21192
21193 if test "${multilib}" = "yes"; then
21194   multilib_arg="--enable-multilib"
21195 else
21196   multilib_arg=
21197 fi
21198
21199 # Needed so that g++ can find the correct include subdir automatically.
21200 INTERFACE=v3
21201
21202 # Export all the install information
21203
21204 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
21205 # exported correctly in GLIBCPP_CONFIGURE.
21206 glibcpp_toolexecdir=no
21207 glibcpp_toolexeclibdir=no
21208 glibcpp_prefixdir=${prefix}
21209
21210 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
21211 echo "configure:21212: checking for interface version number" >&5
21212 libstdcxx_interface=$INTERFACE
21213 echo "$ac_t""$libstdcxx_interface" 1>&6
21214
21215 # Process the option --with-gxx-include-dir=<path to include-files directory>
21216 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
21217 echo "configure:21218: checking for --with-gxx-include-dir" >&5
21218 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
21219 if test "${with_gxx_include_dir+set}" = set; then
21220   withval="$with_gxx_include_dir"
21221   case "${withval}" in
21222   yes)
21223     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
21224     gxx_include_dir=no
21225     ;;
21226   no)
21227     gxx_include_dir=no
21228     ;;
21229   *)
21230     gxx_include_dir=${withval}
21231     ;;
21232 esac
21233 else
21234   gxx_include_dir=no
21235 fi
21236
21237 echo "$ac_t""$gxx_include_dir" 1>&6
21238
21239 # Process the option "--enable-version-specific-runtime-libs"
21240 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
21241 echo "configure:21242: checking for --enable-version-specific-runtime-libs" >&5
21242 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
21243 if test "${enable_version_specific_runtime_libs+set}" = set; then
21244   enableval="$enable_version_specific_runtime_libs"
21245   case "$enableval" in
21246  yes) version_specific_libs=yes ;;
21247  no)  version_specific_libs=no ;;
21248  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
21249  esac
21250 else
21251   version_specific_libs=no
21252 fi
21253 # Option set, now we can test it.
21254 echo "$ac_t""$version_specific_libs" 1>&6
21255
21256 if test $version_specific_libs = yes; then
21257   # Need the gcc compiler version to know where to install libraries
21258   # and header files if --enable-version-specific-runtime-libs option
21259   # is selected.
21260     gcc_version_trigger=${srcdir}/../gcc/version.c
21261   gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
21262   gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
21263   if test x"$gxx_include_dir" = x"no"; then
21264     gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
21265   fi
21266   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
21267   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
21268   fi
21269
21270 # Default case for install directory for include files.
21271 if test $version_specific_libs = no &&
21272    test $gxx_include_dir = no; then
21273   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
21274 fi
21275
21276 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
21277 # Install a library built with a cross compiler in tooldir, not libdir.
21278 if test x"$glibcpp_toolexecdir" = x"no"; then 
21279   if test -n "$with_cross_host" &&
21280      test x"$with_cross_host" != x"no"; then
21281     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
21282     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
21283   else
21284     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
21285     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
21286   fi
21287 fi
21288
21289 echo $ac_n "checking for install location""... $ac_c" 1>&6
21290 echo "configure:21291: checking for install location" >&5
21291 echo "$ac_t""$gxx_include_dir" 1>&6
21292
21293
21294
21295
21296
21297
21298
21299 # Export all the include and flag information to makefiles.
21300
21301   # Root level of the build directory include sources.
21302   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
21303
21304   # Passed down for canadian crosses.
21305   if test x"$CANADIAN" = xyes; then
21306     TOPLEVEL_INCLUDES='-I$(includedir)'
21307   fi
21308
21309   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
21310
21311   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
21312
21313   if test x"$need_libio" = xyes; then
21314     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
21315     
21316   fi
21317
21318   # Now, export this to all the little Makefiles....
21319   
21320   
21321   
21322   
21323
21324
21325   # Optimization flags that are probably a good idea for thrill-seekers. Just
21326   # uncomment the lines below and make, everything else is ready to go... 
21327   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
21328   OPTIMIZE_CXXFLAGS=
21329   
21330
21331   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
21332   
21333
21334
21335 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
21336    grep "enable shared" > /dev/null; then
21337   LIBSUPCXX_PICFLAGS=-prefer-pic
21338 else
21339   LIBSUPCXX_PICFLAGS=
21340 fi
21341
21342
21343 # Generate the various Makefiles, include files, and scripts.
21344 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
21345 # and libsupc++/Makefile.am so that multilib installs will end up
21346 # installed in the correct place. To work around this not being passed
21347 # down from config-ml.in -> top_srcdir/Makefile.am ->
21348 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
21349 trap '' 1 2 15
21350 cat > confcache <<\EOF
21351 # This file is a shell script that caches the results of configure
21352 # tests run on this system so they can be shared between configure
21353 # scripts and configure runs.  It is not useful on other systems.
21354 # If it contains results you don't want to keep, you may remove or edit it.
21355 #
21356 # By default, configure uses ./config.cache as the cache file,
21357 # creating it if it does not exist already.  You can give configure
21358 # the --cache-file=FILE option to use a different cache file; that is
21359 # what configure does when it calls configure scripts in
21360 # subdirectories, so they share the cache.
21361 # Giving --cache-file=/dev/null disables caching, for debugging configure.
21362 # config.status only pays attention to the cache file if you give it the
21363 # --recheck option to rerun configure.
21364 #
21365 EOF
21366 # The following way of writing the cache mishandles newlines in values,
21367 # but we know of no workaround that is simple, portable, and efficient.
21368 # So, don't put newlines in cache variables' values.
21369 # Ultrix sh set writes to stderr and can't be redirected directly,
21370 # and sets the high bit in the cache file unless we assign to the vars.
21371 (set) 2>&1 |
21372   case `(ac_space=' '; set | grep ac_space) 2>&1` in
21373   *ac_space=\ *)
21374     # `set' does not quote correctly, so add quotes (double-quote substitution
21375     # turns \\\\ into \\, and sed turns \\ into \).
21376     sed -n \
21377       -e "s/'/'\\\\''/g" \
21378       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
21379     ;;
21380   *)
21381     # `set' quotes correctly as required by POSIX, so do not add quotes.
21382     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
21383     ;;
21384   esac >> confcache
21385 if cmp -s $cache_file confcache; then
21386   :
21387 else
21388   if test -w $cache_file; then
21389     echo "updating cache $cache_file"
21390     cat confcache > $cache_file
21391   else
21392     echo "not updating unwritable cache $cache_file"
21393   fi
21394 fi
21395 rm -f confcache
21396
21397 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
21398
21399 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21400 # Let make expand exec_prefix.
21401 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21402
21403 # Any assignment to VPATH causes Sun make to only execute
21404 # the first set of double-colon rules, so remove it if not needed.
21405 # If there is a colon in the path, we need to keep it.
21406 if test "x$srcdir" = x.; then
21407   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
21408 fi
21409
21410 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
21411
21412 DEFS=-DHAVE_CONFIG_H
21413
21414 # Without the "./", some shells look in PATH for config.status.
21415 : ${CONFIG_STATUS=./config.status}
21416
21417 echo creating $CONFIG_STATUS
21418 rm -f $CONFIG_STATUS
21419 cat > $CONFIG_STATUS <<EOF
21420 #! /bin/sh
21421 # Generated automatically by configure.
21422 # Run this file to recreate the current configuration.
21423 # This directory was configured as follows,
21424 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21425 #
21426 # $0 $ac_configure_args
21427 #
21428 # Compiler output produced by configure, useful for debugging
21429 # configure, is in ./config.log if it exists.
21430
21431 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
21432 for ac_option
21433 do
21434   case "\$ac_option" in
21435   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21436     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
21437     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
21438   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
21439     echo "$CONFIG_STATUS generated by autoconf version 2.13"
21440     exit 0 ;;
21441   -help | --help | --hel | --he | --h)
21442     echo "\$ac_cs_usage"; exit 0 ;;
21443   *) echo "\$ac_cs_usage"; exit 1 ;;
21444   esac
21445 done
21446
21447 ac_given_srcdir=$srcdir
21448 ac_given_INSTALL="$INSTALL"
21449
21450 trap 'rm -fr `echo "Makefile \
21451     include/Makefile src/Makefile \
21452     libmath/Makefile libio/Makefile libsupc++/Makefile \
21453     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
21454 EOF
21455 cat >> $CONFIG_STATUS <<EOF
21456
21457 # Protect against being on the right side of a sed subst in config.status.
21458 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
21459  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
21460 $ac_vpsub
21461 $extrasub
21462 s%@SHELL@%$SHELL%g
21463 s%@CFLAGS@%$CFLAGS%g
21464 s%@CPPFLAGS@%$CPPFLAGS%g
21465 s%@CXXFLAGS@%$CXXFLAGS%g
21466 s%@FFLAGS@%$FFLAGS%g
21467 s%@DEFS@%$DEFS%g
21468 s%@LDFLAGS@%$LDFLAGS%g
21469 s%@LIBS@%$LIBS%g
21470 s%@exec_prefix@%$exec_prefix%g
21471 s%@prefix@%$prefix%g
21472 s%@program_transform_name@%$program_transform_name%g
21473 s%@bindir@%$bindir%g
21474 s%@sbindir@%$sbindir%g
21475 s%@libexecdir@%$libexecdir%g
21476 s%@datadir@%$datadir%g
21477 s%@sysconfdir@%$sysconfdir%g
21478 s%@sharedstatedir@%$sharedstatedir%g
21479 s%@localstatedir@%$localstatedir%g
21480 s%@libdir@%$libdir%g
21481 s%@includedir@%$includedir%g
21482 s%@oldincludedir@%$oldincludedir%g
21483 s%@infodir@%$infodir%g
21484 s%@mandir@%$mandir%g
21485 s%@PACKAGE@%$PACKAGE%g
21486 s%@release_VERSION@%$release_VERSION%g
21487 s%@libtool_VERSION@%$libtool_VERSION%g
21488 s%@host@%$host%g
21489 s%@host_alias@%$host_alias%g
21490 s%@host_cpu@%$host_cpu%g
21491 s%@host_vendor@%$host_vendor%g
21492 s%@host_os@%$host_os%g
21493 s%@target@%$target%g
21494 s%@target_alias@%$target_alias%g
21495 s%@target_cpu@%$target_cpu%g
21496 s%@target_vendor@%$target_vendor%g
21497 s%@target_os@%$target_os%g
21498 s%@build@%$build%g
21499 s%@build_alias@%$build_alias%g
21500 s%@build_cpu@%$build_cpu%g
21501 s%@build_vendor@%$build_vendor%g
21502 s%@build_os@%$build_os%g
21503 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
21504 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
21505 s%@INSTALL_DATA@%$INSTALL_DATA%g
21506 s%@VERSION@%$VERSION%g
21507 s%@ACLOCAL@%$ACLOCAL%g
21508 s%@AUTOCONF@%$AUTOCONF%g
21509 s%@AUTOMAKE@%$AUTOMAKE%g
21510 s%@AUTOHEADER@%$AUTOHEADER%g
21511 s%@MAKEINFO@%$MAKEINFO%g
21512 s%@SET_MAKE@%$SET_MAKE%g
21513 s%@toplevel_srcdir@%$toplevel_srcdir%g
21514 s%@glibcpp_builddir@%$glibcpp_builddir%g
21515 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
21516 s%@AWK@%$AWK%g
21517 s%@LN_S@%$LN_S%g
21518 s%@glibcpp_basedir@%$glibcpp_basedir%g
21519 s%@CC@%$CC%g
21520 s%@glibcpp_CXX@%$glibcpp_CXX%g
21521 s%@AS@%$AS%g
21522 s%@AR@%$AR%g
21523 s%@RANLIB@%$RANLIB%g
21524 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
21525 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
21526 s%@MAINT@%$MAINT%g
21527 s%@EXEEXT@%$EXEEXT%g
21528 s%@OBJEXT@%$OBJEXT%g
21529 s%@STRIP@%$STRIP%g
21530 s%@LIBTOOL@%$LIBTOOL%g
21531 s%@CXXCPP@%$CXXCPP%g
21532 s%@enable_shared@%$enable_shared%g
21533 s%@enable_static@%$enable_static%g
21534 s%@ifGNUmake@%$ifGNUmake%g
21535 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
21536 s%@CPP@%$CPP%g
21537 s%@CSTDIO_H@%$CSTDIO_H%g
21538 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
21539 s%@CCODECVT_C@%$CCODECVT_C%g
21540 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
21541 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
21542 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
21543 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
21544 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
21545 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
21546 s%@libio_la@%$libio_la%g
21547 s%@check_msgfmt@%$check_msgfmt%g
21548 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
21549 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
21550 s%@glibcpp_localedir@%$glibcpp_localedir%g
21551 s%@USE_NLS@%$USE_NLS%g
21552 s%@CLOCALE_H@%$CLOCALE_H%g
21553 s%@CCODECVT_H@%$CCODECVT_H%g
21554 s%@CMESSAGES_H@%$CMESSAGES_H%g
21555 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
21556 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
21557 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
21558 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
21559 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
21560 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
21561 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
21562 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
21563 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
21564 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
21565 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
21566 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
21567 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
21568 s%@WERROR@%$WERROR%g
21569 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
21570 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
21571 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
21572 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
21573 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
21574 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
21575 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
21576 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
21577 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
21578 s%@gxx_include_dir@%$gxx_include_dir%g
21579 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
21580 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
21581 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
21582 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
21583 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
21584 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
21585 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
21586 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
21587 s%@WARN_FLAGS@%$WARN_FLAGS%g
21588 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
21589
21590 CEOF
21591 EOF
21592
21593 cat >> $CONFIG_STATUS <<\EOF
21594
21595 # Split the substitutions into bite-sized pieces for seds with
21596 # small command number limits, like on Digital OSF/1 and HP-UX.
21597 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
21598 ac_file=1 # Number of current file.
21599 ac_beg=1 # First line for current file.
21600 ac_end=$ac_max_sed_cmds # Line after last line for current file.
21601 ac_more_lines=:
21602 ac_sed_cmds=""
21603 while $ac_more_lines; do
21604   if test $ac_beg -gt 1; then
21605     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
21606   else
21607     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
21608   fi
21609   if test ! -s conftest.s$ac_file; then
21610     ac_more_lines=false
21611     rm -f conftest.s$ac_file
21612   else
21613     if test -z "$ac_sed_cmds"; then
21614       ac_sed_cmds="sed -f conftest.s$ac_file"
21615     else
21616       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
21617     fi
21618     ac_file=`expr $ac_file + 1`
21619     ac_beg=$ac_end
21620     ac_end=`expr $ac_end + $ac_max_sed_cmds`
21621   fi
21622 done
21623 if test -z "$ac_sed_cmds"; then
21624   ac_sed_cmds=cat
21625 fi
21626 EOF
21627
21628 cat >> $CONFIG_STATUS <<EOF
21629
21630 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
21631     include/Makefile src/Makefile \
21632     libmath/Makefile libio/Makefile libsupc++/Makefile \
21633     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
21634 EOF
21635 cat >> $CONFIG_STATUS <<\EOF
21636 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
21637   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21638   case "$ac_file" in
21639   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21640        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21641   *) ac_file_in="${ac_file}.in" ;;
21642   esac
21643
21644   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
21645
21646   # Remove last slash and all that follows it.  Not all systems have dirname.
21647   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21648   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21649     # The file is in a subdirectory.
21650     test ! -d "$ac_dir" && mkdir "$ac_dir"
21651     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
21652     # A "../" for each directory in $ac_dir_suffix.
21653     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
21654   else
21655     ac_dir_suffix= ac_dots=
21656   fi
21657
21658   case "$ac_given_srcdir" in
21659   .)  srcdir=.
21660       if test -z "$ac_dots"; then top_srcdir=.
21661       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21662   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
21663   *) # Relative path.
21664     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21665     top_srcdir="$ac_dots$ac_given_srcdir" ;;
21666   esac
21667
21668   case "$ac_given_INSTALL" in
21669   [/$]*) INSTALL="$ac_given_INSTALL" ;;
21670   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21671   esac
21672
21673   echo creating "$ac_file"
21674   rm -f "$ac_file"
21675   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21676   case "$ac_file" in
21677   *Makefile*) ac_comsub="1i\\
21678 # $configure_input" ;;
21679   *) ac_comsub= ;;
21680   esac
21681
21682   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21683   sed -e "$ac_comsub
21684 s%@configure_input@%$configure_input%g
21685 s%@srcdir@%$srcdir%g
21686 s%@top_srcdir@%$top_srcdir%g
21687 s%@INSTALL@%$INSTALL%g
21688 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21689 fi; done
21690 rm -f conftest.s*
21691
21692 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21693 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21694 #
21695 # ac_d sets the value in "#define NAME VALUE" lines.
21696 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
21697 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
21698 ac_dC='\3'
21699 ac_dD='%g'
21700 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21701 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21702 ac_uB='\([      ]\)%\1#\2define\3'
21703 ac_uC=' '
21704 ac_uD='\4%g'
21705 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21706 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21707 ac_eB='$%\1#\2define\3'
21708 ac_eC=' '
21709 ac_eD='%g'
21710
21711 if test "${CONFIG_HEADERS+set}" != set; then
21712 EOF
21713 cat >> $CONFIG_STATUS <<EOF
21714   CONFIG_HEADERS="config.h"
21715 EOF
21716 cat >> $CONFIG_STATUS <<\EOF
21717 fi
21718 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
21719   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21720   case "$ac_file" in
21721   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21722        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21723   *) ac_file_in="${ac_file}.in" ;;
21724   esac
21725
21726   echo creating $ac_file
21727
21728   rm -f conftest.frag conftest.in conftest.out
21729   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21730   cat $ac_file_inputs > conftest.in
21731
21732 EOF
21733
21734 # Transform confdefs.h into a sed script conftest.vals that substitutes
21735 # the proper values into config.h.in to produce config.h.  And first:
21736 # Protect against being on the right side of a sed subst in config.status.
21737 # Protect against being in an unquoted here document in config.status.
21738 rm -f conftest.vals
21739 cat > conftest.hdr <<\EOF
21740 s/[\\&%]/\\&/g
21741 s%[\\$`]%\\&%g
21742 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21743 s%ac_d%ac_u%gp
21744 s%ac_u%ac_e%gp
21745 EOF
21746 sed -n -f conftest.hdr confdefs.h > conftest.vals
21747 rm -f conftest.hdr
21748
21749 # This sed command replaces #undef with comments.  This is necessary, for
21750 # example, in the case of _POSIX_SOURCE, which is predefined and required
21751 # on some systems where configure will not decide to define it.
21752 cat >> conftest.vals <<\EOF
21753 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
21754 EOF
21755
21756 # Break up conftest.vals because some shells have a limit on
21757 # the size of here documents, and old seds have small limits too.
21758
21759 rm -f conftest.tail
21760 while :
21761 do
21762   ac_lines=`grep -c . conftest.vals`
21763   # grep -c gives empty output for an empty file on some AIX systems.
21764   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21765   # Write a limited-size here document to conftest.frag.
21766   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21767   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
21768   echo 'CEOF
21769   sed -f conftest.frag conftest.in > conftest.out
21770   rm -f conftest.in
21771   mv conftest.out conftest.in
21772 ' >> $CONFIG_STATUS
21773   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21774   rm -f conftest.vals
21775   mv conftest.tail conftest.vals
21776 done
21777 rm -f conftest.vals
21778
21779 cat >> $CONFIG_STATUS <<\EOF
21780   rm -f conftest.frag conftest.h
21781   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
21782   cat conftest.in >> conftest.h
21783   rm -f conftest.in
21784   if cmp -s $ac_file conftest.h 2>/dev/null; then
21785     echo "$ac_file is unchanged"
21786     rm -f conftest.h
21787   else
21788     # Remove last slash and all that follows it.  Not all systems have dirname.
21789       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21790       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21791       # The file is in a subdirectory.
21792       test ! -d "$ac_dir" && mkdir "$ac_dir"
21793     fi
21794     rm -f $ac_file
21795     mv conftest.h $ac_file
21796   fi
21797 fi; done
21798
21799 EOF
21800
21801 cat >> $CONFIG_STATUS <<EOF
21802 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $LINKER_MAP"
21803 ac_dests="src/basic_file.cc src/c++locale.cc src/collate.cc src/ctype.cc src/messages.cc src/monetary.cc src/numeric.cc src/time.cc src/linker.map"
21804 EOF
21805
21806 cat >> $CONFIG_STATUS <<\EOF
21807 srcdir=$ac_given_srcdir
21808 while test -n "$ac_sources"; do
21809   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21810   set $ac_sources; ac_source=$1; shift; ac_sources=$*
21811
21812   echo "linking $srcdir/$ac_source to $ac_dest"
21813
21814   if test ! -r $srcdir/$ac_source; then
21815     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
21816   fi
21817   rm -f $ac_dest
21818
21819   # Make relative symlinks.
21820   # Remove last slash and all that follows it.  Not all systems have dirname.
21821   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
21822   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
21823     # The dest file is in a subdirectory.
21824     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
21825     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
21826     # A "../" for each directory in $ac_dest_dir_suffix.
21827     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
21828   else
21829     ac_dest_dir_suffix= ac_dots=
21830   fi
21831
21832   case "$srcdir" in
21833   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
21834   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
21835   esac
21836
21837   # Make a symlink if possible; otherwise try a hard link.
21838   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
21839     ln $srcdir/$ac_source $ac_dest; then :
21840   else
21841     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
21842   fi
21843 done
21844 EOF
21845 cat >> $CONFIG_STATUS <<EOF
21846
21847 srcdir=${srcdir}
21848 host=${host}
21849 target=${target}
21850 with_multisubdir=${with_multisubdir}
21851 ac_configure_args="${multilib_arg} ${ac_configure_args}"
21852 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
21853 glibcpp_basedir=${glibcpp_basedir}
21854 CC="${CC}"
21855 CXX="${CXX}"
21856
21857 EOF
21858 cat >> $CONFIG_STATUS <<\EOF
21859 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
21860 if test -n "$CONFIG_FILES"; then
21861   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
21862   grep '^MULTISUBDIR =' Makefile >> src/Makefile
21863   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
21864 fi
21865 chmod +x mkcheck
21866 chmod +x testsuite_flags
21867
21868 exit 0
21869 EOF
21870 chmod +x $CONFIG_STATUS
21871 rm -fr confdefs* $ac_clean_files
21872 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
21873
21874
21875
21876 # Sanity checking & User-visible messages.
21877 # Checks down here, otherwise they get scrolled off before
21878 # the user will notice.
21879
21880 # Trying to get more people to read documentation.  Possibly remove
21881 # check and warn all the time. There is no "informational" AC_MSG_
21882 # macro, so these are going to be printed even when --quiet/--silent
21883 # is given.
21884 if test ! -f stamp-sanity-warned; then
21885   touch stamp-sanity-warned
21886   echo ""
21887   echo "Please make certain that you read the installation information here:"
21888   echo "  faster => ${srcdir}/docs/html/install.html"
21889   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
21890   echo ""
21891   echo "and the configuration information here:"
21892   echo "  faster => ${srcdir}/docs/html/configopts.html"
21893   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
21894   echo ""
21895   echo "before proceeding with ${_cv_gnu_make_command}."
21896   echo ""
21897 fi