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:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15  --enable-multilib       build hella library versions (default)"
16ac_help="$ac_help
17  --with-newlib        use newlib headers"
18ac_help="$ac_help
19  --with-target-subdir=SUBDIR
20                          configuring in a subdirectory"
21ac_help="$ac_help
22  --with-cross-host=HOST  configuring with a cross compiler"
23ac_help="$ac_help
24  --enable-maintainer-mode enable make rules and dependencies not useful
25                          (and sometimes confusing) to the casual installer"
26ac_help="$ac_help
27  --enable-shared[=PKGS]  build shared libraries [default=yes]"
28ac_help="$ac_help
29  --enable-static[=PKGS]  build static libraries [default=yes]"
30ac_help="$ac_help
31  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
32ac_help="$ac_help
33  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
34ac_help="$ac_help
35  --disable-libtool-lock  avoid locking (might break parallel builds)"
36ac_help="$ac_help
37  --with-pic              try to use only PIC/non-PIC objects [default=use both]"
38ac_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  "
42ac_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  "
46ac_help="$ac_help
47  --enable-nls            use Native Language Support (default)"
48ac_help="$ac_help
49  --enable-cheaders=MODEL       construct "C" header files for g++ [default=c_std]"
50ac_help="$ac_help
51  --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
52ac_help="$ac_help
53  --enable-c99            turns on 'ISO/IEC 9899:1999 support' [default=yes]"
54ac_help="$ac_help
55  --enable-long-long      turns on 'long long' [default=yes]"
56ac_help="$ac_help
57  --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
58ac_help="$ac_help
59  --enable-libunwind-exceptions  force use of libunwind for exceptions"
60ac_help="$ac_help
61  --enable-concept-checks use Boost-derived template checks [default=no]"
62ac_help="$ac_help
63  --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
64                                  [default=]"
65ac_help="$ac_help
66  --enable-debug          build extra debug library [default=no]"
67ac_help="$ac_help
68  --enable-debug-flags=FLAGS    pass compiler FLAGS when building debug
69	                library;[default=none]"
70ac_help="$ac_help
71  --enable-symvers=style  enables symbol versioning of the shared library [default=yes]"
72ac_help="$ac_help
73  --with-gxx-include-dir  the installation directory for include files"
74ac_help="$ac_help
75  --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
76
77# Initialize some variables set by options.
78# The variables have the same names as the options, with
79# dashes changed to underlines.
80build=NONE
81cache_file=./config.cache
82exec_prefix=NONE
83host=NONE
84no_create=
85nonopt=NONE
86no_recursion=
87prefix=NONE
88program_prefix=NONE
89program_suffix=NONE
90program_transform_name=s,x,x,
91silent=
92site=
93srcdir=
94target=NONE
95verbose=
96x_includes=NONE
97x_libraries=NONE
98bindir='${exec_prefix}/bin'
99sbindir='${exec_prefix}/sbin'
100libexecdir='${exec_prefix}/libexec'
101datadir='${prefix}/share'
102sysconfdir='${prefix}/etc'
103sharedstatedir='${prefix}/com'
104localstatedir='${prefix}/var'
105libdir='${exec_prefix}/lib'
106includedir='${prefix}/include'
107oldincludedir='/usr/include'
108infodir='${prefix}/info'
109mandir='${prefix}/man'
110
111# Initialize some other variables.
112subdirs=
113MFLAGS= MAKEFLAGS=
114SHELL=${CONFIG_SHELL-/bin/sh}
115# Maximum number of lines to put in a shell here document.
116ac_max_here_lines=12
117
118ac_prev=
119for ac_option
120do
121
122  # If the previous option needs an argument, assign it.
123  if test -n "$ac_prev"; then
124    eval "$ac_prev=\$ac_option"
125    ac_prev=
126    continue
127  fi
128
129  case "$ac_option" in
130  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
131  *) ac_optarg= ;;
132  esac
133
134  # Accept the important Cygnus configure options, so we can diagnose typos.
135
136  case "$ac_option" in
137
138  -bindir | --bindir | --bindi | --bind | --bin | --bi)
139    ac_prev=bindir ;;
140  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
141    bindir="$ac_optarg" ;;
142
143  -build | --build | --buil | --bui | --bu)
144    ac_prev=build ;;
145  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
146    build="$ac_optarg" ;;
147
148  -cache-file | --cache-file | --cache-fil | --cache-fi \
149  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
150    ac_prev=cache_file ;;
151  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
152  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
153    cache_file="$ac_optarg" ;;
154
155  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
156    ac_prev=datadir ;;
157  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
158  | --da=*)
159    datadir="$ac_optarg" ;;
160
161  -disable-* | --disable-*)
162    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
163    # Reject names that are not valid shell variable names.
164    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
165      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166    fi
167    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168    eval "enable_${ac_feature}=no" ;;
169
170  -enable-* | --enable-*)
171    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
172    # Reject names that are not valid shell variable names.
173    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
174      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
175    fi
176    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
177    case "$ac_option" in
178      *=*) ;;
179      *) ac_optarg=yes ;;
180    esac
181    eval "enable_${ac_feature}='$ac_optarg'" ;;
182
183  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
184  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
185  | --exec | --exe | --ex)
186    ac_prev=exec_prefix ;;
187  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
188  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
189  | --exec=* | --exe=* | --ex=*)
190    exec_prefix="$ac_optarg" ;;
191
192  -gas | --gas | --ga | --g)
193    # Obsolete; use --with-gas.
194    with_gas=yes ;;
195
196  -help | --help | --hel | --he)
197    # Omit some internal or obsolete options to make the list less imposing.
198    # This message is too long to be a string in the A/UX 3.1 sh.
199    cat << EOF
200Usage: configure [options] [host]
201Options: [defaults in brackets after descriptions]
202Configuration:
203  --cache-file=FILE       cache test results in FILE
204  --help                  print this message
205  --no-create             do not create output files
206  --quiet, --silent       do not print \`checking...' messages
207  --version               print the version of autoconf that created configure
208Directory and file names:
209  --prefix=PREFIX         install architecture-independent files in PREFIX
210                          [$ac_default_prefix]
211  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
212                          [same as prefix]
213  --bindir=DIR            user executables in DIR [EPREFIX/bin]
214  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
215  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
216  --datadir=DIR           read-only architecture-independent data in DIR
217                          [PREFIX/share]
218  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
219  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
220                          [PREFIX/com]
221  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
222  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
223  --includedir=DIR        C header files in DIR [PREFIX/include]
224  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
225  --infodir=DIR           info documentation in DIR [PREFIX/info]
226  --mandir=DIR            man documentation in DIR [PREFIX/man]
227  --srcdir=DIR            find the sources in DIR [configure dir or ..]
228  --program-prefix=PREFIX prepend PREFIX to installed program names
229  --program-suffix=SUFFIX append SUFFIX to installed program names
230  --program-transform-name=PROGRAM
231                          run sed PROGRAM on installed program names
232EOF
233    cat << EOF
234Host type:
235  --build=BUILD           configure for building on BUILD [BUILD=HOST]
236  --host=HOST             configure for HOST [guessed]
237  --target=TARGET         configure for TARGET [TARGET=HOST]
238Features and packages:
239  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
240  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
241  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
242  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
243  --x-includes=DIR        X include files are in DIR
244  --x-libraries=DIR       X library files are in DIR
245EOF
246    if test -n "$ac_help"; then
247      echo "--enable and --with options recognized:$ac_help"
248    fi
249    exit 0 ;;
250
251  -host | --host | --hos | --ho)
252    ac_prev=host ;;
253  -host=* | --host=* | --hos=* | --ho=*)
254    host="$ac_optarg" ;;
255
256  -includedir | --includedir | --includedi | --included | --include \
257  | --includ | --inclu | --incl | --inc)
258    ac_prev=includedir ;;
259  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
260  | --includ=* | --inclu=* | --incl=* | --inc=*)
261    includedir="$ac_optarg" ;;
262
263  -infodir | --infodir | --infodi | --infod | --info | --inf)
264    ac_prev=infodir ;;
265  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
266    infodir="$ac_optarg" ;;
267
268  -libdir | --libdir | --libdi | --libd)
269    ac_prev=libdir ;;
270  -libdir=* | --libdir=* | --libdi=* | --libd=*)
271    libdir="$ac_optarg" ;;
272
273  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
274  | --libexe | --libex | --libe)
275    ac_prev=libexecdir ;;
276  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
277  | --libexe=* | --libex=* | --libe=*)
278    libexecdir="$ac_optarg" ;;
279
280  -localstatedir | --localstatedir | --localstatedi | --localstated \
281  | --localstate | --localstat | --localsta | --localst \
282  | --locals | --local | --loca | --loc | --lo)
283    ac_prev=localstatedir ;;
284  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
285  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
286  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
287    localstatedir="$ac_optarg" ;;
288
289  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
290    ac_prev=mandir ;;
291  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
292    mandir="$ac_optarg" ;;
293
294  -nfp | --nfp | --nf)
295    # Obsolete; use --without-fp.
296    with_fp=no ;;
297
298  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
299  | --no-cr | --no-c)
300    no_create=yes ;;
301
302  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
303  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
304    no_recursion=yes ;;
305
306  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
307  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
308  | --oldin | --oldi | --old | --ol | --o)
309    ac_prev=oldincludedir ;;
310  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
311  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
312  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
313    oldincludedir="$ac_optarg" ;;
314
315  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
316    ac_prev=prefix ;;
317  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
318    prefix="$ac_optarg" ;;
319
320  -program-prefix | --program-prefix | --program-prefi | --program-pref \
321  | --program-pre | --program-pr | --program-p)
322    ac_prev=program_prefix ;;
323  -program-prefix=* | --program-prefix=* | --program-prefi=* \
324  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
325    program_prefix="$ac_optarg" ;;
326
327  -program-suffix | --program-suffix | --program-suffi | --program-suff \
328  | --program-suf | --program-su | --program-s)
329    ac_prev=program_suffix ;;
330  -program-suffix=* | --program-suffix=* | --program-suffi=* \
331  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
332    program_suffix="$ac_optarg" ;;
333
334  -program-transform-name | --program-transform-name \
335  | --program-transform-nam | --program-transform-na \
336  | --program-transform-n | --program-transform- \
337  | --program-transform | --program-transfor \
338  | --program-transfo | --program-transf \
339  | --program-trans | --program-tran \
340  | --progr-tra | --program-tr | --program-t)
341    ac_prev=program_transform_name ;;
342  -program-transform-name=* | --program-transform-name=* \
343  | --program-transform-nam=* | --program-transform-na=* \
344  | --program-transform-n=* | --program-transform-=* \
345  | --program-transform=* | --program-transfor=* \
346  | --program-transfo=* | --program-transf=* \
347  | --program-trans=* | --program-tran=* \
348  | --progr-tra=* | --program-tr=* | --program-t=*)
349    program_transform_name="$ac_optarg" ;;
350
351  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
352  | -silent | --silent | --silen | --sile | --sil)
353    silent=yes ;;
354
355  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
356    ac_prev=sbindir ;;
357  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
358  | --sbi=* | --sb=*)
359    sbindir="$ac_optarg" ;;
360
361  -sharedstatedir | --sharedstatedir | --sharedstatedi \
362  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
363  | --sharedst | --shareds | --shared | --share | --shar \
364  | --sha | --sh)
365    ac_prev=sharedstatedir ;;
366  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
367  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
368  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
369  | --sha=* | --sh=*)
370    sharedstatedir="$ac_optarg" ;;
371
372  -site | --site | --sit)
373    ac_prev=site ;;
374  -site=* | --site=* | --sit=*)
375    site="$ac_optarg" ;;
376
377  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
378    ac_prev=srcdir ;;
379  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
380    srcdir="$ac_optarg" ;;
381
382  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
383  | --syscon | --sysco | --sysc | --sys | --sy)
384    ac_prev=sysconfdir ;;
385  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
386  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
387    sysconfdir="$ac_optarg" ;;
388
389  -target | --target | --targe | --targ | --tar | --ta | --t)
390    ac_prev=target ;;
391  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
392    target="$ac_optarg" ;;
393
394  -v | -verbose | --verbose | --verbos | --verbo | --verb)
395    verbose=yes ;;
396
397  -version | --version | --versio | --versi | --vers)
398    echo "configure generated by autoconf version 2.13"
399    exit 0 ;;
400
401  -with-* | --with-*)
402    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
403    # Reject names that are not valid shell variable names.
404    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
405      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406    fi
407    ac_package=`echo $ac_package| sed 's/-/_/g'`
408    case "$ac_option" in
409      *=*) ;;
410      *) ac_optarg=yes ;;
411    esac
412    eval "with_${ac_package}='$ac_optarg'" ;;
413
414  -without-* | --without-*)
415    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
416    # Reject names that are not valid shell variable names.
417    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
418      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419    fi
420    ac_package=`echo $ac_package| sed 's/-/_/g'`
421    eval "with_${ac_package}=no" ;;
422
423  --x)
424    # Obsolete; use --with-x.
425    with_x=yes ;;
426
427  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
428  | --x-incl | --x-inc | --x-in | --x-i)
429    ac_prev=x_includes ;;
430  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
431  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
432    x_includes="$ac_optarg" ;;
433
434  -x-libraries | --x-libraries | --x-librarie | --x-librari \
435  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
436    ac_prev=x_libraries ;;
437  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
438  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
439    x_libraries="$ac_optarg" ;;
440
441  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
442    ;;
443
444  *)
445    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
446      echo "configure: warning: $ac_option: invalid host type" 1>&2
447    fi
448    if test "x$nonopt" != xNONE; then
449      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
450    fi
451    nonopt="$ac_option"
452    ;;
453
454  esac
455done
456
457if test -n "$ac_prev"; then
458  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459fi
460
461trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
462
463# File descriptor usage:
464# 0 standard input
465# 1 file creation
466# 2 errors and warnings
467# 3 some systems may open it to /dev/tty
468# 4 used on the Kubota Titan
469# 6 checking for... messages and results
470# 5 compiler messages saved in config.log
471if test "$silent" = yes; then
472  exec 6>/dev/null
473else
474  exec 6>&1
475fi
476exec 5>./config.log
477
478echo "\
479This file contains any messages produced by compilers while
480running configure, to aid debugging if configure makes a mistake.
481" 1>&5
482
483# Strip out --no-create and --no-recursion so they do not pile up.
484# Also quote any args containing shell metacharacters.
485ac_configure_args=
486for ac_arg
487do
488  case "$ac_arg" in
489  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490  | --no-cr | --no-c) ;;
491  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
493  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
494  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
495  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
496  esac
497done
498
499# NLS nuisances.
500# Only set these to C if already set.  These must not be set unconditionally
501# because not all systems understand e.g. LANG=C (notably SCO).
502# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
503# Non-C LC_CTYPE values break the ctype check.
504if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
505if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
506if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
507if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
508
509# confdefs.h avoids OS command line length limits that DEFS can exceed.
510rm -rf conftest* confdefs.h
511# AIX cpp loses on an empty file, so make sure it contains at least a newline.
512echo > confdefs.h
513
514# A filename unique to this package, relative to the directory that
515# configure is in, which we can look for to find out if srcdir is correct.
516ac_unique_file=src/ios.cc
517
518# Find the source files, if location was not specified.
519if test -z "$srcdir"; then
520  ac_srcdir_defaulted=yes
521  # Try the directory containing this script, then its parent.
522  ac_prog=$0
523  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
524  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
525  srcdir=$ac_confdir
526  if test ! -r $srcdir/$ac_unique_file; then
527    srcdir=..
528  fi
529else
530  ac_srcdir_defaulted=no
531fi
532if test ! -r $srcdir/$ac_unique_file; then
533  if test "$ac_srcdir_defaulted" = yes; then
534    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
535  else
536    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537  fi
538fi
539srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
540
541# Prefer explicitly selected file to automatically selected ones.
542if test -z "$CONFIG_SITE"; then
543  if test "x$prefix" != xNONE; then
544    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
545  else
546    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547  fi
548fi
549for ac_site_file in $CONFIG_SITE; do
550  if test -r "$ac_site_file"; then
551    echo "loading site script $ac_site_file"
552    . "$ac_site_file"
553  fi
554done
555
556if test -r "$cache_file"; then
557  echo "loading cache $cache_file"
558  . $cache_file
559else
560  echo "creating cache $cache_file"
561  > $cache_file
562fi
563
564ac_ext=c
565# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566ac_cpp='$CPP $CPPFLAGS'
567ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569cross_compiling=$ac_cv_prog_cc_cross
570
571ac_exeext=
572ac_objext=o
573if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
574  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
576    ac_n= ac_c='
577' ac_t='	'
578  else
579    ac_n=-n ac_c= ac_t=
580  fi
581else
582  ac_n= ac_c='\c' ac_t=
583fi
584
585
586
587# This works around the fact that libtool configuration may change LD
588# for this particular configuration, but some shells, instead of
589# keeping the changes in LD private, export them just because LD is
590# exported.  Only used at the end of this file.
591ORIGINAL_LD_FOR_MULTILIBS=$LD
592
593PACKAGE=libstdc++
594
595# For libtool versioning info, format is CURRENT:REVISION:AGE
596libtool_VERSION=5:7:0
597
598
599
600      # Check whether --enable-multilib or --disable-multilib was given.
601if test "${enable_multilib+set}" = set; then
602  enableval="$enable_multilib"
603  case "${enableval}" in
604    yes) multilib=yes ;;
605    no)  multilib=no ;;
606    *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
607   esac
608else
609  multilib=yes
610fi
611
612  # When building with srcdir == objdir, links to the source files will
613  # be created in directories within the target_subdir.  We have to
614  # adjust toplevel_srcdir accordingly, so that configure finds
615  # install-sh and other auxiliary files that live in the top-level
616  # source directory.
617  if test "${srcdir}" = "."; then
618    if test -z "${with_target_subdir}"; then
619      toprel=".."
620    else
621      if test "${with_target_subdir}" != "."; then
622        toprel="${with_multisrctop}../.."
623      else
624        toprel="${with_multisrctop}.."
625      fi
626    fi
627  else
628    toprel=".."
629  fi
630  ac_aux_dir=
631for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
632  if test -f $ac_dir/install-sh; then
633    ac_aux_dir=$ac_dir
634    ac_install_sh="$ac_aux_dir/install-sh -c"
635    break
636  elif test -f $ac_dir/install.sh; then
637    ac_aux_dir=$ac_dir
638    ac_install_sh="$ac_aux_dir/install.sh -c"
639    break
640  fi
641done
642if test -z "$ac_aux_dir"; then
643  { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
644fi
645ac_config_guess=$ac_aux_dir/config.guess
646ac_config_sub=$ac_aux_dir/config.sub
647ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
648
649  toplevel_srcdir=\${top_srcdir}/$toprel
650  
651
652
653# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
654#
655# You will slowly go insane if you do not grok the following fact:  when
656# building v3 as part of the compiler, the top-level /target/ becomes the
657# library's /host/.  `configure' then causes --target to default to --host,
658# exactly like any other package using autoconf.  Therefore, 'target' and
659# 'host' will always be the same.  This makes sense both for native and
660# cross compilers, just think about it for a little while.  :-)
661#
662# Also, if v3 is being configured as part of a cross compiler, the top-level
663# configure script will pass the "real" host as $with_cross_host.
664#
665# AC 2.5x sets target_alias iff the user specified --target, but we use it
666# everywhere, so we set it here just to be sure.  In AC 2.13
667# AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
668
669# Do some error checking and defaulting for the host and target type.
670# The inputs are:
671#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
672#
673# The rules are:
674# 1. You are not allowed to specify --host, --target, and nonopt at the
675#    same time.
676# 2. Host defaults to nonopt.
677# 3. If nonopt is not specified, then host defaults to the current host,
678#    as determined by config.guess.
679# 4. Target and build default to nonopt.
680# 5. If nonopt is not specified, then target and build default to host.
681
682# The aliases save the names the user supplied, while $host etc.
683# will get canonicalized.
684case $host---$target---$nonopt in
685NONE---*---* | *---NONE---* | *---*---NONE) ;;
686*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
687esac
688
689
690# Make sure we can run config.sub.
691if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
692else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
693fi
694
695echo $ac_n "checking host system type""... $ac_c" 1>&6
696echo "configure:697: checking host system type" >&5
697
698host_alias=$host
699case "$host_alias" in
700NONE)
701  case $nonopt in
702  NONE)
703    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
704    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
705    fi ;;
706  *) host_alias=$nonopt ;;
707  esac ;;
708esac
709
710host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
711host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
712host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
713host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
714echo "$ac_t""$host" 1>&6
715
716echo $ac_n "checking target system type""... $ac_c" 1>&6
717echo "configure:718: checking target system type" >&5
718
719target_alias=$target
720case "$target_alias" in
721NONE)
722  case $nonopt in
723  NONE) target_alias=$host_alias ;;
724  *) target_alias=$nonopt ;;
725  esac ;;
726esac
727
728target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
729target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
730target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
731target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
732echo "$ac_t""$target" 1>&6
733
734echo $ac_n "checking build system type""... $ac_c" 1>&6
735echo "configure:736: checking build system type" >&5
736
737build_alias=$build
738case "$build_alias" in
739NONE)
740  case $nonopt in
741  NONE) build_alias=$host_alias ;;
742  *) build_alias=$nonopt ;;
743  esac ;;
744esac
745
746build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
747build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
748build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
749build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
750echo "$ac_t""$build" 1>&6
751
752test "$host_alias" != "$target_alias" &&
753  test "$program_prefix$program_suffix$program_transform_name" = \
754    NONENONEs,x,x, &&
755  program_prefix=${target_alias}-
756
757target_alias=${target_alias-$target}
758
759
760# Runs configure.target, finds CC, CXX and assorted other critical bits.
761# Must run this before the GLIBCPP_ENABLE_* macros below.
762if test $host != $build; then
763  ac_tool_prefix=${host_alias}-
764else
765  ac_tool_prefix=
766fi
767
768echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
769echo "configure:770: checking for Cygwin environment" >&5
770if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
771  echo $ac_n "(cached) $ac_c" 1>&6
772else
773  cat > conftest.$ac_ext <<EOF
774#line 775 "configure"
775#include "confdefs.h"
776
777int main() {
778
779#ifndef __CYGWIN__
780#define __CYGWIN__ __CYGWIN32__
781#endif
782return __CYGWIN__;
783; return 0; }
784EOF
785if { (eval echo configure:786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
786  rm -rf conftest*
787  ac_cv_cygwin=yes
788else
789  echo "configure: failed program was:" >&5
790  cat conftest.$ac_ext >&5
791  rm -rf conftest*
792  ac_cv_cygwin=no
793fi
794rm -f conftest*
795rm -f conftest*
796fi
797
798echo "$ac_t""$ac_cv_cygwin" 1>&6
799CYGWIN=
800test "$ac_cv_cygwin" = yes && CYGWIN=yes
801echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
802echo "configure:803: checking for mingw32 environment" >&5
803if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
804  echo $ac_n "(cached) $ac_c" 1>&6
805else
806  cat > conftest.$ac_ext <<EOF
807#line 808 "configure"
808#include "confdefs.h"
809
810int main() {
811return __MINGW32__;
812; return 0; }
813EOF
814if { (eval echo configure:815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
815  rm -rf conftest*
816  ac_cv_mingw32=yes
817else
818  echo "configure: failed program was:" >&5
819  cat conftest.$ac_ext >&5
820  rm -rf conftest*
821  ac_cv_mingw32=no
822fi
823rm -f conftest*
824rm -f conftest*
825fi
826
827echo "$ac_t""$ac_cv_mingw32" 1>&6
828MINGW32=
829test "$ac_cv_mingw32" = yes && MINGW32=yes
830
831  # Export build and source directories.
832  # These need to be absolute paths, yet at the same time need to
833  # canonicalize only relative paths, because then amd will not unmount
834  # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
835  glibcpp_builddir=`${PWDCMD-pwd}`
836  case $srcdir in
837  \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
838  *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
839  esac
840  
841  
842
843    
844
845  for ac_prog in gawk mawk nawk awk
846do
847# Extract the first word of "$ac_prog", so it can be a program name with args.
848set dummy $ac_prog; ac_word=$2
849echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
850echo "configure:851: checking for $ac_word" >&5
851if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
852  echo $ac_n "(cached) $ac_c" 1>&6
853else
854  if test -n "$AWK"; then
855  ac_cv_prog_AWK="$AWK" # Let the user override the test.
856else
857  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
858  ac_dummy="$PATH"
859  for ac_dir in $ac_dummy; do
860    test -z "$ac_dir" && ac_dir=.
861    if test -f $ac_dir/$ac_word; then
862      ac_cv_prog_AWK="$ac_prog"
863      break
864    fi
865  done
866  IFS="$ac_save_ifs"
867fi
868fi
869AWK="$ac_cv_prog_AWK"
870if test -n "$AWK"; then
871  echo "$ac_t""$AWK" 1>&6
872else
873  echo "$ac_t""no" 1>&6
874fi
875
876test -n "$AWK" && break
877done
878
879  # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.5x, can also
880  # be 'cp -p' if linking isn't available.  Uncomment the next line to
881  # force a particular method.
882  #ac_cv_prog_LN_S='cp -p'
883  echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
884echo "configure:885: checking whether ln -s works" >&5
885if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
886  echo $ac_n "(cached) $ac_c" 1>&6
887else
888  rm -f conftestdata
889if ln -s X conftestdata 2>/dev/null
890then
891  rm -f conftestdata
892  ac_cv_prog_LN_S="ln -s"
893else
894  ac_cv_prog_LN_S=ln
895fi
896fi
897LN_S="$ac_cv_prog_LN_S"
898if test "$ac_cv_prog_LN_S" = "ln -s"; then
899  echo "$ac_t""yes" 1>&6
900else
901  echo "$ac_t""no" 1>&6
902fi
903
904
905  # We use these options to decide which functions to include.
906  # Check whether --with-newlib or --without-newlib was given.
907if test "${with_newlib+set}" = set; then
908  withval="$with_newlib"
909  :
910fi
911
912  # Check whether --with-target-subdir or --without-target-subdir was given.
913if test "${with_target_subdir+set}" = set; then
914  withval="$with_target_subdir"
915  :
916fi
917
918  # Check whether --with-cross-host or --without-cross-host was given.
919if test "${with_cross_host+set}" = set; then
920  withval="$with_cross_host"
921  :
922fi
923
924
925  glibcpp_basedir=$srcdir/$toprel/./libstdc++
926  
927
928  # Never versions of autoconf add an underscore to these functions.
929  # Prevent future problems ...
930  
931  
932  
933  
934
935  # AC_PROG_CC
936  # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
937  # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
938  # are probably using a cross compiler, which will not be able to fully
939  # link an executable.  This is addressed in later versions of autoconf.
940
941  
942
943      
944  # Extract the first word of "gcc", so it can be a program name with args.
945set dummy gcc; ac_word=$2
946echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
947echo "configure:948: checking for $ac_word" >&5
948if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
949  echo $ac_n "(cached) $ac_c" 1>&6
950else
951  if test -n "$CC"; then
952  ac_cv_prog_CC="$CC" # Let the user override the test.
953else
954  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
955  ac_dummy="$PATH"
956  for ac_dir in $ac_dummy; do
957    test -z "$ac_dir" && ac_dir=.
958    if test -f $ac_dir/$ac_word; then
959      ac_cv_prog_CC="gcc"
960      break
961    fi
962  done
963  IFS="$ac_save_ifs"
964fi
965fi
966CC="$ac_cv_prog_CC"
967if test -n "$CC"; then
968  echo "$ac_t""$CC" 1>&6
969else
970  echo "$ac_t""no" 1>&6
971fi
972
973  if test -z "$CC"; then
974    # Extract the first word of "cc", so it can be a program name with args.
975set dummy cc; ac_word=$2
976echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
977echo "configure:978: checking for $ac_word" >&5
978if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
979  echo $ac_n "(cached) $ac_c" 1>&6
980else
981  if test -n "$CC"; then
982  ac_cv_prog_CC="$CC" # Let the user override the test.
983else
984  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
985  ac_prog_rejected=no
986  ac_dummy="$PATH"
987  for ac_dir in $ac_dummy; do
988    test -z "$ac_dir" && ac_dir=.
989    if test -f $ac_dir/$ac_word; then
990      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
991        ac_prog_rejected=yes
992	continue
993      fi
994      ac_cv_prog_CC="cc"
995      break
996    fi
997  done
998  IFS="$ac_save_ifs"
999if test $ac_prog_rejected = yes; then
1000  # We found a bogon in the path, so make sure we never use it.
1001  set dummy $ac_cv_prog_CC
1002  shift
1003  if test $# -gt 0; then
1004    # We chose a different compiler from the bogus one.
1005    # However, it has the same basename, so the bogon will be chosen
1006    # first if we set CC to just the basename; use the full file name.
1007    shift
1008    set dummy "$ac_dir/$ac_word" "$@"
1009    shift
1010    ac_cv_prog_CC="$@"
1011  fi
1012fi
1013fi
1014fi
1015CC="$ac_cv_prog_CC"
1016if test -n "$CC"; then
1017  echo "$ac_t""$CC" 1>&6
1018else
1019  echo "$ac_t""no" 1>&6
1020fi
1021
1022    test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1023  fi
1024
1025  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1026echo "configure:1027: checking whether we are using GNU C" >&5
1027if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1028  echo $ac_n "(cached) $ac_c" 1>&6
1029else
1030  cat > conftest.c <<EOF
1031#ifdef __GNUC__
1032  yes;
1033#endif
1034EOF
1035if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1036  ac_cv_prog_gcc=yes
1037else
1038  ac_cv_prog_gcc=no
1039fi
1040fi
1041
1042echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1043
1044  if test $ac_cv_prog_gcc = yes; then
1045    GCC=yes
1046          ac_test_CFLAGS="${CFLAGS+set}"
1047    ac_save_CFLAGS="$CFLAGS"
1048    CFLAGS=
1049    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1050echo "configure:1051: checking whether ${CC-cc} accepts -g" >&5
1051if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1052  echo $ac_n "(cached) $ac_c" 1>&6
1053else
1054  echo 'void f(){}' > conftest.c
1055if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1056  ac_cv_prog_cc_g=yes
1057else
1058  ac_cv_prog_cc_g=no
1059fi
1060rm -f conftest*
1061
1062fi
1063
1064echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1065    if test "$ac_test_CFLAGS" = set; then
1066      CFLAGS="$ac_save_CFLAGS"
1067    elif test $ac_cv_prog_cc_g = yes; then
1068      CFLAGS="-g -O2"
1069    else
1070      CFLAGS="-O2"
1071    fi
1072  else
1073    GCC=
1074    test "${CFLAGS+set}" = set || CFLAGS="-g"
1075  fi
1076  
1077
1078  # Likewise for AC_PROG_CXX.  We can't just call it directly because g++
1079  # will try to link in libstdc++.
1080  
1081
1082      
1083  # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1084  # flags that come in CXX while configuring libstdc++.  They're different
1085  # from those used for all other target libraries.  If CXX is set in
1086  # the environment, respect that here.
1087  glibcpp_CXX=$CXX
1088  for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1089do
1090# Extract the first word of "$ac_prog", so it can be a program name with args.
1091set dummy $ac_prog; ac_word=$2
1092echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1093echo "configure:1094: checking for $ac_word" >&5
1094if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1095  echo $ac_n "(cached) $ac_c" 1>&6
1096else
1097  if test -n "$glibcpp_CXX"; then
1098  ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1099else
1100  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1101  ac_dummy="$PATH"
1102  for ac_dir in $ac_dummy; do
1103    test -z "$ac_dir" && ac_dir=.
1104    if test -f $ac_dir/$ac_word; then
1105      ac_cv_prog_glibcpp_CXX="$ac_prog"
1106      break
1107    fi
1108  done
1109  IFS="$ac_save_ifs"
1110fi
1111fi
1112glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1113if test -n "$glibcpp_CXX"; then
1114  echo "$ac_t""$glibcpp_CXX" 1>&6
1115else
1116  echo "$ac_t""no" 1>&6
1117fi
1118
1119test -n "$glibcpp_CXX" && break
1120done
1121test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1122
1123  
1124  CXX=$glibcpp_CXX
1125  test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1126
1127  echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1128echo "configure:1129: checking whether we are using GNU C++" >&5
1129if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1130  echo $ac_n "(cached) $ac_c" 1>&6
1131else
1132  cat > conftest.C <<EOF
1133#ifdef __GNUC__
1134  yes;
1135#endif
1136EOF
1137if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1138  ac_cv_prog_gxx=yes
1139else
1140  ac_cv_prog_gxx=no
1141fi
1142fi
1143
1144echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1145
1146  if test $ac_cv_prog_gxx = yes; then
1147    GXX=yes
1148                ac_test_CXXFLAGS="${CXXFLAGS+set}"
1149    ac_save_CXXFLAGS="$CXXFLAGS"
1150    CXXFLAGS=
1151    echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1152echo "configure:1153: checking whether ${CXX-g++} accepts -g" >&5
1153if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1154  echo $ac_n "(cached) $ac_c" 1>&6
1155else
1156  echo 'void f(){}' > conftest.cc
1157if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1158  ac_cv_prog_cxx_g=yes
1159else
1160  ac_cv_prog_cxx_g=no
1161fi
1162rm -f conftest*
1163
1164fi
1165
1166echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1167    if test "$ac_test_CXXFLAGS" = set; then
1168      CXXFLAGS="$ac_save_CXXFLAGS"
1169    elif test $ac_cv_prog_cxx_g = yes; then
1170      CXXFLAGS="-g -O2"
1171    else
1172      CXXFLAGS="-O2"
1173    fi
1174  else
1175    GXX=
1176    test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1177  fi
1178  
1179
1180  # For directory versioning (e.g., headers) and other variables.
1181  echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1182echo "configure:1183: checking for GCC version number" >&5
1183  gcc_version=`$glibcpp_CXX -dumpversion`
1184  echo "$ac_t""$gcc_version" 1>&6
1185
1186  # For some reason, gettext needs this.
1187  
1188        echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1189echo "configure:1190: checking for strerror in -lcposix" >&5
1190ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1191if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1192  echo $ac_n "(cached) $ac_c" 1>&6
1193else
1194  ac_save_LIBS="$LIBS"
1195LIBS="-lcposix  $LIBS"
1196cat > conftest.$ac_ext <<EOF
1197#line 1198 "configure"
1198#include "confdefs.h"
1199/* Override any gcc2 internal prototype to avoid an error.  */
1200/* We use char because int might match the return type of a gcc2
1201    builtin and then its argument prototype would still apply.  */
1202char strerror();
1203
1204int main() {
1205strerror()
1206; return 0; }
1207EOF
1208if { (eval echo configure:1209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1209  rm -rf conftest*
1210  eval "ac_cv_lib_$ac_lib_var=yes"
1211else
1212  echo "configure: failed program was:" >&5
1213  cat conftest.$ac_ext >&5
1214  rm -rf conftest*
1215  eval "ac_cv_lib_$ac_lib_var=no"
1216fi
1217rm -f conftest*
1218LIBS="$ac_save_LIBS"
1219
1220fi
1221if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1222  echo "$ac_t""yes" 1>&6
1223  LIBS="$LIBS -lcposix"
1224else
1225  echo "$ac_t""no" 1>&6
1226fi
1227
1228  
1229
1230
1231  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1232set dummy ${ac_tool_prefix}as; ac_word=$2
1233echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1234echo "configure:1235: checking for $ac_word" >&5
1235if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1236  echo $ac_n "(cached) $ac_c" 1>&6
1237else
1238  if test -n "$AS"; then
1239  ac_cv_prog_AS="$AS" # Let the user override the test.
1240else
1241  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1242  ac_dummy="$PATH"
1243  for ac_dir in $ac_dummy; do
1244    test -z "$ac_dir" && ac_dir=.
1245    if test -f $ac_dir/$ac_word; then
1246      ac_cv_prog_AS="${ac_tool_prefix}as"
1247      break
1248    fi
1249  done
1250  IFS="$ac_save_ifs"
1251  test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1252fi
1253fi
1254AS="$ac_cv_prog_AS"
1255if test -n "$AS"; then
1256  echo "$ac_t""$AS" 1>&6
1257else
1258  echo "$ac_t""no" 1>&6
1259fi
1260
1261
1262
1263  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1264set dummy ${ac_tool_prefix}ar; ac_word=$2
1265echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1266echo "configure:1267: checking for $ac_word" >&5
1267if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1268  echo $ac_n "(cached) $ac_c" 1>&6
1269else
1270  if test -n "$AR"; then
1271  ac_cv_prog_AR="$AR" # Let the user override the test.
1272else
1273  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1274  ac_dummy="$PATH"
1275  for ac_dir in $ac_dummy; do
1276    test -z "$ac_dir" && ac_dir=.
1277    if test -f $ac_dir/$ac_word; then
1278      ac_cv_prog_AR="${ac_tool_prefix}ar"
1279      break
1280    fi
1281  done
1282  IFS="$ac_save_ifs"
1283  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1284fi
1285fi
1286AR="$ac_cv_prog_AR"
1287if test -n "$AR"; then
1288  echo "$ac_t""$AR" 1>&6
1289else
1290  echo "$ac_t""no" 1>&6
1291fi
1292
1293
1294
1295  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1296set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1297echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1298echo "configure:1299: checking for $ac_word" >&5
1299if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1300  echo $ac_n "(cached) $ac_c" 1>&6
1301else
1302  if test -n "$RANLIB"; then
1303  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1304else
1305  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1306  ac_dummy="$PATH"
1307  for ac_dir in $ac_dummy; do
1308    test -z "$ac_dir" && ac_dir=.
1309    if test -f $ac_dir/$ac_word; then
1310      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1311      break
1312    fi
1313  done
1314  IFS="$ac_save_ifs"
1315fi
1316fi
1317RANLIB="$ac_cv_prog_RANLIB"
1318if test -n "$RANLIB"; then
1319  echo "$ac_t""$RANLIB" 1>&6
1320else
1321  echo "$ac_t""no" 1>&6
1322fi
1323
1324
1325if test -z "$ac_cv_prog_RANLIB"; then
1326if test -n "$ac_tool_prefix"; then
1327  # Extract the first word of "ranlib", so it can be a program name with args.
1328set dummy ranlib; ac_word=$2
1329echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1330echo "configure:1331: checking for $ac_word" >&5
1331if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1332  echo $ac_n "(cached) $ac_c" 1>&6
1333else
1334  if test -n "$RANLIB"; then
1335  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1336else
1337  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1338  ac_dummy="$PATH"
1339  for ac_dir in $ac_dummy; do
1340    test -z "$ac_dir" && ac_dir=.
1341    if test -f $ac_dir/$ac_word; then
1342      ac_cv_prog_RANLIB="ranlib"
1343      break
1344    fi
1345  done
1346  IFS="$ac_save_ifs"
1347  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1348fi
1349fi
1350RANLIB="$ac_cv_prog_RANLIB"
1351if test -n "$RANLIB"; then
1352  echo "$ac_t""$RANLIB" 1>&6
1353else
1354  echo "$ac_t""no" 1>&6
1355fi
1356
1357else
1358  RANLIB="ranlib-not-found-in-path-error"
1359fi
1360fi
1361
1362  # Find a good install program.  We prefer a C program (faster),
1363# so one script is as good as another.  But avoid the broken or
1364# incompatible versions:
1365# SysV /etc/install, /usr/sbin/install
1366# SunOS /usr/etc/install
1367# IRIX /sbin/install
1368# AIX /bin/install
1369# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1370# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1371# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1372# ./install, which can be erroneously created by make from ./install.sh.
1373echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1374echo "configure:1375: checking for a BSD compatible install" >&5
1375if test -z "$INSTALL"; then
1376if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1377  echo $ac_n "(cached) $ac_c" 1>&6
1378else
1379    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
1380  for ac_dir in $PATH; do
1381    # Account for people who put trailing slashes in PATH elements.
1382    case "$ac_dir/" in
1383    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1384    *)
1385      # OSF1 and SCO ODT 3.0 have their own names for install.
1386      # Don't use installbsd from OSF since it installs stuff as root
1387      # by default.
1388      for ac_prog in ginstall scoinst install; do
1389        if test -f $ac_dir/$ac_prog; then
1390	  if test $ac_prog = install &&
1391            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1392	    # AIX install.  It has an incompatible calling convention.
1393	    :
1394	  else
1395	    ac_cv_path_install="$ac_dir/$ac_prog -c"
1396	    break 2
1397	  fi
1398	fi
1399      done
1400      ;;
1401    esac
1402  done
1403  IFS="$ac_save_IFS"
1404
1405fi
1406  if test "${ac_cv_path_install+set}" = set; then
1407    INSTALL="$ac_cv_path_install"
1408  else
1409    # As a last resort, use the slow shell script.  We don't cache a
1410    # path for INSTALL within a source directory, because that will
1411    # break other packages using the cache if that directory is
1412    # removed, or if the path is relative.
1413    INSTALL="$ac_install_sh"
1414  fi
1415fi
1416echo "$ac_t""$INSTALL" 1>&6
1417
1418# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1419# It thinks the first close brace ends the variable substitution.
1420test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1421
1422test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1423
1424test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1425
1426
1427  echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1428echo "configure:1429: checking whether to enable maintainer-specific portions of Makefiles" >&5
1429    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1430if test "${enable_maintainer_mode+set}" = set; then
1431  enableval="$enable_maintainer_mode"
1432  USE_MAINTAINER_MODE=$enableval
1433else
1434  USE_MAINTAINER_MODE=no
1435fi
1436
1437  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1438  
1439
1440if test $USE_MAINTAINER_MODE = yes; then
1441  MAINTAINER_MODE_TRUE=
1442  MAINTAINER_MODE_FALSE='#'
1443else
1444  MAINTAINER_MODE_TRUE='#'
1445  MAINTAINER_MODE_FALSE=
1446fi
1447  MAINT=$MAINTAINER_MODE_TRUE
1448  
1449
1450
1451  # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1452  # at least currently, we never actually build a program, so we never
1453  # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1454  # fails, because we are probably configuring with a cross compiler
1455  # which can't create executables.  So we include AC_EXEEXT to keep
1456  # automake happy, but we don't execute it, since we don't care about
1457  # the result.
1458  if false; then
1459    # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1460    # to nothing, so nothing would remain between `then' and `fi' if it
1461    # were not for the `:' below.
1462    :
1463    
1464
1465echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1466echo "configure:1467: checking for executable suffix" >&5
1467if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1468  echo $ac_n "(cached) $ac_c" 1>&6
1469else
1470  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1471  ac_cv_exeext=.exe
1472else
1473  rm -f conftest*
1474  echo 'int main () { return 0; }' > conftest.$ac_ext
1475  ac_cv_exeext=
1476  if { (eval echo configure:1477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1477    for file in conftest.*; do
1478      case $file in
1479      *.c | *.o | *.obj) ;;
1480      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1481      esac
1482    done
1483  else
1484    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1485  fi
1486  rm -f conftest*
1487  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1488fi
1489fi
1490
1491EXEEXT=""
1492test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1493echo "$ac_t""${ac_cv_exeext}" 1>&6
1494ac_exeext=$EXEEXT
1495
1496  fi
1497
1498  case ${glibcpp_basedir} in
1499    /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1500    *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1501  esac
1502
1503  # Find platform-specific directories containing configuration info.  In
1504  # addition to possibly modifying the same flags, it also sets up symlinks.
1505  
1506  . ${glibcpp_basedir}/configure.target
1507  echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1508  echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1509
1510
1511
1512echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1513echo "configure:1514: checking whether build environment is sane" >&5
1514# Just in case
1515sleep 1
1516echo timestamp > conftestfile
1517# Do `set' in a subshell so we don't clobber the current shell's
1518# arguments.  Must try -L first in case configure is actually a
1519# symlink; some systems play weird games with the mod time of symlinks
1520# (eg FreeBSD returns the mod time of the symlink's containing
1521# directory).
1522if (
1523   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1524   if test "$*" = "X"; then
1525      # -L didn't work.
1526      set X `ls -t $srcdir/configure conftestfile`
1527   fi
1528   if test "$*" != "X $srcdir/configure conftestfile" \
1529      && test "$*" != "X conftestfile $srcdir/configure"; then
1530
1531      # If neither matched, then we have a broken ls.  This can happen
1532      # if, for instance, CONFIG_SHELL is bash and it inherits a
1533      # broken ls alias from the environment.  This has actually
1534      # happened.  Such a system could not be considered "sane".
1535      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
1536alias in your environment" 1>&2; exit 1; }
1537   fi
1538
1539   test "$2" = conftestfile
1540   )
1541then
1542   # Ok.
1543   :
1544else
1545   { echo "configure: error: newly created file is older than distributed files!
1546Check your system clock" 1>&2; exit 1; }
1547fi
1548rm -f conftest*
1549echo "$ac_t""yes" 1>&6
1550if test "$program_transform_name" = s,x,x,; then
1551  program_transform_name=
1552else
1553  # Double any \ or $.  echo might interpret backslashes.
1554  cat <<\EOF_SED > conftestsed
1555s,\\,\\\\,g; s,\$,$$,g
1556EOF_SED
1557  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1558  rm -f conftestsed
1559fi
1560test "$program_prefix" != NONE &&
1561  program_transform_name="s,^,${program_prefix},; $program_transform_name"
1562# Use a double $ so make ignores it.
1563test "$program_suffix" != NONE &&
1564  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1565
1566# sed with no file args requires a program.
1567test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1568
1569echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1570echo "configure:1571: checking whether ${MAKE-make} sets \${MAKE}" >&5
1571set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1572if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1573  echo $ac_n "(cached) $ac_c" 1>&6
1574else
1575  cat > conftestmake <<\EOF
1576all:
1577	@echo 'ac_maketemp="${MAKE}"'
1578EOF
1579# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1580eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1581if test -n "$ac_maketemp"; then
1582  eval ac_cv_prog_make_${ac_make}_set=yes
1583else
1584  eval ac_cv_prog_make_${ac_make}_set=no
1585fi
1586rm -f conftestmake
1587fi
1588if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1589  echo "$ac_t""yes" 1>&6
1590  SET_MAKE=
1591else
1592  echo "$ac_t""no" 1>&6
1593  SET_MAKE="MAKE=${MAKE-make}"
1594fi
1595
1596
1597PACKAGE=$PACKAGE
1598
1599VERSION=$gcc_version
1600
1601if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1602  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1603fi
1604cat >> confdefs.h <<EOF
1605#define PACKAGE "$PACKAGE"
1606EOF
1607
1608cat >> confdefs.h <<EOF
1609#define VERSION "$VERSION"
1610EOF
1611
1612
1613
1614missing_dir=`cd $ac_aux_dir && pwd`
1615echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1616echo "configure:1617: checking for working aclocal" >&5
1617# Run test in a subshell; some versions of sh will print an error if
1618# an executable is not found, even if stderr is redirected.
1619# Redirect stdin to placate older versions of autoconf.  Sigh.
1620if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1621   ACLOCAL=aclocal
1622   echo "$ac_t""found" 1>&6
1623else
1624   ACLOCAL="$missing_dir/missing aclocal"
1625   echo "$ac_t""missing" 1>&6
1626fi
1627
1628echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1629echo "configure:1630: checking for working autoconf" >&5
1630# Run test in a subshell; some versions of sh will print an error if
1631# an executable is not found, even if stderr is redirected.
1632# Redirect stdin to placate older versions of autoconf.  Sigh.
1633if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1634   AUTOCONF=autoconf
1635   echo "$ac_t""found" 1>&6
1636else
1637   AUTOCONF="$missing_dir/missing autoconf"
1638   echo "$ac_t""missing" 1>&6
1639fi
1640
1641echo $ac_n "checking for working automake""... $ac_c" 1>&6
1642echo "configure:1643: checking for working automake" >&5
1643# Run test in a subshell; some versions of sh will print an error if
1644# an executable is not found, even if stderr is redirected.
1645# Redirect stdin to placate older versions of autoconf.  Sigh.
1646if (automake --version) < /dev/null > /dev/null 2>&1; then
1647   AUTOMAKE=automake
1648   echo "$ac_t""found" 1>&6
1649else
1650   AUTOMAKE="$missing_dir/missing automake"
1651   echo "$ac_t""missing" 1>&6
1652fi
1653
1654echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1655echo "configure:1656: checking for working autoheader" >&5
1656# Run test in a subshell; some versions of sh will print an error if
1657# an executable is not found, even if stderr is redirected.
1658# Redirect stdin to placate older versions of autoconf.  Sigh.
1659if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1660   AUTOHEADER=autoheader
1661   echo "$ac_t""found" 1>&6
1662else
1663   AUTOHEADER="$missing_dir/missing autoheader"
1664   echo "$ac_t""missing" 1>&6
1665fi
1666
1667echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1668echo "configure:1669: checking for working makeinfo" >&5
1669# Run test in a subshell; some versions of sh will print an error if
1670# an executable is not found, even if stderr is redirected.
1671# Redirect stdin to placate older versions of autoconf.  Sigh.
1672if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1673   MAKEINFO=makeinfo
1674   echo "$ac_t""found" 1>&6
1675else
1676   MAKEINFO="$missing_dir/missing makeinfo"
1677   echo "$ac_t""missing" 1>&6
1678fi
1679
1680
1681
1682
1683
1684
1685
1686# Check whether --enable-shared or --disable-shared was given.
1687if test "${enable_shared+set}" = set; then
1688  enableval="$enable_shared"
1689  p=${PACKAGE-default}
1690case $enableval in
1691yes) enable_shared=yes ;;
1692no) enable_shared=no ;;
1693*)
1694  enable_shared=no
1695  # Look at the argument we got.  We use all the common list separators.
1696  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1697  for pkg in $enableval; do
1698    if test "X$pkg" = "X$p"; then
1699      enable_shared=yes
1700    fi
1701  done
1702  IFS="$ac_save_ifs"
1703  ;;
1704esac
1705else
1706  enable_shared=yes
1707fi
1708
1709# Check whether --enable-static or --disable-static was given.
1710if test "${enable_static+set}" = set; then
1711  enableval="$enable_static"
1712  p=${PACKAGE-default}
1713case $enableval in
1714yes) enable_static=yes ;;
1715no) enable_static=no ;;
1716*)
1717  enable_static=no
1718  # Look at the argument we got.  We use all the common list separators.
1719  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1720  for pkg in $enableval; do
1721    if test "X$pkg" = "X$p"; then
1722      enable_static=yes
1723    fi
1724  done
1725  IFS="$ac_save_ifs"
1726  ;;
1727esac
1728else
1729  enable_static=yes
1730fi
1731
1732# Check whether --enable-fast-install or --disable-fast-install was given.
1733if test "${enable_fast_install+set}" = set; then
1734  enableval="$enable_fast_install"
1735  p=${PACKAGE-default}
1736case $enableval in
1737yes) enable_fast_install=yes ;;
1738no) enable_fast_install=no ;;
1739*)
1740  enable_fast_install=no
1741  # Look at the argument we got.  We use all the common list separators.
1742  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1743  for pkg in $enableval; do
1744    if test "X$pkg" = "X$p"; then
1745      enable_fast_install=yes
1746    fi
1747  done
1748  IFS="$ac_save_ifs"
1749  ;;
1750esac
1751else
1752  enable_fast_install=yes
1753fi
1754
1755# Check whether --with-gnu-ld or --without-gnu-ld was given.
1756if test "${with_gnu_ld+set}" = set; then
1757  withval="$with_gnu_ld"
1758  test "$withval" = no || with_gnu_ld=yes
1759else
1760  with_gnu_ld=no
1761fi
1762
1763ac_prog=ld
1764if test "$GCC" = yes; then
1765  # Check if gcc -print-prog-name=ld gives a path.
1766  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1767echo "configure:1768: checking for ld used by GCC" >&5
1768  case $host in
1769  *-*-mingw*)
1770    # gcc leaves a trailing carriage return which upsets mingw
1771    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1772  *)
1773    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1774  esac
1775  case $ac_prog in
1776    # Accept absolute paths.
1777    [\\/]* | [A-Za-z]:[\\/]*)
1778      re_direlt='/[^/][^/]*/\.\./'
1779      # Canonicalize the path of ld
1780      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1781      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1782	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1783      done
1784      test -z "$LD" && LD="$ac_prog"
1785      ;;
1786  "")
1787    # If it fails, then pretend we aren't using GCC.
1788    ac_prog=ld
1789    ;;
1790  *)
1791    # If it is relative, then search for the first ld in PATH.
1792    with_gnu_ld=unknown
1793    ;;
1794  esac
1795elif test "$with_gnu_ld" = yes; then
1796  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1797echo "configure:1798: checking for GNU ld" >&5
1798else
1799  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1800echo "configure:1801: checking for non-GNU ld" >&5
1801fi
1802if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1803  echo $ac_n "(cached) $ac_c" 1>&6
1804else
1805  if test -z "$LD"; then
1806  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1807  for ac_dir in $PATH; do
1808    test -z "$ac_dir" && ac_dir=.
1809    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1810      lt_cv_path_LD="$ac_dir/$ac_prog"
1811      # Check to see if the program is GNU ld.  I'd rather use --version,
1812      # but apparently some GNU ld's only accept -v.
1813      # Break only if it was the GNU/non-GNU ld that we prefer.
1814      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1815	test "$with_gnu_ld" != no && break
1816      else
1817	test "$with_gnu_ld" != yes && break
1818      fi
1819    fi
1820  done
1821  IFS="$ac_save_ifs"
1822else
1823  lt_cv_path_LD="$LD" # Let the user override the test with a path.
1824fi
1825fi
1826
1827LD="$lt_cv_path_LD"
1828if test -n "$LD"; then
1829  echo "$ac_t""$LD" 1>&6
1830else
1831  echo "$ac_t""no" 1>&6
1832fi
1833test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1834echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1835echo "configure:1836: checking if the linker ($LD) is GNU ld" >&5
1836if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1837  echo $ac_n "(cached) $ac_c" 1>&6
1838else
1839  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1840if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1841  lt_cv_prog_gnu_ld=yes
1842else
1843  lt_cv_prog_gnu_ld=no
1844fi
1845fi
1846
1847echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1848with_gnu_ld=$lt_cv_prog_gnu_ld
1849
1850
1851echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1852echo "configure:1853: checking for $LD option to reload object files" >&5
1853if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1854  echo $ac_n "(cached) $ac_c" 1>&6
1855else
1856  lt_cv_ld_reload_flag='-r'
1857fi
1858
1859echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1860reload_flag=$lt_cv_ld_reload_flag
1861test -n "$reload_flag" && reload_flag=" $reload_flag"
1862
1863echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1864echo "configure:1865: checking for BSD-compatible nm" >&5
1865if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1866  echo $ac_n "(cached) $ac_c" 1>&6
1867else
1868  if test -n "$NM"; then
1869  # Let the user override the test.
1870  lt_cv_path_NM="$NM"
1871else
1872  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1873  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1874    test -z "$ac_dir" && ac_dir=.
1875    tmp_nm=$ac_dir/${ac_tool_prefix}nm
1876    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1877      # Check to see if the nm accepts a BSD-compat flag.
1878      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1879      #   nm: unknown option "B" ignored
1880      # Tru64's nm complains that /dev/null is an invalid object file
1881      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1882	lt_cv_path_NM="$tmp_nm -B"
1883	break
1884      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1885	lt_cv_path_NM="$tmp_nm -p"
1886	break
1887      else
1888	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1889	continue # so that we can try to find one that supports BSD flags
1890      fi
1891    fi
1892  done
1893  IFS="$ac_save_ifs"
1894  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1895fi
1896fi
1897
1898NM="$lt_cv_path_NM"
1899echo "$ac_t""$NM" 1>&6
1900
1901echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1902echo "configure:1903: checking how to recognise dependant libraries" >&5
1903if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1904  echo $ac_n "(cached) $ac_c" 1>&6
1905else
1906  lt_cv_file_magic_cmd='$MAGIC_CMD'
1907lt_cv_file_magic_test_file=
1908lt_cv_deplibs_check_method='unknown'
1909# Need to set the preceding variable on all platforms that support
1910# interlibrary dependencies.
1911# 'none' -- dependencies not supported.
1912# `unknown' -- same as none, but documents that we really don't know.
1913# 'pass_all' -- all dependencies passed with no checks.
1914# 'test_compile' -- check by making test program.
1915# 'file_magic [regex]' -- check by looking for files in library path
1916# which responds to the $file_magic_cmd with a given egrep regex.
1917# If you have `file' or equivalent on your system and you're not sure
1918# whether `pass_all' will *always* work, you probably want this one.
1919
1920case $host_os in
1921aix*)
1922  lt_cv_deplibs_check_method=pass_all
1923  ;;
1924
1925beos*)
1926  lt_cv_deplibs_check_method=pass_all
1927  ;;
1928
1929bsdi4*)
1930  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1931  lt_cv_file_magic_cmd='/usr/bin/file -L'
1932  lt_cv_file_magic_test_file=/shlib/libc.so
1933  ;;
1934
1935cygwin* | mingw* |pw32*)
1936  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1937  lt_cv_file_magic_cmd='$OBJDUMP -f'
1938  ;;
1939
1940darwin* | rhapsody*)
1941  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1942  lt_cv_file_magic_cmd='/usr/bin/file -L'
1943  case "$host_os" in
1944  rhapsody* | darwin1.012)
1945    lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1946    ;;
1947  *) # Darwin 1.3 on
1948    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1949    ;;
1950  esac
1951  ;;
1952
1953freebsd* )
1954  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1955    case $host_cpu in
1956    i*86 )
1957      # Not sure whether the presence of OpenBSD here was a mistake.
1958      # Let's accept both of them until this is cleared up.
1959      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1960      lt_cv_file_magic_cmd=/usr/bin/file
1961      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1962      ;;
1963    esac
1964  else
1965    lt_cv_deplibs_check_method=pass_all
1966  fi
1967  ;;
1968
1969gnu*)
1970  lt_cv_deplibs_check_method=pass_all
1971  ;;
1972
1973hpux10.20*|hpux11*)
1974  case $host_cpu in
1975  hppa*)
1976    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1977    lt_cv_file_magic_cmd=/usr/bin/file
1978    lt_cv_file_magic_test_file=/usr/lib/libc.sl
1979    ;;
1980  ia64*)
1981    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1982    lt_cv_file_magic_cmd=/usr/bin/file
1983    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1984    ;;
1985  esac
1986  ;;
1987
1988irix5* | irix6*)
1989  case $host_os in
1990  irix5*)
1991    # this will be overridden with pass_all, but let us keep it just in case
1992    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1993    ;;
1994  *)
1995    case $LD in
1996    *-32|*"-32 ") libmagic=32-bit;;
1997    *-n32|*"-n32 ") libmagic=N32;;
1998    *-64|*"-64 ") libmagic=64-bit;;
1999    *) libmagic=never-match;;
2000    esac
2001    # this will be overridden with pass_all, but let us keep it just in case
2002    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2003    ;;
2004  esac
2005  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2006  lt_cv_deplibs_check_method=pass_all
2007  ;;
2008
2009# This must be Linux ELF.
2010linux-gnu*)
2011  case $host_cpu in
2012  alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
2013    lt_cv_deplibs_check_method=pass_all ;;
2014  *)
2015    # glibc up to 2.1.1 does not perform some relocations on ARM
2016    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2017  esac
2018  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2019  ;;
2020
2021netbsd*)
2022  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2023    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2024  else
2025    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2026  fi
2027  ;;
2028
2029newsos6)
2030  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2031  lt_cv_file_magic_cmd=/usr/bin/file
2032  lt_cv_file_magic_test_file=/usr/lib/libnls.so
2033  ;;
2034
2035osf3* | osf4* | osf5*)
2036  # this will be overridden with pass_all, but let us keep it just in case
2037  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2038  lt_cv_file_magic_test_file=/shlib/libc.so
2039  lt_cv_deplibs_check_method=pass_all
2040  ;;
2041
2042sco3.2v5*)
2043  lt_cv_deplibs_check_method=pass_all
2044  ;;
2045
2046solaris*)
2047  lt_cv_deplibs_check_method=pass_all
2048  lt_cv_file_magic_test_file=/lib/libc.so
2049  ;;
2050
2051sysv5uw[78]* | sysv4*uw2*)
2052  lt_cv_deplibs_check_method=pass_all
2053  ;;
2054
2055sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2056  case $host_vendor in
2057  ncr)
2058    lt_cv_deplibs_check_method=pass_all
2059    ;;
2060  motorola)
2061    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]'
2062    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2063    ;;
2064  esac
2065  ;;
2066esac
2067
2068fi
2069
2070echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2071file_magic_cmd=$lt_cv_file_magic_cmd
2072deplibs_check_method=$lt_cv_deplibs_check_method
2073
2074echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2075echo "configure:2076: checking for object suffix" >&5
2076if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2077  echo $ac_n "(cached) $ac_c" 1>&6
2078else
2079  rm -f conftest*
2080echo 'int i = 1;' > conftest.$ac_ext
2081if { (eval echo configure:2082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2082  for ac_file in conftest.*; do
2083    case $ac_file in
2084    *.c) ;;
2085    *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2086    esac
2087  done
2088else
2089  { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2090fi
2091rm -f conftest*
2092fi
2093
2094echo "$ac_t""$ac_cv_objext" 1>&6
2095OBJEXT=$ac_cv_objext
2096ac_objext=$ac_cv_objext
2097
2098# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2099
2100# Only perform the check for file, if the check method requires it
2101case $deplibs_check_method in
2102file_magic*)
2103  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2104    echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2105echo "configure:2106: checking for ${ac_tool_prefix}file" >&5
2106if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2107  echo $ac_n "(cached) $ac_c" 1>&6
2108else
2109  case $MAGIC_CMD in
2110  /*)
2111  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2112  ;;
2113  ?:/*)
2114  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2115  ;;
2116  *)
2117  ac_save_MAGIC_CMD="$MAGIC_CMD"
2118  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2119  ac_dummy="/usr/bin:$PATH"
2120  for ac_dir in $ac_dummy; do
2121    test -z "$ac_dir" && ac_dir=.
2122    if test -f $ac_dir/${ac_tool_prefix}file; then
2123      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2124      if test -n "$file_magic_test_file"; then
2125	case $deplibs_check_method in
2126	"file_magic "*)
2127	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2128	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2129	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2130	    egrep "$file_magic_regex" > /dev/null; then
2131	    :
2132	  else
2133	    cat <<EOF 1>&2
2134
2135*** Warning: the command libtool uses to detect shared libraries,
2136*** $file_magic_cmd, produces output that libtool cannot recognize.
2137*** The result is that libtool may fail to recognize shared libraries
2138*** as such.  This will affect the creation of libtool libraries that
2139*** depend on shared libraries, but programs linked with such libtool
2140*** libraries will work regardless of this problem.  Nevertheless, you
2141*** may want to report the problem to your system manager and/or to
2142*** bug-libtool@gnu.org
2143
2144EOF
2145	  fi ;;
2146	esac
2147      fi
2148      break
2149    fi
2150  done
2151  IFS="$ac_save_ifs"
2152  MAGIC_CMD="$ac_save_MAGIC_CMD"
2153  ;;
2154esac
2155fi
2156
2157MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2158if test -n "$MAGIC_CMD"; then
2159  echo "$ac_t""$MAGIC_CMD" 1>&6
2160else
2161  echo "$ac_t""no" 1>&6
2162fi
2163
2164if test -z "$lt_cv_path_MAGIC_CMD"; then
2165  if test -n "$ac_tool_prefix"; then
2166    echo $ac_n "checking for file""... $ac_c" 1>&6
2167echo "configure:2168: checking for file" >&5
2168if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2169  echo $ac_n "(cached) $ac_c" 1>&6
2170else
2171  case $MAGIC_CMD in
2172  /*)
2173  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2174  ;;
2175  ?:/*)
2176  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2177  ;;
2178  *)
2179  ac_save_MAGIC_CMD="$MAGIC_CMD"
2180  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2181  ac_dummy="/usr/bin:$PATH"
2182  for ac_dir in $ac_dummy; do
2183    test -z "$ac_dir" && ac_dir=.
2184    if test -f $ac_dir/file; then
2185      lt_cv_path_MAGIC_CMD="$ac_dir/file"
2186      if test -n "$file_magic_test_file"; then
2187	case $deplibs_check_method in
2188	"file_magic "*)
2189	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2190	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2191	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2192	    egrep "$file_magic_regex" > /dev/null; then
2193	    :
2194	  else
2195	    cat <<EOF 1>&2
2196
2197*** Warning: the command libtool uses to detect shared libraries,
2198*** $file_magic_cmd, produces output that libtool cannot recognize.
2199*** The result is that libtool may fail to recognize shared libraries
2200*** as such.  This will affect the creation of libtool libraries that
2201*** depend on shared libraries, but programs linked with such libtool
2202*** libraries will work regardless of this problem.  Nevertheless, you
2203*** may want to report the problem to your system manager and/or to
2204*** bug-libtool@gnu.org
2205
2206EOF
2207	  fi ;;
2208	esac
2209      fi
2210      break
2211    fi
2212  done
2213  IFS="$ac_save_ifs"
2214  MAGIC_CMD="$ac_save_MAGIC_CMD"
2215  ;;
2216esac
2217fi
2218
2219MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2220if test -n "$MAGIC_CMD"; then
2221  echo "$ac_t""$MAGIC_CMD" 1>&6
2222else
2223  echo "$ac_t""no" 1>&6
2224fi
2225
2226  else
2227    MAGIC_CMD=:
2228  fi
2229fi
2230
2231  fi
2232  ;;
2233esac
2234
2235# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2236set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2237echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2238echo "configure:2239: checking for $ac_word" >&5
2239if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2240  echo $ac_n "(cached) $ac_c" 1>&6
2241else
2242  if test -n "$RANLIB"; then
2243  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2244else
2245  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2246  ac_dummy="$PATH"
2247  for ac_dir in $ac_dummy; do
2248    test -z "$ac_dir" && ac_dir=.
2249    if test -f $ac_dir/$ac_word; then
2250      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2251      break
2252    fi
2253  done
2254  IFS="$ac_save_ifs"
2255fi
2256fi
2257RANLIB="$ac_cv_prog_RANLIB"
2258if test -n "$RANLIB"; then
2259  echo "$ac_t""$RANLIB" 1>&6
2260else
2261  echo "$ac_t""no" 1>&6
2262fi
2263
2264
2265if test -z "$ac_cv_prog_RANLIB"; then
2266if test -n "$ac_tool_prefix"; then
2267  # Extract the first word of "ranlib", so it can be a program name with args.
2268set dummy ranlib; ac_word=$2
2269echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2270echo "configure:2271: checking for $ac_word" >&5
2271if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2272  echo $ac_n "(cached) $ac_c" 1>&6
2273else
2274  if test -n "$RANLIB"; then
2275  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2276else
2277  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2278  ac_dummy="$PATH"
2279  for ac_dir in $ac_dummy; do
2280    test -z "$ac_dir" && ac_dir=.
2281    if test -f $ac_dir/$ac_word; then
2282      ac_cv_prog_RANLIB="ranlib"
2283      break
2284    fi
2285  done
2286  IFS="$ac_save_ifs"
2287  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2288fi
2289fi
2290RANLIB="$ac_cv_prog_RANLIB"
2291if test -n "$RANLIB"; then
2292  echo "$ac_t""$RANLIB" 1>&6
2293else
2294  echo "$ac_t""no" 1>&6
2295fi
2296
2297else
2298  RANLIB=":"
2299fi
2300fi
2301
2302# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2303set dummy ${ac_tool_prefix}strip; ac_word=$2
2304echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2305echo "configure:2306: checking for $ac_word" >&5
2306if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2307  echo $ac_n "(cached) $ac_c" 1>&6
2308else
2309  if test -n "$STRIP"; then
2310  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2311else
2312  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2313  ac_dummy="$PATH"
2314  for ac_dir in $ac_dummy; do
2315    test -z "$ac_dir" && ac_dir=.
2316    if test -f $ac_dir/$ac_word; then
2317      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2318      break
2319    fi
2320  done
2321  IFS="$ac_save_ifs"
2322fi
2323fi
2324STRIP="$ac_cv_prog_STRIP"
2325if test -n "$STRIP"; then
2326  echo "$ac_t""$STRIP" 1>&6
2327else
2328  echo "$ac_t""no" 1>&6
2329fi
2330
2331
2332if test -z "$ac_cv_prog_STRIP"; then
2333if test -n "$ac_tool_prefix"; then
2334  # Extract the first word of "strip", so it can be a program name with args.
2335set dummy strip; ac_word=$2
2336echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2337echo "configure:2338: checking for $ac_word" >&5
2338if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2339  echo $ac_n "(cached) $ac_c" 1>&6
2340else
2341  if test -n "$STRIP"; then
2342  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2343else
2344  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2345  ac_dummy="$PATH"
2346  for ac_dir in $ac_dummy; do
2347    test -z "$ac_dir" && ac_dir=.
2348    if test -f $ac_dir/$ac_word; then
2349      ac_cv_prog_STRIP="strip"
2350      break
2351    fi
2352  done
2353  IFS="$ac_save_ifs"
2354  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2355fi
2356fi
2357STRIP="$ac_cv_prog_STRIP"
2358if test -n "$STRIP"; then
2359  echo "$ac_t""$STRIP" 1>&6
2360else
2361  echo "$ac_t""no" 1>&6
2362fi
2363
2364else
2365  STRIP=":"
2366fi
2367fi
2368
2369
2370# Check for any special flags to pass to ltconfig.
2371libtool_flags="--cache-file=$cache_file"
2372test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2373test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2374test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2375test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2376test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2377libtool_flags="$libtool_flags --enable-dlopen"
2378
2379# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2380if test "${enable_libtool_lock+set}" = set; then
2381  enableval="$enable_libtool_lock"
2382  :
2383fi
2384
2385test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2386test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2387
2388# Check whether --with-pic or --without-pic was given.
2389if test "${with_pic+set}" = set; then
2390  withval="$with_pic"
2391  pic_mode="$withval"
2392else
2393  pic_mode=default
2394fi
2395
2396test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2397test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2398
2399# Some flags need to be propagated to the compiler or linker for good
2400# libtool support.
2401case $host in
2402*-*-irix6*)
2403  # Find out which ABI we are using.
2404  echo '#line 2405 "configure"' > conftest.$ac_ext
2405  if { (eval echo configure:2406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2406   if test "$lt_cv_prog_gnu_ld" = yes; then
2407    case `/usr/bin/file conftest.$ac_objext` in
2408    *32-bit*)
2409      LD="${LD-ld} -melf32bsmip"
2410      ;;
2411    *N32*)
2412      LD="${LD-ld} -melf32bmipn32"
2413      ;;
2414    *64-bit*)
2415      LD="${LD-ld} -melf64bmip"
2416      ;;
2417    esac
2418   else
2419    case `/usr/bin/file conftest.$ac_objext` in
2420    *32-bit*)
2421      LD="${LD-ld} -32"
2422      ;;
2423    *N32*)
2424      LD="${LD-ld} -n32"
2425      ;;
2426    *64-bit*)
2427      LD="${LD-ld} -64"
2428      ;;
2429    esac
2430   fi
2431  fi
2432  rm -rf conftest*
2433  ;;
2434
2435ia64-*-hpux*)
2436  # Find out which ABI we are using.
2437  echo 'int i;' > conftest.$ac_ext
2438  if { (eval echo configure:2439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2439    case "`/usr/bin/file conftest.o`" in
2440    *ELF-32*)
2441      HPUX_IA64_MODE="32"
2442      ;;
2443    *ELF-64*)
2444      HPUX_IA64_MODE="64"
2445      ;;
2446    esac
2447  fi
2448  rm -rf conftest*
2449  ;;
2450
2451x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2452  # Find out which ABI we are using.
2453  echo 'int i;' > conftest.$ac_ext
2454  if { (eval echo configure:2455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2455    case "`/usr/bin/file conftest.o`" in
2456    *32-bit*)
2457      case $host in
2458        x86_64-*linux*)
2459          LD="${LD-ld} -m elf_i386"
2460          ;;
2461        ppc64-*linux*|powerpc64-*linux*)
2462          LD="${LD-ld} -m elf32ppclinux"
2463          ;;
2464        s390x-*linux*)
2465          LD="${LD-ld} -m elf_s390"
2466          ;;
2467        sparc64-*linux*)
2468          LD="${LD-ld} -m elf32_sparc"
2469          ;;
2470      esac
2471      ;;
2472    *64-bit*)
2473      case $host in
2474        x86_64-*linux*)
2475          LD="${LD-ld} -m elf_x86_64"
2476          ;;
2477        ppc*-*linux*|powerpc*-*linux*)
2478          LD="${LD-ld} -m elf64ppc"
2479          ;;
2480        s390*-*linux*)
2481          LD="${LD-ld} -m elf64_s390"
2482          ;;
2483        sparc*-*linux*)
2484          LD="${LD-ld} -m elf64_sparc"
2485          ;;
2486      esac
2487      ;;
2488    esac
2489  fi
2490  rm -rf conftest*
2491  ;;
2492
2493*-*-sco3.2v5*)
2494  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2495  SAVE_CFLAGS="$CFLAGS"
2496  CFLAGS="$CFLAGS -belf"
2497  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2498echo "configure:2499: checking whether the C compiler needs -belf" >&5
2499if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2500  echo $ac_n "(cached) $ac_c" 1>&6
2501else
2502  
2503     ac_ext=c
2504# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2505ac_cpp='$CPP $CPPFLAGS'
2506ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2507ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2508cross_compiling=$ac_cv_prog_cc_cross
2509
2510     cat > conftest.$ac_ext <<EOF
2511#line 2512 "configure"
2512#include "confdefs.h"
2513
2514int main() {
2515
2516; return 0; }
2517EOF
2518if { (eval echo configure:2519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2519  rm -rf conftest*
2520  lt_cv_cc_needs_belf=yes
2521else
2522  echo "configure: failed program was:" >&5
2523  cat conftest.$ac_ext >&5
2524  rm -rf conftest*
2525  lt_cv_cc_needs_belf=no
2526fi
2527rm -f conftest*
2528     ac_ext=c
2529# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2530ac_cpp='$CPP $CPPFLAGS'
2531ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2532ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2533cross_compiling=$ac_cv_prog_cc_cross
2534
2535fi
2536
2537echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2538  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2539    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2540    CFLAGS="$SAVE_CFLAGS"
2541  fi
2542  ;;
2543
2544
2545esac
2546
2547echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2548echo "configure:2549: checking how to run the C++ preprocessor" >&5
2549if test -z "$CXXCPP"; then
2550if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2551  echo $ac_n "(cached) $ac_c" 1>&6
2552else
2553  ac_ext=C
2554# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2555ac_cpp='$CXXCPP $CPPFLAGS'
2556ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2557ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2558cross_compiling=$ac_cv_prog_cxx_cross
2559  CXXCPP="${CXX-g++} -E"
2560  cat > conftest.$ac_ext <<EOF
2561#line 2562 "configure"
2562#include "confdefs.h"
2563#include <stdlib.h>
2564EOF
2565ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2566{ (eval echo configure:2567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2567ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2568if test -z "$ac_err"; then
2569  :
2570else
2571  echo "$ac_err" >&5
2572  echo "configure: failed program was:" >&5
2573  cat conftest.$ac_ext >&5
2574  rm -rf conftest*
2575  CXXCPP=/lib/cpp
2576fi
2577rm -f conftest*
2578  ac_cv_prog_CXXCPP="$CXXCPP"
2579ac_ext=c
2580# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2581ac_cpp='$CPP $CPPFLAGS'
2582ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2583ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2584cross_compiling=$ac_cv_prog_cc_cross
2585fi
2586fi
2587CXXCPP="$ac_cv_prog_CXXCPP"
2588echo "$ac_t""$CXXCPP" 1>&6
2589
2590
2591# Save cache, so that ltconfig can load it
2592cat > confcache <<\EOF
2593# This file is a shell script that caches the results of configure
2594# tests run on this system so they can be shared between configure
2595# scripts and configure runs.  It is not useful on other systems.
2596# If it contains results you don't want to keep, you may remove or edit it.
2597#
2598# By default, configure uses ./config.cache as the cache file,
2599# creating it if it does not exist already.  You can give configure
2600# the --cache-file=FILE option to use a different cache file; that is
2601# what configure does when it calls configure scripts in
2602# subdirectories, so they share the cache.
2603# Giving --cache-file=/dev/null disables caching, for debugging configure.
2604# config.status only pays attention to the cache file if you give it the
2605# --recheck option to rerun configure.
2606#
2607EOF
2608# The following way of writing the cache mishandles newlines in values,
2609# but we know of no workaround that is simple, portable, and efficient.
2610# So, don't put newlines in cache variables' values.
2611# Ultrix sh set writes to stderr and can't be redirected directly,
2612# and sets the high bit in the cache file unless we assign to the vars.
2613(set) 2>&1 |
2614  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2615  *ac_space=\ *)
2616    # `set' does not quote correctly, so add quotes (double-quote substitution
2617    # turns \\\\ into \\, and sed turns \\ into \).
2618    sed -n \
2619      -e "s/'/'\\\\''/g" \
2620      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2621    ;;
2622  *)
2623    # `set' quotes correctly as required by POSIX, so do not add quotes.
2624    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2625    ;;
2626  esac >> confcache
2627if cmp -s $cache_file confcache; then
2628  :
2629else
2630  if test -w $cache_file; then
2631    echo "updating cache $cache_file"
2632    cat confcache > $cache_file
2633  else
2634    echo "not updating unwritable cache $cache_file"
2635  fi
2636fi
2637rm -f confcache
2638
2639
2640# Actually configure libtool.  ac_aux_dir is where install-sh is found.
2641AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2642MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2643LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2644AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2645objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2646deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2647${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2648$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2649|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2650
2651# Reload cache, that may have been modified by ltconfig
2652if test -r "$cache_file"; then
2653  echo "loading cache $cache_file"
2654  . $cache_file
2655else
2656  echo "creating cache $cache_file"
2657  > $cache_file
2658fi
2659
2660
2661# This can be used to rebuild libtool when needed
2662LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2663
2664# Always use our own libtool.
2665LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2666
2667# Redirect the config.log output again, so that the ltconfig log is not
2668# clobbered by the next message.
2669exec 5>>./config.log
2670
2671
2672
2673LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2674lt_save_CC="$CC"
2675lt_save_CFLAGS="$CFLAGS"
2676AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2677MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2678LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2679AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2680objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2681deplibs_check_method="$deplibs_check_method" \
2682file_magic_cmd="$file_magic_cmd" \
2683${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2684--build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2685|| { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2686CC="$lt_save_CC"
2687CFLAGS="$lt_save_CFLAGS"
2688
2689# Redirect the config.log output again, so that the ltconfig log is not
2690# clobbered by the next message.
2691exec 5>>./config.log
2692
2693  
2694
2695  
2696	 
2697	 
2698
2699
2700
2701# Check for c++ or library specific bits that don't require linking.
2702#GLIBCPP_CHECK_COMPILER_VERSION
2703echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2704echo "configure:2705: checking for GNU make" >&5
2705if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2706  echo $ac_n "(cached) $ac_c" 1>&6
2707else
2708  _cv_gnu_make_command='' ;
2709          for a in "${MAKE-make}" make gmake gnumake ; do
2710                  if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2711                  then
2712                          _cv_gnu_make_command=$a ;
2713                          break;
2714                  fi
2715          done ;
2716  
2717fi
2718
2719echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2720  if test  "x$_cv_gnu_make_command" != "x"  ; then
2721          ifGNUmake='' ;
2722  else
2723          ifGNUmake='#' ;
2724  fi
2725  
2726
2727
2728# Enable all the variable C++ stuff.  C_MBCHAR must come early.
2729echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2730echo "configure:2731: checking how to run the C preprocessor" >&5
2731# On Suns, sometimes $CPP names a directory.
2732if test -n "$CPP" && test -d "$CPP"; then
2733  CPP=
2734fi
2735if test -z "$CPP"; then
2736if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2737  echo $ac_n "(cached) $ac_c" 1>&6
2738else
2739    # This must be in double quotes, not single quotes, because CPP may get
2740  # substituted into the Makefile and "${CC-cc}" will confuse make.
2741  CPP="${CC-cc} -E"
2742  # On the NeXT, cc -E runs the code through the compiler's parser,
2743  # not just through cpp.
2744  cat > conftest.$ac_ext <<EOF
2745#line 2746 "configure"
2746#include "confdefs.h"
2747#include <assert.h>
2748Syntax Error
2749EOF
2750ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2751{ (eval echo configure:2752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2752ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2753if test -z "$ac_err"; then
2754  :
2755else
2756  echo "$ac_err" >&5
2757  echo "configure: failed program was:" >&5
2758  cat conftest.$ac_ext >&5
2759  rm -rf conftest*
2760  CPP="${CC-cc} -E -traditional-cpp"
2761  cat > conftest.$ac_ext <<EOF
2762#line 2763 "configure"
2763#include "confdefs.h"
2764#include <assert.h>
2765Syntax Error
2766EOF
2767ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2768{ (eval echo configure:2769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2769ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2770if test -z "$ac_err"; then
2771  :
2772else
2773  echo "$ac_err" >&5
2774  echo "configure: failed program was:" >&5
2775  cat conftest.$ac_ext >&5
2776  rm -rf conftest*
2777  CPP="${CC-cc} -nologo -E"
2778  cat > conftest.$ac_ext <<EOF
2779#line 2780 "configure"
2780#include "confdefs.h"
2781#include <assert.h>
2782Syntax Error
2783EOF
2784ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2785{ (eval echo configure:2786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2786ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2787if test -z "$ac_err"; then
2788  :
2789else
2790  echo "$ac_err" >&5
2791  echo "configure: failed program was:" >&5
2792  cat conftest.$ac_ext >&5
2793  rm -rf conftest*
2794  CPP=/lib/cpp
2795fi
2796rm -f conftest*
2797fi
2798rm -f conftest*
2799fi
2800rm -f conftest*
2801  ac_cv_prog_CPP="$CPP"
2802fi
2803  CPP="$ac_cv_prog_CPP"
2804else
2805  ac_cv_prog_CPP="$CPP"
2806fi
2807echo "$ac_t""$CPP" 1>&6
2808
2809
2810  echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2811echo "configure:2812: checking for cstdio to use" >&5
2812  # Check whether --enable-cstdio or --disable-cstdio was given.
2813if test "${enable_cstdio+set}" = set; then
2814  enableval="$enable_cstdio"
2815  if test x$enable_cstdio = xno; then
2816     enable_cstdio=stdio
2817  fi
2818else
2819  enable_cstdio=stdio
2820fi
2821
2822
2823  enable_cstdio_flag=$enable_cstdio
2824
2825    case x${enable_cstdio_flag} in
2826    xlibio)
2827      CSTDIO_H=config/io/c_io_libio.h
2828      BASIC_FILE_H=config/io/basic_file_libio.h
2829      BASIC_FILE_CC=config/io/basic_file_libio.cc
2830      echo "$ac_t""libio" 1>&6
2831
2832      # see if we are on a system with libio native (ie, linux)
2833      ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2834echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2835echo "configure:2836: checking for libio.h" >&5
2836if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2837  echo $ac_n "(cached) $ac_c" 1>&6
2838else
2839  cat > conftest.$ac_ext <<EOF
2840#line 2841 "configure"
2841#include "confdefs.h"
2842#include <libio.h>
2843EOF
2844ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2845{ (eval echo configure:2846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2846ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2847if test -z "$ac_err"; then
2848  rm -rf conftest*
2849  eval "ac_cv_header_$ac_safe=yes"
2850else
2851  echo "$ac_err" >&5
2852  echo "configure: failed program was:" >&5
2853  cat conftest.$ac_ext >&5
2854  rm -rf conftest*
2855  eval "ac_cv_header_$ac_safe=no"
2856fi
2857rm -f conftest*
2858fi
2859if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2860  echo "$ac_t""yes" 1>&6
2861  has_libio=yes
2862else
2863  echo "$ac_t""no" 1>&6
2864has_libio=no
2865fi
2866
2867
2868      # Need to check and see what version of glibc is being used. If
2869      # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2870      # compile most of libio for linux systems.
2871      if test x$has_libio = x"yes"; then
2872        case "$target" in
2873          *-*-linux*)
2874              echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2875echo "configure:2876: checking for glibc version >= 2.2" >&5
2876              cat > conftest.$ac_ext <<EOF
2877#line 2878 "configure"
2878#include "confdefs.h"
2879
2880            #include <features.h>
2881              #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2882                    ok
2883              #endif
2884              
2885EOF
2886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2887  egrep "ok" >/dev/null 2>&1; then
2888  rm -rf conftest*
2889  glibc_satisfactory=yes
2890else
2891  rm -rf conftest*
2892  glibc_satisfactory=no
2893fi
2894rm -f conftest*
2895
2896              echo "$ac_t""$glibc_satisfactory" 1>&6
2897            ;;
2898        esac
2899
2900        # XXX at the moment, admit defeat and force the recompilation
2901        # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2902        glibc_satisfactory=no        
2903
2904        if test x$glibc_satisfactory = x"yes"; then
2905           need_libio=no
2906           need_wlibio=no        
2907        else
2908           need_libio=yes
2909           # bkoz XXX need to add checks to enable this
2910           # pme XXX here's a first pass at such a check
2911           if test x$enable_c_mbchar != xno; then
2912              need_wlibio=yes
2913           else
2914              need_wlibio=no
2915           fi
2916        fi
2917
2918      else
2919         # Using libio, but <libio.h> doesn't exist on the target system. . .
2920         need_libio=yes
2921         # bkoz XXX need to add checks to enable this
2922         # pme XXX here's a first pass at such a check
2923         if test x$enable_c_mbchar != xno; then
2924             need_wlibio=yes
2925         else
2926             need_wlibio=no
2927         fi
2928      fi
2929      ;;
2930    xstdio | x | xno | xnone | xyes)
2931      # default
2932      CSTDIO_H=config/io/c_io_stdio.h
2933      BASIC_FILE_H=config/io/basic_file_stdio.h
2934      BASIC_FILE_CC=config/io/basic_file_stdio.cc
2935      echo "$ac_t""stdio" 1>&6
2936
2937      # We're not using stdio.
2938      need_libio=no
2939      need_wlibio=no
2940      ;;
2941    *)
2942      echo "$enable_cstdio is an unknown io package" 1>&2
2943      exit 1
2944      ;;
2945  esac
2946  
2947  
2948  
2949
2950  # 2000-08-04 bkoz hack
2951  CCODECVT_C=config/io/c_io_libio_codecvt.c
2952  
2953  # 2000-08-04 bkoz hack
2954
2955  
2956
2957if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2958  GLIBCPP_BUILD_LIBIO_TRUE=
2959  GLIBCPP_BUILD_LIBIO_FALSE='#'
2960else
2961  GLIBCPP_BUILD_LIBIO_TRUE='#'
2962  GLIBCPP_BUILD_LIBIO_FALSE=
2963fi
2964  
2965
2966if test "$need_libio" = yes; then
2967  GLIBCPP_NEED_LIBIO_TRUE=
2968  GLIBCPP_NEED_LIBIO_FALSE='#'
2969else
2970  GLIBCPP_NEED_LIBIO_TRUE='#'
2971  GLIBCPP_NEED_LIBIO_FALSE=
2972fi
2973  
2974
2975if test "$need_wlibio" = yes; then
2976  GLIBCPP_NEED_WLIBIO_TRUE=
2977  GLIBCPP_NEED_WLIBIO_FALSE='#'
2978else
2979  GLIBCPP_NEED_WLIBIO_TRUE='#'
2980  GLIBCPP_NEED_WLIBIO_FALSE=
2981fi
2982  if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2983    libio_la=../libio/libio.la
2984  else
2985    libio_la=
2986  fi
2987  
2988
2989
2990  echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2991echo "configure:2992: checking for clocale to use" >&5
2992  # Check whether --enable-clocale or --disable-clocale was given.
2993if test "${enable_clocale+set}" = set; then
2994  enableval="$enable_clocale"
2995  if test x$enable_clocale = xno; then
2996     enable_clocale=no
2997  fi
2998else
2999  enable_clocale=no
3000fi
3001
3002
3003  enable_clocale_flag=$enable_clocale
3004
3005      if test x$enable_clocale_flag = xno; then
3006    case x${target_os} in
3007      xlinux* | xgnu*)
3008	cat > conftest.$ac_ext <<EOF
3009#line 3010 "configure"
3010#include "confdefs.h"
3011
3012        #include <features.h>
3013        #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
3014          _GLIBCPP_ok
3015        #endif
3016        
3017EOF
3018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3019  egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3020  rm -rf conftest*
3021  enable_clocale_flag=gnu
3022else
3023  rm -rf conftest*
3024  enable_clocale_flag=generic
3025fi
3026rm -f conftest*
3027
3028
3029	# Test for bugs early in glibc-2.2.x series
3030  	if test x$enable_clocale_flag = xgnu; then
3031    	  if test "$cross_compiling" = yes; then
3032  enable_clocale_flag=generic
3033else
3034  cat > conftest.$ac_ext <<EOF
3035#line 3036 "configure"
3036#include "confdefs.h"
3037
3038	  #define _GNU_SOURCE 1
3039	  #include <locale.h>
3040	  #include <string.h>
3041	  #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
3042	  extern __typeof(newlocale) __newlocale;
3043	  extern __typeof(duplocale) __duplocale;
3044	  extern __typeof(strcoll_l) __strcoll_l;
3045	  #endif
3046	  int main()
3047	  {
3048  	    const char __one[] = "�uglein Augmen";
3049  	    const char __two[] = "�uglein";
3050  	    int i;
3051  	    int j;
3052  	    __locale_t	loc;
3053   	    __locale_t	loc_dup;
3054  	    loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3055  	    loc_dup = __duplocale(loc);
3056  	    i = __strcoll_l(__one, __two, loc);
3057  	    j = __strcoll_l(__one, __two, loc_dup);
3058  	    return 0;
3059	  }
3060	  
3061EOF
3062if { (eval echo configure:3063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3063then
3064  enable_clocale_flag=gnu
3065else
3066  echo "configure: failed program was:" >&5
3067  cat conftest.$ac_ext >&5
3068  rm -fr conftest*
3069  enable_clocale_flag=generic
3070fi
3071rm -fr conftest*
3072fi
3073
3074  	fi
3075
3076	# ... at some point put __strxfrm_l tests in as well.
3077        ;;
3078      *)
3079	enable_clocale_flag=generic
3080	;;
3081    esac
3082  fi
3083
3084    # Check whether --enable-nls or --disable-nls was given.
3085if test "${enable_nls+set}" = set; then
3086  enableval="$enable_nls"
3087  :
3088else
3089  enable_nls=yes
3090fi
3091
3092  USE_NLS=no
3093
3094    case x${enable_clocale_flag} in
3095    xgeneric)
3096      echo "$ac_t""generic" 1>&6
3097
3098      CLOCALE_H=config/locale/generic/c_locale.h
3099      CLOCALE_CC=config/locale/generic/c_locale.cc
3100      CCODECVT_H=config/locale/generic/codecvt_specializations.h
3101      CCODECVT_CC=config/locale/generic/codecvt_members.cc
3102      CCOLLATE_CC=config/locale/generic/collate_members.cc
3103      CCTYPE_CC=config/locale/generic/ctype_members.cc
3104      CMESSAGES_H=config/locale/generic/messages_members.h
3105      CMESSAGES_CC=config/locale/generic/messages_members.cc
3106      CMONEY_CC=config/locale/generic/monetary_members.cc
3107      CNUMERIC_CC=config/locale/generic/numeric_members.cc
3108      CTIME_H=config/locale/generic/time_members.h
3109      CTIME_CC=config/locale/generic/time_members.cc
3110      CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3111      ;;
3112    xgnu)
3113      echo "$ac_t""gnu" 1>&6
3114
3115      # Declare intention to use gettext, and add support for specific
3116      # languages.
3117      # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3118      ALL_LINGUAS="de fr"
3119
3120      # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3121      # Extract the first word of "msgfmt", so it can be a program name with args.
3122set dummy msgfmt; ac_word=$2
3123echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3124echo "configure:3125: checking for $ac_word" >&5
3125if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3126  echo $ac_n "(cached) $ac_c" 1>&6
3127else
3128  if test -n "$check_msgfmt"; then
3129  ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3130else
3131  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
3132  ac_dummy="$PATH"
3133  for ac_dir in $ac_dummy; do
3134    test -z "$ac_dir" && ac_dir=.
3135    if test -f $ac_dir/$ac_word; then
3136      ac_cv_prog_check_msgfmt="yes"
3137      break
3138    fi
3139  done
3140  IFS="$ac_save_ifs"
3141  test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3142fi
3143fi
3144check_msgfmt="$ac_cv_prog_check_msgfmt"
3145if test -n "$check_msgfmt"; then
3146  echo "$ac_t""$check_msgfmt" 1>&6
3147else
3148  echo "$ac_t""no" 1>&6
3149fi
3150
3151      if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3152	USE_NLS=yes
3153      fi
3154      # Export the build objects.
3155      for ling in $ALL_LINGUAS; do \
3156        glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3157        glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3158      done
3159      
3160      
3161
3162      CLOCALE_H=config/locale/gnu/c_locale.h
3163      CLOCALE_CC=config/locale/gnu/c_locale.cc
3164      CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3165      CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3166      CCOLLATE_CC=config/locale/gnu/collate_members.cc
3167      CCTYPE_CC=config/locale/gnu/ctype_members.cc
3168      CMESSAGES_H=config/locale/gnu/messages_members.h
3169      CMESSAGES_CC=config/locale/gnu/messages_members.cc
3170      CMONEY_CC=config/locale/gnu/monetary_members.cc
3171      CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3172      CTIME_H=config/locale/gnu/time_members.h
3173      CTIME_CC=config/locale/gnu/time_members.cc
3174      CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3175      ;;
3176    xieee_1003.1-2001)
3177      echo "$ac_t""generic" 1>&6
3178
3179      CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3180      CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3181      CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3182      CCODECVT_CC=config/locale/generic/codecvt_members.cc
3183      CCOLLATE_CC=config/locale/generic/collate_members.cc
3184      CCTYPE_CC=config/locale/generic/ctype_members.cc
3185      CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3186      CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3187      CMONEY_CC=config/locale/generic/monetary_members.cc
3188      CNUMERIC_CC=config/locale/generic/numeric_members.cc
3189      CTIME_H=config/locale/generic/time_members.h
3190      CTIME_CC=config/locale/generic/time_members.cc
3191      CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3192      ;;
3193    *)
3194      echo "$enable_clocale is an unknown locale package" 1>&2
3195      exit 1
3196      ;;
3197  esac
3198
3199  # This is where the testsuite looks for locale catalogs, using the
3200  # -DLOCALEDIR define during testsuite compilation.
3201  glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3202  
3203
3204  
3205  
3206  
3207  
3208  
3209  
3210  
3211  
3212  
3213  
3214  
3215  
3216  
3217  
3218
3219echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3220echo "configure:3221: checking for c header strategy to use" >&5
3221# Check whether --enable-cheaders or --disable-cheaders was given.
3222if test "${enable_cheaders+set}" = set; then
3223  enableval="$enable_cheaders"
3224  
3225  case "$enableval" in
3226   c) 
3227        enable_cheaders=c 
3228        ;;
3229   c_std)  
3230        enable_cheaders=c_std 
3231        ;;
3232   *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3233        ;;
3234  esac
3235else
3236  enable_cheaders=c_std
3237fi
3238
3239  echo "$ac_t""$enable_cheaders" 1>&6
3240
3241    case "$enable_cheaders" in
3242    c_std)   
3243        C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3244        ;;
3245    c)   
3246        C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3247        ;;
3248  esac
3249
3250  
3251  
3252
3253if test "$enable_cheaders" = c; then
3254  GLIBCPP_C_HEADERS_C_TRUE=
3255  GLIBCPP_C_HEADERS_C_FALSE='#'
3256else
3257  GLIBCPP_C_HEADERS_C_TRUE='#'
3258  GLIBCPP_C_HEADERS_C_FALSE=
3259fi
3260  
3261
3262if test "$enable_cheaders" = c_std; then
3263  GLIBCPP_C_HEADERS_C_STD_TRUE=
3264  GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3265else
3266  GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3267  GLIBCPP_C_HEADERS_C_STD_FALSE=
3268fi
3269  
3270
3271if test "$c_compatibility" = yes; then
3272  GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3273  GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3274else
3275  GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3276  GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3277fi
3278
3279# Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3280if test "${enable_c_mbchar+set}" = set; then
3281  enableval="$enable_c_mbchar"
3282  case "$enableval" in
3283 yes) enable_c_mbchar=yes ;;
3284 no)  enable_c_mbchar=no ;;
3285 *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3286 esac
3287else
3288  enable_c_mbchar=yes
3289fi
3290
3291  
3292  # Check whether --enable-c99 or --disable-c99 was given.
3293if test "${enable_c99+set}" = set; then
3294  enableval="$enable_c99"
3295    case "$enableval" in
3296   yes) enable_c99=yes ;;
3297   no)  enable_c99=no ;;
3298   *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3299   esac
3300else
3301  enable_c99=yes
3302fi
3303 
3304  
3305  ac_ext=C
3306# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3307ac_cpp='$CXXCPP $CPPFLAGS'
3308ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3309ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3310cross_compiling=$ac_cv_prog_cxx_cross
3311
3312
3313  # Check for the existence of <math.h> functions used if C99 is enabled.
3314  ac_c99_math=yes;
3315  echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3316echo "configure:3317: checking for ISO C99 support in <math.h>" >&5
3317  cat > conftest.$ac_ext <<EOF
3318#line 3319 "configure"
3319#include "confdefs.h"
3320#include <math.h>
3321int main() {
3322fpclassify(0.0);
3323; return 0; }
3324EOF
3325if { (eval echo configure:3326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3326  :
3327else
3328  echo "configure: failed program was:" >&5
3329  cat conftest.$ac_ext >&5
3330  rm -rf conftest*
3331  ac_c99_math=no
3332fi
3333rm -f conftest*
3334  cat > conftest.$ac_ext <<EOF
3335#line 3336 "configure"
3336#include "confdefs.h"
3337#include <math.h>
3338int main() {
3339isfinite(0.0);
3340; return 0; }
3341EOF
3342if { (eval echo configure:3343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3343  :
3344else
3345  echo "configure: failed program was:" >&5
3346  cat conftest.$ac_ext >&5
3347  rm -rf conftest*
3348  ac_c99_math=no
3349fi
3350rm -f conftest*
3351  cat > conftest.$ac_ext <<EOF
3352#line 3353 "configure"
3353#include "confdefs.h"
3354#include <math.h>
3355int main() {
3356isinf(0.0);
3357; return 0; }
3358EOF
3359if { (eval echo configure:3360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3360  :
3361else
3362  echo "configure: failed program was:" >&5
3363  cat conftest.$ac_ext >&5
3364  rm -rf conftest*
3365  ac_c99_math=no
3366fi
3367rm -f conftest*
3368  cat > conftest.$ac_ext <<EOF
3369#line 3370 "configure"
3370#include "confdefs.h"
3371#include <math.h>
3372int main() {
3373isnan(0.0);
3374; return 0; }
3375EOF
3376if { (eval echo configure:3377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3377  :
3378else
3379  echo "configure: failed program was:" >&5
3380  cat conftest.$ac_ext >&5
3381  rm -rf conftest*
3382  ac_c99_math=no
3383fi
3384rm -f conftest*
3385  cat > conftest.$ac_ext <<EOF
3386#line 3387 "configure"
3387#include "confdefs.h"
3388#include <math.h>
3389int main() {
3390isnormal(0.0);
3391; return 0; }
3392EOF
3393if { (eval echo configure:3394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3394  :
3395else
3396  echo "configure: failed program was:" >&5
3397  cat conftest.$ac_ext >&5
3398  rm -rf conftest*
3399  ac_c99_math=no
3400fi
3401rm -f conftest*
3402  cat > conftest.$ac_ext <<EOF
3403#line 3404 "configure"
3404#include "confdefs.h"
3405#include <math.h>
3406int main() {
3407signbit(0.0);
3408; return 0; }
3409EOF
3410if { (eval echo configure:3411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3411  :
3412else
3413  echo "configure: failed program was:" >&5
3414  cat conftest.$ac_ext >&5
3415  rm -rf conftest*
3416  ac_c99_math=no
3417fi
3418rm -f conftest*
3419  cat > conftest.$ac_ext <<EOF
3420#line 3421 "configure"
3421#include "confdefs.h"
3422#include <math.h>
3423int main() {
3424isgreater(0.0,0.0);
3425; return 0; }
3426EOF
3427if { (eval echo configure:3428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3428  :
3429else
3430  echo "configure: failed program was:" >&5
3431  cat conftest.$ac_ext >&5
3432  rm -rf conftest*
3433  ac_c99_math=no
3434fi
3435rm -f conftest*
3436  cat > conftest.$ac_ext <<EOF
3437#line 3438 "configure"
3438#include "confdefs.h"
3439#include <math.h>
3440int main() {
3441isgreaterequal(0.0,0.0);
3442; return 0; }
3443EOF
3444if { (eval echo configure:3445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3445  :
3446else
3447  echo "configure: failed program was:" >&5
3448  cat conftest.$ac_ext >&5
3449  rm -rf conftest*
3450  ac_c99_math=no
3451fi
3452rm -f conftest*
3453  cat > conftest.$ac_ext <<EOF
3454#line 3455 "configure"
3455#include "confdefs.h"
3456#include <math.h>
3457int main() {
3458isless(0.0,0.0);
3459; return 0; }
3460EOF
3461if { (eval echo configure:3462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3462  :
3463else
3464  echo "configure: failed program was:" >&5
3465  cat conftest.$ac_ext >&5
3466  rm -rf conftest*
3467  ac_c99_math=no
3468fi
3469rm -f conftest*
3470  cat > conftest.$ac_ext <<EOF
3471#line 3472 "configure"
3472#include "confdefs.h"
3473#include <math.h>
3474int main() {
3475islessequal(0.0,0.0);
3476; return 0; }
3477EOF
3478if { (eval echo configure:3479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3479  :
3480else
3481  echo "configure: failed program was:" >&5
3482  cat conftest.$ac_ext >&5
3483  rm -rf conftest*
3484  ac_c99_math=no
3485fi
3486rm -f conftest*
3487  cat > conftest.$ac_ext <<EOF
3488#line 3489 "configure"
3489#include "confdefs.h"
3490#include <math.h>
3491int main() {
3492islessgreater(0.0,0.0);
3493; return 0; }
3494EOF
3495if { (eval echo configure:3496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3496  :
3497else
3498  echo "configure: failed program was:" >&5
3499  cat conftest.$ac_ext >&5
3500  rm -rf conftest*
3501  ac_c99_math=no
3502fi
3503rm -f conftest*
3504  cat > conftest.$ac_ext <<EOF
3505#line 3506 "configure"
3506#include "confdefs.h"
3507#include <math.h>
3508int main() {
3509isunordered(0.0,0.0);
3510; return 0; }
3511EOF
3512if { (eval echo configure:3513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3513  :
3514else
3515  echo "configure: failed program was:" >&5
3516  cat conftest.$ac_ext >&5
3517  rm -rf conftest*
3518  ac_c99_math=no
3519fi
3520rm -f conftest*
3521  echo "$ac_t""$ac_c99_math" 1>&6
3522
3523  # Check for the existence in <stdio.h> of vscanf, et. al.
3524  ac_c99_stdio=yes;
3525  echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3526echo "configure:3527: checking for ISO C99 support in <stdio.h>" >&5
3527  cat > conftest.$ac_ext <<EOF
3528#line 3529 "configure"
3529#include "confdefs.h"
3530#include <stdio.h>
3531int main() {
3532snprintf("12", 0, "%i");
3533; return 0; }
3534EOF
3535if { (eval echo configure:3536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3536  :
3537else
3538  echo "configure: failed program was:" >&5
3539  cat conftest.$ac_ext >&5
3540  rm -rf conftest*
3541  ac_c99_stdio=no
3542fi
3543rm -f conftest*
3544  cat > conftest.$ac_ext <<EOF
3545#line 3546 "configure"
3546#include "confdefs.h"
3547#include <stdio.h>
3548		  #include <stdarg.h>
3549		  void foo(char* fmt, ...)
3550		  {va_list args; va_start(args, fmt);
3551	          vfscanf(stderr, "%i", args);}
3552int main() {
3553
3554; return 0; }
3555EOF
3556if { (eval echo configure:3557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3557  :
3558else
3559  echo "configure: failed program was:" >&5
3560  cat conftest.$ac_ext >&5
3561  rm -rf conftest*
3562  ac_c99_stdio=no
3563fi
3564rm -f conftest*
3565  cat > conftest.$ac_ext <<EOF
3566#line 3567 "configure"
3567#include "confdefs.h"
3568#include <stdio.h>
3569		  #include <stdarg.h>
3570		  void foo(char* fmt, ...)
3571		  {va_list args; va_start(args, fmt);
3572	          vscanf("%i", args);}
3573int main() {
3574
3575; return 0; }
3576EOF
3577if { (eval echo configure:3578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3578  :
3579else
3580  echo "configure: failed program was:" >&5
3581  cat conftest.$ac_ext >&5
3582  rm -rf conftest*
3583  ac_c99_stdio=no
3584fi
3585rm -f conftest*
3586  cat > conftest.$ac_ext <<EOF
3587#line 3588 "configure"
3588#include "confdefs.h"
3589#include <stdio.h>
3590		  #include <stdarg.h>
3591		  void foo(char* fmt, ...)
3592		  {va_list args; va_start(args, fmt);
3593	          vsnprintf(fmt, 0, "%i", args);}
3594int main() {
3595
3596; return 0; }
3597EOF
3598if { (eval echo configure:3599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3599  :
3600else
3601  echo "configure: failed program was:" >&5
3602  cat conftest.$ac_ext >&5
3603  rm -rf conftest*
3604  ac_c99_stdio=no
3605fi
3606rm -f conftest*
3607  cat > conftest.$ac_ext <<EOF
3608#line 3609 "configure"
3609#include "confdefs.h"
3610#include <stdio.h>
3611		  #include <stdarg.h>
3612		  void foo(char* fmt, ...)
3613		  {va_list args; va_start(args, fmt);
3614	          vsscanf(fmt, "%i", args);}
3615int main() {
3616
3617; return 0; }
3618EOF
3619if { (eval echo configure:3620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3620  :
3621else
3622  echo "configure: failed program was:" >&5
3623  cat conftest.$ac_ext >&5
3624  rm -rf conftest*
3625  ac_c99_stdio=no
3626fi
3627rm -f conftest*
3628  echo "$ac_t""$ac_c99_stdio" 1>&6
3629
3630  # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3631  ac_c99_stdlib=yes;
3632  echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3633echo "configure:3634: checking for lldiv_t declaration" >&5
3634  if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3635  echo $ac_n "(cached) $ac_c" 1>&6
3636else
3637  
3638  cat > conftest.$ac_ext <<EOF
3639#line 3640 "configure"
3640#include "confdefs.h"
3641#include <stdlib.h>
3642int main() {
3643 lldiv_t mydivt;
3644; return 0; }
3645EOF
3646if { (eval echo configure:3647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3647  rm -rf conftest*
3648  ac_c99_lldiv_t=yes
3649else
3650  echo "configure: failed program was:" >&5
3651  cat conftest.$ac_ext >&5
3652  rm -rf conftest*
3653  ac_c99_lldiv_t=no
3654fi
3655rm -f conftest*
3656  
3657fi
3658
3659  echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3660
3661  echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3662echo "configure:3663: checking for ISO C99 support in <stdlib.h>" >&5
3663  cat > conftest.$ac_ext <<EOF
3664#line 3665 "configure"
3665#include "confdefs.h"
3666#include <stdlib.h>
3667int main() {
3668char* tmp; strtof("gnu", &tmp);
3669; return 0; }
3670EOF
3671if { (eval echo configure:3672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3672  :
3673else
3674  echo "configure: failed program was:" >&5
3675  cat conftest.$ac_ext >&5
3676  rm -rf conftest*
3677  ac_c99_stdlib=no
3678fi
3679rm -f conftest*
3680  cat > conftest.$ac_ext <<EOF
3681#line 3682 "configure"
3682#include "confdefs.h"
3683#include <stdlib.h>
3684int main() {
3685char* tmp; strtold("gnu", &tmp);
3686; return 0; }
3687EOF
3688if { (eval echo configure:3689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3689  :
3690else
3691  echo "configure: failed program was:" >&5
3692  cat conftest.$ac_ext >&5
3693  rm -rf conftest*
3694  ac_c99_stdlib=no
3695fi
3696rm -f conftest*
3697  cat > conftest.$ac_ext <<EOF
3698#line 3699 "configure"
3699#include "confdefs.h"
3700#include <stdlib.h>
3701int main() {
3702llabs(10);
3703; return 0; }
3704EOF
3705if { (eval echo configure:3706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3706  :
3707else
3708  echo "configure: failed program was:" >&5
3709  cat conftest.$ac_ext >&5
3710  rm -rf conftest*
3711  ac_c99_stdlib=no
3712fi
3713rm -f conftest*
3714  cat > conftest.$ac_ext <<EOF
3715#line 3716 "configure"
3716#include "confdefs.h"
3717#include <stdlib.h>
3718int main() {
3719lldiv(10,1);
3720; return 0; }
3721EOF
3722if { (eval echo configure:3723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3723  :
3724else
3725  echo "configure: failed program was:" >&5
3726  cat conftest.$ac_ext >&5
3727  rm -rf conftest*
3728  ac_c99_stdlib=no
3729fi
3730rm -f conftest*
3731  cat > conftest.$ac_ext <<EOF
3732#line 3733 "configure"
3733#include "confdefs.h"
3734#include <stdlib.h>
3735int main() {
3736atoll("10");
3737; return 0; }
3738EOF
3739if { (eval echo configure:3740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3740  :
3741else
3742  echo "configure: failed program was:" >&5
3743  cat conftest.$ac_ext >&5
3744  rm -rf conftest*
3745  ac_c99_stdlib=no
3746fi
3747rm -f conftest*
3748  cat > conftest.$ac_ext <<EOF
3749#line 3750 "configure"
3750#include "confdefs.h"
3751#include <stdlib.h>
3752int main() {
3753_Exit(0);
3754; return 0; }
3755EOF
3756if { (eval echo configure:3757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3757  :
3758else
3759  echo "configure: failed program was:" >&5
3760  cat conftest.$ac_ext >&5
3761  rm -rf conftest*
3762  ac_c99_stdlib=no
3763fi
3764rm -f conftest*
3765  if test x"$ac_c99_lldiv_t" = x"no"; then
3766    ac_c99_stdlib=no; 
3767  fi; 
3768  echo "$ac_t""$ac_c99_stdlib" 1>&6
3769
3770  # Check for the existence of <wchar.h> functions used if C99 is enabled.
3771  # XXX the wchar.h checks should be rolled into the general C99 bits.
3772  ac_c99_wchar=yes;
3773  echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3774echo "configure:3775: checking for additional ISO C99 support in <wchar.h>" >&5
3775  cat > conftest.$ac_ext <<EOF
3776#line 3777 "configure"
3777#include "confdefs.h"
3778#include <wchar.h>
3779int main() {
3780wcstold(L"10.0", NULL);
3781; return 0; }
3782EOF
3783if { (eval echo configure:3784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3784  :
3785else
3786  echo "configure: failed program was:" >&5
3787  cat conftest.$ac_ext >&5
3788  rm -rf conftest*
3789  ac_c99_wchar=no
3790fi
3791rm -f conftest*
3792  cat > conftest.$ac_ext <<EOF
3793#line 3794 "configure"
3794#include "confdefs.h"
3795#include <wchar.h>
3796int main() {
3797wcstoll(L"10", NULL, 10);
3798; return 0; }
3799EOF
3800if { (eval echo configure:3801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3801  :
3802else
3803  echo "configure: failed program was:" >&5
3804  cat conftest.$ac_ext >&5
3805  rm -rf conftest*
3806  ac_c99_wchar=no
3807fi
3808rm -f conftest*
3809  cat > conftest.$ac_ext <<EOF
3810#line 3811 "configure"
3811#include "confdefs.h"
3812#include <wchar.h>
3813int main() {
3814wcstoull(L"10", NULL, 10);
3815; return 0; }
3816EOF
3817if { (eval echo configure:3818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3818  :
3819else
3820  echo "configure: failed program was:" >&5
3821  cat conftest.$ac_ext >&5
3822  rm -rf conftest*
3823  ac_c99_wchar=no
3824fi
3825rm -f conftest*
3826  echo "$ac_t""$ac_c99_wchar" 1>&6
3827
3828  echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3829echo "configure:3830: checking for enabled ISO C99 support" >&5
3830  if test x"$ac_c99_math" = x"no" ||
3831     test x"$ac_c99_stdio" = x"no" ||
3832     test x"$ac_c99_stdlib" = x"no" ||
3833     test x"$ac_c99_wchar" = x"no"; then
3834    enable_c99=no; 
3835  fi; 
3836  echo "$ac_t""$enable_c99" 1>&6
3837
3838  # Option parsed, now set things appropriately
3839  if test x"$enable_c99" = x"yes"; then
3840    cat >> confdefs.h <<\EOF
3841#define _GLIBCPP_USE_C99 1
3842EOF
3843
3844  fi
3845
3846  ac_ext=c
3847# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3848ac_cpp='$CPP $CPPFLAGS'
3849ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3850ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3851cross_compiling=$ac_cv_prog_cc_cross
3852
3853
3854  
3855  # Check whether --enable-long-long or --disable-long-long was given.
3856if test "${enable_long_long+set}" = set; then
3857  enableval="$enable_long_long"
3858    case "$enableval" in
3859   yes) enable_long_long=yes ;;
3860   no)  enable_long_long=no ;;
3861   *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3862   esac
3863else
3864  enable_long_long=yes
3865fi
3866
3867  
3868  ac_ext=C
3869# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3870ac_cpp='$CXXCPP $CPPFLAGS'
3871ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3872ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3873cross_compiling=$ac_cv_prog_cxx_cross
3874
3875
3876  echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3877echo "configure:3878: checking for enabled long long I/O support" >&5
3878  # iostreams require strtoll, strtoull to compile
3879  cat > conftest.$ac_ext <<EOF
3880#line 3881 "configure"
3881#include "confdefs.h"
3882#include <stdlib.h>
3883int main() {
3884char* tmp; strtoll("gnu", &tmp, 10);
3885; return 0; }
3886EOF
3887if { (eval echo configure:3888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3888  :
3889else
3890  echo "configure: failed program was:" >&5
3891  cat conftest.$ac_ext >&5
3892  rm -rf conftest*
3893  enable_long_long=no
3894fi
3895rm -f conftest*
3896  cat > conftest.$ac_ext <<EOF
3897#line 3898 "configure"
3898#include "confdefs.h"
3899#include <stdlib.h>
3900int main() {
3901char* tmp; strtoull("gnu", &tmp, 10);
3902; return 0; }
3903EOF
3904if { (eval echo configure:3905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3905  :
3906else
3907  echo "configure: failed program was:" >&5
3908  cat conftest.$ac_ext >&5
3909  rm -rf conftest*
3910  enable_long_long=no
3911fi
3912rm -f conftest*
3913
3914  # Option parsed, now set things appropriately
3915  if test x"$enable_long_long" = xyes; then
3916    cat >> confdefs.h <<\EOF
3917#define _GLIBCPP_USE_LONG_LONG 1
3918EOF
3919
3920  fi
3921  echo "$ac_t""$enable_long_long" 1>&6
3922
3923  ac_ext=c
3924# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3925ac_cpp='$CPP $CPPFLAGS'
3926ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3927ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3928cross_compiling=$ac_cv_prog_cc_cross
3929
3930
3931
3932  echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3933echo "configure:3934: checking for thread model used by GCC" >&5
3934  target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3935  echo "$ac_t""$target_thread_file" 1>&6
3936
3937  if test $target_thread_file != single; then
3938    cat >> confdefs.h <<\EOF
3939#define HAVE_GTHR_DEFAULT 1
3940EOF
3941
3942    cat >> confdefs.h <<\EOF
3943#define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3944EOF
3945
3946  fi
3947
3948  glibcpp_thread_h=gthr-$target_thread_file.h
3949  
3950
3951
3952  echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3953echo "configure:3954: checking for exception model to use" >&5
3954  
3955  ac_ext=C
3956# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3957ac_cpp='$CXXCPP $CPPFLAGS'
3958ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3959ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3960cross_compiling=$ac_cv_prog_cxx_cross
3961
3962  # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3963if test "${enable_sjlj_exceptions+set}" = set; then
3964  enableval="$enable_sjlj_exceptions"
3965  :
3966else
3967                       cat > conftest.$ac_ext << EOF
3968#line 3969 "configure"
3969struct S { ~S(); };
3970void bar();
3971void foo()
3972{
3973  S s;
3974  bar();
3975}
3976EOF
3977   old_CXXFLAGS="$CXXFLAGS"  
3978   CXXFLAGS=-S
3979   if { (eval echo configure:3980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3980     if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3981       enable_sjlj_exceptions=yes
3982     elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3983       enable_sjlj_exceptions=no
3984     fi
3985   fi
3986   CXXFLAGS="$old_CXXFLAGS"
3987   rm -f conftest*
3988fi
3989
3990   if test x$enable_sjlj_exceptions = xyes; then
3991     cat >> confdefs.h <<\EOF
3992#define _GLIBCPP_SJLJ_EXCEPTIONS 1
3993EOF
3994
3995     ac_exception_model_name=sjlj
3996   elif test x$enable_sjlj_exceptions = xno; then
3997     ac_exception_model_name="call frame"
3998   else
3999     { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
4000   fi
4001   ac_ext=c
4002# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4003ac_cpp='$CPP $CPPFLAGS'
4004ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4005ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4006cross_compiling=$ac_cv_prog_cc_cross
4007
4008   echo "$ac_t""$ac_exception_model_name" 1>&6
4009
4010
4011  echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4012echo "configure:4013: checking for use of libunwind" >&5
4013  # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4014if test "${enable_libunwind_exceptions+set}" = set; then
4015  enableval="$enable_libunwind_exceptions"
4016  use_libunwind_exceptions=$enableval
4017else
4018  use_libunwind_exceptions=no
4019fi
4020
4021  echo "$ac_t""$use_libunwind_exceptions" 1>&6
4022    if test x"$use_libunwind_exceptions" = xyes; then
4023    LIBUNWIND_FLAG="-lunwind"
4024  else
4025    LIBUNWIND_FLAG=""
4026  fi
4027  
4028
4029# Check whether --enable-concept-checks or --disable-concept-checks was given.
4030if test "${enable_concept_checks+set}" = set; then
4031  enableval="$enable_concept_checks"
4032  case "$enableval" in
4033 yes) enable_concept_checks=yes ;;
4034 no)  enable_concept_checks=no ;;
4035 *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4036 esac
4037else
4038  enable_concept_checks=no
4039fi
4040if test x"$enable_concept_checks" = xyes; then
4041  cat >> confdefs.h <<\EOF
4042#define _GLIBCPP_CONCEPT_CHECKS 1
4043EOF
4044
4045fi
4046
4047echo $ac_n "checking for extra compiler flags for building""... $ac_c" 1>&6
4048echo "configure:4049: checking for extra compiler flags for building" >&5
4049# Check whether --enable-cxx_flags or --disable-cxx_flags was given.
4050if test "${enable_cxx_flags+set}" = set; then
4051  enableval="$enable_cxx_flags"
4052  case "x$enable_cxx_flags" in
4053  xyes)
4054    { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
4055  xno | xnone | x)
4056    enable_cxx_flags='' ;;
4057  *)
4058    enable_cxx_flags="$enableval" ;;
4059esac
4060else
4061  enable_cxx_flags=
4062fi
4063
4064
4065if test -n "$enable_cxx_flags"; then
4066  for f in $enable_cxx_flags; do
4067    case "$f" in
4068      -fhonor-std)  ;;
4069      -*)  ;;
4070      *)   # and we're trying to pass /what/ exactly?
4071           { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
4072    esac
4073  done
4074fi
4075EXTRA_CXX_FLAGS="$enable_cxx_flags"
4076echo "$ac_t""$EXTRA_CXX_FLAGS" 1>&6
4077
4078
4079# Check whether --enable-debug or --disable-debug was given.
4080if test "${enable_debug+set}" = set; then
4081  enableval="$enable_debug"
4082  case "${enableval}" in
4083 yes) enable_debug=yes ;;
4084 no)  enable_debug=no ;;
4085 *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
4086 esac
4087else
4088  enable_debug=no
4089fi
4090echo $ac_n "checking for additional debug build""... $ac_c" 1>&6
4091echo "configure:4092: checking for additional debug build" >&5
4092echo "$ac_t""$enable_debug" 1>&6
4093
4094
4095if test "$enable_debug" = yes; then
4096  GLIBCPP_BUILD_DEBUG_TRUE=
4097  GLIBCPP_BUILD_DEBUG_FALSE='#'
4098else
4099  GLIBCPP_BUILD_DEBUG_TRUE='#'
4100  GLIBCPP_BUILD_DEBUG_FALSE=
4101fi
4102
4103# Check whether --enable-debug_flags or --disable-debug_flags was given.
4104if test "${enable_debug_flags+set}" = set; then
4105  enableval="$enable_debug_flags"
4106  case "${enableval}" in
4107 none)  ;;
4108 -*) enable_debug_flags="${enableval}" ;;
4109 *)   { echo "configure: error: Unknown argument to extra debugging flags" 1>&2; exit 1; } ;;
4110 esac
4111else
4112  enable_debug_flags=none
4113fi
4114
4115case x"$enable_debug" in
4116    xyes)
4117        case "$enable_debug_flags" in
4118	  none)
4119            DEBUG_FLAGS="-g3 -O0";;
4120	  -*) #valid input
4121	    DEBUG_FLAGS="${enableval}"
4122        esac
4123        ;;
4124    xno)
4125        DEBUG_FLAGS=""
4126        ;;
4127esac
4128
4129
4130echo $ac_n "checking for debug build flags""... $ac_c" 1>&6
4131echo "configure:4132: checking for debug build flags" >&5
4132echo "$ac_t""$DEBUG_FLAGS" 1>&6
4133
4134
4135# Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4136for ac_hdr in string.h stdlib.h
4137do
4138ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4139echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4140echo "configure:4141: checking for $ac_hdr" >&5
4141if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4142  echo $ac_n "(cached) $ac_c" 1>&6
4143else
4144  cat > conftest.$ac_ext <<EOF
4145#line 4146 "configure"
4146#include "confdefs.h"
4147#include <$ac_hdr>
4148EOF
4149ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4150{ (eval echo configure:4151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4151ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4152if test -z "$ac_err"; then
4153  rm -rf conftest*
4154  eval "ac_cv_header_$ac_safe=yes"
4155else
4156  echo "$ac_err" >&5
4157  echo "configure: failed program was:" >&5
4158  cat conftest.$ac_ext >&5
4159  rm -rf conftest*
4160  eval "ac_cv_header_$ac_safe=no"
4161fi
4162rm -f conftest*
4163fi
4164if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4165  echo "$ac_t""yes" 1>&6
4166    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4167  cat >> confdefs.h <<EOF
4168#define $ac_tr_hdr 1
4169EOF
4170 
4171else
4172  echo "$ac_t""no" 1>&6
4173fi
4174done
4175
4176
4177# No surprises, no surprises...
4178if test $ATOMICITYH = cpu/generic ; then
4179  echo "configure: warning: No native atomic operations are provided yet for this platform." 1>&2
4180  if test $target_thread_file = single; then
4181    echo "configure: warning: They cannot be faked when thread support is disabled." 1>&2
4182    echo "configure: warning: Thread-safety of certain classes is not guaranteed." 1>&2
4183  else
4184    echo "configure: warning: They will be faked using a mutex." 1>&2
4185    echo "configure: warning: Performance of certain classes will degrade as a result." 1>&2
4186  fi
4187fi
4188
4189
4190if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4191
4192  # We are being configured with some form of cross compiler.
4193  GLIBCPP_IS_CROSS_COMPILING=true
4194
4195  # This lets us hard-code the functionality we know we'll have in the cross
4196  # target environment.  "Let" is a sugar-coated word placed on an especially
4197  # dull and tedious hack, actually.
4198  #
4199  # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4200  # that involve linking, can't be used:
4201  #    "cannot open sim-crt0.o"
4202  #    "cannot open crt0.o"
4203  # etc.  All this is because there currently exists no unified, consistent
4204  # way for top level CC information to be passed down to target directories:
4205  # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4206  # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4207  # crosses can be removed.
4208
4209  # If Canadian cross, then don't pick up tools from the build directory.
4210  # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4211  if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4212    CANADIAN=yes
4213  else
4214    CANADIAN=no
4215  fi
4216
4217  # Construct crosses by hand, eliminating bits that need ld...
4218  # GLIBCPP_CHECK_COMPILER_FEATURES
4219  # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4220  # GLIBCPP_CHECK_MATH_SUPPORT
4221
4222  case "$target" in
4223    *-linux*)
4224      os_include_dir="os/gnu-linux"
4225      for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4226        machine/endian.h machine/param.h sys/machine.h sys/types.h \
4227        fp.h locale.h float.h inttypes.h
4228do
4229ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4230echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4231echo "configure:4232: checking for $ac_hdr" >&5
4232if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4233  echo $ac_n "(cached) $ac_c" 1>&6
4234else
4235  cat > conftest.$ac_ext <<EOF
4236#line 4237 "configure"
4237#include "confdefs.h"
4238#include <$ac_hdr>
4239EOF
4240ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4241{ (eval echo configure:4242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4242ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4243if test -z "$ac_err"; then
4244  rm -rf conftest*
4245  eval "ac_cv_header_$ac_safe=yes"
4246else
4247  echo "$ac_err" >&5
4248  echo "configure: failed program was:" >&5
4249  cat conftest.$ac_ext >&5
4250  rm -rf conftest*
4251  eval "ac_cv_header_$ac_safe=no"
4252fi
4253rm -f conftest*
4254fi
4255if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4256  echo "$ac_t""yes" 1>&6
4257    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4258  cat >> confdefs.h <<EOF
4259#define $ac_tr_hdr 1
4260EOF
4261 
4262else
4263  echo "$ac_t""no" 1>&6
4264fi
4265done
4266
4267      SECTION_FLAGS='-ffunction-sections -fdata-sections'
4268      
4269      
4270  # If we're not using GNU ld, then there's no point in even trying these
4271  # tests.  Check for that first.  We should have already tested for gld
4272  # by now (in libtool), but require it now just to be safe...
4273  test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4274  test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4275  
4276
4277  # The name set by libtool depends on the version of libtool.  Shame on us
4278  # for depending on an impl detail, but c'est la vie.  Older versions used
4279  # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4280  # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4281  # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4282  # set (hence we're using an older libtool), then set it.
4283  if test x${with_gnu_ld+set} != xset; then
4284    if test x${ac_cv_prog_gnu_ld+set} != xset; then
4285      # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4286      with_gnu_ld=no
4287    else
4288      with_gnu_ld=$ac_cv_prog_gnu_ld
4289    fi
4290  fi
4291
4292  # Start by getting the version number.  I think the libtool test already
4293  # does some of this, but throws away the result.
4294  
4295  ldver=`$LD --version 2>/dev/null | head -1 | \
4296         sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4297  
4298  glibcpp_gnu_ld_version=`echo $ldver | \
4299         $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4300
4301  # Set --gc-sections.
4302  if test "$with_gnu_ld" = "notbroken"; then
4303    # GNU ld it is!  Joy and bunny rabbits!
4304
4305    # All these tests are for C++; save the language and the compiler flags.
4306    # Need to do this so that g++ won't try to link in libstdc++
4307    ac_test_CFLAGS="${CFLAGS+set}"
4308    ac_save_CFLAGS="$CFLAGS"
4309    CFLAGS='-x c++  -Wl,--gc-sections'
4310
4311    # Check for -Wl,--gc-sections
4312    # XXX This test is broken at the moment, as symbols required for
4313    # linking are now in libsupc++ (not built yet.....). In addition, 
4314    # this test has cored on solaris in the past. In addition,
4315    # --gc-sections doesn't really work at the moment (keeps on discarding
4316    # used sections, first .eh_frame and now some of the glibc sections for
4317    # iconv). Bzzzzt. Thanks for playing, maybe next time.
4318    echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4319echo "configure:4320: checking for ld that supports -Wl,--gc-sections" >&5
4320    if test "$cross_compiling" = yes; then
4321  ac_sectionLDflags=yes
4322else
4323  cat > conftest.$ac_ext <<EOF
4324#line 4325 "configure"
4325#include "confdefs.h"
4326
4327     int main(void) 
4328     {
4329       try { throw 1; }
4330       catch (...) { };
4331       return 0;
4332     }
4333    
4334EOF
4335if { (eval echo configure:4336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4336then
4337  ac_sectionLDflags=yes
4338else
4339  echo "configure: failed program was:" >&5
4340  cat conftest.$ac_ext >&5
4341  rm -fr conftest*
4342  ac_sectionLDflags=no
4343fi
4344rm -fr conftest*
4345fi
4346
4347    if test "$ac_test_CFLAGS" = set; then
4348      CFLAGS="$ac_save_CFLAGS"
4349    else
4350      # this is the suspicious part
4351      CFLAGS=''
4352    fi
4353    if test "$ac_sectionLDflags" = "yes"; then
4354      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4355    fi
4356    echo "$ac_t""$ac_sectionLDflags" 1>&6
4357  fi
4358
4359  # Set linker optimization flags.
4360  if test x"$with_gnu_ld" = x"yes"; then
4361    OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4362  fi
4363
4364  
4365  
4366
4367      
4368    echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4369echo "configure:4370: checking for main in -lm" >&5
4370ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4371if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4372  echo $ac_n "(cached) $ac_c" 1>&6
4373else
4374  ac_save_LIBS="$LIBS"
4375LIBS="-lm  $LIBS"
4376cat > conftest.$ac_ext <<EOF
4377#line 4378 "configure"
4378#include "confdefs.h"
4379
4380int main() {
4381main()
4382; return 0; }
4383EOF
4384if { (eval echo configure:4385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4385  rm -rf conftest*
4386  eval "ac_cv_lib_$ac_lib_var=yes"
4387else
4388  echo "configure: failed program was:" >&5
4389  cat conftest.$ac_ext >&5
4390  rm -rf conftest*
4391  eval "ac_cv_lib_$ac_lib_var=no"
4392fi
4393rm -f conftest*
4394LIBS="$ac_save_LIBS"
4395
4396fi
4397if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4398  echo "$ac_t""yes" 1>&6
4399    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4400    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4401  cat >> confdefs.h <<EOF
4402#define $ac_tr_lib 1
4403EOF
4404
4405  LIBS="-lm $LIBS"
4406
4407else
4408  echo "$ac_t""no" 1>&6
4409fi
4410
4411  for ac_func in nan copysignf
4412do
4413echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4414echo "configure:4415: checking for $ac_func" >&5
4415if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4416  echo $ac_n "(cached) $ac_c" 1>&6
4417else
4418  cat > conftest.$ac_ext <<EOF
4419#line 4420 "configure"
4420#include "confdefs.h"
4421/* System header to define __stub macros and hopefully few prototypes,
4422    which can conflict with char $ac_func(); below.  */
4423#include <assert.h>
4424/* Override any gcc2 internal prototype to avoid an error.  */
4425/* We use char because int might match the return type of a gcc2
4426    builtin and then its argument prototype would still apply.  */
4427char $ac_func();
4428
4429int main() {
4430
4431/* The GNU C library defines this for functions which it implements
4432    to always fail with ENOSYS.  Some functions are actually named
4433    something starting with __ and the normal name is an alias.  */
4434#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4435choke me
4436#else
4437$ac_func();
4438#endif
4439
4440; return 0; }
4441EOF
4442if { (eval echo configure:4443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4443  rm -rf conftest*
4444  eval "ac_cv_func_$ac_func=yes"
4445else
4446  echo "configure: failed program was:" >&5
4447  cat conftest.$ac_ext >&5
4448  rm -rf conftest*
4449  eval "ac_cv_func_$ac_func=no"
4450fi
4451rm -f conftest*
4452fi
4453
4454if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4455  echo "$ac_t""yes" 1>&6
4456    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4457  cat >> confdefs.h <<EOF
4458#define $ac_tr_func 1
4459EOF
4460 
4461else
4462  echo "$ac_t""no" 1>&6
4463LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4464fi
4465done
4466
4467
4468    for ac_func in __signbit
4469do
4470echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4471echo "configure:4472: checking for $ac_func" >&5
4472if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4473  echo $ac_n "(cached) $ac_c" 1>&6
4474else
4475  cat > conftest.$ac_ext <<EOF
4476#line 4477 "configure"
4477#include "confdefs.h"
4478/* System header to define __stub macros and hopefully few prototypes,
4479    which can conflict with char $ac_func(); below.  */
4480#include <assert.h>
4481/* Override any gcc2 internal prototype to avoid an error.  */
4482/* We use char because int might match the return type of a gcc2
4483    builtin and then its argument prototype would still apply.  */
4484char $ac_func();
4485
4486int main() {
4487
4488/* The GNU C library defines this for functions which it implements
4489    to always fail with ENOSYS.  Some functions are actually named
4490    something starting with __ and the normal name is an alias.  */
4491#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4492choke me
4493#else
4494$ac_func();
4495#endif
4496
4497; return 0; }
4498EOF
4499if { (eval echo configure:4500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4500  rm -rf conftest*
4501  eval "ac_cv_func_$ac_func=yes"
4502else
4503  echo "configure: failed program was:" >&5
4504  cat conftest.$ac_ext >&5
4505  rm -rf conftest*
4506  eval "ac_cv_func_$ac_func=no"
4507fi
4508rm -f conftest*
4509fi
4510
4511if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4512  echo "$ac_t""yes" 1>&6
4513    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4514  cat >> confdefs.h <<EOF
4515#define $ac_tr_func 1
4516EOF
4517 
4518else
4519  echo "$ac_t""no" 1>&6
4520LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4521fi
4522done
4523
4524  for ac_func in __signbitf
4525do
4526echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4527echo "configure:4528: checking for $ac_func" >&5
4528if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4529  echo $ac_n "(cached) $ac_c" 1>&6
4530else
4531  cat > conftest.$ac_ext <<EOF
4532#line 4533 "configure"
4533#include "confdefs.h"
4534/* System header to define __stub macros and hopefully few prototypes,
4535    which can conflict with char $ac_func(); below.  */
4536#include <assert.h>
4537/* Override any gcc2 internal prototype to avoid an error.  */
4538/* We use char because int might match the return type of a gcc2
4539    builtin and then its argument prototype would still apply.  */
4540char $ac_func();
4541
4542int main() {
4543
4544/* The GNU C library defines this for functions which it implements
4545    to always fail with ENOSYS.  Some functions are actually named
4546    something starting with __ and the normal name is an alias.  */
4547#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4548choke me
4549#else
4550$ac_func();
4551#endif
4552
4553; return 0; }
4554EOF
4555if { (eval echo configure:4556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4556  rm -rf conftest*
4557  eval "ac_cv_func_$ac_func=yes"
4558else
4559  echo "configure: failed program was:" >&5
4560  cat conftest.$ac_ext >&5
4561  rm -rf conftest*
4562  eval "ac_cv_func_$ac_func=no"
4563fi
4564rm -f conftest*
4565fi
4566
4567if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4568  echo "$ac_t""yes" 1>&6
4569    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4570  cat >> confdefs.h <<EOF
4571#define $ac_tr_func 1
4572EOF
4573 
4574else
4575  echo "$ac_t""no" 1>&6
4576LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4577fi
4578done
4579
4580
4581          if test x$ac_cv_func_copysignl = x"yes"; then
4582    for ac_func in __signbitl
4583do
4584echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4585echo "configure:4586: checking for $ac_func" >&5
4586if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4587  echo $ac_n "(cached) $ac_c" 1>&6
4588else
4589  cat > conftest.$ac_ext <<EOF
4590#line 4591 "configure"
4591#include "confdefs.h"
4592/* System header to define __stub macros and hopefully few prototypes,
4593    which can conflict with char $ac_func(); below.  */
4594#include <assert.h>
4595/* Override any gcc2 internal prototype to avoid an error.  */
4596/* We use char because int might match the return type of a gcc2
4597    builtin and then its argument prototype would still apply.  */
4598char $ac_func();
4599
4600int main() {
4601
4602/* The GNU C library defines this for functions which it implements
4603    to always fail with ENOSYS.  Some functions are actually named
4604    something starting with __ and the normal name is an alias.  */
4605#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4606choke me
4607#else
4608$ac_func();
4609#endif
4610
4611; return 0; }
4612EOF
4613if { (eval echo configure:4614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4614  rm -rf conftest*
4615  eval "ac_cv_func_$ac_func=yes"
4616else
4617  echo "configure: failed program was:" >&5
4618  cat conftest.$ac_ext >&5
4619  rm -rf conftest*
4620  eval "ac_cv_func_$ac_func=no"
4621fi
4622rm -f conftest*
4623fi
4624
4625if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4626  echo "$ac_t""yes" 1>&6
4627    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4628  cat >> confdefs.h <<EOF
4629#define $ac_tr_func 1
4630EOF
4631 
4632else
4633  echo "$ac_t""no" 1>&6
4634LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4635fi
4636done
4637
4638  fi
4639
4640  if test -n "$LIBMATHOBJS"; then
4641    need_libmath=yes
4642  fi
4643  
4644  
4645
4646if test "$need_libmath" = yes; then
4647  GLIBCPP_BUILD_LIBMATH_TRUE=
4648  GLIBCPP_BUILD_LIBMATH_FALSE='#'
4649else
4650  GLIBCPP_BUILD_LIBMATH_TRUE='#'
4651  GLIBCPP_BUILD_LIBMATH_FALSE=
4652fi
4653
4654      
4655    enable_wchar_t=no
4656
4657      echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4658echo "configure:4659: checking for mbstate_t" >&5
4659  cat > conftest.$ac_ext <<EOF
4660#line 4661 "configure"
4661#include "confdefs.h"
4662#include <wchar.h>
4663int main() {
4664mbstate_t teststate;
4665; return 0; }
4666EOF
4667if { (eval echo configure:4668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4668  rm -rf conftest*
4669  have_mbstate_t=yes
4670else
4671  echo "configure: failed program was:" >&5
4672  cat conftest.$ac_ext >&5
4673  rm -rf conftest*
4674  have_mbstate_t=no
4675fi
4676rm -f conftest*
4677  echo "$ac_t""$have_mbstate_t" 1>&6
4678  if test x"$have_mbstate_t" = xyes; then
4679    cat >> confdefs.h <<\EOF
4680#define HAVE_MBSTATE_T 1
4681EOF
4682
4683  fi
4684
4685    for ac_hdr in wchar.h
4686do
4687ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4688echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4689echo "configure:4690: checking for $ac_hdr" >&5
4690if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4691  echo $ac_n "(cached) $ac_c" 1>&6
4692else
4693  cat > conftest.$ac_ext <<EOF
4694#line 4695 "configure"
4695#include "confdefs.h"
4696#include <$ac_hdr>
4697EOF
4698ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4699{ (eval echo configure:4700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4700ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4701if test -z "$ac_err"; then
4702  rm -rf conftest*
4703  eval "ac_cv_header_$ac_safe=yes"
4704else
4705  echo "$ac_err" >&5
4706  echo "configure: failed program was:" >&5
4707  cat conftest.$ac_ext >&5
4708  rm -rf conftest*
4709  eval "ac_cv_header_$ac_safe=no"
4710fi
4711rm -f conftest*
4712fi
4713if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4714  echo "$ac_t""yes" 1>&6
4715    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4716  cat >> confdefs.h <<EOF
4717#define $ac_tr_hdr 1
4718EOF
4719 ac_has_wchar_h=yes
4720else
4721  echo "$ac_t""no" 1>&6
4722ac_has_wchar_h=no
4723fi
4724done
4725
4726  for ac_hdr in wctype.h
4727do
4728ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4729echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4730echo "configure:4731: checking for $ac_hdr" >&5
4731if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4732  echo $ac_n "(cached) $ac_c" 1>&6
4733else
4734  cat > conftest.$ac_ext <<EOF
4735#line 4736 "configure"
4736#include "confdefs.h"
4737#include <$ac_hdr>
4738EOF
4739ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4740{ (eval echo configure:4741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4741ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4742if test -z "$ac_err"; then
4743  rm -rf conftest*
4744  eval "ac_cv_header_$ac_safe=yes"
4745else
4746  echo "$ac_err" >&5
4747  echo "configure: failed program was:" >&5
4748  cat conftest.$ac_ext >&5
4749  rm -rf conftest*
4750  eval "ac_cv_header_$ac_safe=no"
4751fi
4752rm -f conftest*
4753fi
4754if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4755  echo "$ac_t""yes" 1>&6
4756    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4757  cat >> confdefs.h <<EOF
4758#define $ac_tr_hdr 1
4759EOF
4760 ac_has_wctype_h=yes
4761else
4762  echo "$ac_t""no" 1>&6
4763ac_has_wctype_h=no
4764fi
4765done
4766
4767  
4768    if test x"$ac_has_wchar_h" = xyes &&
4769     test x"$ac_has_wctype_h" = xyes &&
4770     test x"$enable_c_mbchar" != xno; then
4771      
4772            echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4773echo "configure:4774: checking for WCHAR_MIN and WCHAR_MAX" >&5
4774    cat > conftest.$ac_ext <<EOF
4775#line 4776 "configure"
4776#include "confdefs.h"
4777#include <wchar.h>
4778int main() {
4779int i = WCHAR_MIN; int j = WCHAR_MAX;
4780; return 0; }
4781EOF
4782if { (eval echo configure:4783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4783  rm -rf conftest*
4784  has_wchar_minmax=yes
4785else
4786  echo "configure: failed program was:" >&5
4787  cat conftest.$ac_ext >&5
4788  rm -rf conftest*
4789  has_wchar_minmax=no
4790fi
4791rm -f conftest*
4792    echo "$ac_t""$has_wchar_minmax" 1>&6
4793    
4794            echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4795echo "configure:4796: checking for WEOF" >&5
4796    cat > conftest.$ac_ext <<EOF
4797#line 4798 "configure"
4798#include "confdefs.h"
4799
4800      #include <wchar.h>
4801      #include <stddef.h>
4802int main() {
4803wint_t i = WEOF;
4804; return 0; }
4805EOF
4806if { (eval echo configure:4807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4807  rm -rf conftest*
4808  has_weof=yes
4809else
4810  echo "configure: failed program was:" >&5
4811  cat conftest.$ac_ext >&5
4812  rm -rf conftest*
4813  has_weof=no
4814fi
4815rm -f conftest*
4816    echo "$ac_t""$has_weof" 1>&6
4817  
4818        ac_wfuncs=yes
4819    for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4820do
4821echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4822echo "configure:4823: checking for $ac_func" >&5
4823if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4824  echo $ac_n "(cached) $ac_c" 1>&6
4825else
4826  cat > conftest.$ac_ext <<EOF
4827#line 4828 "configure"
4828#include "confdefs.h"
4829/* System header to define __stub macros and hopefully few prototypes,
4830    which can conflict with char $ac_func(); below.  */
4831#include <assert.h>
4832/* Override any gcc2 internal prototype to avoid an error.  */
4833/* We use char because int might match the return type of a gcc2
4834    builtin and then its argument prototype would still apply.  */
4835char $ac_func();
4836
4837int main() {
4838
4839/* The GNU C library defines this for functions which it implements
4840    to always fail with ENOSYS.  Some functions are actually named
4841    something starting with __ and the normal name is an alias.  */
4842#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4843choke me
4844#else
4845$ac_func();
4846#endif
4847
4848; return 0; }
4849EOF
4850if { (eval echo configure:4851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4851  rm -rf conftest*
4852  eval "ac_cv_func_$ac_func=yes"
4853else
4854  echo "configure: failed program was:" >&5
4855  cat conftest.$ac_ext >&5
4856  rm -rf conftest*
4857  eval "ac_cv_func_$ac_func=no"
4858fi
4859rm -f conftest*
4860fi
4861
4862if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4863  echo "$ac_t""yes" 1>&6
4864    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4865  cat >> confdefs.h <<EOF
4866#define $ac_tr_func 1
4867EOF
4868 
4869else
4870  echo "$ac_t""no" 1>&6
4871\
4872    ac_wfuncs=no
4873fi
4874done
4875
4876  
4877        for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
4878    fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4879    vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4880    mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4881    wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4882    wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4883do
4884echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4885echo "configure:4886: checking for $ac_func" >&5
4886if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4887  echo $ac_n "(cached) $ac_c" 1>&6
4888else
4889  cat > conftest.$ac_ext <<EOF
4890#line 4891 "configure"
4891#include "confdefs.h"
4892/* System header to define __stub macros and hopefully few prototypes,
4893    which can conflict with char $ac_func(); below.  */
4894#include <assert.h>
4895/* Override any gcc2 internal prototype to avoid an error.  */
4896/* We use char because int might match the return type of a gcc2
4897    builtin and then its argument prototype would still apply.  */
4898char $ac_func();
4899
4900int main() {
4901
4902/* The GNU C library defines this for functions which it implements
4903    to always fail with ENOSYS.  Some functions are actually named
4904    something starting with __ and the normal name is an alias.  */
4905#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4906choke me
4907#else
4908$ac_func();
4909#endif
4910
4911; return 0; }
4912EOF
4913if { (eval echo configure:4914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4914  rm -rf conftest*
4915  eval "ac_cv_func_$ac_func=yes"
4916else
4917  echo "configure: failed program was:" >&5
4918  cat conftest.$ac_ext >&5
4919  rm -rf conftest*
4920  eval "ac_cv_func_$ac_func=no"
4921fi
4922rm -f conftest*
4923fi
4924
4925if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4926  echo "$ac_t""yes" 1>&6
4927    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4928  cat >> confdefs.h <<EOF
4929#define $ac_tr_func 1
4930EOF
4931 
4932else
4933  echo "$ac_t""no" 1>&6
4934\
4935    ac_wfuncs=no
4936fi
4937done
4938
4939
4940    echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4941echo "configure:4942: checking for ISO C99 wchar_t support" >&5
4942    if test x"$has_weof" = xyes &&
4943       test x"$has_wchar_minmax" = xyes &&
4944       test x"$ac_wfuncs" = xyes; then
4945      ac_isoC99_wchar_t=yes
4946    else
4947      ac_isoC99_wchar_t=no
4948    fi
4949    echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4950  
4951            ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4952echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4953echo "configure:4954: checking for iconv.h" >&5
4954if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4955  echo $ac_n "(cached) $ac_c" 1>&6
4956else
4957  cat > conftest.$ac_ext <<EOF
4958#line 4959 "configure"
4959#include "confdefs.h"
4960#include <iconv.h>
4961EOF
4962ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4963{ (eval echo configure:4964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4964ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4965if test -z "$ac_err"; then
4966  rm -rf conftest*
4967  eval "ac_cv_header_$ac_safe=yes"
4968else
4969  echo "$ac_err" >&5
4970  echo "configure: failed program was:" >&5
4971  cat conftest.$ac_ext >&5
4972  rm -rf conftest*
4973  eval "ac_cv_header_$ac_safe=no"
4974fi
4975rm -f conftest*
4976fi
4977if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4978  echo "$ac_t""yes" 1>&6
4979  ac_has_iconv_h=yes
4980else
4981  echo "$ac_t""no" 1>&6
4982ac_has_iconv_h=no
4983fi
4984
4985    ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4986echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4987echo "configure:4988: checking for langinfo.h" >&5
4988if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4989  echo $ac_n "(cached) $ac_c" 1>&6
4990else
4991  cat > conftest.$ac_ext <<EOF
4992#line 4993 "configure"
4993#include "confdefs.h"
4994#include <langinfo.h>
4995EOF
4996ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4997{ (eval echo configure:4998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4998ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4999if test -z "$ac_err"; then
5000  rm -rf conftest*
5001  eval "ac_cv_header_$ac_safe=yes"
5002else
5003  echo "$ac_err" >&5
5004  echo "configure: failed program was:" >&5
5005  cat conftest.$ac_ext >&5
5006  rm -rf conftest*
5007  eval "ac_cv_header_$ac_safe=no"
5008fi
5009rm -f conftest*
5010fi
5011if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5012  echo "$ac_t""yes" 1>&6
5013  ac_has_langinfo_h=yes
5014else
5015  echo "$ac_t""no" 1>&6
5016ac_has_langinfo_h=no
5017fi
5018
5019
5020        echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5021echo "configure:5022: checking for iconv in -liconv" >&5
5022ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5023if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5024  echo $ac_n "(cached) $ac_c" 1>&6
5025else
5026  ac_save_LIBS="$LIBS"
5027LIBS="-liconv  $LIBS"
5028cat > conftest.$ac_ext <<EOF
5029#line 5030 "configure"
5030#include "confdefs.h"
5031/* Override any gcc2 internal prototype to avoid an error.  */
5032/* We use char because int might match the return type of a gcc2
5033    builtin and then its argument prototype would still apply.  */
5034char iconv();
5035
5036int main() {
5037iconv()
5038; return 0; }
5039EOF
5040if { (eval echo configure:5041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5041  rm -rf conftest*
5042  eval "ac_cv_lib_$ac_lib_var=yes"
5043else
5044  echo "configure: failed program was:" >&5
5045  cat conftest.$ac_ext >&5
5046  rm -rf conftest*
5047  eval "ac_cv_lib_$ac_lib_var=no"
5048fi
5049rm -f conftest*
5050LIBS="$ac_save_LIBS"
5051
5052fi
5053if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5054  echo "$ac_t""yes" 1>&6
5055  libiconv="-liconv"
5056else
5057  echo "$ac_t""no" 1>&6
5058fi
5059
5060    ac_save_LIBS="$LIBS"
5061    LIBS="$LIBS $libiconv"
5062
5063    for ac_func in iconv_open iconv_close iconv nl_langinfo
5064do
5065echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5066echo "configure:5067: checking for $ac_func" >&5
5067if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5068  echo $ac_n "(cached) $ac_c" 1>&6
5069else
5070  cat > conftest.$ac_ext <<EOF
5071#line 5072 "configure"
5072#include "confdefs.h"
5073/* System header to define __stub macros and hopefully few prototypes,
5074    which can conflict with char $ac_func(); below.  */
5075#include <assert.h>
5076/* Override any gcc2 internal prototype to avoid an error.  */
5077/* We use char because int might match the return type of a gcc2
5078    builtin and then its argument prototype would still apply.  */
5079char $ac_func();
5080
5081int main() {
5082
5083/* The GNU C library defines this for functions which it implements
5084    to always fail with ENOSYS.  Some functions are actually named
5085    something starting with __ and the normal name is an alias.  */
5086#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5087choke me
5088#else
5089$ac_func();
5090#endif
5091
5092; return 0; }
5093EOF
5094if { (eval echo configure:5095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5095  rm -rf conftest*
5096  eval "ac_cv_func_$ac_func=yes"
5097else
5098  echo "configure: failed program was:" >&5
5099  cat conftest.$ac_ext >&5
5100  rm -rf conftest*
5101  eval "ac_cv_func_$ac_func=no"
5102fi
5103rm -f conftest*
5104fi
5105
5106if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5107  echo "$ac_t""yes" 1>&6
5108    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5109  cat >> confdefs.h <<EOF
5110#define $ac_tr_func 1
5111EOF
5112 \
5113    ac_XPG2funcs=yes
5114else
5115  echo "$ac_t""no" 1>&6
5116ac_XPG2funcs=no
5117fi
5118done
5119
5120  
5121    LIBS="$ac_save_LIBS"
5122
5123    echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5124echo "configure:5125: checking for XPG2 wchar_t support" >&5
5125    if test x"$ac_has_iconv_h" = xyes &&
5126       test x"$ac_has_langinfo_h" = xyes &&
5127       test x"$ac_XPG2funcs" = xyes; then
5128      ac_XPG2_wchar_t=yes
5129    else
5130      ac_XPG2_wchar_t=no
5131    fi
5132    echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5133  
5134            if test x"$ac_isoC99_wchar_t" = xyes &&
5135       test x"$ac_XPG2_wchar_t" = xyes; then
5136       cat >> confdefs.h <<\EOF
5137#define _GLIBCPP_USE_WCHAR_T 1
5138EOF
5139
5140       enable_wchar_t=yes 
5141    fi
5142  fi
5143  echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5144echo "configure:5145: checking for enabled wchar_t specializations" >&5
5145  echo "$ac_t""$enable_wchar_t" 1>&6	
5146  
5147
5148if test "$enable_wchar_t" = yes; then
5149  GLIBCPP_TEST_WCHAR_T_TRUE=
5150  GLIBCPP_TEST_WCHAR_T_FALSE='#'
5151else
5152  GLIBCPP_TEST_WCHAR_T_TRUE='#'
5153  GLIBCPP_TEST_WCHAR_T_FALSE=
5154fi	
5155
5156
5157      # For showmanyc_helper().
5158      for ac_hdr in sys/ioctl.h sys/filio.h
5159do
5160ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5161echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5162echo "configure:5163: checking for $ac_hdr" >&5
5163if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5164  echo $ac_n "(cached) $ac_c" 1>&6
5165else
5166  cat > conftest.$ac_ext <<EOF
5167#line 5168 "configure"
5168#include "confdefs.h"
5169#include <$ac_hdr>
5170EOF
5171ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5172{ (eval echo configure:5173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5173ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5174if test -z "$ac_err"; then
5175  rm -rf conftest*
5176  eval "ac_cv_header_$ac_safe=yes"
5177else
5178  echo "$ac_err" >&5
5179  echo "configure: failed program was:" >&5
5180  cat conftest.$ac_ext >&5
5181  rm -rf conftest*
5182  eval "ac_cv_header_$ac_safe=no"
5183fi
5184rm -f conftest*
5185fi
5186if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5187  echo "$ac_t""yes" 1>&6
5188    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5189  cat >> confdefs.h <<EOF
5190#define $ac_tr_hdr 1
5191EOF
5192 
5193else
5194  echo "$ac_t""no" 1>&6
5195fi
5196done
5197
5198      
5199  if eval "test \"`echo '$''{'glibcpp_cv_POLL'+set}'`\" = set"; then
5200  echo $ac_n "(cached) $ac_c" 1>&6
5201else
5202  
5203    cat > conftest.$ac_ext <<EOF
5204#line 5205 "configure"
5205#include "confdefs.h"
5206#include <poll.h>
5207int main() {
5208struct pollfd pfd[1]; pfd[0].events = POLLIN; poll(pfd, 1, 0); 
5209; return 0; }
5210EOF
5211if { (eval echo configure:5212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5212  rm -rf conftest*
5213  glibcpp_cv_POLL=yes
5214else
5215  echo "configure: failed program was:" >&5
5216  cat conftest.$ac_ext >&5
5217  rm -rf conftest*
5218  glibcpp_cv_POLL=no
5219fi
5220rm -f conftest*
5221  
5222fi
5223
5224  if test x$glibcpp_cv_POLL = xyes; then
5225    cat >> confdefs.h <<\EOF
5226#define HAVE_POLL 1
5227EOF
5228
5229  fi
5230
5231      
5232  if eval "test \"`echo '$''{'glibcpp_cv_S_ISREG'+set}'`\" = set"; then
5233  echo $ac_n "(cached) $ac_c" 1>&6
5234else
5235  
5236    cat > conftest.$ac_ext <<EOF
5237#line 5238 "configure"
5238#include "confdefs.h"
5239#include <sys/stat.h>
5240int main() {
5241struct stat buffer; fstat(0, &buffer); S_ISREG(buffer.st_mode); 
5242; return 0; }
5243EOF
5244if { (eval echo configure:5245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5245  rm -rf conftest*
5246  glibcpp_cv_S_ISREG=yes
5247else
5248  echo "configure: failed program was:" >&5
5249  cat conftest.$ac_ext >&5
5250  rm -rf conftest*
5251  glibcpp_cv_S_ISREG=no
5252fi
5253rm -f conftest*
5254  
5255fi
5256
5257  if eval "test \"`echo '$''{'glibcpp_cv_S_IFREG'+set}'`\" = set"; then
5258  echo $ac_n "(cached) $ac_c" 1>&6
5259else
5260  
5261    cat > conftest.$ac_ext <<EOF
5262#line 5263 "configure"
5263#include "confdefs.h"
5264#include <sys/stat.h>
5265int main() {
5266struct stat buffer; fstat(0, &buffer); S_IFREG & buffer.st_mode; 
5267; return 0; }
5268EOF
5269if { (eval echo configure:5270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5270  rm -rf conftest*
5271  glibcpp_cv_S_IFREG=yes
5272else
5273  echo "configure: failed program was:" >&5
5274  cat conftest.$ac_ext >&5
5275  rm -rf conftest*
5276  glibcpp_cv_S_IFREG=no
5277fi
5278rm -f conftest*
5279  
5280fi
5281
5282  if test x$glibcpp_cv_S_ISREG = xyes; then
5283    cat >> confdefs.h <<\EOF
5284#define HAVE_S_ISREG 1
5285EOF
5286
5287  elif test x$glibcpp_cv_S_IFREG = xyes; then
5288    cat >> confdefs.h <<\EOF
5289#define HAVE_S_IFREG 1
5290EOF
5291
5292  fi
5293
5294
5295      cat >> confdefs.h <<\EOF
5296#define HAVE_COPYSIGN 1
5297EOF
5298
5299      cat >> confdefs.h <<\EOF
5300#define HAVE_COPYSIGNF 1
5301EOF
5302
5303      cat >> confdefs.h <<\EOF
5304#define HAVE_FINITE 1
5305EOF
5306
5307      cat >> confdefs.h <<\EOF
5308#define HAVE_FINITEF 1
5309EOF
5310
5311      cat >> confdefs.h <<\EOF
5312#define HAVE_FREXPF 1
5313EOF
5314
5315      cat >> confdefs.h <<\EOF
5316#define HAVE_HYPOTF 1
5317EOF
5318
5319      cat >> confdefs.h <<\EOF
5320#define HAVE_ISINF 1
5321EOF
5322
5323      cat >> confdefs.h <<\EOF
5324#define HAVE_ISINFF 1
5325EOF
5326
5327      cat >> confdefs.h <<\EOF
5328#define HAVE_ISNAN 1
5329EOF
5330
5331      cat >> confdefs.h <<\EOF
5332#define HAVE_ISNANF 1
5333EOF
5334
5335      cat >> confdefs.h <<\EOF
5336#define HAVE_SINCOS 1
5337EOF
5338
5339      cat >> confdefs.h <<\EOF
5340#define HAVE_SINCOSF 1
5341EOF
5342
5343      if test x"long_double_math_on_this_cpu" = x"yes"; then
5344        cat >> confdefs.h <<\EOF
5345#define HAVE_FINITEL 1
5346EOF
5347
5348        cat >> confdefs.h <<\EOF
5349#define HAVE_HYPOTL 1
5350EOF
5351
5352        cat >> confdefs.h <<\EOF
5353#define HAVE_ISINFL 1
5354EOF
5355
5356        cat >> confdefs.h <<\EOF
5357#define HAVE_ISNANL 1
5358EOF
5359
5360      fi
5361      ;;
5362    *-hpux*)
5363      # Check for available headers.
5364      for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5365        machine/endian.h machine/param.h sys/machine.h sys/types.h \
5366        fp.h locale.h float.h inttypes.h
5367do
5368ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5369echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5370echo "configure:5371: checking for $ac_hdr" >&5
5371if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5372  echo $ac_n "(cached) $ac_c" 1>&6
5373else
5374  cat > conftest.$ac_ext <<EOF
5375#line 5376 "configure"
5376#include "confdefs.h"
5377#include <$ac_hdr>
5378EOF
5379ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5380{ (eval echo configure:5381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5381ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5382if test -z "$ac_err"; then
5383  rm -rf conftest*
5384  eval "ac_cv_header_$ac_safe=yes"
5385else
5386  echo "$ac_err" >&5
5387  echo "configure: failed program was:" >&5
5388  cat conftest.$ac_ext >&5
5389  rm -rf conftest*
5390  eval "ac_cv_header_$ac_safe=no"
5391fi
5392rm -f conftest*
5393fi
5394if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5395  echo "$ac_t""yes" 1>&6
5396    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5397  cat >> confdefs.h <<EOF
5398#define $ac_tr_hdr 1
5399EOF
5400 
5401else
5402  echo "$ac_t""no" 1>&6
5403fi
5404done
5405
5406      SECTION_FLAGS='-ffunction-sections -fdata-sections'
5407      
5408      
5409  # If we're not using GNU ld, then there's no point in even trying these
5410  # tests.  Check for that first.  We should have already tested for gld
5411  # by now (in libtool), but require it now just to be safe...
5412  test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5413  test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5414  
5415
5416  # The name set by libtool depends on the version of libtool.  Shame on us
5417  # for depending on an impl detail, but c'est la vie.  Older versions used
5418  # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5419  # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5420  # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5421  # set (hence we're using an older libtool), then set it.
5422  if test x${with_gnu_ld+set} != xset; then
5423    if test x${ac_cv_prog_gnu_ld+set} != xset; then
5424      # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5425      with_gnu_ld=no
5426    else
5427      with_gnu_ld=$ac_cv_prog_gnu_ld
5428    fi
5429  fi
5430
5431  # Start by getting the version number.  I think the libtool test already
5432  # does some of this, but throws away the result.
5433  
5434  ldver=`$LD --version 2>/dev/null | head -1 | \
5435         sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5436  
5437  glibcpp_gnu_ld_version=`echo $ldver | \
5438         $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5439
5440  # Set --gc-sections.
5441  if test "$with_gnu_ld" = "notbroken"; then
5442    # GNU ld it is!  Joy and bunny rabbits!
5443
5444    # All these tests are for C++; save the language and the compiler flags.
5445    # Need to do this so that g++ won't try to link in libstdc++
5446    ac_test_CFLAGS="${CFLAGS+set}"
5447    ac_save_CFLAGS="$CFLAGS"
5448    CFLAGS='-x c++  -Wl,--gc-sections'
5449
5450    # Check for -Wl,--gc-sections
5451    # XXX This test is broken at the moment, as symbols required for
5452    # linking are now in libsupc++ (not built yet.....). In addition, 
5453    # this test has cored on solaris in the past. In addition,
5454    # --gc-sections doesn't really work at the moment (keeps on discarding
5455    # used sections, first .eh_frame and now some of the glibc sections for
5456    # iconv). Bzzzzt. Thanks for playing, maybe next time.
5457    echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5458echo "configure:5459: checking for ld that supports -Wl,--gc-sections" >&5
5459    if test "$cross_compiling" = yes; then
5460  ac_sectionLDflags=yes
5461else
5462  cat > conftest.$ac_ext <<EOF
5463#line 5464 "configure"
5464#include "confdefs.h"
5465
5466     int main(void) 
5467     {
5468       try { throw 1; }
5469       catch (...) { };
5470       return 0;
5471     }
5472    
5473EOF
5474if { (eval echo configure:5475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5475then
5476  ac_sectionLDflags=yes
5477else
5478  echo "configure: failed program was:" >&5
5479  cat conftest.$ac_ext >&5
5480  rm -fr conftest*
5481  ac_sectionLDflags=no
5482fi
5483rm -fr conftest*
5484fi
5485
5486    if test "$ac_test_CFLAGS" = set; then
5487      CFLAGS="$ac_save_CFLAGS"
5488    else
5489      # this is the suspicious part
5490      CFLAGS=''
5491    fi
5492    if test "$ac_sectionLDflags" = "yes"; then
5493      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5494    fi
5495    echo "$ac_t""$ac_sectionLDflags" 1>&6
5496  fi
5497
5498  # Set linker optimization flags.
5499  if test x"$with_gnu_ld" = x"yes"; then
5500    OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5501  fi
5502
5503  
5504  
5505
5506      
5507    echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5508echo "configure:5509: checking for main in -lm" >&5
5509ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5510if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5511  echo $ac_n "(cached) $ac_c" 1>&6
5512else
5513  ac_save_LIBS="$LIBS"
5514LIBS="-lm  $LIBS"
5515cat > conftest.$ac_ext <<EOF
5516#line 5517 "configure"
5517#include "confdefs.h"
5518
5519int main() {
5520main()
5521; return 0; }
5522EOF
5523if { (eval echo configure:5524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5524  rm -rf conftest*
5525  eval "ac_cv_lib_$ac_lib_var=yes"
5526else
5527  echo "configure: failed program was:" >&5
5528  cat conftest.$ac_ext >&5
5529  rm -rf conftest*
5530  eval "ac_cv_lib_$ac_lib_var=no"
5531fi
5532rm -f conftest*
5533LIBS="$ac_save_LIBS"
5534
5535fi
5536if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5537  echo "$ac_t""yes" 1>&6
5538    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5539    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5540  cat >> confdefs.h <<EOF
5541#define $ac_tr_lib 1
5542EOF
5543
5544  LIBS="-lm $LIBS"
5545
5546else
5547  echo "$ac_t""no" 1>&6
5548fi
5549
5550  for ac_func in nan copysignf
5551do
5552echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5553echo "configure:5554: checking for $ac_func" >&5
5554if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5555  echo $ac_n "(cached) $ac_c" 1>&6
5556else
5557  cat > conftest.$ac_ext <<EOF
5558#line 5559 "configure"
5559#include "confdefs.h"
5560/* System header to define __stub macros and hopefully few prototypes,
5561    which can conflict with char $ac_func(); below.  */
5562#include <assert.h>
5563/* Override any gcc2 internal prototype to avoid an error.  */
5564/* We use char because int might match the return type of a gcc2
5565    builtin and then its argument prototype would still apply.  */
5566char $ac_func();
5567
5568int main() {
5569
5570/* The GNU C library defines this for functions which it implements
5571    to always fail with ENOSYS.  Some functions are actually named
5572    something starting with __ and the normal name is an alias.  */
5573#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5574choke me
5575#else
5576$ac_func();
5577#endif
5578
5579; return 0; }
5580EOF
5581if { (eval echo configure:5582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5582  rm -rf conftest*
5583  eval "ac_cv_func_$ac_func=yes"
5584else
5585  echo "configure: failed program was:" >&5
5586  cat conftest.$ac_ext >&5
5587  rm -rf conftest*
5588  eval "ac_cv_func_$ac_func=no"
5589fi
5590rm -f conftest*
5591fi
5592
5593if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5594  echo "$ac_t""yes" 1>&6
5595    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5596  cat >> confdefs.h <<EOF
5597#define $ac_tr_func 1
5598EOF
5599 
5600else
5601  echo "$ac_t""no" 1>&6
5602LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5603fi
5604done
5605
5606
5607    for ac_func in __signbit
5608do
5609echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5610echo "configure:5611: checking for $ac_func" >&5
5611if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5612  echo $ac_n "(cached) $ac_c" 1>&6
5613else
5614  cat > conftest.$ac_ext <<EOF
5615#line 5616 "configure"
5616#include "confdefs.h"
5617/* System header to define __stub macros and hopefully few prototypes,
5618    which can conflict with char $ac_func(); below.  */
5619#include <assert.h>
5620/* Override any gcc2 internal prototype to avoid an error.  */
5621/* We use char because int might match the return type of a gcc2
5622    builtin and then its argument prototype would still apply.  */
5623char $ac_func();
5624
5625int main() {
5626
5627/* The GNU C library defines this for functions which it implements
5628    to always fail with ENOSYS.  Some functions are actually named
5629    something starting with __ and the normal name is an alias.  */
5630#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5631choke me
5632#else
5633$ac_func();
5634#endif
5635
5636; return 0; }
5637EOF
5638if { (eval echo configure:5639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5639  rm -rf conftest*
5640  eval "ac_cv_func_$ac_func=yes"
5641else
5642  echo "configure: failed program was:" >&5
5643  cat conftest.$ac_ext >&5
5644  rm -rf conftest*
5645  eval "ac_cv_func_$ac_func=no"
5646fi
5647rm -f conftest*
5648fi
5649
5650if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5651  echo "$ac_t""yes" 1>&6
5652    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5653  cat >> confdefs.h <<EOF
5654#define $ac_tr_func 1
5655EOF
5656 
5657else
5658  echo "$ac_t""no" 1>&6
5659LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5660fi
5661done
5662
5663  for ac_func in __signbitf
5664do
5665echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5666echo "configure:5667: checking for $ac_func" >&5
5667if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5668  echo $ac_n "(cached) $ac_c" 1>&6
5669else
5670  cat > conftest.$ac_ext <<EOF
5671#line 5672 "configure"
5672#include "confdefs.h"
5673/* System header to define __stub macros and hopefully few prototypes,
5674    which can conflict with char $ac_func(); below.  */
5675#include <assert.h>
5676/* Override any gcc2 internal prototype to avoid an error.  */
5677/* We use char because int might match the return type of a gcc2
5678    builtin and then its argument prototype would still apply.  */
5679char $ac_func();
5680
5681int main() {
5682
5683/* The GNU C library defines this for functions which it implements
5684    to always fail with ENOSYS.  Some functions are actually named
5685    something starting with __ and the normal name is an alias.  */
5686#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5687choke me
5688#else
5689$ac_func();
5690#endif
5691
5692; return 0; }
5693EOF
5694if { (eval echo configure:5695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5695  rm -rf conftest*
5696  eval "ac_cv_func_$ac_func=yes"
5697else
5698  echo "configure: failed program was:" >&5
5699  cat conftest.$ac_ext >&5
5700  rm -rf conftest*
5701  eval "ac_cv_func_$ac_func=no"
5702fi
5703rm -f conftest*
5704fi
5705
5706if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5707  echo "$ac_t""yes" 1>&6
5708    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5709  cat >> confdefs.h <<EOF
5710#define $ac_tr_func 1
5711EOF
5712 
5713else
5714  echo "$ac_t""no" 1>&6
5715LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5716fi
5717done
5718
5719
5720          if test x$ac_cv_func_copysignl = x"yes"; then
5721    for ac_func in __signbitl
5722do
5723echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5724echo "configure:5725: checking for $ac_func" >&5
5725if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5726  echo $ac_n "(cached) $ac_c" 1>&6
5727else
5728  cat > conftest.$ac_ext <<EOF
5729#line 5730 "configure"
5730#include "confdefs.h"
5731/* System header to define __stub macros and hopefully few prototypes,
5732    which can conflict with char $ac_func(); below.  */
5733#include <assert.h>
5734/* Override any gcc2 internal prototype to avoid an error.  */
5735/* We use char because int might match the return type of a gcc2
5736    builtin and then its argument prototype would still apply.  */
5737char $ac_func();
5738
5739int main() {
5740
5741/* The GNU C library defines this for functions which it implements
5742    to always fail with ENOSYS.  Some functions are actually named
5743    something starting with __ and the normal name is an alias.  */
5744#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5745choke me
5746#else
5747$ac_func();
5748#endif
5749
5750; return 0; }
5751EOF
5752if { (eval echo configure:5753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5753  rm -rf conftest*
5754  eval "ac_cv_func_$ac_func=yes"
5755else
5756  echo "configure: failed program was:" >&5
5757  cat conftest.$ac_ext >&5
5758  rm -rf conftest*
5759  eval "ac_cv_func_$ac_func=no"
5760fi
5761rm -f conftest*
5762fi
5763
5764if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5765  echo "$ac_t""yes" 1>&6
5766    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5767  cat >> confdefs.h <<EOF
5768#define $ac_tr_func 1
5769EOF
5770 
5771else
5772  echo "$ac_t""no" 1>&6
5773LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5774fi
5775done
5776
5777  fi
5778
5779  if test -n "$LIBMATHOBJS"; then
5780    need_libmath=yes
5781  fi
5782  
5783  
5784
5785if test "$need_libmath" = yes; then
5786  GLIBCPP_BUILD_LIBMATH_TRUE=
5787  GLIBCPP_BUILD_LIBMATH_FALSE='#'
5788else
5789  GLIBCPP_BUILD_LIBMATH_TRUE='#'
5790  GLIBCPP_BUILD_LIBMATH_FALSE=
5791fi
5792
5793      
5794    enable_wchar_t=no
5795
5796      echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5797echo "configure:5798: checking for mbstate_t" >&5
5798  cat > conftest.$ac_ext <<EOF
5799#line 5800 "configure"
5800#include "confdefs.h"
5801#include <wchar.h>
5802int main() {
5803mbstate_t teststate;
5804; return 0; }
5805EOF
5806if { (eval echo configure:5807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5807  rm -rf conftest*
5808  have_mbstate_t=yes
5809else
5810  echo "configure: failed program was:" >&5
5811  cat conftest.$ac_ext >&5
5812  rm -rf conftest*
5813  have_mbstate_t=no
5814fi
5815rm -f conftest*
5816  echo "$ac_t""$have_mbstate_t" 1>&6
5817  if test x"$have_mbstate_t" = xyes; then
5818    cat >> confdefs.h <<\EOF
5819#define HAVE_MBSTATE_T 1
5820EOF
5821
5822  fi
5823
5824    for ac_hdr in wchar.h
5825do
5826ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5827echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5828echo "configure:5829: checking for $ac_hdr" >&5
5829if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5830  echo $ac_n "(cached) $ac_c" 1>&6
5831else
5832  cat > conftest.$ac_ext <<EOF
5833#line 5834 "configure"
5834#include "confdefs.h"
5835#include <$ac_hdr>
5836EOF
5837ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5838{ (eval echo configure:5839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5839ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5840if test -z "$ac_err"; then
5841  rm -rf conftest*
5842  eval "ac_cv_header_$ac_safe=yes"
5843else
5844  echo "$ac_err" >&5
5845  echo "configure: failed program was:" >&5
5846  cat conftest.$ac_ext >&5
5847  rm -rf conftest*
5848  eval "ac_cv_header_$ac_safe=no"
5849fi
5850rm -f conftest*
5851fi
5852if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5853  echo "$ac_t""yes" 1>&6
5854    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5855  cat >> confdefs.h <<EOF
5856#define $ac_tr_hdr 1
5857EOF
5858 ac_has_wchar_h=yes
5859else
5860  echo "$ac_t""no" 1>&6
5861ac_has_wchar_h=no
5862fi
5863done
5864
5865  for ac_hdr in wctype.h
5866do
5867ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5868echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5869echo "configure:5870: checking for $ac_hdr" >&5
5870if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5871  echo $ac_n "(cached) $ac_c" 1>&6
5872else
5873  cat > conftest.$ac_ext <<EOF
5874#line 5875 "configure"
5875#include "confdefs.h"
5876#include <$ac_hdr>
5877EOF
5878ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5879{ (eval echo configure:5880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5880ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5881if test -z "$ac_err"; then
5882  rm -rf conftest*
5883  eval "ac_cv_header_$ac_safe=yes"
5884else
5885  echo "$ac_err" >&5
5886  echo "configure: failed program was:" >&5
5887  cat conftest.$ac_ext >&5
5888  rm -rf conftest*
5889  eval "ac_cv_header_$ac_safe=no"
5890fi
5891rm -f conftest*
5892fi
5893if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5894  echo "$ac_t""yes" 1>&6
5895    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5896  cat >> confdefs.h <<EOF
5897#define $ac_tr_hdr 1
5898EOF
5899 ac_has_wctype_h=yes
5900else
5901  echo "$ac_t""no" 1>&6
5902ac_has_wctype_h=no
5903fi
5904done
5905
5906  
5907    if test x"$ac_has_wchar_h" = xyes &&
5908     test x"$ac_has_wctype_h" = xyes &&
5909     test x"$enable_c_mbchar" != xno; then
5910      
5911            echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5912echo "configure:5913: checking for WCHAR_MIN and WCHAR_MAX" >&5
5913    cat > conftest.$ac_ext <<EOF
5914#line 5915 "configure"
5915#include "confdefs.h"
5916#include <wchar.h>
5917int main() {
5918int i = WCHAR_MIN; int j = WCHAR_MAX;
5919; return 0; }
5920EOF
5921if { (eval echo configure:5922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5922  rm -rf conftest*
5923  has_wchar_minmax=yes
5924else
5925  echo "configure: failed program was:" >&5
5926  cat conftest.$ac_ext >&5
5927  rm -rf conftest*
5928  has_wchar_minmax=no
5929fi
5930rm -f conftest*
5931    echo "$ac_t""$has_wchar_minmax" 1>&6
5932    
5933            echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5934echo "configure:5935: checking for WEOF" >&5
5935    cat > conftest.$ac_ext <<EOF
5936#line 5937 "configure"
5937#include "confdefs.h"
5938
5939      #include <wchar.h>
5940      #include <stddef.h>
5941int main() {
5942wint_t i = WEOF;
5943; return 0; }
5944EOF
5945if { (eval echo configure:5946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5946  rm -rf conftest*
5947  has_weof=yes
5948else
5949  echo "configure: failed program was:" >&5
5950  cat conftest.$ac_ext >&5
5951  rm -rf conftest*
5952  has_weof=no
5953fi
5954rm -f conftest*
5955    echo "$ac_t""$has_weof" 1>&6
5956  
5957        ac_wfuncs=yes
5958    for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5959do
5960echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5961echo "configure:5962: checking for $ac_func" >&5
5962if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5963  echo $ac_n "(cached) $ac_c" 1>&6
5964else
5965  cat > conftest.$ac_ext <<EOF
5966#line 5967 "configure"
5967#include "confdefs.h"
5968/* System header to define __stub macros and hopefully few prototypes,
5969    which can conflict with char $ac_func(); below.  */
5970#include <assert.h>
5971/* Override any gcc2 internal prototype to avoid an error.  */
5972/* We use char because int might match the return type of a gcc2
5973    builtin and then its argument prototype would still apply.  */
5974char $ac_func();
5975
5976int main() {
5977
5978/* The GNU C library defines this for functions which it implements
5979    to always fail with ENOSYS.  Some functions are actually named
5980    something starting with __ and the normal name is an alias.  */
5981#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5982choke me
5983#else
5984$ac_func();
5985#endif
5986
5987; return 0; }
5988EOF
5989if { (eval echo configure:5990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5990  rm -rf conftest*
5991  eval "ac_cv_func_$ac_func=yes"
5992else
5993  echo "configure: failed program was:" >&5
5994  cat conftest.$ac_ext >&5
5995  rm -rf conftest*
5996  eval "ac_cv_func_$ac_func=no"
5997fi
5998rm -f conftest*
5999fi
6000
6001if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6002  echo "$ac_t""yes" 1>&6
6003    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6004  cat >> confdefs.h <<EOF
6005#define $ac_tr_func 1
6006EOF
6007 
6008else
6009  echo "$ac_t""no" 1>&6
6010\
6011    ac_wfuncs=no
6012fi
6013done
6014
6015  
6016        for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6017    fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6018    vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6019    mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6020    wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6021    wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6022do
6023echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6024echo "configure:6025: checking for $ac_func" >&5
6025if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6026  echo $ac_n "(cached) $ac_c" 1>&6
6027else
6028  cat > conftest.$ac_ext <<EOF
6029#line 6030 "configure"
6030#include "confdefs.h"
6031/* System header to define __stub macros and hopefully few prototypes,
6032    which can conflict with char $ac_func(); below.  */
6033#include <assert.h>
6034/* Override any gcc2 internal prototype to avoid an error.  */
6035/* We use char because int might match the return type of a gcc2
6036    builtin and then its argument prototype would still apply.  */
6037char $ac_func();
6038
6039int main() {
6040
6041/* The GNU C library defines this for functions which it implements
6042    to always fail with ENOSYS.  Some functions are actually named
6043    something starting with __ and the normal name is an alias.  */
6044#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6045choke me
6046#else
6047$ac_func();
6048#endif
6049
6050; return 0; }
6051EOF
6052if { (eval echo configure:6053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6053  rm -rf conftest*
6054  eval "ac_cv_func_$ac_func=yes"
6055else
6056  echo "configure: failed program was:" >&5
6057  cat conftest.$ac_ext >&5
6058  rm -rf conftest*
6059  eval "ac_cv_func_$ac_func=no"
6060fi
6061rm -f conftest*
6062fi
6063
6064if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6065  echo "$ac_t""yes" 1>&6
6066    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6067  cat >> confdefs.h <<EOF
6068#define $ac_tr_func 1
6069EOF
6070 
6071else
6072  echo "$ac_t""no" 1>&6
6073\
6074    ac_wfuncs=no
6075fi
6076done
6077
6078
6079    echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6080echo "configure:6081: checking for ISO C99 wchar_t support" >&5
6081    if test x"$has_weof" = xyes &&
6082       test x"$has_wchar_minmax" = xyes &&
6083       test x"$ac_wfuncs" = xyes; then
6084      ac_isoC99_wchar_t=yes
6085    else
6086      ac_isoC99_wchar_t=no
6087    fi
6088    echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6089  
6090            ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6091echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6092echo "configure:6093: checking for iconv.h" >&5
6093if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6094  echo $ac_n "(cached) $ac_c" 1>&6
6095else
6096  cat > conftest.$ac_ext <<EOF
6097#line 6098 "configure"
6098#include "confdefs.h"
6099#include <iconv.h>
6100EOF
6101ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6102{ (eval echo configure:6103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6103ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6104if test -z "$ac_err"; then
6105  rm -rf conftest*
6106  eval "ac_cv_header_$ac_safe=yes"
6107else
6108  echo "$ac_err" >&5
6109  echo "configure: failed program was:" >&5
6110  cat conftest.$ac_ext >&5
6111  rm -rf conftest*
6112  eval "ac_cv_header_$ac_safe=no"
6113fi
6114rm -f conftest*
6115fi
6116if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6117  echo "$ac_t""yes" 1>&6
6118  ac_has_iconv_h=yes
6119else
6120  echo "$ac_t""no" 1>&6
6121ac_has_iconv_h=no
6122fi
6123
6124    ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6125echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6126echo "configure:6127: checking for langinfo.h" >&5
6127if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6128  echo $ac_n "(cached) $ac_c" 1>&6
6129else
6130  cat > conftest.$ac_ext <<EOF
6131#line 6132 "configure"
6132#include "confdefs.h"
6133#include <langinfo.h>
6134EOF
6135ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6136{ (eval echo configure:6137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6137ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6138if test -z "$ac_err"; then
6139  rm -rf conftest*
6140  eval "ac_cv_header_$ac_safe=yes"
6141else
6142  echo "$ac_err" >&5
6143  echo "configure: failed program was:" >&5
6144  cat conftest.$ac_ext >&5
6145  rm -rf conftest*
6146  eval "ac_cv_header_$ac_safe=no"
6147fi
6148rm -f conftest*
6149fi
6150if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6151  echo "$ac_t""yes" 1>&6
6152  ac_has_langinfo_h=yes
6153else
6154  echo "$ac_t""no" 1>&6
6155ac_has_langinfo_h=no
6156fi
6157
6158
6159        echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6160echo "configure:6161: checking for iconv in -liconv" >&5
6161ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6162if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6163  echo $ac_n "(cached) $ac_c" 1>&6
6164else
6165  ac_save_LIBS="$LIBS"
6166LIBS="-liconv  $LIBS"
6167cat > conftest.$ac_ext <<EOF
6168#line 6169 "configure"
6169#include "confdefs.h"
6170/* Override any gcc2 internal prototype to avoid an error.  */
6171/* We use char because int might match the return type of a gcc2
6172    builtin and then its argument prototype would still apply.  */
6173char iconv();
6174
6175int main() {
6176iconv()
6177; return 0; }
6178EOF
6179if { (eval echo configure:6180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6180  rm -rf conftest*
6181  eval "ac_cv_lib_$ac_lib_var=yes"
6182else
6183  echo "configure: failed program was:" >&5
6184  cat conftest.$ac_ext >&5
6185  rm -rf conftest*
6186  eval "ac_cv_lib_$ac_lib_var=no"
6187fi
6188rm -f conftest*
6189LIBS="$ac_save_LIBS"
6190
6191fi
6192if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6193  echo "$ac_t""yes" 1>&6
6194  libiconv="-liconv"
6195else
6196  echo "$ac_t""no" 1>&6
6197fi
6198
6199    ac_save_LIBS="$LIBS"
6200    LIBS="$LIBS $libiconv"
6201
6202    for ac_func in iconv_open iconv_close iconv nl_langinfo
6203do
6204echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6205echo "configure:6206: checking for $ac_func" >&5
6206if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6207  echo $ac_n "(cached) $ac_c" 1>&6
6208else
6209  cat > conftest.$ac_ext <<EOF
6210#line 6211 "configure"
6211#include "confdefs.h"
6212/* System header to define __stub macros and hopefully few prototypes,
6213    which can conflict with char $ac_func(); below.  */
6214#include <assert.h>
6215/* Override any gcc2 internal prototype to avoid an error.  */
6216/* We use char because int might match the return type of a gcc2
6217    builtin and then its argument prototype would still apply.  */
6218char $ac_func();
6219
6220int main() {
6221
6222/* The GNU C library defines this for functions which it implements
6223    to always fail with ENOSYS.  Some functions are actually named
6224    something starting with __ and the normal name is an alias.  */
6225#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6226choke me
6227#else
6228$ac_func();
6229#endif
6230
6231; return 0; }
6232EOF
6233if { (eval echo configure:6234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6234  rm -rf conftest*
6235  eval "ac_cv_func_$ac_func=yes"
6236else
6237  echo "configure: failed program was:" >&5
6238  cat conftest.$ac_ext >&5
6239  rm -rf conftest*
6240  eval "ac_cv_func_$ac_func=no"
6241fi
6242rm -f conftest*
6243fi
6244
6245if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6246  echo "$ac_t""yes" 1>&6
6247    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6248  cat >> confdefs.h <<EOF
6249#define $ac_tr_func 1
6250EOF
6251 \
6252    ac_XPG2funcs=yes
6253else
6254  echo "$ac_t""no" 1>&6
6255ac_XPG2funcs=no
6256fi
6257done
6258
6259  
6260    LIBS="$ac_save_LIBS"
6261
6262    echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6263echo "configure:6264: checking for XPG2 wchar_t support" >&5
6264    if test x"$ac_has_iconv_h" = xyes &&
6265       test x"$ac_has_langinfo_h" = xyes &&
6266       test x"$ac_XPG2funcs" = xyes; then
6267      ac_XPG2_wchar_t=yes
6268    else
6269      ac_XPG2_wchar_t=no
6270    fi
6271    echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6272  
6273            if test x"$ac_isoC99_wchar_t" = xyes &&
6274       test x"$ac_XPG2_wchar_t" = xyes; then
6275       cat >> confdefs.h <<\EOF
6276#define _GLIBCPP_USE_WCHAR_T 1
6277EOF
6278
6279       enable_wchar_t=yes 
6280    fi
6281  fi
6282  echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6283echo "configure:6284: checking for enabled wchar_t specializations" >&5
6284  echo "$ac_t""$enable_wchar_t" 1>&6	
6285  
6286
6287if test "$enable_wchar_t" = yes; then
6288  GLIBCPP_TEST_WCHAR_T_TRUE=
6289  GLIBCPP_TEST_WCHAR_T_FALSE='#'
6290else
6291  GLIBCPP_TEST_WCHAR_T_TRUE='#'
6292  GLIBCPP_TEST_WCHAR_T_FALSE=
6293fi	
6294
6295      os_include_dir="os/hpux"
6296      cat >> confdefs.h <<\EOF
6297#define HAVE_COPYSIGN 1
6298EOF
6299
6300      cat >> confdefs.h <<\EOF
6301#define HAVE_COPYSIGNF 1
6302EOF
6303
6304      cat >> confdefs.h <<\EOF
6305#define HAVE_FREXPF 1
6306EOF
6307
6308      cat >> confdefs.h <<\EOF
6309#define HAVE_HYPOT 1
6310EOF
6311
6312      case "$target" in
6313        *-hpux10*)
6314          cat >> confdefs.h <<\EOF
6315#define HAVE_FINITE 1
6316EOF
6317
6318          cat >> confdefs.h <<\EOF
6319#define HAVE_FINITEF 1
6320EOF
6321
6322          cat >> confdefs.h <<\EOF
6323#define HAVE_ISINF 1
6324EOF
6325
6326          cat >> confdefs.h <<\EOF
6327#define HAVE_ISINFF 1
6328EOF
6329
6330          cat >> confdefs.h <<\EOF
6331#define HAVE_ISNAN 1
6332EOF
6333
6334          cat >> confdefs.h <<\EOF
6335#define HAVE_ISNANF 1
6336EOF
6337
6338          ;;
6339      esac
6340
6341      ;;
6342    *-netbsd*)
6343      # Check for available headers.
6344      for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6345        machine/endian.h machine/param.h sys/machine.h sys/types.h \
6346        fp.h locale.h float.h inttypes.h
6347do
6348ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6349echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6350echo "configure:6351: checking for $ac_hdr" >&5
6351if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6352  echo $ac_n "(cached) $ac_c" 1>&6
6353else
6354  cat > conftest.$ac_ext <<EOF
6355#line 6356 "configure"
6356#include "confdefs.h"
6357#include <$ac_hdr>
6358EOF
6359ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6360{ (eval echo configure:6361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6361ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6362if test -z "$ac_err"; then
6363  rm -rf conftest*
6364  eval "ac_cv_header_$ac_safe=yes"
6365else
6366  echo "$ac_err" >&5
6367  echo "configure: failed program was:" >&5
6368  cat conftest.$ac_ext >&5
6369  rm -rf conftest*
6370  eval "ac_cv_header_$ac_safe=no"
6371fi
6372rm -f conftest*
6373fi
6374if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6375  echo "$ac_t""yes" 1>&6
6376    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6377  cat >> confdefs.h <<EOF
6378#define $ac_tr_hdr 1
6379EOF
6380 
6381else
6382  echo "$ac_t""no" 1>&6
6383fi
6384done
6385
6386      SECTION_FLAGS='-ffunction-sections -fdata-sections'
6387       
6388      
6389  # If we're not using GNU ld, then there's no point in even trying these
6390  # tests.  Check for that first.  We should have already tested for gld
6391  # by now (in libtool), but require it now just to be safe...
6392  test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6393  test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6394  
6395
6396  # The name set by libtool depends on the version of libtool.  Shame on us
6397  # for depending on an impl detail, but c'est la vie.  Older versions used
6398  # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6399  # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6400  # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6401  # set (hence we're using an older libtool), then set it.
6402  if test x${with_gnu_ld+set} != xset; then
6403    if test x${ac_cv_prog_gnu_ld+set} != xset; then
6404      # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6405      with_gnu_ld=no
6406    else
6407      with_gnu_ld=$ac_cv_prog_gnu_ld
6408    fi
6409  fi
6410
6411  # Start by getting the version number.  I think the libtool test already
6412  # does some of this, but throws away the result.
6413  
6414  ldver=`$LD --version 2>/dev/null | head -1 | \
6415         sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6416  
6417  glibcpp_gnu_ld_version=`echo $ldver | \
6418         $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6419
6420  # Set --gc-sections.
6421  if test "$with_gnu_ld" = "notbroken"; then
6422    # GNU ld it is!  Joy and bunny rabbits!
6423
6424    # All these tests are for C++; save the language and the compiler flags.
6425    # Need to do this so that g++ won't try to link in libstdc++
6426    ac_test_CFLAGS="${CFLAGS+set}"
6427    ac_save_CFLAGS="$CFLAGS"
6428    CFLAGS='-x c++  -Wl,--gc-sections'
6429
6430    # Check for -Wl,--gc-sections
6431    # XXX This test is broken at the moment, as symbols required for
6432    # linking are now in libsupc++ (not built yet.....). In addition, 
6433    # this test has cored on solaris in the past. In addition,
6434    # --gc-sections doesn't really work at the moment (keeps on discarding
6435    # used sections, first .eh_frame and now some of the glibc sections for
6436    # iconv). Bzzzzt. Thanks for playing, maybe next time.
6437    echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6438echo "configure:6439: checking for ld that supports -Wl,--gc-sections" >&5
6439    if test "$cross_compiling" = yes; then
6440  ac_sectionLDflags=yes
6441else
6442  cat > conftest.$ac_ext <<EOF
6443#line 6444 "configure"
6444#include "confdefs.h"
6445
6446     int main(void) 
6447     {
6448       try { throw 1; }
6449       catch (...) { };
6450       return 0;
6451     }
6452    
6453EOF
6454if { (eval echo configure:6455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6455then
6456  ac_sectionLDflags=yes
6457else
6458  echo "configure: failed program was:" >&5
6459  cat conftest.$ac_ext >&5
6460  rm -fr conftest*
6461  ac_sectionLDflags=no
6462fi
6463rm -fr conftest*
6464fi
6465
6466    if test "$ac_test_CFLAGS" = set; then
6467      CFLAGS="$ac_save_CFLAGS"
6468    else
6469      # this is the suspicious part
6470      CFLAGS=''
6471    fi
6472    if test "$ac_sectionLDflags" = "yes"; then
6473      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6474    fi
6475    echo "$ac_t""$ac_sectionLDflags" 1>&6
6476  fi
6477
6478  # Set linker optimization flags.
6479  if test x"$with_gnu_ld" = x"yes"; then
6480    OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6481  fi
6482
6483  
6484  
6485
6486      
6487    echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6488echo "configure:6489: checking for main in -lm" >&5
6489ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6490if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6491  echo $ac_n "(cached) $ac_c" 1>&6
6492else
6493  ac_save_LIBS="$LIBS"
6494LIBS="-lm  $LIBS"
6495cat > conftest.$ac_ext <<EOF
6496#line 6497 "configure"
6497#include "confdefs.h"
6498
6499int main() {
6500main()
6501; return 0; }
6502EOF
6503if { (eval echo configure:6504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6504  rm -rf conftest*
6505  eval "ac_cv_lib_$ac_lib_var=yes"
6506else
6507  echo "configure: failed program was:" >&5
6508  cat conftest.$ac_ext >&5
6509  rm -rf conftest*
6510  eval "ac_cv_lib_$ac_lib_var=no"
6511fi
6512rm -f conftest*
6513LIBS="$ac_save_LIBS"
6514
6515fi
6516if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6517  echo "$ac_t""yes" 1>&6
6518    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6519    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6520  cat >> confdefs.h <<EOF
6521#define $ac_tr_lib 1
6522EOF
6523
6524  LIBS="-lm $LIBS"
6525
6526else
6527  echo "$ac_t""no" 1>&6
6528fi
6529
6530  for ac_func in nan copysignf
6531do
6532echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6533echo "configure:6534: checking for $ac_func" >&5
6534if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6535  echo $ac_n "(cached) $ac_c" 1>&6
6536else
6537  cat > conftest.$ac_ext <<EOF
6538#line 6539 "configure"
6539#include "confdefs.h"
6540/* System header to define __stub macros and hopefully few prototypes,
6541    which can conflict with char $ac_func(); below.  */
6542#include <assert.h>
6543/* Override any gcc2 internal prototype to avoid an error.  */
6544/* We use char because int might match the return type of a gcc2
6545    builtin and then its argument prototype would still apply.  */
6546char $ac_func();
6547
6548int main() {
6549
6550/* The GNU C library defines this for functions which it implements
6551    to always fail with ENOSYS.  Some functions are actually named
6552    something starting with __ and the normal name is an alias.  */
6553#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6554choke me
6555#else
6556$ac_func();
6557#endif
6558
6559; return 0; }
6560EOF
6561if { (eval echo configure:6562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6562  rm -rf conftest*
6563  eval "ac_cv_func_$ac_func=yes"
6564else
6565  echo "configure: failed program was:" >&5
6566  cat conftest.$ac_ext >&5
6567  rm -rf conftest*
6568  eval "ac_cv_func_$ac_func=no"
6569fi
6570rm -f conftest*
6571fi
6572
6573if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6574  echo "$ac_t""yes" 1>&6
6575    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6576  cat >> confdefs.h <<EOF
6577#define $ac_tr_func 1
6578EOF
6579 
6580else
6581  echo "$ac_t""no" 1>&6
6582LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6583fi
6584done
6585
6586
6587    for ac_func in __signbit
6588do
6589echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6590echo "configure:6591: checking for $ac_func" >&5
6591if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6592  echo $ac_n "(cached) $ac_c" 1>&6
6593else
6594  cat > conftest.$ac_ext <<EOF
6595#line 6596 "configure"
6596#include "confdefs.h"
6597/* System header to define __stub macros and hopefully few prototypes,
6598    which can conflict with char $ac_func(); below.  */
6599#include <assert.h>
6600/* Override any gcc2 internal prototype to avoid an error.  */
6601/* We use char because int might match the return type of a gcc2
6602    builtin and then its argument prototype would still apply.  */
6603char $ac_func();
6604
6605int main() {
6606
6607/* The GNU C library defines this for functions which it implements
6608    to always fail with ENOSYS.  Some functions are actually named
6609    something starting with __ and the normal name is an alias.  */
6610#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6611choke me
6612#else
6613$ac_func();
6614#endif
6615
6616; return 0; }
6617EOF
6618if { (eval echo configure:6619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6619  rm -rf conftest*
6620  eval "ac_cv_func_$ac_func=yes"
6621else
6622  echo "configure: failed program was:" >&5
6623  cat conftest.$ac_ext >&5
6624  rm -rf conftest*
6625  eval "ac_cv_func_$ac_func=no"
6626fi
6627rm -f conftest*
6628fi
6629
6630if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6631  echo "$ac_t""yes" 1>&6
6632    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6633  cat >> confdefs.h <<EOF
6634#define $ac_tr_func 1
6635EOF
6636 
6637else
6638  echo "$ac_t""no" 1>&6
6639LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6640fi
6641done
6642
6643  for ac_func in __signbitf
6644do
6645echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6646echo "configure:6647: checking for $ac_func" >&5
6647if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6648  echo $ac_n "(cached) $ac_c" 1>&6
6649else
6650  cat > conftest.$ac_ext <<EOF
6651#line 6652 "configure"
6652#include "confdefs.h"
6653/* System header to define __stub macros and hopefully few prototypes,
6654    which can conflict with char $ac_func(); below.  */
6655#include <assert.h>
6656/* Override any gcc2 internal prototype to avoid an error.  */
6657/* We use char because int might match the return type of a gcc2
6658    builtin and then its argument prototype would still apply.  */
6659char $ac_func();
6660
6661int main() {
6662
6663/* The GNU C library defines this for functions which it implements
6664    to always fail with ENOSYS.  Some functions are actually named
6665    something starting with __ and the normal name is an alias.  */
6666#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6667choke me
6668#else
6669$ac_func();
6670#endif
6671
6672; return 0; }
6673EOF
6674if { (eval echo configure:6675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6675  rm -rf conftest*
6676  eval "ac_cv_func_$ac_func=yes"
6677else
6678  echo "configure: failed program was:" >&5
6679  cat conftest.$ac_ext >&5
6680  rm -rf conftest*
6681  eval "ac_cv_func_$ac_func=no"
6682fi
6683rm -f conftest*
6684fi
6685
6686if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6687  echo "$ac_t""yes" 1>&6
6688    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6689  cat >> confdefs.h <<EOF
6690#define $ac_tr_func 1
6691EOF
6692 
6693else
6694  echo "$ac_t""no" 1>&6
6695LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6696fi
6697done
6698
6699
6700          if test x$ac_cv_func_copysignl = x"yes"; then
6701    for ac_func in __signbitl
6702do
6703echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6704echo "configure:6705: checking for $ac_func" >&5
6705if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6706  echo $ac_n "(cached) $ac_c" 1>&6
6707else
6708  cat > conftest.$ac_ext <<EOF
6709#line 6710 "configure"
6710#include "confdefs.h"
6711/* System header to define __stub macros and hopefully few prototypes,
6712    which can conflict with char $ac_func(); below.  */
6713#include <assert.h>
6714/* Override any gcc2 internal prototype to avoid an error.  */
6715/* We use char because int might match the return type of a gcc2
6716    builtin and then its argument prototype would still apply.  */
6717char $ac_func();
6718
6719int main() {
6720
6721/* The GNU C library defines this for functions which it implements
6722    to always fail with ENOSYS.  Some functions are actually named
6723    something starting with __ and the normal name is an alias.  */
6724#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6725choke me
6726#else
6727$ac_func();
6728#endif
6729
6730; return 0; }
6731EOF
6732if { (eval echo configure:6733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6733  rm -rf conftest*
6734  eval "ac_cv_func_$ac_func=yes"
6735else
6736  echo "configure: failed program was:" >&5
6737  cat conftest.$ac_ext >&5
6738  rm -rf conftest*
6739  eval "ac_cv_func_$ac_func=no"
6740fi
6741rm -f conftest*
6742fi
6743
6744if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6745  echo "$ac_t""yes" 1>&6
6746    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6747  cat >> confdefs.h <<EOF
6748#define $ac_tr_func 1
6749EOF
6750 
6751else
6752  echo "$ac_t""no" 1>&6
6753LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6754fi
6755done
6756
6757  fi
6758
6759  if test -n "$LIBMATHOBJS"; then
6760    need_libmath=yes
6761  fi
6762  
6763  
6764
6765if test "$need_libmath" = yes; then
6766  GLIBCPP_BUILD_LIBMATH_TRUE=
6767  GLIBCPP_BUILD_LIBMATH_FALSE='#'
6768else
6769  GLIBCPP_BUILD_LIBMATH_TRUE='#'
6770  GLIBCPP_BUILD_LIBMATH_FALSE=
6771fi
6772
6773      
6774    enable_wchar_t=no
6775
6776      echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6777echo "configure:6778: checking for mbstate_t" >&5
6778  cat > conftest.$ac_ext <<EOF
6779#line 6780 "configure"
6780#include "confdefs.h"
6781#include <wchar.h>
6782int main() {
6783mbstate_t teststate;
6784; return 0; }
6785EOF
6786if { (eval echo configure:6787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6787  rm -rf conftest*
6788  have_mbstate_t=yes
6789else
6790  echo "configure: failed program was:" >&5
6791  cat conftest.$ac_ext >&5
6792  rm -rf conftest*
6793  have_mbstate_t=no
6794fi
6795rm -f conftest*
6796  echo "$ac_t""$have_mbstate_t" 1>&6
6797  if test x"$have_mbstate_t" = xyes; then
6798    cat >> confdefs.h <<\EOF
6799#define HAVE_MBSTATE_T 1
6800EOF
6801
6802  fi
6803
6804    for ac_hdr in wchar.h
6805do
6806ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6807echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6808echo "configure:6809: checking for $ac_hdr" >&5
6809if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6810  echo $ac_n "(cached) $ac_c" 1>&6
6811else
6812  cat > conftest.$ac_ext <<EOF
6813#line 6814 "configure"
6814#include "confdefs.h"
6815#include <$ac_hdr>
6816EOF
6817ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6818{ (eval echo configure:6819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6819ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6820if test -z "$ac_err"; then
6821  rm -rf conftest*
6822  eval "ac_cv_header_$ac_safe=yes"
6823else
6824  echo "$ac_err" >&5
6825  echo "configure: failed program was:" >&5
6826  cat conftest.$ac_ext >&5
6827  rm -rf conftest*
6828  eval "ac_cv_header_$ac_safe=no"
6829fi
6830rm -f conftest*
6831fi
6832if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6833  echo "$ac_t""yes" 1>&6
6834    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6835  cat >> confdefs.h <<EOF
6836#define $ac_tr_hdr 1
6837EOF
6838 ac_has_wchar_h=yes
6839else
6840  echo "$ac_t""no" 1>&6
6841ac_has_wchar_h=no
6842fi
6843done
6844
6845  for ac_hdr in wctype.h
6846do
6847ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6848echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6849echo "configure:6850: checking for $ac_hdr" >&5
6850if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6851  echo $ac_n "(cached) $ac_c" 1>&6
6852else
6853  cat > conftest.$ac_ext <<EOF
6854#line 6855 "configure"
6855#include "confdefs.h"
6856#include <$ac_hdr>
6857EOF
6858ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6859{ (eval echo configure:6860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6860ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6861if test -z "$ac_err"; then
6862  rm -rf conftest*
6863  eval "ac_cv_header_$ac_safe=yes"
6864else
6865  echo "$ac_err" >&5
6866  echo "configure: failed program was:" >&5
6867  cat conftest.$ac_ext >&5
6868  rm -rf conftest*
6869  eval "ac_cv_header_$ac_safe=no"
6870fi
6871rm -f conftest*
6872fi
6873if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6874  echo "$ac_t""yes" 1>&6
6875    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6876  cat >> confdefs.h <<EOF
6877#define $ac_tr_hdr 1
6878EOF
6879 ac_has_wctype_h=yes
6880else
6881  echo "$ac_t""no" 1>&6
6882ac_has_wctype_h=no
6883fi
6884done
6885
6886  
6887    if test x"$ac_has_wchar_h" = xyes &&
6888     test x"$ac_has_wctype_h" = xyes &&
6889     test x"$enable_c_mbchar" != xno; then
6890      
6891            echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6892echo "configure:6893: checking for WCHAR_MIN and WCHAR_MAX" >&5
6893    cat > conftest.$ac_ext <<EOF
6894#line 6895 "configure"
6895#include "confdefs.h"
6896#include <wchar.h>
6897int main() {
6898int i = WCHAR_MIN; int j = WCHAR_MAX;
6899; return 0; }
6900EOF
6901if { (eval echo configure:6902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6902  rm -rf conftest*
6903  has_wchar_minmax=yes
6904else
6905  echo "configure: failed program was:" >&5
6906  cat conftest.$ac_ext >&5
6907  rm -rf conftest*
6908  has_wchar_minmax=no
6909fi
6910rm -f conftest*
6911    echo "$ac_t""$has_wchar_minmax" 1>&6
6912    
6913            echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6914echo "configure:6915: checking for WEOF" >&5
6915    cat > conftest.$ac_ext <<EOF
6916#line 6917 "configure"
6917#include "confdefs.h"
6918
6919      #include <wchar.h>
6920      #include <stddef.h>
6921int main() {
6922wint_t i = WEOF;
6923; return 0; }
6924EOF
6925if { (eval echo configure:6926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6926  rm -rf conftest*
6927  has_weof=yes
6928else
6929  echo "configure: failed program was:" >&5
6930  cat conftest.$ac_ext >&5
6931  rm -rf conftest*
6932  has_weof=no
6933fi
6934rm -f conftest*
6935    echo "$ac_t""$has_weof" 1>&6
6936  
6937        ac_wfuncs=yes
6938    for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6939do
6940echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6941echo "configure:6942: checking for $ac_func" >&5
6942if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6943  echo $ac_n "(cached) $ac_c" 1>&6
6944else
6945  cat > conftest.$ac_ext <<EOF
6946#line 6947 "configure"
6947#include "confdefs.h"
6948/* System header to define __stub macros and hopefully few prototypes,
6949    which can conflict with char $ac_func(); below.  */
6950#include <assert.h>
6951/* Override any gcc2 internal prototype to avoid an error.  */
6952/* We use char because int might match the return type of a gcc2
6953    builtin and then its argument prototype would still apply.  */
6954char $ac_func();
6955
6956int main() {
6957
6958/* The GNU C library defines this for functions which it implements
6959    to always fail with ENOSYS.  Some functions are actually named
6960    something starting with __ and the normal name is an alias.  */
6961#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6962choke me
6963#else
6964$ac_func();
6965#endif
6966
6967; return 0; }
6968EOF
6969if { (eval echo configure:6970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6970  rm -rf conftest*
6971  eval "ac_cv_func_$ac_func=yes"
6972else
6973  echo "configure: failed program was:" >&5
6974  cat conftest.$ac_ext >&5
6975  rm -rf conftest*
6976  eval "ac_cv_func_$ac_func=no"
6977fi
6978rm -f conftest*
6979fi
6980
6981if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6982  echo "$ac_t""yes" 1>&6
6983    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6984  cat >> confdefs.h <<EOF
6985#define $ac_tr_func 1
6986EOF
6987 
6988else
6989  echo "$ac_t""no" 1>&6
6990\
6991    ac_wfuncs=no
6992fi
6993done
6994
6995  
6996        for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6997    fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6998    vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6999    mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7000    wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7001    wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7002do
7003echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7004echo "configure:7005: checking for $ac_func" >&5
7005if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7006  echo $ac_n "(cached) $ac_c" 1>&6
7007else
7008  cat > conftest.$ac_ext <<EOF
7009#line 7010 "configure"
7010#include "confdefs.h"
7011/* System header to define __stub macros and hopefully few prototypes,
7012    which can conflict with char $ac_func(); below.  */
7013#include <assert.h>
7014/* Override any gcc2 internal prototype to avoid an error.  */
7015/* We use char because int might match the return type of a gcc2
7016    builtin and then its argument prototype would still apply.  */
7017char $ac_func();
7018
7019int main() {
7020
7021/* The GNU C library defines this for functions which it implements
7022    to always fail with ENOSYS.  Some functions are actually named
7023    something starting with __ and the normal name is an alias.  */
7024#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7025choke me
7026#else
7027$ac_func();
7028#endif
7029
7030; return 0; }
7031EOF
7032if { (eval echo configure:7033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7033  rm -rf conftest*
7034  eval "ac_cv_func_$ac_func=yes"
7035else
7036  echo "configure: failed program was:" >&5
7037  cat conftest.$ac_ext >&5
7038  rm -rf conftest*
7039  eval "ac_cv_func_$ac_func=no"
7040fi
7041rm -f conftest*
7042fi
7043
7044if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7045  echo "$ac_t""yes" 1>&6
7046    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7047  cat >> confdefs.h <<EOF
7048#define $ac_tr_func 1
7049EOF
7050 
7051else
7052  echo "$ac_t""no" 1>&6
7053\
7054    ac_wfuncs=no
7055fi
7056done
7057
7058
7059    echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7060echo "configure:7061: checking for ISO C99 wchar_t support" >&5
7061    if test x"$has_weof" = xyes &&
7062       test x"$has_wchar_minmax" = xyes &&
7063       test x"$ac_wfuncs" = xyes; then
7064      ac_isoC99_wchar_t=yes
7065    else
7066      ac_isoC99_wchar_t=no
7067    fi
7068    echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7069  
7070            ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7071echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7072echo "configure:7073: checking for iconv.h" >&5
7073if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7074  echo $ac_n "(cached) $ac_c" 1>&6
7075else
7076  cat > conftest.$ac_ext <<EOF
7077#line 7078 "configure"
7078#include "confdefs.h"
7079#include <iconv.h>
7080EOF
7081ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7082{ (eval echo configure:7083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7083ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7084if test -z "$ac_err"; then
7085  rm -rf conftest*
7086  eval "ac_cv_header_$ac_safe=yes"
7087else
7088  echo "$ac_err" >&5
7089  echo "configure: failed program was:" >&5
7090  cat conftest.$ac_ext >&5
7091  rm -rf conftest*
7092  eval "ac_cv_header_$ac_safe=no"
7093fi
7094rm -f conftest*
7095fi
7096if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7097  echo "$ac_t""yes" 1>&6
7098  ac_has_iconv_h=yes
7099else
7100  echo "$ac_t""no" 1>&6
7101ac_has_iconv_h=no
7102fi
7103
7104    ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7105echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7106echo "configure:7107: checking for langinfo.h" >&5
7107if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7108  echo $ac_n "(cached) $ac_c" 1>&6
7109else
7110  cat > conftest.$ac_ext <<EOF
7111#line 7112 "configure"
7112#include "confdefs.h"
7113#include <langinfo.h>
7114EOF
7115ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7116{ (eval echo configure:7117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7117ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7118if test -z "$ac_err"; then
7119  rm -rf conftest*
7120  eval "ac_cv_header_$ac_safe=yes"
7121else
7122  echo "$ac_err" >&5
7123  echo "configure: failed program was:" >&5
7124  cat conftest.$ac_ext >&5
7125  rm -rf conftest*
7126  eval "ac_cv_header_$ac_safe=no"
7127fi
7128rm -f conftest*
7129fi
7130if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7131  echo "$ac_t""yes" 1>&6
7132  ac_has_langinfo_h=yes
7133else
7134  echo "$ac_t""no" 1>&6
7135ac_has_langinfo_h=no
7136fi
7137
7138
7139        echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7140echo "configure:7141: checking for iconv in -liconv" >&5
7141ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7142if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7143  echo $ac_n "(cached) $ac_c" 1>&6
7144else
7145  ac_save_LIBS="$LIBS"
7146LIBS="-liconv  $LIBS"
7147cat > conftest.$ac_ext <<EOF
7148#line 7149 "configure"
7149#include "confdefs.h"
7150/* Override any gcc2 internal prototype to avoid an error.  */
7151/* We use char because int might match the return type of a gcc2
7152    builtin and then its argument prototype would still apply.  */
7153char iconv();
7154
7155int main() {
7156iconv()
7157; return 0; }
7158EOF
7159if { (eval echo configure:7160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7160  rm -rf conftest*
7161  eval "ac_cv_lib_$ac_lib_var=yes"
7162else
7163  echo "configure: failed program was:" >&5
7164  cat conftest.$ac_ext >&5
7165  rm -rf conftest*
7166  eval "ac_cv_lib_$ac_lib_var=no"
7167fi
7168rm -f conftest*
7169LIBS="$ac_save_LIBS"
7170
7171fi
7172if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7173  echo "$ac_t""yes" 1>&6
7174  libiconv="-liconv"
7175else
7176  echo "$ac_t""no" 1>&6
7177fi
7178
7179    ac_save_LIBS="$LIBS"
7180    LIBS="$LIBS $libiconv"
7181
7182    for ac_func in iconv_open iconv_close iconv nl_langinfo
7183do
7184echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7185echo "configure:7186: checking for $ac_func" >&5
7186if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7187  echo $ac_n "(cached) $ac_c" 1>&6
7188else
7189  cat > conftest.$ac_ext <<EOF
7190#line 7191 "configure"
7191#include "confdefs.h"
7192/* System header to define __stub macros and hopefully few prototypes,
7193    which can conflict with char $ac_func(); below.  */
7194#include <assert.h>
7195/* Override any gcc2 internal prototype to avoid an error.  */
7196/* We use char because int might match the return type of a gcc2
7197    builtin and then its argument prototype would still apply.  */
7198char $ac_func();
7199
7200int main() {
7201
7202/* The GNU C library defines this for functions which it implements
7203    to always fail with ENOSYS.  Some functions are actually named
7204    something starting with __ and the normal name is an alias.  */
7205#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7206choke me
7207#else
7208$ac_func();
7209#endif
7210
7211; return 0; }
7212EOF
7213if { (eval echo configure:7214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7214  rm -rf conftest*
7215  eval "ac_cv_func_$ac_func=yes"
7216else
7217  echo "configure: failed program was:" >&5
7218  cat conftest.$ac_ext >&5
7219  rm -rf conftest*
7220  eval "ac_cv_func_$ac_func=no"
7221fi
7222rm -f conftest*
7223fi
7224
7225if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7226  echo "$ac_t""yes" 1>&6
7227    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7228  cat >> confdefs.h <<EOF
7229#define $ac_tr_func 1
7230EOF
7231 \
7232    ac_XPG2funcs=yes
7233else
7234  echo "$ac_t""no" 1>&6
7235ac_XPG2funcs=no
7236fi
7237done
7238
7239  
7240    LIBS="$ac_save_LIBS"
7241
7242    echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7243echo "configure:7244: checking for XPG2 wchar_t support" >&5
7244    if test x"$ac_has_iconv_h" = xyes &&
7245       test x"$ac_has_langinfo_h" = xyes &&
7246       test x"$ac_XPG2funcs" = xyes; then
7247      ac_XPG2_wchar_t=yes
7248    else
7249      ac_XPG2_wchar_t=no
7250    fi
7251    echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7252  
7253            if test x"$ac_isoC99_wchar_t" = xyes &&
7254       test x"$ac_XPG2_wchar_t" = xyes; then
7255       cat >> confdefs.h <<\EOF
7256#define _GLIBCPP_USE_WCHAR_T 1
7257EOF
7258
7259       enable_wchar_t=yes 
7260    fi
7261  fi
7262  echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7263echo "configure:7264: checking for enabled wchar_t specializations" >&5
7264  echo "$ac_t""$enable_wchar_t" 1>&6	
7265  
7266
7267if test "$enable_wchar_t" = yes; then
7268  GLIBCPP_TEST_WCHAR_T_TRUE=
7269  GLIBCPP_TEST_WCHAR_T_FALSE='#'
7270else
7271  GLIBCPP_TEST_WCHAR_T_TRUE='#'
7272  GLIBCPP_TEST_WCHAR_T_FALSE=
7273fi	
7274
7275      os_include_dir="os/bsd/netbsd"
7276      cat >> confdefs.h <<\EOF
7277#define HAVE_COPYSIGN 1
7278EOF
7279
7280      cat >> confdefs.h <<\EOF
7281#define HAVE_COPYSIGNF 1
7282EOF
7283
7284      cat >> confdefs.h <<\EOF
7285#define HAVE_FINITEF 1
7286EOF
7287
7288      cat >> confdefs.h <<\EOF
7289#define HAVE_FINITE 1
7290EOF
7291
7292      cat >> confdefs.h <<\EOF
7293#define HAVE_FREXPF 1
7294EOF
7295
7296      cat >> confdefs.h <<\EOF
7297#define HAVE_HYPOTF 1
7298EOF
7299
7300      cat >> confdefs.h <<\EOF
7301#define HAVE_ISINF 1
7302EOF
7303
7304      cat >> confdefs.h <<\EOF
7305#define HAVE_ISINFF 1
7306EOF
7307
7308      cat >> confdefs.h <<\EOF
7309#define HAVE_ISNAN 1
7310EOF
7311
7312      cat >> confdefs.h <<\EOF
7313#define HAVE_ISNANF 1
7314EOF
7315
7316      if test x"long_double_math_on_this_cpu" = x"yes"; then
7317        cat >> confdefs.h <<\EOF
7318#define HAVE_FINITEL 1
7319EOF
7320
7321        cat >> confdefs.h <<\EOF
7322#define HAVE_ISINFL 1
7323EOF
7324
7325        cat >> confdefs.h <<\EOF
7326#define HAVE_ISNANL 1
7327EOF
7328
7329      fi
7330      ;;
7331    *-freebsd*)
7332      # Check for available headers.
7333      for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
7334        machine/endian.h machine/param.h sys/machine.h sys/types.h \
7335        fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
7336        sys/time.h unistd.h
7337do
7338ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7339echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7340echo "configure:7341: checking for $ac_hdr" >&5
7341if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7342  echo $ac_n "(cached) $ac_c" 1>&6
7343else
7344  cat > conftest.$ac_ext <<EOF
7345#line 7346 "configure"
7346#include "confdefs.h"
7347#include <$ac_hdr>
7348EOF
7349ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7350{ (eval echo configure:7351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7351ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7352if test -z "$ac_err"; then
7353  rm -rf conftest*
7354  eval "ac_cv_header_$ac_safe=yes"
7355else
7356  echo "$ac_err" >&5
7357  echo "configure: failed program was:" >&5
7358  cat conftest.$ac_ext >&5
7359  rm -rf conftest*
7360  eval "ac_cv_header_$ac_safe=no"
7361fi
7362rm -f conftest*
7363fi
7364if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7365  echo "$ac_t""yes" 1>&6
7366    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7367  cat >> confdefs.h <<EOF
7368#define $ac_tr_hdr 1
7369EOF
7370 
7371else
7372  echo "$ac_t""no" 1>&6
7373fi
7374done
7375
7376      SECTION_FLAGS='-ffunction-sections -fdata-sections'
7377       
7378      
7379  # If we're not using GNU ld, then there's no point in even trying these
7380  # tests.  Check for that first.  We should have already tested for gld
7381  # by now (in libtool), but require it now just to be safe...
7382  test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7383  test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7384  
7385
7386  # The name set by libtool depends on the version of libtool.  Shame on us
7387  # for depending on an impl detail, but c'est la vie.  Older versions used
7388  # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7389  # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7390  # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7391  # set (hence we're using an older libtool), then set it.
7392  if test x${with_gnu_ld+set} != xset; then
7393    if test x${ac_cv_prog_gnu_ld+set} != xset; then
7394      # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7395      with_gnu_ld=no
7396    else
7397      with_gnu_ld=$ac_cv_prog_gnu_ld
7398    fi
7399  fi
7400
7401  # Start by getting the version number.  I think the libtool test already
7402  # does some of this, but throws away the result.
7403  
7404  ldver=`$LD --version 2>/dev/null | head -1 | \
7405         sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7406  
7407  glibcpp_gnu_ld_version=`echo $ldver | \
7408         $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7409
7410  # Set --gc-sections.
7411  if test "$with_gnu_ld" = "notbroken"; then
7412    # GNU ld it is!  Joy and bunny rabbits!
7413
7414    # All these tests are for C++; save the language and the compiler flags.
7415    # Need to do this so that g++ won't try to link in libstdc++
7416    ac_test_CFLAGS="${CFLAGS+set}"
7417    ac_save_CFLAGS="$CFLAGS"
7418    CFLAGS='-x c++  -Wl,--gc-sections'
7419
7420    # Check for -Wl,--gc-sections
7421    # XXX This test is broken at the moment, as symbols required for
7422    # linking are now in libsupc++ (not built yet.....). In addition, 
7423    # this test has cored on solaris in the past. In addition,
7424    # --gc-sections doesn't really work at the moment (keeps on discarding
7425    # used sections, first .eh_frame and now some of the glibc sections for
7426    # iconv). Bzzzzt. Thanks for playing, maybe next time.
7427    echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7428echo "configure:7429: checking for ld that supports -Wl,--gc-sections" >&5
7429    if test "$cross_compiling" = yes; then
7430  ac_sectionLDflags=yes
7431else
7432  cat > conftest.$ac_ext <<EOF
7433#line 7434 "configure"
7434#include "confdefs.h"
7435
7436     int main(void) 
7437     {
7438       try { throw 1; }
7439       catch (...) { };
7440       return 0;
7441     }
7442    
7443EOF
7444if { (eval echo configure:7445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7445then
7446  ac_sectionLDflags=yes
7447else
7448  echo "configure: failed program was:" >&5
7449  cat conftest.$ac_ext >&5
7450  rm -fr conftest*
7451  ac_sectionLDflags=no
7452fi
7453rm -fr conftest*
7454fi
7455
7456    if test "$ac_test_CFLAGS" = set; then
7457      CFLAGS="$ac_save_CFLAGS"
7458    else
7459      # this is the suspicious part
7460      CFLAGS=''
7461    fi
7462    if test "$ac_sectionLDflags" = "yes"; then
7463      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7464    fi
7465    echo "$ac_t""$ac_sectionLDflags" 1>&6
7466  fi
7467
7468  # Set linker optimization flags.
7469  if test x"$with_gnu_ld" = x"yes"; then
7470    OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7471  fi
7472
7473  
7474  
7475
7476      
7477    echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7478echo "configure:7479: checking for main in -lm" >&5
7479ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7480if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7481  echo $ac_n "(cached) $ac_c" 1>&6
7482else
7483  ac_save_LIBS="$LIBS"
7484LIBS="-lm  $LIBS"
7485cat > conftest.$ac_ext <<EOF
7486#line 7487 "configure"
7487#include "confdefs.h"
7488
7489int main() {
7490main()
7491; return 0; }
7492EOF
7493if { (eval echo configure:7494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7494  rm -rf conftest*
7495  eval "ac_cv_lib_$ac_lib_var=yes"
7496else
7497  echo "configure: failed program was:" >&5
7498  cat conftest.$ac_ext >&5
7499  rm -rf conftest*
7500  eval "ac_cv_lib_$ac_lib_var=no"
7501fi
7502rm -f conftest*
7503LIBS="$ac_save_LIBS"
7504
7505fi
7506if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7507  echo "$ac_t""yes" 1>&6
7508    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7509    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7510  cat >> confdefs.h <<EOF
7511#define $ac_tr_lib 1
7512EOF
7513
7514  LIBS="-lm $LIBS"
7515
7516else
7517  echo "$ac_t""no" 1>&6
7518fi
7519
7520  for ac_func in nan copysignf
7521do
7522echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7523echo "configure:7524: checking for $ac_func" >&5
7524if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7525  echo $ac_n "(cached) $ac_c" 1>&6
7526else
7527  cat > conftest.$ac_ext <<EOF
7528#line 7529 "configure"
7529#include "confdefs.h"
7530/* System header to define __stub macros and hopefully few prototypes,
7531    which can conflict with char $ac_func(); below.  */
7532#include <assert.h>
7533/* Override any gcc2 internal prototype to avoid an error.  */
7534/* We use char because int might match the return type of a gcc2
7535    builtin and then its argument prototype would still apply.  */
7536char $ac_func();
7537
7538int main() {
7539
7540/* The GNU C library defines this for functions which it implements
7541    to always fail with ENOSYS.  Some functions are actually named
7542    something starting with __ and the normal name is an alias.  */
7543#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7544choke me
7545#else
7546$ac_func();
7547#endif
7548
7549; return 0; }
7550EOF
7551if { (eval echo configure:7552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7552  rm -rf conftest*
7553  eval "ac_cv_func_$ac_func=yes"
7554else
7555  echo "configure: failed program was:" >&5
7556  cat conftest.$ac_ext >&5
7557  rm -rf conftest*
7558  eval "ac_cv_func_$ac_func=no"
7559fi
7560rm -f conftest*
7561fi
7562
7563if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7564  echo "$ac_t""yes" 1>&6
7565    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7566  cat >> confdefs.h <<EOF
7567#define $ac_tr_func 1
7568EOF
7569 
7570else
7571  echo "$ac_t""no" 1>&6
7572LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7573fi
7574done
7575
7576
7577    for ac_func in __signbit
7578do
7579echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7580echo "configure:7581: checking for $ac_func" >&5
7581if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7582  echo $ac_n "(cached) $ac_c" 1>&6
7583else
7584  cat > conftest.$ac_ext <<EOF
7585#line 7586 "configure"
7586#include "confdefs.h"
7587/* System header to define __stub macros and hopefully few prototypes,
7588    which can conflict with char $ac_func(); below.  */
7589#include <assert.h>
7590/* Override any gcc2 internal prototype to avoid an error.  */
7591/* We use char because int might match the return type of a gcc2
7592    builtin and then its argument prototype would still apply.  */
7593char $ac_func();
7594
7595int main() {
7596
7597/* The GNU C library defines this for functions which it implements
7598    to always fail with ENOSYS.  Some functions are actually named
7599    something starting with __ and the normal name is an alias.  */
7600#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7601choke me
7602#else
7603$ac_func();
7604#endif
7605
7606; return 0; }
7607EOF
7608if { (eval echo configure:7609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7609  rm -rf conftest*
7610  eval "ac_cv_func_$ac_func=yes"
7611else
7612  echo "configure: failed program was:" >&5
7613  cat conftest.$ac_ext >&5
7614  rm -rf conftest*
7615  eval "ac_cv_func_$ac_func=no"
7616fi
7617rm -f conftest*
7618fi
7619
7620if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7621  echo "$ac_t""yes" 1>&6
7622    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7623  cat >> confdefs.h <<EOF
7624#define $ac_tr_func 1
7625EOF
7626 
7627else
7628  echo "$ac_t""no" 1>&6
7629LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7630fi
7631done
7632
7633  for ac_func in __signbitf
7634do
7635echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7636echo "configure:7637: checking for $ac_func" >&5
7637if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7638  echo $ac_n "(cached) $ac_c" 1>&6
7639else
7640  cat > conftest.$ac_ext <<EOF
7641#line 7642 "configure"
7642#include "confdefs.h"
7643/* System header to define __stub macros and hopefully few prototypes,
7644    which can conflict with char $ac_func(); below.  */
7645#include <assert.h>
7646/* Override any gcc2 internal prototype to avoid an error.  */
7647/* We use char because int might match the return type of a gcc2
7648    builtin and then its argument prototype would still apply.  */
7649char $ac_func();
7650
7651int main() {
7652
7653/* The GNU C library defines this for functions which it implements
7654    to always fail with ENOSYS.  Some functions are actually named
7655    something starting with __ and the normal name is an alias.  */
7656#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7657choke me
7658#else
7659$ac_func();
7660#endif
7661
7662; return 0; }
7663EOF
7664if { (eval echo configure:7665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7665  rm -rf conftest*
7666  eval "ac_cv_func_$ac_func=yes"
7667else
7668  echo "configure: failed program was:" >&5
7669  cat conftest.$ac_ext >&5
7670  rm -rf conftest*
7671  eval "ac_cv_func_$ac_func=no"
7672fi
7673rm -f conftest*
7674fi
7675
7676if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7677  echo "$ac_t""yes" 1>&6
7678    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7679  cat >> confdefs.h <<EOF
7680#define $ac_tr_func 1
7681EOF
7682 
7683else
7684  echo "$ac_t""no" 1>&6
7685LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7686fi
7687done
7688
7689
7690          if test x$ac_cv_func_copysignl = x"yes"; then
7691    for ac_func in __signbitl
7692do
7693echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7694echo "configure:7695: checking for $ac_func" >&5
7695if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7696  echo $ac_n "(cached) $ac_c" 1>&6
7697else
7698  cat > conftest.$ac_ext <<EOF
7699#line 7700 "configure"
7700#include "confdefs.h"
7701/* System header to define __stub macros and hopefully few prototypes,
7702    which can conflict with char $ac_func(); below.  */
7703#include <assert.h>
7704/* Override any gcc2 internal prototype to avoid an error.  */
7705/* We use char because int might match the return type of a gcc2
7706    builtin and then its argument prototype would still apply.  */
7707char $ac_func();
7708
7709int main() {
7710
7711/* The GNU C library defines this for functions which it implements
7712    to always fail with ENOSYS.  Some functions are actually named
7713    something starting with __ and the normal name is an alias.  */
7714#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7715choke me
7716#else
7717$ac_func();
7718#endif
7719
7720; return 0; }
7721EOF
7722if { (eval echo configure:7723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7723  rm -rf conftest*
7724  eval "ac_cv_func_$ac_func=yes"
7725else
7726  echo "configure: failed program was:" >&5
7727  cat conftest.$ac_ext >&5
7728  rm -rf conftest*
7729  eval "ac_cv_func_$ac_func=no"
7730fi
7731rm -f conftest*
7732fi
7733
7734if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7735  echo "$ac_t""yes" 1>&6
7736    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7737  cat >> confdefs.h <<EOF
7738#define $ac_tr_func 1
7739EOF
7740 
7741else
7742  echo "$ac_t""no" 1>&6
7743LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7744fi
7745done
7746
7747  fi
7748
7749  if test -n "$LIBMATHOBJS"; then
7750    need_libmath=yes
7751  fi
7752  
7753  
7754
7755if test "$need_libmath" = yes; then
7756  GLIBCPP_BUILD_LIBMATH_TRUE=
7757  GLIBCPP_BUILD_LIBMATH_FALSE='#'
7758else
7759  GLIBCPP_BUILD_LIBMATH_TRUE='#'
7760  GLIBCPP_BUILD_LIBMATH_FALSE=
7761fi
7762
7763      
7764    enable_wchar_t=no
7765
7766      echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7767echo "configure:7768: checking for mbstate_t" >&5
7768  cat > conftest.$ac_ext <<EOF
7769#line 7770 "configure"
7770#include "confdefs.h"
7771#include <wchar.h>
7772int main() {
7773mbstate_t teststate;
7774; return 0; }
7775EOF
7776if { (eval echo configure:7777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7777  rm -rf conftest*
7778  have_mbstate_t=yes
7779else
7780  echo "configure: failed program was:" >&5
7781  cat conftest.$ac_ext >&5
7782  rm -rf conftest*
7783  have_mbstate_t=no
7784fi
7785rm -f conftest*
7786  echo "$ac_t""$have_mbstate_t" 1>&6
7787  if test x"$have_mbstate_t" = xyes; then
7788    cat >> confdefs.h <<\EOF
7789#define HAVE_MBSTATE_T 1
7790EOF
7791
7792  fi
7793
7794    for ac_hdr in wchar.h
7795do
7796ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7797echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7798echo "configure:7799: checking for $ac_hdr" >&5
7799if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7800  echo $ac_n "(cached) $ac_c" 1>&6
7801else
7802  cat > conftest.$ac_ext <<EOF
7803#line 7804 "configure"
7804#include "confdefs.h"
7805#include <$ac_hdr>
7806EOF
7807ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7808{ (eval echo configure:7809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7809ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7810if test -z "$ac_err"; then
7811  rm -rf conftest*
7812  eval "ac_cv_header_$ac_safe=yes"
7813else
7814  echo "$ac_err" >&5
7815  echo "configure: failed program was:" >&5
7816  cat conftest.$ac_ext >&5
7817  rm -rf conftest*
7818  eval "ac_cv_header_$ac_safe=no"
7819fi
7820rm -f conftest*
7821fi
7822if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7823  echo "$ac_t""yes" 1>&6
7824    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7825  cat >> confdefs.h <<EOF
7826#define $ac_tr_hdr 1
7827EOF
7828 ac_has_wchar_h=yes
7829else
7830  echo "$ac_t""no" 1>&6
7831ac_has_wchar_h=no
7832fi
7833done
7834
7835  for ac_hdr in wctype.h
7836do
7837ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7838echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7839echo "configure:7840: checking for $ac_hdr" >&5
7840if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7841  echo $ac_n "(cached) $ac_c" 1>&6
7842else
7843  cat > conftest.$ac_ext <<EOF
7844#line 7845 "configure"
7845#include "confdefs.h"
7846#include <$ac_hdr>
7847EOF
7848ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7849{ (eval echo configure:7850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7850ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7851if test -z "$ac_err"; then
7852  rm -rf conftest*
7853  eval "ac_cv_header_$ac_safe=yes"
7854else
7855  echo "$ac_err" >&5
7856  echo "configure: failed program was:" >&5
7857  cat conftest.$ac_ext >&5
7858  rm -rf conftest*
7859  eval "ac_cv_header_$ac_safe=no"
7860fi
7861rm -f conftest*
7862fi
7863if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7864  echo "$ac_t""yes" 1>&6
7865    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7866  cat >> confdefs.h <<EOF
7867#define $ac_tr_hdr 1
7868EOF
7869 ac_has_wctype_h=yes
7870else
7871  echo "$ac_t""no" 1>&6
7872ac_has_wctype_h=no
7873fi
7874done
7875
7876  
7877    if test x"$ac_has_wchar_h" = xyes &&
7878     test x"$ac_has_wctype_h" = xyes &&
7879     test x"$enable_c_mbchar" != xno; then
7880      
7881            echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7882echo "configure:7883: checking for WCHAR_MIN and WCHAR_MAX" >&5
7883    cat > conftest.$ac_ext <<EOF
7884#line 7885 "configure"
7885#include "confdefs.h"
7886#include <wchar.h>
7887int main() {
7888int i = WCHAR_MIN; int j = WCHAR_MAX;
7889; return 0; }
7890EOF
7891if { (eval echo configure:7892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7892  rm -rf conftest*
7893  has_wchar_minmax=yes
7894else
7895  echo "configure: failed program was:" >&5
7896  cat conftest.$ac_ext >&5
7897  rm -rf conftest*
7898  has_wchar_minmax=no
7899fi
7900rm -f conftest*
7901    echo "$ac_t""$has_wchar_minmax" 1>&6
7902    
7903            echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7904echo "configure:7905: checking for WEOF" >&5
7905    cat > conftest.$ac_ext <<EOF
7906#line 7907 "configure"
7907#include "confdefs.h"
7908
7909      #include <wchar.h>
7910      #include <stddef.h>
7911int main() {
7912wint_t i = WEOF;
7913; return 0; }
7914EOF
7915if { (eval echo configure:7916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7916  rm -rf conftest*
7917  has_weof=yes
7918else
7919  echo "configure: failed program was:" >&5
7920  cat conftest.$ac_ext >&5
7921  rm -rf conftest*
7922  has_weof=no
7923fi
7924rm -f conftest*
7925    echo "$ac_t""$has_weof" 1>&6
7926  
7927        ac_wfuncs=yes
7928    for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7929do
7930echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7931echo "configure:7932: checking for $ac_func" >&5
7932if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7933  echo $ac_n "(cached) $ac_c" 1>&6
7934else
7935  cat > conftest.$ac_ext <<EOF
7936#line 7937 "configure"
7937#include "confdefs.h"
7938/* System header to define __stub macros and hopefully few prototypes,
7939    which can conflict with char $ac_func(); below.  */
7940#include <assert.h>
7941/* Override any gcc2 internal prototype to avoid an error.  */
7942/* We use char because int might match the return type of a gcc2
7943    builtin and then its argument prototype would still apply.  */
7944char $ac_func();
7945
7946int main() {
7947
7948/* The GNU C library defines this for functions which it implements
7949    to always fail with ENOSYS.  Some functions are actually named
7950    something starting with __ and the normal name is an alias.  */
7951#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7952choke me
7953#else
7954$ac_func();
7955#endif
7956
7957; return 0; }
7958EOF
7959if { (eval echo configure:7960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7960  rm -rf conftest*
7961  eval "ac_cv_func_$ac_func=yes"
7962else
7963  echo "configure: failed program was:" >&5
7964  cat conftest.$ac_ext >&5
7965  rm -rf conftest*
7966  eval "ac_cv_func_$ac_func=no"
7967fi
7968rm -f conftest*
7969fi
7970
7971if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7972  echo "$ac_t""yes" 1>&6
7973    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7974  cat >> confdefs.h <<EOF
7975#define $ac_tr_func 1
7976EOF
7977 
7978else
7979  echo "$ac_t""no" 1>&6
7980\
7981    ac_wfuncs=no
7982fi
7983done
7984
7985  
7986        for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
7987    fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7988    vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7989    mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7990    wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7991    wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7992do
7993echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7994echo "configure:7995: checking for $ac_func" >&5
7995if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7996  echo $ac_n "(cached) $ac_c" 1>&6
7997else
7998  cat > conftest.$ac_ext <<EOF
7999#line 8000 "configure"
8000#include "confdefs.h"
8001/* System header to define __stub macros and hopefully few prototypes,
8002    which can conflict with char $ac_func(); below.  */
8003#include <assert.h>
8004/* Override any gcc2 internal prototype to avoid an error.  */
8005/* We use char because int might match the return type of a gcc2
8006    builtin and then its argument prototype would still apply.  */
8007char $ac_func();
8008
8009int main() {
8010
8011/* The GNU C library defines this for functions which it implements
8012    to always fail with ENOSYS.  Some functions are actually named
8013    something starting with __ and the normal name is an alias.  */
8014#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8015choke me
8016#else
8017$ac_func();
8018#endif
8019
8020; return 0; }
8021EOF
8022if { (eval echo configure:8023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8023  rm -rf conftest*
8024  eval "ac_cv_func_$ac_func=yes"
8025else
8026  echo "configure: failed program was:" >&5
8027  cat conftest.$ac_ext >&5
8028  rm -rf conftest*
8029  eval "ac_cv_func_$ac_func=no"
8030fi
8031rm -f conftest*
8032fi
8033
8034if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8035  echo "$ac_t""yes" 1>&6
8036    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8037  cat >> confdefs.h <<EOF
8038#define $ac_tr_func 1
8039EOF
8040 
8041else
8042  echo "$ac_t""no" 1>&6
8043\
8044    ac_wfuncs=no
8045fi
8046done
8047
8048
8049    echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8050echo "configure:8051: checking for ISO C99 wchar_t support" >&5
8051    if test x"$has_weof" = xyes &&
8052       test x"$has_wchar_minmax" = xyes &&
8053       test x"$ac_wfuncs" = xyes; then
8054      ac_isoC99_wchar_t=yes
8055    else
8056      ac_isoC99_wchar_t=no
8057    fi
8058    echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8059  
8060            ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8061echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8062echo "configure:8063: checking for iconv.h" >&5
8063if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8064  echo $ac_n "(cached) $ac_c" 1>&6
8065else
8066  cat > conftest.$ac_ext <<EOF
8067#line 8068 "configure"
8068#include "confdefs.h"
8069#include <iconv.h>
8070EOF
8071ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8072{ (eval echo configure:8073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8073ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8074if test -z "$ac_err"; then
8075  rm -rf conftest*
8076  eval "ac_cv_header_$ac_safe=yes"
8077else
8078  echo "$ac_err" >&5
8079  echo "configure: failed program was:" >&5
8080  cat conftest.$ac_ext >&5
8081  rm -rf conftest*
8082  eval "ac_cv_header_$ac_safe=no"
8083fi
8084rm -f conftest*
8085fi
8086if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8087  echo "$ac_t""yes" 1>&6
8088  ac_has_iconv_h=yes
8089else
8090  echo "$ac_t""no" 1>&6
8091ac_has_iconv_h=no
8092fi
8093
8094    ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8095echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8096echo "configure:8097: checking for langinfo.h" >&5
8097if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8098  echo $ac_n "(cached) $ac_c" 1>&6
8099else
8100  cat > conftest.$ac_ext <<EOF
8101#line 8102 "configure"
8102#include "confdefs.h"
8103#include <langinfo.h>
8104EOF
8105ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8106{ (eval echo configure:8107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8107ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8108if test -z "$ac_err"; then
8109  rm -rf conftest*
8110  eval "ac_cv_header_$ac_safe=yes"
8111else
8112  echo "$ac_err" >&5
8113  echo "configure: failed program was:" >&5
8114  cat conftest.$ac_ext >&5
8115  rm -rf conftest*
8116  eval "ac_cv_header_$ac_safe=no"
8117fi
8118rm -f conftest*
8119fi
8120if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8121  echo "$ac_t""yes" 1>&6
8122  ac_has_langinfo_h=yes
8123else
8124  echo "$ac_t""no" 1>&6
8125ac_has_langinfo_h=no
8126fi
8127
8128
8129        echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8130echo "configure:8131: checking for iconv in -liconv" >&5
8131ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8132if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8133  echo $ac_n "(cached) $ac_c" 1>&6
8134else
8135  ac_save_LIBS="$LIBS"
8136LIBS="-liconv  $LIBS"
8137cat > conftest.$ac_ext <<EOF
8138#line 8139 "configure"
8139#include "confdefs.h"
8140/* Override any gcc2 internal prototype to avoid an error.  */
8141/* We use char because int might match the return type of a gcc2
8142    builtin and then its argument prototype would still apply.  */
8143char iconv();
8144
8145int main() {
8146iconv()
8147; return 0; }
8148EOF
8149if { (eval echo configure:8150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8150  rm -rf conftest*
8151  eval "ac_cv_lib_$ac_lib_var=yes"
8152else
8153  echo "configure: failed program was:" >&5
8154  cat conftest.$ac_ext >&5
8155  rm -rf conftest*
8156  eval "ac_cv_lib_$ac_lib_var=no"
8157fi
8158rm -f conftest*
8159LIBS="$ac_save_LIBS"
8160
8161fi
8162if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8163  echo "$ac_t""yes" 1>&6
8164  libiconv="-liconv"
8165else
8166  echo "$ac_t""no" 1>&6
8167fi
8168
8169    ac_save_LIBS="$LIBS"
8170    LIBS="$LIBS $libiconv"
8171
8172    for ac_func in iconv_open iconv_close iconv nl_langinfo
8173do
8174echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8175echo "configure:8176: checking for $ac_func" >&5
8176if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8177  echo $ac_n "(cached) $ac_c" 1>&6
8178else
8179  cat > conftest.$ac_ext <<EOF
8180#line 8181 "configure"
8181#include "confdefs.h"
8182/* System header to define __stub macros and hopefully few prototypes,
8183    which can conflict with char $ac_func(); below.  */
8184#include <assert.h>
8185/* Override any gcc2 internal prototype to avoid an error.  */
8186/* We use char because int might match the return type of a gcc2
8187    builtin and then its argument prototype would still apply.  */
8188char $ac_func();
8189
8190int main() {
8191
8192/* The GNU C library defines this for functions which it implements
8193    to always fail with ENOSYS.  Some functions are actually named
8194    something starting with __ and the normal name is an alias.  */
8195#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8196choke me
8197#else
8198$ac_func();
8199#endif
8200
8201; return 0; }
8202EOF
8203if { (eval echo configure:8204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8204  rm -rf conftest*
8205  eval "ac_cv_func_$ac_func=yes"
8206else
8207  echo "configure: failed program was:" >&5
8208  cat conftest.$ac_ext >&5
8209  rm -rf conftest*
8210  eval "ac_cv_func_$ac_func=no"
8211fi
8212rm -f conftest*
8213fi
8214
8215if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8216  echo "$ac_t""yes" 1>&6
8217    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8218  cat >> confdefs.h <<EOF
8219#define $ac_tr_func 1
8220EOF
8221 \
8222    ac_XPG2funcs=yes
8223else
8224  echo "$ac_t""no" 1>&6
8225ac_XPG2funcs=no
8226fi
8227done
8228
8229  
8230    LIBS="$ac_save_LIBS"
8231
8232    echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8233echo "configure:8234: checking for XPG2 wchar_t support" >&5
8234    if test x"$ac_has_iconv_h" = xyes &&
8235       test x"$ac_has_langinfo_h" = xyes &&
8236       test x"$ac_XPG2funcs" = xyes; then
8237      ac_XPG2_wchar_t=yes
8238    else
8239      ac_XPG2_wchar_t=no
8240    fi
8241    echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8242  
8243            if test x"$ac_isoC99_wchar_t" = xyes &&
8244       test x"$ac_XPG2_wchar_t" = xyes; then
8245       cat >> confdefs.h <<\EOF
8246#define _GLIBCPP_USE_WCHAR_T 1
8247EOF
8248
8249       enable_wchar_t=yes 
8250    fi
8251  fi
8252  echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8253echo "configure:8254: checking for enabled wchar_t specializations" >&5
8254  echo "$ac_t""$enable_wchar_t" 1>&6	
8255  
8256
8257if test "$enable_wchar_t" = yes; then
8258  GLIBCPP_TEST_WCHAR_T_TRUE=
8259  GLIBCPP_TEST_WCHAR_T_FALSE='#'
8260else
8261  GLIBCPP_TEST_WCHAR_T_TRUE='#'
8262  GLIBCPP_TEST_WCHAR_T_FALSE=
8263fi	
8264
8265      os_include_dir="os/bsd/freebsd"
8266      cat >> confdefs.h <<\EOF
8267#define HAVE_LC_MESSAGES 1
8268EOF
8269
8270      cat >> confdefs.h <<\EOF
8271#define HAVE_DRAND48 1
8272EOF
8273
8274      cat >> confdefs.h <<\EOF
8275#define HAVE_GETPAGESIZE 1
8276EOF
8277
8278      cat >> confdefs.h <<\EOF
8279#define HAVE_SETENV 1
8280EOF
8281
8282      cat >> confdefs.h <<\EOF
8283#define HAVE_SIGSETJMP 1
8284EOF
8285
8286      cat >> confdefs.h <<\EOF
8287#define HAVE_COPYSIGN 1
8288EOF
8289
8290      cat >> confdefs.h <<\EOF
8291#define HAVE_COPYSIGNF 1
8292EOF
8293
8294      cat >> confdefs.h <<\EOF
8295#define HAVE_FINITEF 1
8296EOF
8297
8298      cat >> confdefs.h <<\EOF
8299#define HAVE_FINITE 1
8300EOF
8301
8302      cat >> confdefs.h <<\EOF
8303#define HAVE_FREXPF 1
8304EOF
8305
8306      cat >> confdefs.h <<\EOF
8307#define HAVE_HYPOT 1
8308EOF
8309
8310      cat >> confdefs.h <<\EOF
8311#define HAVE_HYPOTF 1
8312EOF
8313
8314      cat >> confdefs.h <<\EOF
8315#define HAVE_ISINF 1
8316EOF
8317
8318      cat >> confdefs.h <<\EOF
8319#define HAVE_ISNAN 1
8320EOF
8321
8322      cat >> confdefs.h <<\EOF
8323#define HAVE_ISNANF 1
8324EOF
8325
8326      if test x"long_double_math_on_this_cpu" = x"yes"; then
8327        cat >> confdefs.h <<\EOF
8328#define HAVE_FINITEL 1
8329EOF
8330
8331        cat >> confdefs.h <<\EOF
8332#define HAVE_ISINFL 1
8333EOF
8334
8335        cat >> confdefs.h <<\EOF
8336#define HAVE_ISNANL 1
8337EOF
8338
8339      fi
8340      ;;
8341    *-mingw32*)
8342      for ac_hdr in sys/types.h locale.h float.h
8343do
8344ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8345echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8346echo "configure:8347: checking for $ac_hdr" >&5
8347if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8348  echo $ac_n "(cached) $ac_c" 1>&6
8349else
8350  cat > conftest.$ac_ext <<EOF
8351#line 8352 "configure"
8352#include "confdefs.h"
8353#include <$ac_hdr>
8354EOF
8355ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8356{ (eval echo configure:8357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8357ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8358if test -z "$ac_err"; then
8359  rm -rf conftest*
8360  eval "ac_cv_header_$ac_safe=yes"
8361else
8362  echo "$ac_err" >&5
8363  echo "configure: failed program was:" >&5
8364  cat conftest.$ac_ext >&5
8365  rm -rf conftest*
8366  eval "ac_cv_header_$ac_safe=no"
8367fi
8368rm -f conftest*
8369fi
8370if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8371  echo "$ac_t""yes" 1>&6
8372    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8373  cat >> confdefs.h <<EOF
8374#define $ac_tr_hdr 1
8375EOF
8376 
8377else
8378  echo "$ac_t""no" 1>&6
8379fi
8380done
8381
8382      
8383  # If we're not using GNU ld, then there's no point in even trying these
8384  # tests.  Check for that first.  We should have already tested for gld
8385  # by now (in libtool), but require it now just to be safe...
8386  test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8387  test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8388  
8389
8390  # The name set by libtool depends on the version of libtool.  Shame on us
8391  # for depending on an impl detail, but c'est la vie.  Older versions used
8392  # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8393  # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8394  # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
8395  # set (hence we're using an older libtool), then set it.
8396  if test x${with_gnu_ld+set} != xset; then
8397    if test x${ac_cv_prog_gnu_ld+set} != xset; then
8398      # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
8399      with_gnu_ld=no
8400    else
8401      with_gnu_ld=$ac_cv_prog_gnu_ld
8402    fi
8403  fi
8404
8405  # Start by getting the version number.  I think the libtool test already
8406  # does some of this, but throws away the result.
8407  
8408  ldver=`$LD --version 2>/dev/null | head -1 | \
8409         sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8410  
8411  glibcpp_gnu_ld_version=`echo $ldver | \
8412         $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8413
8414  # Set --gc-sections.
8415  if test "$with_gnu_ld" = "notbroken"; then
8416    # GNU ld it is!  Joy and bunny rabbits!
8417
8418    # All these tests are for C++; save the language and the compiler flags.
8419    # Need to do this so that g++ won't try to link in libstdc++
8420    ac_test_CFLAGS="${CFLAGS+set}"
8421    ac_save_CFLAGS="$CFLAGS"
8422    CFLAGS='-x c++  -Wl,--gc-sections'
8423
8424    # Check for -Wl,--gc-sections
8425    # XXX This test is broken at the moment, as symbols required for
8426    # linking are now in libsupc++ (not built yet.....). In addition, 
8427    # this test has cored on solaris in the past. In addition,
8428    # --gc-sections doesn't really work at the moment (keeps on discarding
8429    # used sections, first .eh_frame and now some of the glibc sections for
8430    # iconv). Bzzzzt. Thanks for playing, maybe next time.
8431    echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8432echo "configure:8433: checking for ld that supports -Wl,--gc-sections" >&5
8433    if test "$cross_compiling" = yes; then
8434  ac_sectionLDflags=yes
8435else
8436  cat > conftest.$ac_ext <<EOF
8437#line 8438 "configure"
8438#include "confdefs.h"
8439
8440     int main(void) 
8441     {
8442       try { throw 1; }
8443       catch (...) { };
8444       return 0;
8445     }
8446    
8447EOF
8448if { (eval echo configure:8449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8449then
8450  ac_sectionLDflags=yes
8451else
8452  echo "configure: failed program was:" >&5
8453  cat conftest.$ac_ext >&5
8454  rm -fr conftest*
8455  ac_sectionLDflags=no
8456fi
8457rm -fr conftest*
8458fi
8459
8460    if test "$ac_test_CFLAGS" = set; then
8461      CFLAGS="$ac_save_CFLAGS"
8462    else
8463      # this is the suspicious part
8464      CFLAGS=''
8465    fi
8466    if test "$ac_sectionLDflags" = "yes"; then
8467      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8468    fi
8469    echo "$ac_t""$ac_sectionLDflags" 1>&6
8470  fi
8471
8472  # Set linker optimization flags.
8473  if test x"$with_gnu_ld" = x"yes"; then
8474    OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8475  fi
8476
8477  
8478  
8479
8480      
8481    echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8482echo "configure:8483: checking for main in -lm" >&5
8483ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8484if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8485  echo $ac_n "(cached) $ac_c" 1>&6
8486else
8487  ac_save_LIBS="$LIBS"
8488LIBS="-lm  $LIBS"
8489cat > conftest.$ac_ext <<EOF
8490#line 8491 "configure"
8491#include "confdefs.h"
8492
8493int main() {
8494main()
8495; return 0; }
8496EOF
8497if { (eval echo configure:8498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8498  rm -rf conftest*
8499  eval "ac_cv_lib_$ac_lib_var=yes"
8500else
8501  echo "configure: failed program was:" >&5
8502  cat conftest.$ac_ext >&5
8503  rm -rf conftest*
8504  eval "ac_cv_lib_$ac_lib_var=no"
8505fi
8506rm -f conftest*
8507LIBS="$ac_save_LIBS"
8508
8509fi
8510if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8511  echo "$ac_t""yes" 1>&6
8512    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8513    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8514  cat >> confdefs.h <<EOF
8515#define $ac_tr_lib 1
8516EOF
8517
8518  LIBS="-lm $LIBS"
8519
8520else
8521  echo "$ac_t""no" 1>&6
8522fi
8523
8524  for ac_func in nan copysignf
8525do
8526echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8527echo "configure:8528: checking for $ac_func" >&5
8528if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8529  echo $ac_n "(cached) $ac_c" 1>&6
8530else
8531  cat > conftest.$ac_ext <<EOF
8532#line 8533 "configure"
8533#include "confdefs.h"
8534/* System header to define __stub macros and hopefully few prototypes,
8535    which can conflict with char $ac_func(); below.  */
8536#include <assert.h>
8537/* Override any gcc2 internal prototype to avoid an error.  */
8538/* We use char because int might match the return type of a gcc2
8539    builtin and then its argument prototype would still apply.  */
8540char $ac_func();
8541
8542int main() {
8543
8544/* The GNU C library defines this for functions which it implements
8545    to always fail with ENOSYS.  Some functions are actually named
8546    something starting with __ and the normal name is an alias.  */
8547#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8548choke me
8549#else
8550$ac_func();
8551#endif
8552
8553; return 0; }
8554EOF
8555if { (eval echo configure:8556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8556  rm -rf conftest*
8557  eval "ac_cv_func_$ac_func=yes"
8558else
8559  echo "configure: failed program was:" >&5
8560  cat conftest.$ac_ext >&5
8561  rm -rf conftest*
8562  eval "ac_cv_func_$ac_func=no"
8563fi
8564rm -f conftest*
8565fi
8566
8567if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8568  echo "$ac_t""yes" 1>&6
8569    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8570  cat >> confdefs.h <<EOF
8571#define $ac_tr_func 1
8572EOF
8573 
8574else
8575  echo "$ac_t""no" 1>&6
8576LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8577fi
8578done
8579
8580
8581    for ac_func in __signbit
8582do
8583echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8584echo "configure:8585: checking for $ac_func" >&5
8585if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8586  echo $ac_n "(cached) $ac_c" 1>&6
8587else
8588  cat > conftest.$ac_ext <<EOF
8589#line 8590 "configure"
8590#include "confdefs.h"
8591/* System header to define __stub macros and hopefully few prototypes,
8592    which can conflict with char $ac_func(); below.  */
8593#include <assert.h>
8594/* Override any gcc2 internal prototype to avoid an error.  */
8595/* We use char because int might match the return type of a gcc2
8596    builtin and then its argument prototype would still apply.  */
8597char $ac_func();
8598
8599int main() {
8600
8601/* The GNU C library defines this for functions which it implements
8602    to always fail with ENOSYS.  Some functions are actually named
8603    something starting with __ and the normal name is an alias.  */
8604#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8605choke me
8606#else
8607$ac_func();
8608#endif
8609
8610; return 0; }
8611EOF
8612if { (eval echo configure:8613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8613  rm -rf conftest*
8614  eval "ac_cv_func_$ac_func=yes"
8615else
8616  echo "configure: failed program was:" >&5
8617  cat conftest.$ac_ext >&5
8618  rm -rf conftest*
8619  eval "ac_cv_func_$ac_func=no"
8620fi
8621rm -f conftest*
8622fi
8623
8624if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8625  echo "$ac_t""yes" 1>&6
8626    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8627  cat >> confdefs.h <<EOF
8628#define $ac_tr_func 1
8629EOF
8630 
8631else
8632  echo "$ac_t""no" 1>&6
8633LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8634fi
8635done
8636
8637  for ac_func in __signbitf
8638do
8639echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8640echo "configure:8641: checking for $ac_func" >&5
8641if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8642  echo $ac_n "(cached) $ac_c" 1>&6
8643else
8644  cat > conftest.$ac_ext <<EOF
8645#line 8646 "configure"
8646#include "confdefs.h"
8647/* System header to define __stub macros and hopefully few prototypes,
8648    which can conflict with char $ac_func(); below.  */
8649#include <assert.h>
8650/* Override any gcc2 internal prototype to avoid an error.  */
8651/* We use char because int might match the return type of a gcc2
8652    builtin and then its argument prototype would still apply.  */
8653char $ac_func();
8654
8655int main() {
8656
8657/* The GNU C library defines this for functions which it implements
8658    to always fail with ENOSYS.  Some functions are actually named
8659    something starting with __ and the normal name is an alias.  */
8660#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8661choke me
8662#else
8663$ac_func();
8664#endif
8665
8666; return 0; }
8667EOF
8668if { (eval echo configure:8669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8669  rm -rf conftest*
8670  eval "ac_cv_func_$ac_func=yes"
8671else
8672  echo "configure: failed program was:" >&5
8673  cat conftest.$ac_ext >&5
8674  rm -rf conftest*
8675  eval "ac_cv_func_$ac_func=no"
8676fi
8677rm -f conftest*
8678fi
8679
8680if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8681  echo "$ac_t""yes" 1>&6
8682    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8683  cat >> confdefs.h <<EOF
8684#define $ac_tr_func 1
8685EOF
8686 
8687else
8688  echo "$ac_t""no" 1>&6
8689LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8690fi
8691done
8692
8693
8694          if test x$ac_cv_func_copysignl = x"yes"; then
8695    for ac_func in __signbitl
8696do
8697echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8698echo "configure:8699: checking for $ac_func" >&5
8699if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8700  echo $ac_n "(cached) $ac_c" 1>&6
8701else
8702  cat > conftest.$ac_ext <<EOF
8703#line 8704 "configure"
8704#include "confdefs.h"
8705/* System header to define __stub macros and hopefully few prototypes,
8706    which can conflict with char $ac_func(); below.  */
8707#include <assert.h>
8708/* Override any gcc2 internal prototype to avoid an error.  */
8709/* We use char because int might match the return type of a gcc2
8710    builtin and then its argument prototype would still apply.  */
8711char $ac_func();
8712
8713int main() {
8714
8715/* The GNU C library defines this for functions which it implements
8716    to always fail with ENOSYS.  Some functions are actually named
8717    something starting with __ and the normal name is an alias.  */
8718#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8719choke me
8720#else
8721$ac_func();
8722#endif
8723
8724; return 0; }
8725EOF
8726if { (eval echo configure:8727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8727  rm -rf conftest*
8728  eval "ac_cv_func_$ac_func=yes"
8729else
8730  echo "configure: failed program was:" >&5
8731  cat conftest.$ac_ext >&5
8732  rm -rf conftest*
8733  eval "ac_cv_func_$ac_func=no"
8734fi
8735rm -f conftest*
8736fi
8737
8738if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8739  echo "$ac_t""yes" 1>&6
8740    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8741  cat >> confdefs.h <<EOF
8742#define $ac_tr_func 1
8743EOF
8744 
8745else
8746  echo "$ac_t""no" 1>&6
8747LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8748fi
8749done
8750
8751  fi
8752
8753  if test -n "$LIBMATHOBJS"; then
8754    need_libmath=yes
8755  fi
8756  
8757  
8758
8759if test "$need_libmath" = yes; then
8760  GLIBCPP_BUILD_LIBMATH_TRUE=
8761  GLIBCPP_BUILD_LIBMATH_FALSE='#'
8762else
8763  GLIBCPP_BUILD_LIBMATH_TRUE='#'
8764  GLIBCPP_BUILD_LIBMATH_FALSE=
8765fi
8766
8767      
8768    enable_wchar_t=no
8769
8770      echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8771echo "configure:8772: checking for mbstate_t" >&5
8772  cat > conftest.$ac_ext <<EOF
8773#line 8774 "configure"
8774#include "confdefs.h"
8775#include <wchar.h>
8776int main() {
8777mbstate_t teststate;
8778; return 0; }
8779EOF
8780if { (eval echo configure:8781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8781  rm -rf conftest*
8782  have_mbstate_t=yes
8783else
8784  echo "configure: failed program was:" >&5
8785  cat conftest.$ac_ext >&5
8786  rm -rf conftest*
8787  have_mbstate_t=no
8788fi
8789rm -f conftest*
8790  echo "$ac_t""$have_mbstate_t" 1>&6
8791  if test x"$have_mbstate_t" = xyes; then
8792    cat >> confdefs.h <<\EOF
8793#define HAVE_MBSTATE_T 1
8794EOF
8795
8796  fi
8797
8798    for ac_hdr in wchar.h
8799do
8800ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8801echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8802echo "configure:8803: checking for $ac_hdr" >&5
8803if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8804  echo $ac_n "(cached) $ac_c" 1>&6
8805else
8806  cat > conftest.$ac_ext <<EOF
8807#line 8808 "configure"
8808#include "confdefs.h"
8809#include <$ac_hdr>
8810EOF
8811ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8812{ (eval echo configure:8813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8813ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8814if test -z "$ac_err"; then
8815  rm -rf conftest*
8816  eval "ac_cv_header_$ac_safe=yes"
8817else
8818  echo "$ac_err" >&5
8819  echo "configure: failed program was:" >&5
8820  cat conftest.$ac_ext >&5
8821  rm -rf conftest*
8822  eval "ac_cv_header_$ac_safe=no"
8823fi
8824rm -f conftest*
8825fi
8826if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8827  echo "$ac_t""yes" 1>&6
8828    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8829  cat >> confdefs.h <<EOF
8830#define $ac_tr_hdr 1
8831EOF
8832 ac_has_wchar_h=yes
8833else
8834  echo "$ac_t""no" 1>&6
8835ac_has_wchar_h=no
8836fi
8837done
8838
8839  for ac_hdr in wctype.h
8840do
8841ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8842echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8843echo "configure:8844: checking for $ac_hdr" >&5
8844if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8845  echo $ac_n "(cached) $ac_c" 1>&6
8846else
8847  cat > conftest.$ac_ext <<EOF
8848#line 8849 "configure"
8849#include "confdefs.h"
8850#include <$ac_hdr>
8851EOF
8852ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8853{ (eval echo configure:8854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8854ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8855if test -z "$ac_err"; then
8856  rm -rf conftest*
8857  eval "ac_cv_header_$ac_safe=yes"
8858else
8859  echo "$ac_err" >&5
8860  echo "configure: failed program was:" >&5
8861  cat conftest.$ac_ext >&5
8862  rm -rf conftest*
8863  eval "ac_cv_header_$ac_safe=no"
8864fi
8865rm -f conftest*
8866fi
8867if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8868  echo "$ac_t""yes" 1>&6
8869    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8870  cat >> confdefs.h <<EOF
8871#define $ac_tr_hdr 1
8872EOF
8873 ac_has_wctype_h=yes
8874else
8875  echo "$ac_t""no" 1>&6
8876ac_has_wctype_h=no
8877fi
8878done
8879
8880  
8881    if test x"$ac_has_wchar_h" = xyes &&
8882     test x"$ac_has_wctype_h" = xyes &&
8883     test x"$enable_c_mbchar" != xno; then
8884      
8885            echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8886echo "configure:8887: checking for WCHAR_MIN and WCHAR_MAX" >&5
8887    cat > conftest.$ac_ext <<EOF
8888#line 8889 "configure"
8889#include "confdefs.h"
8890#include <wchar.h>
8891int main() {
8892int i = WCHAR_MIN; int j = WCHAR_MAX;
8893; return 0; }
8894EOF
8895if { (eval echo configure:8896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8896  rm -rf conftest*
8897  has_wchar_minmax=yes
8898else
8899  echo "configure: failed program was:" >&5
8900  cat conftest.$ac_ext >&5
8901  rm -rf conftest*
8902  has_wchar_minmax=no
8903fi
8904rm -f conftest*
8905    echo "$ac_t""$has_wchar_minmax" 1>&6
8906    
8907            echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8908echo "configure:8909: checking for WEOF" >&5
8909    cat > conftest.$ac_ext <<EOF
8910#line 8911 "configure"
8911#include "confdefs.h"
8912
8913      #include <wchar.h>
8914      #include <stddef.h>
8915int main() {
8916wint_t i = WEOF;
8917; return 0; }
8918EOF
8919if { (eval echo configure:8920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8920  rm -rf conftest*
8921  has_weof=yes
8922else
8923  echo "configure: failed program was:" >&5
8924  cat conftest.$ac_ext >&5
8925  rm -rf conftest*
8926  has_weof=no
8927fi
8928rm -f conftest*
8929    echo "$ac_t""$has_weof" 1>&6
8930  
8931        ac_wfuncs=yes
8932    for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8933do
8934echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8935echo "configure:8936: checking for $ac_func" >&5
8936if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8937  echo $ac_n "(cached) $ac_c" 1>&6
8938else
8939  cat > conftest.$ac_ext <<EOF
8940#line 8941 "configure"
8941#include "confdefs.h"
8942/* System header to define __stub macros and hopefully few prototypes,
8943    which can conflict with char $ac_func(); below.  */
8944#include <assert.h>
8945/* Override any gcc2 internal prototype to avoid an error.  */
8946/* We use char because int might match the return type of a gcc2
8947    builtin and then its argument prototype would still apply.  */
8948char $ac_func();
8949
8950int main() {
8951
8952/* The GNU C library defines this for functions which it implements
8953    to always fail with ENOSYS.  Some functions are actually named
8954    something starting with __ and the normal name is an alias.  */
8955#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8956choke me
8957#else
8958$ac_func();
8959#endif
8960
8961; return 0; }
8962EOF
8963if { (eval echo configure:8964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8964  rm -rf conftest*
8965  eval "ac_cv_func_$ac_func=yes"
8966else
8967  echo "configure: failed program was:" >&5
8968  cat conftest.$ac_ext >&5
8969  rm -rf conftest*
8970  eval "ac_cv_func_$ac_func=no"
8971fi
8972rm -f conftest*
8973fi
8974
8975if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8976  echo "$ac_t""yes" 1>&6
8977    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8978  cat >> confdefs.h <<EOF
8979#define $ac_tr_func 1
8980EOF
8981 
8982else
8983  echo "$ac_t""no" 1>&6
8984\
8985    ac_wfuncs=no
8986fi
8987done
8988
8989  
8990        for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
8991    fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8992    vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8993    mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8994    wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8995    wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8996do
8997echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8998echo "configure:8999: checking for $ac_func" >&5
8999if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9000  echo $ac_n "(cached) $ac_c" 1>&6
9001else
9002  cat > conftest.$ac_ext <<EOF
9003#line 9004 "configure"
9004#include "confdefs.h"
9005/* System header to define __stub macros and hopefully few prototypes,
9006    which can conflict with char $ac_func(); below.  */
9007#include <assert.h>
9008/* Override any gcc2 internal prototype to avoid an error.  */
9009/* We use char because int might match the return type of a gcc2
9010    builtin and then its argument prototype would still apply.  */
9011char $ac_func();
9012
9013int main() {
9014
9015/* The GNU C library defines this for functions which it implements
9016    to always fail with ENOSYS.  Some functions are actually named
9017    something starting with __ and the normal name is an alias.  */
9018#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9019choke me
9020#else
9021$ac_func();
9022#endif
9023
9024; return 0; }
9025EOF
9026if { (eval echo configure:9027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9027  rm -rf conftest*
9028  eval "ac_cv_func_$ac_func=yes"
9029else
9030  echo "configure: failed program was:" >&5
9031  cat conftest.$ac_ext >&5
9032  rm -rf conftest*
9033  eval "ac_cv_func_$ac_func=no"
9034fi
9035rm -f conftest*
9036fi
9037
9038if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9039  echo "$ac_t""yes" 1>&6
9040    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9041  cat >> confdefs.h <<EOF
9042#define $ac_tr_func 1
9043EOF
9044 
9045else
9046  echo "$ac_t""no" 1>&6
9047\
9048    ac_wfuncs=no
9049fi
9050done
9051
9052
9053    echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9054echo "configure:9055: checking for ISO C99 wchar_t support" >&5
9055    if test x"$has_weof" = xyes &&
9056       test x"$has_wchar_minmax" = xyes &&
9057       test x"$ac_wfuncs" = xyes; then
9058      ac_isoC99_wchar_t=yes
9059    else
9060      ac_isoC99_wchar_t=no
9061    fi
9062    echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9063  
9064            ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9065echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9066echo "configure:9067: checking for iconv.h" >&5
9067if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9068  echo $ac_n "(cached) $ac_c" 1>&6
9069else
9070  cat > conftest.$ac_ext <<EOF
9071#line 9072 "configure"
9072#include "confdefs.h"
9073#include <iconv.h>
9074EOF
9075ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9076{ (eval echo configure:9077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9077ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9078if test -z "$ac_err"; then
9079  rm -rf conftest*
9080  eval "ac_cv_header_$ac_safe=yes"
9081else
9082  echo "$ac_err" >&5
9083  echo "configure: failed program was:" >&5
9084  cat conftest.$ac_ext >&5
9085  rm -rf conftest*
9086  eval "ac_cv_header_$ac_safe=no"
9087fi
9088rm -f conftest*
9089fi
9090if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9091  echo "$ac_t""yes" 1>&6
9092  ac_has_iconv_h=yes
9093else
9094  echo "$ac_t""no" 1>&6
9095ac_has_iconv_h=no
9096fi
9097
9098    ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9099echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9100echo "configure:9101: checking for langinfo.h" >&5
9101if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9102  echo $ac_n "(cached) $ac_c" 1>&6
9103else
9104  cat > conftest.$ac_ext <<EOF
9105#line 9106 "configure"
9106#include "confdefs.h"
9107#include <langinfo.h>
9108EOF
9109ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9110{ (eval echo configure:9111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9111ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9112if test -z "$ac_err"; then
9113  rm -rf conftest*
9114  eval "ac_cv_header_$ac_safe=yes"
9115else
9116  echo "$ac_err" >&5
9117  echo "configure: failed program was:" >&5
9118  cat conftest.$ac_ext >&5
9119  rm -rf conftest*
9120  eval "ac_cv_header_$ac_safe=no"
9121fi
9122rm -f conftest*
9123fi
9124if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9125  echo "$ac_t""yes" 1>&6
9126  ac_has_langinfo_h=yes
9127else
9128  echo "$ac_t""no" 1>&6
9129ac_has_langinfo_h=no
9130fi
9131
9132
9133        echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9134echo "configure:9135: checking for iconv in -liconv" >&5
9135ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9136if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9137  echo $ac_n "(cached) $ac_c" 1>&6
9138else
9139  ac_save_LIBS="$LIBS"
9140LIBS="-liconv  $LIBS"
9141cat > conftest.$ac_ext <<EOF
9142#line 9143 "configure"
9143#include "confdefs.h"
9144/* Override any gcc2 internal prototype to avoid an error.  */
9145/* We use char because int might match the return type of a gcc2
9146    builtin and then its argument prototype would still apply.  */
9147char iconv();
9148
9149int main() {
9150iconv()
9151; return 0; }
9152EOF
9153if { (eval echo configure:9154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9154  rm -rf conftest*
9155  eval "ac_cv_lib_$ac_lib_var=yes"
9156else
9157  echo "configure: failed program was:" >&5
9158  cat conftest.$ac_ext >&5
9159  rm -rf conftest*
9160  eval "ac_cv_lib_$ac_lib_var=no"
9161fi
9162rm -f conftest*
9163LIBS="$ac_save_LIBS"
9164
9165fi
9166if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9167  echo "$ac_t""yes" 1>&6
9168  libiconv="-liconv"
9169else
9170  echo "$ac_t""no" 1>&6
9171fi
9172
9173    ac_save_LIBS="$LIBS"
9174    LIBS="$LIBS $libiconv"
9175
9176    for ac_func in iconv_open iconv_close iconv nl_langinfo
9177do
9178echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9179echo "configure:9180: checking for $ac_func" >&5
9180if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9181  echo $ac_n "(cached) $ac_c" 1>&6
9182else
9183  cat > conftest.$ac_ext <<EOF
9184#line 9185 "configure"
9185#include "confdefs.h"
9186/* System header to define __stub macros and hopefully few prototypes,
9187    which can conflict with char $ac_func(); below.  */
9188#include <assert.h>
9189/* Override any gcc2 internal prototype to avoid an error.  */
9190/* We use char because int might match the return type of a gcc2
9191    builtin and then its argument prototype would still apply.  */
9192char $ac_func();
9193
9194int main() {
9195
9196/* The GNU C library defines this for functions which it implements
9197    to always fail with ENOSYS.  Some functions are actually named
9198    something starting with __ and the normal name is an alias.  */
9199#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9200choke me
9201#else
9202$ac_func();
9203#endif
9204
9205; return 0; }
9206EOF
9207if { (eval echo configure:9208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9208  rm -rf conftest*
9209  eval "ac_cv_func_$ac_func=yes"
9210else
9211  echo "configure: failed program was:" >&5
9212  cat conftest.$ac_ext >&5
9213  rm -rf conftest*
9214  eval "ac_cv_func_$ac_func=no"
9215fi
9216rm -f conftest*
9217fi
9218
9219if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9220  echo "$ac_t""yes" 1>&6
9221    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9222  cat >> confdefs.h <<EOF
9223#define $ac_tr_func 1
9224EOF
9225 \
9226    ac_XPG2funcs=yes
9227else
9228  echo "$ac_t""no" 1>&6
9229ac_XPG2funcs=no
9230fi
9231done
9232
9233  
9234    LIBS="$ac_save_LIBS"
9235
9236    echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9237echo "configure:9238: checking for XPG2 wchar_t support" >&5
9238    if test x"$ac_has_iconv_h" = xyes &&
9239       test x"$ac_has_langinfo_h" = xyes &&
9240       test x"$ac_XPG2funcs" = xyes; then
9241      ac_XPG2_wchar_t=yes
9242    else
9243      ac_XPG2_wchar_t=no
9244    fi
9245    echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9246  
9247            if test x"$ac_isoC99_wchar_t" = xyes &&
9248       test x"$ac_XPG2_wchar_t" = xyes; then
9249       cat >> confdefs.h <<\EOF
9250#define _GLIBCPP_USE_WCHAR_T 1
9251EOF
9252
9253       enable_wchar_t=yes 
9254    fi
9255  fi
9256  echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9257echo "configure:9258: checking for enabled wchar_t specializations" >&5
9258  echo "$ac_t""$enable_wchar_t" 1>&6	
9259  
9260
9261if test "$enable_wchar_t" = yes; then
9262  GLIBCPP_TEST_WCHAR_T_TRUE=
9263  GLIBCPP_TEST_WCHAR_T_FALSE='#'
9264else
9265  GLIBCPP_TEST_WCHAR_T_TRUE='#'
9266  GLIBCPP_TEST_WCHAR_T_FALSE=
9267fi	
9268
9269      os_include_dir="os/mingw32"
9270      ;;
9271    *-windiss*)
9272      os_include_dir="os/windiss"
9273      ;;
9274    *-qnx6.[12]*)
9275      SECTION_FLAGS='-ffunction-sections -fdata-sections'
9276       
9277      
9278  # If we're not using GNU ld, then there's no point in even trying these
9279  # tests.  Check for that first.  We should have already tested for gld
9280  # by now (in libtool), but require it now just to be safe...
9281  test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9282  test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9283  
9284
9285  # The name set by libtool depends on the version of libtool.  Shame on us
9286  # for depending on an impl detail, but c'est la vie.  Older versions used
9287  # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9288  # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9289  # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
9290  # set (hence we're using an older libtool), then set it.
9291  if test x${with_gnu_ld+set} != xset; then
9292    if test x${ac_cv_prog_gnu_ld+set} != xset; then
9293      # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
9294      with_gnu_ld=no
9295    else
9296      with_gnu_ld=$ac_cv_prog_gnu_ld
9297    fi
9298  fi
9299
9300  # Start by getting the version number.  I think the libtool test already
9301  # does some of this, but throws away the result.
9302  
9303  ldver=`$LD --version 2>/dev/null | head -1 | \
9304         sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9305  
9306  glibcpp_gnu_ld_version=`echo $ldver | \
9307         $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9308
9309  # Set --gc-sections.
9310  if test "$with_gnu_ld" = "notbroken"; then
9311    # GNU ld it is!  Joy and bunny rabbits!
9312
9313    # All these tests are for C++; save the language and the compiler flags.
9314    # Need to do this so that g++ won't try to link in libstdc++
9315    ac_test_CFLAGS="${CFLAGS+set}"
9316    ac_save_CFLAGS="$CFLAGS"
9317    CFLAGS='-x c++  -Wl,--gc-sections'
9318
9319    # Check for -Wl,--gc-sections
9320    # XXX This test is broken at the moment, as symbols required for
9321    # linking are now in libsupc++ (not built yet.....). In addition, 
9322    # this test has cored on solaris in the past. In addition,
9323    # --gc-sections doesn't really work at the moment (keeps on discarding
9324    # used sections, first .eh_frame and now some of the glibc sections for
9325    # iconv). Bzzzzt. Thanks for playing, maybe next time.
9326    echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9327echo "configure:9328: checking for ld that supports -Wl,--gc-sections" >&5
9328    if test "$cross_compiling" = yes; then
9329  ac_sectionLDflags=yes
9330else
9331  cat > conftest.$ac_ext <<EOF
9332#line 9333 "configure"
9333#include "confdefs.h"
9334
9335     int main(void) 
9336     {
9337       try { throw 1; }
9338       catch (...) { };
9339       return 0;
9340     }
9341    
9342EOF
9343if { (eval echo configure:9344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9344then
9345  ac_sectionLDflags=yes
9346else
9347  echo "configure: failed program was:" >&5
9348  cat conftest.$ac_ext >&5
9349  rm -fr conftest*
9350  ac_sectionLDflags=no
9351fi
9352rm -fr conftest*
9353fi
9354
9355    if test "$ac_test_CFLAGS" = set; then
9356      CFLAGS="$ac_save_CFLAGS"
9357    else
9358      # this is the suspicious part
9359      CFLAGS=''
9360    fi
9361    if test "$ac_sectionLDflags" = "yes"; then
9362      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9363    fi
9364    echo "$ac_t""$ac_sectionLDflags" 1>&6
9365  fi
9366
9367  # Set linker optimization flags.
9368  if test x"$with_gnu_ld" = x"yes"; then
9369    OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9370  fi
9371
9372  
9373  
9374
9375      
9376    echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9377echo "configure:9378: checking for main in -lm" >&5
9378ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9379if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9380  echo $ac_n "(cached) $ac_c" 1>&6
9381else
9382  ac_save_LIBS="$LIBS"
9383LIBS="-lm  $LIBS"
9384cat > conftest.$ac_ext <<EOF
9385#line 9386 "configure"
9386#include "confdefs.h"
9387
9388int main() {
9389main()
9390; return 0; }
9391EOF
9392if { (eval echo configure:9393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9393  rm -rf conftest*
9394  eval "ac_cv_lib_$ac_lib_var=yes"
9395else
9396  echo "configure: failed program was:" >&5
9397  cat conftest.$ac_ext >&5
9398  rm -rf conftest*
9399  eval "ac_cv_lib_$ac_lib_var=no"
9400fi
9401rm -f conftest*
9402LIBS="$ac_save_LIBS"
9403
9404fi
9405if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9406  echo "$ac_t""yes" 1>&6
9407    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9408    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9409  cat >> confdefs.h <<EOF
9410#define $ac_tr_lib 1
9411EOF
9412
9413  LIBS="-lm $LIBS"
9414
9415else
9416  echo "$ac_t""no" 1>&6
9417fi
9418
9419  for ac_func in nan copysignf
9420do
9421echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9422echo "configure:9423: checking for $ac_func" >&5
9423if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9424  echo $ac_n "(cached) $ac_c" 1>&6
9425else
9426  cat > conftest.$ac_ext <<EOF
9427#line 9428 "configure"
9428#include "confdefs.h"
9429/* System header to define __stub macros and hopefully few prototypes,
9430    which can conflict with char $ac_func(); below.  */
9431#include <assert.h>
9432/* Override any gcc2 internal prototype to avoid an error.  */
9433/* We use char because int might match the return type of a gcc2
9434    builtin and then its argument prototype would still apply.  */
9435char $ac_func();
9436
9437int main() {
9438
9439/* The GNU C library defines this for functions which it implements
9440    to always fail with ENOSYS.  Some functions are actually named
9441    something starting with __ and the normal name is an alias.  */
9442#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9443choke me
9444#else
9445$ac_func();
9446#endif
9447
9448; return 0; }
9449EOF
9450if { (eval echo configure:9451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9451  rm -rf conftest*
9452  eval "ac_cv_func_$ac_func=yes"
9453else
9454  echo "configure: failed program was:" >&5
9455  cat conftest.$ac_ext >&5
9456  rm -rf conftest*
9457  eval "ac_cv_func_$ac_func=no"
9458fi
9459rm -f conftest*
9460fi
9461
9462if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9463  echo "$ac_t""yes" 1>&6
9464    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9465  cat >> confdefs.h <<EOF
9466#define $ac_tr_func 1
9467EOF
9468 
9469else
9470  echo "$ac_t""no" 1>&6
9471LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9472fi
9473done
9474
9475
9476    for ac_func in __signbit
9477do
9478echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9479echo "configure:9480: checking for $ac_func" >&5
9480if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9481  echo $ac_n "(cached) $ac_c" 1>&6
9482else
9483  cat > conftest.$ac_ext <<EOF
9484#line 9485 "configure"
9485#include "confdefs.h"
9486/* System header to define __stub macros and hopefully few prototypes,
9487    which can conflict with char $ac_func(); below.  */
9488#include <assert.h>
9489/* Override any gcc2 internal prototype to avoid an error.  */
9490/* We use char because int might match the return type of a gcc2
9491    builtin and then its argument prototype would still apply.  */
9492char $ac_func();
9493
9494int main() {
9495
9496/* The GNU C library defines this for functions which it implements
9497    to always fail with ENOSYS.  Some functions are actually named
9498    something starting with __ and the normal name is an alias.  */
9499#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9500choke me
9501#else
9502$ac_func();
9503#endif
9504
9505; return 0; }
9506EOF
9507if { (eval echo configure:9508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9508  rm -rf conftest*
9509  eval "ac_cv_func_$ac_func=yes"
9510else
9511  echo "configure: failed program was:" >&5
9512  cat conftest.$ac_ext >&5
9513  rm -rf conftest*
9514  eval "ac_cv_func_$ac_func=no"
9515fi
9516rm -f conftest*
9517fi
9518
9519if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9520  echo "$ac_t""yes" 1>&6
9521    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9522  cat >> confdefs.h <<EOF
9523#define $ac_tr_func 1
9524EOF
9525 
9526else
9527  echo "$ac_t""no" 1>&6
9528LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9529fi
9530done
9531
9532  for ac_func in __signbitf
9533do
9534echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9535echo "configure:9536: checking for $ac_func" >&5
9536if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9537  echo $ac_n "(cached) $ac_c" 1>&6
9538else
9539  cat > conftest.$ac_ext <<EOF
9540#line 9541 "configure"
9541#include "confdefs.h"
9542/* System header to define __stub macros and hopefully few prototypes,
9543    which can conflict with char $ac_func(); below.  */
9544#include <assert.h>
9545/* Override any gcc2 internal prototype to avoid an error.  */
9546/* We use char because int might match the return type of a gcc2
9547    builtin and then its argument prototype would still apply.  */
9548char $ac_func();
9549
9550int main() {
9551
9552/* The GNU C library defines this for functions which it implements
9553    to always fail with ENOSYS.  Some functions are actually named
9554    something starting with __ and the normal name is an alias.  */
9555#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9556choke me
9557#else
9558$ac_func();
9559#endif
9560
9561; return 0; }
9562EOF
9563if { (eval echo configure:9564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9564  rm -rf conftest*
9565  eval "ac_cv_func_$ac_func=yes"
9566else
9567  echo "configure: failed program was:" >&5
9568  cat conftest.$ac_ext >&5
9569  rm -rf conftest*
9570  eval "ac_cv_func_$ac_func=no"
9571fi
9572rm -f conftest*
9573fi
9574
9575if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9576  echo "$ac_t""yes" 1>&6
9577    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9578  cat >> confdefs.h <<EOF
9579#define $ac_tr_func 1
9580EOF
9581 
9582else
9583  echo "$ac_t""no" 1>&6
9584LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9585fi
9586done
9587
9588
9589          if test x$ac_cv_func_copysignl = x"yes"; then
9590    for ac_func in __signbitl
9591do
9592echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9593echo "configure:9594: checking for $ac_func" >&5
9594if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9595  echo $ac_n "(cached) $ac_c" 1>&6
9596else
9597  cat > conftest.$ac_ext <<EOF
9598#line 9599 "configure"
9599#include "confdefs.h"
9600/* System header to define __stub macros and hopefully few prototypes,
9601    which can conflict with char $ac_func(); below.  */
9602#include <assert.h>
9603/* Override any gcc2 internal prototype to avoid an error.  */
9604/* We use char because int might match the return type of a gcc2
9605    builtin and then its argument prototype would still apply.  */
9606char $ac_func();
9607
9608int main() {
9609
9610/* The GNU C library defines this for functions which it implements
9611    to always fail with ENOSYS.  Some functions are actually named
9612    something starting with __ and the normal name is an alias.  */
9613#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9614choke me
9615#else
9616$ac_func();
9617#endif
9618
9619; return 0; }
9620EOF
9621if { (eval echo configure:9622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9622  rm -rf conftest*
9623  eval "ac_cv_func_$ac_func=yes"
9624else
9625  echo "configure: failed program was:" >&5
9626  cat conftest.$ac_ext >&5
9627  rm -rf conftest*
9628  eval "ac_cv_func_$ac_func=no"
9629fi
9630rm -f conftest*
9631fi
9632
9633if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9634  echo "$ac_t""yes" 1>&6
9635    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9636  cat >> confdefs.h <<EOF
9637#define $ac_tr_func 1
9638EOF
9639 
9640else
9641  echo "$ac_t""no" 1>&6
9642LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9643fi
9644done
9645
9646  fi
9647
9648  if test -n "$LIBMATHOBJS"; then
9649    need_libmath=yes
9650  fi
9651  
9652  
9653
9654if test "$need_libmath" = yes; then
9655  GLIBCPP_BUILD_LIBMATH_TRUE=
9656  GLIBCPP_BUILD_LIBMATH_FALSE='#'
9657else
9658  GLIBCPP_BUILD_LIBMATH_TRUE='#'
9659  GLIBCPP_BUILD_LIBMATH_FALSE=
9660fi
9661
9662      
9663    enable_wchar_t=no
9664
9665      echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9666echo "configure:9667: checking for mbstate_t" >&5
9667  cat > conftest.$ac_ext <<EOF
9668#line 9669 "configure"
9669#include "confdefs.h"
9670#include <wchar.h>
9671int main() {
9672mbstate_t teststate;
9673; return 0; }
9674EOF
9675if { (eval echo configure:9676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9676  rm -rf conftest*
9677  have_mbstate_t=yes
9678else
9679  echo "configure: failed program was:" >&5
9680  cat conftest.$ac_ext >&5
9681  rm -rf conftest*
9682  have_mbstate_t=no
9683fi
9684rm -f conftest*
9685  echo "$ac_t""$have_mbstate_t" 1>&6
9686  if test x"$have_mbstate_t" = xyes; then
9687    cat >> confdefs.h <<\EOF
9688#define HAVE_MBSTATE_T 1
9689EOF
9690
9691  fi
9692
9693    for ac_hdr in wchar.h
9694do
9695ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9696echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9697echo "configure:9698: checking for $ac_hdr" >&5
9698if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9699  echo $ac_n "(cached) $ac_c" 1>&6
9700else
9701  cat > conftest.$ac_ext <<EOF
9702#line 9703 "configure"
9703#include "confdefs.h"
9704#include <$ac_hdr>
9705EOF
9706ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9707{ (eval echo configure:9708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9708ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9709if test -z "$ac_err"; then
9710  rm -rf conftest*
9711  eval "ac_cv_header_$ac_safe=yes"
9712else
9713  echo "$ac_err" >&5
9714  echo "configure: failed program was:" >&5
9715  cat conftest.$ac_ext >&5
9716  rm -rf conftest*
9717  eval "ac_cv_header_$ac_safe=no"
9718fi
9719rm -f conftest*
9720fi
9721if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9722  echo "$ac_t""yes" 1>&6
9723    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9724  cat >> confdefs.h <<EOF
9725#define $ac_tr_hdr 1
9726EOF
9727 ac_has_wchar_h=yes
9728else
9729  echo "$ac_t""no" 1>&6
9730ac_has_wchar_h=no
9731fi
9732done
9733
9734  for ac_hdr in wctype.h
9735do
9736ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9737echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9738echo "configure:9739: checking for $ac_hdr" >&5
9739if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9740  echo $ac_n "(cached) $ac_c" 1>&6
9741else
9742  cat > conftest.$ac_ext <<EOF
9743#line 9744 "configure"
9744#include "confdefs.h"
9745#include <$ac_hdr>
9746EOF
9747ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9748{ (eval echo configure:9749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9749ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9750if test -z "$ac_err"; then
9751  rm -rf conftest*
9752  eval "ac_cv_header_$ac_safe=yes"
9753else
9754  echo "$ac_err" >&5
9755  echo "configure: failed program was:" >&5
9756  cat conftest.$ac_ext >&5
9757  rm -rf conftest*
9758  eval "ac_cv_header_$ac_safe=no"
9759fi
9760rm -f conftest*
9761fi
9762if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9763  echo "$ac_t""yes" 1>&6
9764    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9765  cat >> confdefs.h <<EOF
9766#define $ac_tr_hdr 1
9767EOF
9768 ac_has_wctype_h=yes
9769else
9770  echo "$ac_t""no" 1>&6
9771ac_has_wctype_h=no
9772fi
9773done
9774
9775  
9776    if test x"$ac_has_wchar_h" = xyes &&
9777     test x"$ac_has_wctype_h" = xyes &&
9778     test x"$enable_c_mbchar" != xno; then
9779      
9780            echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9781echo "configure:9782: checking for WCHAR_MIN and WCHAR_MAX" >&5
9782    cat > conftest.$ac_ext <<EOF
9783#line 9784 "configure"
9784#include "confdefs.h"
9785#include <wchar.h>
9786int main() {
9787int i = WCHAR_MIN; int j = WCHAR_MAX;
9788; return 0; }
9789EOF
9790if { (eval echo configure:9791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9791  rm -rf conftest*
9792  has_wchar_minmax=yes
9793else
9794  echo "configure: failed program was:" >&5
9795  cat conftest.$ac_ext >&5
9796  rm -rf conftest*
9797  has_wchar_minmax=no
9798fi
9799rm -f conftest*
9800    echo "$ac_t""$has_wchar_minmax" 1>&6
9801    
9802            echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9803echo "configure:9804: checking for WEOF" >&5
9804    cat > conftest.$ac_ext <<EOF
9805#line 9806 "configure"
9806#include "confdefs.h"
9807
9808      #include <wchar.h>
9809      #include <stddef.h>
9810int main() {
9811wint_t i = WEOF;
9812; return 0; }
9813EOF
9814if { (eval echo configure:9815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9815  rm -rf conftest*
9816  has_weof=yes
9817else
9818  echo "configure: failed program was:" >&5
9819  cat conftest.$ac_ext >&5
9820  rm -rf conftest*
9821  has_weof=no
9822fi
9823rm -f conftest*
9824    echo "$ac_t""$has_weof" 1>&6
9825  
9826        ac_wfuncs=yes
9827    for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9828do
9829echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9830echo "configure:9831: checking for $ac_func" >&5
9831if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9832  echo $ac_n "(cached) $ac_c" 1>&6
9833else
9834  cat > conftest.$ac_ext <<EOF
9835#line 9836 "configure"
9836#include "confdefs.h"
9837/* System header to define __stub macros and hopefully few prototypes,
9838    which can conflict with char $ac_func(); below.  */
9839#include <assert.h>
9840/* Override any gcc2 internal prototype to avoid an error.  */
9841/* We use char because int might match the return type of a gcc2
9842    builtin and then its argument prototype would still apply.  */
9843char $ac_func();
9844
9845int main() {
9846
9847/* The GNU C library defines this for functions which it implements
9848    to always fail with ENOSYS.  Some functions are actually named
9849    something starting with __ and the normal name is an alias.  */
9850#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9851choke me
9852#else
9853$ac_func();
9854#endif
9855
9856; return 0; }
9857EOF
9858if { (eval echo configure:9859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9859  rm -rf conftest*
9860  eval "ac_cv_func_$ac_func=yes"
9861else
9862  echo "configure: failed program was:" >&5
9863  cat conftest.$ac_ext >&5
9864  rm -rf conftest*
9865  eval "ac_cv_func_$ac_func=no"
9866fi
9867rm -f conftest*
9868fi
9869
9870if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9871  echo "$ac_t""yes" 1>&6
9872    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9873  cat >> confdefs.h <<EOF
9874#define $ac_tr_func 1
9875EOF
9876 
9877else
9878  echo "$ac_t""no" 1>&6
9879\
9880    ac_wfuncs=no
9881fi
9882done
9883
9884  
9885        for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
9886    fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9887    vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9888    mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9889    wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9890    wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9891do
9892echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9893echo "configure:9894: checking for $ac_func" >&5
9894if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9895  echo $ac_n "(cached) $ac_c" 1>&6
9896else
9897  cat > conftest.$ac_ext <<EOF
9898#line 9899 "configure"
9899#include "confdefs.h"
9900/* System header to define __stub macros and hopefully few prototypes,
9901    which can conflict with char $ac_func(); below.  */
9902#include <assert.h>
9903/* Override any gcc2 internal prototype to avoid an error.  */
9904/* We use char because int might match the return type of a gcc2
9905    builtin and then its argument prototype would still apply.  */
9906char $ac_func();
9907
9908int main() {
9909
9910/* The GNU C library defines this for functions which it implements
9911    to always fail with ENOSYS.  Some functions are actually named
9912    something starting with __ and the normal name is an alias.  */
9913#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9914choke me
9915#else
9916$ac_func();
9917#endif
9918
9919; return 0; }
9920EOF
9921if { (eval echo configure:9922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9922  rm -rf conftest*
9923  eval "ac_cv_func_$ac_func=yes"
9924else
9925  echo "configure: failed program was:" >&5
9926  cat conftest.$ac_ext >&5
9927  rm -rf conftest*
9928  eval "ac_cv_func_$ac_func=no"
9929fi
9930rm -f conftest*
9931fi
9932
9933if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9934  echo "$ac_t""yes" 1>&6
9935    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9936  cat >> confdefs.h <<EOF
9937#define $ac_tr_func 1
9938EOF
9939 
9940else
9941  echo "$ac_t""no" 1>&6
9942\
9943    ac_wfuncs=no
9944fi
9945done
9946
9947
9948    echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9949echo "configure:9950: checking for ISO C99 wchar_t support" >&5
9950    if test x"$has_weof" = xyes &&
9951       test x"$has_wchar_minmax" = xyes &&
9952       test x"$ac_wfuncs" = xyes; then
9953      ac_isoC99_wchar_t=yes
9954    else
9955      ac_isoC99_wchar_t=no
9956    fi
9957    echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9958  
9959            ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9960echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9961echo "configure:9962: checking for iconv.h" >&5
9962if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9963  echo $ac_n "(cached) $ac_c" 1>&6
9964else
9965  cat > conftest.$ac_ext <<EOF
9966#line 9967 "configure"
9967#include "confdefs.h"
9968#include <iconv.h>
9969EOF
9970ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9971{ (eval echo configure:9972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9972ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9973if test -z "$ac_err"; then
9974  rm -rf conftest*
9975  eval "ac_cv_header_$ac_safe=yes"
9976else
9977  echo "$ac_err" >&5
9978  echo "configure: failed program was:" >&5
9979  cat conftest.$ac_ext >&5
9980  rm -rf conftest*
9981  eval "ac_cv_header_$ac_safe=no"
9982fi
9983rm -f conftest*
9984fi
9985if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9986  echo "$ac_t""yes" 1>&6
9987  ac_has_iconv_h=yes
9988else
9989  echo "$ac_t""no" 1>&6
9990ac_has_iconv_h=no
9991fi
9992
9993    ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9994echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9995echo "configure:9996: checking for langinfo.h" >&5
9996if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9997  echo $ac_n "(cached) $ac_c" 1>&6
9998else
9999  cat > conftest.$ac_ext <<EOF
10000#line 10001 "configure"
10001#include "confdefs.h"
10002#include <langinfo.h>
10003EOF
10004ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10005{ (eval echo configure:10006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10006ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10007if test -z "$ac_err"; then
10008  rm -rf conftest*
10009  eval "ac_cv_header_$ac_safe=yes"
10010else
10011  echo "$ac_err" >&5
10012  echo "configure: failed program was:" >&5
10013  cat conftest.$ac_ext >&5
10014  rm -rf conftest*
10015  eval "ac_cv_header_$ac_safe=no"
10016fi
10017rm -f conftest*
10018fi
10019if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10020  echo "$ac_t""yes" 1>&6
10021  ac_has_langinfo_h=yes
10022else
10023  echo "$ac_t""no" 1>&6
10024ac_has_langinfo_h=no
10025fi
10026
10027
10028        echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
10029echo "configure:10030: checking for iconv in -liconv" >&5
10030ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
10031if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10032  echo $ac_n "(cached) $ac_c" 1>&6
10033else
10034  ac_save_LIBS="$LIBS"
10035LIBS="-liconv  $LIBS"
10036cat > conftest.$ac_ext <<EOF
10037#line 10038 "configure"
10038#include "confdefs.h"
10039/* Override any gcc2 internal prototype to avoid an error.  */
10040/* We use char because int might match the return type of a gcc2
10041    builtin and then its argument prototype would still apply.  */
10042char iconv();
10043
10044int main() {
10045iconv()
10046; return 0; }
10047EOF
10048if { (eval echo configure:10049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10049  rm -rf conftest*
10050  eval "ac_cv_lib_$ac_lib_var=yes"
10051else
10052  echo "configure: failed program was:" >&5
10053  cat conftest.$ac_ext >&5
10054  rm -rf conftest*
10055  eval "ac_cv_lib_$ac_lib_var=no"
10056fi
10057rm -f conftest*
10058LIBS="$ac_save_LIBS"
10059
10060fi
10061if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10062  echo "$ac_t""yes" 1>&6
10063  libiconv="-liconv"
10064else
10065  echo "$ac_t""no" 1>&6
10066fi
10067
10068    ac_save_LIBS="$LIBS"
10069    LIBS="$LIBS $libiconv"
10070
10071    for ac_func in iconv_open iconv_close iconv nl_langinfo
10072do
10073echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10074echo "configure:10075: checking for $ac_func" >&5
10075if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10076  echo $ac_n "(cached) $ac_c" 1>&6
10077else
10078  cat > conftest.$ac_ext <<EOF
10079#line 10080 "configure"
10080#include "confdefs.h"
10081/* System header to define __stub macros and hopefully few prototypes,
10082    which can conflict with char $ac_func(); below.  */
10083#include <assert.h>
10084/* Override any gcc2 internal prototype to avoid an error.  */
10085/* We use char because int might match the return type of a gcc2
10086    builtin and then its argument prototype would still apply.  */
10087char $ac_func();
10088
10089int main() {
10090
10091/* The GNU C library defines this for functions which it implements
10092    to always fail with ENOSYS.  Some functions are actually named
10093    something starting with __ and the normal name is an alias.  */
10094#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10095choke me
10096#else
10097$ac_func();
10098#endif
10099
10100; return 0; }
10101EOF
10102if { (eval echo configure:10103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10103  rm -rf conftest*
10104  eval "ac_cv_func_$ac_func=yes"
10105else
10106  echo "configure: failed program was:" >&5
10107  cat conftest.$ac_ext >&5
10108  rm -rf conftest*
10109  eval "ac_cv_func_$ac_func=no"
10110fi
10111rm -f conftest*
10112fi
10113
10114if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10115  echo "$ac_t""yes" 1>&6
10116    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10117  cat >> confdefs.h <<EOF
10118#define $ac_tr_func 1
10119EOF
10120 \
10121    ac_XPG2funcs=yes
10122else
10123  echo "$ac_t""no" 1>&6
10124ac_XPG2funcs=no
10125fi
10126done
10127
10128  
10129    LIBS="$ac_save_LIBS"
10130
10131    echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
10132echo "configure:10133: checking for XPG2 wchar_t support" >&5
10133    if test x"$ac_has_iconv_h" = xyes &&
10134       test x"$ac_has_langinfo_h" = xyes &&
10135       test x"$ac_XPG2funcs" = xyes; then
10136      ac_XPG2_wchar_t=yes
10137    else
10138      ac_XPG2_wchar_t=no
10139    fi
10140    echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
10141  
10142            if test x"$ac_isoC99_wchar_t" = xyes &&
10143       test x"$ac_XPG2_wchar_t" = xyes; then
10144       cat >> confdefs.h <<\EOF
10145#define _GLIBCPP_USE_WCHAR_T 1
10146EOF
10147
10148       enable_wchar_t=yes 
10149    fi
10150  fi
10151  echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
10152echo "configure:10153: checking for enabled wchar_t specializations" >&5
10153  echo "$ac_t""$enable_wchar_t" 1>&6	
10154  
10155
10156if test "$enable_wchar_t" = yes; then
10157  GLIBCPP_TEST_WCHAR_T_TRUE=
10158  GLIBCPP_TEST_WCHAR_T_FALSE='#'
10159else
10160  GLIBCPP_TEST_WCHAR_T_TRUE='#'
10161  GLIBCPP_TEST_WCHAR_T_FALSE=
10162fi	
10163
10164      os_include_dir="os/qnx/qnx6.1"
10165      cat >> confdefs.h <<\EOF
10166#define HAVE_COSF 1
10167EOF
10168
10169      cat >> confdefs.h <<\EOF
10170#define HAVE_COSL 1
10171EOF
10172
10173      cat >> confdefs.h <<\EOF
10174#define HAVE_COSHF 1
10175EOF
10176
10177      cat >> confdefs.h <<\EOF
10178#define HAVE_COSHL 1
10179EOF
10180
10181      cat >> confdefs.h <<\EOF
10182#define HAVE_LOGF 1
10183EOF
10184
10185      cat >> confdefs.h <<\EOF
10186#define HAVE_LOGL 1
10187EOF
10188
10189      cat >> confdefs.h <<\EOF
10190#define HAVE_LOG10F 1
10191EOF
10192
10193      cat >> confdefs.h <<\EOF
10194#define HAVE_LOG10L 1
10195EOF
10196
10197      cat >> confdefs.h <<\EOF
10198#define HAVE_SINF 1
10199EOF
10200
10201      cat >> confdefs.h <<\EOF
10202#define HAVE_SINL 1
10203EOF
10204
10205      cat >> confdefs.h <<\EOF
10206#define HAVE_SINHF 1
10207EOF
10208
10209      cat >> confdefs.h <<\EOF
10210#define HAVE_SINHL 1
10211EOF
10212
10213      ;;
10214    *)
10215      os_include_dir="os/newlib"
10216      cat >> confdefs.h <<\EOF
10217#define HAVE_HYPOT 1
10218EOF
10219
10220      ;;
10221  esac
10222
10223if test x"$with_newlib" = "xyes"; then
10224   os_include_dir="os/newlib"
10225fi
10226
10227  case "$target" in
10228    *-mingw32*)
10229      ;;
10230    *-windiss*)
10231      cat >> confdefs.h <<\EOF
10232#define HAVE_ACOSF 1
10233EOF
10234
10235      cat >> confdefs.h <<\EOF
10236#define HAVE_ASINF 1
10237EOF
10238
10239      cat >> confdefs.h <<\EOF
10240#define HAVE_ATAN2F 1
10241EOF
10242
10243      cat >> confdefs.h <<\EOF
10244#define HAVE_ATANF 1
10245EOF
10246
10247      cat >> confdefs.h <<\EOF
10248#define HAVE_CEILF 1
10249EOF
10250
10251      cat >> confdefs.h <<\EOF
10252#define HAVE_COPYSIGN 1
10253EOF
10254
10255      cat >> confdefs.h <<\EOF
10256#define HAVE_COPYSIGNF 1
10257EOF
10258
10259      cat >> confdefs.h <<\EOF
10260#define HAVE_COSF 1
10261EOF
10262
10263      cat >> confdefs.h <<\EOF
10264#define HAVE_COSHF 1
10265EOF
10266
10267      cat >> confdefs.h <<\EOF
10268#define HAVE_EXPF 1
10269EOF
10270
10271      cat >> confdefs.h <<\EOF
10272#define HAVE_FABSF 1
10273EOF
10274
10275      cat >> confdefs.h <<\EOF
10276#define HAVE_FLOORF 1
10277EOF
10278
10279      cat >> confdefs.h <<\EOF
10280#define HAVE_FMODF 1
10281EOF
10282
10283      cat >> confdefs.h <<\EOF
10284#define HAVE_FREXPF 1
10285EOF
10286
10287      cat >> confdefs.h <<\EOF
10288#define HAVE_LDEXPF 1
10289EOF
10290
10291      cat >> confdefs.h <<\EOF
10292#define HAVE_LOG10F 1
10293EOF
10294
10295      cat >> confdefs.h <<\EOF
10296#define HAVE_LOGF 1
10297EOF
10298
10299      cat >> confdefs.h <<\EOF
10300#define HAVE_MODFF 1
10301EOF
10302
10303      cat >> confdefs.h <<\EOF
10304#define HAVE_POWF 1
10305EOF
10306
10307      cat >> confdefs.h <<\EOF
10308#define HAVE_SINF 1
10309EOF
10310
10311      cat >> confdefs.h <<\EOF
10312#define HAVE_SINHF 1
10313EOF
10314
10315      cat >> confdefs.h <<\EOF
10316#define HAVE_SQRTF 1
10317EOF
10318
10319      cat >> confdefs.h <<\EOF
10320#define HAVE_TANF 1
10321EOF
10322
10323      cat >> confdefs.h <<\EOF
10324#define HAVE_TANHF 1
10325EOF
10326
10327      ;;
10328    *-freebsd*)
10329      # Must replicate generic section since we don't have strtof or strtold.
10330      cat >> confdefs.h <<\EOF
10331#define HAVE_MMAP 1
10332EOF
10333
10334      cat >> confdefs.h <<\EOF
10335#define HAVE_ACOSF 1
10336EOF
10337
10338      cat >> confdefs.h <<\EOF
10339#define HAVE_ASINF 1
10340EOF
10341
10342      cat >> confdefs.h <<\EOF
10343#define HAVE_ATAN2F 1
10344EOF
10345
10346      cat >> confdefs.h <<\EOF
10347#define HAVE_ATANF 1
10348EOF
10349
10350      cat >> confdefs.h <<\EOF
10351#define HAVE_CEILF 1
10352EOF
10353
10354      cat >> confdefs.h <<\EOF
10355#define HAVE_COPYSIGN 1
10356EOF
10357
10358      cat >> confdefs.h <<\EOF
10359#define HAVE_COPYSIGNF 1
10360EOF
10361
10362      cat >> confdefs.h <<\EOF
10363#define HAVE_COSF 1
10364EOF
10365
10366      cat >> confdefs.h <<\EOF
10367#define HAVE_COSHF 1
10368EOF
10369
10370      cat >> confdefs.h <<\EOF
10371#define HAVE_EXPF 1
10372EOF
10373
10374      cat >> confdefs.h <<\EOF
10375#define HAVE_FABSF 1
10376EOF
10377
10378      cat >> confdefs.h <<\EOF
10379#define HAVE_FLOORF 1
10380EOF
10381
10382      cat >> confdefs.h <<\EOF
10383#define HAVE_FMODF 1
10384EOF
10385
10386      cat >> confdefs.h <<\EOF
10387#define HAVE_FREXPF 1
10388EOF
10389
10390      cat >> confdefs.h <<\EOF
10391#define HAVE_LDEXPF 1
10392EOF
10393
10394      cat >> confdefs.h <<\EOF
10395#define HAVE_LOG10F 1
10396EOF
10397
10398      cat >> confdefs.h <<\EOF
10399#define HAVE_LOGF 1
10400EOF
10401
10402      cat >> confdefs.h <<\EOF
10403#define HAVE_MODFF 1
10404EOF
10405
10406      cat >> confdefs.h <<\EOF
10407#define HAVE_POWF 1
10408EOF
10409
10410      cat >> confdefs.h <<\EOF
10411#define HAVE_SINF 1
10412EOF
10413
10414      cat >> confdefs.h <<\EOF
10415#define HAVE_SINHF 1
10416EOF
10417
10418      cat >> confdefs.h <<\EOF
10419#define HAVE_SQRTF 1
10420EOF
10421
10422      cat >> confdefs.h <<\EOF
10423#define HAVE_TANF 1
10424EOF
10425
10426      cat >> confdefs.h <<\EOF
10427#define HAVE_TANHF 1
10428EOF
10429
10430      ;;
10431    *)
10432      # GLIBCPP_CHECK_STDLIB_SUPPORT
10433      cat >> confdefs.h <<\EOF
10434#define HAVE_STRTOF 1
10435EOF
10436        
10437      cat >> confdefs.h <<\EOF
10438#define HAVE_STRTOLD 1
10439EOF
10440        
10441      # AC_FUNC_MMAP
10442      cat >> confdefs.h <<\EOF
10443#define HAVE_MMAP 1
10444EOF
10445
10446
10447      cat >> confdefs.h <<\EOF
10448#define HAVE_ACOSF 1
10449EOF
10450
10451      cat >> confdefs.h <<\EOF
10452#define HAVE_ASINF 1
10453EOF
10454
10455      cat >> confdefs.h <<\EOF
10456#define HAVE_ATAN2F 1
10457EOF
10458
10459      cat >> confdefs.h <<\EOF
10460#define HAVE_ATANF 1
10461EOF
10462
10463      cat >> confdefs.h <<\EOF
10464#define HAVE_CEILF 1
10465EOF
10466
10467      cat >> confdefs.h <<\EOF
10468#define HAVE_COPYSIGN 1
10469EOF
10470
10471      cat >> confdefs.h <<\EOF
10472#define HAVE_COPYSIGNF 1
10473EOF
10474
10475      cat >> confdefs.h <<\EOF
10476#define HAVE_COSF 1
10477EOF
10478
10479      cat >> confdefs.h <<\EOF
10480#define HAVE_COSHF 1
10481EOF
10482
10483      cat >> confdefs.h <<\EOF
10484#define HAVE_EXPF 1
10485EOF
10486
10487      cat >> confdefs.h <<\EOF
10488#define HAVE_FABSF 1
10489EOF
10490
10491      cat >> confdefs.h <<\EOF
10492#define HAVE_FLOORF 1
10493EOF
10494
10495      cat >> confdefs.h <<\EOF
10496#define HAVE_FMODF 1
10497EOF
10498
10499      cat >> confdefs.h <<\EOF
10500#define HAVE_FREXPF 1
10501EOF
10502
10503      cat >> confdefs.h <<\EOF
10504#define HAVE_LDEXPF 1
10505EOF
10506
10507      cat >> confdefs.h <<\EOF
10508#define HAVE_LOG10F 1
10509EOF
10510
10511      cat >> confdefs.h <<\EOF
10512#define HAVE_LOGF 1
10513EOF
10514
10515      cat >> confdefs.h <<\EOF
10516#define HAVE_MODFF 1
10517EOF
10518
10519      cat >> confdefs.h <<\EOF
10520#define HAVE_POWF 1
10521EOF
10522
10523      cat >> confdefs.h <<\EOF
10524#define HAVE_SINF 1
10525EOF
10526
10527      cat >> confdefs.h <<\EOF
10528#define HAVE_SINHF 1
10529EOF
10530
10531      cat >> confdefs.h <<\EOF
10532#define HAVE_SQRTF 1
10533EOF
10534
10535      cat >> confdefs.h <<\EOF
10536#define HAVE_TANF 1
10537EOF
10538
10539      cat >> confdefs.h <<\EOF
10540#define HAVE_TANHF 1
10541EOF
10542
10543      ;;
10544  esac
10545
10546  # At some point, we should differentiate between architectures
10547  # like x86, which have long double versions, and alpha/powerpc/etc.,
10548  # which don't. For the time being, punt.
10549  if test x"long_double_math_on_this_cpu" = x"yes"; then
10550    cat >> confdefs.h <<\EOF
10551#define HAVE_ACOSL 1
10552EOF
10553
10554    cat >> confdefs.h <<\EOF
10555#define HAVE_ASINL 1
10556EOF
10557
10558    cat >> confdefs.h <<\EOF
10559#define HAVE_ATAN2L 1
10560EOF
10561
10562    cat >> confdefs.h <<\EOF
10563#define HAVE_ATANL 1
10564EOF
10565
10566    cat >> confdefs.h <<\EOF
10567#define HAVE_CEILL 1
10568EOF
10569
10570    cat >> confdefs.h <<\EOF
10571#define HAVE_COPYSIGNL 1
10572EOF
10573
10574    cat >> confdefs.h <<\EOF
10575#define HAVE_COSL 1
10576EOF
10577
10578    cat >> confdefs.h <<\EOF
10579#define HAVE_COSHL 1
10580EOF
10581
10582    cat >> confdefs.h <<\EOF
10583#define HAVE_EXPL 1
10584EOF
10585
10586    cat >> confdefs.h <<\EOF
10587#define HAVE_FABSL 1
10588EOF
10589
10590    cat >> confdefs.h <<\EOF
10591#define HAVE_FLOORL 1
10592EOF
10593
10594    cat >> confdefs.h <<\EOF
10595#define HAVE_FMODL 1
10596EOF
10597
10598    cat >> confdefs.h <<\EOF
10599#define HAVE_FREXPL 1
10600EOF
10601
10602    cat >> confdefs.h <<\EOF
10603#define HAVE_LDEXPL 1
10604EOF
10605
10606    cat >> confdefs.h <<\EOF
10607#define HAVE_LOG10L 1
10608EOF
10609
10610    cat >> confdefs.h <<\EOF
10611#define HAVE_LOGL 1
10612EOF
10613
10614    cat >> confdefs.h <<\EOF
10615#define HAVE_MODFL 1
10616EOF
10617
10618    cat >> confdefs.h <<\EOF
10619#define HAVE_POWL 1
10620EOF
10621
10622    cat >> confdefs.h <<\EOF
10623#define HAVE_SINCOSL 1
10624EOF
10625
10626    cat >> confdefs.h <<\EOF
10627#define HAVE_SINL 1
10628EOF
10629
10630    cat >> confdefs.h <<\EOF
10631#define HAVE_SINHL 1
10632EOF
10633
10634    cat >> confdefs.h <<\EOF
10635#define HAVE_SQRTL 1
10636EOF
10637
10638    cat >> confdefs.h <<\EOF
10639#define HAVE_TANL 1
10640EOF
10641
10642    cat >> confdefs.h <<\EOF
10643#define HAVE_TANHL 1
10644EOF
10645
10646  fi
10647
10648else
10649
10650  # We are being configured natively. We can do more elaborate tests
10651  # that include AC_TRY_COMPILE now, as the linker is assumed to be
10652  # working.
10653  GLIBCPP_IS_CROSS_COMPILING=false
10654  CANADIAN=no
10655
10656  # Check for available headers.
10657  for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10658  machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
10659do
10660ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10661echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10662echo "configure:10663: checking for $ac_hdr" >&5
10663if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10664  echo $ac_n "(cached) $ac_c" 1>&6
10665else
10666  cat > conftest.$ac_ext <<EOF
10667#line 10668 "configure"
10668#include "confdefs.h"
10669#include <$ac_hdr>
10670EOF
10671ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10672{ (eval echo configure:10673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10673ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10674if test -z "$ac_err"; then
10675  rm -rf conftest*
10676  eval "ac_cv_header_$ac_safe=yes"
10677else
10678  echo "$ac_err" >&5
10679  echo "configure: failed program was:" >&5
10680  cat conftest.$ac_ext >&5
10681  rm -rf conftest*
10682  eval "ac_cv_header_$ac_safe=no"
10683fi
10684rm -f conftest*
10685fi
10686if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10687  echo "$ac_t""yes" 1>&6
10688    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10689  cat >> confdefs.h <<EOF
10690#define $ac_tr_hdr 1
10691EOF
10692 
10693else
10694  echo "$ac_t""no" 1>&6
10695fi
10696done
10697
10698
10699  
10700  # All these tests are for C++; save the language and the compiler flags.
10701  # The CXXFLAGS thing is suspicious, but based on similar bits previously
10702  # found in GLIBCPP_CONFIGURE.
10703  
10704  ac_ext=C
10705# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10706ac_cpp='$CXXCPP $CPPFLAGS'
10707ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10708ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10709cross_compiling=$ac_cv_prog_cxx_cross
10710
10711  ac_test_CXXFLAGS="${CXXFLAGS+set}"
10712  ac_save_CXXFLAGS="$CXXFLAGS"
10713
10714  # Check for maintainer-mode bits.
10715  if test x"$USE_MAINTAINER_MODE" = xno; then
10716    WERROR=''
10717  else
10718    WERROR='-Werror'
10719  fi
10720
10721  # Check for -ffunction-sections -fdata-sections
10722  echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10723echo "configure:10724: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10724  CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10725  cat > conftest.$ac_ext <<EOF
10726#line 10727 "configure"
10727#include "confdefs.h"
10728
10729int main() {
10730int foo;
10731  
10732; return 0; }
10733EOF
10734if { (eval echo configure:10735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10735  rm -rf conftest*
10736  ac_fdsections=yes
10737else
10738  echo "configure: failed program was:" >&5
10739  cat conftest.$ac_ext >&5
10740  rm -rf conftest*
10741  ac_fdsections=no
10742fi
10743rm -f conftest*
10744  if test "$ac_test_CXXFLAGS" = set; then
10745    CXXFLAGS="$ac_save_CXXFLAGS"
10746  else
10747    # this is the suspicious part
10748    CXXFLAGS=''
10749  fi
10750  if test x"$ac_fdsections" = x"yes"; then
10751    SECTION_FLAGS='-ffunction-sections -fdata-sections'
10752  fi
10753  echo "$ac_t""$ac_fdsections" 1>&6
10754
10755  ac_ext=c
10756# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10757ac_cpp='$CPP $CPPFLAGS'
10758ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10759ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10760cross_compiling=$ac_cv_prog_cc_cross
10761
10762  
10763  
10764
10765  
10766  # If we're not using GNU ld, then there's no point in even trying these
10767  # tests.  Check for that first.  We should have already tested for gld
10768  # by now (in libtool), but require it now just to be safe...
10769  test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10770  test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10771  
10772
10773  # The name set by libtool depends on the version of libtool.  Shame on us
10774  # for depending on an impl detail, but c'est la vie.  Older versions used
10775  # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10776  # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10777  # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
10778  # set (hence we're using an older libtool), then set it.
10779  if test x${with_gnu_ld+set} != xset; then
10780    if test x${ac_cv_prog_gnu_ld+set} != xset; then
10781      # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
10782      with_gnu_ld=no
10783    else
10784      with_gnu_ld=$ac_cv_prog_gnu_ld
10785    fi
10786  fi
10787
10788  # Start by getting the version number.  I think the libtool test already
10789  # does some of this, but throws away the result.
10790  
10791  ldver=`$LD --version 2>/dev/null | head -1 | \
10792         sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10793  
10794  glibcpp_gnu_ld_version=`echo $ldver | \
10795         $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10796
10797  # Set --gc-sections.
10798  if test "$with_gnu_ld" = "notbroken"; then
10799    # GNU ld it is!  Joy and bunny rabbits!
10800
10801    # All these tests are for C++; save the language and the compiler flags.
10802    # Need to do this so that g++ won't try to link in libstdc++
10803    ac_test_CFLAGS="${CFLAGS+set}"
10804    ac_save_CFLAGS="$CFLAGS"
10805    CFLAGS='-x c++  -Wl,--gc-sections'
10806
10807    # Check for -Wl,--gc-sections
10808    # XXX This test is broken at the moment, as symbols required for
10809    # linking are now in libsupc++ (not built yet.....). In addition, 
10810    # this test has cored on solaris in the past. In addition,
10811    # --gc-sections doesn't really work at the moment (keeps on discarding
10812    # used sections, first .eh_frame and now some of the glibc sections for
10813    # iconv). Bzzzzt. Thanks for playing, maybe next time.
10814    echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10815echo "configure:10816: checking for ld that supports -Wl,--gc-sections" >&5
10816    if test "$cross_compiling" = yes; then
10817  ac_sectionLDflags=yes
10818else
10819  cat > conftest.$ac_ext <<EOF
10820#line 10821 "configure"
10821#include "confdefs.h"
10822
10823     int main(void) 
10824     {
10825       try { throw 1; }
10826       catch (...) { };
10827       return 0;
10828     }
10829    
10830EOF
10831if { (eval echo configure:10832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10832then
10833  ac_sectionLDflags=yes
10834else
10835  echo "configure: failed program was:" >&5
10836  cat conftest.$ac_ext >&5
10837  rm -fr conftest*
10838  ac_sectionLDflags=no
10839fi
10840rm -fr conftest*
10841fi
10842
10843    if test "$ac_test_CFLAGS" = set; then
10844      CFLAGS="$ac_save_CFLAGS"
10845    else
10846      # this is the suspicious part
10847      CFLAGS=''
10848    fi
10849    if test "$ac_sectionLDflags" = "yes"; then
10850      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10851    fi
10852    echo "$ac_t""$ac_sectionLDflags" 1>&6
10853  fi
10854
10855  # Set linker optimization flags.
10856  if test x"$with_gnu_ld" = x"yes"; then
10857    OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10858  fi
10859
10860  
10861  
10862
10863  
10864      
10865  echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
10866echo "configure:10867: checking for __builtin_abs declaration" >&5
10867  if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
10868    if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
10869  echo $ac_n "(cached) $ac_c" 1>&6
10870else
10871  
10872      
10873      ac_ext=C
10874# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10875ac_cpp='$CXXCPP $CPPFLAGS'
10876ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10877ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10878cross_compiling=$ac_cv_prog_cxx_cross
10879
10880      cat > conftest.$ac_ext <<EOF
10881#line 10882 "configure"
10882#include "confdefs.h"
10883#include <math.h>
10884int main() {
10885 __builtin_abs(0);
10886; return 0; }
10887EOF
10888if { (eval echo configure:10889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10889  rm -rf conftest*
10890  glibcpp_cv_func___builtin_abs_use=yes
10891else
10892  echo "configure: failed program was:" >&5
10893  cat conftest.$ac_ext >&5
10894  rm -rf conftest*
10895  glibcpp_cv_func___builtin_abs_use=no
10896fi
10897rm -f conftest*
10898      ac_ext=c
10899# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10900ac_cpp='$CPP $CPPFLAGS'
10901ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10902ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10903cross_compiling=$ac_cv_prog_cc_cross
10904
10905    
10906fi
10907
10908  fi
10909  echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
10910  if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
10911    echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
10912echo "configure:10913: checking for __builtin_abs linkage" >&5
10913    if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
10914      if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
10915  echo $ac_n "(cached) $ac_c" 1>&6
10916else
10917  
10918        cat > conftest.$ac_ext <<EOF
10919#line 10920 "configure"
10920#include "confdefs.h"
10921#include <math.h>
10922int main() {
10923 __builtin_abs(0);
10924; return 0; }
10925EOF
10926if { (eval echo configure:10927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10927  rm -rf conftest*
10928  glibcpp_cv_func___builtin_abs_link=yes
10929else
10930  echo "configure: failed program was:" >&5
10931  cat conftest.$ac_ext >&5
10932  rm -rf conftest*
10933  glibcpp_cv_func___builtin_abs_link=no
10934fi
10935rm -f conftest*
10936      
10937fi
10938
10939    fi
10940    echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
10941    if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
10942      ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10943      cat >> confdefs.h <<EOF
10944#define ${ac_tr_func} 1
10945EOF
10946
10947    fi
10948  fi
10949
10950  
10951  echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
10952echo "configure:10953: checking for __builtin_fabsf declaration" >&5
10953  if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
10954    if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
10955  echo $ac_n "(cached) $ac_c" 1>&6
10956else
10957  
10958      
10959      ac_ext=C
10960# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10961ac_cpp='$CXXCPP $CPPFLAGS'
10962ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10963ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10964cross_compiling=$ac_cv_prog_cxx_cross
10965
10966      cat > conftest.$ac_ext <<EOF
10967#line 10968 "configure"
10968#include "confdefs.h"
10969#include <math.h>
10970int main() {
10971 __builtin_fabsf(0);
10972; return 0; }
10973EOF
10974if { (eval echo configure:10975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10975  rm -rf conftest*
10976  glibcpp_cv_func___builtin_fabsf_use=yes
10977else
10978  echo "configure: failed program was:" >&5
10979  cat conftest.$ac_ext >&5
10980  rm -rf conftest*
10981  glibcpp_cv_func___builtin_fabsf_use=no
10982fi
10983rm -f conftest*
10984      ac_ext=c
10985# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10986ac_cpp='$CPP $CPPFLAGS'
10987ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10988ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10989cross_compiling=$ac_cv_prog_cc_cross
10990
10991    
10992fi
10993
10994  fi
10995  echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
10996  if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
10997    echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
10998echo "configure:10999: checking for __builtin_fabsf linkage" >&5
10999    if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
11000      if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
11001  echo $ac_n "(cached) $ac_c" 1>&6
11002else
11003  
11004        cat > conftest.$ac_ext <<EOF
11005#line 11006 "configure"
11006#include "confdefs.h"
11007#include <math.h>
11008int main() {
11009 __builtin_fabsf(0);
11010; return 0; }
11011EOF
11012if { (eval echo configure:11013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11013  rm -rf conftest*
11014  glibcpp_cv_func___builtin_fabsf_link=yes
11015else
11016  echo "configure: failed program was:" >&5
11017  cat conftest.$ac_ext >&5
11018  rm -rf conftest*
11019  glibcpp_cv_func___builtin_fabsf_link=no
11020fi
11021rm -f conftest*
11022      
11023fi
11024
11025    fi
11026    echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
11027    if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
11028      ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11029      cat >> confdefs.h <<EOF
11030#define ${ac_tr_func} 1
11031EOF
11032
11033    fi
11034  fi
11035
11036  
11037  echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
11038echo "configure:11039: checking for __builtin_fabs declaration" >&5
11039  if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
11040    if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
11041  echo $ac_n "(cached) $ac_c" 1>&6
11042else
11043  
11044      
11045      ac_ext=C
11046# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11047ac_cpp='$CXXCPP $CPPFLAGS'
11048ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11049ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11050cross_compiling=$ac_cv_prog_cxx_cross
11051
11052      cat > conftest.$ac_ext <<EOF
11053#line 11054 "configure"
11054#include "confdefs.h"
11055#include <math.h>
11056int main() {
11057 __builtin_fabs(0);
11058; return 0; }
11059EOF
11060if { (eval echo configure:11061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11061  rm -rf conftest*
11062  glibcpp_cv_func___builtin_fabs_use=yes
11063else
11064  echo "configure: failed program was:" >&5
11065  cat conftest.$ac_ext >&5
11066  rm -rf conftest*
11067  glibcpp_cv_func___builtin_fabs_use=no
11068fi
11069rm -f conftest*
11070      ac_ext=c
11071# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11072ac_cpp='$CPP $CPPFLAGS'
11073ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11074ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11075cross_compiling=$ac_cv_prog_cc_cross
11076
11077    
11078fi
11079
11080  fi
11081  echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
11082  if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
11083    echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
11084echo "configure:11085: checking for __builtin_fabs linkage" >&5
11085    if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
11086      if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
11087  echo $ac_n "(cached) $ac_c" 1>&6
11088else
11089  
11090        cat > conftest.$ac_ext <<EOF
11091#line 11092 "configure"
11092#include "confdefs.h"
11093#include <math.h>
11094int main() {
11095 __builtin_fabs(0);
11096; return 0; }
11097EOF
11098if { (eval echo configure:11099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11099  rm -rf conftest*
11100  glibcpp_cv_func___builtin_fabs_link=yes
11101else
11102  echo "configure: failed program was:" >&5
11103  cat conftest.$ac_ext >&5
11104  rm -rf conftest*
11105  glibcpp_cv_func___builtin_fabs_link=no
11106fi
11107rm -f conftest*
11108      
11109fi
11110
11111    fi
11112    echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
11113    if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
11114      ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11115      cat >> confdefs.h <<EOF
11116#define ${ac_tr_func} 1
11117EOF
11118
11119    fi
11120  fi
11121
11122  
11123  echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
11124echo "configure:11125: checking for __builtin_fabsl declaration" >&5
11125  if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
11126    if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
11127  echo $ac_n "(cached) $ac_c" 1>&6
11128else
11129  
11130      
11131      ac_ext=C
11132# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11133ac_cpp='$CXXCPP $CPPFLAGS'
11134ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11135ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11136cross_compiling=$ac_cv_prog_cxx_cross
11137
11138      cat > conftest.$ac_ext <<EOF
11139#line 11140 "configure"
11140#include "confdefs.h"
11141#include <math.h>
11142int main() {
11143 __builtin_fabsl(0);
11144; return 0; }
11145EOF
11146if { (eval echo configure:11147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11147  rm -rf conftest*
11148  glibcpp_cv_func___builtin_fabsl_use=yes
11149else
11150  echo "configure: failed program was:" >&5
11151  cat conftest.$ac_ext >&5
11152  rm -rf conftest*
11153  glibcpp_cv_func___builtin_fabsl_use=no
11154fi
11155rm -f conftest*
11156      ac_ext=c
11157# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11158ac_cpp='$CPP $CPPFLAGS'
11159ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11160ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11161cross_compiling=$ac_cv_prog_cc_cross
11162
11163    
11164fi
11165
11166  fi
11167  echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
11168  if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
11169    echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
11170echo "configure:11171: checking for __builtin_fabsl linkage" >&5
11171    if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
11172      if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
11173  echo $ac_n "(cached) $ac_c" 1>&6
11174else
11175  
11176        cat > conftest.$ac_ext <<EOF
11177#line 11178 "configure"
11178#include "confdefs.h"
11179#include <math.h>
11180int main() {
11181 __builtin_fabsl(0);
11182; return 0; }
11183EOF
11184if { (eval echo configure:11185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11185  rm -rf conftest*
11186  glibcpp_cv_func___builtin_fabsl_link=yes
11187else
11188  echo "configure: failed program was:" >&5
11189  cat conftest.$ac_ext >&5
11190  rm -rf conftest*
11191  glibcpp_cv_func___builtin_fabsl_link=no
11192fi
11193rm -f conftest*
11194      
11195fi
11196
11197    fi
11198    echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
11199    if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
11200      ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11201      cat >> confdefs.h <<EOF
11202#define ${ac_tr_func} 1
11203EOF
11204
11205    fi
11206  fi
11207
11208  
11209  echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
11210echo "configure:11211: checking for __builtin_labs declaration" >&5
11211  if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
11212    if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
11213  echo $ac_n "(cached) $ac_c" 1>&6
11214else
11215  
11216      
11217      ac_ext=C
11218# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11219ac_cpp='$CXXCPP $CPPFLAGS'
11220ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11221ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11222cross_compiling=$ac_cv_prog_cxx_cross
11223
11224      cat > conftest.$ac_ext <<EOF
11225#line 11226 "configure"
11226#include "confdefs.h"
11227#include <math.h>
11228int main() {
11229 __builtin_labs(0);
11230; return 0; }
11231EOF
11232if { (eval echo configure:11233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11233  rm -rf conftest*
11234  glibcpp_cv_func___builtin_labs_use=yes
11235else
11236  echo "configure: failed program was:" >&5
11237  cat conftest.$ac_ext >&5
11238  rm -rf conftest*
11239  glibcpp_cv_func___builtin_labs_use=no
11240fi
11241rm -f conftest*
11242      ac_ext=c
11243# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11244ac_cpp='$CPP $CPPFLAGS'
11245ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11246ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11247cross_compiling=$ac_cv_prog_cc_cross
11248
11249    
11250fi
11251
11252  fi
11253  echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
11254  if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
11255    echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
11256echo "configure:11257: checking for __builtin_labs linkage" >&5
11257    if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
11258      if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
11259  echo $ac_n "(cached) $ac_c" 1>&6
11260else
11261  
11262        cat > conftest.$ac_ext <<EOF
11263#line 11264 "configure"
11264#include "confdefs.h"
11265#include <math.h>
11266int main() {
11267 __builtin_labs(0);
11268; return 0; }
11269EOF
11270if { (eval echo configure:11271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11271  rm -rf conftest*
11272  glibcpp_cv_func___builtin_labs_link=yes
11273else
11274  echo "configure: failed program was:" >&5
11275  cat conftest.$ac_ext >&5
11276  rm -rf conftest*
11277  glibcpp_cv_func___builtin_labs_link=no
11278fi
11279rm -f conftest*
11280      
11281fi
11282
11283    fi
11284    echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
11285    if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
11286      ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11287      cat >> confdefs.h <<EOF
11288#define ${ac_tr_func} 1
11289EOF
11290
11291    fi
11292  fi
11293
11294
11295  
11296  echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
11297echo "configure:11298: checking for __builtin_sqrtf declaration" >&5
11298  if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
11299    if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
11300  echo $ac_n "(cached) $ac_c" 1>&6
11301else
11302  
11303      
11304      ac_ext=C
11305# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11306ac_cpp='$CXXCPP $CPPFLAGS'
11307ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11308ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11309cross_compiling=$ac_cv_prog_cxx_cross
11310
11311      cat > conftest.$ac_ext <<EOF
11312#line 11313 "configure"
11313#include "confdefs.h"
11314#include <math.h>
11315int main() {
11316 __builtin_sqrtf(0);
11317; return 0; }
11318EOF
11319if { (eval echo configure:11320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11320  rm -rf conftest*
11321  glibcpp_cv_func___builtin_sqrtf_use=yes
11322else
11323  echo "configure: failed program was:" >&5
11324  cat conftest.$ac_ext >&5
11325  rm -rf conftest*
11326  glibcpp_cv_func___builtin_sqrtf_use=no
11327fi
11328rm -f conftest*
11329      ac_ext=c
11330# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11331ac_cpp='$CPP $CPPFLAGS'
11332ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11333ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11334cross_compiling=$ac_cv_prog_cc_cross
11335
11336    
11337fi
11338
11339  fi
11340  echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
11341  if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
11342    echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
11343echo "configure:11344: checking for __builtin_sqrtf linkage" >&5
11344    if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
11345      if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
11346  echo $ac_n "(cached) $ac_c" 1>&6
11347else
11348  
11349        cat > conftest.$ac_ext <<EOF
11350#line 11351 "configure"
11351#include "confdefs.h"
11352#include <math.h>
11353int main() {
11354 __builtin_sqrtf(0);
11355; return 0; }
11356EOF
11357if { (eval echo configure:11358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11358  rm -rf conftest*
11359  glibcpp_cv_func___builtin_sqrtf_link=yes
11360else
11361  echo "configure: failed program was:" >&5
11362  cat conftest.$ac_ext >&5
11363  rm -rf conftest*
11364  glibcpp_cv_func___builtin_sqrtf_link=no
11365fi
11366rm -f conftest*
11367      
11368fi
11369
11370    fi
11371    echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
11372    if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
11373      ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11374      cat >> confdefs.h <<EOF
11375#define ${ac_tr_func} 1
11376EOF
11377
11378    fi
11379  fi
11380
11381  
11382  echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
11383echo "configure:11384: checking for __builtin_sqrt declaration" >&5
11384  if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
11385    if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
11386  echo $ac_n "(cached) $ac_c" 1>&6
11387else
11388  
11389      
11390      ac_ext=C
11391# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11392ac_cpp='$CXXCPP $CPPFLAGS'
11393ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11394ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11395cross_compiling=$ac_cv_prog_cxx_cross
11396
11397      cat > conftest.$ac_ext <<EOF
11398#line 11399 "configure"
11399#include "confdefs.h"
11400#include <math.h>
11401int main() {
11402 __builtin_sqrt(0);
11403; return 0; }
11404EOF
11405if { (eval echo configure:11406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11406  rm -rf conftest*
11407  glibcpp_cv_func___builtin_sqrt_use=yes
11408else
11409  echo "configure: failed program was:" >&5
11410  cat conftest.$ac_ext >&5
11411  rm -rf conftest*
11412  glibcpp_cv_func___builtin_sqrt_use=no
11413fi
11414rm -f conftest*
11415      ac_ext=c
11416# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11417ac_cpp='$CPP $CPPFLAGS'
11418ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11419ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11420cross_compiling=$ac_cv_prog_cc_cross
11421
11422    
11423fi
11424
11425  fi
11426  echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
11427  if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
11428    echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
11429echo "configure:11430: checking for __builtin_sqrt linkage" >&5
11430    if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
11431      if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
11432  echo $ac_n "(cached) $ac_c" 1>&6
11433else
11434  
11435        cat > conftest.$ac_ext <<EOF
11436#line 11437 "configure"
11437#include "confdefs.h"
11438#include <math.h>
11439int main() {
11440 __builtin_sqrt(0);
11441; return 0; }
11442EOF
11443if { (eval echo configure:11444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11444  rm -rf conftest*
11445  glibcpp_cv_func___builtin_sqrt_link=yes
11446else
11447  echo "configure: failed program was:" >&5
11448  cat conftest.$ac_ext >&5
11449  rm -rf conftest*
11450  glibcpp_cv_func___builtin_sqrt_link=no
11451fi
11452rm -f conftest*
11453      
11454fi
11455
11456    fi
11457    echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
11458    if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
11459      ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11460      cat >> confdefs.h <<EOF
11461#define ${ac_tr_func} 1
11462EOF
11463
11464    fi
11465  fi
11466
11467  
11468  echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
11469echo "configure:11470: checking for __builtin_sqrtl declaration" >&5
11470  if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
11471    if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
11472  echo $ac_n "(cached) $ac_c" 1>&6
11473else
11474  
11475      
11476      ac_ext=C
11477# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11478ac_cpp='$CXXCPP $CPPFLAGS'
11479ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11480ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11481cross_compiling=$ac_cv_prog_cxx_cross
11482
11483      cat > conftest.$ac_ext <<EOF
11484#line 11485 "configure"
11485#include "confdefs.h"
11486#include <math.h>
11487int main() {
11488 __builtin_sqrtl(0);
11489; return 0; }
11490EOF
11491if { (eval echo configure:11492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11492  rm -rf conftest*
11493  glibcpp_cv_func___builtin_sqrtl_use=yes
11494else
11495  echo "configure: failed program was:" >&5
11496  cat conftest.$ac_ext >&5
11497  rm -rf conftest*
11498  glibcpp_cv_func___builtin_sqrtl_use=no
11499fi
11500rm -f conftest*
11501      ac_ext=c
11502# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11503ac_cpp='$CPP $CPPFLAGS'
11504ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11505ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11506cross_compiling=$ac_cv_prog_cc_cross
11507
11508    
11509fi
11510
11511  fi
11512  echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
11513  if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
11514    echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
11515echo "configure:11516: checking for __builtin_sqrtl linkage" >&5
11516    if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
11517      if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
11518  echo $ac_n "(cached) $ac_c" 1>&6
11519else
11520  
11521        cat > conftest.$ac_ext <<EOF
11522#line 11523 "configure"
11523#include "confdefs.h"
11524#include <math.h>
11525int main() {
11526 __builtin_sqrtl(0);
11527; return 0; }
11528EOF
11529if { (eval echo configure:11530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11530  rm -rf conftest*
11531  glibcpp_cv_func___builtin_sqrtl_link=yes
11532else
11533  echo "configure: failed program was:" >&5
11534  cat conftest.$ac_ext >&5
11535  rm -rf conftest*
11536  glibcpp_cv_func___builtin_sqrtl_link=no
11537fi
11538rm -f conftest*
11539      
11540fi
11541
11542    fi
11543    echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
11544    if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
11545      ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11546      cat >> confdefs.h <<EOF
11547#define ${ac_tr_func} 1
11548EOF
11549
11550    fi
11551  fi
11552
11553
11554  
11555  echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
11556echo "configure:11557: checking for __builtin_sinf declaration" >&5
11557  if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
11558    if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
11559  echo $ac_n "(cached) $ac_c" 1>&6
11560else
11561  
11562      
11563      ac_ext=C
11564# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11565ac_cpp='$CXXCPP $CPPFLAGS'
11566ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11567ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11568cross_compiling=$ac_cv_prog_cxx_cross
11569
11570      cat > conftest.$ac_ext <<EOF
11571#line 11572 "configure"
11572#include "confdefs.h"
11573#include <math.h>
11574int main() {
11575 __builtin_sinf(0);
11576; return 0; }
11577EOF
11578if { (eval echo configure:11579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11579  rm -rf conftest*
11580  glibcpp_cv_func___builtin_sinf_use=yes
11581else
11582  echo "configure: failed program was:" >&5
11583  cat conftest.$ac_ext >&5
11584  rm -rf conftest*
11585  glibcpp_cv_func___builtin_sinf_use=no
11586fi
11587rm -f conftest*
11588      ac_ext=c
11589# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11590ac_cpp='$CPP $CPPFLAGS'
11591ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11592ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11593cross_compiling=$ac_cv_prog_cc_cross
11594
11595    
11596fi
11597
11598  fi
11599  echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
11600  if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
11601    echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
11602echo "configure:11603: checking for __builtin_sinf linkage" >&5
11603    if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
11604      if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
11605  echo $ac_n "(cached) $ac_c" 1>&6
11606else
11607  
11608        cat > conftest.$ac_ext <<EOF
11609#line 11610 "configure"
11610#include "confdefs.h"
11611#include <math.h>
11612int main() {
11613 __builtin_sinf(0);
11614; return 0; }
11615EOF
11616if { (eval echo configure:11617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11617  rm -rf conftest*
11618  glibcpp_cv_func___builtin_sinf_link=yes
11619else
11620  echo "configure: failed program was:" >&5
11621  cat conftest.$ac_ext >&5
11622  rm -rf conftest*
11623  glibcpp_cv_func___builtin_sinf_link=no
11624fi
11625rm -f conftest*
11626      
11627fi
11628
11629    fi
11630    echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
11631    if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
11632      ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11633      cat >> confdefs.h <<EOF
11634#define ${ac_tr_func} 1
11635EOF
11636
11637    fi
11638  fi
11639
11640  
11641  echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
11642echo "configure:11643: checking for __builtin_sin declaration" >&5
11643  if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
11644    if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
11645  echo $ac_n "(cached) $ac_c" 1>&6
11646else
11647  
11648      
11649      ac_ext=C
11650# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11651ac_cpp='$CXXCPP $CPPFLAGS'
11652ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11653ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11654cross_compiling=$ac_cv_prog_cxx_cross
11655
11656      cat > conftest.$ac_ext <<EOF
11657#line 11658 "configure"
11658#include "confdefs.h"
11659#include <math.h>
11660int main() {
11661 __builtin_sin(0);
11662; return 0; }
11663EOF
11664if { (eval echo configure:11665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11665  rm -rf conftest*
11666  glibcpp_cv_func___builtin_sin_use=yes
11667else
11668  echo "configure: failed program was:" >&5
11669  cat conftest.$ac_ext >&5
11670  rm -rf conftest*
11671  glibcpp_cv_func___builtin_sin_use=no
11672fi
11673rm -f conftest*
11674      ac_ext=c
11675# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11676ac_cpp='$CPP $CPPFLAGS'
11677ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11678ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11679cross_compiling=$ac_cv_prog_cc_cross
11680
11681    
11682fi
11683
11684  fi
11685  echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
11686  if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
11687    echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
11688echo "configure:11689: checking for __builtin_sin linkage" >&5
11689    if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
11690      if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
11691  echo $ac_n "(cached) $ac_c" 1>&6
11692else
11693  
11694        cat > conftest.$ac_ext <<EOF
11695#line 11696 "configure"
11696#include "confdefs.h"
11697#include <math.h>
11698int main() {
11699 __builtin_sin(0);
11700; return 0; }
11701EOF
11702if { (eval echo configure:11703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11703  rm -rf conftest*
11704  glibcpp_cv_func___builtin_sin_link=yes
11705else
11706  echo "configure: failed program was:" >&5
11707  cat conftest.$ac_ext >&5
11708  rm -rf conftest*
11709  glibcpp_cv_func___builtin_sin_link=no
11710fi
11711rm -f conftest*
11712      
11713fi
11714
11715    fi
11716    echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
11717    if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
11718      ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11719      cat >> confdefs.h <<EOF
11720#define ${ac_tr_func} 1
11721EOF
11722
11723    fi
11724  fi
11725
11726  
11727  echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
11728echo "configure:11729: checking for __builtin_sinl declaration" >&5
11729  if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
11730    if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
11731  echo $ac_n "(cached) $ac_c" 1>&6
11732else
11733  
11734      
11735      ac_ext=C
11736# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11737ac_cpp='$CXXCPP $CPPFLAGS'
11738ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11739ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11740cross_compiling=$ac_cv_prog_cxx_cross
11741
11742      cat > conftest.$ac_ext <<EOF
11743#line 11744 "configure"
11744#include "confdefs.h"
11745#include <math.h>
11746int main() {
11747 __builtin_sinl(0);
11748; return 0; }
11749EOF
11750if { (eval echo configure:11751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11751  rm -rf conftest*
11752  glibcpp_cv_func___builtin_sinl_use=yes
11753else
11754  echo "configure: failed program was:" >&5
11755  cat conftest.$ac_ext >&5
11756  rm -rf conftest*
11757  glibcpp_cv_func___builtin_sinl_use=no
11758fi
11759rm -f conftest*
11760      ac_ext=c
11761# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11762ac_cpp='$CPP $CPPFLAGS'
11763ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11764ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11765cross_compiling=$ac_cv_prog_cc_cross
11766
11767    
11768fi
11769
11770  fi
11771  echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
11772  if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
11773    echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
11774echo "configure:11775: checking for __builtin_sinl linkage" >&5
11775    if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
11776      if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
11777  echo $ac_n "(cached) $ac_c" 1>&6
11778else
11779  
11780        cat > conftest.$ac_ext <<EOF
11781#line 11782 "configure"
11782#include "confdefs.h"
11783#include <math.h>
11784int main() {
11785 __builtin_sinl(0);
11786; return 0; }
11787EOF
11788if { (eval echo configure:11789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11789  rm -rf conftest*
11790  glibcpp_cv_func___builtin_sinl_link=yes
11791else
11792  echo "configure: failed program was:" >&5
11793  cat conftest.$ac_ext >&5
11794  rm -rf conftest*
11795  glibcpp_cv_func___builtin_sinl_link=no
11796fi
11797rm -f conftest*
11798      
11799fi
11800
11801    fi
11802    echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
11803    if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
11804      ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11805      cat >> confdefs.h <<EOF
11806#define ${ac_tr_func} 1
11807EOF
11808
11809    fi
11810  fi
11811
11812
11813  
11814  echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
11815echo "configure:11816: checking for __builtin_cosf declaration" >&5
11816  if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
11817    if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
11818  echo $ac_n "(cached) $ac_c" 1>&6
11819else
11820  
11821      
11822      ac_ext=C
11823# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11824ac_cpp='$CXXCPP $CPPFLAGS'
11825ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11826ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11827cross_compiling=$ac_cv_prog_cxx_cross
11828
11829      cat > conftest.$ac_ext <<EOF
11830#line 11831 "configure"
11831#include "confdefs.h"
11832#include <math.h>
11833int main() {
11834 __builtin_cosf(0);
11835; return 0; }
11836EOF
11837if { (eval echo configure:11838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11838  rm -rf conftest*
11839  glibcpp_cv_func___builtin_cosf_use=yes
11840else
11841  echo "configure: failed program was:" >&5
11842  cat conftest.$ac_ext >&5
11843  rm -rf conftest*
11844  glibcpp_cv_func___builtin_cosf_use=no
11845fi
11846rm -f conftest*
11847      ac_ext=c
11848# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11849ac_cpp='$CPP $CPPFLAGS'
11850ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11851ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11852cross_compiling=$ac_cv_prog_cc_cross
11853
11854    
11855fi
11856
11857  fi
11858  echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
11859  if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
11860    echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
11861echo "configure:11862: checking for __builtin_cosf linkage" >&5
11862    if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
11863      if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
11864  echo $ac_n "(cached) $ac_c" 1>&6
11865else
11866  
11867        cat > conftest.$ac_ext <<EOF
11868#line 11869 "configure"
11869#include "confdefs.h"
11870#include <math.h>
11871int main() {
11872 __builtin_cosf(0);
11873; return 0; }
11874EOF
11875if { (eval echo configure:11876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11876  rm -rf conftest*
11877  glibcpp_cv_func___builtin_cosf_link=yes
11878else
11879  echo "configure: failed program was:" >&5
11880  cat conftest.$ac_ext >&5
11881  rm -rf conftest*
11882  glibcpp_cv_func___builtin_cosf_link=no
11883fi
11884rm -f conftest*
11885      
11886fi
11887
11888    fi
11889    echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
11890    if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
11891      ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11892      cat >> confdefs.h <<EOF
11893#define ${ac_tr_func} 1
11894EOF
11895
11896    fi
11897  fi
11898
11899  
11900  echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
11901echo "configure:11902: checking for __builtin_cos declaration" >&5
11902  if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
11903    if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
11904  echo $ac_n "(cached) $ac_c" 1>&6
11905else
11906  
11907      
11908      ac_ext=C
11909# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11910ac_cpp='$CXXCPP $CPPFLAGS'
11911ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11912ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11913cross_compiling=$ac_cv_prog_cxx_cross
11914
11915      cat > conftest.$ac_ext <<EOF
11916#line 11917 "configure"
11917#include "confdefs.h"
11918#include <math.h>
11919int main() {
11920 __builtin_cos(0);
11921; return 0; }
11922EOF
11923if { (eval echo configure:11924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11924  rm -rf conftest*
11925  glibcpp_cv_func___builtin_cos_use=yes
11926else
11927  echo "configure: failed program was:" >&5
11928  cat conftest.$ac_ext >&5
11929  rm -rf conftest*
11930  glibcpp_cv_func___builtin_cos_use=no
11931fi
11932rm -f conftest*
11933      ac_ext=c
11934# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11935ac_cpp='$CPP $CPPFLAGS'
11936ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11937ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11938cross_compiling=$ac_cv_prog_cc_cross
11939
11940    
11941fi
11942
11943  fi
11944  echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
11945  if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
11946    echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
11947echo "configure:11948: checking for __builtin_cos linkage" >&5
11948    if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
11949      if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
11950  echo $ac_n "(cached) $ac_c" 1>&6
11951else
11952  
11953        cat > conftest.$ac_ext <<EOF
11954#line 11955 "configure"
11955#include "confdefs.h"
11956#include <math.h>
11957int main() {
11958 __builtin_cos(0);
11959; return 0; }
11960EOF
11961if { (eval echo configure:11962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11962  rm -rf conftest*
11963  glibcpp_cv_func___builtin_cos_link=yes
11964else
11965  echo "configure: failed program was:" >&5
11966  cat conftest.$ac_ext >&5
11967  rm -rf conftest*
11968  glibcpp_cv_func___builtin_cos_link=no
11969fi
11970rm -f conftest*
11971      
11972fi
11973
11974    fi
11975    echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
11976    if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
11977      ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11978      cat >> confdefs.h <<EOF
11979#define ${ac_tr_func} 1
11980EOF
11981
11982    fi
11983  fi
11984
11985  
11986  echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
11987echo "configure:11988: checking for __builtin_cosl declaration" >&5
11988  if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
11989    if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
11990  echo $ac_n "(cached) $ac_c" 1>&6
11991else
11992  
11993      
11994      ac_ext=C
11995# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11996ac_cpp='$CXXCPP $CPPFLAGS'
11997ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11998ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11999cross_compiling=$ac_cv_prog_cxx_cross
12000
12001      cat > conftest.$ac_ext <<EOF
12002#line 12003 "configure"
12003#include "confdefs.h"
12004#include <math.h>
12005int main() {
12006 __builtin_cosl(0);
12007; return 0; }
12008EOF
12009if { (eval echo configure:12010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12010  rm -rf conftest*
12011  glibcpp_cv_func___builtin_cosl_use=yes
12012else
12013  echo "configure: failed program was:" >&5
12014  cat conftest.$ac_ext >&5
12015  rm -rf conftest*
12016  glibcpp_cv_func___builtin_cosl_use=no
12017fi
12018rm -f conftest*
12019      ac_ext=c
12020# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12021ac_cpp='$CPP $CPPFLAGS'
12022ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12023ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12024cross_compiling=$ac_cv_prog_cc_cross
12025
12026    
12027fi
12028
12029  fi
12030  echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
12031  if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
12032    echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
12033echo "configure:12034: checking for __builtin_cosl linkage" >&5
12034    if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
12035      if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
12036  echo $ac_n "(cached) $ac_c" 1>&6
12037else
12038  
12039        cat > conftest.$ac_ext <<EOF
12040#line 12041 "configure"
12041#include "confdefs.h"
12042#include <math.h>
12043int main() {
12044 __builtin_cosl(0);
12045; return 0; }
12046EOF
12047if { (eval echo configure:12048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12048  rm -rf conftest*
12049  glibcpp_cv_func___builtin_cosl_link=yes
12050else
12051  echo "configure: failed program was:" >&5
12052  cat conftest.$ac_ext >&5
12053  rm -rf conftest*
12054  glibcpp_cv_func___builtin_cosl_link=no
12055fi
12056rm -f conftest*
12057      
12058fi
12059
12060    fi
12061    echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
12062    if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
12063      ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12064      cat >> confdefs.h <<EOF
12065#define ${ac_tr_func} 1
12066EOF
12067
12068    fi
12069  fi
12070
12071
12072              dummyvar=no
12073  if test x$dummyvar = x"yes"; then
12074    cat >> confdefs.h <<\EOF
12075#define HAVE___BUILTIN_ABS 1
12076EOF
12077
12078    cat >> confdefs.h <<\EOF
12079#define HAVE___BUILTIN_LABS 1
12080EOF
12081
12082    cat >> confdefs.h <<\EOF
12083#define HAVE___BUILTIN_COS 1
12084EOF
12085
12086    cat >> confdefs.h <<\EOF
12087#define HAVE___BUILTIN_COSF 1
12088EOF
12089
12090    cat >> confdefs.h <<\EOF
12091#define HAVE___BUILTIN_COSL 1
12092EOF
12093
12094    cat >> confdefs.h <<\EOF
12095#define HAVE___BUILTIN_FABS 1
12096EOF
12097
12098    cat >> confdefs.h <<\EOF
12099#define HAVE___BUILTIN_FABSF 1
12100EOF
12101
12102    cat >> confdefs.h <<\EOF
12103#define HAVE___BUILTIN_FABSL 1
12104EOF
12105
12106    cat >> confdefs.h <<\EOF
12107#define HAVE___BUILTIN_SIN 1
12108EOF
12109
12110    cat >> confdefs.h <<\EOF
12111#define HAVE___BUILTIN_SINF 1
12112EOF
12113
12114    cat >> confdefs.h <<\EOF
12115#define HAVE___BUILTIN_SINL 1
12116EOF
12117
12118    cat >> confdefs.h <<\EOF
12119#define HAVE___BUILTIN_SQRT 1
12120EOF
12121
12122    cat >> confdefs.h <<\EOF
12123#define HAVE___BUILTIN_SQRTF 1
12124EOF
12125
12126    cat >> confdefs.h <<\EOF
12127#define HAVE___BUILTIN_SQRTL 1
12128EOF
12129
12130  fi
12131
12132  
12133  ac_test_CXXFLAGS="${CXXFLAGS+set}"
12134  ac_save_CXXFLAGS="$CXXFLAGS"
12135  CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
12136
12137    echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
12138echo "configure:12139: checking for sin in -lm" >&5
12139ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
12140if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12141  echo $ac_n "(cached) $ac_c" 1>&6
12142else
12143  ac_save_LIBS="$LIBS"
12144LIBS="-lm  $LIBS"
12145cat > conftest.$ac_ext <<EOF
12146#line 12147 "configure"
12147#include "confdefs.h"
12148/* Override any gcc2 internal prototype to avoid an error.  */
12149/* We use char because int might match the return type of a gcc2
12150    builtin and then its argument prototype would still apply.  */
12151char sin();
12152
12153int main() {
12154sin()
12155; return 0; }
12156EOF
12157if { (eval echo configure:12158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12158  rm -rf conftest*
12159  eval "ac_cv_lib_$ac_lib_var=yes"
12160else
12161  echo "configure: failed program was:" >&5
12162  cat conftest.$ac_ext >&5
12163  rm -rf conftest*
12164  eval "ac_cv_lib_$ac_lib_var=no"
12165fi
12166rm -f conftest*
12167LIBS="$ac_save_LIBS"
12168
12169fi
12170if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12171  echo "$ac_t""yes" 1>&6
12172  libm="-lm"
12173else
12174  echo "$ac_t""no" 1>&6
12175fi
12176
12177  ac_save_LIBS="$LIBS"
12178  LIBS="$LIBS $libm"
12179
12180    
12181  
12182  echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
12183echo "configure:12184: checking for isinf declaration" >&5
12184  if test x${glibcpp_cv_func_isinf_use+set} != xset; then
12185    if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
12186  echo $ac_n "(cached) $ac_c" 1>&6
12187else
12188  
12189      
12190      ac_ext=C
12191# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12192ac_cpp='$CXXCPP $CPPFLAGS'
12193ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12194ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12195cross_compiling=$ac_cv_prog_cxx_cross
12196
12197      cat > conftest.$ac_ext <<EOF
12198#line 12199 "configure"
12199#include "confdefs.h"
12200#include <math.h>
12201		      #ifdef HAVE_IEEEFP_H
12202		      #include <ieeefp.h>
12203		      #endif
12204		     
12205int main() {
12206 isinf(0);
12207; return 0; }
12208EOF
12209if { (eval echo configure:12210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12210  rm -rf conftest*
12211  glibcpp_cv_func_isinf_use=yes
12212else
12213  echo "configure: failed program was:" >&5
12214  cat conftest.$ac_ext >&5
12215  rm -rf conftest*
12216  glibcpp_cv_func_isinf_use=no
12217fi
12218rm -f conftest*
12219      ac_ext=c
12220# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12221ac_cpp='$CPP $CPPFLAGS'
12222ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12223ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12224cross_compiling=$ac_cv_prog_cc_cross
12225
12226    
12227fi
12228
12229  fi
12230  echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
12231
12232  if test x$glibcpp_cv_func_isinf_use = x"yes"; then
12233    for ac_func in isinf
12234do
12235echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12236echo "configure:12237: checking for $ac_func" >&5
12237if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12238  echo $ac_n "(cached) $ac_c" 1>&6
12239else
12240  cat > conftest.$ac_ext <<EOF
12241#line 12242 "configure"
12242#include "confdefs.h"
12243/* System header to define __stub macros and hopefully few prototypes,
12244    which can conflict with char $ac_func(); below.  */
12245#include <assert.h>
12246/* Override any gcc2 internal prototype to avoid an error.  */
12247/* We use char because int might match the return type of a gcc2
12248    builtin and then its argument prototype would still apply.  */
12249char $ac_func();
12250
12251int main() {
12252
12253/* The GNU C library defines this for functions which it implements
12254    to always fail with ENOSYS.  Some functions are actually named
12255    something starting with __ and the normal name is an alias.  */
12256#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12257choke me
12258#else
12259$ac_func();
12260#endif
12261
12262; return 0; }
12263EOF
12264if { (eval echo configure:12265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12265  rm -rf conftest*
12266  eval "ac_cv_func_$ac_func=yes"
12267else
12268  echo "configure: failed program was:" >&5
12269  cat conftest.$ac_ext >&5
12270  rm -rf conftest*
12271  eval "ac_cv_func_$ac_func=no"
12272fi
12273rm -f conftest*
12274fi
12275
12276if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12277  echo "$ac_t""yes" 1>&6
12278    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12279  cat >> confdefs.h <<EOF
12280#define $ac_tr_func 1
12281EOF
12282 
12283else
12284  echo "$ac_t""no" 1>&6
12285fi
12286done
12287    
12288  else
12289    
12290  echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
12291echo "configure:12292: checking for _isinf declaration" >&5
12292  if test x${glibcpp_cv_func__isinf_use+set} != xset; then
12293    if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
12294  echo $ac_n "(cached) $ac_c" 1>&6
12295else
12296  
12297      
12298      ac_ext=C
12299# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12300ac_cpp='$CXXCPP $CPPFLAGS'
12301ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12302ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12303cross_compiling=$ac_cv_prog_cxx_cross
12304
12305      cat > conftest.$ac_ext <<EOF
12306#line 12307 "configure"
12307#include "confdefs.h"
12308#include <math.h>
12309		      #ifdef HAVE_IEEEFP_H
12310		      #include <ieeefp.h>
12311		      #endif
12312		     
12313int main() {
12314 _isinf(0);
12315; return 0; }
12316EOF
12317if { (eval echo configure:12318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12318  rm -rf conftest*
12319  glibcpp_cv_func__isinf_use=yes
12320else
12321  echo "configure: failed program was:" >&5
12322  cat conftest.$ac_ext >&5
12323  rm -rf conftest*
12324  glibcpp_cv_func__isinf_use=no
12325fi
12326rm -f conftest*
12327      ac_ext=c
12328# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12329ac_cpp='$CPP $CPPFLAGS'
12330ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12331ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12332cross_compiling=$ac_cv_prog_cc_cross
12333
12334    
12335fi
12336
12337  fi
12338  echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
12339
12340    if test x$glibcpp_cv_func__isinf_use = x"yes"; then
12341      for ac_func in _isinf
12342do
12343echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12344echo "configure:12345: checking for $ac_func" >&5
12345if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12346  echo $ac_n "(cached) $ac_c" 1>&6
12347else
12348  cat > conftest.$ac_ext <<EOF
12349#line 12350 "configure"
12350#include "confdefs.h"
12351/* System header to define __stub macros and hopefully few prototypes,
12352    which can conflict with char $ac_func(); below.  */
12353#include <assert.h>
12354/* Override any gcc2 internal prototype to avoid an error.  */
12355/* We use char because int might match the return type of a gcc2
12356    builtin and then its argument prototype would still apply.  */
12357char $ac_func();
12358
12359int main() {
12360
12361/* The GNU C library defines this for functions which it implements
12362    to always fail with ENOSYS.  Some functions are actually named
12363    something starting with __ and the normal name is an alias.  */
12364#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12365choke me
12366#else
12367$ac_func();
12368#endif
12369
12370; return 0; }
12371EOF
12372if { (eval echo configure:12373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12373  rm -rf conftest*
12374  eval "ac_cv_func_$ac_func=yes"
12375else
12376  echo "configure: failed program was:" >&5
12377  cat conftest.$ac_ext >&5
12378  rm -rf conftest*
12379  eval "ac_cv_func_$ac_func=no"
12380fi
12381rm -f conftest*
12382fi
12383
12384if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12385  echo "$ac_t""yes" 1>&6
12386    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12387  cat >> confdefs.h <<EOF
12388#define $ac_tr_func 1
12389EOF
12390 
12391else
12392  echo "$ac_t""no" 1>&6
12393fi
12394done
12395    
12396    fi
12397  fi
12398
12399  
12400  
12401  echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
12402echo "configure:12403: checking for isnan declaration" >&5
12403  if test x${glibcpp_cv_func_isnan_use+set} != xset; then
12404    if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
12405  echo $ac_n "(cached) $ac_c" 1>&6
12406else
12407  
12408      
12409      ac_ext=C
12410# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12411ac_cpp='$CXXCPP $CPPFLAGS'
12412ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12413ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12414cross_compiling=$ac_cv_prog_cxx_cross
12415
12416      cat > conftest.$ac_ext <<EOF
12417#line 12418 "configure"
12418#include "confdefs.h"
12419#include <math.h>
12420		      #ifdef HAVE_IEEEFP_H
12421		      #include <ieeefp.h>
12422		      #endif
12423		     
12424int main() {
12425 isnan(0);
12426; return 0; }
12427EOF
12428if { (eval echo configure:12429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12429  rm -rf conftest*
12430  glibcpp_cv_func_isnan_use=yes
12431else
12432  echo "configure: failed program was:" >&5
12433  cat conftest.$ac_ext >&5
12434  rm -rf conftest*
12435  glibcpp_cv_func_isnan_use=no
12436fi
12437rm -f conftest*
12438      ac_ext=c
12439# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12440ac_cpp='$CPP $CPPFLAGS'
12441ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12442ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12443cross_compiling=$ac_cv_prog_cc_cross
12444
12445    
12446fi
12447
12448  fi
12449  echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
12450
12451  if test x$glibcpp_cv_func_isnan_use = x"yes"; then
12452    for ac_func in isnan
12453do
12454echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12455echo "configure:12456: checking for $ac_func" >&5
12456if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12457  echo $ac_n "(cached) $ac_c" 1>&6
12458else
12459  cat > conftest.$ac_ext <<EOF
12460#line 12461 "configure"
12461#include "confdefs.h"
12462/* System header to define __stub macros and hopefully few prototypes,
12463    which can conflict with char $ac_func(); below.  */
12464#include <assert.h>
12465/* Override any gcc2 internal prototype to avoid an error.  */
12466/* We use char because int might match the return type of a gcc2
12467    builtin and then its argument prototype would still apply.  */
12468char $ac_func();
12469
12470int main() {
12471
12472/* The GNU C library defines this for functions which it implements
12473    to always fail with ENOSYS.  Some functions are actually named
12474    something starting with __ and the normal name is an alias.  */
12475#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12476choke me
12477#else
12478$ac_func();
12479#endif
12480
12481; return 0; }
12482EOF
12483if { (eval echo configure:12484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12484  rm -rf conftest*
12485  eval "ac_cv_func_$ac_func=yes"
12486else
12487  echo "configure: failed program was:" >&5
12488  cat conftest.$ac_ext >&5
12489  rm -rf conftest*
12490  eval "ac_cv_func_$ac_func=no"
12491fi
12492rm -f conftest*
12493fi
12494
12495if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12496  echo "$ac_t""yes" 1>&6
12497    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12498  cat >> confdefs.h <<EOF
12499#define $ac_tr_func 1
12500EOF
12501 
12502else
12503  echo "$ac_t""no" 1>&6
12504fi
12505done
12506    
12507  else
12508    
12509  echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
12510echo "configure:12511: checking for _isnan declaration" >&5
12511  if test x${glibcpp_cv_func__isnan_use+set} != xset; then
12512    if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
12513  echo $ac_n "(cached) $ac_c" 1>&6
12514else
12515  
12516      
12517      ac_ext=C
12518# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12519ac_cpp='$CXXCPP $CPPFLAGS'
12520ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12521ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12522cross_compiling=$ac_cv_prog_cxx_cross
12523
12524      cat > conftest.$ac_ext <<EOF
12525#line 12526 "configure"
12526#include "confdefs.h"
12527#include <math.h>
12528		      #ifdef HAVE_IEEEFP_H
12529		      #include <ieeefp.h>
12530		      #endif
12531		     
12532int main() {
12533 _isnan(0);
12534; return 0; }
12535EOF
12536if { (eval echo configure:12537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12537  rm -rf conftest*
12538  glibcpp_cv_func__isnan_use=yes
12539else
12540  echo "configure: failed program was:" >&5
12541  cat conftest.$ac_ext >&5
12542  rm -rf conftest*
12543  glibcpp_cv_func__isnan_use=no
12544fi
12545rm -f conftest*
12546      ac_ext=c
12547# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12548ac_cpp='$CPP $CPPFLAGS'
12549ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12550ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12551cross_compiling=$ac_cv_prog_cc_cross
12552
12553    
12554fi
12555
12556  fi
12557  echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
12558
12559    if test x$glibcpp_cv_func__isnan_use = x"yes"; then
12560      for ac_func in _isnan
12561do
12562echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12563echo "configure:12564: checking for $ac_func" >&5
12564if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12565  echo $ac_n "(cached) $ac_c" 1>&6
12566else
12567  cat > conftest.$ac_ext <<EOF
12568#line 12569 "configure"
12569#include "confdefs.h"
12570/* System header to define __stub macros and hopefully few prototypes,
12571    which can conflict with char $ac_func(); below.  */
12572#include <assert.h>
12573/* Override any gcc2 internal prototype to avoid an error.  */
12574/* We use char because int might match the return type of a gcc2
12575    builtin and then its argument prototype would still apply.  */
12576char $ac_func();
12577
12578int main() {
12579
12580/* The GNU C library defines this for functions which it implements
12581    to always fail with ENOSYS.  Some functions are actually named
12582    something starting with __ and the normal name is an alias.  */
12583#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12584choke me
12585#else
12586$ac_func();
12587#endif
12588
12589; return 0; }
12590EOF
12591if { (eval echo configure:12592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12592  rm -rf conftest*
12593  eval "ac_cv_func_$ac_func=yes"
12594else
12595  echo "configure: failed program was:" >&5
12596  cat conftest.$ac_ext >&5
12597  rm -rf conftest*
12598  eval "ac_cv_func_$ac_func=no"
12599fi
12600rm -f conftest*
12601fi
12602
12603if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12604  echo "$ac_t""yes" 1>&6
12605    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12606  cat >> confdefs.h <<EOF
12607#define $ac_tr_func 1
12608EOF
12609 
12610else
12611  echo "$ac_t""no" 1>&6
12612fi
12613done
12614    
12615    fi
12616  fi
12617
12618  
12619  
12620  echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
12621echo "configure:12622: checking for finite declaration" >&5
12622  if test x${glibcpp_cv_func_finite_use+set} != xset; then
12623    if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
12624  echo $ac_n "(cached) $ac_c" 1>&6
12625else
12626  
12627      
12628      ac_ext=C
12629# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12630ac_cpp='$CXXCPP $CPPFLAGS'
12631ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12632ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12633cross_compiling=$ac_cv_prog_cxx_cross
12634
12635      cat > conftest.$ac_ext <<EOF
12636#line 12637 "configure"
12637#include "confdefs.h"
12638#include <math.h>
12639		      #ifdef HAVE_IEEEFP_H
12640		      #include <ieeefp.h>
12641		      #endif
12642		     
12643int main() {
12644 finite(0);
12645; return 0; }
12646EOF
12647if { (eval echo configure:12648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12648  rm -rf conftest*
12649  glibcpp_cv_func_finite_use=yes
12650else
12651  echo "configure: failed program was:" >&5
12652  cat conftest.$ac_ext >&5
12653  rm -rf conftest*
12654  glibcpp_cv_func_finite_use=no
12655fi
12656rm -f conftest*
12657      ac_ext=c
12658# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12659ac_cpp='$CPP $CPPFLAGS'
12660ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12661ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12662cross_compiling=$ac_cv_prog_cc_cross
12663
12664    
12665fi
12666
12667  fi
12668  echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
12669
12670  if test x$glibcpp_cv_func_finite_use = x"yes"; then
12671    for ac_func in finite
12672do
12673echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12674echo "configure:12675: checking for $ac_func" >&5
12675if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12676  echo $ac_n "(cached) $ac_c" 1>&6
12677else
12678  cat > conftest.$ac_ext <<EOF
12679#line 12680 "configure"
12680#include "confdefs.h"
12681/* System header to define __stub macros and hopefully few prototypes,
12682    which can conflict with char $ac_func(); below.  */
12683#include <assert.h>
12684/* Override any gcc2 internal prototype to avoid an error.  */
12685/* We use char because int might match the return type of a gcc2
12686    builtin and then its argument prototype would still apply.  */
12687char $ac_func();
12688
12689int main() {
12690
12691/* The GNU C library defines this for functions which it implements
12692    to always fail with ENOSYS.  Some functions are actually named
12693    something starting with __ and the normal name is an alias.  */
12694#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12695choke me
12696#else
12697$ac_func();
12698#endif
12699
12700; return 0; }
12701EOF
12702if { (eval echo configure:12703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12703  rm -rf conftest*
12704  eval "ac_cv_func_$ac_func=yes"
12705else
12706  echo "configure: failed program was:" >&5
12707  cat conftest.$ac_ext >&5
12708  rm -rf conftest*
12709  eval "ac_cv_func_$ac_func=no"
12710fi
12711rm -f conftest*
12712fi
12713
12714if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12715  echo "$ac_t""yes" 1>&6
12716    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12717  cat >> confdefs.h <<EOF
12718#define $ac_tr_func 1
12719EOF
12720 
12721else
12722  echo "$ac_t""no" 1>&6
12723fi
12724done
12725    
12726  else
12727    
12728  echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
12729echo "configure:12730: checking for _finite declaration" >&5
12730  if test x${glibcpp_cv_func__finite_use+set} != xset; then
12731    if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
12732  echo $ac_n "(cached) $ac_c" 1>&6
12733else
12734  
12735      
12736      ac_ext=C
12737# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12738ac_cpp='$CXXCPP $CPPFLAGS'
12739ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12740ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12741cross_compiling=$ac_cv_prog_cxx_cross
12742
12743      cat > conftest.$ac_ext <<EOF
12744#line 12745 "configure"
12745#include "confdefs.h"
12746#include <math.h>
12747		      #ifdef HAVE_IEEEFP_H
12748		      #include <ieeefp.h>
12749		      #endif
12750		     
12751int main() {
12752 _finite(0);
12753; return 0; }
12754EOF
12755if { (eval echo configure:12756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12756  rm -rf conftest*
12757  glibcpp_cv_func__finite_use=yes
12758else
12759  echo "configure: failed program was:" >&5
12760  cat conftest.$ac_ext >&5
12761  rm -rf conftest*
12762  glibcpp_cv_func__finite_use=no
12763fi
12764rm -f conftest*
12765      ac_ext=c
12766# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12767ac_cpp='$CPP $CPPFLAGS'
12768ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12769ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12770cross_compiling=$ac_cv_prog_cc_cross
12771
12772    
12773fi
12774
12775  fi
12776  echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
12777
12778    if test x$glibcpp_cv_func__finite_use = x"yes"; then
12779      for ac_func in _finite
12780do
12781echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12782echo "configure:12783: checking for $ac_func" >&5
12783if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12784  echo $ac_n "(cached) $ac_c" 1>&6
12785else
12786  cat > conftest.$ac_ext <<EOF
12787#line 12788 "configure"
12788#include "confdefs.h"
12789/* System header to define __stub macros and hopefully few prototypes,
12790    which can conflict with char $ac_func(); below.  */
12791#include <assert.h>
12792/* Override any gcc2 internal prototype to avoid an error.  */
12793/* We use char because int might match the return type of a gcc2
12794    builtin and then its argument prototype would still apply.  */
12795char $ac_func();
12796
12797int main() {
12798
12799/* The GNU C library defines this for functions which it implements
12800    to always fail with ENOSYS.  Some functions are actually named
12801    something starting with __ and the normal name is an alias.  */
12802#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12803choke me
12804#else
12805$ac_func();
12806#endif
12807
12808; return 0; }
12809EOF
12810if { (eval echo configure:12811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12811  rm -rf conftest*
12812  eval "ac_cv_func_$ac_func=yes"
12813else
12814  echo "configure: failed program was:" >&5
12815  cat conftest.$ac_ext >&5
12816  rm -rf conftest*
12817  eval "ac_cv_func_$ac_func=no"
12818fi
12819rm -f conftest*
12820fi
12821
12822if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12823  echo "$ac_t""yes" 1>&6
12824    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12825  cat >> confdefs.h <<EOF
12826#define $ac_tr_func 1
12827EOF
12828 
12829else
12830  echo "$ac_t""no" 1>&6
12831fi
12832done
12833    
12834    fi
12835  fi
12836
12837  
12838  
12839  echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
12840echo "configure:12841: checking for copysign declaration" >&5
12841  if test x${glibcpp_cv_func_copysign_use+set} != xset; then
12842    if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
12843  echo $ac_n "(cached) $ac_c" 1>&6
12844else
12845  
12846      
12847      ac_ext=C
12848# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12849ac_cpp='$CXXCPP $CPPFLAGS'
12850ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12851ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12852cross_compiling=$ac_cv_prog_cxx_cross
12853
12854      cat > conftest.$ac_ext <<EOF
12855#line 12856 "configure"
12856#include "confdefs.h"
12857#include <math.h>
12858int main() {
12859 copysign(0, 0);
12860; return 0; }
12861EOF
12862if { (eval echo configure:12863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12863  rm -rf conftest*
12864  glibcpp_cv_func_copysign_use=yes
12865else
12866  echo "configure: failed program was:" >&5
12867  cat conftest.$ac_ext >&5
12868  rm -rf conftest*
12869  glibcpp_cv_func_copysign_use=no
12870fi
12871rm -f conftest*
12872      ac_ext=c
12873# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12874ac_cpp='$CPP $CPPFLAGS'
12875ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12876ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12877cross_compiling=$ac_cv_prog_cc_cross
12878
12879    
12880fi
12881
12882  fi
12883  echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
12884
12885  if test x$glibcpp_cv_func_copysign_use = x"yes"; then
12886    for ac_func in copysign
12887do
12888echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12889echo "configure:12890: checking for $ac_func" >&5
12890if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12891  echo $ac_n "(cached) $ac_c" 1>&6
12892else
12893  cat > conftest.$ac_ext <<EOF
12894#line 12895 "configure"
12895#include "confdefs.h"
12896/* System header to define __stub macros and hopefully few prototypes,
12897    which can conflict with char $ac_func(); below.  */
12898#include <assert.h>
12899/* Override any gcc2 internal prototype to avoid an error.  */
12900/* We use char because int might match the return type of a gcc2
12901    builtin and then its argument prototype would still apply.  */
12902char $ac_func();
12903
12904int main() {
12905
12906/* The GNU C library defines this for functions which it implements
12907    to always fail with ENOSYS.  Some functions are actually named
12908    something starting with __ and the normal name is an alias.  */
12909#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12910choke me
12911#else
12912$ac_func();
12913#endif
12914
12915; return 0; }
12916EOF
12917if { (eval echo configure:12918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12918  rm -rf conftest*
12919  eval "ac_cv_func_$ac_func=yes"
12920else
12921  echo "configure: failed program was:" >&5
12922  cat conftest.$ac_ext >&5
12923  rm -rf conftest*
12924  eval "ac_cv_func_$ac_func=no"
12925fi
12926rm -f conftest*
12927fi
12928
12929if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12930  echo "$ac_t""yes" 1>&6
12931    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12932  cat >> confdefs.h <<EOF
12933#define $ac_tr_func 1
12934EOF
12935 
12936else
12937  echo "$ac_t""no" 1>&6
12938fi
12939done
12940    
12941  else
12942    
12943  echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
12944echo "configure:12945: checking for _copysign declaration" >&5
12945  if test x${glibcpp_cv_func__copysign_use+set} != xset; then
12946    if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
12947  echo $ac_n "(cached) $ac_c" 1>&6
12948else
12949  
12950      
12951      ac_ext=C
12952# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12953ac_cpp='$CXXCPP $CPPFLAGS'
12954ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12955ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12956cross_compiling=$ac_cv_prog_cxx_cross
12957
12958      cat > conftest.$ac_ext <<EOF
12959#line 12960 "configure"
12960#include "confdefs.h"
12961#include <math.h>
12962int main() {
12963 _copysign(0, 0);
12964; return 0; }
12965EOF
12966if { (eval echo configure:12967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12967  rm -rf conftest*
12968  glibcpp_cv_func__copysign_use=yes
12969else
12970  echo "configure: failed program was:" >&5
12971  cat conftest.$ac_ext >&5
12972  rm -rf conftest*
12973  glibcpp_cv_func__copysign_use=no
12974fi
12975rm -f conftest*
12976      ac_ext=c
12977# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12978ac_cpp='$CPP $CPPFLAGS'
12979ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12980ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12981cross_compiling=$ac_cv_prog_cc_cross
12982
12983    
12984fi
12985
12986  fi
12987  echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
12988
12989    if test x$glibcpp_cv_func__copysign_use = x"yes"; then
12990      for ac_func in _copysign
12991do
12992echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12993echo "configure:12994: checking for $ac_func" >&5
12994if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12995  echo $ac_n "(cached) $ac_c" 1>&6
12996else
12997  cat > conftest.$ac_ext <<EOF
12998#line 12999 "configure"
12999#include "confdefs.h"
13000/* System header to define __stub macros and hopefully few prototypes,
13001    which can conflict with char $ac_func(); below.  */
13002#include <assert.h>
13003/* Override any gcc2 internal prototype to avoid an error.  */
13004/* We use char because int might match the return type of a gcc2
13005    builtin and then its argument prototype would still apply.  */
13006char $ac_func();
13007
13008int main() {
13009
13010/* The GNU C library defines this for functions which it implements
13011    to always fail with ENOSYS.  Some functions are actually named
13012    something starting with __ and the normal name is an alias.  */
13013#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13014choke me
13015#else
13016$ac_func();
13017#endif
13018
13019; return 0; }
13020EOF
13021if { (eval echo configure:13022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13022  rm -rf conftest*
13023  eval "ac_cv_func_$ac_func=yes"
13024else
13025  echo "configure: failed program was:" >&5
13026  cat conftest.$ac_ext >&5
13027  rm -rf conftest*
13028  eval "ac_cv_func_$ac_func=no"
13029fi
13030rm -f conftest*
13031fi
13032
13033if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13034  echo "$ac_t""yes" 1>&6
13035    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13036  cat >> confdefs.h <<EOF
13037#define $ac_tr_func 1
13038EOF
13039 
13040else
13041  echo "$ac_t""no" 1>&6
13042fi
13043done
13044    
13045    fi
13046  fi
13047
13048  
13049  
13050  echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
13051echo "configure:13052: checking for sincos declaration" >&5
13052  if test x${glibcpp_cv_func_sincos_use+set} != xset; then
13053    if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
13054  echo $ac_n "(cached) $ac_c" 1>&6
13055else
13056  
13057      
13058      ac_ext=C
13059# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13060ac_cpp='$CXXCPP $CPPFLAGS'
13061ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13062ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13063cross_compiling=$ac_cv_prog_cxx_cross
13064
13065      cat > conftest.$ac_ext <<EOF
13066#line 13067 "configure"
13067#include "confdefs.h"
13068#include <math.h>
13069int main() {
13070 sincos(0, 0, 0);
13071; return 0; }
13072EOF
13073if { (eval echo configure:13074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13074  rm -rf conftest*
13075  glibcpp_cv_func_sincos_use=yes
13076else
13077  echo "configure: failed program was:" >&5
13078  cat conftest.$ac_ext >&5
13079  rm -rf conftest*
13080  glibcpp_cv_func_sincos_use=no
13081fi
13082rm -f conftest*
13083      ac_ext=c
13084# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13085ac_cpp='$CPP $CPPFLAGS'
13086ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13087ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13088cross_compiling=$ac_cv_prog_cc_cross
13089
13090    
13091fi
13092
13093  fi
13094  echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
13095
13096  if test x$glibcpp_cv_func_sincos_use = x"yes"; then
13097    for ac_func in sincos
13098do
13099echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13100echo "configure:13101: checking for $ac_func" >&5
13101if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13102  echo $ac_n "(cached) $ac_c" 1>&6
13103else
13104  cat > conftest.$ac_ext <<EOF
13105#line 13106 "configure"
13106#include "confdefs.h"
13107/* System header to define __stub macros and hopefully few prototypes,
13108    which can conflict with char $ac_func(); below.  */
13109#include <assert.h>
13110/* Override any gcc2 internal prototype to avoid an error.  */
13111/* We use char because int might match the return type of a gcc2
13112    builtin and then its argument prototype would still apply.  */
13113char $ac_func();
13114
13115int main() {
13116
13117/* The GNU C library defines this for functions which it implements
13118    to always fail with ENOSYS.  Some functions are actually named
13119    something starting with __ and the normal name is an alias.  */
13120#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13121choke me
13122#else
13123$ac_func();
13124#endif
13125
13126; return 0; }
13127EOF
13128if { (eval echo configure:13129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13129  rm -rf conftest*
13130  eval "ac_cv_func_$ac_func=yes"
13131else
13132  echo "configure: failed program was:" >&5
13133  cat conftest.$ac_ext >&5
13134  rm -rf conftest*
13135  eval "ac_cv_func_$ac_func=no"
13136fi
13137rm -f conftest*
13138fi
13139
13140if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13141  echo "$ac_t""yes" 1>&6
13142    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13143  cat >> confdefs.h <<EOF
13144#define $ac_tr_func 1
13145EOF
13146 
13147else
13148  echo "$ac_t""no" 1>&6
13149fi
13150done
13151    
13152  else
13153    
13154  echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
13155echo "configure:13156: checking for _sincos declaration" >&5
13156  if test x${glibcpp_cv_func__sincos_use+set} != xset; then
13157    if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
13158  echo $ac_n "(cached) $ac_c" 1>&6
13159else
13160  
13161      
13162      ac_ext=C
13163# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13164ac_cpp='$CXXCPP $CPPFLAGS'
13165ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13166ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13167cross_compiling=$ac_cv_prog_cxx_cross
13168
13169      cat > conftest.$ac_ext <<EOF
13170#line 13171 "configure"
13171#include "confdefs.h"
13172#include <math.h>
13173int main() {
13174 _sincos(0, 0, 0);
13175; return 0; }
13176EOF
13177if { (eval echo configure:13178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13178  rm -rf conftest*
13179  glibcpp_cv_func__sincos_use=yes
13180else
13181  echo "configure: failed program was:" >&5
13182  cat conftest.$ac_ext >&5
13183  rm -rf conftest*
13184  glibcpp_cv_func__sincos_use=no
13185fi
13186rm -f conftest*
13187      ac_ext=c
13188# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13189ac_cpp='$CPP $CPPFLAGS'
13190ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13191ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13192cross_compiling=$ac_cv_prog_cc_cross
13193
13194    
13195fi
13196
13197  fi
13198  echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
13199
13200    if test x$glibcpp_cv_func__sincos_use = x"yes"; then
13201      for ac_func in _sincos
13202do
13203echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13204echo "configure:13205: checking for $ac_func" >&5
13205if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13206  echo $ac_n "(cached) $ac_c" 1>&6
13207else
13208  cat > conftest.$ac_ext <<EOF
13209#line 13210 "configure"
13210#include "confdefs.h"
13211/* System header to define __stub macros and hopefully few prototypes,
13212    which can conflict with char $ac_func(); below.  */
13213#include <assert.h>
13214/* Override any gcc2 internal prototype to avoid an error.  */
13215/* We use char because int might match the return type of a gcc2
13216    builtin and then its argument prototype would still apply.  */
13217char $ac_func();
13218
13219int main() {
13220
13221/* The GNU C library defines this for functions which it implements
13222    to always fail with ENOSYS.  Some functions are actually named
13223    something starting with __ and the normal name is an alias.  */
13224#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13225choke me
13226#else
13227$ac_func();
13228#endif
13229
13230; return 0; }
13231EOF
13232if { (eval echo configure:13233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13233  rm -rf conftest*
13234  eval "ac_cv_func_$ac_func=yes"
13235else
13236  echo "configure: failed program was:" >&5
13237  cat conftest.$ac_ext >&5
13238  rm -rf conftest*
13239  eval "ac_cv_func_$ac_func=no"
13240fi
13241rm -f conftest*
13242fi
13243
13244if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13245  echo "$ac_t""yes" 1>&6
13246    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13247  cat >> confdefs.h <<EOF
13248#define $ac_tr_func 1
13249EOF
13250 
13251else
13252  echo "$ac_t""no" 1>&6
13253fi
13254done
13255    
13256    fi
13257  fi
13258
13259  
13260  
13261  echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
13262echo "configure:13263: checking for fpclass declaration" >&5
13263  if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
13264    if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
13265  echo $ac_n "(cached) $ac_c" 1>&6
13266else
13267  
13268      
13269      ac_ext=C
13270# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13271ac_cpp='$CXXCPP $CPPFLAGS'
13272ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13273ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13274cross_compiling=$ac_cv_prog_cxx_cross
13275
13276      cat > conftest.$ac_ext <<EOF
13277#line 13278 "configure"
13278#include "confdefs.h"
13279#include <math.h>
13280		      #ifdef HAVE_IEEEFP_H
13281		      #include <ieeefp.h>
13282		      #endif
13283		     
13284int main() {
13285 fpclass(0);
13286; return 0; }
13287EOF
13288if { (eval echo configure:13289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13289  rm -rf conftest*
13290  glibcpp_cv_func_fpclass_use=yes
13291else
13292  echo "configure: failed program was:" >&5
13293  cat conftest.$ac_ext >&5
13294  rm -rf conftest*
13295  glibcpp_cv_func_fpclass_use=no
13296fi
13297rm -f conftest*
13298      ac_ext=c
13299# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13300ac_cpp='$CPP $CPPFLAGS'
13301ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13302ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13303cross_compiling=$ac_cv_prog_cc_cross
13304
13305    
13306fi
13307
13308  fi
13309  echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
13310
13311  if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
13312    for ac_func in fpclass
13313do
13314echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13315echo "configure:13316: checking for $ac_func" >&5
13316if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13317  echo $ac_n "(cached) $ac_c" 1>&6
13318else
13319  cat > conftest.$ac_ext <<EOF
13320#line 13321 "configure"
13321#include "confdefs.h"
13322/* System header to define __stub macros and hopefully few prototypes,
13323    which can conflict with char $ac_func(); below.  */
13324#include <assert.h>
13325/* Override any gcc2 internal prototype to avoid an error.  */
13326/* We use char because int might match the return type of a gcc2
13327    builtin and then its argument prototype would still apply.  */
13328char $ac_func();
13329
13330int main() {
13331
13332/* The GNU C library defines this for functions which it implements
13333    to always fail with ENOSYS.  Some functions are actually named
13334    something starting with __ and the normal name is an alias.  */
13335#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13336choke me
13337#else
13338$ac_func();
13339#endif
13340
13341; return 0; }
13342EOF
13343if { (eval echo configure:13344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13344  rm -rf conftest*
13345  eval "ac_cv_func_$ac_func=yes"
13346else
13347  echo "configure: failed program was:" >&5
13348  cat conftest.$ac_ext >&5
13349  rm -rf conftest*
13350  eval "ac_cv_func_$ac_func=no"
13351fi
13352rm -f conftest*
13353fi
13354
13355if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13356  echo "$ac_t""yes" 1>&6
13357    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13358  cat >> confdefs.h <<EOF
13359#define $ac_tr_func 1
13360EOF
13361 
13362else
13363  echo "$ac_t""no" 1>&6
13364fi
13365done
13366    
13367  else
13368    
13369  echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
13370echo "configure:13371: checking for _fpclass declaration" >&5
13371  if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
13372    if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
13373  echo $ac_n "(cached) $ac_c" 1>&6
13374else
13375  
13376      
13377      ac_ext=C
13378# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13379ac_cpp='$CXXCPP $CPPFLAGS'
13380ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13381ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13382cross_compiling=$ac_cv_prog_cxx_cross
13383
13384      cat > conftest.$ac_ext <<EOF
13385#line 13386 "configure"
13386#include "confdefs.h"
13387#include <math.h>
13388		      #ifdef HAVE_IEEEFP_H
13389		      #include <ieeefp.h>
13390		      #endif
13391		     
13392int main() {
13393 _fpclass(0);
13394; return 0; }
13395EOF
13396if { (eval echo configure:13397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13397  rm -rf conftest*
13398  glibcpp_cv_func__fpclass_use=yes
13399else
13400  echo "configure: failed program was:" >&5
13401  cat conftest.$ac_ext >&5
13402  rm -rf conftest*
13403  glibcpp_cv_func__fpclass_use=no
13404fi
13405rm -f conftest*
13406      ac_ext=c
13407# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13408ac_cpp='$CPP $CPPFLAGS'
13409ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13410ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13411cross_compiling=$ac_cv_prog_cc_cross
13412
13413    
13414fi
13415
13416  fi
13417  echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
13418
13419    if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
13420      for ac_func in _fpclass
13421do
13422echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13423echo "configure:13424: checking for $ac_func" >&5
13424if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13425  echo $ac_n "(cached) $ac_c" 1>&6
13426else
13427  cat > conftest.$ac_ext <<EOF
13428#line 13429 "configure"
13429#include "confdefs.h"
13430/* System header to define __stub macros and hopefully few prototypes,
13431    which can conflict with char $ac_func(); below.  */
13432#include <assert.h>
13433/* Override any gcc2 internal prototype to avoid an error.  */
13434/* We use char because int might match the return type of a gcc2
13435    builtin and then its argument prototype would still apply.  */
13436char $ac_func();
13437
13438int main() {
13439
13440/* The GNU C library defines this for functions which it implements
13441    to always fail with ENOSYS.  Some functions are actually named
13442    something starting with __ and the normal name is an alias.  */
13443#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13444choke me
13445#else
13446$ac_func();
13447#endif
13448
13449; return 0; }
13450EOF
13451if { (eval echo configure:13452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13452  rm -rf conftest*
13453  eval "ac_cv_func_$ac_func=yes"
13454else
13455  echo "configure: failed program was:" >&5
13456  cat conftest.$ac_ext >&5
13457  rm -rf conftest*
13458  eval "ac_cv_func_$ac_func=no"
13459fi
13460rm -f conftest*
13461fi
13462
13463if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13464  echo "$ac_t""yes" 1>&6
13465    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13466  cat >> confdefs.h <<EOF
13467#define $ac_tr_func 1
13468EOF
13469 
13470else
13471  echo "$ac_t""no" 1>&6
13472fi
13473done
13474    
13475    fi
13476  fi
13477
13478  
13479  
13480  echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
13481echo "configure:13482: checking for qfpclass declaration" >&5
13482  if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
13483    if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
13484  echo $ac_n "(cached) $ac_c" 1>&6
13485else
13486  
13487      
13488      ac_ext=C
13489# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13490ac_cpp='$CXXCPP $CPPFLAGS'
13491ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13492ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13493cross_compiling=$ac_cv_prog_cxx_cross
13494
13495      cat > conftest.$ac_ext <<EOF
13496#line 13497 "configure"
13497#include "confdefs.h"
13498#include <math.h>
13499		      #ifdef HAVE_IEEEFP_H
13500		      #include <ieeefp.h>
13501		      #endif
13502		     
13503int main() {
13504 qfpclass(0);
13505; return 0; }
13506EOF
13507if { (eval echo configure:13508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13508  rm -rf conftest*
13509  glibcpp_cv_func_qfpclass_use=yes
13510else
13511  echo "configure: failed program was:" >&5
13512  cat conftest.$ac_ext >&5
13513  rm -rf conftest*
13514  glibcpp_cv_func_qfpclass_use=no
13515fi
13516rm -f conftest*
13517      ac_ext=c
13518# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13519ac_cpp='$CPP $CPPFLAGS'
13520ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13521ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13522cross_compiling=$ac_cv_prog_cc_cross
13523
13524    
13525fi
13526
13527  fi
13528  echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
13529
13530  if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
13531    for ac_func in qfpclass
13532do
13533echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13534echo "configure:13535: checking for $ac_func" >&5
13535if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13536  echo $ac_n "(cached) $ac_c" 1>&6
13537else
13538  cat > conftest.$ac_ext <<EOF
13539#line 13540 "configure"
13540#include "confdefs.h"
13541/* System header to define __stub macros and hopefully few prototypes,
13542    which can conflict with char $ac_func(); below.  */
13543#include <assert.h>
13544/* Override any gcc2 internal prototype to avoid an error.  */
13545/* We use char because int might match the return type of a gcc2
13546    builtin and then its argument prototype would still apply.  */
13547char $ac_func();
13548
13549int main() {
13550
13551/* The GNU C library defines this for functions which it implements
13552    to always fail with ENOSYS.  Some functions are actually named
13553    something starting with __ and the normal name is an alias.  */
13554#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13555choke me
13556#else
13557$ac_func();
13558#endif
13559
13560; return 0; }
13561EOF
13562if { (eval echo configure:13563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13563  rm -rf conftest*
13564  eval "ac_cv_func_$ac_func=yes"
13565else
13566  echo "configure: failed program was:" >&5
13567  cat conftest.$ac_ext >&5
13568  rm -rf conftest*
13569  eval "ac_cv_func_$ac_func=no"
13570fi
13571rm -f conftest*
13572fi
13573
13574if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13575  echo "$ac_t""yes" 1>&6
13576    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13577  cat >> confdefs.h <<EOF
13578#define $ac_tr_func 1
13579EOF
13580 
13581else
13582  echo "$ac_t""no" 1>&6
13583fi
13584done
13585    
13586  else
13587    
13588  echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
13589echo "configure:13590: checking for _qfpclass declaration" >&5
13590  if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
13591    if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
13592  echo $ac_n "(cached) $ac_c" 1>&6
13593else
13594  
13595      
13596      ac_ext=C
13597# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13598ac_cpp='$CXXCPP $CPPFLAGS'
13599ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13600ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13601cross_compiling=$ac_cv_prog_cxx_cross
13602
13603      cat > conftest.$ac_ext <<EOF
13604#line 13605 "configure"
13605#include "confdefs.h"
13606#include <math.h>
13607		      #ifdef HAVE_IEEEFP_H
13608		      #include <ieeefp.h>
13609		      #endif
13610		     
13611int main() {
13612 _qfpclass(0);
13613; return 0; }
13614EOF
13615if { (eval echo configure:13616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13616  rm -rf conftest*
13617  glibcpp_cv_func__qfpclass_use=yes
13618else
13619  echo "configure: failed program was:" >&5
13620  cat conftest.$ac_ext >&5
13621  rm -rf conftest*
13622  glibcpp_cv_func__qfpclass_use=no
13623fi
13624rm -f conftest*
13625      ac_ext=c
13626# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13627ac_cpp='$CPP $CPPFLAGS'
13628ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13629ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13630cross_compiling=$ac_cv_prog_cc_cross
13631
13632    
13633fi
13634
13635  fi
13636  echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
13637
13638    if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
13639      for ac_func in _qfpclass
13640do
13641echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13642echo "configure:13643: checking for $ac_func" >&5
13643if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13644  echo $ac_n "(cached) $ac_c" 1>&6
13645else
13646  cat > conftest.$ac_ext <<EOF
13647#line 13648 "configure"
13648#include "confdefs.h"
13649/* System header to define __stub macros and hopefully few prototypes,
13650    which can conflict with char $ac_func(); below.  */
13651#include <assert.h>
13652/* Override any gcc2 internal prototype to avoid an error.  */
13653/* We use char because int might match the return type of a gcc2
13654    builtin and then its argument prototype would still apply.  */
13655char $ac_func();
13656
13657int main() {
13658
13659/* The GNU C library defines this for functions which it implements
13660    to always fail with ENOSYS.  Some functions are actually named
13661    something starting with __ and the normal name is an alias.  */
13662#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13663choke me
13664#else
13665$ac_func();
13666#endif
13667
13668; return 0; }
13669EOF
13670if { (eval echo configure:13671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13671  rm -rf conftest*
13672  eval "ac_cv_func_$ac_func=yes"
13673else
13674  echo "configure: failed program was:" >&5
13675  cat conftest.$ac_ext >&5
13676  rm -rf conftest*
13677  eval "ac_cv_func_$ac_func=no"
13678fi
13679rm -f conftest*
13680fi
13681
13682if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13683  echo "$ac_t""yes" 1>&6
13684    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13685  cat >> confdefs.h <<EOF
13686#define $ac_tr_func 1
13687EOF
13688 
13689else
13690  echo "$ac_t""no" 1>&6
13691fi
13692done
13693    
13694    fi
13695  fi
13696
13697  
13698  
13699  echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
13700echo "configure:13701: checking for hypot declaration" >&5
13701  if test x${glibcpp_cv_func_hypot_use+set} != xset; then
13702    if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
13703  echo $ac_n "(cached) $ac_c" 1>&6
13704else
13705  
13706      
13707      ac_ext=C
13708# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13709ac_cpp='$CXXCPP $CPPFLAGS'
13710ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13711ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13712cross_compiling=$ac_cv_prog_cxx_cross
13713
13714      cat > conftest.$ac_ext <<EOF
13715#line 13716 "configure"
13716#include "confdefs.h"
13717#include <math.h>
13718int main() {
13719 hypot(0, 0);
13720; return 0; }
13721EOF
13722if { (eval echo configure:13723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13723  rm -rf conftest*
13724  glibcpp_cv_func_hypot_use=yes
13725else
13726  echo "configure: failed program was:" >&5
13727  cat conftest.$ac_ext >&5
13728  rm -rf conftest*
13729  glibcpp_cv_func_hypot_use=no
13730fi
13731rm -f conftest*
13732      ac_ext=c
13733# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13734ac_cpp='$CPP $CPPFLAGS'
13735ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13736ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13737cross_compiling=$ac_cv_prog_cc_cross
13738
13739    
13740fi
13741
13742  fi
13743  echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
13744
13745  if test x$glibcpp_cv_func_hypot_use = x"yes"; then
13746    for ac_func in hypot
13747do
13748echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13749echo "configure:13750: checking for $ac_func" >&5
13750if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13751  echo $ac_n "(cached) $ac_c" 1>&6
13752else
13753  cat > conftest.$ac_ext <<EOF
13754#line 13755 "configure"
13755#include "confdefs.h"
13756/* System header to define __stub macros and hopefully few prototypes,
13757    which can conflict with char $ac_func(); below.  */
13758#include <assert.h>
13759/* Override any gcc2 internal prototype to avoid an error.  */
13760/* We use char because int might match the return type of a gcc2
13761    builtin and then its argument prototype would still apply.  */
13762char $ac_func();
13763
13764int main() {
13765
13766/* The GNU C library defines this for functions which it implements
13767    to always fail with ENOSYS.  Some functions are actually named
13768    something starting with __ and the normal name is an alias.  */
13769#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13770choke me
13771#else
13772$ac_func();
13773#endif
13774
13775; return 0; }
13776EOF
13777if { (eval echo configure:13778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13778  rm -rf conftest*
13779  eval "ac_cv_func_$ac_func=yes"
13780else
13781  echo "configure: failed program was:" >&5
13782  cat conftest.$ac_ext >&5
13783  rm -rf conftest*
13784  eval "ac_cv_func_$ac_func=no"
13785fi
13786rm -f conftest*
13787fi
13788
13789if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13790  echo "$ac_t""yes" 1>&6
13791    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13792  cat >> confdefs.h <<EOF
13793#define $ac_tr_func 1
13794EOF
13795 
13796else
13797  echo "$ac_t""no" 1>&6
13798fi
13799done
13800    
13801  else
13802    
13803  echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
13804echo "configure:13805: checking for _hypot declaration" >&5
13805  if test x${glibcpp_cv_func__hypot_use+set} != xset; then
13806    if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
13807  echo $ac_n "(cached) $ac_c" 1>&6
13808else
13809  
13810      
13811      ac_ext=C
13812# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13813ac_cpp='$CXXCPP $CPPFLAGS'
13814ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13815ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13816cross_compiling=$ac_cv_prog_cxx_cross
13817
13818      cat > conftest.$ac_ext <<EOF
13819#line 13820 "configure"
13820#include "confdefs.h"
13821#include <math.h>
13822int main() {
13823 _hypot(0, 0);
13824; return 0; }
13825EOF
13826if { (eval echo configure:13827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13827  rm -rf conftest*
13828  glibcpp_cv_func__hypot_use=yes
13829else
13830  echo "configure: failed program was:" >&5
13831  cat conftest.$ac_ext >&5
13832  rm -rf conftest*
13833  glibcpp_cv_func__hypot_use=no
13834fi
13835rm -f conftest*
13836      ac_ext=c
13837# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13838ac_cpp='$CPP $CPPFLAGS'
13839ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13840ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13841cross_compiling=$ac_cv_prog_cc_cross
13842
13843    
13844fi
13845
13846  fi
13847  echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
13848
13849    if test x$glibcpp_cv_func__hypot_use = x"yes"; then
13850      for ac_func in _hypot
13851do
13852echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13853echo "configure:13854: checking for $ac_func" >&5
13854if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13855  echo $ac_n "(cached) $ac_c" 1>&6
13856else
13857  cat > conftest.$ac_ext <<EOF
13858#line 13859 "configure"
13859#include "confdefs.h"
13860/* System header to define __stub macros and hopefully few prototypes,
13861    which can conflict with char $ac_func(); below.  */
13862#include <assert.h>
13863/* Override any gcc2 internal prototype to avoid an error.  */
13864/* We use char because int might match the return type of a gcc2
13865    builtin and then its argument prototype would still apply.  */
13866char $ac_func();
13867
13868int main() {
13869
13870/* The GNU C library defines this for functions which it implements
13871    to always fail with ENOSYS.  Some functions are actually named
13872    something starting with __ and the normal name is an alias.  */
13873#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13874choke me
13875#else
13876$ac_func();
13877#endif
13878
13879; return 0; }
13880EOF
13881if { (eval echo configure:13882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13882  rm -rf conftest*
13883  eval "ac_cv_func_$ac_func=yes"
13884else
13885  echo "configure: failed program was:" >&5
13886  cat conftest.$ac_ext >&5
13887  rm -rf conftest*
13888  eval "ac_cv_func_$ac_func=no"
13889fi
13890rm -f conftest*
13891fi
13892
13893if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13894  echo "$ac_t""yes" 1>&6
13895    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13896  cat >> confdefs.h <<EOF
13897#define $ac_tr_func 1
13898EOF
13899 
13900else
13901  echo "$ac_t""no" 1>&6
13902fi
13903done
13904    
13905    fi
13906  fi
13907
13908
13909    
13910  echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
13911echo "configure:13912: checking for float trig functions" >&5
13912  if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
13913  echo $ac_n "(cached) $ac_c" 1>&6
13914else
13915  
13916    
13917    ac_ext=C
13918# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13919ac_cpp='$CXXCPP $CPPFLAGS'
13920ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13921ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13922cross_compiling=$ac_cv_prog_cxx_cross
13923
13924    cat > conftest.$ac_ext <<EOF
13925#line 13926 "configure"
13926#include "confdefs.h"
13927#include <math.h>
13928int main() {
13929 `for x in acosf asinf atanf \
13930                                          cosf sinf tanf \
13931                                          coshf sinhf tanhf; do echo "$x (0);"; done` 
13932; return 0; }
13933EOF
13934if { (eval echo configure:13935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13935  rm -rf conftest*
13936  glibcpp_cv_func_float_trig_use=yes
13937else
13938  echo "configure: failed program was:" >&5
13939  cat conftest.$ac_ext >&5
13940  rm -rf conftest*
13941  glibcpp_cv_func_float_trig_use=no
13942fi
13943rm -f conftest*
13944    ac_ext=c
13945# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13946ac_cpp='$CPP $CPPFLAGS'
13947ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13948ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13949cross_compiling=$ac_cv_prog_cc_cross
13950
13951fi
13952
13953  echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
13954  if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
13955    for ac_func in acosf asinf atanf \
13956                                          cosf sinf tanf \
13957                                          coshf sinhf tanhf
13958do
13959echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13960echo "configure:13961: checking for $ac_func" >&5
13961if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13962  echo $ac_n "(cached) $ac_c" 1>&6
13963else
13964  cat > conftest.$ac_ext <<EOF
13965#line 13966 "configure"
13966#include "confdefs.h"
13967/* System header to define __stub macros and hopefully few prototypes,
13968    which can conflict with char $ac_func(); below.  */
13969#include <assert.h>
13970/* Override any gcc2 internal prototype to avoid an error.  */
13971/* We use char because int might match the return type of a gcc2
13972    builtin and then its argument prototype would still apply.  */
13973char $ac_func();
13974
13975int main() {
13976
13977/* The GNU C library defines this for functions which it implements
13978    to always fail with ENOSYS.  Some functions are actually named
13979    something starting with __ and the normal name is an alias.  */
13980#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13981choke me
13982#else
13983$ac_func();
13984#endif
13985
13986; return 0; }
13987EOF
13988if { (eval echo configure:13989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13989  rm -rf conftest*
13990  eval "ac_cv_func_$ac_func=yes"
13991else
13992  echo "configure: failed program was:" >&5
13993  cat conftest.$ac_ext >&5
13994  rm -rf conftest*
13995  eval "ac_cv_func_$ac_func=no"
13996fi
13997rm -f conftest*
13998fi
13999
14000if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14001  echo "$ac_t""yes" 1>&6
14002    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14003  cat >> confdefs.h <<EOF
14004#define $ac_tr_func 1
14005EOF
14006 
14007else
14008  echo "$ac_t""no" 1>&6
14009fi
14010done
14011
14012  fi
14013
14014  
14015  echo $ac_n "checking for float round functions""... $ac_c" 1>&6
14016echo "configure:14017: checking for float round functions" >&5
14017  if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
14018  echo $ac_n "(cached) $ac_c" 1>&6
14019else
14020  
14021    
14022    ac_ext=C
14023# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14024ac_cpp='$CXXCPP $CPPFLAGS'
14025ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14026ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14027cross_compiling=$ac_cv_prog_cxx_cross
14028
14029    cat > conftest.$ac_ext <<EOF
14030#line 14031 "configure"
14031#include "confdefs.h"
14032#include <math.h>
14033int main() {
14034 `for x in ceilf floorf; do echo "$x (0);"; done` 
14035; return 0; }
14036EOF
14037if { (eval echo configure:14038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14038  rm -rf conftest*
14039  glibcpp_cv_func_float_round_use=yes
14040else
14041  echo "configure: failed program was:" >&5
14042  cat conftest.$ac_ext >&5
14043  rm -rf conftest*
14044  glibcpp_cv_func_float_round_use=no
14045fi
14046rm -f conftest*
14047    ac_ext=c
14048# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14049ac_cpp='$CPP $CPPFLAGS'
14050ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14051ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14052cross_compiling=$ac_cv_prog_cc_cross
14053
14054fi
14055
14056  echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
14057  if test x$glibcpp_cv_func_float_round_use = x"yes"; then
14058    for ac_func in ceilf floorf
14059do
14060echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14061echo "configure:14062: checking for $ac_func" >&5
14062if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14063  echo $ac_n "(cached) $ac_c" 1>&6
14064else
14065  cat > conftest.$ac_ext <<EOF
14066#line 14067 "configure"
14067#include "confdefs.h"
14068/* System header to define __stub macros and hopefully few prototypes,
14069    which can conflict with char $ac_func(); below.  */
14070#include <assert.h>
14071/* Override any gcc2 internal prototype to avoid an error.  */
14072/* We use char because int might match the return type of a gcc2
14073    builtin and then its argument prototype would still apply.  */
14074char $ac_func();
14075
14076int main() {
14077
14078/* The GNU C library defines this for functions which it implements
14079    to always fail with ENOSYS.  Some functions are actually named
14080    something starting with __ and the normal name is an alias.  */
14081#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14082choke me
14083#else
14084$ac_func();
14085#endif
14086
14087; return 0; }
14088EOF
14089if { (eval echo configure:14090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14090  rm -rf conftest*
14091  eval "ac_cv_func_$ac_func=yes"
14092else
14093  echo "configure: failed program was:" >&5
14094  cat conftest.$ac_ext >&5
14095  rm -rf conftest*
14096  eval "ac_cv_func_$ac_func=no"
14097fi
14098rm -f conftest*
14099fi
14100
14101if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14102  echo "$ac_t""yes" 1>&6
14103    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14104  cat >> confdefs.h <<EOF
14105#define $ac_tr_func 1
14106EOF
14107 
14108else
14109  echo "$ac_t""no" 1>&6
14110fi
14111done
14112
14113  fi
14114
14115  
14116  
14117  echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
14118echo "configure:14119: checking for expf declaration" >&5
14119  if test x${glibcpp_cv_func_expf_use+set} != xset; then
14120    if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
14121  echo $ac_n "(cached) $ac_c" 1>&6
14122else
14123  
14124      
14125      ac_ext=C
14126# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14127ac_cpp='$CXXCPP $CPPFLAGS'
14128ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14129ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14130cross_compiling=$ac_cv_prog_cxx_cross
14131
14132      cat > conftest.$ac_ext <<EOF
14133#line 14134 "configure"
14134#include "confdefs.h"
14135#include <math.h>
14136		      #ifdef HAVE_IEEEFP_H
14137		      #include <ieeefp.h>
14138		      #endif
14139		     
14140int main() {
14141 expf(0);
14142; return 0; }
14143EOF
14144if { (eval echo configure:14145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14145  rm -rf conftest*
14146  glibcpp_cv_func_expf_use=yes
14147else
14148  echo "configure: failed program was:" >&5
14149  cat conftest.$ac_ext >&5
14150  rm -rf conftest*
14151  glibcpp_cv_func_expf_use=no
14152fi
14153rm -f conftest*
14154      ac_ext=c
14155# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14156ac_cpp='$CPP $CPPFLAGS'
14157ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14158ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14159cross_compiling=$ac_cv_prog_cc_cross
14160
14161    
14162fi
14163
14164  fi
14165  echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
14166
14167  if test x$glibcpp_cv_func_expf_use = x"yes"; then
14168    for ac_func in expf
14169do
14170echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14171echo "configure:14172: checking for $ac_func" >&5
14172if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14173  echo $ac_n "(cached) $ac_c" 1>&6
14174else
14175  cat > conftest.$ac_ext <<EOF
14176#line 14177 "configure"
14177#include "confdefs.h"
14178/* System header to define __stub macros and hopefully few prototypes,
14179    which can conflict with char $ac_func(); below.  */
14180#include <assert.h>
14181/* Override any gcc2 internal prototype to avoid an error.  */
14182/* We use char because int might match the return type of a gcc2
14183    builtin and then its argument prototype would still apply.  */
14184char $ac_func();
14185
14186int main() {
14187
14188/* The GNU C library defines this for functions which it implements
14189    to always fail with ENOSYS.  Some functions are actually named
14190    something starting with __ and the normal name is an alias.  */
14191#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14192choke me
14193#else
14194$ac_func();
14195#endif
14196
14197; return 0; }
14198EOF
14199if { (eval echo configure:14200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14200  rm -rf conftest*
14201  eval "ac_cv_func_$ac_func=yes"
14202else
14203  echo "configure: failed program was:" >&5
14204  cat conftest.$ac_ext >&5
14205  rm -rf conftest*
14206  eval "ac_cv_func_$ac_func=no"
14207fi
14208rm -f conftest*
14209fi
14210
14211if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14212  echo "$ac_t""yes" 1>&6
14213    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14214  cat >> confdefs.h <<EOF
14215#define $ac_tr_func 1
14216EOF
14217 
14218else
14219  echo "$ac_t""no" 1>&6
14220fi
14221done
14222    
14223  else
14224    
14225  echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
14226echo "configure:14227: checking for _expf declaration" >&5
14227  if test x${glibcpp_cv_func__expf_use+set} != xset; then
14228    if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
14229  echo $ac_n "(cached) $ac_c" 1>&6
14230else
14231  
14232      
14233      ac_ext=C
14234# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14235ac_cpp='$CXXCPP $CPPFLAGS'
14236ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14237ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14238cross_compiling=$ac_cv_prog_cxx_cross
14239
14240      cat > conftest.$ac_ext <<EOF
14241#line 14242 "configure"
14242#include "confdefs.h"
14243#include <math.h>
14244		      #ifdef HAVE_IEEEFP_H
14245		      #include <ieeefp.h>
14246		      #endif
14247		     
14248int main() {
14249 _expf(0);
14250; return 0; }
14251EOF
14252if { (eval echo configure:14253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14253  rm -rf conftest*
14254  glibcpp_cv_func__expf_use=yes
14255else
14256  echo "configure: failed program was:" >&5
14257  cat conftest.$ac_ext >&5
14258  rm -rf conftest*
14259  glibcpp_cv_func__expf_use=no
14260fi
14261rm -f conftest*
14262      ac_ext=c
14263# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14264ac_cpp='$CPP $CPPFLAGS'
14265ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14266ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14267cross_compiling=$ac_cv_prog_cc_cross
14268
14269    
14270fi
14271
14272  fi
14273  echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
14274
14275    if test x$glibcpp_cv_func__expf_use = x"yes"; then
14276      for ac_func in _expf
14277do
14278echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14279echo "configure:14280: checking for $ac_func" >&5
14280if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14281  echo $ac_n "(cached) $ac_c" 1>&6
14282else
14283  cat > conftest.$ac_ext <<EOF
14284#line 14285 "configure"
14285#include "confdefs.h"
14286/* System header to define __stub macros and hopefully few prototypes,
14287    which can conflict with char $ac_func(); below.  */
14288#include <assert.h>
14289/* Override any gcc2 internal prototype to avoid an error.  */
14290/* We use char because int might match the return type of a gcc2
14291    builtin and then its argument prototype would still apply.  */
14292char $ac_func();
14293
14294int main() {
14295
14296/* The GNU C library defines this for functions which it implements
14297    to always fail with ENOSYS.  Some functions are actually named
14298    something starting with __ and the normal name is an alias.  */
14299#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14300choke me
14301#else
14302$ac_func();
14303#endif
14304
14305; return 0; }
14306EOF
14307if { (eval echo configure:14308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14308  rm -rf conftest*
14309  eval "ac_cv_func_$ac_func=yes"
14310else
14311  echo "configure: failed program was:" >&5
14312  cat conftest.$ac_ext >&5
14313  rm -rf conftest*
14314  eval "ac_cv_func_$ac_func=no"
14315fi
14316rm -f conftest*
14317fi
14318
14319if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14320  echo "$ac_t""yes" 1>&6
14321    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14322  cat >> confdefs.h <<EOF
14323#define $ac_tr_func 1
14324EOF
14325 
14326else
14327  echo "$ac_t""no" 1>&6
14328fi
14329done
14330    
14331    fi
14332  fi
14333
14334  
14335  
14336  echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
14337echo "configure:14338: checking for isnanf declaration" >&5
14338  if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
14339    if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
14340  echo $ac_n "(cached) $ac_c" 1>&6
14341else
14342  
14343      
14344      ac_ext=C
14345# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14346ac_cpp='$CXXCPP $CPPFLAGS'
14347ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14348ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14349cross_compiling=$ac_cv_prog_cxx_cross
14350
14351      cat > conftest.$ac_ext <<EOF
14352#line 14353 "configure"
14353#include "confdefs.h"
14354#include <math.h>
14355		      #ifdef HAVE_IEEEFP_H
14356		      #include <ieeefp.h>
14357		      #endif
14358		     
14359int main() {
14360 isnanf(0);
14361; return 0; }
14362EOF
14363if { (eval echo configure:14364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14364  rm -rf conftest*
14365  glibcpp_cv_func_isnanf_use=yes
14366else
14367  echo "configure: failed program was:" >&5
14368  cat conftest.$ac_ext >&5
14369  rm -rf conftest*
14370  glibcpp_cv_func_isnanf_use=no
14371fi
14372rm -f conftest*
14373      ac_ext=c
14374# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14375ac_cpp='$CPP $CPPFLAGS'
14376ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14377ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14378cross_compiling=$ac_cv_prog_cc_cross
14379
14380    
14381fi
14382
14383  fi
14384  echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
14385
14386  if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
14387    for ac_func in isnanf
14388do
14389echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14390echo "configure:14391: checking for $ac_func" >&5
14391if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14392  echo $ac_n "(cached) $ac_c" 1>&6
14393else
14394  cat > conftest.$ac_ext <<EOF
14395#line 14396 "configure"
14396#include "confdefs.h"
14397/* System header to define __stub macros and hopefully few prototypes,
14398    which can conflict with char $ac_func(); below.  */
14399#include <assert.h>
14400/* Override any gcc2 internal prototype to avoid an error.  */
14401/* We use char because int might match the return type of a gcc2
14402    builtin and then its argument prototype would still apply.  */
14403char $ac_func();
14404
14405int main() {
14406
14407/* The GNU C library defines this for functions which it implements
14408    to always fail with ENOSYS.  Some functions are actually named
14409    something starting with __ and the normal name is an alias.  */
14410#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14411choke me
14412#else
14413$ac_func();
14414#endif
14415
14416; return 0; }
14417EOF
14418if { (eval echo configure:14419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14419  rm -rf conftest*
14420  eval "ac_cv_func_$ac_func=yes"
14421else
14422  echo "configure: failed program was:" >&5
14423  cat conftest.$ac_ext >&5
14424  rm -rf conftest*
14425  eval "ac_cv_func_$ac_func=no"
14426fi
14427rm -f conftest*
14428fi
14429
14430if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14431  echo "$ac_t""yes" 1>&6
14432    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14433  cat >> confdefs.h <<EOF
14434#define $ac_tr_func 1
14435EOF
14436 
14437else
14438  echo "$ac_t""no" 1>&6
14439fi
14440done
14441    
14442  else
14443    
14444  echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
14445echo "configure:14446: checking for _isnanf declaration" >&5
14446  if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
14447    if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
14448  echo $ac_n "(cached) $ac_c" 1>&6
14449else
14450  
14451      
14452      ac_ext=C
14453# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14454ac_cpp='$CXXCPP $CPPFLAGS'
14455ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14456ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14457cross_compiling=$ac_cv_prog_cxx_cross
14458
14459      cat > conftest.$ac_ext <<EOF
14460#line 14461 "configure"
14461#include "confdefs.h"
14462#include <math.h>
14463		      #ifdef HAVE_IEEEFP_H
14464		      #include <ieeefp.h>
14465		      #endif
14466		     
14467int main() {
14468 _isnanf(0);
14469; return 0; }
14470EOF
14471if { (eval echo configure:14472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14472  rm -rf conftest*
14473  glibcpp_cv_func__isnanf_use=yes
14474else
14475  echo "configure: failed program was:" >&5
14476  cat conftest.$ac_ext >&5
14477  rm -rf conftest*
14478  glibcpp_cv_func__isnanf_use=no
14479fi
14480rm -f conftest*
14481      ac_ext=c
14482# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14483ac_cpp='$CPP $CPPFLAGS'
14484ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14485ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14486cross_compiling=$ac_cv_prog_cc_cross
14487
14488    
14489fi
14490
14491  fi
14492  echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
14493
14494    if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
14495      for ac_func in _isnanf
14496do
14497echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14498echo "configure:14499: checking for $ac_func" >&5
14499if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14500  echo $ac_n "(cached) $ac_c" 1>&6
14501else
14502  cat > conftest.$ac_ext <<EOF
14503#line 14504 "configure"
14504#include "confdefs.h"
14505/* System header to define __stub macros and hopefully few prototypes,
14506    which can conflict with char $ac_func(); below.  */
14507#include <assert.h>
14508/* Override any gcc2 internal prototype to avoid an error.  */
14509/* We use char because int might match the return type of a gcc2
14510    builtin and then its argument prototype would still apply.  */
14511char $ac_func();
14512
14513int main() {
14514
14515/* The GNU C library defines this for functions which it implements
14516    to always fail with ENOSYS.  Some functions are actually named
14517    something starting with __ and the normal name is an alias.  */
14518#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14519choke me
14520#else
14521$ac_func();
14522#endif
14523
14524; return 0; }
14525EOF
14526if { (eval echo configure:14527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14527  rm -rf conftest*
14528  eval "ac_cv_func_$ac_func=yes"
14529else
14530  echo "configure: failed program was:" >&5
14531  cat conftest.$ac_ext >&5
14532  rm -rf conftest*
14533  eval "ac_cv_func_$ac_func=no"
14534fi
14535rm -f conftest*
14536fi
14537
14538if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14539  echo "$ac_t""yes" 1>&6
14540    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14541  cat >> confdefs.h <<EOF
14542#define $ac_tr_func 1
14543EOF
14544 
14545else
14546  echo "$ac_t""no" 1>&6
14547fi
14548done
14549    
14550    fi
14551  fi
14552
14553  
14554  
14555  echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
14556echo "configure:14557: checking for isinff declaration" >&5
14557  if test x${glibcpp_cv_func_isinff_use+set} != xset; then
14558    if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
14559  echo $ac_n "(cached) $ac_c" 1>&6
14560else
14561  
14562      
14563      ac_ext=C
14564# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14565ac_cpp='$CXXCPP $CPPFLAGS'
14566ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14567ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14568cross_compiling=$ac_cv_prog_cxx_cross
14569
14570      cat > conftest.$ac_ext <<EOF
14571#line 14572 "configure"
14572#include "confdefs.h"
14573#include <math.h>
14574		      #ifdef HAVE_IEEEFP_H
14575		      #include <ieeefp.h>
14576		      #endif
14577		     
14578int main() {
14579 isinff(0);
14580; return 0; }
14581EOF
14582if { (eval echo configure:14583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14583  rm -rf conftest*
14584  glibcpp_cv_func_isinff_use=yes
14585else
14586  echo "configure: failed program was:" >&5
14587  cat conftest.$ac_ext >&5
14588  rm -rf conftest*
14589  glibcpp_cv_func_isinff_use=no
14590fi
14591rm -f conftest*
14592      ac_ext=c
14593# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14594ac_cpp='$CPP $CPPFLAGS'
14595ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14596ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14597cross_compiling=$ac_cv_prog_cc_cross
14598
14599    
14600fi
14601
14602  fi
14603  echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
14604
14605  if test x$glibcpp_cv_func_isinff_use = x"yes"; then
14606    for ac_func in isinff
14607do
14608echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14609echo "configure:14610: checking for $ac_func" >&5
14610if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14611  echo $ac_n "(cached) $ac_c" 1>&6
14612else
14613  cat > conftest.$ac_ext <<EOF
14614#line 14615 "configure"
14615#include "confdefs.h"
14616/* System header to define __stub macros and hopefully few prototypes,
14617    which can conflict with char $ac_func(); below.  */
14618#include <assert.h>
14619/* Override any gcc2 internal prototype to avoid an error.  */
14620/* We use char because int might match the return type of a gcc2
14621    builtin and then its argument prototype would still apply.  */
14622char $ac_func();
14623
14624int main() {
14625
14626/* The GNU C library defines this for functions which it implements
14627    to always fail with ENOSYS.  Some functions are actually named
14628    something starting with __ and the normal name is an alias.  */
14629#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14630choke me
14631#else
14632$ac_func();
14633#endif
14634
14635; return 0; }
14636EOF
14637if { (eval echo configure:14638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14638  rm -rf conftest*
14639  eval "ac_cv_func_$ac_func=yes"
14640else
14641  echo "configure: failed program was:" >&5
14642  cat conftest.$ac_ext >&5
14643  rm -rf conftest*
14644  eval "ac_cv_func_$ac_func=no"
14645fi
14646rm -f conftest*
14647fi
14648
14649if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14650  echo "$ac_t""yes" 1>&6
14651    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14652  cat >> confdefs.h <<EOF
14653#define $ac_tr_func 1
14654EOF
14655 
14656else
14657  echo "$ac_t""no" 1>&6
14658fi
14659done
14660    
14661  else
14662    
14663  echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
14664echo "configure:14665: checking for _isinff declaration" >&5
14665  if test x${glibcpp_cv_func__isinff_use+set} != xset; then
14666    if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
14667  echo $ac_n "(cached) $ac_c" 1>&6
14668else
14669  
14670      
14671      ac_ext=C
14672# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14673ac_cpp='$CXXCPP $CPPFLAGS'
14674ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14675ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14676cross_compiling=$ac_cv_prog_cxx_cross
14677
14678      cat > conftest.$ac_ext <<EOF
14679#line 14680 "configure"
14680#include "confdefs.h"
14681#include <math.h>
14682		      #ifdef HAVE_IEEEFP_H
14683		      #include <ieeefp.h>
14684		      #endif
14685		     
14686int main() {
14687 _isinff(0);
14688; return 0; }
14689EOF
14690if { (eval echo configure:14691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14691  rm -rf conftest*
14692  glibcpp_cv_func__isinff_use=yes
14693else
14694  echo "configure: failed program was:" >&5
14695  cat conftest.$ac_ext >&5
14696  rm -rf conftest*
14697  glibcpp_cv_func__isinff_use=no
14698fi
14699rm -f conftest*
14700      ac_ext=c
14701# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14702ac_cpp='$CPP $CPPFLAGS'
14703ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14704ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14705cross_compiling=$ac_cv_prog_cc_cross
14706
14707    
14708fi
14709
14710  fi
14711  echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
14712
14713    if test x$glibcpp_cv_func__isinff_use = x"yes"; then
14714      for ac_func in _isinff
14715do
14716echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14717echo "configure:14718: checking for $ac_func" >&5
14718if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14719  echo $ac_n "(cached) $ac_c" 1>&6
14720else
14721  cat > conftest.$ac_ext <<EOF
14722#line 14723 "configure"
14723#include "confdefs.h"
14724/* System header to define __stub macros and hopefully few prototypes,
14725    which can conflict with char $ac_func(); below.  */
14726#include <assert.h>
14727/* Override any gcc2 internal prototype to avoid an error.  */
14728/* We use char because int might match the return type of a gcc2
14729    builtin and then its argument prototype would still apply.  */
14730char $ac_func();
14731
14732int main() {
14733
14734/* The GNU C library defines this for functions which it implements
14735    to always fail with ENOSYS.  Some functions are actually named
14736    something starting with __ and the normal name is an alias.  */
14737#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14738choke me
14739#else
14740$ac_func();
14741#endif
14742
14743; return 0; }
14744EOF
14745if { (eval echo configure:14746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14746  rm -rf conftest*
14747  eval "ac_cv_func_$ac_func=yes"
14748else
14749  echo "configure: failed program was:" >&5
14750  cat conftest.$ac_ext >&5
14751  rm -rf conftest*
14752  eval "ac_cv_func_$ac_func=no"
14753fi
14754rm -f conftest*
14755fi
14756
14757if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14758  echo "$ac_t""yes" 1>&6
14759    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14760  cat >> confdefs.h <<EOF
14761#define $ac_tr_func 1
14762EOF
14763 
14764else
14765  echo "$ac_t""no" 1>&6
14766fi
14767done
14768    
14769    fi
14770  fi
14771
14772  
14773  
14774  echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
14775echo "configure:14776: checking for atan2f declaration" >&5
14776  if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
14777    if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
14778  echo $ac_n "(cached) $ac_c" 1>&6
14779else
14780  
14781      
14782      ac_ext=C
14783# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14784ac_cpp='$CXXCPP $CPPFLAGS'
14785ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14786ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14787cross_compiling=$ac_cv_prog_cxx_cross
14788
14789      cat > conftest.$ac_ext <<EOF
14790#line 14791 "configure"
14791#include "confdefs.h"
14792#include <math.h>
14793int main() {
14794 atan2f(0, 0);
14795; return 0; }
14796EOF
14797if { (eval echo configure:14798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14798  rm -rf conftest*
14799  glibcpp_cv_func_atan2f_use=yes
14800else
14801  echo "configure: failed program was:" >&5
14802  cat conftest.$ac_ext >&5
14803  rm -rf conftest*
14804  glibcpp_cv_func_atan2f_use=no
14805fi
14806rm -f conftest*
14807      ac_ext=c
14808# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14809ac_cpp='$CPP $CPPFLAGS'
14810ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14811ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14812cross_compiling=$ac_cv_prog_cc_cross
14813
14814    
14815fi
14816
14817  fi
14818  echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
14819
14820  if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
14821    for ac_func in atan2f
14822do
14823echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14824echo "configure:14825: checking for $ac_func" >&5
14825if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14826  echo $ac_n "(cached) $ac_c" 1>&6
14827else
14828  cat > conftest.$ac_ext <<EOF
14829#line 14830 "configure"
14830#include "confdefs.h"
14831/* System header to define __stub macros and hopefully few prototypes,
14832    which can conflict with char $ac_func(); below.  */
14833#include <assert.h>
14834/* Override any gcc2 internal prototype to avoid an error.  */
14835/* We use char because int might match the return type of a gcc2
14836    builtin and then its argument prototype would still apply.  */
14837char $ac_func();
14838
14839int main() {
14840
14841/* The GNU C library defines this for functions which it implements
14842    to always fail with ENOSYS.  Some functions are actually named
14843    something starting with __ and the normal name is an alias.  */
14844#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14845choke me
14846#else
14847$ac_func();
14848#endif
14849
14850; return 0; }
14851EOF
14852if { (eval echo configure:14853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14853  rm -rf conftest*
14854  eval "ac_cv_func_$ac_func=yes"
14855else
14856  echo "configure: failed program was:" >&5
14857  cat conftest.$ac_ext >&5
14858  rm -rf conftest*
14859  eval "ac_cv_func_$ac_func=no"
14860fi
14861rm -f conftest*
14862fi
14863
14864if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14865  echo "$ac_t""yes" 1>&6
14866    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14867  cat >> confdefs.h <<EOF
14868#define $ac_tr_func 1
14869EOF
14870 
14871else
14872  echo "$ac_t""no" 1>&6
14873fi
14874done
14875    
14876  else
14877    
14878  echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
14879echo "configure:14880: checking for _atan2f declaration" >&5
14880  if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
14881    if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
14882  echo $ac_n "(cached) $ac_c" 1>&6
14883else
14884  
14885      
14886      ac_ext=C
14887# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14888ac_cpp='$CXXCPP $CPPFLAGS'
14889ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14890ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14891cross_compiling=$ac_cv_prog_cxx_cross
14892
14893      cat > conftest.$ac_ext <<EOF
14894#line 14895 "configure"
14895#include "confdefs.h"
14896#include <math.h>
14897int main() {
14898 _atan2f(0, 0);
14899; return 0; }
14900EOF
14901if { (eval echo configure:14902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14902  rm -rf conftest*
14903  glibcpp_cv_func__atan2f_use=yes
14904else
14905  echo "configure: failed program was:" >&5
14906  cat conftest.$ac_ext >&5
14907  rm -rf conftest*
14908  glibcpp_cv_func__atan2f_use=no
14909fi
14910rm -f conftest*
14911      ac_ext=c
14912# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14913ac_cpp='$CPP $CPPFLAGS'
14914ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14915ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14916cross_compiling=$ac_cv_prog_cc_cross
14917
14918    
14919fi
14920
14921  fi
14922  echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
14923
14924    if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
14925      for ac_func in _atan2f
14926do
14927echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14928echo "configure:14929: checking for $ac_func" >&5
14929if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14930  echo $ac_n "(cached) $ac_c" 1>&6
14931else
14932  cat > conftest.$ac_ext <<EOF
14933#line 14934 "configure"
14934#include "confdefs.h"
14935/* System header to define __stub macros and hopefully few prototypes,
14936    which can conflict with char $ac_func(); below.  */
14937#include <assert.h>
14938/* Override any gcc2 internal prototype to avoid an error.  */
14939/* We use char because int might match the return type of a gcc2
14940    builtin and then its argument prototype would still apply.  */
14941char $ac_func();
14942
14943int main() {
14944
14945/* The GNU C library defines this for functions which it implements
14946    to always fail with ENOSYS.  Some functions are actually named
14947    something starting with __ and the normal name is an alias.  */
14948#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14949choke me
14950#else
14951$ac_func();
14952#endif
14953
14954; return 0; }
14955EOF
14956if { (eval echo configure:14957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14957  rm -rf conftest*
14958  eval "ac_cv_func_$ac_func=yes"
14959else
14960  echo "configure: failed program was:" >&5
14961  cat conftest.$ac_ext >&5
14962  rm -rf conftest*
14963  eval "ac_cv_func_$ac_func=no"
14964fi
14965rm -f conftest*
14966fi
14967
14968if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14969  echo "$ac_t""yes" 1>&6
14970    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14971  cat >> confdefs.h <<EOF
14972#define $ac_tr_func 1
14973EOF
14974 
14975else
14976  echo "$ac_t""no" 1>&6
14977fi
14978done
14979    
14980    fi
14981  fi
14982
14983  
14984  
14985  echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
14986echo "configure:14987: checking for fabsf declaration" >&5
14987  if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
14988    if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
14989  echo $ac_n "(cached) $ac_c" 1>&6
14990else
14991  
14992      
14993      ac_ext=C
14994# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14995ac_cpp='$CXXCPP $CPPFLAGS'
14996ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14997ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14998cross_compiling=$ac_cv_prog_cxx_cross
14999
15000      cat > conftest.$ac_ext <<EOF
15001#line 15002 "configure"
15002#include "confdefs.h"
15003#include <math.h>
15004		      #ifdef HAVE_IEEEFP_H
15005		      #include <ieeefp.h>
15006		      #endif
15007		     
15008int main() {
15009 fabsf(0);
15010; return 0; }
15011EOF
15012if { (eval echo configure:15013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15013  rm -rf conftest*
15014  glibcpp_cv_func_fabsf_use=yes
15015else
15016  echo "configure: failed program was:" >&5
15017  cat conftest.$ac_ext >&5
15018  rm -rf conftest*
15019  glibcpp_cv_func_fabsf_use=no
15020fi
15021rm -f conftest*
15022      ac_ext=c
15023# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15024ac_cpp='$CPP $CPPFLAGS'
15025ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15026ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15027cross_compiling=$ac_cv_prog_cc_cross
15028
15029    
15030fi
15031
15032  fi
15033  echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
15034
15035  if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
15036    for ac_func in fabsf
15037do
15038echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15039echo "configure:15040: checking for $ac_func" >&5
15040if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15041  echo $ac_n "(cached) $ac_c" 1>&6
15042else
15043  cat > conftest.$ac_ext <<EOF
15044#line 15045 "configure"
15045#include "confdefs.h"
15046/* System header to define __stub macros and hopefully few prototypes,
15047    which can conflict with char $ac_func(); below.  */
15048#include <assert.h>
15049/* Override any gcc2 internal prototype to avoid an error.  */
15050/* We use char because int might match the return type of a gcc2
15051    builtin and then its argument prototype would still apply.  */
15052char $ac_func();
15053
15054int main() {
15055
15056/* The GNU C library defines this for functions which it implements
15057    to always fail with ENOSYS.  Some functions are actually named
15058    something starting with __ and the normal name is an alias.  */
15059#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15060choke me
15061#else
15062$ac_func();
15063#endif
15064
15065; return 0; }
15066EOF
15067if { (eval echo configure:15068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15068  rm -rf conftest*
15069  eval "ac_cv_func_$ac_func=yes"
15070else
15071  echo "configure: failed program was:" >&5
15072  cat conftest.$ac_ext >&5
15073  rm -rf conftest*
15074  eval "ac_cv_func_$ac_func=no"
15075fi
15076rm -f conftest*
15077fi
15078
15079if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15080  echo "$ac_t""yes" 1>&6
15081    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15082  cat >> confdefs.h <<EOF
15083#define $ac_tr_func 1
15084EOF
15085 
15086else
15087  echo "$ac_t""no" 1>&6
15088fi
15089done
15090    
15091  else
15092    
15093  echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
15094echo "configure:15095: checking for _fabsf declaration" >&5
15095  if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
15096    if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
15097  echo $ac_n "(cached) $ac_c" 1>&6
15098else
15099  
15100      
15101      ac_ext=C
15102# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15103ac_cpp='$CXXCPP $CPPFLAGS'
15104ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15105ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15106cross_compiling=$ac_cv_prog_cxx_cross
15107
15108      cat > conftest.$ac_ext <<EOF
15109#line 15110 "configure"
15110#include "confdefs.h"
15111#include <math.h>
15112		      #ifdef HAVE_IEEEFP_H
15113		      #include <ieeefp.h>
15114		      #endif
15115		     
15116int main() {
15117 _fabsf(0);
15118; return 0; }
15119EOF
15120if { (eval echo configure:15121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15121  rm -rf conftest*
15122  glibcpp_cv_func__fabsf_use=yes
15123else
15124  echo "configure: failed program was:" >&5
15125  cat conftest.$ac_ext >&5
15126  rm -rf conftest*
15127  glibcpp_cv_func__fabsf_use=no
15128fi
15129rm -f conftest*
15130      ac_ext=c
15131# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15132ac_cpp='$CPP $CPPFLAGS'
15133ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15134ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15135cross_compiling=$ac_cv_prog_cc_cross
15136
15137    
15138fi
15139
15140  fi
15141  echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
15142
15143    if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
15144      for ac_func in _fabsf
15145do
15146echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15147echo "configure:15148: checking for $ac_func" >&5
15148if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15149  echo $ac_n "(cached) $ac_c" 1>&6
15150else
15151  cat > conftest.$ac_ext <<EOF
15152#line 15153 "configure"
15153#include "confdefs.h"
15154/* System header to define __stub macros and hopefully few prototypes,
15155    which can conflict with char $ac_func(); below.  */
15156#include <assert.h>
15157/* Override any gcc2 internal prototype to avoid an error.  */
15158/* We use char because int might match the return type of a gcc2
15159    builtin and then its argument prototype would still apply.  */
15160char $ac_func();
15161
15162int main() {
15163
15164/* The GNU C library defines this for functions which it implements
15165    to always fail with ENOSYS.  Some functions are actually named
15166    something starting with __ and the normal name is an alias.  */
15167#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15168choke me
15169#else
15170$ac_func();
15171#endif
15172
15173; return 0; }
15174EOF
15175if { (eval echo configure:15176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15176  rm -rf conftest*
15177  eval "ac_cv_func_$ac_func=yes"
15178else
15179  echo "configure: failed program was:" >&5
15180  cat conftest.$ac_ext >&5
15181  rm -rf conftest*
15182  eval "ac_cv_func_$ac_func=no"
15183fi
15184rm -f conftest*
15185fi
15186
15187if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15188  echo "$ac_t""yes" 1>&6
15189    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15190  cat >> confdefs.h <<EOF
15191#define $ac_tr_func 1
15192EOF
15193 
15194else
15195  echo "$ac_t""no" 1>&6
15196fi
15197done
15198    
15199    fi
15200  fi
15201
15202  
15203  
15204  echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
15205echo "configure:15206: checking for fmodf declaration" >&5
15206  if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
15207    if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
15208  echo $ac_n "(cached) $ac_c" 1>&6
15209else
15210  
15211      
15212      ac_ext=C
15213# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15214ac_cpp='$CXXCPP $CPPFLAGS'
15215ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15216ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15217cross_compiling=$ac_cv_prog_cxx_cross
15218
15219      cat > conftest.$ac_ext <<EOF
15220#line 15221 "configure"
15221#include "confdefs.h"
15222#include <math.h>
15223int main() {
15224 fmodf(0, 0);
15225; return 0; }
15226EOF
15227if { (eval echo configure:15228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15228  rm -rf conftest*
15229  glibcpp_cv_func_fmodf_use=yes
15230else
15231  echo "configure: failed program was:" >&5
15232  cat conftest.$ac_ext >&5
15233  rm -rf conftest*
15234  glibcpp_cv_func_fmodf_use=no
15235fi
15236rm -f conftest*
15237      ac_ext=c
15238# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15239ac_cpp='$CPP $CPPFLAGS'
15240ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15241ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15242cross_compiling=$ac_cv_prog_cc_cross
15243
15244    
15245fi
15246
15247  fi
15248  echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
15249
15250  if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
15251    for ac_func in fmodf
15252do
15253echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15254echo "configure:15255: checking for $ac_func" >&5
15255if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15256  echo $ac_n "(cached) $ac_c" 1>&6
15257else
15258  cat > conftest.$ac_ext <<EOF
15259#line 15260 "configure"
15260#include "confdefs.h"
15261/* System header to define __stub macros and hopefully few prototypes,
15262    which can conflict with char $ac_func(); below.  */
15263#include <assert.h>
15264/* Override any gcc2 internal prototype to avoid an error.  */
15265/* We use char because int might match the return type of a gcc2
15266    builtin and then its argument prototype would still apply.  */
15267char $ac_func();
15268
15269int main() {
15270
15271/* The GNU C library defines this for functions which it implements
15272    to always fail with ENOSYS.  Some functions are actually named
15273    something starting with __ and the normal name is an alias.  */
15274#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15275choke me
15276#else
15277$ac_func();
15278#endif
15279
15280; return 0; }
15281EOF
15282if { (eval echo configure:15283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15283  rm -rf conftest*
15284  eval "ac_cv_func_$ac_func=yes"
15285else
15286  echo "configure: failed program was:" >&5
15287  cat conftest.$ac_ext >&5
15288  rm -rf conftest*
15289  eval "ac_cv_func_$ac_func=no"
15290fi
15291rm -f conftest*
15292fi
15293
15294if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15295  echo "$ac_t""yes" 1>&6
15296    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15297  cat >> confdefs.h <<EOF
15298#define $ac_tr_func 1
15299EOF
15300 
15301else
15302  echo "$ac_t""no" 1>&6
15303fi
15304done
15305    
15306  else
15307    
15308  echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
15309echo "configure:15310: checking for _fmodf declaration" >&5
15310  if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
15311    if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
15312  echo $ac_n "(cached) $ac_c" 1>&6
15313else
15314  
15315      
15316      ac_ext=C
15317# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15318ac_cpp='$CXXCPP $CPPFLAGS'
15319ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15320ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15321cross_compiling=$ac_cv_prog_cxx_cross
15322
15323      cat > conftest.$ac_ext <<EOF
15324#line 15325 "configure"
15325#include "confdefs.h"
15326#include <math.h>
15327int main() {
15328 _fmodf(0, 0);
15329; return 0; }
15330EOF
15331if { (eval echo configure:15332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15332  rm -rf conftest*
15333  glibcpp_cv_func__fmodf_use=yes
15334else
15335  echo "configure: failed program was:" >&5
15336  cat conftest.$ac_ext >&5
15337  rm -rf conftest*
15338  glibcpp_cv_func__fmodf_use=no
15339fi
15340rm -f conftest*
15341      ac_ext=c
15342# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15343ac_cpp='$CPP $CPPFLAGS'
15344ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15345ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15346cross_compiling=$ac_cv_prog_cc_cross
15347
15348    
15349fi
15350
15351  fi
15352  echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
15353
15354    if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
15355      for ac_func in _fmodf
15356do
15357echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15358echo "configure:15359: checking for $ac_func" >&5
15359if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15360  echo $ac_n "(cached) $ac_c" 1>&6
15361else
15362  cat > conftest.$ac_ext <<EOF
15363#line 15364 "configure"
15364#include "confdefs.h"
15365/* System header to define __stub macros and hopefully few prototypes,
15366    which can conflict with char $ac_func(); below.  */
15367#include <assert.h>
15368/* Override any gcc2 internal prototype to avoid an error.  */
15369/* We use char because int might match the return type of a gcc2
15370    builtin and then its argument prototype would still apply.  */
15371char $ac_func();
15372
15373int main() {
15374
15375/* The GNU C library defines this for functions which it implements
15376    to always fail with ENOSYS.  Some functions are actually named
15377    something starting with __ and the normal name is an alias.  */
15378#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15379choke me
15380#else
15381$ac_func();
15382#endif
15383
15384; return 0; }
15385EOF
15386if { (eval echo configure:15387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15387  rm -rf conftest*
15388  eval "ac_cv_func_$ac_func=yes"
15389else
15390  echo "configure: failed program was:" >&5
15391  cat conftest.$ac_ext >&5
15392  rm -rf conftest*
15393  eval "ac_cv_func_$ac_func=no"
15394fi
15395rm -f conftest*
15396fi
15397
15398if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15399  echo "$ac_t""yes" 1>&6
15400    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15401  cat >> confdefs.h <<EOF
15402#define $ac_tr_func 1
15403EOF
15404 
15405else
15406  echo "$ac_t""no" 1>&6
15407fi
15408done
15409    
15410    fi
15411  fi
15412
15413  
15414  
15415  echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
15416echo "configure:15417: checking for frexpf declaration" >&5
15417  if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
15418    if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
15419  echo $ac_n "(cached) $ac_c" 1>&6
15420else
15421  
15422      
15423      ac_ext=C
15424# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15425ac_cpp='$CXXCPP $CPPFLAGS'
15426ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15427ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15428cross_compiling=$ac_cv_prog_cxx_cross
15429
15430      cat > conftest.$ac_ext <<EOF
15431#line 15432 "configure"
15432#include "confdefs.h"
15433#include <math.h>
15434int main() {
15435 frexpf(0, 0);
15436; return 0; }
15437EOF
15438if { (eval echo configure:15439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15439  rm -rf conftest*
15440  glibcpp_cv_func_frexpf_use=yes
15441else
15442  echo "configure: failed program was:" >&5
15443  cat conftest.$ac_ext >&5
15444  rm -rf conftest*
15445  glibcpp_cv_func_frexpf_use=no
15446fi
15447rm -f conftest*
15448      ac_ext=c
15449# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15450ac_cpp='$CPP $CPPFLAGS'
15451ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15452ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15453cross_compiling=$ac_cv_prog_cc_cross
15454
15455    
15456fi
15457
15458  fi
15459  echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
15460
15461  if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
15462    for ac_func in frexpf
15463do
15464echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15465echo "configure:15466: checking for $ac_func" >&5
15466if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15467  echo $ac_n "(cached) $ac_c" 1>&6
15468else
15469  cat > conftest.$ac_ext <<EOF
15470#line 15471 "configure"
15471#include "confdefs.h"
15472/* System header to define __stub macros and hopefully few prototypes,
15473    which can conflict with char $ac_func(); below.  */
15474#include <assert.h>
15475/* Override any gcc2 internal prototype to avoid an error.  */
15476/* We use char because int might match the return type of a gcc2
15477    builtin and then its argument prototype would still apply.  */
15478char $ac_func();
15479
15480int main() {
15481
15482/* The GNU C library defines this for functions which it implements
15483    to always fail with ENOSYS.  Some functions are actually named
15484    something starting with __ and the normal name is an alias.  */
15485#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15486choke me
15487#else
15488$ac_func();
15489#endif
15490
15491; return 0; }
15492EOF
15493if { (eval echo configure:15494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15494  rm -rf conftest*
15495  eval "ac_cv_func_$ac_func=yes"
15496else
15497  echo "configure: failed program was:" >&5
15498  cat conftest.$ac_ext >&5
15499  rm -rf conftest*
15500  eval "ac_cv_func_$ac_func=no"
15501fi
15502rm -f conftest*
15503fi
15504
15505if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15506  echo "$ac_t""yes" 1>&6
15507    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15508  cat >> confdefs.h <<EOF
15509#define $ac_tr_func 1
15510EOF
15511 
15512else
15513  echo "$ac_t""no" 1>&6
15514fi
15515done
15516    
15517  else
15518    
15519  echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
15520echo "configure:15521: checking for _frexpf declaration" >&5
15521  if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
15522    if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
15523  echo $ac_n "(cached) $ac_c" 1>&6
15524else
15525  
15526      
15527      ac_ext=C
15528# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15529ac_cpp='$CXXCPP $CPPFLAGS'
15530ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15531ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15532cross_compiling=$ac_cv_prog_cxx_cross
15533
15534      cat > conftest.$ac_ext <<EOF
15535#line 15536 "configure"
15536#include "confdefs.h"
15537#include <math.h>
15538int main() {
15539 _frexpf(0, 0);
15540; return 0; }
15541EOF
15542if { (eval echo configure:15543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15543  rm -rf conftest*
15544  glibcpp_cv_func__frexpf_use=yes
15545else
15546  echo "configure: failed program was:" >&5
15547  cat conftest.$ac_ext >&5
15548  rm -rf conftest*
15549  glibcpp_cv_func__frexpf_use=no
15550fi
15551rm -f conftest*
15552      ac_ext=c
15553# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15554ac_cpp='$CPP $CPPFLAGS'
15555ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15556ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15557cross_compiling=$ac_cv_prog_cc_cross
15558
15559    
15560fi
15561
15562  fi
15563  echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
15564
15565    if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
15566      for ac_func in _frexpf
15567do
15568echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15569echo "configure:15570: checking for $ac_func" >&5
15570if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15571  echo $ac_n "(cached) $ac_c" 1>&6
15572else
15573  cat > conftest.$ac_ext <<EOF
15574#line 15575 "configure"
15575#include "confdefs.h"
15576/* System header to define __stub macros and hopefully few prototypes,
15577    which can conflict with char $ac_func(); below.  */
15578#include <assert.h>
15579/* Override any gcc2 internal prototype to avoid an error.  */
15580/* We use char because int might match the return type of a gcc2
15581    builtin and then its argument prototype would still apply.  */
15582char $ac_func();
15583
15584int main() {
15585
15586/* The GNU C library defines this for functions which it implements
15587    to always fail with ENOSYS.  Some functions are actually named
15588    something starting with __ and the normal name is an alias.  */
15589#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15590choke me
15591#else
15592$ac_func();
15593#endif
15594
15595; return 0; }
15596EOF
15597if { (eval echo configure:15598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15598  rm -rf conftest*
15599  eval "ac_cv_func_$ac_func=yes"
15600else
15601  echo "configure: failed program was:" >&5
15602  cat conftest.$ac_ext >&5
15603  rm -rf conftest*
15604  eval "ac_cv_func_$ac_func=no"
15605fi
15606rm -f conftest*
15607fi
15608
15609if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15610  echo "$ac_t""yes" 1>&6
15611    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15612  cat >> confdefs.h <<EOF
15613#define $ac_tr_func 1
15614EOF
15615 
15616else
15617  echo "$ac_t""no" 1>&6
15618fi
15619done
15620    
15621    fi
15622  fi
15623
15624  
15625  
15626  echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
15627echo "configure:15628: checking for hypotf declaration" >&5
15628  if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
15629    if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
15630  echo $ac_n "(cached) $ac_c" 1>&6
15631else
15632  
15633      
15634      ac_ext=C
15635# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15636ac_cpp='$CXXCPP $CPPFLAGS'
15637ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15638ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15639cross_compiling=$ac_cv_prog_cxx_cross
15640
15641      cat > conftest.$ac_ext <<EOF
15642#line 15643 "configure"
15643#include "confdefs.h"
15644#include <math.h>
15645int main() {
15646 hypotf(0, 0);
15647; return 0; }
15648EOF
15649if { (eval echo configure:15650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15650  rm -rf conftest*
15651  glibcpp_cv_func_hypotf_use=yes
15652else
15653  echo "configure: failed program was:" >&5
15654  cat conftest.$ac_ext >&5
15655  rm -rf conftest*
15656  glibcpp_cv_func_hypotf_use=no
15657fi
15658rm -f conftest*
15659      ac_ext=c
15660# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15661ac_cpp='$CPP $CPPFLAGS'
15662ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15663ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15664cross_compiling=$ac_cv_prog_cc_cross
15665
15666    
15667fi
15668
15669  fi
15670  echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
15671
15672  if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
15673    for ac_func in hypotf
15674do
15675echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15676echo "configure:15677: checking for $ac_func" >&5
15677if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15678  echo $ac_n "(cached) $ac_c" 1>&6
15679else
15680  cat > conftest.$ac_ext <<EOF
15681#line 15682 "configure"
15682#include "confdefs.h"
15683/* System header to define __stub macros and hopefully few prototypes,
15684    which can conflict with char $ac_func(); below.  */
15685#include <assert.h>
15686/* Override any gcc2 internal prototype to avoid an error.  */
15687/* We use char because int might match the return type of a gcc2
15688    builtin and then its argument prototype would still apply.  */
15689char $ac_func();
15690
15691int main() {
15692
15693/* The GNU C library defines this for functions which it implements
15694    to always fail with ENOSYS.  Some functions are actually named
15695    something starting with __ and the normal name is an alias.  */
15696#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15697choke me
15698#else
15699$ac_func();
15700#endif
15701
15702; return 0; }
15703EOF
15704if { (eval echo configure:15705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15705  rm -rf conftest*
15706  eval "ac_cv_func_$ac_func=yes"
15707else
15708  echo "configure: failed program was:" >&5
15709  cat conftest.$ac_ext >&5
15710  rm -rf conftest*
15711  eval "ac_cv_func_$ac_func=no"
15712fi
15713rm -f conftest*
15714fi
15715
15716if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15717  echo "$ac_t""yes" 1>&6
15718    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15719  cat >> confdefs.h <<EOF
15720#define $ac_tr_func 1
15721EOF
15722 
15723else
15724  echo "$ac_t""no" 1>&6
15725fi
15726done
15727    
15728  else
15729    
15730  echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
15731echo "configure:15732: checking for _hypotf declaration" >&5
15732  if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
15733    if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
15734  echo $ac_n "(cached) $ac_c" 1>&6
15735else
15736  
15737      
15738      ac_ext=C
15739# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15740ac_cpp='$CXXCPP $CPPFLAGS'
15741ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15742ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15743cross_compiling=$ac_cv_prog_cxx_cross
15744
15745      cat > conftest.$ac_ext <<EOF
15746#line 15747 "configure"
15747#include "confdefs.h"
15748#include <math.h>
15749int main() {
15750 _hypotf(0, 0);
15751; return 0; }
15752EOF
15753if { (eval echo configure:15754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15754  rm -rf conftest*
15755  glibcpp_cv_func__hypotf_use=yes
15756else
15757  echo "configure: failed program was:" >&5
15758  cat conftest.$ac_ext >&5
15759  rm -rf conftest*
15760  glibcpp_cv_func__hypotf_use=no
15761fi
15762rm -f conftest*
15763      ac_ext=c
15764# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15765ac_cpp='$CPP $CPPFLAGS'
15766ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15767ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15768cross_compiling=$ac_cv_prog_cc_cross
15769
15770    
15771fi
15772
15773  fi
15774  echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
15775
15776    if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
15777      for ac_func in _hypotf
15778do
15779echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15780echo "configure:15781: checking for $ac_func" >&5
15781if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15782  echo $ac_n "(cached) $ac_c" 1>&6
15783else
15784  cat > conftest.$ac_ext <<EOF
15785#line 15786 "configure"
15786#include "confdefs.h"
15787/* System header to define __stub macros and hopefully few prototypes,
15788    which can conflict with char $ac_func(); below.  */
15789#include <assert.h>
15790/* Override any gcc2 internal prototype to avoid an error.  */
15791/* We use char because int might match the return type of a gcc2
15792    builtin and then its argument prototype would still apply.  */
15793char $ac_func();
15794
15795int main() {
15796
15797/* The GNU C library defines this for functions which it implements
15798    to always fail with ENOSYS.  Some functions are actually named
15799    something starting with __ and the normal name is an alias.  */
15800#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15801choke me
15802#else
15803$ac_func();
15804#endif
15805
15806; return 0; }
15807EOF
15808if { (eval echo configure:15809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15809  rm -rf conftest*
15810  eval "ac_cv_func_$ac_func=yes"
15811else
15812  echo "configure: failed program was:" >&5
15813  cat conftest.$ac_ext >&5
15814  rm -rf conftest*
15815  eval "ac_cv_func_$ac_func=no"
15816fi
15817rm -f conftest*
15818fi
15819
15820if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15821  echo "$ac_t""yes" 1>&6
15822    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15823  cat >> confdefs.h <<EOF
15824#define $ac_tr_func 1
15825EOF
15826 
15827else
15828  echo "$ac_t""no" 1>&6
15829fi
15830done
15831    
15832    fi
15833  fi
15834
15835  
15836  
15837  echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
15838echo "configure:15839: checking for ldexpf declaration" >&5
15839  if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
15840    if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
15841  echo $ac_n "(cached) $ac_c" 1>&6
15842else
15843  
15844      
15845      ac_ext=C
15846# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15847ac_cpp='$CXXCPP $CPPFLAGS'
15848ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15849ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15850cross_compiling=$ac_cv_prog_cxx_cross
15851
15852      cat > conftest.$ac_ext <<EOF
15853#line 15854 "configure"
15854#include "confdefs.h"
15855#include <math.h>
15856int main() {
15857 ldexpf(0, 0);
15858; return 0; }
15859EOF
15860if { (eval echo configure:15861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15861  rm -rf conftest*
15862  glibcpp_cv_func_ldexpf_use=yes
15863else
15864  echo "configure: failed program was:" >&5
15865  cat conftest.$ac_ext >&5
15866  rm -rf conftest*
15867  glibcpp_cv_func_ldexpf_use=no
15868fi
15869rm -f conftest*
15870      ac_ext=c
15871# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15872ac_cpp='$CPP $CPPFLAGS'
15873ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15874ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15875cross_compiling=$ac_cv_prog_cc_cross
15876
15877    
15878fi
15879
15880  fi
15881  echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
15882
15883  if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
15884    for ac_func in ldexpf
15885do
15886echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15887echo "configure:15888: checking for $ac_func" >&5
15888if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15889  echo $ac_n "(cached) $ac_c" 1>&6
15890else
15891  cat > conftest.$ac_ext <<EOF
15892#line 15893 "configure"
15893#include "confdefs.h"
15894/* System header to define __stub macros and hopefully few prototypes,
15895    which can conflict with char $ac_func(); below.  */
15896#include <assert.h>
15897/* Override any gcc2 internal prototype to avoid an error.  */
15898/* We use char because int might match the return type of a gcc2
15899    builtin and then its argument prototype would still apply.  */
15900char $ac_func();
15901
15902int main() {
15903
15904/* The GNU C library defines this for functions which it implements
15905    to always fail with ENOSYS.  Some functions are actually named
15906    something starting with __ and the normal name is an alias.  */
15907#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15908choke me
15909#else
15910$ac_func();
15911#endif
15912
15913; return 0; }
15914EOF
15915if { (eval echo configure:15916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15916  rm -rf conftest*
15917  eval "ac_cv_func_$ac_func=yes"
15918else
15919  echo "configure: failed program was:" >&5
15920  cat conftest.$ac_ext >&5
15921  rm -rf conftest*
15922  eval "ac_cv_func_$ac_func=no"
15923fi
15924rm -f conftest*
15925fi
15926
15927if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15928  echo "$ac_t""yes" 1>&6
15929    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15930  cat >> confdefs.h <<EOF
15931#define $ac_tr_func 1
15932EOF
15933 
15934else
15935  echo "$ac_t""no" 1>&6
15936fi
15937done
15938    
15939  else
15940    
15941  echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
15942echo "configure:15943: checking for _ldexpf declaration" >&5
15943  if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
15944    if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
15945  echo $ac_n "(cached) $ac_c" 1>&6
15946else
15947  
15948      
15949      ac_ext=C
15950# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15951ac_cpp='$CXXCPP $CPPFLAGS'
15952ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15953ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15954cross_compiling=$ac_cv_prog_cxx_cross
15955
15956      cat > conftest.$ac_ext <<EOF
15957#line 15958 "configure"
15958#include "confdefs.h"
15959#include <math.h>
15960int main() {
15961 _ldexpf(0, 0);
15962; return 0; }
15963EOF
15964if { (eval echo configure:15965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15965  rm -rf conftest*
15966  glibcpp_cv_func__ldexpf_use=yes
15967else
15968  echo "configure: failed program was:" >&5
15969  cat conftest.$ac_ext >&5
15970  rm -rf conftest*
15971  glibcpp_cv_func__ldexpf_use=no
15972fi
15973rm -f conftest*
15974      ac_ext=c
15975# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15976ac_cpp='$CPP $CPPFLAGS'
15977ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15978ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15979cross_compiling=$ac_cv_prog_cc_cross
15980
15981    
15982fi
15983
15984  fi
15985  echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
15986
15987    if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
15988      for ac_func in _ldexpf
15989do
15990echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15991echo "configure:15992: checking for $ac_func" >&5
15992if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15993  echo $ac_n "(cached) $ac_c" 1>&6
15994else
15995  cat > conftest.$ac_ext <<EOF
15996#line 15997 "configure"
15997#include "confdefs.h"
15998/* System header to define __stub macros and hopefully few prototypes,
15999    which can conflict with char $ac_func(); below.  */
16000#include <assert.h>
16001/* Override any gcc2 internal prototype to avoid an error.  */
16002/* We use char because int might match the return type of a gcc2
16003    builtin and then its argument prototype would still apply.  */
16004char $ac_func();
16005
16006int main() {
16007
16008/* The GNU C library defines this for functions which it implements
16009    to always fail with ENOSYS.  Some functions are actually named
16010    something starting with __ and the normal name is an alias.  */
16011#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16012choke me
16013#else
16014$ac_func();
16015#endif
16016
16017; return 0; }
16018EOF
16019if { (eval echo configure:16020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16020  rm -rf conftest*
16021  eval "ac_cv_func_$ac_func=yes"
16022else
16023  echo "configure: failed program was:" >&5
16024  cat conftest.$ac_ext >&5
16025  rm -rf conftest*
16026  eval "ac_cv_func_$ac_func=no"
16027fi
16028rm -f conftest*
16029fi
16030
16031if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16032  echo "$ac_t""yes" 1>&6
16033    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16034  cat >> confdefs.h <<EOF
16035#define $ac_tr_func 1
16036EOF
16037 
16038else
16039  echo "$ac_t""no" 1>&6
16040fi
16041done
16042    
16043    fi
16044  fi
16045
16046  
16047  
16048  echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
16049echo "configure:16050: checking for logf declaration" >&5
16050  if test x${glibcpp_cv_func_logf_use+set} != xset; then
16051    if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
16052  echo $ac_n "(cached) $ac_c" 1>&6
16053else
16054  
16055      
16056      ac_ext=C
16057# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16058ac_cpp='$CXXCPP $CPPFLAGS'
16059ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16060ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16061cross_compiling=$ac_cv_prog_cxx_cross
16062
16063      cat > conftest.$ac_ext <<EOF
16064#line 16065 "configure"
16065#include "confdefs.h"
16066#include <math.h>
16067		      #ifdef HAVE_IEEEFP_H
16068		      #include <ieeefp.h>
16069		      #endif
16070		     
16071int main() {
16072 logf(0);
16073; return 0; }
16074EOF
16075if { (eval echo configure:16076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16076  rm -rf conftest*
16077  glibcpp_cv_func_logf_use=yes
16078else
16079  echo "configure: failed program was:" >&5
16080  cat conftest.$ac_ext >&5
16081  rm -rf conftest*
16082  glibcpp_cv_func_logf_use=no
16083fi
16084rm -f conftest*
16085      ac_ext=c
16086# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16087ac_cpp='$CPP $CPPFLAGS'
16088ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16089ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16090cross_compiling=$ac_cv_prog_cc_cross
16091
16092    
16093fi
16094
16095  fi
16096  echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
16097
16098  if test x$glibcpp_cv_func_logf_use = x"yes"; then
16099    for ac_func in logf
16100do
16101echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16102echo "configure:16103: checking for $ac_func" >&5
16103if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16104  echo $ac_n "(cached) $ac_c" 1>&6
16105else
16106  cat > conftest.$ac_ext <<EOF
16107#line 16108 "configure"
16108#include "confdefs.h"
16109/* System header to define __stub macros and hopefully few prototypes,
16110    which can conflict with char $ac_func(); below.  */
16111#include <assert.h>
16112/* Override any gcc2 internal prototype to avoid an error.  */
16113/* We use char because int might match the return type of a gcc2
16114    builtin and then its argument prototype would still apply.  */
16115char $ac_func();
16116
16117int main() {
16118
16119/* The GNU C library defines this for functions which it implements
16120    to always fail with ENOSYS.  Some functions are actually named
16121    something starting with __ and the normal name is an alias.  */
16122#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16123choke me
16124#else
16125$ac_func();
16126#endif
16127
16128; return 0; }
16129EOF
16130if { (eval echo configure:16131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16131  rm -rf conftest*
16132  eval "ac_cv_func_$ac_func=yes"
16133else
16134  echo "configure: failed program was:" >&5
16135  cat conftest.$ac_ext >&5
16136  rm -rf conftest*
16137  eval "ac_cv_func_$ac_func=no"
16138fi
16139rm -f conftest*
16140fi
16141
16142if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16143  echo "$ac_t""yes" 1>&6
16144    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16145  cat >> confdefs.h <<EOF
16146#define $ac_tr_func 1
16147EOF
16148 
16149else
16150  echo "$ac_t""no" 1>&6
16151fi
16152done
16153    
16154  else
16155    
16156  echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
16157echo "configure:16158: checking for _logf declaration" >&5
16158  if test x${glibcpp_cv_func__logf_use+set} != xset; then
16159    if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
16160  echo $ac_n "(cached) $ac_c" 1>&6
16161else
16162  
16163      
16164      ac_ext=C
16165# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16166ac_cpp='$CXXCPP $CPPFLAGS'
16167ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16168ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16169cross_compiling=$ac_cv_prog_cxx_cross
16170
16171      cat > conftest.$ac_ext <<EOF
16172#line 16173 "configure"
16173#include "confdefs.h"
16174#include <math.h>
16175		      #ifdef HAVE_IEEEFP_H
16176		      #include <ieeefp.h>
16177		      #endif
16178		     
16179int main() {
16180 _logf(0);
16181; return 0; }
16182EOF
16183if { (eval echo configure:16184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16184  rm -rf conftest*
16185  glibcpp_cv_func__logf_use=yes
16186else
16187  echo "configure: failed program was:" >&5
16188  cat conftest.$ac_ext >&5
16189  rm -rf conftest*
16190  glibcpp_cv_func__logf_use=no
16191fi
16192rm -f conftest*
16193      ac_ext=c
16194# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16195ac_cpp='$CPP $CPPFLAGS'
16196ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16197ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16198cross_compiling=$ac_cv_prog_cc_cross
16199
16200    
16201fi
16202
16203  fi
16204  echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
16205
16206    if test x$glibcpp_cv_func__logf_use = x"yes"; then
16207      for ac_func in _logf
16208do
16209echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16210echo "configure:16211: checking for $ac_func" >&5
16211if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16212  echo $ac_n "(cached) $ac_c" 1>&6
16213else
16214  cat > conftest.$ac_ext <<EOF
16215#line 16216 "configure"
16216#include "confdefs.h"
16217/* System header to define __stub macros and hopefully few prototypes,
16218    which can conflict with char $ac_func(); below.  */
16219#include <assert.h>
16220/* Override any gcc2 internal prototype to avoid an error.  */
16221/* We use char because int might match the return type of a gcc2
16222    builtin and then its argument prototype would still apply.  */
16223char $ac_func();
16224
16225int main() {
16226
16227/* The GNU C library defines this for functions which it implements
16228    to always fail with ENOSYS.  Some functions are actually named
16229    something starting with __ and the normal name is an alias.  */
16230#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16231choke me
16232#else
16233$ac_func();
16234#endif
16235
16236; return 0; }
16237EOF
16238if { (eval echo configure:16239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16239  rm -rf conftest*
16240  eval "ac_cv_func_$ac_func=yes"
16241else
16242  echo "configure: failed program was:" >&5
16243  cat conftest.$ac_ext >&5
16244  rm -rf conftest*
16245  eval "ac_cv_func_$ac_func=no"
16246fi
16247rm -f conftest*
16248fi
16249
16250if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16251  echo "$ac_t""yes" 1>&6
16252    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16253  cat >> confdefs.h <<EOF
16254#define $ac_tr_func 1
16255EOF
16256 
16257else
16258  echo "$ac_t""no" 1>&6
16259fi
16260done
16261    
16262    fi
16263  fi
16264
16265  
16266  
16267  echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
16268echo "configure:16269: checking for log10f declaration" >&5
16269  if test x${glibcpp_cv_func_log10f_use+set} != xset; then
16270    if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
16271  echo $ac_n "(cached) $ac_c" 1>&6
16272else
16273  
16274      
16275      ac_ext=C
16276# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16277ac_cpp='$CXXCPP $CPPFLAGS'
16278ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16279ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16280cross_compiling=$ac_cv_prog_cxx_cross
16281
16282      cat > conftest.$ac_ext <<EOF
16283#line 16284 "configure"
16284#include "confdefs.h"
16285#include <math.h>
16286		      #ifdef HAVE_IEEEFP_H
16287		      #include <ieeefp.h>
16288		      #endif
16289		     
16290int main() {
16291 log10f(0);
16292; return 0; }
16293EOF
16294if { (eval echo configure:16295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16295  rm -rf conftest*
16296  glibcpp_cv_func_log10f_use=yes
16297else
16298  echo "configure: failed program was:" >&5
16299  cat conftest.$ac_ext >&5
16300  rm -rf conftest*
16301  glibcpp_cv_func_log10f_use=no
16302fi
16303rm -f conftest*
16304      ac_ext=c
16305# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16306ac_cpp='$CPP $CPPFLAGS'
16307ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16308ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16309cross_compiling=$ac_cv_prog_cc_cross
16310
16311    
16312fi
16313
16314  fi
16315  echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
16316
16317  if test x$glibcpp_cv_func_log10f_use = x"yes"; then
16318    for ac_func in log10f
16319do
16320echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16321echo "configure:16322: checking for $ac_func" >&5
16322if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16323  echo $ac_n "(cached) $ac_c" 1>&6
16324else
16325  cat > conftest.$ac_ext <<EOF
16326#line 16327 "configure"
16327#include "confdefs.h"
16328/* System header to define __stub macros and hopefully few prototypes,
16329    which can conflict with char $ac_func(); below.  */
16330#include <assert.h>
16331/* Override any gcc2 internal prototype to avoid an error.  */
16332/* We use char because int might match the return type of a gcc2
16333    builtin and then its argument prototype would still apply.  */
16334char $ac_func();
16335
16336int main() {
16337
16338/* The GNU C library defines this for functions which it implements
16339    to always fail with ENOSYS.  Some functions are actually named
16340    something starting with __ and the normal name is an alias.  */
16341#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16342choke me
16343#else
16344$ac_func();
16345#endif
16346
16347; return 0; }
16348EOF
16349if { (eval echo configure:16350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16350  rm -rf conftest*
16351  eval "ac_cv_func_$ac_func=yes"
16352else
16353  echo "configure: failed program was:" >&5
16354  cat conftest.$ac_ext >&5
16355  rm -rf conftest*
16356  eval "ac_cv_func_$ac_func=no"
16357fi
16358rm -f conftest*
16359fi
16360
16361if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16362  echo "$ac_t""yes" 1>&6
16363    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16364  cat >> confdefs.h <<EOF
16365#define $ac_tr_func 1
16366EOF
16367 
16368else
16369  echo "$ac_t""no" 1>&6
16370fi
16371done
16372    
16373  else
16374    
16375  echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
16376echo "configure:16377: checking for _log10f declaration" >&5
16377  if test x${glibcpp_cv_func__log10f_use+set} != xset; then
16378    if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
16379  echo $ac_n "(cached) $ac_c" 1>&6
16380else
16381  
16382      
16383      ac_ext=C
16384# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16385ac_cpp='$CXXCPP $CPPFLAGS'
16386ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16387ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16388cross_compiling=$ac_cv_prog_cxx_cross
16389
16390      cat > conftest.$ac_ext <<EOF
16391#line 16392 "configure"
16392#include "confdefs.h"
16393#include <math.h>
16394		      #ifdef HAVE_IEEEFP_H
16395		      #include <ieeefp.h>
16396		      #endif
16397		     
16398int main() {
16399 _log10f(0);
16400; return 0; }
16401EOF
16402if { (eval echo configure:16403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16403  rm -rf conftest*
16404  glibcpp_cv_func__log10f_use=yes
16405else
16406  echo "configure: failed program was:" >&5
16407  cat conftest.$ac_ext >&5
16408  rm -rf conftest*
16409  glibcpp_cv_func__log10f_use=no
16410fi
16411rm -f conftest*
16412      ac_ext=c
16413# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16414ac_cpp='$CPP $CPPFLAGS'
16415ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16416ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16417cross_compiling=$ac_cv_prog_cc_cross
16418
16419    
16420fi
16421
16422  fi
16423  echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
16424
16425    if test x$glibcpp_cv_func__log10f_use = x"yes"; then
16426      for ac_func in _log10f
16427do
16428echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16429echo "configure:16430: checking for $ac_func" >&5
16430if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16431  echo $ac_n "(cached) $ac_c" 1>&6
16432else
16433  cat > conftest.$ac_ext <<EOF
16434#line 16435 "configure"
16435#include "confdefs.h"
16436/* System header to define __stub macros and hopefully few prototypes,
16437    which can conflict with char $ac_func(); below.  */
16438#include <assert.h>
16439/* Override any gcc2 internal prototype to avoid an error.  */
16440/* We use char because int might match the return type of a gcc2
16441    builtin and then its argument prototype would still apply.  */
16442char $ac_func();
16443
16444int main() {
16445
16446/* The GNU C library defines this for functions which it implements
16447    to always fail with ENOSYS.  Some functions are actually named
16448    something starting with __ and the normal name is an alias.  */
16449#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16450choke me
16451#else
16452$ac_func();
16453#endif
16454
16455; return 0; }
16456EOF
16457if { (eval echo configure:16458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16458  rm -rf conftest*
16459  eval "ac_cv_func_$ac_func=yes"
16460else
16461  echo "configure: failed program was:" >&5
16462  cat conftest.$ac_ext >&5
16463  rm -rf conftest*
16464  eval "ac_cv_func_$ac_func=no"
16465fi
16466rm -f conftest*
16467fi
16468
16469if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16470  echo "$ac_t""yes" 1>&6
16471    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16472  cat >> confdefs.h <<EOF
16473#define $ac_tr_func 1
16474EOF
16475 
16476else
16477  echo "$ac_t""no" 1>&6
16478fi
16479done
16480    
16481    fi
16482  fi
16483
16484  
16485  
16486  echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
16487echo "configure:16488: checking for modff declaration" >&5
16488  if test x${glibcpp_cv_func_modff_use+set} != xset; then
16489    if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
16490  echo $ac_n "(cached) $ac_c" 1>&6
16491else
16492  
16493      
16494      ac_ext=C
16495# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16496ac_cpp='$CXXCPP $CPPFLAGS'
16497ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16498ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16499cross_compiling=$ac_cv_prog_cxx_cross
16500
16501      cat > conftest.$ac_ext <<EOF
16502#line 16503 "configure"
16503#include "confdefs.h"
16504#include <math.h>
16505int main() {
16506 modff(0, 0);
16507; return 0; }
16508EOF
16509if { (eval echo configure:16510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16510  rm -rf conftest*
16511  glibcpp_cv_func_modff_use=yes
16512else
16513  echo "configure: failed program was:" >&5
16514  cat conftest.$ac_ext >&5
16515  rm -rf conftest*
16516  glibcpp_cv_func_modff_use=no
16517fi
16518rm -f conftest*
16519      ac_ext=c
16520# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16521ac_cpp='$CPP $CPPFLAGS'
16522ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16523ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16524cross_compiling=$ac_cv_prog_cc_cross
16525
16526    
16527fi
16528
16529  fi
16530  echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
16531
16532  if test x$glibcpp_cv_func_modff_use = x"yes"; then
16533    for ac_func in modff
16534do
16535echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16536echo "configure:16537: checking for $ac_func" >&5
16537if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16538  echo $ac_n "(cached) $ac_c" 1>&6
16539else
16540  cat > conftest.$ac_ext <<EOF
16541#line 16542 "configure"
16542#include "confdefs.h"
16543/* System header to define __stub macros and hopefully few prototypes,
16544    which can conflict with char $ac_func(); below.  */
16545#include <assert.h>
16546/* Override any gcc2 internal prototype to avoid an error.  */
16547/* We use char because int might match the return type of a gcc2
16548    builtin and then its argument prototype would still apply.  */
16549char $ac_func();
16550
16551int main() {
16552
16553/* The GNU C library defines this for functions which it implements
16554    to always fail with ENOSYS.  Some functions are actually named
16555    something starting with __ and the normal name is an alias.  */
16556#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16557choke me
16558#else
16559$ac_func();
16560#endif
16561
16562; return 0; }
16563EOF
16564if { (eval echo configure:16565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16565  rm -rf conftest*
16566  eval "ac_cv_func_$ac_func=yes"
16567else
16568  echo "configure: failed program was:" >&5
16569  cat conftest.$ac_ext >&5
16570  rm -rf conftest*
16571  eval "ac_cv_func_$ac_func=no"
16572fi
16573rm -f conftest*
16574fi
16575
16576if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16577  echo "$ac_t""yes" 1>&6
16578    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16579  cat >> confdefs.h <<EOF
16580#define $ac_tr_func 1
16581EOF
16582 
16583else
16584  echo "$ac_t""no" 1>&6
16585fi
16586done
16587    
16588  else
16589    
16590  echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
16591echo "configure:16592: checking for _modff declaration" >&5
16592  if test x${glibcpp_cv_func__modff_use+set} != xset; then
16593    if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
16594  echo $ac_n "(cached) $ac_c" 1>&6
16595else
16596  
16597      
16598      ac_ext=C
16599# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16600ac_cpp='$CXXCPP $CPPFLAGS'
16601ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16602ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16603cross_compiling=$ac_cv_prog_cxx_cross
16604
16605      cat > conftest.$ac_ext <<EOF
16606#line 16607 "configure"
16607#include "confdefs.h"
16608#include <math.h>
16609int main() {
16610 _modff(0, 0);
16611; return 0; }
16612EOF
16613if { (eval echo configure:16614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16614  rm -rf conftest*
16615  glibcpp_cv_func__modff_use=yes
16616else
16617  echo "configure: failed program was:" >&5
16618  cat conftest.$ac_ext >&5
16619  rm -rf conftest*
16620  glibcpp_cv_func__modff_use=no
16621fi
16622rm -f conftest*
16623      ac_ext=c
16624# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16625ac_cpp='$CPP $CPPFLAGS'
16626ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16627ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16628cross_compiling=$ac_cv_prog_cc_cross
16629
16630    
16631fi
16632
16633  fi
16634  echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
16635
16636    if test x$glibcpp_cv_func__modff_use = x"yes"; then
16637      for ac_func in _modff
16638do
16639echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16640echo "configure:16641: checking for $ac_func" >&5
16641if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16642  echo $ac_n "(cached) $ac_c" 1>&6
16643else
16644  cat > conftest.$ac_ext <<EOF
16645#line 16646 "configure"
16646#include "confdefs.h"
16647/* System header to define __stub macros and hopefully few prototypes,
16648    which can conflict with char $ac_func(); below.  */
16649#include <assert.h>
16650/* Override any gcc2 internal prototype to avoid an error.  */
16651/* We use char because int might match the return type of a gcc2
16652    builtin and then its argument prototype would still apply.  */
16653char $ac_func();
16654
16655int main() {
16656
16657/* The GNU C library defines this for functions which it implements
16658    to always fail with ENOSYS.  Some functions are actually named
16659    something starting with __ and the normal name is an alias.  */
16660#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16661choke me
16662#else
16663$ac_func();
16664#endif
16665
16666; return 0; }
16667EOF
16668if { (eval echo configure:16669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16669  rm -rf conftest*
16670  eval "ac_cv_func_$ac_func=yes"
16671else
16672  echo "configure: failed program was:" >&5
16673  cat conftest.$ac_ext >&5
16674  rm -rf conftest*
16675  eval "ac_cv_func_$ac_func=no"
16676fi
16677rm -f conftest*
16678fi
16679
16680if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16681  echo "$ac_t""yes" 1>&6
16682    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16683  cat >> confdefs.h <<EOF
16684#define $ac_tr_func 1
16685EOF
16686 
16687else
16688  echo "$ac_t""no" 1>&6
16689fi
16690done
16691    
16692    fi
16693  fi
16694
16695  
16696  
16697  echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
16698echo "configure:16699: checking for powf declaration" >&5
16699  if test x${glibcpp_cv_func_powf_use+set} != xset; then
16700    if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
16701  echo $ac_n "(cached) $ac_c" 1>&6
16702else
16703  
16704      
16705      ac_ext=C
16706# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16707ac_cpp='$CXXCPP $CPPFLAGS'
16708ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16709ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16710cross_compiling=$ac_cv_prog_cxx_cross
16711
16712      cat > conftest.$ac_ext <<EOF
16713#line 16714 "configure"
16714#include "confdefs.h"
16715#include <math.h>
16716int main() {
16717 powf(0, 0);
16718; return 0; }
16719EOF
16720if { (eval echo configure:16721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16721  rm -rf conftest*
16722  glibcpp_cv_func_powf_use=yes
16723else
16724  echo "configure: failed program was:" >&5
16725  cat conftest.$ac_ext >&5
16726  rm -rf conftest*
16727  glibcpp_cv_func_powf_use=no
16728fi
16729rm -f conftest*
16730      ac_ext=c
16731# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16732ac_cpp='$CPP $CPPFLAGS'
16733ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16734ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16735cross_compiling=$ac_cv_prog_cc_cross
16736
16737    
16738fi
16739
16740  fi
16741  echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
16742
16743  if test x$glibcpp_cv_func_powf_use = x"yes"; then
16744    for ac_func in powf
16745do
16746echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16747echo "configure:16748: checking for $ac_func" >&5
16748if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16749  echo $ac_n "(cached) $ac_c" 1>&6
16750else
16751  cat > conftest.$ac_ext <<EOF
16752#line 16753 "configure"
16753#include "confdefs.h"
16754/* System header to define __stub macros and hopefully few prototypes,
16755    which can conflict with char $ac_func(); below.  */
16756#include <assert.h>
16757/* Override any gcc2 internal prototype to avoid an error.  */
16758/* We use char because int might match the return type of a gcc2
16759    builtin and then its argument prototype would still apply.  */
16760char $ac_func();
16761
16762int main() {
16763
16764/* The GNU C library defines this for functions which it implements
16765    to always fail with ENOSYS.  Some functions are actually named
16766    something starting with __ and the normal name is an alias.  */
16767#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16768choke me
16769#else
16770$ac_func();
16771#endif
16772
16773; return 0; }
16774EOF
16775if { (eval echo configure:16776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16776  rm -rf conftest*
16777  eval "ac_cv_func_$ac_func=yes"
16778else
16779  echo "configure: failed program was:" >&5
16780  cat conftest.$ac_ext >&5
16781  rm -rf conftest*
16782  eval "ac_cv_func_$ac_func=no"
16783fi
16784rm -f conftest*
16785fi
16786
16787if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16788  echo "$ac_t""yes" 1>&6
16789    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16790  cat >> confdefs.h <<EOF
16791#define $ac_tr_func 1
16792EOF
16793 
16794else
16795  echo "$ac_t""no" 1>&6
16796fi
16797done
16798    
16799  else
16800    
16801  echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
16802echo "configure:16803: checking for _powf declaration" >&5
16803  if test x${glibcpp_cv_func__powf_use+set} != xset; then
16804    if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
16805  echo $ac_n "(cached) $ac_c" 1>&6
16806else
16807  
16808      
16809      ac_ext=C
16810# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16811ac_cpp='$CXXCPP $CPPFLAGS'
16812ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16813ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16814cross_compiling=$ac_cv_prog_cxx_cross
16815
16816      cat > conftest.$ac_ext <<EOF
16817#line 16818 "configure"
16818#include "confdefs.h"
16819#include <math.h>
16820int main() {
16821 _powf(0, 0);
16822; return 0; }
16823EOF
16824if { (eval echo configure:16825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16825  rm -rf conftest*
16826  glibcpp_cv_func__powf_use=yes
16827else
16828  echo "configure: failed program was:" >&5
16829  cat conftest.$ac_ext >&5
16830  rm -rf conftest*
16831  glibcpp_cv_func__powf_use=no
16832fi
16833rm -f conftest*
16834      ac_ext=c
16835# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16836ac_cpp='$CPP $CPPFLAGS'
16837ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16838ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16839cross_compiling=$ac_cv_prog_cc_cross
16840
16841    
16842fi
16843
16844  fi
16845  echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
16846
16847    if test x$glibcpp_cv_func__powf_use = x"yes"; then
16848      for ac_func in _powf
16849do
16850echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16851echo "configure:16852: checking for $ac_func" >&5
16852if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16853  echo $ac_n "(cached) $ac_c" 1>&6
16854else
16855  cat > conftest.$ac_ext <<EOF
16856#line 16857 "configure"
16857#include "confdefs.h"
16858/* System header to define __stub macros and hopefully few prototypes,
16859    which can conflict with char $ac_func(); below.  */
16860#include <assert.h>
16861/* Override any gcc2 internal prototype to avoid an error.  */
16862/* We use char because int might match the return type of a gcc2
16863    builtin and then its argument prototype would still apply.  */
16864char $ac_func();
16865
16866int main() {
16867
16868/* The GNU C library defines this for functions which it implements
16869    to always fail with ENOSYS.  Some functions are actually named
16870    something starting with __ and the normal name is an alias.  */
16871#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16872choke me
16873#else
16874$ac_func();
16875#endif
16876
16877; return 0; }
16878EOF
16879if { (eval echo configure:16880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16880  rm -rf conftest*
16881  eval "ac_cv_func_$ac_func=yes"
16882else
16883  echo "configure: failed program was:" >&5
16884  cat conftest.$ac_ext >&5
16885  rm -rf conftest*
16886  eval "ac_cv_func_$ac_func=no"
16887fi
16888rm -f conftest*
16889fi
16890
16891if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16892  echo "$ac_t""yes" 1>&6
16893    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16894  cat >> confdefs.h <<EOF
16895#define $ac_tr_func 1
16896EOF
16897 
16898else
16899  echo "$ac_t""no" 1>&6
16900fi
16901done
16902    
16903    fi
16904  fi
16905
16906  
16907  
16908  echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
16909echo "configure:16910: checking for sqrtf declaration" >&5
16910  if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
16911    if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
16912  echo $ac_n "(cached) $ac_c" 1>&6
16913else
16914  
16915      
16916      ac_ext=C
16917# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16918ac_cpp='$CXXCPP $CPPFLAGS'
16919ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16920ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16921cross_compiling=$ac_cv_prog_cxx_cross
16922
16923      cat > conftest.$ac_ext <<EOF
16924#line 16925 "configure"
16925#include "confdefs.h"
16926#include <math.h>
16927		      #ifdef HAVE_IEEEFP_H
16928		      #include <ieeefp.h>
16929		      #endif
16930		     
16931int main() {
16932 sqrtf(0);
16933; return 0; }
16934EOF
16935if { (eval echo configure:16936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16936  rm -rf conftest*
16937  glibcpp_cv_func_sqrtf_use=yes
16938else
16939  echo "configure: failed program was:" >&5
16940  cat conftest.$ac_ext >&5
16941  rm -rf conftest*
16942  glibcpp_cv_func_sqrtf_use=no
16943fi
16944rm -f conftest*
16945      ac_ext=c
16946# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16947ac_cpp='$CPP $CPPFLAGS'
16948ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16949ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16950cross_compiling=$ac_cv_prog_cc_cross
16951
16952    
16953fi
16954
16955  fi
16956  echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
16957
16958  if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
16959    for ac_func in sqrtf
16960do
16961echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16962echo "configure:16963: checking for $ac_func" >&5
16963if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16964  echo $ac_n "(cached) $ac_c" 1>&6
16965else
16966  cat > conftest.$ac_ext <<EOF
16967#line 16968 "configure"
16968#include "confdefs.h"
16969/* System header to define __stub macros and hopefully few prototypes,
16970    which can conflict with char $ac_func(); below.  */
16971#include <assert.h>
16972/* Override any gcc2 internal prototype to avoid an error.  */
16973/* We use char because int might match the return type of a gcc2
16974    builtin and then its argument prototype would still apply.  */
16975char $ac_func();
16976
16977int main() {
16978
16979/* The GNU C library defines this for functions which it implements
16980    to always fail with ENOSYS.  Some functions are actually named
16981    something starting with __ and the normal name is an alias.  */
16982#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16983choke me
16984#else
16985$ac_func();
16986#endif
16987
16988; return 0; }
16989EOF
16990if { (eval echo configure:16991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16991  rm -rf conftest*
16992  eval "ac_cv_func_$ac_func=yes"
16993else
16994  echo "configure: failed program was:" >&5
16995  cat conftest.$ac_ext >&5
16996  rm -rf conftest*
16997  eval "ac_cv_func_$ac_func=no"
16998fi
16999rm -f conftest*
17000fi
17001
17002if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17003  echo "$ac_t""yes" 1>&6
17004    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17005  cat >> confdefs.h <<EOF
17006#define $ac_tr_func 1
17007EOF
17008 
17009else
17010  echo "$ac_t""no" 1>&6
17011fi
17012done
17013    
17014  else
17015    
17016  echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
17017echo "configure:17018: checking for _sqrtf declaration" >&5
17018  if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
17019    if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
17020  echo $ac_n "(cached) $ac_c" 1>&6
17021else
17022  
17023      
17024      ac_ext=C
17025# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17026ac_cpp='$CXXCPP $CPPFLAGS'
17027ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17028ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17029cross_compiling=$ac_cv_prog_cxx_cross
17030
17031      cat > conftest.$ac_ext <<EOF
17032#line 17033 "configure"
17033#include "confdefs.h"
17034#include <math.h>
17035		      #ifdef HAVE_IEEEFP_H
17036		      #include <ieeefp.h>
17037		      #endif
17038		     
17039int main() {
17040 _sqrtf(0);
17041; return 0; }
17042EOF
17043if { (eval echo configure:17044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17044  rm -rf conftest*
17045  glibcpp_cv_func__sqrtf_use=yes
17046else
17047  echo "configure: failed program was:" >&5
17048  cat conftest.$ac_ext >&5
17049  rm -rf conftest*
17050  glibcpp_cv_func__sqrtf_use=no
17051fi
17052rm -f conftest*
17053      ac_ext=c
17054# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17055ac_cpp='$CPP $CPPFLAGS'
17056ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17057ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17058cross_compiling=$ac_cv_prog_cc_cross
17059
17060    
17061fi
17062
17063  fi
17064  echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
17065
17066    if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
17067      for ac_func in _sqrtf
17068do
17069echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17070echo "configure:17071: checking for $ac_func" >&5
17071if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17072  echo $ac_n "(cached) $ac_c" 1>&6
17073else
17074  cat > conftest.$ac_ext <<EOF
17075#line 17076 "configure"
17076#include "confdefs.h"
17077/* System header to define __stub macros and hopefully few prototypes,
17078    which can conflict with char $ac_func(); below.  */
17079#include <assert.h>
17080/* Override any gcc2 internal prototype to avoid an error.  */
17081/* We use char because int might match the return type of a gcc2
17082    builtin and then its argument prototype would still apply.  */
17083char $ac_func();
17084
17085int main() {
17086
17087/* The GNU C library defines this for functions which it implements
17088    to always fail with ENOSYS.  Some functions are actually named
17089    something starting with __ and the normal name is an alias.  */
17090#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17091choke me
17092#else
17093$ac_func();
17094#endif
17095
17096; return 0; }
17097EOF
17098if { (eval echo configure:17099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17099  rm -rf conftest*
17100  eval "ac_cv_func_$ac_func=yes"
17101else
17102  echo "configure: failed program was:" >&5
17103  cat conftest.$ac_ext >&5
17104  rm -rf conftest*
17105  eval "ac_cv_func_$ac_func=no"
17106fi
17107rm -f conftest*
17108fi
17109
17110if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17111  echo "$ac_t""yes" 1>&6
17112    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17113  cat >> confdefs.h <<EOF
17114#define $ac_tr_func 1
17115EOF
17116 
17117else
17118  echo "$ac_t""no" 1>&6
17119fi
17120done
17121    
17122    fi
17123  fi
17124
17125  
17126  
17127  echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
17128echo "configure:17129: checking for sincosf declaration" >&5
17129  if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
17130    if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
17131  echo $ac_n "(cached) $ac_c" 1>&6
17132else
17133  
17134      
17135      ac_ext=C
17136# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17137ac_cpp='$CXXCPP $CPPFLAGS'
17138ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17139ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17140cross_compiling=$ac_cv_prog_cxx_cross
17141
17142      cat > conftest.$ac_ext <<EOF
17143#line 17144 "configure"
17144#include "confdefs.h"
17145#include <math.h>
17146int main() {
17147 sincosf(0, 0, 0);
17148; return 0; }
17149EOF
17150if { (eval echo configure:17151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17151  rm -rf conftest*
17152  glibcpp_cv_func_sincosf_use=yes
17153else
17154  echo "configure: failed program was:" >&5
17155  cat conftest.$ac_ext >&5
17156  rm -rf conftest*
17157  glibcpp_cv_func_sincosf_use=no
17158fi
17159rm -f conftest*
17160      ac_ext=c
17161# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17162ac_cpp='$CPP $CPPFLAGS'
17163ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17164ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17165cross_compiling=$ac_cv_prog_cc_cross
17166
17167    
17168fi
17169
17170  fi
17171  echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
17172
17173  if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
17174    for ac_func in sincosf
17175do
17176echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17177echo "configure:17178: checking for $ac_func" >&5
17178if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17179  echo $ac_n "(cached) $ac_c" 1>&6
17180else
17181  cat > conftest.$ac_ext <<EOF
17182#line 17183 "configure"
17183#include "confdefs.h"
17184/* System header to define __stub macros and hopefully few prototypes,
17185    which can conflict with char $ac_func(); below.  */
17186#include <assert.h>
17187/* Override any gcc2 internal prototype to avoid an error.  */
17188/* We use char because int might match the return type of a gcc2
17189    builtin and then its argument prototype would still apply.  */
17190char $ac_func();
17191
17192int main() {
17193
17194/* The GNU C library defines this for functions which it implements
17195    to always fail with ENOSYS.  Some functions are actually named
17196    something starting with __ and the normal name is an alias.  */
17197#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17198choke me
17199#else
17200$ac_func();
17201#endif
17202
17203; return 0; }
17204EOF
17205if { (eval echo configure:17206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17206  rm -rf conftest*
17207  eval "ac_cv_func_$ac_func=yes"
17208else
17209  echo "configure: failed program was:" >&5
17210  cat conftest.$ac_ext >&5
17211  rm -rf conftest*
17212  eval "ac_cv_func_$ac_func=no"
17213fi
17214rm -f conftest*
17215fi
17216
17217if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17218  echo "$ac_t""yes" 1>&6
17219    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17220  cat >> confdefs.h <<EOF
17221#define $ac_tr_func 1
17222EOF
17223 
17224else
17225  echo "$ac_t""no" 1>&6
17226fi
17227done
17228    
17229  else
17230    
17231  echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
17232echo "configure:17233: checking for _sincosf declaration" >&5
17233  if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
17234    if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
17235  echo $ac_n "(cached) $ac_c" 1>&6
17236else
17237  
17238      
17239      ac_ext=C
17240# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17241ac_cpp='$CXXCPP $CPPFLAGS'
17242ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17243ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17244cross_compiling=$ac_cv_prog_cxx_cross
17245
17246      cat > conftest.$ac_ext <<EOF
17247#line 17248 "configure"
17248#include "confdefs.h"
17249#include <math.h>
17250int main() {
17251 _sincosf(0, 0, 0);
17252; return 0; }
17253EOF
17254if { (eval echo configure:17255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17255  rm -rf conftest*
17256  glibcpp_cv_func__sincosf_use=yes
17257else
17258  echo "configure: failed program was:" >&5
17259  cat conftest.$ac_ext >&5
17260  rm -rf conftest*
17261  glibcpp_cv_func__sincosf_use=no
17262fi
17263rm -f conftest*
17264      ac_ext=c
17265# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17266ac_cpp='$CPP $CPPFLAGS'
17267ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17268ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17269cross_compiling=$ac_cv_prog_cc_cross
17270
17271    
17272fi
17273
17274  fi
17275  echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
17276
17277    if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
17278      for ac_func in _sincosf
17279do
17280echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17281echo "configure:17282: checking for $ac_func" >&5
17282if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17283  echo $ac_n "(cached) $ac_c" 1>&6
17284else
17285  cat > conftest.$ac_ext <<EOF
17286#line 17287 "configure"
17287#include "confdefs.h"
17288/* System header to define __stub macros and hopefully few prototypes,
17289    which can conflict with char $ac_func(); below.  */
17290#include <assert.h>
17291/* Override any gcc2 internal prototype to avoid an error.  */
17292/* We use char because int might match the return type of a gcc2
17293    builtin and then its argument prototype would still apply.  */
17294char $ac_func();
17295
17296int main() {
17297
17298/* The GNU C library defines this for functions which it implements
17299    to always fail with ENOSYS.  Some functions are actually named
17300    something starting with __ and the normal name is an alias.  */
17301#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17302choke me
17303#else
17304$ac_func();
17305#endif
17306
17307; return 0; }
17308EOF
17309if { (eval echo configure:17310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17310  rm -rf conftest*
17311  eval "ac_cv_func_$ac_func=yes"
17312else
17313  echo "configure: failed program was:" >&5
17314  cat conftest.$ac_ext >&5
17315  rm -rf conftest*
17316  eval "ac_cv_func_$ac_func=no"
17317fi
17318rm -f conftest*
17319fi
17320
17321if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17322  echo "$ac_t""yes" 1>&6
17323    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17324  cat >> confdefs.h <<EOF
17325#define $ac_tr_func 1
17326EOF
17327 
17328else
17329  echo "$ac_t""no" 1>&6
17330fi
17331done
17332    
17333    fi
17334  fi
17335
17336  
17337  
17338  echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
17339echo "configure:17340: checking for finitef declaration" >&5
17340  if test x${glibcpp_cv_func_finitef_use+set} != xset; then
17341    if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
17342  echo $ac_n "(cached) $ac_c" 1>&6
17343else
17344  
17345      
17346      ac_ext=C
17347# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17348ac_cpp='$CXXCPP $CPPFLAGS'
17349ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17350ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17351cross_compiling=$ac_cv_prog_cxx_cross
17352
17353      cat > conftest.$ac_ext <<EOF
17354#line 17355 "configure"
17355#include "confdefs.h"
17356#include <math.h>
17357		      #ifdef HAVE_IEEEFP_H
17358		      #include <ieeefp.h>
17359		      #endif
17360		     
17361int main() {
17362 finitef(0);
17363; return 0; }
17364EOF
17365if { (eval echo configure:17366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17366  rm -rf conftest*
17367  glibcpp_cv_func_finitef_use=yes
17368else
17369  echo "configure: failed program was:" >&5
17370  cat conftest.$ac_ext >&5
17371  rm -rf conftest*
17372  glibcpp_cv_func_finitef_use=no
17373fi
17374rm -f conftest*
17375      ac_ext=c
17376# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17377ac_cpp='$CPP $CPPFLAGS'
17378ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17379ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17380cross_compiling=$ac_cv_prog_cc_cross
17381
17382    
17383fi
17384
17385  fi
17386  echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
17387
17388  if test x$glibcpp_cv_func_finitef_use = x"yes"; then
17389    for ac_func in finitef
17390do
17391echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17392echo "configure:17393: checking for $ac_func" >&5
17393if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17394  echo $ac_n "(cached) $ac_c" 1>&6
17395else
17396  cat > conftest.$ac_ext <<EOF
17397#line 17398 "configure"
17398#include "confdefs.h"
17399/* System header to define __stub macros and hopefully few prototypes,
17400    which can conflict with char $ac_func(); below.  */
17401#include <assert.h>
17402/* Override any gcc2 internal prototype to avoid an error.  */
17403/* We use char because int might match the return type of a gcc2
17404    builtin and then its argument prototype would still apply.  */
17405char $ac_func();
17406
17407int main() {
17408
17409/* The GNU C library defines this for functions which it implements
17410    to always fail with ENOSYS.  Some functions are actually named
17411    something starting with __ and the normal name is an alias.  */
17412#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17413choke me
17414#else
17415$ac_func();
17416#endif
17417
17418; return 0; }
17419EOF
17420if { (eval echo configure:17421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17421  rm -rf conftest*
17422  eval "ac_cv_func_$ac_func=yes"
17423else
17424  echo "configure: failed program was:" >&5
17425  cat conftest.$ac_ext >&5
17426  rm -rf conftest*
17427  eval "ac_cv_func_$ac_func=no"
17428fi
17429rm -f conftest*
17430fi
17431
17432if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17433  echo "$ac_t""yes" 1>&6
17434    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17435  cat >> confdefs.h <<EOF
17436#define $ac_tr_func 1
17437EOF
17438 
17439else
17440  echo "$ac_t""no" 1>&6
17441fi
17442done
17443    
17444  else
17445    
17446  echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
17447echo "configure:17448: checking for _finitef declaration" >&5
17448  if test x${glibcpp_cv_func__finitef_use+set} != xset; then
17449    if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
17450  echo $ac_n "(cached) $ac_c" 1>&6
17451else
17452  
17453      
17454      ac_ext=C
17455# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17456ac_cpp='$CXXCPP $CPPFLAGS'
17457ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17458ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17459cross_compiling=$ac_cv_prog_cxx_cross
17460
17461      cat > conftest.$ac_ext <<EOF
17462#line 17463 "configure"
17463#include "confdefs.h"
17464#include <math.h>
17465		      #ifdef HAVE_IEEEFP_H
17466		      #include <ieeefp.h>
17467		      #endif
17468		     
17469int main() {
17470 _finitef(0);
17471; return 0; }
17472EOF
17473if { (eval echo configure:17474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17474  rm -rf conftest*
17475  glibcpp_cv_func__finitef_use=yes
17476else
17477  echo "configure: failed program was:" >&5
17478  cat conftest.$ac_ext >&5
17479  rm -rf conftest*
17480  glibcpp_cv_func__finitef_use=no
17481fi
17482rm -f conftest*
17483      ac_ext=c
17484# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17485ac_cpp='$CPP $CPPFLAGS'
17486ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17487ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17488cross_compiling=$ac_cv_prog_cc_cross
17489
17490    
17491fi
17492
17493  fi
17494  echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
17495
17496    if test x$glibcpp_cv_func__finitef_use = x"yes"; then
17497      for ac_func in _finitef
17498do
17499echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17500echo "configure:17501: checking for $ac_func" >&5
17501if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17502  echo $ac_n "(cached) $ac_c" 1>&6
17503else
17504  cat > conftest.$ac_ext <<EOF
17505#line 17506 "configure"
17506#include "confdefs.h"
17507/* System header to define __stub macros and hopefully few prototypes,
17508    which can conflict with char $ac_func(); below.  */
17509#include <assert.h>
17510/* Override any gcc2 internal prototype to avoid an error.  */
17511/* We use char because int might match the return type of a gcc2
17512    builtin and then its argument prototype would still apply.  */
17513char $ac_func();
17514
17515int main() {
17516
17517/* The GNU C library defines this for functions which it implements
17518    to always fail with ENOSYS.  Some functions are actually named
17519    something starting with __ and the normal name is an alias.  */
17520#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17521choke me
17522#else
17523$ac_func();
17524#endif
17525
17526; return 0; }
17527EOF
17528if { (eval echo configure:17529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17529  rm -rf conftest*
17530  eval "ac_cv_func_$ac_func=yes"
17531else
17532  echo "configure: failed program was:" >&5
17533  cat conftest.$ac_ext >&5
17534  rm -rf conftest*
17535  eval "ac_cv_func_$ac_func=no"
17536fi
17537rm -f conftest*
17538fi
17539
17540if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17541  echo "$ac_t""yes" 1>&6
17542    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17543  cat >> confdefs.h <<EOF
17544#define $ac_tr_func 1
17545EOF
17546 
17547else
17548  echo "$ac_t""no" 1>&6
17549fi
17550done
17551    
17552    fi
17553  fi
17554
17555
17556    
17557  echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
17558echo "configure:17559: checking for long double trig functions" >&5
17559  if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
17560  echo $ac_n "(cached) $ac_c" 1>&6
17561else
17562  
17563    
17564    ac_ext=C
17565# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17566ac_cpp='$CXXCPP $CPPFLAGS'
17567ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17568ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17569cross_compiling=$ac_cv_prog_cxx_cross
17570
17571    cat > conftest.$ac_ext <<EOF
17572#line 17573 "configure"
17573#include "confdefs.h"
17574#include <math.h>
17575int main() {
17576 `for x in acosl asinl atanl \
17577                                          cosl sinl tanl \
17578                                          coshl sinhl tanhl; do echo "$x (0);"; done` 
17579; return 0; }
17580EOF
17581if { (eval echo configure:17582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17582  rm -rf conftest*
17583  glibcpp_cv_func_long_double_trig_use=yes
17584else
17585  echo "configure: failed program was:" >&5
17586  cat conftest.$ac_ext >&5
17587  rm -rf conftest*
17588  glibcpp_cv_func_long_double_trig_use=no
17589fi
17590rm -f conftest*
17591    ac_ext=c
17592# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17593ac_cpp='$CPP $CPPFLAGS'
17594ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17595ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17596cross_compiling=$ac_cv_prog_cc_cross
17597
17598fi
17599
17600  echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
17601  if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
17602    for ac_func in acosl asinl atanl \
17603                                          cosl sinl tanl \
17604                                          coshl sinhl tanhl
17605do
17606echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17607echo "configure:17608: checking for $ac_func" >&5
17608if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17609  echo $ac_n "(cached) $ac_c" 1>&6
17610else
17611  cat > conftest.$ac_ext <<EOF
17612#line 17613 "configure"
17613#include "confdefs.h"
17614/* System header to define __stub macros and hopefully few prototypes,
17615    which can conflict with char $ac_func(); below.  */
17616#include <assert.h>
17617/* Override any gcc2 internal prototype to avoid an error.  */
17618/* We use char because int might match the return type of a gcc2
17619    builtin and then its argument prototype would still apply.  */
17620char $ac_func();
17621
17622int main() {
17623
17624/* The GNU C library defines this for functions which it implements
17625    to always fail with ENOSYS.  Some functions are actually named
17626    something starting with __ and the normal name is an alias.  */
17627#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17628choke me
17629#else
17630$ac_func();
17631#endif
17632
17633; return 0; }
17634EOF
17635if { (eval echo configure:17636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17636  rm -rf conftest*
17637  eval "ac_cv_func_$ac_func=yes"
17638else
17639  echo "configure: failed program was:" >&5
17640  cat conftest.$ac_ext >&5
17641  rm -rf conftest*
17642  eval "ac_cv_func_$ac_func=no"
17643fi
17644rm -f conftest*
17645fi
17646
17647if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17648  echo "$ac_t""yes" 1>&6
17649    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17650  cat >> confdefs.h <<EOF
17651#define $ac_tr_func 1
17652EOF
17653 
17654else
17655  echo "$ac_t""no" 1>&6
17656fi
17657done
17658
17659  fi
17660
17661  
17662  echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
17663echo "configure:17664: checking for long double round functions" >&5
17664  if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
17665  echo $ac_n "(cached) $ac_c" 1>&6
17666else
17667  
17668    
17669    ac_ext=C
17670# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17671ac_cpp='$CXXCPP $CPPFLAGS'
17672ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17673ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17674cross_compiling=$ac_cv_prog_cxx_cross
17675
17676    cat > conftest.$ac_ext <<EOF
17677#line 17678 "configure"
17678#include "confdefs.h"
17679#include <math.h>
17680int main() {
17681 `for x in ceill floorl; do echo "$x (0);"; done` 
17682; return 0; }
17683EOF
17684if { (eval echo configure:17685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17685  rm -rf conftest*
17686  glibcpp_cv_func_long_double_round_use=yes
17687else
17688  echo "configure: failed program was:" >&5
17689  cat conftest.$ac_ext >&5
17690  rm -rf conftest*
17691  glibcpp_cv_func_long_double_round_use=no
17692fi
17693rm -f conftest*
17694    ac_ext=c
17695# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17696ac_cpp='$CPP $CPPFLAGS'
17697ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17698ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17699cross_compiling=$ac_cv_prog_cc_cross
17700
17701fi
17702
17703  echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
17704  if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
17705    for ac_func in ceill floorl
17706do
17707echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17708echo "configure:17709: checking for $ac_func" >&5
17709if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17710  echo $ac_n "(cached) $ac_c" 1>&6
17711else
17712  cat > conftest.$ac_ext <<EOF
17713#line 17714 "configure"
17714#include "confdefs.h"
17715/* System header to define __stub macros and hopefully few prototypes,
17716    which can conflict with char $ac_func(); below.  */
17717#include <assert.h>
17718/* Override any gcc2 internal prototype to avoid an error.  */
17719/* We use char because int might match the return type of a gcc2
17720    builtin and then its argument prototype would still apply.  */
17721char $ac_func();
17722
17723int main() {
17724
17725/* The GNU C library defines this for functions which it implements
17726    to always fail with ENOSYS.  Some functions are actually named
17727    something starting with __ and the normal name is an alias.  */
17728#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17729choke me
17730#else
17731$ac_func();
17732#endif
17733
17734; return 0; }
17735EOF
17736if { (eval echo configure:17737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17737  rm -rf conftest*
17738  eval "ac_cv_func_$ac_func=yes"
17739else
17740  echo "configure: failed program was:" >&5
17741  cat conftest.$ac_ext >&5
17742  rm -rf conftest*
17743  eval "ac_cv_func_$ac_func=no"
17744fi
17745rm -f conftest*
17746fi
17747
17748if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17749  echo "$ac_t""yes" 1>&6
17750    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17751  cat >> confdefs.h <<EOF
17752#define $ac_tr_func 1
17753EOF
17754 
17755else
17756  echo "$ac_t""no" 1>&6
17757fi
17758done
17759
17760  fi
17761
17762  
17763  
17764  echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
17765echo "configure:17766: checking for isnanl declaration" >&5
17766  if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
17767    if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
17768  echo $ac_n "(cached) $ac_c" 1>&6
17769else
17770  
17771      
17772      ac_ext=C
17773# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17774ac_cpp='$CXXCPP $CPPFLAGS'
17775ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17776ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17777cross_compiling=$ac_cv_prog_cxx_cross
17778
17779      cat > conftest.$ac_ext <<EOF
17780#line 17781 "configure"
17781#include "confdefs.h"
17782#include <math.h>
17783		      #ifdef HAVE_IEEEFP_H
17784		      #include <ieeefp.h>
17785		      #endif
17786		     
17787int main() {
17788 isnanl(0);
17789; return 0; }
17790EOF
17791if { (eval echo configure:17792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17792  rm -rf conftest*
17793  glibcpp_cv_func_isnanl_use=yes
17794else
17795  echo "configure: failed program was:" >&5
17796  cat conftest.$ac_ext >&5
17797  rm -rf conftest*
17798  glibcpp_cv_func_isnanl_use=no
17799fi
17800rm -f conftest*
17801      ac_ext=c
17802# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17803ac_cpp='$CPP $CPPFLAGS'
17804ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17805ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17806cross_compiling=$ac_cv_prog_cc_cross
17807
17808    
17809fi
17810
17811  fi
17812  echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
17813
17814  if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
17815    for ac_func in isnanl
17816do
17817echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17818echo "configure:17819: checking for $ac_func" >&5
17819if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17820  echo $ac_n "(cached) $ac_c" 1>&6
17821else
17822  cat > conftest.$ac_ext <<EOF
17823#line 17824 "configure"
17824#include "confdefs.h"
17825/* System header to define __stub macros and hopefully few prototypes,
17826    which can conflict with char $ac_func(); below.  */
17827#include <assert.h>
17828/* Override any gcc2 internal prototype to avoid an error.  */
17829/* We use char because int might match the return type of a gcc2
17830    builtin and then its argument prototype would still apply.  */
17831char $ac_func();
17832
17833int main() {
17834
17835/* The GNU C library defines this for functions which it implements
17836    to always fail with ENOSYS.  Some functions are actually named
17837    something starting with __ and the normal name is an alias.  */
17838#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17839choke me
17840#else
17841$ac_func();
17842#endif
17843
17844; return 0; }
17845EOF
17846if { (eval echo configure:17847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17847  rm -rf conftest*
17848  eval "ac_cv_func_$ac_func=yes"
17849else
17850  echo "configure: failed program was:" >&5
17851  cat conftest.$ac_ext >&5
17852  rm -rf conftest*
17853  eval "ac_cv_func_$ac_func=no"
17854fi
17855rm -f conftest*
17856fi
17857
17858if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17859  echo "$ac_t""yes" 1>&6
17860    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17861  cat >> confdefs.h <<EOF
17862#define $ac_tr_func 1
17863EOF
17864 
17865else
17866  echo "$ac_t""no" 1>&6
17867fi
17868done
17869    
17870  else
17871    
17872  echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
17873echo "configure:17874: checking for _isnanl declaration" >&5
17874  if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
17875    if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
17876  echo $ac_n "(cached) $ac_c" 1>&6
17877else
17878  
17879      
17880      ac_ext=C
17881# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17882ac_cpp='$CXXCPP $CPPFLAGS'
17883ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17884ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17885cross_compiling=$ac_cv_prog_cxx_cross
17886
17887      cat > conftest.$ac_ext <<EOF
17888#line 17889 "configure"
17889#include "confdefs.h"
17890#include <math.h>
17891		      #ifdef HAVE_IEEEFP_H
17892		      #include <ieeefp.h>
17893		      #endif
17894		     
17895int main() {
17896 _isnanl(0);
17897; return 0; }
17898EOF
17899if { (eval echo configure:17900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17900  rm -rf conftest*
17901  glibcpp_cv_func__isnanl_use=yes
17902else
17903  echo "configure: failed program was:" >&5
17904  cat conftest.$ac_ext >&5
17905  rm -rf conftest*
17906  glibcpp_cv_func__isnanl_use=no
17907fi
17908rm -f conftest*
17909      ac_ext=c
17910# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17911ac_cpp='$CPP $CPPFLAGS'
17912ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17913ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17914cross_compiling=$ac_cv_prog_cc_cross
17915
17916    
17917fi
17918
17919  fi
17920  echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
17921
17922    if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
17923      for ac_func in _isnanl
17924do
17925echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17926echo "configure:17927: checking for $ac_func" >&5
17927if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17928  echo $ac_n "(cached) $ac_c" 1>&6
17929else
17930  cat > conftest.$ac_ext <<EOF
17931#line 17932 "configure"
17932#include "confdefs.h"
17933/* System header to define __stub macros and hopefully few prototypes,
17934    which can conflict with char $ac_func(); below.  */
17935#include <assert.h>
17936/* Override any gcc2 internal prototype to avoid an error.  */
17937/* We use char because int might match the return type of a gcc2
17938    builtin and then its argument prototype would still apply.  */
17939char $ac_func();
17940
17941int main() {
17942
17943/* The GNU C library defines this for functions which it implements
17944    to always fail with ENOSYS.  Some functions are actually named
17945    something starting with __ and the normal name is an alias.  */
17946#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17947choke me
17948#else
17949$ac_func();
17950#endif
17951
17952; return 0; }
17953EOF
17954if { (eval echo configure:17955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17955  rm -rf conftest*
17956  eval "ac_cv_func_$ac_func=yes"
17957else
17958  echo "configure: failed program was:" >&5
17959  cat conftest.$ac_ext >&5
17960  rm -rf conftest*
17961  eval "ac_cv_func_$ac_func=no"
17962fi
17963rm -f conftest*
17964fi
17965
17966if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17967  echo "$ac_t""yes" 1>&6
17968    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17969  cat >> confdefs.h <<EOF
17970#define $ac_tr_func 1
17971EOF
17972 
17973else
17974  echo "$ac_t""no" 1>&6
17975fi
17976done
17977    
17978    fi
17979  fi
17980
17981  
17982  
17983  echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
17984echo "configure:17985: checking for isinfl declaration" >&5
17985  if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
17986    if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
17987  echo $ac_n "(cached) $ac_c" 1>&6
17988else
17989  
17990      
17991      ac_ext=C
17992# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17993ac_cpp='$CXXCPP $CPPFLAGS'
17994ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17995ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17996cross_compiling=$ac_cv_prog_cxx_cross
17997
17998      cat > conftest.$ac_ext <<EOF
17999#line 18000 "configure"
18000#include "confdefs.h"
18001#include <math.h>
18002		      #ifdef HAVE_IEEEFP_H
18003		      #include <ieeefp.h>
18004		      #endif
18005		     
18006int main() {
18007 isinfl(0);
18008; return 0; }
18009EOF
18010if { (eval echo configure:18011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18011  rm -rf conftest*
18012  glibcpp_cv_func_isinfl_use=yes
18013else
18014  echo "configure: failed program was:" >&5
18015  cat conftest.$ac_ext >&5
18016  rm -rf conftest*
18017  glibcpp_cv_func_isinfl_use=no
18018fi
18019rm -f conftest*
18020      ac_ext=c
18021# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18022ac_cpp='$CPP $CPPFLAGS'
18023ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18024ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18025cross_compiling=$ac_cv_prog_cc_cross
18026
18027    
18028fi
18029
18030  fi
18031  echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
18032
18033  if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
18034    for ac_func in isinfl
18035do
18036echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18037echo "configure:18038: checking for $ac_func" >&5
18038if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18039  echo $ac_n "(cached) $ac_c" 1>&6
18040else
18041  cat > conftest.$ac_ext <<EOF
18042#line 18043 "configure"
18043#include "confdefs.h"
18044/* System header to define __stub macros and hopefully few prototypes,
18045    which can conflict with char $ac_func(); below.  */
18046#include <assert.h>
18047/* Override any gcc2 internal prototype to avoid an error.  */
18048/* We use char because int might match the return type of a gcc2
18049    builtin and then its argument prototype would still apply.  */
18050char $ac_func();
18051
18052int main() {
18053
18054/* The GNU C library defines this for functions which it implements
18055    to always fail with ENOSYS.  Some functions are actually named
18056    something starting with __ and the normal name is an alias.  */
18057#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18058choke me
18059#else
18060$ac_func();
18061#endif
18062
18063; return 0; }
18064EOF
18065if { (eval echo configure:18066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18066  rm -rf conftest*
18067  eval "ac_cv_func_$ac_func=yes"
18068else
18069  echo "configure: failed program was:" >&5
18070  cat conftest.$ac_ext >&5
18071  rm -rf conftest*
18072  eval "ac_cv_func_$ac_func=no"
18073fi
18074rm -f conftest*
18075fi
18076
18077if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18078  echo "$ac_t""yes" 1>&6
18079    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18080  cat >> confdefs.h <<EOF
18081#define $ac_tr_func 1
18082EOF
18083 
18084else
18085  echo "$ac_t""no" 1>&6
18086fi
18087done
18088    
18089  else
18090    
18091  echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
18092echo "configure:18093: checking for _isinfl declaration" >&5
18093  if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
18094    if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
18095  echo $ac_n "(cached) $ac_c" 1>&6
18096else
18097  
18098      
18099      ac_ext=C
18100# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18101ac_cpp='$CXXCPP $CPPFLAGS'
18102ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18103ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18104cross_compiling=$ac_cv_prog_cxx_cross
18105
18106      cat > conftest.$ac_ext <<EOF
18107#line 18108 "configure"
18108#include "confdefs.h"
18109#include <math.h>
18110		      #ifdef HAVE_IEEEFP_H
18111		      #include <ieeefp.h>
18112		      #endif
18113		     
18114int main() {
18115 _isinfl(0);
18116; return 0; }
18117EOF
18118if { (eval echo configure:18119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18119  rm -rf conftest*
18120  glibcpp_cv_func__isinfl_use=yes
18121else
18122  echo "configure: failed program was:" >&5
18123  cat conftest.$ac_ext >&5
18124  rm -rf conftest*
18125  glibcpp_cv_func__isinfl_use=no
18126fi
18127rm -f conftest*
18128      ac_ext=c
18129# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18130ac_cpp='$CPP $CPPFLAGS'
18131ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18132ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18133cross_compiling=$ac_cv_prog_cc_cross
18134
18135    
18136fi
18137
18138  fi
18139  echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
18140
18141    if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
18142      for ac_func in _isinfl
18143do
18144echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18145echo "configure:18146: checking for $ac_func" >&5
18146if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18147  echo $ac_n "(cached) $ac_c" 1>&6
18148else
18149  cat > conftest.$ac_ext <<EOF
18150#line 18151 "configure"
18151#include "confdefs.h"
18152/* System header to define __stub macros and hopefully few prototypes,
18153    which can conflict with char $ac_func(); below.  */
18154#include <assert.h>
18155/* Override any gcc2 internal prototype to avoid an error.  */
18156/* We use char because int might match the return type of a gcc2
18157    builtin and then its argument prototype would still apply.  */
18158char $ac_func();
18159
18160int main() {
18161
18162/* The GNU C library defines this for functions which it implements
18163    to always fail with ENOSYS.  Some functions are actually named
18164    something starting with __ and the normal name is an alias.  */
18165#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18166choke me
18167#else
18168$ac_func();
18169#endif
18170
18171; return 0; }
18172EOF
18173if { (eval echo configure:18174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18174  rm -rf conftest*
18175  eval "ac_cv_func_$ac_func=yes"
18176else
18177  echo "configure: failed program was:" >&5
18178  cat conftest.$ac_ext >&5
18179  rm -rf conftest*
18180  eval "ac_cv_func_$ac_func=no"
18181fi
18182rm -f conftest*
18183fi
18184
18185if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18186  echo "$ac_t""yes" 1>&6
18187    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18188  cat >> confdefs.h <<EOF
18189#define $ac_tr_func 1
18190EOF
18191 
18192else
18193  echo "$ac_t""no" 1>&6
18194fi
18195done
18196    
18197    fi
18198  fi
18199
18200  
18201  
18202  echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
18203echo "configure:18204: checking for copysignl declaration" >&5
18204  if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
18205    if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
18206  echo $ac_n "(cached) $ac_c" 1>&6
18207else
18208  
18209      
18210      ac_ext=C
18211# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18212ac_cpp='$CXXCPP $CPPFLAGS'
18213ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18214ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18215cross_compiling=$ac_cv_prog_cxx_cross
18216
18217      cat > conftest.$ac_ext <<EOF
18218#line 18219 "configure"
18219#include "confdefs.h"
18220#include <math.h>
18221int main() {
18222 copysignl(0, 0);
18223; return 0; }
18224EOF
18225if { (eval echo configure:18226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18226  rm -rf conftest*
18227  glibcpp_cv_func_copysignl_use=yes
18228else
18229  echo "configure: failed program was:" >&5
18230  cat conftest.$ac_ext >&5
18231  rm -rf conftest*
18232  glibcpp_cv_func_copysignl_use=no
18233fi
18234rm -f conftest*
18235      ac_ext=c
18236# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18237ac_cpp='$CPP $CPPFLAGS'
18238ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18239ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18240cross_compiling=$ac_cv_prog_cc_cross
18241
18242    
18243fi
18244
18245  fi
18246  echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
18247
18248  if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
18249    for ac_func in copysignl
18250do
18251echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18252echo "configure:18253: checking for $ac_func" >&5
18253if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18254  echo $ac_n "(cached) $ac_c" 1>&6
18255else
18256  cat > conftest.$ac_ext <<EOF
18257#line 18258 "configure"
18258#include "confdefs.h"
18259/* System header to define __stub macros and hopefully few prototypes,
18260    which can conflict with char $ac_func(); below.  */
18261#include <assert.h>
18262/* Override any gcc2 internal prototype to avoid an error.  */
18263/* We use char because int might match the return type of a gcc2
18264    builtin and then its argument prototype would still apply.  */
18265char $ac_func();
18266
18267int main() {
18268
18269/* The GNU C library defines this for functions which it implements
18270    to always fail with ENOSYS.  Some functions are actually named
18271    something starting with __ and the normal name is an alias.  */
18272#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18273choke me
18274#else
18275$ac_func();
18276#endif
18277
18278; return 0; }
18279EOF
18280if { (eval echo configure:18281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18281  rm -rf conftest*
18282  eval "ac_cv_func_$ac_func=yes"
18283else
18284  echo "configure: failed program was:" >&5
18285  cat conftest.$ac_ext >&5
18286  rm -rf conftest*
18287  eval "ac_cv_func_$ac_func=no"
18288fi
18289rm -f conftest*
18290fi
18291
18292if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18293  echo "$ac_t""yes" 1>&6
18294    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18295  cat >> confdefs.h <<EOF
18296#define $ac_tr_func 1
18297EOF
18298 
18299else
18300  echo "$ac_t""no" 1>&6
18301fi
18302done
18303    
18304  else
18305    
18306  echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
18307echo "configure:18308: checking for _copysignl declaration" >&5
18308  if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
18309    if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
18310  echo $ac_n "(cached) $ac_c" 1>&6
18311else
18312  
18313      
18314      ac_ext=C
18315# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18316ac_cpp='$CXXCPP $CPPFLAGS'
18317ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18318ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18319cross_compiling=$ac_cv_prog_cxx_cross
18320
18321      cat > conftest.$ac_ext <<EOF
18322#line 18323 "configure"
18323#include "confdefs.h"
18324#include <math.h>
18325int main() {
18326 _copysignl(0, 0);
18327; return 0; }
18328EOF
18329if { (eval echo configure:18330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18330  rm -rf conftest*
18331  glibcpp_cv_func__copysignl_use=yes
18332else
18333  echo "configure: failed program was:" >&5
18334  cat conftest.$ac_ext >&5
18335  rm -rf conftest*
18336  glibcpp_cv_func__copysignl_use=no
18337fi
18338rm -f conftest*
18339      ac_ext=c
18340# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18341ac_cpp='$CPP $CPPFLAGS'
18342ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18343ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18344cross_compiling=$ac_cv_prog_cc_cross
18345
18346    
18347fi
18348
18349  fi
18350  echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
18351
18352    if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
18353      for ac_func in _copysignl
18354do
18355echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18356echo "configure:18357: checking for $ac_func" >&5
18357if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18358  echo $ac_n "(cached) $ac_c" 1>&6
18359else
18360  cat > conftest.$ac_ext <<EOF
18361#line 18362 "configure"
18362#include "confdefs.h"
18363/* System header to define __stub macros and hopefully few prototypes,
18364    which can conflict with char $ac_func(); below.  */
18365#include <assert.h>
18366/* Override any gcc2 internal prototype to avoid an error.  */
18367/* We use char because int might match the return type of a gcc2
18368    builtin and then its argument prototype would still apply.  */
18369char $ac_func();
18370
18371int main() {
18372
18373/* The GNU C library defines this for functions which it implements
18374    to always fail with ENOSYS.  Some functions are actually named
18375    something starting with __ and the normal name is an alias.  */
18376#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18377choke me
18378#else
18379$ac_func();
18380#endif
18381
18382; return 0; }
18383EOF
18384if { (eval echo configure:18385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18385  rm -rf conftest*
18386  eval "ac_cv_func_$ac_func=yes"
18387else
18388  echo "configure: failed program was:" >&5
18389  cat conftest.$ac_ext >&5
18390  rm -rf conftest*
18391  eval "ac_cv_func_$ac_func=no"
18392fi
18393rm -f conftest*
18394fi
18395
18396if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18397  echo "$ac_t""yes" 1>&6
18398    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18399  cat >> confdefs.h <<EOF
18400#define $ac_tr_func 1
18401EOF
18402 
18403else
18404  echo "$ac_t""no" 1>&6
18405fi
18406done
18407    
18408    fi
18409  fi
18410
18411  
18412  
18413  echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
18414echo "configure:18415: checking for atan2l declaration" >&5
18415  if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
18416    if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
18417  echo $ac_n "(cached) $ac_c" 1>&6
18418else
18419  
18420      
18421      ac_ext=C
18422# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18423ac_cpp='$CXXCPP $CPPFLAGS'
18424ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18425ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18426cross_compiling=$ac_cv_prog_cxx_cross
18427
18428      cat > conftest.$ac_ext <<EOF
18429#line 18430 "configure"
18430#include "confdefs.h"
18431#include <math.h>
18432int main() {
18433 atan2l(0, 0);
18434; return 0; }
18435EOF
18436if { (eval echo configure:18437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18437  rm -rf conftest*
18438  glibcpp_cv_func_atan2l_use=yes
18439else
18440  echo "configure: failed program was:" >&5
18441  cat conftest.$ac_ext >&5
18442  rm -rf conftest*
18443  glibcpp_cv_func_atan2l_use=no
18444fi
18445rm -f conftest*
18446      ac_ext=c
18447# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18448ac_cpp='$CPP $CPPFLAGS'
18449ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18450ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18451cross_compiling=$ac_cv_prog_cc_cross
18452
18453    
18454fi
18455
18456  fi
18457  echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
18458
18459  if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
18460    for ac_func in atan2l
18461do
18462echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18463echo "configure:18464: checking for $ac_func" >&5
18464if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18465  echo $ac_n "(cached) $ac_c" 1>&6
18466else
18467  cat > conftest.$ac_ext <<EOF
18468#line 18469 "configure"
18469#include "confdefs.h"
18470/* System header to define __stub macros and hopefully few prototypes,
18471    which can conflict with char $ac_func(); below.  */
18472#include <assert.h>
18473/* Override any gcc2 internal prototype to avoid an error.  */
18474/* We use char because int might match the return type of a gcc2
18475    builtin and then its argument prototype would still apply.  */
18476char $ac_func();
18477
18478int main() {
18479
18480/* The GNU C library defines this for functions which it implements
18481    to always fail with ENOSYS.  Some functions are actually named
18482    something starting with __ and the normal name is an alias.  */
18483#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18484choke me
18485#else
18486$ac_func();
18487#endif
18488
18489; return 0; }
18490EOF
18491if { (eval echo configure:18492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18492  rm -rf conftest*
18493  eval "ac_cv_func_$ac_func=yes"
18494else
18495  echo "configure: failed program was:" >&5
18496  cat conftest.$ac_ext >&5
18497  rm -rf conftest*
18498  eval "ac_cv_func_$ac_func=no"
18499fi
18500rm -f conftest*
18501fi
18502
18503if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18504  echo "$ac_t""yes" 1>&6
18505    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18506  cat >> confdefs.h <<EOF
18507#define $ac_tr_func 1
18508EOF
18509 
18510else
18511  echo "$ac_t""no" 1>&6
18512fi
18513done
18514    
18515  else
18516    
18517  echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
18518echo "configure:18519: checking for _atan2l declaration" >&5
18519  if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
18520    if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
18521  echo $ac_n "(cached) $ac_c" 1>&6
18522else
18523  
18524      
18525      ac_ext=C
18526# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18527ac_cpp='$CXXCPP $CPPFLAGS'
18528ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18529ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18530cross_compiling=$ac_cv_prog_cxx_cross
18531
18532      cat > conftest.$ac_ext <<EOF
18533#line 18534 "configure"
18534#include "confdefs.h"
18535#include <math.h>
18536int main() {
18537 _atan2l(0, 0);
18538; return 0; }
18539EOF
18540if { (eval echo configure:18541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18541  rm -rf conftest*
18542  glibcpp_cv_func__atan2l_use=yes
18543else
18544  echo "configure: failed program was:" >&5
18545  cat conftest.$ac_ext >&5
18546  rm -rf conftest*
18547  glibcpp_cv_func__atan2l_use=no
18548fi
18549rm -f conftest*
18550      ac_ext=c
18551# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18552ac_cpp='$CPP $CPPFLAGS'
18553ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18554ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18555cross_compiling=$ac_cv_prog_cc_cross
18556
18557    
18558fi
18559
18560  fi
18561  echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
18562
18563    if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
18564      for ac_func in _atan2l
18565do
18566echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18567echo "configure:18568: checking for $ac_func" >&5
18568if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18569  echo $ac_n "(cached) $ac_c" 1>&6
18570else
18571  cat > conftest.$ac_ext <<EOF
18572#line 18573 "configure"
18573#include "confdefs.h"
18574/* System header to define __stub macros and hopefully few prototypes,
18575    which can conflict with char $ac_func(); below.  */
18576#include <assert.h>
18577/* Override any gcc2 internal prototype to avoid an error.  */
18578/* We use char because int might match the return type of a gcc2
18579    builtin and then its argument prototype would still apply.  */
18580char $ac_func();
18581
18582int main() {
18583
18584/* The GNU C library defines this for functions which it implements
18585    to always fail with ENOSYS.  Some functions are actually named
18586    something starting with __ and the normal name is an alias.  */
18587#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18588choke me
18589#else
18590$ac_func();
18591#endif
18592
18593; return 0; }
18594EOF
18595if { (eval echo configure:18596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18596  rm -rf conftest*
18597  eval "ac_cv_func_$ac_func=yes"
18598else
18599  echo "configure: failed program was:" >&5
18600  cat conftest.$ac_ext >&5
18601  rm -rf conftest*
18602  eval "ac_cv_func_$ac_func=no"
18603fi
18604rm -f conftest*
18605fi
18606
18607if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18608  echo "$ac_t""yes" 1>&6
18609    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18610  cat >> confdefs.h <<EOF
18611#define $ac_tr_func 1
18612EOF
18613 
18614else
18615  echo "$ac_t""no" 1>&6
18616fi
18617done
18618    
18619    fi
18620  fi
18621
18622  
18623  
18624  echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
18625echo "configure:18626: checking for expl declaration" >&5
18626  if test x${glibcpp_cv_func_expl_use+set} != xset; then
18627    if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
18628  echo $ac_n "(cached) $ac_c" 1>&6
18629else
18630  
18631      
18632      ac_ext=C
18633# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18634ac_cpp='$CXXCPP $CPPFLAGS'
18635ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18636ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18637cross_compiling=$ac_cv_prog_cxx_cross
18638
18639      cat > conftest.$ac_ext <<EOF
18640#line 18641 "configure"
18641#include "confdefs.h"
18642#include <math.h>
18643		      #ifdef HAVE_IEEEFP_H
18644		      #include <ieeefp.h>
18645		      #endif
18646		     
18647int main() {
18648 expl(0);
18649; return 0; }
18650EOF
18651if { (eval echo configure:18652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18652  rm -rf conftest*
18653  glibcpp_cv_func_expl_use=yes
18654else
18655  echo "configure: failed program was:" >&5
18656  cat conftest.$ac_ext >&5
18657  rm -rf conftest*
18658  glibcpp_cv_func_expl_use=no
18659fi
18660rm -f conftest*
18661      ac_ext=c
18662# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18663ac_cpp='$CPP $CPPFLAGS'
18664ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18665ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18666cross_compiling=$ac_cv_prog_cc_cross
18667
18668    
18669fi
18670
18671  fi
18672  echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
18673
18674  if test x$glibcpp_cv_func_expl_use = x"yes"; then
18675    for ac_func in expl
18676do
18677echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18678echo "configure:18679: checking for $ac_func" >&5
18679if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18680  echo $ac_n "(cached) $ac_c" 1>&6
18681else
18682  cat > conftest.$ac_ext <<EOF
18683#line 18684 "configure"
18684#include "confdefs.h"
18685/* System header to define __stub macros and hopefully few prototypes,
18686    which can conflict with char $ac_func(); below.  */
18687#include <assert.h>
18688/* Override any gcc2 internal prototype to avoid an error.  */
18689/* We use char because int might match the return type of a gcc2
18690    builtin and then its argument prototype would still apply.  */
18691char $ac_func();
18692
18693int main() {
18694
18695/* The GNU C library defines this for functions which it implements
18696    to always fail with ENOSYS.  Some functions are actually named
18697    something starting with __ and the normal name is an alias.  */
18698#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18699choke me
18700#else
18701$ac_func();
18702#endif
18703
18704; return 0; }
18705EOF
18706if { (eval echo configure:18707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18707  rm -rf conftest*
18708  eval "ac_cv_func_$ac_func=yes"
18709else
18710  echo "configure: failed program was:" >&5
18711  cat conftest.$ac_ext >&5
18712  rm -rf conftest*
18713  eval "ac_cv_func_$ac_func=no"
18714fi
18715rm -f conftest*
18716fi
18717
18718if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18719  echo "$ac_t""yes" 1>&6
18720    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18721  cat >> confdefs.h <<EOF
18722#define $ac_tr_func 1
18723EOF
18724 
18725else
18726  echo "$ac_t""no" 1>&6
18727fi
18728done
18729    
18730  else
18731    
18732  echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
18733echo "configure:18734: checking for _expl declaration" >&5
18734  if test x${glibcpp_cv_func__expl_use+set} != xset; then
18735    if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
18736  echo $ac_n "(cached) $ac_c" 1>&6
18737else
18738  
18739      
18740      ac_ext=C
18741# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18742ac_cpp='$CXXCPP $CPPFLAGS'
18743ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18744ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18745cross_compiling=$ac_cv_prog_cxx_cross
18746
18747      cat > conftest.$ac_ext <<EOF
18748#line 18749 "configure"
18749#include "confdefs.h"
18750#include <math.h>
18751		      #ifdef HAVE_IEEEFP_H
18752		      #include <ieeefp.h>
18753		      #endif
18754		     
18755int main() {
18756 _expl(0);
18757; return 0; }
18758EOF
18759if { (eval echo configure:18760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18760  rm -rf conftest*
18761  glibcpp_cv_func__expl_use=yes
18762else
18763  echo "configure: failed program was:" >&5
18764  cat conftest.$ac_ext >&5
18765  rm -rf conftest*
18766  glibcpp_cv_func__expl_use=no
18767fi
18768rm -f conftest*
18769      ac_ext=c
18770# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18771ac_cpp='$CPP $CPPFLAGS'
18772ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18773ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18774cross_compiling=$ac_cv_prog_cc_cross
18775
18776    
18777fi
18778
18779  fi
18780  echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
18781
18782    if test x$glibcpp_cv_func__expl_use = x"yes"; then
18783      for ac_func in _expl
18784do
18785echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18786echo "configure:18787: checking for $ac_func" >&5
18787if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18788  echo $ac_n "(cached) $ac_c" 1>&6
18789else
18790  cat > conftest.$ac_ext <<EOF
18791#line 18792 "configure"
18792#include "confdefs.h"
18793/* System header to define __stub macros and hopefully few prototypes,
18794    which can conflict with char $ac_func(); below.  */
18795#include <assert.h>
18796/* Override any gcc2 internal prototype to avoid an error.  */
18797/* We use char because int might match the return type of a gcc2
18798    builtin and then its argument prototype would still apply.  */
18799char $ac_func();
18800
18801int main() {
18802
18803/* The GNU C library defines this for functions which it implements
18804    to always fail with ENOSYS.  Some functions are actually named
18805    something starting with __ and the normal name is an alias.  */
18806#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18807choke me
18808#else
18809$ac_func();
18810#endif
18811
18812; return 0; }
18813EOF
18814if { (eval echo configure:18815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18815  rm -rf conftest*
18816  eval "ac_cv_func_$ac_func=yes"
18817else
18818  echo "configure: failed program was:" >&5
18819  cat conftest.$ac_ext >&5
18820  rm -rf conftest*
18821  eval "ac_cv_func_$ac_func=no"
18822fi
18823rm -f conftest*
18824fi
18825
18826if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18827  echo "$ac_t""yes" 1>&6
18828    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18829  cat >> confdefs.h <<EOF
18830#define $ac_tr_func 1
18831EOF
18832 
18833else
18834  echo "$ac_t""no" 1>&6
18835fi
18836done
18837    
18838    fi
18839  fi
18840
18841  
18842  
18843  echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
18844echo "configure:18845: checking for fabsl declaration" >&5
18845  if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
18846    if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
18847  echo $ac_n "(cached) $ac_c" 1>&6
18848else
18849  
18850      
18851      ac_ext=C
18852# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18853ac_cpp='$CXXCPP $CPPFLAGS'
18854ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18855ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18856cross_compiling=$ac_cv_prog_cxx_cross
18857
18858      cat > conftest.$ac_ext <<EOF
18859#line 18860 "configure"
18860#include "confdefs.h"
18861#include <math.h>
18862		      #ifdef HAVE_IEEEFP_H
18863		      #include <ieeefp.h>
18864		      #endif
18865		     
18866int main() {
18867 fabsl(0);
18868; return 0; }
18869EOF
18870if { (eval echo configure:18871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18871  rm -rf conftest*
18872  glibcpp_cv_func_fabsl_use=yes
18873else
18874  echo "configure: failed program was:" >&5
18875  cat conftest.$ac_ext >&5
18876  rm -rf conftest*
18877  glibcpp_cv_func_fabsl_use=no
18878fi
18879rm -f conftest*
18880      ac_ext=c
18881# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18882ac_cpp='$CPP $CPPFLAGS'
18883ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18884ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18885cross_compiling=$ac_cv_prog_cc_cross
18886
18887    
18888fi
18889
18890  fi
18891  echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
18892
18893  if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
18894    for ac_func in fabsl
18895do
18896echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18897echo "configure:18898: checking for $ac_func" >&5
18898if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18899  echo $ac_n "(cached) $ac_c" 1>&6
18900else
18901  cat > conftest.$ac_ext <<EOF
18902#line 18903 "configure"
18903#include "confdefs.h"
18904/* System header to define __stub macros and hopefully few prototypes,
18905    which can conflict with char $ac_func(); below.  */
18906#include <assert.h>
18907/* Override any gcc2 internal prototype to avoid an error.  */
18908/* We use char because int might match the return type of a gcc2
18909    builtin and then its argument prototype would still apply.  */
18910char $ac_func();
18911
18912int main() {
18913
18914/* The GNU C library defines this for functions which it implements
18915    to always fail with ENOSYS.  Some functions are actually named
18916    something starting with __ and the normal name is an alias.  */
18917#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18918choke me
18919#else
18920$ac_func();
18921#endif
18922
18923; return 0; }
18924EOF
18925if { (eval echo configure:18926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18926  rm -rf conftest*
18927  eval "ac_cv_func_$ac_func=yes"
18928else
18929  echo "configure: failed program was:" >&5
18930  cat conftest.$ac_ext >&5
18931  rm -rf conftest*
18932  eval "ac_cv_func_$ac_func=no"
18933fi
18934rm -f conftest*
18935fi
18936
18937if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18938  echo "$ac_t""yes" 1>&6
18939    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18940  cat >> confdefs.h <<EOF
18941#define $ac_tr_func 1
18942EOF
18943 
18944else
18945  echo "$ac_t""no" 1>&6
18946fi
18947done
18948    
18949  else
18950    
18951  echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
18952echo "configure:18953: checking for _fabsl declaration" >&5
18953  if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
18954    if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
18955  echo $ac_n "(cached) $ac_c" 1>&6
18956else
18957  
18958      
18959      ac_ext=C
18960# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18961ac_cpp='$CXXCPP $CPPFLAGS'
18962ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18963ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18964cross_compiling=$ac_cv_prog_cxx_cross
18965
18966      cat > conftest.$ac_ext <<EOF
18967#line 18968 "configure"
18968#include "confdefs.h"
18969#include <math.h>
18970		      #ifdef HAVE_IEEEFP_H
18971		      #include <ieeefp.h>
18972		      #endif
18973		     
18974int main() {
18975 _fabsl(0);
18976; return 0; }
18977EOF
18978if { (eval echo configure:18979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18979  rm -rf conftest*
18980  glibcpp_cv_func__fabsl_use=yes
18981else
18982  echo "configure: failed program was:" >&5
18983  cat conftest.$ac_ext >&5
18984  rm -rf conftest*
18985  glibcpp_cv_func__fabsl_use=no
18986fi
18987rm -f conftest*
18988      ac_ext=c
18989# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18990ac_cpp='$CPP $CPPFLAGS'
18991ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18992ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18993cross_compiling=$ac_cv_prog_cc_cross
18994
18995    
18996fi
18997
18998  fi
18999  echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
19000
19001    if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
19002      for ac_func in _fabsl
19003do
19004echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19005echo "configure:19006: checking for $ac_func" >&5
19006if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19007  echo $ac_n "(cached) $ac_c" 1>&6
19008else
19009  cat > conftest.$ac_ext <<EOF
19010#line 19011 "configure"
19011#include "confdefs.h"
19012/* System header to define __stub macros and hopefully few prototypes,
19013    which can conflict with char $ac_func(); below.  */
19014#include <assert.h>
19015/* Override any gcc2 internal prototype to avoid an error.  */
19016/* We use char because int might match the return type of a gcc2
19017    builtin and then its argument prototype would still apply.  */
19018char $ac_func();
19019
19020int main() {
19021
19022/* The GNU C library defines this for functions which it implements
19023    to always fail with ENOSYS.  Some functions are actually named
19024    something starting with __ and the normal name is an alias.  */
19025#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19026choke me
19027#else
19028$ac_func();
19029#endif
19030
19031; return 0; }
19032EOF
19033if { (eval echo configure:19034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19034  rm -rf conftest*
19035  eval "ac_cv_func_$ac_func=yes"
19036else
19037  echo "configure: failed program was:" >&5
19038  cat conftest.$ac_ext >&5
19039  rm -rf conftest*
19040  eval "ac_cv_func_$ac_func=no"
19041fi
19042rm -f conftest*
19043fi
19044
19045if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19046  echo "$ac_t""yes" 1>&6
19047    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19048  cat >> confdefs.h <<EOF
19049#define $ac_tr_func 1
19050EOF
19051 
19052else
19053  echo "$ac_t""no" 1>&6
19054fi
19055done
19056    
19057    fi
19058  fi
19059
19060  
19061  
19062  echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
19063echo "configure:19064: checking for fmodl declaration" >&5
19064  if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
19065    if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
19066  echo $ac_n "(cached) $ac_c" 1>&6
19067else
19068  
19069      
19070      ac_ext=C
19071# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19072ac_cpp='$CXXCPP $CPPFLAGS'
19073ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19074ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19075cross_compiling=$ac_cv_prog_cxx_cross
19076
19077      cat > conftest.$ac_ext <<EOF
19078#line 19079 "configure"
19079#include "confdefs.h"
19080#include <math.h>
19081int main() {
19082 fmodl(0, 0);
19083; return 0; }
19084EOF
19085if { (eval echo configure:19086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19086  rm -rf conftest*
19087  glibcpp_cv_func_fmodl_use=yes
19088else
19089  echo "configure: failed program was:" >&5
19090  cat conftest.$ac_ext >&5
19091  rm -rf conftest*
19092  glibcpp_cv_func_fmodl_use=no
19093fi
19094rm -f conftest*
19095      ac_ext=c
19096# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19097ac_cpp='$CPP $CPPFLAGS'
19098ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19099ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19100cross_compiling=$ac_cv_prog_cc_cross
19101
19102    
19103fi
19104
19105  fi
19106  echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
19107
19108  if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
19109    for ac_func in fmodl
19110do
19111echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19112echo "configure:19113: checking for $ac_func" >&5
19113if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19114  echo $ac_n "(cached) $ac_c" 1>&6
19115else
19116  cat > conftest.$ac_ext <<EOF
19117#line 19118 "configure"
19118#include "confdefs.h"
19119/* System header to define __stub macros and hopefully few prototypes,
19120    which can conflict with char $ac_func(); below.  */
19121#include <assert.h>
19122/* Override any gcc2 internal prototype to avoid an error.  */
19123/* We use char because int might match the return type of a gcc2
19124    builtin and then its argument prototype would still apply.  */
19125char $ac_func();
19126
19127int main() {
19128
19129/* The GNU C library defines this for functions which it implements
19130    to always fail with ENOSYS.  Some functions are actually named
19131    something starting with __ and the normal name is an alias.  */
19132#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19133choke me
19134#else
19135$ac_func();
19136#endif
19137
19138; return 0; }
19139EOF
19140if { (eval echo configure:19141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19141  rm -rf conftest*
19142  eval "ac_cv_func_$ac_func=yes"
19143else
19144  echo "configure: failed program was:" >&5
19145  cat conftest.$ac_ext >&5
19146  rm -rf conftest*
19147  eval "ac_cv_func_$ac_func=no"
19148fi
19149rm -f conftest*
19150fi
19151
19152if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19153  echo "$ac_t""yes" 1>&6
19154    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19155  cat >> confdefs.h <<EOF
19156#define $ac_tr_func 1
19157EOF
19158 
19159else
19160  echo "$ac_t""no" 1>&6
19161fi
19162done
19163    
19164  else
19165    
19166  echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
19167echo "configure:19168: checking for _fmodl declaration" >&5
19168  if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
19169    if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
19170  echo $ac_n "(cached) $ac_c" 1>&6
19171else
19172  
19173      
19174      ac_ext=C
19175# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19176ac_cpp='$CXXCPP $CPPFLAGS'
19177ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19178ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19179cross_compiling=$ac_cv_prog_cxx_cross
19180
19181      cat > conftest.$ac_ext <<EOF
19182#line 19183 "configure"
19183#include "confdefs.h"
19184#include <math.h>
19185int main() {
19186 _fmodl(0, 0);
19187; return 0; }
19188EOF
19189if { (eval echo configure:19190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19190  rm -rf conftest*
19191  glibcpp_cv_func__fmodl_use=yes
19192else
19193  echo "configure: failed program was:" >&5
19194  cat conftest.$ac_ext >&5
19195  rm -rf conftest*
19196  glibcpp_cv_func__fmodl_use=no
19197fi
19198rm -f conftest*
19199      ac_ext=c
19200# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19201ac_cpp='$CPP $CPPFLAGS'
19202ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19203ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19204cross_compiling=$ac_cv_prog_cc_cross
19205
19206    
19207fi
19208
19209  fi
19210  echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
19211
19212    if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
19213      for ac_func in _fmodl
19214do
19215echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19216echo "configure:19217: checking for $ac_func" >&5
19217if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19218  echo $ac_n "(cached) $ac_c" 1>&6
19219else
19220  cat > conftest.$ac_ext <<EOF
19221#line 19222 "configure"
19222#include "confdefs.h"
19223/* System header to define __stub macros and hopefully few prototypes,
19224    which can conflict with char $ac_func(); below.  */
19225#include <assert.h>
19226/* Override any gcc2 internal prototype to avoid an error.  */
19227/* We use char because int might match the return type of a gcc2
19228    builtin and then its argument prototype would still apply.  */
19229char $ac_func();
19230
19231int main() {
19232
19233/* The GNU C library defines this for functions which it implements
19234    to always fail with ENOSYS.  Some functions are actually named
19235    something starting with __ and the normal name is an alias.  */
19236#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19237choke me
19238#else
19239$ac_func();
19240#endif
19241
19242; return 0; }
19243EOF
19244if { (eval echo configure:19245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19245  rm -rf conftest*
19246  eval "ac_cv_func_$ac_func=yes"
19247else
19248  echo "configure: failed program was:" >&5
19249  cat conftest.$ac_ext >&5
19250  rm -rf conftest*
19251  eval "ac_cv_func_$ac_func=no"
19252fi
19253rm -f conftest*
19254fi
19255
19256if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19257  echo "$ac_t""yes" 1>&6
19258    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19259  cat >> confdefs.h <<EOF
19260#define $ac_tr_func 1
19261EOF
19262 
19263else
19264  echo "$ac_t""no" 1>&6
19265fi
19266done
19267    
19268    fi
19269  fi
19270
19271  
19272  
19273  echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
19274echo "configure:19275: checking for frexpl declaration" >&5
19275  if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
19276    if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
19277  echo $ac_n "(cached) $ac_c" 1>&6
19278else
19279  
19280      
19281      ac_ext=C
19282# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19283ac_cpp='$CXXCPP $CPPFLAGS'
19284ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19285ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19286cross_compiling=$ac_cv_prog_cxx_cross
19287
19288      cat > conftest.$ac_ext <<EOF
19289#line 19290 "configure"
19290#include "confdefs.h"
19291#include <math.h>
19292int main() {
19293 frexpl(0, 0);
19294; return 0; }
19295EOF
19296if { (eval echo configure:19297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19297  rm -rf conftest*
19298  glibcpp_cv_func_frexpl_use=yes
19299else
19300  echo "configure: failed program was:" >&5
19301  cat conftest.$ac_ext >&5
19302  rm -rf conftest*
19303  glibcpp_cv_func_frexpl_use=no
19304fi
19305rm -f conftest*
19306      ac_ext=c
19307# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19308ac_cpp='$CPP $CPPFLAGS'
19309ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19310ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19311cross_compiling=$ac_cv_prog_cc_cross
19312
19313    
19314fi
19315
19316  fi
19317  echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
19318
19319  if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
19320    for ac_func in frexpl
19321do
19322echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19323echo "configure:19324: checking for $ac_func" >&5
19324if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19325  echo $ac_n "(cached) $ac_c" 1>&6
19326else
19327  cat > conftest.$ac_ext <<EOF
19328#line 19329 "configure"
19329#include "confdefs.h"
19330/* System header to define __stub macros and hopefully few prototypes,
19331    which can conflict with char $ac_func(); below.  */
19332#include <assert.h>
19333/* Override any gcc2 internal prototype to avoid an error.  */
19334/* We use char because int might match the return type of a gcc2
19335    builtin and then its argument prototype would still apply.  */
19336char $ac_func();
19337
19338int main() {
19339
19340/* The GNU C library defines this for functions which it implements
19341    to always fail with ENOSYS.  Some functions are actually named
19342    something starting with __ and the normal name is an alias.  */
19343#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19344choke me
19345#else
19346$ac_func();
19347#endif
19348
19349; return 0; }
19350EOF
19351if { (eval echo configure:19352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19352  rm -rf conftest*
19353  eval "ac_cv_func_$ac_func=yes"
19354else
19355  echo "configure: failed program was:" >&5
19356  cat conftest.$ac_ext >&5
19357  rm -rf conftest*
19358  eval "ac_cv_func_$ac_func=no"
19359fi
19360rm -f conftest*
19361fi
19362
19363if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19364  echo "$ac_t""yes" 1>&6
19365    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19366  cat >> confdefs.h <<EOF
19367#define $ac_tr_func 1
19368EOF
19369 
19370else
19371  echo "$ac_t""no" 1>&6
19372fi
19373done
19374    
19375  else
19376    
19377  echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
19378echo "configure:19379: checking for _frexpl declaration" >&5
19379  if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
19380    if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
19381  echo $ac_n "(cached) $ac_c" 1>&6
19382else
19383  
19384      
19385      ac_ext=C
19386# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19387ac_cpp='$CXXCPP $CPPFLAGS'
19388ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19389ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19390cross_compiling=$ac_cv_prog_cxx_cross
19391
19392      cat > conftest.$ac_ext <<EOF
19393#line 19394 "configure"
19394#include "confdefs.h"
19395#include <math.h>
19396int main() {
19397 _frexpl(0, 0);
19398; return 0; }
19399EOF
19400if { (eval echo configure:19401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19401  rm -rf conftest*
19402  glibcpp_cv_func__frexpl_use=yes
19403else
19404  echo "configure: failed program was:" >&5
19405  cat conftest.$ac_ext >&5
19406  rm -rf conftest*
19407  glibcpp_cv_func__frexpl_use=no
19408fi
19409rm -f conftest*
19410      ac_ext=c
19411# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19412ac_cpp='$CPP $CPPFLAGS'
19413ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19414ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19415cross_compiling=$ac_cv_prog_cc_cross
19416
19417    
19418fi
19419
19420  fi
19421  echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
19422
19423    if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
19424      for ac_func in _frexpl
19425do
19426echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19427echo "configure:19428: checking for $ac_func" >&5
19428if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19429  echo $ac_n "(cached) $ac_c" 1>&6
19430else
19431  cat > conftest.$ac_ext <<EOF
19432#line 19433 "configure"
19433#include "confdefs.h"
19434/* System header to define __stub macros and hopefully few prototypes,
19435    which can conflict with char $ac_func(); below.  */
19436#include <assert.h>
19437/* Override any gcc2 internal prototype to avoid an error.  */
19438/* We use char because int might match the return type of a gcc2
19439    builtin and then its argument prototype would still apply.  */
19440char $ac_func();
19441
19442int main() {
19443
19444/* The GNU C library defines this for functions which it implements
19445    to always fail with ENOSYS.  Some functions are actually named
19446    something starting with __ and the normal name is an alias.  */
19447#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19448choke me
19449#else
19450$ac_func();
19451#endif
19452
19453; return 0; }
19454EOF
19455if { (eval echo configure:19456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19456  rm -rf conftest*
19457  eval "ac_cv_func_$ac_func=yes"
19458else
19459  echo "configure: failed program was:" >&5
19460  cat conftest.$ac_ext >&5
19461  rm -rf conftest*
19462  eval "ac_cv_func_$ac_func=no"
19463fi
19464rm -f conftest*
19465fi
19466
19467if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19468  echo "$ac_t""yes" 1>&6
19469    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19470  cat >> confdefs.h <<EOF
19471#define $ac_tr_func 1
19472EOF
19473 
19474else
19475  echo "$ac_t""no" 1>&6
19476fi
19477done
19478    
19479    fi
19480  fi
19481
19482  
19483  
19484  echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
19485echo "configure:19486: checking for hypotl declaration" >&5
19486  if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
19487    if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
19488  echo $ac_n "(cached) $ac_c" 1>&6
19489else
19490  
19491      
19492      ac_ext=C
19493# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19494ac_cpp='$CXXCPP $CPPFLAGS'
19495ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19496ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19497cross_compiling=$ac_cv_prog_cxx_cross
19498
19499      cat > conftest.$ac_ext <<EOF
19500#line 19501 "configure"
19501#include "confdefs.h"
19502#include <math.h>
19503int main() {
19504 hypotl(0, 0);
19505; return 0; }
19506EOF
19507if { (eval echo configure:19508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19508  rm -rf conftest*
19509  glibcpp_cv_func_hypotl_use=yes
19510else
19511  echo "configure: failed program was:" >&5
19512  cat conftest.$ac_ext >&5
19513  rm -rf conftest*
19514  glibcpp_cv_func_hypotl_use=no
19515fi
19516rm -f conftest*
19517      ac_ext=c
19518# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19519ac_cpp='$CPP $CPPFLAGS'
19520ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19521ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19522cross_compiling=$ac_cv_prog_cc_cross
19523
19524    
19525fi
19526
19527  fi
19528  echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
19529
19530  if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
19531    for ac_func in hypotl
19532do
19533echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19534echo "configure:19535: checking for $ac_func" >&5
19535if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19536  echo $ac_n "(cached) $ac_c" 1>&6
19537else
19538  cat > conftest.$ac_ext <<EOF
19539#line 19540 "configure"
19540#include "confdefs.h"
19541/* System header to define __stub macros and hopefully few prototypes,
19542    which can conflict with char $ac_func(); below.  */
19543#include <assert.h>
19544/* Override any gcc2 internal prototype to avoid an error.  */
19545/* We use char because int might match the return type of a gcc2
19546    builtin and then its argument prototype would still apply.  */
19547char $ac_func();
19548
19549int main() {
19550
19551/* The GNU C library defines this for functions which it implements
19552    to always fail with ENOSYS.  Some functions are actually named
19553    something starting with __ and the normal name is an alias.  */
19554#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19555choke me
19556#else
19557$ac_func();
19558#endif
19559
19560; return 0; }
19561EOF
19562if { (eval echo configure:19563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19563  rm -rf conftest*
19564  eval "ac_cv_func_$ac_func=yes"
19565else
19566  echo "configure: failed program was:" >&5
19567  cat conftest.$ac_ext >&5
19568  rm -rf conftest*
19569  eval "ac_cv_func_$ac_func=no"
19570fi
19571rm -f conftest*
19572fi
19573
19574if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19575  echo "$ac_t""yes" 1>&6
19576    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19577  cat >> confdefs.h <<EOF
19578#define $ac_tr_func 1
19579EOF
19580 
19581else
19582  echo "$ac_t""no" 1>&6
19583fi
19584done
19585    
19586  else
19587    
19588  echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
19589echo "configure:19590: checking for _hypotl declaration" >&5
19590  if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
19591    if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
19592  echo $ac_n "(cached) $ac_c" 1>&6
19593else
19594  
19595      
19596      ac_ext=C
19597# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19598ac_cpp='$CXXCPP $CPPFLAGS'
19599ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19600ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19601cross_compiling=$ac_cv_prog_cxx_cross
19602
19603      cat > conftest.$ac_ext <<EOF
19604#line 19605 "configure"
19605#include "confdefs.h"
19606#include <math.h>
19607int main() {
19608 _hypotl(0, 0);
19609; return 0; }
19610EOF
19611if { (eval echo configure:19612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19612  rm -rf conftest*
19613  glibcpp_cv_func__hypotl_use=yes
19614else
19615  echo "configure: failed program was:" >&5
19616  cat conftest.$ac_ext >&5
19617  rm -rf conftest*
19618  glibcpp_cv_func__hypotl_use=no
19619fi
19620rm -f conftest*
19621      ac_ext=c
19622# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19623ac_cpp='$CPP $CPPFLAGS'
19624ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19625ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19626cross_compiling=$ac_cv_prog_cc_cross
19627
19628    
19629fi
19630
19631  fi
19632  echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
19633
19634    if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
19635      for ac_func in _hypotl
19636do
19637echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19638echo "configure:19639: checking for $ac_func" >&5
19639if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19640  echo $ac_n "(cached) $ac_c" 1>&6
19641else
19642  cat > conftest.$ac_ext <<EOF
19643#line 19644 "configure"
19644#include "confdefs.h"
19645/* System header to define __stub macros and hopefully few prototypes,
19646    which can conflict with char $ac_func(); below.  */
19647#include <assert.h>
19648/* Override any gcc2 internal prototype to avoid an error.  */
19649/* We use char because int might match the return type of a gcc2
19650    builtin and then its argument prototype would still apply.  */
19651char $ac_func();
19652
19653int main() {
19654
19655/* The GNU C library defines this for functions which it implements
19656    to always fail with ENOSYS.  Some functions are actually named
19657    something starting with __ and the normal name is an alias.  */
19658#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19659choke me
19660#else
19661$ac_func();
19662#endif
19663
19664; return 0; }
19665EOF
19666if { (eval echo configure:19667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19667  rm -rf conftest*
19668  eval "ac_cv_func_$ac_func=yes"
19669else
19670  echo "configure: failed program was:" >&5
19671  cat conftest.$ac_ext >&5
19672  rm -rf conftest*
19673  eval "ac_cv_func_$ac_func=no"
19674fi
19675rm -f conftest*
19676fi
19677
19678if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19679  echo "$ac_t""yes" 1>&6
19680    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19681  cat >> confdefs.h <<EOF
19682#define $ac_tr_func 1
19683EOF
19684 
19685else
19686  echo "$ac_t""no" 1>&6
19687fi
19688done
19689    
19690    fi
19691  fi
19692
19693  
19694  
19695  echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
19696echo "configure:19697: checking for ldexpl declaration" >&5
19697  if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
19698    if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
19699  echo $ac_n "(cached) $ac_c" 1>&6
19700else
19701  
19702      
19703      ac_ext=C
19704# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19705ac_cpp='$CXXCPP $CPPFLAGS'
19706ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19707ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19708cross_compiling=$ac_cv_prog_cxx_cross
19709
19710      cat > conftest.$ac_ext <<EOF
19711#line 19712 "configure"
19712#include "confdefs.h"
19713#include <math.h>
19714int main() {
19715 ldexpl(0, 0);
19716; return 0; }
19717EOF
19718if { (eval echo configure:19719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19719  rm -rf conftest*
19720  glibcpp_cv_func_ldexpl_use=yes
19721else
19722  echo "configure: failed program was:" >&5
19723  cat conftest.$ac_ext >&5
19724  rm -rf conftest*
19725  glibcpp_cv_func_ldexpl_use=no
19726fi
19727rm -f conftest*
19728      ac_ext=c
19729# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19730ac_cpp='$CPP $CPPFLAGS'
19731ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19732ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19733cross_compiling=$ac_cv_prog_cc_cross
19734
19735    
19736fi
19737
19738  fi
19739  echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
19740
19741  if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
19742    for ac_func in ldexpl
19743do
19744echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19745echo "configure:19746: checking for $ac_func" >&5
19746if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19747  echo $ac_n "(cached) $ac_c" 1>&6
19748else
19749  cat > conftest.$ac_ext <<EOF
19750#line 19751 "configure"
19751#include "confdefs.h"
19752/* System header to define __stub macros and hopefully few prototypes,
19753    which can conflict with char $ac_func(); below.  */
19754#include <assert.h>
19755/* Override any gcc2 internal prototype to avoid an error.  */
19756/* We use char because int might match the return type of a gcc2
19757    builtin and then its argument prototype would still apply.  */
19758char $ac_func();
19759
19760int main() {
19761
19762/* The GNU C library defines this for functions which it implements
19763    to always fail with ENOSYS.  Some functions are actually named
19764    something starting with __ and the normal name is an alias.  */
19765#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19766choke me
19767#else
19768$ac_func();
19769#endif
19770
19771; return 0; }
19772EOF
19773if { (eval echo configure:19774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19774  rm -rf conftest*
19775  eval "ac_cv_func_$ac_func=yes"
19776else
19777  echo "configure: failed program was:" >&5
19778  cat conftest.$ac_ext >&5
19779  rm -rf conftest*
19780  eval "ac_cv_func_$ac_func=no"
19781fi
19782rm -f conftest*
19783fi
19784
19785if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19786  echo "$ac_t""yes" 1>&6
19787    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19788  cat >> confdefs.h <<EOF
19789#define $ac_tr_func 1
19790EOF
19791 
19792else
19793  echo "$ac_t""no" 1>&6
19794fi
19795done
19796    
19797  else
19798    
19799  echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
19800echo "configure:19801: checking for _ldexpl declaration" >&5
19801  if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
19802    if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
19803  echo $ac_n "(cached) $ac_c" 1>&6
19804else
19805  
19806      
19807      ac_ext=C
19808# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19809ac_cpp='$CXXCPP $CPPFLAGS'
19810ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19811ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19812cross_compiling=$ac_cv_prog_cxx_cross
19813
19814      cat > conftest.$ac_ext <<EOF
19815#line 19816 "configure"
19816#include "confdefs.h"
19817#include <math.h>
19818int main() {
19819 _ldexpl(0, 0);
19820; return 0; }
19821EOF
19822if { (eval echo configure:19823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19823  rm -rf conftest*
19824  glibcpp_cv_func__ldexpl_use=yes
19825else
19826  echo "configure: failed program was:" >&5
19827  cat conftest.$ac_ext >&5
19828  rm -rf conftest*
19829  glibcpp_cv_func__ldexpl_use=no
19830fi
19831rm -f conftest*
19832      ac_ext=c
19833# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19834ac_cpp='$CPP $CPPFLAGS'
19835ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19836ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19837cross_compiling=$ac_cv_prog_cc_cross
19838
19839    
19840fi
19841
19842  fi
19843  echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
19844
19845    if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
19846      for ac_func in _ldexpl
19847do
19848echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19849echo "configure:19850: checking for $ac_func" >&5
19850if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19851  echo $ac_n "(cached) $ac_c" 1>&6
19852else
19853  cat > conftest.$ac_ext <<EOF
19854#line 19855 "configure"
19855#include "confdefs.h"
19856/* System header to define __stub macros and hopefully few prototypes,
19857    which can conflict with char $ac_func(); below.  */
19858#include <assert.h>
19859/* Override any gcc2 internal prototype to avoid an error.  */
19860/* We use char because int might match the return type of a gcc2
19861    builtin and then its argument prototype would still apply.  */
19862char $ac_func();
19863
19864int main() {
19865
19866/* The GNU C library defines this for functions which it implements
19867    to always fail with ENOSYS.  Some functions are actually named
19868    something starting with __ and the normal name is an alias.  */
19869#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19870choke me
19871#else
19872$ac_func();
19873#endif
19874
19875; return 0; }
19876EOF
19877if { (eval echo configure:19878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19878  rm -rf conftest*
19879  eval "ac_cv_func_$ac_func=yes"
19880else
19881  echo "configure: failed program was:" >&5
19882  cat conftest.$ac_ext >&5
19883  rm -rf conftest*
19884  eval "ac_cv_func_$ac_func=no"
19885fi
19886rm -f conftest*
19887fi
19888
19889if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19890  echo "$ac_t""yes" 1>&6
19891    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19892  cat >> confdefs.h <<EOF
19893#define $ac_tr_func 1
19894EOF
19895 
19896else
19897  echo "$ac_t""no" 1>&6
19898fi
19899done
19900    
19901    fi
19902  fi
19903
19904  
19905  
19906  echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
19907echo "configure:19908: checking for logl declaration" >&5
19908  if test x${glibcpp_cv_func_logl_use+set} != xset; then
19909    if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
19910  echo $ac_n "(cached) $ac_c" 1>&6
19911else
19912  
19913      
19914      ac_ext=C
19915# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19916ac_cpp='$CXXCPP $CPPFLAGS'
19917ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19918ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19919cross_compiling=$ac_cv_prog_cxx_cross
19920
19921      cat > conftest.$ac_ext <<EOF
19922#line 19923 "configure"
19923#include "confdefs.h"
19924#include <math.h>
19925		      #ifdef HAVE_IEEEFP_H
19926		      #include <ieeefp.h>
19927		      #endif
19928		     
19929int main() {
19930 logl(0);
19931; return 0; }
19932EOF
19933if { (eval echo configure:19934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19934  rm -rf conftest*
19935  glibcpp_cv_func_logl_use=yes
19936else
19937  echo "configure: failed program was:" >&5
19938  cat conftest.$ac_ext >&5
19939  rm -rf conftest*
19940  glibcpp_cv_func_logl_use=no
19941fi
19942rm -f conftest*
19943      ac_ext=c
19944# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19945ac_cpp='$CPP $CPPFLAGS'
19946ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19947ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19948cross_compiling=$ac_cv_prog_cc_cross
19949
19950    
19951fi
19952
19953  fi
19954  echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
19955
19956  if test x$glibcpp_cv_func_logl_use = x"yes"; then
19957    for ac_func in logl
19958do
19959echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19960echo "configure:19961: checking for $ac_func" >&5
19961if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19962  echo $ac_n "(cached) $ac_c" 1>&6
19963else
19964  cat > conftest.$ac_ext <<EOF
19965#line 19966 "configure"
19966#include "confdefs.h"
19967/* System header to define __stub macros and hopefully few prototypes,
19968    which can conflict with char $ac_func(); below.  */
19969#include <assert.h>
19970/* Override any gcc2 internal prototype to avoid an error.  */
19971/* We use char because int might match the return type of a gcc2
19972    builtin and then its argument prototype would still apply.  */
19973char $ac_func();
19974
19975int main() {
19976
19977/* The GNU C library defines this for functions which it implements
19978    to always fail with ENOSYS.  Some functions are actually named
19979    something starting with __ and the normal name is an alias.  */
19980#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19981choke me
19982#else
19983$ac_func();
19984#endif
19985
19986; return 0; }
19987EOF
19988if { (eval echo configure:19989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19989  rm -rf conftest*
19990  eval "ac_cv_func_$ac_func=yes"
19991else
19992  echo "configure: failed program was:" >&5
19993  cat conftest.$ac_ext >&5
19994  rm -rf conftest*
19995  eval "ac_cv_func_$ac_func=no"
19996fi
19997rm -f conftest*
19998fi
19999
20000if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20001  echo "$ac_t""yes" 1>&6
20002    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20003  cat >> confdefs.h <<EOF
20004#define $ac_tr_func 1
20005EOF
20006 
20007else
20008  echo "$ac_t""no" 1>&6
20009fi
20010done
20011    
20012  else
20013    
20014  echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
20015echo "configure:20016: checking for _logl declaration" >&5
20016  if test x${glibcpp_cv_func__logl_use+set} != xset; then
20017    if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
20018  echo $ac_n "(cached) $ac_c" 1>&6
20019else
20020  
20021      
20022      ac_ext=C
20023# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20024ac_cpp='$CXXCPP $CPPFLAGS'
20025ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20026ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20027cross_compiling=$ac_cv_prog_cxx_cross
20028
20029      cat > conftest.$ac_ext <<EOF
20030#line 20031 "configure"
20031#include "confdefs.h"
20032#include <math.h>
20033		      #ifdef HAVE_IEEEFP_H
20034		      #include <ieeefp.h>
20035		      #endif
20036		     
20037int main() {
20038 _logl(0);
20039; return 0; }
20040EOF
20041if { (eval echo configure:20042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20042  rm -rf conftest*
20043  glibcpp_cv_func__logl_use=yes
20044else
20045  echo "configure: failed program was:" >&5
20046  cat conftest.$ac_ext >&5
20047  rm -rf conftest*
20048  glibcpp_cv_func__logl_use=no
20049fi
20050rm -f conftest*
20051      ac_ext=c
20052# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20053ac_cpp='$CPP $CPPFLAGS'
20054ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20055ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20056cross_compiling=$ac_cv_prog_cc_cross
20057
20058    
20059fi
20060
20061  fi
20062  echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
20063
20064    if test x$glibcpp_cv_func__logl_use = x"yes"; then
20065      for ac_func in _logl
20066do
20067echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20068echo "configure:20069: checking for $ac_func" >&5
20069if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20070  echo $ac_n "(cached) $ac_c" 1>&6
20071else
20072  cat > conftest.$ac_ext <<EOF
20073#line 20074 "configure"
20074#include "confdefs.h"
20075/* System header to define __stub macros and hopefully few prototypes,
20076    which can conflict with char $ac_func(); below.  */
20077#include <assert.h>
20078/* Override any gcc2 internal prototype to avoid an error.  */
20079/* We use char because int might match the return type of a gcc2
20080    builtin and then its argument prototype would still apply.  */
20081char $ac_func();
20082
20083int main() {
20084
20085/* The GNU C library defines this for functions which it implements
20086    to always fail with ENOSYS.  Some functions are actually named
20087    something starting with __ and the normal name is an alias.  */
20088#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20089choke me
20090#else
20091$ac_func();
20092#endif
20093
20094; return 0; }
20095EOF
20096if { (eval echo configure:20097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20097  rm -rf conftest*
20098  eval "ac_cv_func_$ac_func=yes"
20099else
20100  echo "configure: failed program was:" >&5
20101  cat conftest.$ac_ext >&5
20102  rm -rf conftest*
20103  eval "ac_cv_func_$ac_func=no"
20104fi
20105rm -f conftest*
20106fi
20107
20108if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20109  echo "$ac_t""yes" 1>&6
20110    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20111  cat >> confdefs.h <<EOF
20112#define $ac_tr_func 1
20113EOF
20114 
20115else
20116  echo "$ac_t""no" 1>&6
20117fi
20118done
20119    
20120    fi
20121  fi
20122
20123  
20124  
20125  echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
20126echo "configure:20127: checking for log10l declaration" >&5
20127  if test x${glibcpp_cv_func_log10l_use+set} != xset; then
20128    if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
20129  echo $ac_n "(cached) $ac_c" 1>&6
20130else
20131  
20132      
20133      ac_ext=C
20134# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20135ac_cpp='$CXXCPP $CPPFLAGS'
20136ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20137ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20138cross_compiling=$ac_cv_prog_cxx_cross
20139
20140      cat > conftest.$ac_ext <<EOF
20141#line 20142 "configure"
20142#include "confdefs.h"
20143#include <math.h>
20144		      #ifdef HAVE_IEEEFP_H
20145		      #include <ieeefp.h>
20146		      #endif
20147		     
20148int main() {
20149 log10l(0);
20150; return 0; }
20151EOF
20152if { (eval echo configure:20153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20153  rm -rf conftest*
20154  glibcpp_cv_func_log10l_use=yes
20155else
20156  echo "configure: failed program was:" >&5
20157  cat conftest.$ac_ext >&5
20158  rm -rf conftest*
20159  glibcpp_cv_func_log10l_use=no
20160fi
20161rm -f conftest*
20162      ac_ext=c
20163# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20164ac_cpp='$CPP $CPPFLAGS'
20165ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20166ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20167cross_compiling=$ac_cv_prog_cc_cross
20168
20169    
20170fi
20171
20172  fi
20173  echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
20174
20175  if test x$glibcpp_cv_func_log10l_use = x"yes"; then
20176    for ac_func in log10l
20177do
20178echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20179echo "configure:20180: checking for $ac_func" >&5
20180if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20181  echo $ac_n "(cached) $ac_c" 1>&6
20182else
20183  cat > conftest.$ac_ext <<EOF
20184#line 20185 "configure"
20185#include "confdefs.h"
20186/* System header to define __stub macros and hopefully few prototypes,
20187    which can conflict with char $ac_func(); below.  */
20188#include <assert.h>
20189/* Override any gcc2 internal prototype to avoid an error.  */
20190/* We use char because int might match the return type of a gcc2
20191    builtin and then its argument prototype would still apply.  */
20192char $ac_func();
20193
20194int main() {
20195
20196/* The GNU C library defines this for functions which it implements
20197    to always fail with ENOSYS.  Some functions are actually named
20198    something starting with __ and the normal name is an alias.  */
20199#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20200choke me
20201#else
20202$ac_func();
20203#endif
20204
20205; return 0; }
20206EOF
20207if { (eval echo configure:20208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20208  rm -rf conftest*
20209  eval "ac_cv_func_$ac_func=yes"
20210else
20211  echo "configure: failed program was:" >&5
20212  cat conftest.$ac_ext >&5
20213  rm -rf conftest*
20214  eval "ac_cv_func_$ac_func=no"
20215fi
20216rm -f conftest*
20217fi
20218
20219if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20220  echo "$ac_t""yes" 1>&6
20221    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20222  cat >> confdefs.h <<EOF
20223#define $ac_tr_func 1
20224EOF
20225 
20226else
20227  echo "$ac_t""no" 1>&6
20228fi
20229done
20230    
20231  else
20232    
20233  echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
20234echo "configure:20235: checking for _log10l declaration" >&5
20235  if test x${glibcpp_cv_func__log10l_use+set} != xset; then
20236    if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
20237  echo $ac_n "(cached) $ac_c" 1>&6
20238else
20239  
20240      
20241      ac_ext=C
20242# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20243ac_cpp='$CXXCPP $CPPFLAGS'
20244ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20245ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20246cross_compiling=$ac_cv_prog_cxx_cross
20247
20248      cat > conftest.$ac_ext <<EOF
20249#line 20250 "configure"
20250#include "confdefs.h"
20251#include <math.h>
20252		      #ifdef HAVE_IEEEFP_H
20253		      #include <ieeefp.h>
20254		      #endif
20255		     
20256int main() {
20257 _log10l(0);
20258; return 0; }
20259EOF
20260if { (eval echo configure:20261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20261  rm -rf conftest*
20262  glibcpp_cv_func__log10l_use=yes
20263else
20264  echo "configure: failed program was:" >&5
20265  cat conftest.$ac_ext >&5
20266  rm -rf conftest*
20267  glibcpp_cv_func__log10l_use=no
20268fi
20269rm -f conftest*
20270      ac_ext=c
20271# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20272ac_cpp='$CPP $CPPFLAGS'
20273ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20274ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20275cross_compiling=$ac_cv_prog_cc_cross
20276
20277    
20278fi
20279
20280  fi
20281  echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
20282
20283    if test x$glibcpp_cv_func__log10l_use = x"yes"; then
20284      for ac_func in _log10l
20285do
20286echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20287echo "configure:20288: checking for $ac_func" >&5
20288if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20289  echo $ac_n "(cached) $ac_c" 1>&6
20290else
20291  cat > conftest.$ac_ext <<EOF
20292#line 20293 "configure"
20293#include "confdefs.h"
20294/* System header to define __stub macros and hopefully few prototypes,
20295    which can conflict with char $ac_func(); below.  */
20296#include <assert.h>
20297/* Override any gcc2 internal prototype to avoid an error.  */
20298/* We use char because int might match the return type of a gcc2
20299    builtin and then its argument prototype would still apply.  */
20300char $ac_func();
20301
20302int main() {
20303
20304/* The GNU C library defines this for functions which it implements
20305    to always fail with ENOSYS.  Some functions are actually named
20306    something starting with __ and the normal name is an alias.  */
20307#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20308choke me
20309#else
20310$ac_func();
20311#endif
20312
20313; return 0; }
20314EOF
20315if { (eval echo configure:20316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20316  rm -rf conftest*
20317  eval "ac_cv_func_$ac_func=yes"
20318else
20319  echo "configure: failed program was:" >&5
20320  cat conftest.$ac_ext >&5
20321  rm -rf conftest*
20322  eval "ac_cv_func_$ac_func=no"
20323fi
20324rm -f conftest*
20325fi
20326
20327if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20328  echo "$ac_t""yes" 1>&6
20329    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20330  cat >> confdefs.h <<EOF
20331#define $ac_tr_func 1
20332EOF
20333 
20334else
20335  echo "$ac_t""no" 1>&6
20336fi
20337done
20338    
20339    fi
20340  fi
20341
20342  
20343  
20344  echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
20345echo "configure:20346: checking for modfl declaration" >&5
20346  if test x${glibcpp_cv_func_modfl_use+set} != xset; then
20347    if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
20348  echo $ac_n "(cached) $ac_c" 1>&6
20349else
20350  
20351      
20352      ac_ext=C
20353# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20354ac_cpp='$CXXCPP $CPPFLAGS'
20355ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20356ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20357cross_compiling=$ac_cv_prog_cxx_cross
20358
20359      cat > conftest.$ac_ext <<EOF
20360#line 20361 "configure"
20361#include "confdefs.h"
20362#include <math.h>
20363int main() {
20364 modfl(0, 0);
20365; return 0; }
20366EOF
20367if { (eval echo configure:20368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20368  rm -rf conftest*
20369  glibcpp_cv_func_modfl_use=yes
20370else
20371  echo "configure: failed program was:" >&5
20372  cat conftest.$ac_ext >&5
20373  rm -rf conftest*
20374  glibcpp_cv_func_modfl_use=no
20375fi
20376rm -f conftest*
20377      ac_ext=c
20378# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20379ac_cpp='$CPP $CPPFLAGS'
20380ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20381ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20382cross_compiling=$ac_cv_prog_cc_cross
20383
20384    
20385fi
20386
20387  fi
20388  echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
20389
20390  if test x$glibcpp_cv_func_modfl_use = x"yes"; then
20391    for ac_func in modfl
20392do
20393echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20394echo "configure:20395: checking for $ac_func" >&5
20395if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20396  echo $ac_n "(cached) $ac_c" 1>&6
20397else
20398  cat > conftest.$ac_ext <<EOF
20399#line 20400 "configure"
20400#include "confdefs.h"
20401/* System header to define __stub macros and hopefully few prototypes,
20402    which can conflict with char $ac_func(); below.  */
20403#include <assert.h>
20404/* Override any gcc2 internal prototype to avoid an error.  */
20405/* We use char because int might match the return type of a gcc2
20406    builtin and then its argument prototype would still apply.  */
20407char $ac_func();
20408
20409int main() {
20410
20411/* The GNU C library defines this for functions which it implements
20412    to always fail with ENOSYS.  Some functions are actually named
20413    something starting with __ and the normal name is an alias.  */
20414#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20415choke me
20416#else
20417$ac_func();
20418#endif
20419
20420; return 0; }
20421EOF
20422if { (eval echo configure:20423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20423  rm -rf conftest*
20424  eval "ac_cv_func_$ac_func=yes"
20425else
20426  echo "configure: failed program was:" >&5
20427  cat conftest.$ac_ext >&5
20428  rm -rf conftest*
20429  eval "ac_cv_func_$ac_func=no"
20430fi
20431rm -f conftest*
20432fi
20433
20434if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20435  echo "$ac_t""yes" 1>&6
20436    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20437  cat >> confdefs.h <<EOF
20438#define $ac_tr_func 1
20439EOF
20440 
20441else
20442  echo "$ac_t""no" 1>&6
20443fi
20444done
20445    
20446  else
20447    
20448  echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
20449echo "configure:20450: checking for _modfl declaration" >&5
20450  if test x${glibcpp_cv_func__modfl_use+set} != xset; then
20451    if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
20452  echo $ac_n "(cached) $ac_c" 1>&6
20453else
20454  
20455      
20456      ac_ext=C
20457# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20458ac_cpp='$CXXCPP $CPPFLAGS'
20459ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20460ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20461cross_compiling=$ac_cv_prog_cxx_cross
20462
20463      cat > conftest.$ac_ext <<EOF
20464#line 20465 "configure"
20465#include "confdefs.h"
20466#include <math.h>
20467int main() {
20468 _modfl(0, 0);
20469; return 0; }
20470EOF
20471if { (eval echo configure:20472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20472  rm -rf conftest*
20473  glibcpp_cv_func__modfl_use=yes
20474else
20475  echo "configure: failed program was:" >&5
20476  cat conftest.$ac_ext >&5
20477  rm -rf conftest*
20478  glibcpp_cv_func__modfl_use=no
20479fi
20480rm -f conftest*
20481      ac_ext=c
20482# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20483ac_cpp='$CPP $CPPFLAGS'
20484ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20485ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20486cross_compiling=$ac_cv_prog_cc_cross
20487
20488    
20489fi
20490
20491  fi
20492  echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
20493
20494    if test x$glibcpp_cv_func__modfl_use = x"yes"; then
20495      for ac_func in _modfl
20496do
20497echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20498echo "configure:20499: checking for $ac_func" >&5
20499if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20500  echo $ac_n "(cached) $ac_c" 1>&6
20501else
20502  cat > conftest.$ac_ext <<EOF
20503#line 20504 "configure"
20504#include "confdefs.h"
20505/* System header to define __stub macros and hopefully few prototypes,
20506    which can conflict with char $ac_func(); below.  */
20507#include <assert.h>
20508/* Override any gcc2 internal prototype to avoid an error.  */
20509/* We use char because int might match the return type of a gcc2
20510    builtin and then its argument prototype would still apply.  */
20511char $ac_func();
20512
20513int main() {
20514
20515/* The GNU C library defines this for functions which it implements
20516    to always fail with ENOSYS.  Some functions are actually named
20517    something starting with __ and the normal name is an alias.  */
20518#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20519choke me
20520#else
20521$ac_func();
20522#endif
20523
20524; return 0; }
20525EOF
20526if { (eval echo configure:20527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20527  rm -rf conftest*
20528  eval "ac_cv_func_$ac_func=yes"
20529else
20530  echo "configure: failed program was:" >&5
20531  cat conftest.$ac_ext >&5
20532  rm -rf conftest*
20533  eval "ac_cv_func_$ac_func=no"
20534fi
20535rm -f conftest*
20536fi
20537
20538if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20539  echo "$ac_t""yes" 1>&6
20540    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20541  cat >> confdefs.h <<EOF
20542#define $ac_tr_func 1
20543EOF
20544 
20545else
20546  echo "$ac_t""no" 1>&6
20547fi
20548done
20549    
20550    fi
20551  fi
20552
20553  
20554  
20555  echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
20556echo "configure:20557: checking for powl declaration" >&5
20557  if test x${glibcpp_cv_func_powl_use+set} != xset; then
20558    if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
20559  echo $ac_n "(cached) $ac_c" 1>&6
20560else
20561  
20562      
20563      ac_ext=C
20564# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20565ac_cpp='$CXXCPP $CPPFLAGS'
20566ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20567ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20568cross_compiling=$ac_cv_prog_cxx_cross
20569
20570      cat > conftest.$ac_ext <<EOF
20571#line 20572 "configure"
20572#include "confdefs.h"
20573#include <math.h>
20574int main() {
20575 powl(0, 0);
20576; return 0; }
20577EOF
20578if { (eval echo configure:20579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20579  rm -rf conftest*
20580  glibcpp_cv_func_powl_use=yes
20581else
20582  echo "configure: failed program was:" >&5
20583  cat conftest.$ac_ext >&5
20584  rm -rf conftest*
20585  glibcpp_cv_func_powl_use=no
20586fi
20587rm -f conftest*
20588      ac_ext=c
20589# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20590ac_cpp='$CPP $CPPFLAGS'
20591ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20592ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20593cross_compiling=$ac_cv_prog_cc_cross
20594
20595    
20596fi
20597
20598  fi
20599  echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
20600
20601  if test x$glibcpp_cv_func_powl_use = x"yes"; then
20602    for ac_func in powl
20603do
20604echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20605echo "configure:20606: checking for $ac_func" >&5
20606if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20607  echo $ac_n "(cached) $ac_c" 1>&6
20608else
20609  cat > conftest.$ac_ext <<EOF
20610#line 20611 "configure"
20611#include "confdefs.h"
20612/* System header to define __stub macros and hopefully few prototypes,
20613    which can conflict with char $ac_func(); below.  */
20614#include <assert.h>
20615/* Override any gcc2 internal prototype to avoid an error.  */
20616/* We use char because int might match the return type of a gcc2
20617    builtin and then its argument prototype would still apply.  */
20618char $ac_func();
20619
20620int main() {
20621
20622/* The GNU C library defines this for functions which it implements
20623    to always fail with ENOSYS.  Some functions are actually named
20624    something starting with __ and the normal name is an alias.  */
20625#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20626choke me
20627#else
20628$ac_func();
20629#endif
20630
20631; return 0; }
20632EOF
20633if { (eval echo configure:20634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20634  rm -rf conftest*
20635  eval "ac_cv_func_$ac_func=yes"
20636else
20637  echo "configure: failed program was:" >&5
20638  cat conftest.$ac_ext >&5
20639  rm -rf conftest*
20640  eval "ac_cv_func_$ac_func=no"
20641fi
20642rm -f conftest*
20643fi
20644
20645if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20646  echo "$ac_t""yes" 1>&6
20647    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20648  cat >> confdefs.h <<EOF
20649#define $ac_tr_func 1
20650EOF
20651 
20652else
20653  echo "$ac_t""no" 1>&6
20654fi
20655done
20656    
20657  else
20658    
20659  echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
20660echo "configure:20661: checking for _powl declaration" >&5
20661  if test x${glibcpp_cv_func__powl_use+set} != xset; then
20662    if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
20663  echo $ac_n "(cached) $ac_c" 1>&6
20664else
20665  
20666      
20667      ac_ext=C
20668# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20669ac_cpp='$CXXCPP $CPPFLAGS'
20670ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20671ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20672cross_compiling=$ac_cv_prog_cxx_cross
20673
20674      cat > conftest.$ac_ext <<EOF
20675#line 20676 "configure"
20676#include "confdefs.h"
20677#include <math.h>
20678int main() {
20679 _powl(0, 0);
20680; return 0; }
20681EOF
20682if { (eval echo configure:20683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20683  rm -rf conftest*
20684  glibcpp_cv_func__powl_use=yes
20685else
20686  echo "configure: failed program was:" >&5
20687  cat conftest.$ac_ext >&5
20688  rm -rf conftest*
20689  glibcpp_cv_func__powl_use=no
20690fi
20691rm -f conftest*
20692      ac_ext=c
20693# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20694ac_cpp='$CPP $CPPFLAGS'
20695ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20696ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20697cross_compiling=$ac_cv_prog_cc_cross
20698
20699    
20700fi
20701
20702  fi
20703  echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
20704
20705    if test x$glibcpp_cv_func__powl_use = x"yes"; then
20706      for ac_func in _powl
20707do
20708echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20709echo "configure:20710: checking for $ac_func" >&5
20710if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20711  echo $ac_n "(cached) $ac_c" 1>&6
20712else
20713  cat > conftest.$ac_ext <<EOF
20714#line 20715 "configure"
20715#include "confdefs.h"
20716/* System header to define __stub macros and hopefully few prototypes,
20717    which can conflict with char $ac_func(); below.  */
20718#include <assert.h>
20719/* Override any gcc2 internal prototype to avoid an error.  */
20720/* We use char because int might match the return type of a gcc2
20721    builtin and then its argument prototype would still apply.  */
20722char $ac_func();
20723
20724int main() {
20725
20726/* The GNU C library defines this for functions which it implements
20727    to always fail with ENOSYS.  Some functions are actually named
20728    something starting with __ and the normal name is an alias.  */
20729#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20730choke me
20731#else
20732$ac_func();
20733#endif
20734
20735; return 0; }
20736EOF
20737if { (eval echo configure:20738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20738  rm -rf conftest*
20739  eval "ac_cv_func_$ac_func=yes"
20740else
20741  echo "configure: failed program was:" >&5
20742  cat conftest.$ac_ext >&5
20743  rm -rf conftest*
20744  eval "ac_cv_func_$ac_func=no"
20745fi
20746rm -f conftest*
20747fi
20748
20749if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20750  echo "$ac_t""yes" 1>&6
20751    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20752  cat >> confdefs.h <<EOF
20753#define $ac_tr_func 1
20754EOF
20755 
20756else
20757  echo "$ac_t""no" 1>&6
20758fi
20759done
20760    
20761    fi
20762  fi
20763
20764  
20765  
20766  echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
20767echo "configure:20768: checking for sqrtl declaration" >&5
20768  if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
20769    if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
20770  echo $ac_n "(cached) $ac_c" 1>&6
20771else
20772  
20773      
20774      ac_ext=C
20775# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20776ac_cpp='$CXXCPP $CPPFLAGS'
20777ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20778ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20779cross_compiling=$ac_cv_prog_cxx_cross
20780
20781      cat > conftest.$ac_ext <<EOF
20782#line 20783 "configure"
20783#include "confdefs.h"
20784#include <math.h>
20785		      #ifdef HAVE_IEEEFP_H
20786		      #include <ieeefp.h>
20787		      #endif
20788		     
20789int main() {
20790 sqrtl(0);
20791; return 0; }
20792EOF
20793if { (eval echo configure:20794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20794  rm -rf conftest*
20795  glibcpp_cv_func_sqrtl_use=yes
20796else
20797  echo "configure: failed program was:" >&5
20798  cat conftest.$ac_ext >&5
20799  rm -rf conftest*
20800  glibcpp_cv_func_sqrtl_use=no
20801fi
20802rm -f conftest*
20803      ac_ext=c
20804# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20805ac_cpp='$CPP $CPPFLAGS'
20806ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20807ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20808cross_compiling=$ac_cv_prog_cc_cross
20809
20810    
20811fi
20812
20813  fi
20814  echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
20815
20816  if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
20817    for ac_func in sqrtl
20818do
20819echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20820echo "configure:20821: checking for $ac_func" >&5
20821if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20822  echo $ac_n "(cached) $ac_c" 1>&6
20823else
20824  cat > conftest.$ac_ext <<EOF
20825#line 20826 "configure"
20826#include "confdefs.h"
20827/* System header to define __stub macros and hopefully few prototypes,
20828    which can conflict with char $ac_func(); below.  */
20829#include <assert.h>
20830/* Override any gcc2 internal prototype to avoid an error.  */
20831/* We use char because int might match the return type of a gcc2
20832    builtin and then its argument prototype would still apply.  */
20833char $ac_func();
20834
20835int main() {
20836
20837/* The GNU C library defines this for functions which it implements
20838    to always fail with ENOSYS.  Some functions are actually named
20839    something starting with __ and the normal name is an alias.  */
20840#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20841choke me
20842#else
20843$ac_func();
20844#endif
20845
20846; return 0; }
20847EOF
20848if { (eval echo configure:20849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20849  rm -rf conftest*
20850  eval "ac_cv_func_$ac_func=yes"
20851else
20852  echo "configure: failed program was:" >&5
20853  cat conftest.$ac_ext >&5
20854  rm -rf conftest*
20855  eval "ac_cv_func_$ac_func=no"
20856fi
20857rm -f conftest*
20858fi
20859
20860if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20861  echo "$ac_t""yes" 1>&6
20862    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20863  cat >> confdefs.h <<EOF
20864#define $ac_tr_func 1
20865EOF
20866 
20867else
20868  echo "$ac_t""no" 1>&6
20869fi
20870done
20871    
20872  else
20873    
20874  echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
20875echo "configure:20876: checking for _sqrtl declaration" >&5
20876  if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
20877    if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
20878  echo $ac_n "(cached) $ac_c" 1>&6
20879else
20880  
20881      
20882      ac_ext=C
20883# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20884ac_cpp='$CXXCPP $CPPFLAGS'
20885ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20886ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20887cross_compiling=$ac_cv_prog_cxx_cross
20888
20889      cat > conftest.$ac_ext <<EOF
20890#line 20891 "configure"
20891#include "confdefs.h"
20892#include <math.h>
20893		      #ifdef HAVE_IEEEFP_H
20894		      #include <ieeefp.h>
20895		      #endif
20896		     
20897int main() {
20898 _sqrtl(0);
20899; return 0; }
20900EOF
20901if { (eval echo configure:20902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20902  rm -rf conftest*
20903  glibcpp_cv_func__sqrtl_use=yes
20904else
20905  echo "configure: failed program was:" >&5
20906  cat conftest.$ac_ext >&5
20907  rm -rf conftest*
20908  glibcpp_cv_func__sqrtl_use=no
20909fi
20910rm -f conftest*
20911      ac_ext=c
20912# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20913ac_cpp='$CPP $CPPFLAGS'
20914ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20915ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20916cross_compiling=$ac_cv_prog_cc_cross
20917
20918    
20919fi
20920
20921  fi
20922  echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
20923
20924    if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
20925      for ac_func in _sqrtl
20926do
20927echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20928echo "configure:20929: checking for $ac_func" >&5
20929if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20930  echo $ac_n "(cached) $ac_c" 1>&6
20931else
20932  cat > conftest.$ac_ext <<EOF
20933#line 20934 "configure"
20934#include "confdefs.h"
20935/* System header to define __stub macros and hopefully few prototypes,
20936    which can conflict with char $ac_func(); below.  */
20937#include <assert.h>
20938/* Override any gcc2 internal prototype to avoid an error.  */
20939/* We use char because int might match the return type of a gcc2
20940    builtin and then its argument prototype would still apply.  */
20941char $ac_func();
20942
20943int main() {
20944
20945/* The GNU C library defines this for functions which it implements
20946    to always fail with ENOSYS.  Some functions are actually named
20947    something starting with __ and the normal name is an alias.  */
20948#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20949choke me
20950#else
20951$ac_func();
20952#endif
20953
20954; return 0; }
20955EOF
20956if { (eval echo configure:20957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20957  rm -rf conftest*
20958  eval "ac_cv_func_$ac_func=yes"
20959else
20960  echo "configure: failed program was:" >&5
20961  cat conftest.$ac_ext >&5
20962  rm -rf conftest*
20963  eval "ac_cv_func_$ac_func=no"
20964fi
20965rm -f conftest*
20966fi
20967
20968if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20969  echo "$ac_t""yes" 1>&6
20970    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20971  cat >> confdefs.h <<EOF
20972#define $ac_tr_func 1
20973EOF
20974 
20975else
20976  echo "$ac_t""no" 1>&6
20977fi
20978done
20979    
20980    fi
20981  fi
20982
20983  
20984  
20985  echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
20986echo "configure:20987: checking for sincosl declaration" >&5
20987  if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
20988    if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
20989  echo $ac_n "(cached) $ac_c" 1>&6
20990else
20991  
20992      
20993      ac_ext=C
20994# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20995ac_cpp='$CXXCPP $CPPFLAGS'
20996ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20997ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20998cross_compiling=$ac_cv_prog_cxx_cross
20999
21000      cat > conftest.$ac_ext <<EOF
21001#line 21002 "configure"
21002#include "confdefs.h"
21003#include <math.h>
21004int main() {
21005 sincosl(0, 0, 0);
21006; return 0; }
21007EOF
21008if { (eval echo configure:21009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21009  rm -rf conftest*
21010  glibcpp_cv_func_sincosl_use=yes
21011else
21012  echo "configure: failed program was:" >&5
21013  cat conftest.$ac_ext >&5
21014  rm -rf conftest*
21015  glibcpp_cv_func_sincosl_use=no
21016fi
21017rm -f conftest*
21018      ac_ext=c
21019# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21020ac_cpp='$CPP $CPPFLAGS'
21021ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21022ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21023cross_compiling=$ac_cv_prog_cc_cross
21024
21025    
21026fi
21027
21028  fi
21029  echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
21030
21031  if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
21032    for ac_func in sincosl
21033do
21034echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21035echo "configure:21036: checking for $ac_func" >&5
21036if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21037  echo $ac_n "(cached) $ac_c" 1>&6
21038else
21039  cat > conftest.$ac_ext <<EOF
21040#line 21041 "configure"
21041#include "confdefs.h"
21042/* System header to define __stub macros and hopefully few prototypes,
21043    which can conflict with char $ac_func(); below.  */
21044#include <assert.h>
21045/* Override any gcc2 internal prototype to avoid an error.  */
21046/* We use char because int might match the return type of a gcc2
21047    builtin and then its argument prototype would still apply.  */
21048char $ac_func();
21049
21050int main() {
21051
21052/* The GNU C library defines this for functions which it implements
21053    to always fail with ENOSYS.  Some functions are actually named
21054    something starting with __ and the normal name is an alias.  */
21055#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21056choke me
21057#else
21058$ac_func();
21059#endif
21060
21061; return 0; }
21062EOF
21063if { (eval echo configure:21064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21064  rm -rf conftest*
21065  eval "ac_cv_func_$ac_func=yes"
21066else
21067  echo "configure: failed program was:" >&5
21068  cat conftest.$ac_ext >&5
21069  rm -rf conftest*
21070  eval "ac_cv_func_$ac_func=no"
21071fi
21072rm -f conftest*
21073fi
21074
21075if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21076  echo "$ac_t""yes" 1>&6
21077    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21078  cat >> confdefs.h <<EOF
21079#define $ac_tr_func 1
21080EOF
21081 
21082else
21083  echo "$ac_t""no" 1>&6
21084fi
21085done
21086    
21087  else
21088    
21089  echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
21090echo "configure:21091: checking for _sincosl declaration" >&5
21091  if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
21092    if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
21093  echo $ac_n "(cached) $ac_c" 1>&6
21094else
21095  
21096      
21097      ac_ext=C
21098# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21099ac_cpp='$CXXCPP $CPPFLAGS'
21100ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21101ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21102cross_compiling=$ac_cv_prog_cxx_cross
21103
21104      cat > conftest.$ac_ext <<EOF
21105#line 21106 "configure"
21106#include "confdefs.h"
21107#include <math.h>
21108int main() {
21109 _sincosl(0, 0, 0);
21110; return 0; }
21111EOF
21112if { (eval echo configure:21113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21113  rm -rf conftest*
21114  glibcpp_cv_func__sincosl_use=yes
21115else
21116  echo "configure: failed program was:" >&5
21117  cat conftest.$ac_ext >&5
21118  rm -rf conftest*
21119  glibcpp_cv_func__sincosl_use=no
21120fi
21121rm -f conftest*
21122      ac_ext=c
21123# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21124ac_cpp='$CPP $CPPFLAGS'
21125ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21126ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21127cross_compiling=$ac_cv_prog_cc_cross
21128
21129    
21130fi
21131
21132  fi
21133  echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
21134
21135    if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
21136      for ac_func in _sincosl
21137do
21138echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21139echo "configure:21140: checking for $ac_func" >&5
21140if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21141  echo $ac_n "(cached) $ac_c" 1>&6
21142else
21143  cat > conftest.$ac_ext <<EOF
21144#line 21145 "configure"
21145#include "confdefs.h"
21146/* System header to define __stub macros and hopefully few prototypes,
21147    which can conflict with char $ac_func(); below.  */
21148#include <assert.h>
21149/* Override any gcc2 internal prototype to avoid an error.  */
21150/* We use char because int might match the return type of a gcc2
21151    builtin and then its argument prototype would still apply.  */
21152char $ac_func();
21153
21154int main() {
21155
21156/* The GNU C library defines this for functions which it implements
21157    to always fail with ENOSYS.  Some functions are actually named
21158    something starting with __ and the normal name is an alias.  */
21159#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21160choke me
21161#else
21162$ac_func();
21163#endif
21164
21165; return 0; }
21166EOF
21167if { (eval echo configure:21168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21168  rm -rf conftest*
21169  eval "ac_cv_func_$ac_func=yes"
21170else
21171  echo "configure: failed program was:" >&5
21172  cat conftest.$ac_ext >&5
21173  rm -rf conftest*
21174  eval "ac_cv_func_$ac_func=no"
21175fi
21176rm -f conftest*
21177fi
21178
21179if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21180  echo "$ac_t""yes" 1>&6
21181    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21182  cat >> confdefs.h <<EOF
21183#define $ac_tr_func 1
21184EOF
21185 
21186else
21187  echo "$ac_t""no" 1>&6
21188fi
21189done
21190    
21191    fi
21192  fi
21193
21194  
21195  
21196  echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
21197echo "configure:21198: checking for finitel declaration" >&5
21198  if test x${glibcpp_cv_func_finitel_use+set} != xset; then
21199    if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
21200  echo $ac_n "(cached) $ac_c" 1>&6
21201else
21202  
21203      
21204      ac_ext=C
21205# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21206ac_cpp='$CXXCPP $CPPFLAGS'
21207ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21208ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21209cross_compiling=$ac_cv_prog_cxx_cross
21210
21211      cat > conftest.$ac_ext <<EOF
21212#line 21213 "configure"
21213#include "confdefs.h"
21214#include <math.h>
21215		      #ifdef HAVE_IEEEFP_H
21216		      #include <ieeefp.h>
21217		      #endif
21218		     
21219int main() {
21220 finitel(0);
21221; return 0; }
21222EOF
21223if { (eval echo configure:21224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21224  rm -rf conftest*
21225  glibcpp_cv_func_finitel_use=yes
21226else
21227  echo "configure: failed program was:" >&5
21228  cat conftest.$ac_ext >&5
21229  rm -rf conftest*
21230  glibcpp_cv_func_finitel_use=no
21231fi
21232rm -f conftest*
21233      ac_ext=c
21234# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21235ac_cpp='$CPP $CPPFLAGS'
21236ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21237ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21238cross_compiling=$ac_cv_prog_cc_cross
21239
21240    
21241fi
21242
21243  fi
21244  echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
21245
21246  if test x$glibcpp_cv_func_finitel_use = x"yes"; then
21247    for ac_func in finitel
21248do
21249echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21250echo "configure:21251: checking for $ac_func" >&5
21251if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21252  echo $ac_n "(cached) $ac_c" 1>&6
21253else
21254  cat > conftest.$ac_ext <<EOF
21255#line 21256 "configure"
21256#include "confdefs.h"
21257/* System header to define __stub macros and hopefully few prototypes,
21258    which can conflict with char $ac_func(); below.  */
21259#include <assert.h>
21260/* Override any gcc2 internal prototype to avoid an error.  */
21261/* We use char because int might match the return type of a gcc2
21262    builtin and then its argument prototype would still apply.  */
21263char $ac_func();
21264
21265int main() {
21266
21267/* The GNU C library defines this for functions which it implements
21268    to always fail with ENOSYS.  Some functions are actually named
21269    something starting with __ and the normal name is an alias.  */
21270#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21271choke me
21272#else
21273$ac_func();
21274#endif
21275
21276; return 0; }
21277EOF
21278if { (eval echo configure:21279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21279  rm -rf conftest*
21280  eval "ac_cv_func_$ac_func=yes"
21281else
21282  echo "configure: failed program was:" >&5
21283  cat conftest.$ac_ext >&5
21284  rm -rf conftest*
21285  eval "ac_cv_func_$ac_func=no"
21286fi
21287rm -f conftest*
21288fi
21289
21290if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21291  echo "$ac_t""yes" 1>&6
21292    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21293  cat >> confdefs.h <<EOF
21294#define $ac_tr_func 1
21295EOF
21296 
21297else
21298  echo "$ac_t""no" 1>&6
21299fi
21300done
21301    
21302  else
21303    
21304  echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
21305echo "configure:21306: checking for _finitel declaration" >&5
21306  if test x${glibcpp_cv_func__finitel_use+set} != xset; then
21307    if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
21308  echo $ac_n "(cached) $ac_c" 1>&6
21309else
21310  
21311      
21312      ac_ext=C
21313# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21314ac_cpp='$CXXCPP $CPPFLAGS'
21315ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21316ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21317cross_compiling=$ac_cv_prog_cxx_cross
21318
21319      cat > conftest.$ac_ext <<EOF
21320#line 21321 "configure"
21321#include "confdefs.h"
21322#include <math.h>
21323		      #ifdef HAVE_IEEEFP_H
21324		      #include <ieeefp.h>
21325		      #endif
21326		     
21327int main() {
21328 _finitel(0);
21329; return 0; }
21330EOF
21331if { (eval echo configure:21332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21332  rm -rf conftest*
21333  glibcpp_cv_func__finitel_use=yes
21334else
21335  echo "configure: failed program was:" >&5
21336  cat conftest.$ac_ext >&5
21337  rm -rf conftest*
21338  glibcpp_cv_func__finitel_use=no
21339fi
21340rm -f conftest*
21341      ac_ext=c
21342# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21343ac_cpp='$CPP $CPPFLAGS'
21344ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21345ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21346cross_compiling=$ac_cv_prog_cc_cross
21347
21348    
21349fi
21350
21351  fi
21352  echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
21353
21354    if test x$glibcpp_cv_func__finitel_use = x"yes"; then
21355      for ac_func in _finitel
21356do
21357echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21358echo "configure:21359: checking for $ac_func" >&5
21359if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21360  echo $ac_n "(cached) $ac_c" 1>&6
21361else
21362  cat > conftest.$ac_ext <<EOF
21363#line 21364 "configure"
21364#include "confdefs.h"
21365/* System header to define __stub macros and hopefully few prototypes,
21366    which can conflict with char $ac_func(); below.  */
21367#include <assert.h>
21368/* Override any gcc2 internal prototype to avoid an error.  */
21369/* We use char because int might match the return type of a gcc2
21370    builtin and then its argument prototype would still apply.  */
21371char $ac_func();
21372
21373int main() {
21374
21375/* The GNU C library defines this for functions which it implements
21376    to always fail with ENOSYS.  Some functions are actually named
21377    something starting with __ and the normal name is an alias.  */
21378#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21379choke me
21380#else
21381$ac_func();
21382#endif
21383
21384; return 0; }
21385EOF
21386if { (eval echo configure:21387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21387  rm -rf conftest*
21388  eval "ac_cv_func_$ac_func=yes"
21389else
21390  echo "configure: failed program was:" >&5
21391  cat conftest.$ac_ext >&5
21392  rm -rf conftest*
21393  eval "ac_cv_func_$ac_func=no"
21394fi
21395rm -f conftest*
21396fi
21397
21398if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21399  echo "$ac_t""yes" 1>&6
21400    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21401  cat >> confdefs.h <<EOF
21402#define $ac_tr_func 1
21403EOF
21404 
21405else
21406  echo "$ac_t""no" 1>&6
21407fi
21408done
21409    
21410    fi
21411  fi
21412
21413
21414        
21415    
21416  echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
21417echo "configure:21418: checking for _float trig functions" >&5
21418  if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
21419  echo $ac_n "(cached) $ac_c" 1>&6
21420else
21421  
21422    
21423    ac_ext=C
21424# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21425ac_cpp='$CXXCPP $CPPFLAGS'
21426ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21427ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21428cross_compiling=$ac_cv_prog_cxx_cross
21429
21430    cat > conftest.$ac_ext <<EOF
21431#line 21432 "configure"
21432#include "confdefs.h"
21433#include <math.h>
21434int main() {
21435 `for x in _acosf _asinf _atanf \
21436                                          _cosf _sinf _tanf \
21437                                          _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
21438; return 0; }
21439EOF
21440if { (eval echo configure:21441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21441  rm -rf conftest*
21442  glibcpp_cv_func__float_trig_use=yes
21443else
21444  echo "configure: failed program was:" >&5
21445  cat conftest.$ac_ext >&5
21446  rm -rf conftest*
21447  glibcpp_cv_func__float_trig_use=no
21448fi
21449rm -f conftest*
21450    ac_ext=c
21451# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21452ac_cpp='$CPP $CPPFLAGS'
21453ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21454ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21455cross_compiling=$ac_cv_prog_cc_cross
21456
21457fi
21458
21459  echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
21460  if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
21461    for ac_func in _acosf _asinf _atanf \
21462                                          _cosf _sinf _tanf \
21463                                          _coshf _sinhf _tanhf
21464do
21465echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21466echo "configure:21467: checking for $ac_func" >&5
21467if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21468  echo $ac_n "(cached) $ac_c" 1>&6
21469else
21470  cat > conftest.$ac_ext <<EOF
21471#line 21472 "configure"
21472#include "confdefs.h"
21473/* System header to define __stub macros and hopefully few prototypes,
21474    which can conflict with char $ac_func(); below.  */
21475#include <assert.h>
21476/* Override any gcc2 internal prototype to avoid an error.  */
21477/* We use char because int might match the return type of a gcc2
21478    builtin and then its argument prototype would still apply.  */
21479char $ac_func();
21480
21481int main() {
21482
21483/* The GNU C library defines this for functions which it implements
21484    to always fail with ENOSYS.  Some functions are actually named
21485    something starting with __ and the normal name is an alias.  */
21486#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21487choke me
21488#else
21489$ac_func();
21490#endif
21491
21492; return 0; }
21493EOF
21494if { (eval echo configure:21495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21495  rm -rf conftest*
21496  eval "ac_cv_func_$ac_func=yes"
21497else
21498  echo "configure: failed program was:" >&5
21499  cat conftest.$ac_ext >&5
21500  rm -rf conftest*
21501  eval "ac_cv_func_$ac_func=no"
21502fi
21503rm -f conftest*
21504fi
21505
21506if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21507  echo "$ac_t""yes" 1>&6
21508    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21509  cat >> confdefs.h <<EOF
21510#define $ac_tr_func 1
21511EOF
21512 
21513else
21514  echo "$ac_t""no" 1>&6
21515fi
21516done
21517
21518  fi
21519
21520  
21521  echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
21522echo "configure:21523: checking for _float round functions" >&5
21523  if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
21524  echo $ac_n "(cached) $ac_c" 1>&6
21525else
21526  
21527    
21528    ac_ext=C
21529# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21530ac_cpp='$CXXCPP $CPPFLAGS'
21531ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21532ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21533cross_compiling=$ac_cv_prog_cxx_cross
21534
21535    cat > conftest.$ac_ext <<EOF
21536#line 21537 "configure"
21537#include "confdefs.h"
21538#include <math.h>
21539int main() {
21540 `for x in _ceilf _floorf; do echo "$x (0);"; done` 
21541; return 0; }
21542EOF
21543if { (eval echo configure:21544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21544  rm -rf conftest*
21545  glibcpp_cv_func__float_round_use=yes
21546else
21547  echo "configure: failed program was:" >&5
21548  cat conftest.$ac_ext >&5
21549  rm -rf conftest*
21550  glibcpp_cv_func__float_round_use=no
21551fi
21552rm -f conftest*
21553    ac_ext=c
21554# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21555ac_cpp='$CPP $CPPFLAGS'
21556ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21557ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21558cross_compiling=$ac_cv_prog_cc_cross
21559
21560fi
21561
21562  echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
21563  if test x$glibcpp_cv_func__float_round_use = x"yes"; then
21564    for ac_func in _ceilf _floorf
21565do
21566echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21567echo "configure:21568: checking for $ac_func" >&5
21568if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21569  echo $ac_n "(cached) $ac_c" 1>&6
21570else
21571  cat > conftest.$ac_ext <<EOF
21572#line 21573 "configure"
21573#include "confdefs.h"
21574/* System header to define __stub macros and hopefully few prototypes,
21575    which can conflict with char $ac_func(); below.  */
21576#include <assert.h>
21577/* Override any gcc2 internal prototype to avoid an error.  */
21578/* We use char because int might match the return type of a gcc2
21579    builtin and then its argument prototype would still apply.  */
21580char $ac_func();
21581
21582int main() {
21583
21584/* The GNU C library defines this for functions which it implements
21585    to always fail with ENOSYS.  Some functions are actually named
21586    something starting with __ and the normal name is an alias.  */
21587#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21588choke me
21589#else
21590$ac_func();
21591#endif
21592
21593; return 0; }
21594EOF
21595if { (eval echo configure:21596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21596  rm -rf conftest*
21597  eval "ac_cv_func_$ac_func=yes"
21598else
21599  echo "configure: failed program was:" >&5
21600  cat conftest.$ac_ext >&5
21601  rm -rf conftest*
21602  eval "ac_cv_func_$ac_func=no"
21603fi
21604rm -f conftest*
21605fi
21606
21607if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21608  echo "$ac_t""yes" 1>&6
21609    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21610  cat >> confdefs.h <<EOF
21611#define $ac_tr_func 1
21612EOF
21613 
21614else
21615  echo "$ac_t""no" 1>&6
21616fi
21617done
21618
21619  fi
21620
21621
21622    
21623  echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
21624echo "configure:21625: checking for _long double trig functions" >&5
21625  if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
21626  echo $ac_n "(cached) $ac_c" 1>&6
21627else
21628  
21629    
21630    ac_ext=C
21631# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21632ac_cpp='$CXXCPP $CPPFLAGS'
21633ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21634ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21635cross_compiling=$ac_cv_prog_cxx_cross
21636
21637    cat > conftest.$ac_ext <<EOF
21638#line 21639 "configure"
21639#include "confdefs.h"
21640#include <math.h>
21641int main() {
21642 `for x in _acosl _asinl _atanl \
21643                                          _cosl _sinl _tanl \
21644                                          _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
21645; return 0; }
21646EOF
21647if { (eval echo configure:21648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21648  rm -rf conftest*
21649  glibcpp_cv_func__long_double_trig_use=yes
21650else
21651  echo "configure: failed program was:" >&5
21652  cat conftest.$ac_ext >&5
21653  rm -rf conftest*
21654  glibcpp_cv_func__long_double_trig_use=no
21655fi
21656rm -f conftest*
21657    ac_ext=c
21658# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21659ac_cpp='$CPP $CPPFLAGS'
21660ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21661ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21662cross_compiling=$ac_cv_prog_cc_cross
21663
21664fi
21665
21666  echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
21667  if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
21668    for ac_func in _acosl _asinl _atanl \
21669                                          _cosl _sinl _tanl \
21670                                          _coshl _sinhl _tanhl
21671do
21672echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21673echo "configure:21674: checking for $ac_func" >&5
21674if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21675  echo $ac_n "(cached) $ac_c" 1>&6
21676else
21677  cat > conftest.$ac_ext <<EOF
21678#line 21679 "configure"
21679#include "confdefs.h"
21680/* System header to define __stub macros and hopefully few prototypes,
21681    which can conflict with char $ac_func(); below.  */
21682#include <assert.h>
21683/* Override any gcc2 internal prototype to avoid an error.  */
21684/* We use char because int might match the return type of a gcc2
21685    builtin and then its argument prototype would still apply.  */
21686char $ac_func();
21687
21688int main() {
21689
21690/* The GNU C library defines this for functions which it implements
21691    to always fail with ENOSYS.  Some functions are actually named
21692    something starting with __ and the normal name is an alias.  */
21693#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21694choke me
21695#else
21696$ac_func();
21697#endif
21698
21699; return 0; }
21700EOF
21701if { (eval echo configure:21702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21702  rm -rf conftest*
21703  eval "ac_cv_func_$ac_func=yes"
21704else
21705  echo "configure: failed program was:" >&5
21706  cat conftest.$ac_ext >&5
21707  rm -rf conftest*
21708  eval "ac_cv_func_$ac_func=no"
21709fi
21710rm -f conftest*
21711fi
21712
21713if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21714  echo "$ac_t""yes" 1>&6
21715    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21716  cat >> confdefs.h <<EOF
21717#define $ac_tr_func 1
21718EOF
21719 
21720else
21721  echo "$ac_t""no" 1>&6
21722fi
21723done
21724
21725  fi
21726
21727  
21728  echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
21729echo "configure:21730: checking for _long double round functions" >&5
21730  if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
21731  echo $ac_n "(cached) $ac_c" 1>&6
21732else
21733  
21734    
21735    ac_ext=C
21736# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21737ac_cpp='$CXXCPP $CPPFLAGS'
21738ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21739ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21740cross_compiling=$ac_cv_prog_cxx_cross
21741
21742    cat > conftest.$ac_ext <<EOF
21743#line 21744 "configure"
21744#include "confdefs.h"
21745#include <math.h>
21746int main() {
21747 `for x in _ceill _floorl; do echo "$x (0);"; done` 
21748; return 0; }
21749EOF
21750if { (eval echo configure:21751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21751  rm -rf conftest*
21752  glibcpp_cv_func__long_double_round_use=yes
21753else
21754  echo "configure: failed program was:" >&5
21755  cat conftest.$ac_ext >&5
21756  rm -rf conftest*
21757  glibcpp_cv_func__long_double_round_use=no
21758fi
21759rm -f conftest*
21760    ac_ext=c
21761# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21762ac_cpp='$CPP $CPPFLAGS'
21763ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21764ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21765cross_compiling=$ac_cv_prog_cc_cross
21766
21767fi
21768
21769  echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
21770  if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
21771    for ac_func in _ceill _floorl
21772do
21773echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21774echo "configure:21775: checking for $ac_func" >&5
21775if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21776  echo $ac_n "(cached) $ac_c" 1>&6
21777else
21778  cat > conftest.$ac_ext <<EOF
21779#line 21780 "configure"
21780#include "confdefs.h"
21781/* System header to define __stub macros and hopefully few prototypes,
21782    which can conflict with char $ac_func(); below.  */
21783#include <assert.h>
21784/* Override any gcc2 internal prototype to avoid an error.  */
21785/* We use char because int might match the return type of a gcc2
21786    builtin and then its argument prototype would still apply.  */
21787char $ac_func();
21788
21789int main() {
21790
21791/* The GNU C library defines this for functions which it implements
21792    to always fail with ENOSYS.  Some functions are actually named
21793    something starting with __ and the normal name is an alias.  */
21794#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21795choke me
21796#else
21797$ac_func();
21798#endif
21799
21800; return 0; }
21801EOF
21802if { (eval echo configure:21803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21803  rm -rf conftest*
21804  eval "ac_cv_func_$ac_func=yes"
21805else
21806  echo "configure: failed program was:" >&5
21807  cat conftest.$ac_ext >&5
21808  rm -rf conftest*
21809  eval "ac_cv_func_$ac_func=no"
21810fi
21811rm -f conftest*
21812fi
21813
21814if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21815  echo "$ac_t""yes" 1>&6
21816    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21817  cat >> confdefs.h <<EOF
21818#define $ac_tr_func 1
21819EOF
21820 
21821else
21822  echo "$ac_t""no" 1>&6
21823fi
21824done
21825
21826  fi
21827
21828
21829  LIBS="$ac_save_LIBS"
21830  CXXFLAGS="$ac_save_CXXFLAGS"
21831
21832  
21833    echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21834echo "configure:21835: checking for main in -lm" >&5
21835ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21836if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21837  echo $ac_n "(cached) $ac_c" 1>&6
21838else
21839  ac_save_LIBS="$LIBS"
21840LIBS="-lm  $LIBS"
21841cat > conftest.$ac_ext <<EOF
21842#line 21843 "configure"
21843#include "confdefs.h"
21844
21845int main() {
21846main()
21847; return 0; }
21848EOF
21849if { (eval echo configure:21850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21850  rm -rf conftest*
21851  eval "ac_cv_lib_$ac_lib_var=yes"
21852else
21853  echo "configure: failed program was:" >&5
21854  cat conftest.$ac_ext >&5
21855  rm -rf conftest*
21856  eval "ac_cv_lib_$ac_lib_var=no"
21857fi
21858rm -f conftest*
21859LIBS="$ac_save_LIBS"
21860
21861fi
21862if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21863  echo "$ac_t""yes" 1>&6
21864    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21865    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21866  cat >> confdefs.h <<EOF
21867#define $ac_tr_lib 1
21868EOF
21869
21870  LIBS="-lm $LIBS"
21871
21872else
21873  echo "$ac_t""no" 1>&6
21874fi
21875
21876  for ac_func in nan copysignf
21877do
21878echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21879echo "configure:21880: checking for $ac_func" >&5
21880if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21881  echo $ac_n "(cached) $ac_c" 1>&6
21882else
21883  cat > conftest.$ac_ext <<EOF
21884#line 21885 "configure"
21885#include "confdefs.h"
21886/* System header to define __stub macros and hopefully few prototypes,
21887    which can conflict with char $ac_func(); below.  */
21888#include <assert.h>
21889/* Override any gcc2 internal prototype to avoid an error.  */
21890/* We use char because int might match the return type of a gcc2
21891    builtin and then its argument prototype would still apply.  */
21892char $ac_func();
21893
21894int main() {
21895
21896/* The GNU C library defines this for functions which it implements
21897    to always fail with ENOSYS.  Some functions are actually named
21898    something starting with __ and the normal name is an alias.  */
21899#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21900choke me
21901#else
21902$ac_func();
21903#endif
21904
21905; return 0; }
21906EOF
21907if { (eval echo configure:21908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21908  rm -rf conftest*
21909  eval "ac_cv_func_$ac_func=yes"
21910else
21911  echo "configure: failed program was:" >&5
21912  cat conftest.$ac_ext >&5
21913  rm -rf conftest*
21914  eval "ac_cv_func_$ac_func=no"
21915fi
21916rm -f conftest*
21917fi
21918
21919if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21920  echo "$ac_t""yes" 1>&6
21921    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21922  cat >> confdefs.h <<EOF
21923#define $ac_tr_func 1
21924EOF
21925 
21926else
21927  echo "$ac_t""no" 1>&6
21928LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21929fi
21930done
21931
21932
21933    for ac_func in __signbit
21934do
21935echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21936echo "configure:21937: checking for $ac_func" >&5
21937if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21938  echo $ac_n "(cached) $ac_c" 1>&6
21939else
21940  cat > conftest.$ac_ext <<EOF
21941#line 21942 "configure"
21942#include "confdefs.h"
21943/* System header to define __stub macros and hopefully few prototypes,
21944    which can conflict with char $ac_func(); below.  */
21945#include <assert.h>
21946/* Override any gcc2 internal prototype to avoid an error.  */
21947/* We use char because int might match the return type of a gcc2
21948    builtin and then its argument prototype would still apply.  */
21949char $ac_func();
21950
21951int main() {
21952
21953/* The GNU C library defines this for functions which it implements
21954    to always fail with ENOSYS.  Some functions are actually named
21955    something starting with __ and the normal name is an alias.  */
21956#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21957choke me
21958#else
21959$ac_func();
21960#endif
21961
21962; return 0; }
21963EOF
21964if { (eval echo configure:21965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21965  rm -rf conftest*
21966  eval "ac_cv_func_$ac_func=yes"
21967else
21968  echo "configure: failed program was:" >&5
21969  cat conftest.$ac_ext >&5
21970  rm -rf conftest*
21971  eval "ac_cv_func_$ac_func=no"
21972fi
21973rm -f conftest*
21974fi
21975
21976if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21977  echo "$ac_t""yes" 1>&6
21978    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21979  cat >> confdefs.h <<EOF
21980#define $ac_tr_func 1
21981EOF
21982 
21983else
21984  echo "$ac_t""no" 1>&6
21985LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
21986fi
21987done
21988
21989  for ac_func in __signbitf
21990do
21991echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21992echo "configure:21993: checking for $ac_func" >&5
21993if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21994  echo $ac_n "(cached) $ac_c" 1>&6
21995else
21996  cat > conftest.$ac_ext <<EOF
21997#line 21998 "configure"
21998#include "confdefs.h"
21999/* System header to define __stub macros and hopefully few prototypes,
22000    which can conflict with char $ac_func(); below.  */
22001#include <assert.h>
22002/* Override any gcc2 internal prototype to avoid an error.  */
22003/* We use char because int might match the return type of a gcc2
22004    builtin and then its argument prototype would still apply.  */
22005char $ac_func();
22006
22007int main() {
22008
22009/* The GNU C library defines this for functions which it implements
22010    to always fail with ENOSYS.  Some functions are actually named
22011    something starting with __ and the normal name is an alias.  */
22012#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22013choke me
22014#else
22015$ac_func();
22016#endif
22017
22018; return 0; }
22019EOF
22020if { (eval echo configure:22021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22021  rm -rf conftest*
22022  eval "ac_cv_func_$ac_func=yes"
22023else
22024  echo "configure: failed program was:" >&5
22025  cat conftest.$ac_ext >&5
22026  rm -rf conftest*
22027  eval "ac_cv_func_$ac_func=no"
22028fi
22029rm -f conftest*
22030fi
22031
22032if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22033  echo "$ac_t""yes" 1>&6
22034    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22035  cat >> confdefs.h <<EOF
22036#define $ac_tr_func 1
22037EOF
22038 
22039else
22040  echo "$ac_t""no" 1>&6
22041LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
22042fi
22043done
22044
22045
22046          if test x$ac_cv_func_copysignl = x"yes"; then
22047    for ac_func in __signbitl
22048do
22049echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22050echo "configure:22051: checking for $ac_func" >&5
22051if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22052  echo $ac_n "(cached) $ac_c" 1>&6
22053else
22054  cat > conftest.$ac_ext <<EOF
22055#line 22056 "configure"
22056#include "confdefs.h"
22057/* System header to define __stub macros and hopefully few prototypes,
22058    which can conflict with char $ac_func(); below.  */
22059#include <assert.h>
22060/* Override any gcc2 internal prototype to avoid an error.  */
22061/* We use char because int might match the return type of a gcc2
22062    builtin and then its argument prototype would still apply.  */
22063char $ac_func();
22064
22065int main() {
22066
22067/* The GNU C library defines this for functions which it implements
22068    to always fail with ENOSYS.  Some functions are actually named
22069    something starting with __ and the normal name is an alias.  */
22070#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22071choke me
22072#else
22073$ac_func();
22074#endif
22075
22076; return 0; }
22077EOF
22078if { (eval echo configure:22079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22079  rm -rf conftest*
22080  eval "ac_cv_func_$ac_func=yes"
22081else
22082  echo "configure: failed program was:" >&5
22083  cat conftest.$ac_ext >&5
22084  rm -rf conftest*
22085  eval "ac_cv_func_$ac_func=no"
22086fi
22087rm -f conftest*
22088fi
22089
22090if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22091  echo "$ac_t""yes" 1>&6
22092    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22093  cat >> confdefs.h <<EOF
22094#define $ac_tr_func 1
22095EOF
22096 
22097else
22098  echo "$ac_t""no" 1>&6
22099LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
22100fi
22101done
22102
22103  fi
22104
22105  if test -n "$LIBMATHOBJS"; then
22106    need_libmath=yes
22107  fi
22108  
22109  
22110
22111if test "$need_libmath" = yes; then
22112  GLIBCPP_BUILD_LIBMATH_TRUE=
22113  GLIBCPP_BUILD_LIBMATH_FALSE='#'
22114else
22115  GLIBCPP_BUILD_LIBMATH_TRUE='#'
22116  GLIBCPP_BUILD_LIBMATH_FALSE=
22117fi
22118
22119  
22120    enable_wchar_t=no
22121
22122      echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
22123echo "configure:22124: checking for mbstate_t" >&5
22124  cat > conftest.$ac_ext <<EOF
22125#line 22126 "configure"
22126#include "confdefs.h"
22127#include <wchar.h>
22128int main() {
22129mbstate_t teststate;
22130; return 0; }
22131EOF
22132if { (eval echo configure:22133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22133  rm -rf conftest*
22134  have_mbstate_t=yes
22135else
22136  echo "configure: failed program was:" >&5
22137  cat conftest.$ac_ext >&5
22138  rm -rf conftest*
22139  have_mbstate_t=no
22140fi
22141rm -f conftest*
22142  echo "$ac_t""$have_mbstate_t" 1>&6
22143  if test x"$have_mbstate_t" = xyes; then
22144    cat >> confdefs.h <<\EOF
22145#define HAVE_MBSTATE_T 1
22146EOF
22147
22148  fi
22149
22150    for ac_hdr in wchar.h
22151do
22152ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22153echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22154echo "configure:22155: checking for $ac_hdr" >&5
22155if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22156  echo $ac_n "(cached) $ac_c" 1>&6
22157else
22158  cat > conftest.$ac_ext <<EOF
22159#line 22160 "configure"
22160#include "confdefs.h"
22161#include <$ac_hdr>
22162EOF
22163ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22164{ (eval echo configure:22165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22165ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22166if test -z "$ac_err"; then
22167  rm -rf conftest*
22168  eval "ac_cv_header_$ac_safe=yes"
22169else
22170  echo "$ac_err" >&5
22171  echo "configure: failed program was:" >&5
22172  cat conftest.$ac_ext >&5
22173  rm -rf conftest*
22174  eval "ac_cv_header_$ac_safe=no"
22175fi
22176rm -f conftest*
22177fi
22178if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22179  echo "$ac_t""yes" 1>&6
22180    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22181  cat >> confdefs.h <<EOF
22182#define $ac_tr_hdr 1
22183EOF
22184 ac_has_wchar_h=yes
22185else
22186  echo "$ac_t""no" 1>&6
22187ac_has_wchar_h=no
22188fi
22189done
22190
22191  for ac_hdr in wctype.h
22192do
22193ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22194echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22195echo "configure:22196: checking for $ac_hdr" >&5
22196if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22197  echo $ac_n "(cached) $ac_c" 1>&6
22198else
22199  cat > conftest.$ac_ext <<EOF
22200#line 22201 "configure"
22201#include "confdefs.h"
22202#include <$ac_hdr>
22203EOF
22204ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22205{ (eval echo configure:22206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22206ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22207if test -z "$ac_err"; then
22208  rm -rf conftest*
22209  eval "ac_cv_header_$ac_safe=yes"
22210else
22211  echo "$ac_err" >&5
22212  echo "configure: failed program was:" >&5
22213  cat conftest.$ac_ext >&5
22214  rm -rf conftest*
22215  eval "ac_cv_header_$ac_safe=no"
22216fi
22217rm -f conftest*
22218fi
22219if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22220  echo "$ac_t""yes" 1>&6
22221    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22222  cat >> confdefs.h <<EOF
22223#define $ac_tr_hdr 1
22224EOF
22225 ac_has_wctype_h=yes
22226else
22227  echo "$ac_t""no" 1>&6
22228ac_has_wctype_h=no
22229fi
22230done
22231
22232  
22233    if test x"$ac_has_wchar_h" = xyes &&
22234     test x"$ac_has_wctype_h" = xyes &&
22235     test x"$enable_c_mbchar" != xno; then
22236      
22237            echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
22238echo "configure:22239: checking for WCHAR_MIN and WCHAR_MAX" >&5
22239    cat > conftest.$ac_ext <<EOF
22240#line 22241 "configure"
22241#include "confdefs.h"
22242#include <wchar.h>
22243int main() {
22244int i = WCHAR_MIN; int j = WCHAR_MAX;
22245; return 0; }
22246EOF
22247if { (eval echo configure:22248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22248  rm -rf conftest*
22249  has_wchar_minmax=yes
22250else
22251  echo "configure: failed program was:" >&5
22252  cat conftest.$ac_ext >&5
22253  rm -rf conftest*
22254  has_wchar_minmax=no
22255fi
22256rm -f conftest*
22257    echo "$ac_t""$has_wchar_minmax" 1>&6
22258    
22259            echo $ac_n "checking for WEOF""... $ac_c" 1>&6
22260echo "configure:22261: checking for WEOF" >&5
22261    cat > conftest.$ac_ext <<EOF
22262#line 22263 "configure"
22263#include "confdefs.h"
22264
22265      #include <wchar.h>
22266      #include <stddef.h>
22267int main() {
22268wint_t i = WEOF;
22269; return 0; }
22270EOF
22271if { (eval echo configure:22272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22272  rm -rf conftest*
22273  has_weof=yes
22274else
22275  echo "configure: failed program was:" >&5
22276  cat conftest.$ac_ext >&5
22277  rm -rf conftest*
22278  has_weof=no
22279fi
22280rm -f conftest*
22281    echo "$ac_t""$has_weof" 1>&6
22282  
22283        ac_wfuncs=yes
22284    for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
22285do
22286echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22287echo "configure:22288: checking for $ac_func" >&5
22288if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22289  echo $ac_n "(cached) $ac_c" 1>&6
22290else
22291  cat > conftest.$ac_ext <<EOF
22292#line 22293 "configure"
22293#include "confdefs.h"
22294/* System header to define __stub macros and hopefully few prototypes,
22295    which can conflict with char $ac_func(); below.  */
22296#include <assert.h>
22297/* Override any gcc2 internal prototype to avoid an error.  */
22298/* We use char because int might match the return type of a gcc2
22299    builtin and then its argument prototype would still apply.  */
22300char $ac_func();
22301
22302int main() {
22303
22304/* The GNU C library defines this for functions which it implements
22305    to always fail with ENOSYS.  Some functions are actually named
22306    something starting with __ and the normal name is an alias.  */
22307#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22308choke me
22309#else
22310$ac_func();
22311#endif
22312
22313; return 0; }
22314EOF
22315if { (eval echo configure:22316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22316  rm -rf conftest*
22317  eval "ac_cv_func_$ac_func=yes"
22318else
22319  echo "configure: failed program was:" >&5
22320  cat conftest.$ac_ext >&5
22321  rm -rf conftest*
22322  eval "ac_cv_func_$ac_func=no"
22323fi
22324rm -f conftest*
22325fi
22326
22327if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22328  echo "$ac_t""yes" 1>&6
22329    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22330  cat >> confdefs.h <<EOF
22331#define $ac_tr_func 1
22332EOF
22333 
22334else
22335  echo "$ac_t""no" 1>&6
22336\
22337    ac_wfuncs=no
22338fi
22339done
22340
22341  
22342        for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
22343    fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
22344    vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
22345    mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
22346    wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
22347    wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
22348do
22349echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22350echo "configure:22351: checking for $ac_func" >&5
22351if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22352  echo $ac_n "(cached) $ac_c" 1>&6
22353else
22354  cat > conftest.$ac_ext <<EOF
22355#line 22356 "configure"
22356#include "confdefs.h"
22357/* System header to define __stub macros and hopefully few prototypes,
22358    which can conflict with char $ac_func(); below.  */
22359#include <assert.h>
22360/* Override any gcc2 internal prototype to avoid an error.  */
22361/* We use char because int might match the return type of a gcc2
22362    builtin and then its argument prototype would still apply.  */
22363char $ac_func();
22364
22365int main() {
22366
22367/* The GNU C library defines this for functions which it implements
22368    to always fail with ENOSYS.  Some functions are actually named
22369    something starting with __ and the normal name is an alias.  */
22370#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22371choke me
22372#else
22373$ac_func();
22374#endif
22375
22376; return 0; }
22377EOF
22378if { (eval echo configure:22379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22379  rm -rf conftest*
22380  eval "ac_cv_func_$ac_func=yes"
22381else
22382  echo "configure: failed program was:" >&5
22383  cat conftest.$ac_ext >&5
22384  rm -rf conftest*
22385  eval "ac_cv_func_$ac_func=no"
22386fi
22387rm -f conftest*
22388fi
22389
22390if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22391  echo "$ac_t""yes" 1>&6
22392    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22393  cat >> confdefs.h <<EOF
22394#define $ac_tr_func 1
22395EOF
22396 
22397else
22398  echo "$ac_t""no" 1>&6
22399\
22400    ac_wfuncs=no
22401fi
22402done
22403
22404
22405    echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22406echo "configure:22407: checking for ISO C99 wchar_t support" >&5
22407    if test x"$has_weof" = xyes &&
22408       test x"$has_wchar_minmax" = xyes &&
22409       test x"$ac_wfuncs" = xyes; then
22410      ac_isoC99_wchar_t=yes
22411    else
22412      ac_isoC99_wchar_t=no
22413    fi
22414    echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22415  
22416            ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22417echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22418echo "configure:22419: checking for iconv.h" >&5
22419if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22420  echo $ac_n "(cached) $ac_c" 1>&6
22421else
22422  cat > conftest.$ac_ext <<EOF
22423#line 22424 "configure"
22424#include "confdefs.h"
22425#include <iconv.h>
22426EOF
22427ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22428{ (eval echo configure:22429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22429ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22430if test -z "$ac_err"; then
22431  rm -rf conftest*
22432  eval "ac_cv_header_$ac_safe=yes"
22433else
22434  echo "$ac_err" >&5
22435  echo "configure: failed program was:" >&5
22436  cat conftest.$ac_ext >&5
22437  rm -rf conftest*
22438  eval "ac_cv_header_$ac_safe=no"
22439fi
22440rm -f conftest*
22441fi
22442if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22443  echo "$ac_t""yes" 1>&6
22444  ac_has_iconv_h=yes
22445else
22446  echo "$ac_t""no" 1>&6
22447ac_has_iconv_h=no
22448fi
22449
22450    ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22451echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22452echo "configure:22453: checking for langinfo.h" >&5
22453if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22454  echo $ac_n "(cached) $ac_c" 1>&6
22455else
22456  cat > conftest.$ac_ext <<EOF
22457#line 22458 "configure"
22458#include "confdefs.h"
22459#include <langinfo.h>
22460EOF
22461ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22462{ (eval echo configure:22463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22463ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22464if test -z "$ac_err"; then
22465  rm -rf conftest*
22466  eval "ac_cv_header_$ac_safe=yes"
22467else
22468  echo "$ac_err" >&5
22469  echo "configure: failed program was:" >&5
22470  cat conftest.$ac_ext >&5
22471  rm -rf conftest*
22472  eval "ac_cv_header_$ac_safe=no"
22473fi
22474rm -f conftest*
22475fi
22476if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22477  echo "$ac_t""yes" 1>&6
22478  ac_has_langinfo_h=yes
22479else
22480  echo "$ac_t""no" 1>&6
22481ac_has_langinfo_h=no
22482fi
22483
22484
22485        echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22486echo "configure:22487: checking for iconv in -liconv" >&5
22487ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22488if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22489  echo $ac_n "(cached) $ac_c" 1>&6
22490else
22491  ac_save_LIBS="$LIBS"
22492LIBS="-liconv  $LIBS"
22493cat > conftest.$ac_ext <<EOF
22494#line 22495 "configure"
22495#include "confdefs.h"
22496/* Override any gcc2 internal prototype to avoid an error.  */
22497/* We use char because int might match the return type of a gcc2
22498    builtin and then its argument prototype would still apply.  */
22499char iconv();
22500
22501int main() {
22502iconv()
22503; return 0; }
22504EOF
22505if { (eval echo configure:22506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22506  rm -rf conftest*
22507  eval "ac_cv_lib_$ac_lib_var=yes"
22508else
22509  echo "configure: failed program was:" >&5
22510  cat conftest.$ac_ext >&5
22511  rm -rf conftest*
22512  eval "ac_cv_lib_$ac_lib_var=no"
22513fi
22514rm -f conftest*
22515LIBS="$ac_save_LIBS"
22516
22517fi
22518if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22519  echo "$ac_t""yes" 1>&6
22520  libiconv="-liconv"
22521else
22522  echo "$ac_t""no" 1>&6
22523fi
22524
22525    ac_save_LIBS="$LIBS"
22526    LIBS="$LIBS $libiconv"
22527
22528    for ac_func in iconv_open iconv_close iconv nl_langinfo
22529do
22530echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22531echo "configure:22532: checking for $ac_func" >&5
22532if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22533  echo $ac_n "(cached) $ac_c" 1>&6
22534else
22535  cat > conftest.$ac_ext <<EOF
22536#line 22537 "configure"
22537#include "confdefs.h"
22538/* System header to define __stub macros and hopefully few prototypes,
22539    which can conflict with char $ac_func(); below.  */
22540#include <assert.h>
22541/* Override any gcc2 internal prototype to avoid an error.  */
22542/* We use char because int might match the return type of a gcc2
22543    builtin and then its argument prototype would still apply.  */
22544char $ac_func();
22545
22546int main() {
22547
22548/* The GNU C library defines this for functions which it implements
22549    to always fail with ENOSYS.  Some functions are actually named
22550    something starting with __ and the normal name is an alias.  */
22551#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22552choke me
22553#else
22554$ac_func();
22555#endif
22556
22557; return 0; }
22558EOF
22559if { (eval echo configure:22560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22560  rm -rf conftest*
22561  eval "ac_cv_func_$ac_func=yes"
22562else
22563  echo "configure: failed program was:" >&5
22564  cat conftest.$ac_ext >&5
22565  rm -rf conftest*
22566  eval "ac_cv_func_$ac_func=no"
22567fi
22568rm -f conftest*
22569fi
22570
22571if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22572  echo "$ac_t""yes" 1>&6
22573    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22574  cat >> confdefs.h <<EOF
22575#define $ac_tr_func 1
22576EOF
22577 \
22578    ac_XPG2funcs=yes
22579else
22580  echo "$ac_t""no" 1>&6
22581ac_XPG2funcs=no
22582fi
22583done
22584
22585  
22586    LIBS="$ac_save_LIBS"
22587
22588    echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22589echo "configure:22590: checking for XPG2 wchar_t support" >&5
22590    if test x"$ac_has_iconv_h" = xyes &&
22591       test x"$ac_has_langinfo_h" = xyes &&
22592       test x"$ac_XPG2funcs" = xyes; then
22593      ac_XPG2_wchar_t=yes
22594    else
22595      ac_XPG2_wchar_t=no
22596    fi
22597    echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22598  
22599            if test x"$ac_isoC99_wchar_t" = xyes &&
22600       test x"$ac_XPG2_wchar_t" = xyes; then
22601       cat >> confdefs.h <<\EOF
22602#define _GLIBCPP_USE_WCHAR_T 1
22603EOF
22604
22605       enable_wchar_t=yes 
22606    fi
22607  fi
22608  echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22609echo "configure:22610: checking for enabled wchar_t specializations" >&5
22610  echo "$ac_t""$enable_wchar_t" 1>&6	
22611  
22612
22613if test "$enable_wchar_t" = yes; then
22614  GLIBCPP_TEST_WCHAR_T_TRUE=
22615  GLIBCPP_TEST_WCHAR_T_FALSE='#'
22616else
22617  GLIBCPP_TEST_WCHAR_T_TRUE='#'
22618  GLIBCPP_TEST_WCHAR_T_FALSE=
22619fi	
22620
22621  
22622  ac_test_CXXFLAGS="${CXXFLAGS+set}"
22623  ac_save_CXXFLAGS="$CXXFLAGS"
22624  CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
22625
22626  
22627  echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22628echo "configure:22629: checking for strtold declaration" >&5
22629  if test x${glibcpp_cv_func_strtold_use+set} != xset; then
22630    if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
22631  echo $ac_n "(cached) $ac_c" 1>&6
22632else
22633  
22634      
22635      ac_ext=C
22636# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22637ac_cpp='$CXXCPP $CPPFLAGS'
22638ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22639ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22640cross_compiling=$ac_cv_prog_cxx_cross
22641
22642      cat > conftest.$ac_ext <<EOF
22643#line 22644 "configure"
22644#include "confdefs.h"
22645#include <stdlib.h>
22646int main() {
22647 strtold(0, 0);
22648; return 0; }
22649EOF
22650if { (eval echo configure:22651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22651  rm -rf conftest*
22652  glibcpp_cv_func_strtold_use=yes
22653else
22654  echo "configure: failed program was:" >&5
22655  cat conftest.$ac_ext >&5
22656  rm -rf conftest*
22657  glibcpp_cv_func_strtold_use=no
22658fi
22659rm -f conftest*
22660      ac_ext=c
22661# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22662ac_cpp='$CPP $CPPFLAGS'
22663ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22664ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22665cross_compiling=$ac_cv_prog_cc_cross
22666
22667    
22668fi
22669
22670  fi
22671  echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
22672  if test x$glibcpp_cv_func_strtold_use = x"yes"; then
22673    for ac_func in strtold
22674do
22675echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22676echo "configure:22677: checking for $ac_func" >&5
22677if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22678  echo $ac_n "(cached) $ac_c" 1>&6
22679else
22680  cat > conftest.$ac_ext <<EOF
22681#line 22682 "configure"
22682#include "confdefs.h"
22683/* System header to define __stub macros and hopefully few prototypes,
22684    which can conflict with char $ac_func(); below.  */
22685#include <assert.h>
22686/* Override any gcc2 internal prototype to avoid an error.  */
22687/* We use char because int might match the return type of a gcc2
22688    builtin and then its argument prototype would still apply.  */
22689char $ac_func();
22690
22691int main() {
22692
22693/* The GNU C library defines this for functions which it implements
22694    to always fail with ENOSYS.  Some functions are actually named
22695    something starting with __ and the normal name is an alias.  */
22696#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22697choke me
22698#else
22699$ac_func();
22700#endif
22701
22702; return 0; }
22703EOF
22704if { (eval echo configure:22705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22705  rm -rf conftest*
22706  eval "ac_cv_func_$ac_func=yes"
22707else
22708  echo "configure: failed program was:" >&5
22709  cat conftest.$ac_ext >&5
22710  rm -rf conftest*
22711  eval "ac_cv_func_$ac_func=no"
22712fi
22713rm -f conftest*
22714fi
22715
22716if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22717  echo "$ac_t""yes" 1>&6
22718    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22719  cat >> confdefs.h <<EOF
22720#define $ac_tr_func 1
22721EOF
22722 
22723else
22724  echo "$ac_t""no" 1>&6
22725fi
22726done
22727    
22728  fi
22729
22730  
22731  echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22732echo "configure:22733: checking for strtof declaration" >&5
22733  if test x${glibcpp_cv_func_strtof_use+set} != xset; then
22734    if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
22735  echo $ac_n "(cached) $ac_c" 1>&6
22736else
22737  
22738      
22739      ac_ext=C
22740# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22741ac_cpp='$CXXCPP $CPPFLAGS'
22742ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22743ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22744cross_compiling=$ac_cv_prog_cxx_cross
22745
22746      cat > conftest.$ac_ext <<EOF
22747#line 22748 "configure"
22748#include "confdefs.h"
22749#include <stdlib.h>
22750int main() {
22751 strtof(0, 0);
22752; return 0; }
22753EOF
22754if { (eval echo configure:22755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22755  rm -rf conftest*
22756  glibcpp_cv_func_strtof_use=yes
22757else
22758  echo "configure: failed program was:" >&5
22759  cat conftest.$ac_ext >&5
22760  rm -rf conftest*
22761  glibcpp_cv_func_strtof_use=no
22762fi
22763rm -f conftest*
22764      ac_ext=c
22765# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22766ac_cpp='$CPP $CPPFLAGS'
22767ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22768ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22769cross_compiling=$ac_cv_prog_cc_cross
22770
22771    
22772fi
22773
22774  fi
22775  echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
22776  if test x$glibcpp_cv_func_strtof_use = x"yes"; then
22777    for ac_func in strtof
22778do
22779echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22780echo "configure:22781: checking for $ac_func" >&5
22781if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22782  echo $ac_n "(cached) $ac_c" 1>&6
22783else
22784  cat > conftest.$ac_ext <<EOF
22785#line 22786 "configure"
22786#include "confdefs.h"
22787/* System header to define __stub macros and hopefully few prototypes,
22788    which can conflict with char $ac_func(); below.  */
22789#include <assert.h>
22790/* Override any gcc2 internal prototype to avoid an error.  */
22791/* We use char because int might match the return type of a gcc2
22792    builtin and then its argument prototype would still apply.  */
22793char $ac_func();
22794
22795int main() {
22796
22797/* The GNU C library defines this for functions which it implements
22798    to always fail with ENOSYS.  Some functions are actually named
22799    something starting with __ and the normal name is an alias.  */
22800#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22801choke me
22802#else
22803$ac_func();
22804#endif
22805
22806; return 0; }
22807EOF
22808if { (eval echo configure:22809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22809  rm -rf conftest*
22810  eval "ac_cv_func_$ac_func=yes"
22811else
22812  echo "configure: failed program was:" >&5
22813  cat conftest.$ac_ext >&5
22814  rm -rf conftest*
22815  eval "ac_cv_func_$ac_func=no"
22816fi
22817rm -f conftest*
22818fi
22819
22820if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22821  echo "$ac_t""yes" 1>&6
22822    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22823  cat >> confdefs.h <<EOF
22824#define $ac_tr_func 1
22825EOF
22826 
22827else
22828  echo "$ac_t""no" 1>&6
22829fi
22830done
22831    
22832  fi
22833
22834  for ac_func in drand48
22835do
22836echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22837echo "configure:22838: checking for $ac_func" >&5
22838if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22839  echo $ac_n "(cached) $ac_c" 1>&6
22840else
22841  cat > conftest.$ac_ext <<EOF
22842#line 22843 "configure"
22843#include "confdefs.h"
22844/* System header to define __stub macros and hopefully few prototypes,
22845    which can conflict with char $ac_func(); below.  */
22846#include <assert.h>
22847/* Override any gcc2 internal prototype to avoid an error.  */
22848/* We use char because int might match the return type of a gcc2
22849    builtin and then its argument prototype would still apply.  */
22850char $ac_func();
22851
22852int main() {
22853
22854/* The GNU C library defines this for functions which it implements
22855    to always fail with ENOSYS.  Some functions are actually named
22856    something starting with __ and the normal name is an alias.  */
22857#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22858choke me
22859#else
22860$ac_func();
22861#endif
22862
22863; return 0; }
22864EOF
22865if { (eval echo configure:22866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22866  rm -rf conftest*
22867  eval "ac_cv_func_$ac_func=yes"
22868else
22869  echo "configure: failed program was:" >&5
22870  cat conftest.$ac_ext >&5
22871  rm -rf conftest*
22872  eval "ac_cv_func_$ac_func=no"
22873fi
22874rm -f conftest*
22875fi
22876
22877if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22878  echo "$ac_t""yes" 1>&6
22879    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22880  cat >> confdefs.h <<EOF
22881#define $ac_tr_func 1
22882EOF
22883 
22884else
22885  echo "$ac_t""no" 1>&6
22886fi
22887done
22888
22889
22890  CXXFLAGS="$ac_save_CXXFLAGS"
22891
22892  
22893  ac_test_CXXFLAGS="${CXXFLAGS+set}"
22894  ac_save_CXXFLAGS="$CXXFLAGS"
22895  CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22896
22897  
22898  echo $ac_n "checking for isatty declaration""... $ac_c" 1>&6
22899echo "configure:22900: checking for isatty declaration" >&5
22900  if test x${glibcpp_cv_func_isatty_use+set} != xset; then
22901    if eval "test \"`echo '$''{'glibcpp_cv_func_isatty_use'+set}'`\" = set"; then
22902  echo $ac_n "(cached) $ac_c" 1>&6
22903else
22904  
22905      
22906      ac_ext=C
22907# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22908ac_cpp='$CXXCPP $CPPFLAGS'
22909ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22910ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22911cross_compiling=$ac_cv_prog_cxx_cross
22912
22913      cat > conftest.$ac_ext <<EOF
22914#line 22915 "configure"
22915#include "confdefs.h"
22916#include <unistd.h>
22917int main() {
22918 isatty(0);
22919; return 0; }
22920EOF
22921if { (eval echo configure:22922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22922  rm -rf conftest*
22923  glibcpp_cv_func_isatty_use=yes
22924else
22925  echo "configure: failed program was:" >&5
22926  cat conftest.$ac_ext >&5
22927  rm -rf conftest*
22928  glibcpp_cv_func_isatty_use=no
22929fi
22930rm -f conftest*
22931      ac_ext=c
22932# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22933ac_cpp='$CPP $CPPFLAGS'
22934ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22935ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22936cross_compiling=$ac_cv_prog_cc_cross
22937
22938    
22939fi
22940
22941  fi
22942  echo "$ac_t""$glibcpp_cv_func_isatty_use" 1>&6
22943  if test x$glibcpp_cv_func_isatty_use = x"yes"; then
22944    for ac_func in isatty
22945do
22946echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22947echo "configure:22948: checking for $ac_func" >&5
22948if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22949  echo $ac_n "(cached) $ac_c" 1>&6
22950else
22951  cat > conftest.$ac_ext <<EOF
22952#line 22953 "configure"
22953#include "confdefs.h"
22954/* System header to define __stub macros and hopefully few prototypes,
22955    which can conflict with char $ac_func(); below.  */
22956#include <assert.h>
22957/* Override any gcc2 internal prototype to avoid an error.  */
22958/* We use char because int might match the return type of a gcc2
22959    builtin and then its argument prototype would still apply.  */
22960char $ac_func();
22961
22962int main() {
22963
22964/* The GNU C library defines this for functions which it implements
22965    to always fail with ENOSYS.  Some functions are actually named
22966    something starting with __ and the normal name is an alias.  */
22967#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22968choke me
22969#else
22970$ac_func();
22971#endif
22972
22973; return 0; }
22974EOF
22975if { (eval echo configure:22976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22976  rm -rf conftest*
22977  eval "ac_cv_func_$ac_func=yes"
22978else
22979  echo "configure: failed program was:" >&5
22980  cat conftest.$ac_ext >&5
22981  rm -rf conftest*
22982  eval "ac_cv_func_$ac_func=no"
22983fi
22984rm -f conftest*
22985fi
22986
22987if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22988  echo "$ac_t""yes" 1>&6
22989    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22990  cat >> confdefs.h <<EOF
22991#define $ac_tr_func 1
22992EOF
22993 
22994else
22995  echo "$ac_t""no" 1>&6
22996fi
22997done
22998    
22999  fi
23000
23001  
23002  CXXFLAGS="$ac_save_CXXFLAGS"
23003
23004
23005  # For showmanyc_helper().
23006  for ac_hdr in sys/ioctl.h sys/filio.h
23007do
23008ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23009echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23010echo "configure:23011: checking for $ac_hdr" >&5
23011if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23012  echo $ac_n "(cached) $ac_c" 1>&6
23013else
23014  cat > conftest.$ac_ext <<EOF
23015#line 23016 "configure"
23016#include "confdefs.h"
23017#include <$ac_hdr>
23018EOF
23019ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23020{ (eval echo configure:23021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23021ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23022if test -z "$ac_err"; then
23023  rm -rf conftest*
23024  eval "ac_cv_header_$ac_safe=yes"
23025else
23026  echo "$ac_err" >&5
23027  echo "configure: failed program was:" >&5
23028  cat conftest.$ac_ext >&5
23029  rm -rf conftest*
23030  eval "ac_cv_header_$ac_safe=no"
23031fi
23032rm -f conftest*
23033fi
23034if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23035  echo "$ac_t""yes" 1>&6
23036    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23037  cat >> confdefs.h <<EOF
23038#define $ac_tr_hdr 1
23039EOF
23040 
23041else
23042  echo "$ac_t""no" 1>&6
23043fi
23044done
23045
23046  
23047  if eval "test \"`echo '$''{'glibcpp_cv_POLL'+set}'`\" = set"; then
23048  echo $ac_n "(cached) $ac_c" 1>&6
23049else
23050  
23051    cat > conftest.$ac_ext <<EOF
23052#line 23053 "configure"
23053#include "confdefs.h"
23054#include <poll.h>
23055int main() {
23056struct pollfd pfd[1]; pfd[0].events = POLLIN; poll(pfd, 1, 0); 
23057; return 0; }
23058EOF
23059if { (eval echo configure:23060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23060  rm -rf conftest*
23061  glibcpp_cv_POLL=yes
23062else
23063  echo "configure: failed program was:" >&5
23064  cat conftest.$ac_ext >&5
23065  rm -rf conftest*
23066  glibcpp_cv_POLL=no
23067fi
23068rm -f conftest*
23069  
23070fi
23071
23072  if test x$glibcpp_cv_POLL = xyes; then
23073    cat >> confdefs.h <<\EOF
23074#define HAVE_POLL 1
23075EOF
23076
23077  fi
23078
23079  
23080  if eval "test \"`echo '$''{'glibcpp_cv_S_ISREG'+set}'`\" = set"; then
23081  echo $ac_n "(cached) $ac_c" 1>&6
23082else
23083  
23084    cat > conftest.$ac_ext <<EOF
23085#line 23086 "configure"
23086#include "confdefs.h"
23087#include <sys/stat.h>
23088int main() {
23089struct stat buffer; fstat(0, &buffer); S_ISREG(buffer.st_mode); 
23090; return 0; }
23091EOF
23092if { (eval echo configure:23093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23093  rm -rf conftest*
23094  glibcpp_cv_S_ISREG=yes
23095else
23096  echo "configure: failed program was:" >&5
23097  cat conftest.$ac_ext >&5
23098  rm -rf conftest*
23099  glibcpp_cv_S_ISREG=no
23100fi
23101rm -f conftest*
23102  
23103fi
23104
23105  if eval "test \"`echo '$''{'glibcpp_cv_S_IFREG'+set}'`\" = set"; then
23106  echo $ac_n "(cached) $ac_c" 1>&6
23107else
23108  
23109    cat > conftest.$ac_ext <<EOF
23110#line 23111 "configure"
23111#include "confdefs.h"
23112#include <sys/stat.h>
23113int main() {
23114struct stat buffer; fstat(0, &buffer); S_IFREG & buffer.st_mode; 
23115; return 0; }
23116EOF
23117if { (eval echo configure:23118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23118  rm -rf conftest*
23119  glibcpp_cv_S_IFREG=yes
23120else
23121  echo "configure: failed program was:" >&5
23122  cat conftest.$ac_ext >&5
23123  rm -rf conftest*
23124  glibcpp_cv_S_IFREG=no
23125fi
23126rm -f conftest*
23127  
23128fi
23129
23130  if test x$glibcpp_cv_S_ISREG = xyes; then
23131    cat >> confdefs.h <<\EOF
23132#define HAVE_S_ISREG 1
23133EOF
23134
23135  elif test x$glibcpp_cv_S_IFREG = xyes; then
23136    cat >> confdefs.h <<\EOF
23137#define HAVE_S_IFREG 1
23138EOF
23139
23140  fi
23141
23142
23143  
23144  ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
23145echo $ac_n "checking for locale.h""... $ac_c" 1>&6
23146echo "configure:23147: checking for locale.h" >&5
23147if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23148  echo $ac_n "(cached) $ac_c" 1>&6
23149else
23150  cat > conftest.$ac_ext <<EOF
23151#line 23152 "configure"
23152#include "confdefs.h"
23153#include <locale.h>
23154EOF
23155ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23156{ (eval echo configure:23157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23157ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23158if test -z "$ac_err"; then
23159  rm -rf conftest*
23160  eval "ac_cv_header_$ac_safe=yes"
23161else
23162  echo "$ac_err" >&5
23163  echo "configure: failed program was:" >&5
23164  cat conftest.$ac_ext >&5
23165  rm -rf conftest*
23166  eval "ac_cv_header_$ac_safe=no"
23167fi
23168rm -f conftest*
23169fi
23170if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23171  echo "$ac_t""yes" 1>&6
23172  
23173    echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
23174echo "configure:23175: checking for LC_MESSAGES" >&5
23175if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
23176  echo $ac_n "(cached) $ac_c" 1>&6
23177else
23178  cat > conftest.$ac_ext <<EOF
23179#line 23180 "configure"
23180#include "confdefs.h"
23181#include <locale.h>
23182int main() {
23183return LC_MESSAGES
23184; return 0; }
23185EOF
23186if { (eval echo configure:23187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23187  rm -rf conftest*
23188  ac_cv_val_LC_MESSAGES=yes
23189else
23190  echo "configure: failed program was:" >&5
23191  cat conftest.$ac_ext >&5
23192  rm -rf conftest*
23193  ac_cv_val_LC_MESSAGES=no
23194fi
23195rm -f conftest*
23196fi
23197
23198echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
23199    if test $ac_cv_val_LC_MESSAGES = yes; then
23200      cat >> confdefs.h <<\EOF
23201#define HAVE_LC_MESSAGES 1
23202EOF
23203
23204    fi
23205  
23206else
23207  echo "$ac_t""no" 1>&6
23208fi
23209
23210
23211
23212  cat > conftest.$ac_ext <<EOF
23213#line 23214 "configure"
23214#include "confdefs.h"
23215
23216  #include <setjmp.h>
23217  
23218int main() {
23219sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
23220; return 0; }
23221EOF
23222if { (eval echo configure:23223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23223  rm -rf conftest*
23224  cat >> confdefs.h <<\EOF
23225#define HAVE_SIGSETJMP 1
23226EOF
23227
23228  
23229else
23230  echo "configure: failed program was:" >&5
23231  cat conftest.$ac_ext >&5
23232fi
23233rm -f conftest*
23234
23235  for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
23236do
23237ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23238echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23239echo "configure:23240: checking for $ac_hdr" >&5
23240if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23241  echo $ac_n "(cached) $ac_c" 1>&6
23242else
23243  cat > conftest.$ac_ext <<EOF
23244#line 23245 "configure"
23245#include "confdefs.h"
23246#include <$ac_hdr>
23247EOF
23248ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23249{ (eval echo configure:23250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23250ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23251if test -z "$ac_err"; then
23252  rm -rf conftest*
23253  eval "ac_cv_header_$ac_safe=yes"
23254else
23255  echo "$ac_err" >&5
23256  echo "configure: failed program was:" >&5
23257  cat conftest.$ac_ext >&5
23258  rm -rf conftest*
23259  eval "ac_cv_header_$ac_safe=no"
23260fi
23261rm -f conftest*
23262fi
23263if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23264  echo "$ac_t""yes" 1>&6
23265    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23266  cat >> confdefs.h <<EOF
23267#define $ac_tr_hdr 1
23268EOF
23269 
23270else
23271  echo "$ac_t""no" 1>&6
23272fi
23273done
23274
23275for ac_func in getpagesize
23276do
23277echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23278echo "configure:23279: checking for $ac_func" >&5
23279if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23280  echo $ac_n "(cached) $ac_c" 1>&6
23281else
23282  cat > conftest.$ac_ext <<EOF
23283#line 23284 "configure"
23284#include "confdefs.h"
23285/* System header to define __stub macros and hopefully few prototypes,
23286    which can conflict with char $ac_func(); below.  */
23287#include <assert.h>
23288/* Override any gcc2 internal prototype to avoid an error.  */
23289/* We use char because int might match the return type of a gcc2
23290    builtin and then its argument prototype would still apply.  */
23291char $ac_func();
23292
23293int main() {
23294
23295/* The GNU C library defines this for functions which it implements
23296    to always fail with ENOSYS.  Some functions are actually named
23297    something starting with __ and the normal name is an alias.  */
23298#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23299choke me
23300#else
23301$ac_func();
23302#endif
23303
23304; return 0; }
23305EOF
23306if { (eval echo configure:23307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23307  rm -rf conftest*
23308  eval "ac_cv_func_$ac_func=yes"
23309else
23310  echo "configure: failed program was:" >&5
23311  cat conftest.$ac_ext >&5
23312  rm -rf conftest*
23313  eval "ac_cv_func_$ac_func=no"
23314fi
23315rm -f conftest*
23316fi
23317
23318if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23319  echo "$ac_t""yes" 1>&6
23320    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23321  cat >> confdefs.h <<EOF
23322#define $ac_tr_func 1
23323EOF
23324 
23325else
23326  echo "$ac_t""no" 1>&6
23327fi
23328done
23329
23330echo $ac_n "checking for working mmap""... $ac_c" 1>&6
23331echo "configure:23332: checking for working mmap" >&5
23332if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
23333  echo $ac_n "(cached) $ac_c" 1>&6
23334else
23335  if test "$cross_compiling" = yes; then
23336  ac_cv_func_mmap_fixed_mapped=no
23337else
23338  cat > conftest.$ac_ext <<EOF
23339#line 23340 "configure"
23340#include "confdefs.h"
23341
23342/* Thanks to Mike Haertel and Jim Avera for this test.
23343   Here is a matrix of mmap possibilities:
23344	mmap private not fixed
23345	mmap private fixed at somewhere currently unmapped
23346	mmap private fixed at somewhere already mapped
23347	mmap shared not fixed
23348	mmap shared fixed at somewhere currently unmapped
23349	mmap shared fixed at somewhere already mapped
23350   For private mappings, we should verify that changes cannot be read()
23351   back from the file, nor mmap's back from the file at a different
23352   address.  (There have been systems where private was not correctly
23353   implemented like the infamous i386 svr4.0, and systems where the
23354   VM page cache was not coherent with the filesystem buffer cache
23355   like early versions of FreeBSD and possibly contemporary NetBSD.)
23356   For shared mappings, we should conversely verify that changes get
23357   propogated back to all the places they're supposed to be.
23358
23359   Grep wants private fixed already mapped.
23360   The main things grep needs to know about mmap are:
23361   * does it exist and is it safe to write into the mmap'd area
23362   * how to use it (BSD variants)  */
23363#include <sys/types.h>
23364#include <fcntl.h>
23365#include <sys/mman.h>
23366
23367#if HAVE_SYS_TYPES_H
23368# include <sys/types.h>
23369#endif
23370
23371#if HAVE_STDLIB_H
23372# include <stdlib.h>
23373#endif
23374
23375#if HAVE_SYS_STAT_H
23376# include <sys/stat.h>
23377#endif
23378
23379#if HAVE_UNISTD_H
23380# include <unistd.h>
23381#endif
23382
23383/* This mess was copied from the GNU getpagesize.h.  */
23384#ifndef HAVE_GETPAGESIZE
23385
23386/* Assume that all systems that can run configure have sys/param.h.  */
23387# ifndef HAVE_SYS_PARAM_H
23388#  define HAVE_SYS_PARAM_H 1
23389# endif
23390
23391# ifdef _SC_PAGESIZE
23392#  define getpagesize() sysconf(_SC_PAGESIZE)
23393# else /* no _SC_PAGESIZE */
23394#  ifdef HAVE_SYS_PARAM_H
23395#   include <sys/param.h>
23396#   ifdef EXEC_PAGESIZE
23397#    define getpagesize() EXEC_PAGESIZE
23398#   else /* no EXEC_PAGESIZE */
23399#    ifdef NBPG
23400#     define getpagesize() NBPG * CLSIZE
23401#     ifndef CLSIZE
23402#      define CLSIZE 1
23403#     endif /* no CLSIZE */
23404#    else /* no NBPG */
23405#     ifdef NBPC
23406#      define getpagesize() NBPC
23407#     else /* no NBPC */
23408#      ifdef PAGESIZE
23409#       define getpagesize() PAGESIZE
23410#      endif /* PAGESIZE */
23411#     endif /* no NBPC */
23412#    endif /* no NBPG */
23413#   endif /* no EXEC_PAGESIZE */
23414#  else /* no HAVE_SYS_PARAM_H */
23415#   define getpagesize() 8192	/* punt totally */
23416#  endif /* no HAVE_SYS_PARAM_H */
23417# endif /* no _SC_PAGESIZE */
23418
23419#endif /* no HAVE_GETPAGESIZE */
23420
23421#ifdef __cplusplus
23422extern "C" { void *malloc(unsigned); }
23423#else
23424char *malloc();
23425#endif
23426
23427int
23428main()
23429{
23430	char *data, *data2, *data3;
23431	int i, pagesize;
23432	int fd;
23433
23434	pagesize = getpagesize();
23435
23436	/*
23437	 * First, make a file with some known garbage in it.
23438	 */
23439	data = malloc(pagesize);
23440	if (!data)
23441		exit(1);
23442	for (i = 0; i < pagesize; ++i)
23443		*(data + i) = rand();
23444	umask(0);
23445	fd = creat("conftestmmap", 0600);
23446	if (fd < 0)
23447		exit(1);
23448	if (write(fd, data, pagesize) != pagesize)
23449		exit(1);
23450	close(fd);
23451
23452	/*
23453	 * Next, try to mmap the file at a fixed address which
23454	 * already has something else allocated at it.  If we can,
23455	 * also make sure that we see the same garbage.
23456	 */
23457	fd = open("conftestmmap", O_RDWR);
23458	if (fd < 0)
23459		exit(1);
23460	data2 = malloc(2 * pagesize);
23461	if (!data2)
23462		exit(1);
23463	data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
23464	if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
23465	    MAP_PRIVATE | MAP_FIXED, fd, 0L))
23466		exit(1);
23467	for (i = 0; i < pagesize; ++i)
23468		if (*(data + i) != *(data2 + i))
23469			exit(1);
23470
23471	/*
23472	 * Finally, make sure that changes to the mapped area
23473	 * do not percolate back to the file as seen by read().
23474	 * (This is a bug on some variants of i386 svr4.0.)
23475	 */
23476	for (i = 0; i < pagesize; ++i)
23477		*(data2 + i) = *(data2 + i) + 1;
23478	data3 = malloc(pagesize);
23479	if (!data3)
23480		exit(1);
23481	if (read(fd, data3, pagesize) != pagesize)
23482		exit(1);
23483	for (i = 0; i < pagesize; ++i)
23484		if (*(data + i) != *(data3 + i))
23485			exit(1);
23486	close(fd);
23487	unlink("conftestmmap");
23488	exit(0);
23489}
23490
23491EOF
23492if { (eval echo configure:23493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23493then
23494  ac_cv_func_mmap_fixed_mapped=yes
23495else
23496  echo "configure: failed program was:" >&5
23497  cat conftest.$ac_ext >&5
23498  rm -fr conftest*
23499  ac_cv_func_mmap_fixed_mapped=no
23500fi
23501rm -fr conftest*
23502fi
23503
23504fi
23505
23506echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
23507if test $ac_cv_func_mmap_fixed_mapped = yes; then
23508  cat >> confdefs.h <<\EOF
23509#define HAVE_MMAP 1
23510EOF
23511
23512fi
23513
23514
23515fi
23516
23517# This depends on GLIBCPP_CHECK_LINKER_FEATURES, but without it assumes no.
23518# Check whether --enable-symvers or --disable-symvers was given.
23519if test "${enable_symvers+set}" = set; then
23520  enableval="$enable_symvers"
23521  case "$enableval" in
23522 yes) enable_symvers=yes ;;
23523 no)  enable_symvers=no ;;
23524 # other names here, just as sanity checks
23525 #gnu|sun|etcetera) enable_symvers=$enableval ;;
23526 gnu) enable_symvers=$enableval ;;
23527 *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23528 esac
23529else
23530  enable_symvers=yes
23531fi
23532
23533# If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
23534# don't know enough about $LD to do tricks... 
23535if test x$enable_shared = xno || 
23536	test "x$LD" = x || 
23537	test x$glibcpp_gnu_ld_version = x; then
23538  enable_symvers=no
23539fi
23540
23541# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23542if test $enable_symvers != no; then
23543  echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23544echo "configure:23545: checking for shared libgcc" >&5
23545  ac_save_CFLAGS="$CFLAGS"
23546  CFLAGS=' -lgcc_s'
23547  cat > conftest.$ac_ext <<EOF
23548#line 23549 "configure"
23549#include "confdefs.h"
23550
23551int main() {
23552return 0
23553; return 0; }
23554EOF
23555if { (eval echo configure:23556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23556  rm -rf conftest*
23557  glibcpp_shared_libgcc=yes
23558else
23559  echo "configure: failed program was:" >&5
23560  cat conftest.$ac_ext >&5
23561  rm -rf conftest*
23562  glibcpp_shared_libgcc=no
23563fi
23564rm -f conftest*
23565  CFLAGS="$ac_save_CFLAGS"
23566  echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
23567fi
23568
23569# For GNU ld, we need at least this version.  It's 2.12 in the same format
23570# as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
23571glibcpp_min_gnu_ld_version=21200
23572
23573# Check to see if unspecified "yes" value can win, given results
23574# above.  
23575if test $enable_symvers = yes ; then
23576  if test $with_gnu_ld = yes &&
23577    test $glibcpp_shared_libgcc = yes ;
23578  then
23579    if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
23580        enable_symvers=gnu
23581    else
23582      ac_test_CFLAGS="${CFLAGS+set}"
23583      ac_save_CFLAGS="$CFLAGS"
23584      CFLAGS='-shared -Wl,--version-script,conftest.map'
23585      enable_symvers=no
23586      
23587      echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
23588      
23589      cat > conftest.$ac_ext <<EOF
23590#line 23591 "configure"
23591#include "confdefs.h"
23592int foo;
23593int main() {
23594
23595; return 0; }
23596EOF
23597if { (eval echo configure:23598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23598  rm -rf conftest*
23599  enable_symvers=gnu
23600else
23601  echo "configure: failed program was:" >&5
23602  cat conftest.$ac_ext >&5
23603fi
23604rm -f conftest*
23605      if test "$ac_test_CFLAGS" = set; then
23606	CFLAGS="$ac_save_CFLAGS"
23607      else
23608	# this is the suspicious part
23609	CFLAGS=''
23610      fi
23611      rm -f conftest.map
23612    fi
23613  else
23614    # just fail for now
23615    enable_symvers=no
23616  fi
23617fi
23618
23619case $enable_symvers in
23620  no)
23621      SYMVER_MAP=config/linker-map.dummy
23622      ;;
23623  gnu)
23624      SYMVER_MAP=config/linker-map.gnu
23625      cat >> confdefs.h <<\EOF
23626#define _GLIBCPP_SYMVER 1
23627EOF
23628	
23629      ;;
23630esac
23631
23632
23633
23634
23635if test $enable_symvers != no; then
23636  GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
23637  GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
23638else
23639  GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
23640  GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
23641fi
23642echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23643echo "configure:23644: checking versioning on shared library symbols" >&5
23644echo "$ac_t""$enable_symvers" 1>&6
23645
23646
23647# This depends on GLIBCPP_ENABLE_SYMVERS and GLIBCPP_IS_CROSS_COMPILING.
23648
23649  if test  x"$GLIBCPP_IS_CROSS_COMPILING" = xfalse; then
23650    # Do checks for memory limit functions.
23651    
23652  setrlimit_have_headers=yes
23653  for ac_hdr in unistd.h sys/time.h sys/resource.h
23654do
23655ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23656echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23657echo "configure:23658: checking for $ac_hdr" >&5
23658if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23659  echo $ac_n "(cached) $ac_c" 1>&6
23660else
23661  cat > conftest.$ac_ext <<EOF
23662#line 23663 "configure"
23663#include "confdefs.h"
23664#include <$ac_hdr>
23665EOF
23666ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23667{ (eval echo configure:23668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23668ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23669if test -z "$ac_err"; then
23670  rm -rf conftest*
23671  eval "ac_cv_header_$ac_safe=yes"
23672else
23673  echo "$ac_err" >&5
23674  echo "configure: failed program was:" >&5
23675  cat conftest.$ac_ext >&5
23676  rm -rf conftest*
23677  eval "ac_cv_header_$ac_safe=no"
23678fi
23679rm -f conftest*
23680fi
23681if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23682  echo "$ac_t""yes" 1>&6
23683    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23684  cat >> confdefs.h <<EOF
23685#define $ac_tr_hdr 1
23686EOF
23687 
23688else
23689  echo "$ac_t""no" 1>&6
23690setrlimit_have_headers=no
23691fi
23692done
23693
23694  # If don't have the headers, then we can't run the tests now, and we
23695  # won't be seeing any of these during testsuite compilation.
23696  if test $setrlimit_have_headers = yes; then
23697    # Can't do these in a loop, else the resulting syntax is wrong.
23698    
23699  cat > conftest.$ac_ext <<EOF
23700#line 23701 "configure"
23701#include "confdefs.h"
23702#include <unistd.h>
23703                  #include <sys/time.h>
23704                  #include <sys/resource.h>
23705                 
23706int main() {
23707 int f = RLIMIT_DATA ; 
23708; return 0; }
23709EOF
23710if { (eval echo configure:23711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23711  rm -rf conftest*
23712  glibcpp_mresult=1
23713else
23714  echo "configure: failed program was:" >&5
23715  cat conftest.$ac_ext >&5
23716  rm -rf conftest*
23717  glibcpp_mresult=0
23718fi
23719rm -f conftest*
23720  cat >> confdefs.h <<EOF
23721#define HAVE_MEMLIMIT_DATA $glibcpp_mresult
23722EOF
23723
23724
23725    
23726  cat > conftest.$ac_ext <<EOF
23727#line 23728 "configure"
23728#include "confdefs.h"
23729#include <unistd.h>
23730                  #include <sys/time.h>
23731                  #include <sys/resource.h>
23732                 
23733int main() {
23734 int f = RLIMIT_RSS ; 
23735; return 0; }
23736EOF
23737if { (eval echo configure:23738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23738  rm -rf conftest*
23739  glibcpp_mresult=1
23740else
23741  echo "configure: failed program was:" >&5
23742  cat conftest.$ac_ext >&5
23743  rm -rf conftest*
23744  glibcpp_mresult=0
23745fi
23746rm -f conftest*
23747  cat >> confdefs.h <<EOF
23748#define HAVE_MEMLIMIT_RSS $glibcpp_mresult
23749EOF
23750
23751
23752    
23753  cat > conftest.$ac_ext <<EOF
23754#line 23755 "configure"
23755#include "confdefs.h"
23756#include <unistd.h>
23757                  #include <sys/time.h>
23758                  #include <sys/resource.h>
23759                 
23760int main() {
23761 int f = RLIMIT_VMEM ; 
23762; return 0; }
23763EOF
23764if { (eval echo configure:23765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23765  rm -rf conftest*
23766  glibcpp_mresult=1
23767else
23768  echo "configure: failed program was:" >&5
23769  cat conftest.$ac_ext >&5
23770  rm -rf conftest*
23771  glibcpp_mresult=0
23772fi
23773rm -f conftest*
23774  cat >> confdefs.h <<EOF
23775#define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
23776EOF
23777
23778
23779    
23780  cat > conftest.$ac_ext <<EOF
23781#line 23782 "configure"
23782#include "confdefs.h"
23783#include <unistd.h>
23784                  #include <sys/time.h>
23785                  #include <sys/resource.h>
23786                 
23787int main() {
23788 int f = RLIMIT_AS ; 
23789; return 0; }
23790EOF
23791if { (eval echo configure:23792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23792  rm -rf conftest*
23793  glibcpp_mresult=1
23794else
23795  echo "configure: failed program was:" >&5
23796  cat conftest.$ac_ext >&5
23797  rm -rf conftest*
23798  glibcpp_mresult=0
23799fi
23800rm -f conftest*
23801  cat >> confdefs.h <<EOF
23802#define HAVE_MEMLIMIT_AS $glibcpp_mresult
23803EOF
23804
23805
23806
23807    # Check for rlimit, setrlimit.
23808    if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23809  echo $ac_n "(cached) $ac_c" 1>&6
23810else
23811  
23812      cat > conftest.$ac_ext <<EOF
23813#line 23814 "configure"
23814#include "confdefs.h"
23815#include <unistd.h>
23816                  #include <sys/time.h>
23817                  #include <sys/resource.h>
23818		     
23819int main() {
23820 struct rlimit r; setrlimit(0, &r);
23821; return 0; }
23822EOF
23823if { (eval echo configure:23824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23824  rm -rf conftest*
23825  ac_setrlimit=yes
23826else
23827  echo "configure: failed program was:" >&5
23828  cat conftest.$ac_ext >&5
23829  rm -rf conftest*
23830  ac_setrlimit=no
23831fi
23832rm -f conftest*
23833    
23834fi
23835
23836  fi
23837
23838  echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23839echo "configure:23840: checking for testsuite memory limit support" >&5
23840  if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23841    ac_mem_limits=yes
23842    cat >> confdefs.h <<\EOF
23843#define _GLIBCPP_MEM_LIMITS 1
23844EOF
23845
23846  else
23847    ac_mem_limits=no
23848  fi
23849  echo "$ac_t""$ac_mem_limits" 1>&6
23850
23851
23852    # Look for setenv, so that extended locale tests can be performed.
23853    
23854  echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23855echo "configure:23856: checking for setenv declaration" >&5
23856  if test x${glibcpp_cv_func_setenv_use+set} != xset; then
23857    if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
23858  echo $ac_n "(cached) $ac_c" 1>&6
23859else
23860  
23861      
23862      ac_ext=C
23863# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23864ac_cpp='$CXXCPP $CPPFLAGS'
23865ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23866ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23867cross_compiling=$ac_cv_prog_cxx_cross
23868
23869      cat > conftest.$ac_ext <<EOF
23870#line 23871 "configure"
23871#include "confdefs.h"
23872#include <stdlib.h>
23873int main() {
23874 setenv(0, 0, 0);
23875; return 0; }
23876EOF
23877if { (eval echo configure:23878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23878  rm -rf conftest*
23879  glibcpp_cv_func_setenv_use=yes
23880else
23881  echo "configure: failed program was:" >&5
23882  cat conftest.$ac_ext >&5
23883  rm -rf conftest*
23884  glibcpp_cv_func_setenv_use=no
23885fi
23886rm -f conftest*
23887      ac_ext=c
23888# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23889ac_cpp='$CPP $CPPFLAGS'
23890ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23891ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23892cross_compiling=$ac_cv_prog_cc_cross
23893
23894    
23895fi
23896
23897  fi
23898  echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
23899  if test x$glibcpp_cv_func_setenv_use = x"yes"; then
23900    for ac_func in setenv
23901do
23902echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23903echo "configure:23904: checking for $ac_func" >&5
23904if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23905  echo $ac_n "(cached) $ac_c" 1>&6
23906else
23907  cat > conftest.$ac_ext <<EOF
23908#line 23909 "configure"
23909#include "confdefs.h"
23910/* System header to define __stub macros and hopefully few prototypes,
23911    which can conflict with char $ac_func(); below.  */
23912#include <assert.h>
23913/* Override any gcc2 internal prototype to avoid an error.  */
23914/* We use char because int might match the return type of a gcc2
23915    builtin and then its argument prototype would still apply.  */
23916char $ac_func();
23917
23918int main() {
23919
23920/* The GNU C library defines this for functions which it implements
23921    to always fail with ENOSYS.  Some functions are actually named
23922    something starting with __ and the normal name is an alias.  */
23923#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23924choke me
23925#else
23926$ac_func();
23927#endif
23928
23929; return 0; }
23930EOF
23931if { (eval echo configure:23932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23932  rm -rf conftest*
23933  eval "ac_cv_func_$ac_func=yes"
23934else
23935  echo "configure: failed program was:" >&5
23936  cat conftest.$ac_ext >&5
23937  rm -rf conftest*
23938  eval "ac_cv_func_$ac_func=no"
23939fi
23940rm -f conftest*
23941fi
23942
23943if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23944  echo "$ac_t""yes" 1>&6
23945    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23946  cat >> confdefs.h <<EOF
23947#define $ac_tr_func 1
23948EOF
23949 
23950else
23951  echo "$ac_t""no" 1>&6
23952fi
23953done
23954    
23955  fi
23956
23957  fi
23958
23959  # Export file names for ABI checking.
23960  baseline_dir="${glibcpp_srcdir}/config/abi/${abi_baseline_pair}\$(MULTISUBDIR)"
23961  
23962
23963  # Determine if checking the ABI is desirable.
23964  # Only build this as native, since automake does not understand
23965  # CXX_FOR_BUILD.
23966  if test x"$GLIBCPP_IS_CROSS_COMPILING" = xtrue || test x$enable_symvers = xno; then
23967    enable_abi_check=no
23968  else
23969    case "$host" in
23970      *-*-cygwin*) 
23971        enable_abi_check=no ;;
23972      *) 
23973        enable_abi_check=yes ;;
23974    esac
23975  fi
23976  
23977
23978if test "$enable_abi_check" = yes; then
23979  GLIBCPP_TEST_ABI_TRUE=
23980  GLIBCPP_TEST_ABI_FALSE='#'
23981else
23982  GLIBCPP_TEST_ABI_TRUE='#'
23983  GLIBCPP_TEST_ABI_FALSE=
23984fi
23985
23986
23987# Propagate the target-specific source directories through the build chain.
23988# (Nothing currently uses cpu_include_dir directly; only ATOMICITYH 
23989# uses it, and it only gets used in this file.)
23990OS_INC_SRCDIR=config/${os_include_dir}
23991ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23992
23993
23994
23995# Set up cross-compile flags
23996  
23997
23998if test "$CANADIAN" = yes; then
23999  CANADIAN_TRUE=
24000  CANADIAN_FALSE='#'
24001else
24002  CANADIAN_TRUE='#'
24003  CANADIAN_FALSE=
24004fi
24005 
24006cat > confcache <<\EOF
24007# This file is a shell script that caches the results of configure
24008# tests run on this system so they can be shared between configure
24009# scripts and configure runs.  It is not useful on other systems.
24010# If it contains results you don't want to keep, you may remove or edit it.
24011#
24012# By default, configure uses ./config.cache as the cache file,
24013# creating it if it does not exist already.  You can give configure
24014# the --cache-file=FILE option to use a different cache file; that is
24015# what configure does when it calls configure scripts in
24016# subdirectories, so they share the cache.
24017# Giving --cache-file=/dev/null disables caching, for debugging configure.
24018# config.status only pays attention to the cache file if you give it the
24019# --recheck option to rerun configure.
24020#
24021EOF
24022# The following way of writing the cache mishandles newlines in values,
24023# but we know of no workaround that is simple, portable, and efficient.
24024# So, don't put newlines in cache variables' values.
24025# Ultrix sh set writes to stderr and can't be redirected directly,
24026# and sets the high bit in the cache file unless we assign to the vars.
24027(set) 2>&1 |
24028  case `(ac_space=' '; set | grep ac_space) 2>&1` in
24029  *ac_space=\ *)
24030    # `set' does not quote correctly, so add quotes (double-quote substitution
24031    # turns \\\\ into \\, and sed turns \\ into \).
24032    sed -n \
24033      -e "s/'/'\\\\''/g" \
24034      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
24035    ;;
24036  *)
24037    # `set' quotes correctly as required by POSIX, so do not add quotes.
24038    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
24039    ;;
24040  esac >> confcache
24041if cmp -s $cache_file confcache; then
24042  :
24043else
24044  if test -w $cache_file; then
24045    echo "updating cache $cache_file"
24046    cat confcache > $cache_file
24047  else
24048    echo "not updating unwritable cache $cache_file"
24049  fi
24050fi
24051rm -f confcache
24052
24053
24054if test "${multilib}" = "yes"; then
24055  multilib_arg="--enable-multilib"
24056else
24057  multilib_arg=
24058fi
24059
24060# Export all the install information
24061
24062# Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
24063# exported correctly in GLIBCPP_CONFIGURE.
24064glibcpp_toolexecdir=no
24065glibcpp_toolexeclibdir=no
24066glibcpp_prefixdir=${prefix}
24067
24068# Process the option --with-gxx-include-dir=<path to include-files directory>
24069echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
24070echo "configure:24071: checking for --with-gxx-include-dir" >&5
24071# Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
24072if test "${with_gxx_include_dir+set}" = set; then
24073  withval="$with_gxx_include_dir"
24074  case "${withval}" in
24075  yes)
24076    { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
24077    gxx_include_dir=no
24078    ;;
24079  no)
24080    gxx_include_dir=no
24081    ;;
24082  *)
24083    gxx_include_dir=${withval}
24084    ;;
24085esac
24086else
24087  gxx_include_dir=no
24088fi
24089
24090echo "$ac_t""$gxx_include_dir" 1>&6
24091
24092# Process the option "--enable-version-specific-runtime-libs"
24093echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
24094echo "configure:24095: checking for --enable-version-specific-runtime-libs" >&5
24095# Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
24096if test "${enable_version_specific_runtime_libs+set}" = set; then
24097  enableval="$enable_version_specific_runtime_libs"
24098  case "$enableval" in
24099 yes) version_specific_libs=yes ;;
24100 no)  version_specific_libs=no ;;
24101 *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
24102 esac
24103else
24104  version_specific_libs=no
24105fi
24106# Option set, now we can test it.
24107echo "$ac_t""$version_specific_libs" 1>&6
24108
24109# Default case for install directory for include files.
24110if test $version_specific_libs = no && test $gxx_include_dir = no; then
24111  gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
24112fi
24113
24114# Version-specific runtime libs processing.
24115if test $version_specific_libs = yes; then
24116  # Need the gcc compiler version to know where to install libraries
24117  # and header files if --enable-version-specific-runtime-libs option
24118  # is selected.
24119  if test x"$gxx_include_dir" = x"no"; then
24120    gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
24121  fi
24122  glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
24123  glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
24124fi
24125
24126# Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
24127# Install a library built with a cross compiler in tooldir, not libdir.
24128if test x"$glibcpp_toolexecdir" = x"no"; then 
24129  if test -n "$with_cross_host" &&
24130     test x"$with_cross_host" != x"no"; then
24131    glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
24132    glibcpp_toolexeclibdir='$(toolexecdir)/lib'
24133  else
24134    glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
24135    glibcpp_toolexeclibdir='$(libdir)'
24136  fi
24137  glibcpp_toolexeclibdir=$glibcpp_toolexeclibdir/`$CC -print-multi-os-directory`
24138fi
24139
24140echo $ac_n "checking for install location""... $ac_c" 1>&6
24141echo "configure:24142: checking for install location" >&5
24142echo "$ac_t""$gxx_include_dir" 1>&6
24143
24144
24145
24146
24147
24148
24149
24150# Export all the include and flag information to makefiles.
24151
24152  # Root level of the build directory include sources.
24153  GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
24154
24155  # Passed down for canadian crosses.
24156  if test x"$CANADIAN" = xyes; then
24157    TOPLEVEL_INCLUDES='-I$(includedir)'
24158  fi
24159
24160  LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
24161
24162  LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
24163
24164  if test x"$need_libio" = xyes; then
24165    LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
24166    
24167  fi
24168
24169  # Now, export this to all the little Makefiles....
24170  
24171  
24172  
24173  
24174
24175
24176  # Optimization flags that are probably a good idea for thrill-seekers. Just
24177  # uncomment the lines below and make, everything else is ready to go... 
24178  # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
24179  OPTIMIZE_CXXFLAGS=
24180  
24181
24182  WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings'
24183  
24184
24185
24186if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
24187   grep "enable shared" > /dev/null; then
24188  LIBSUPCXX_PICFLAGS=-prefer-pic
24189else
24190  LIBSUPCXX_PICFLAGS=
24191fi
24192
24193
24194# Generate the various Makefiles, include files, and scripts.
24195# NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
24196# libsupc++/Makefile.am and testsuite/Makefile.am so that multilib installs
24197# will end up installed in the correct place. To work around this not being 
24198# passed down from config-ml.in -> top_srcdir/Makefile.am ->
24199# top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
24200trap '' 1 2 15
24201cat > confcache <<\EOF
24202# This file is a shell script that caches the results of configure
24203# tests run on this system so they can be shared between configure
24204# scripts and configure runs.  It is not useful on other systems.
24205# If it contains results you don't want to keep, you may remove or edit it.
24206#
24207# By default, configure uses ./config.cache as the cache file,
24208# creating it if it does not exist already.  You can give configure
24209# the --cache-file=FILE option to use a different cache file; that is
24210# what configure does when it calls configure scripts in
24211# subdirectories, so they share the cache.
24212# Giving --cache-file=/dev/null disables caching, for debugging configure.
24213# config.status only pays attention to the cache file if you give it the
24214# --recheck option to rerun configure.
24215#
24216EOF
24217# The following way of writing the cache mishandles newlines in values,
24218# but we know of no workaround that is simple, portable, and efficient.
24219# So, don't put newlines in cache variables' values.
24220# Ultrix sh set writes to stderr and can't be redirected directly,
24221# and sets the high bit in the cache file unless we assign to the vars.
24222(set) 2>&1 |
24223  case `(ac_space=' '; set | grep ac_space) 2>&1` in
24224  *ac_space=\ *)
24225    # `set' does not quote correctly, so add quotes (double-quote substitution
24226    # turns \\\\ into \\, and sed turns \\ into \).
24227    sed -n \
24228      -e "s/'/'\\\\''/g" \
24229      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
24230    ;;
24231  *)
24232    # `set' quotes correctly as required by POSIX, so do not add quotes.
24233    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
24234    ;;
24235  esac >> confcache
24236if cmp -s $cache_file confcache; then
24237  :
24238else
24239  if test -w $cache_file; then
24240    echo "updating cache $cache_file"
24241    cat confcache > $cache_file
24242  else
24243    echo "not updating unwritable cache $cache_file"
24244  fi
24245fi
24246rm -f confcache
24247
24248trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
24249
24250test "x$prefix" = xNONE && prefix=$ac_default_prefix
24251# Let make expand exec_prefix.
24252test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24253
24254# Any assignment to VPATH causes Sun make to only execute
24255# the first set of double-colon rules, so remove it if not needed.
24256# If there is a colon in the path, we need to keep it.
24257if test "x$srcdir" = x.; then
24258  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
24259fi
24260
24261trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
24262
24263DEFS=-DHAVE_CONFIG_H
24264
24265# Without the "./", some shells look in PATH for config.status.
24266: ${CONFIG_STATUS=./config.status}
24267
24268echo creating $CONFIG_STATUS
24269rm -f $CONFIG_STATUS
24270cat > $CONFIG_STATUS <<EOF
24271#! /bin/sh
24272# Generated automatically by configure.
24273# Run this file to recreate the current configuration.
24274# This directory was configured as follows,
24275# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24276#
24277# $0 $ac_configure_args
24278#
24279# Compiler output produced by configure, useful for debugging
24280# configure, is in ./config.log if it exists.
24281
24282ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
24283for ac_option
24284do
24285  case "\$ac_option" in
24286  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24287    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
24288    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
24289  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
24290    echo "$CONFIG_STATUS generated by autoconf version 2.13"
24291    exit 0 ;;
24292  -help | --help | --hel | --he | --h)
24293    echo "\$ac_cs_usage"; exit 0 ;;
24294  *) echo "\$ac_cs_usage"; exit 1 ;;
24295  esac
24296done
24297
24298ac_given_srcdir=$srcdir
24299ac_given_INSTALL="$INSTALL"
24300
24301trap 'rm -fr `echo "Makefile \
24302    include/Makefile src/Makefile \
24303    libmath/Makefile libio/Makefile libsupc++/Makefile \
24304    po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24305EOF
24306cat >> $CONFIG_STATUS <<EOF
24307
24308# Protect against being on the right side of a sed subst in config.status.
24309sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24310 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24311$ac_vpsub
24312$extrasub
24313s%@SHELL@%$SHELL%g
24314s%@CFLAGS@%$CFLAGS%g
24315s%@CPPFLAGS@%$CPPFLAGS%g
24316s%@CXXFLAGS@%$CXXFLAGS%g
24317s%@FFLAGS@%$FFLAGS%g
24318s%@DEFS@%$DEFS%g
24319s%@LDFLAGS@%$LDFLAGS%g
24320s%@LIBS@%$LIBS%g
24321s%@exec_prefix@%$exec_prefix%g
24322s%@prefix@%$prefix%g
24323s%@program_transform_name@%$program_transform_name%g
24324s%@bindir@%$bindir%g
24325s%@sbindir@%$sbindir%g
24326s%@libexecdir@%$libexecdir%g
24327s%@datadir@%$datadir%g
24328s%@sysconfdir@%$sysconfdir%g
24329s%@sharedstatedir@%$sharedstatedir%g
24330s%@localstatedir@%$localstatedir%g
24331s%@libdir@%$libdir%g
24332s%@includedir@%$includedir%g
24333s%@oldincludedir@%$oldincludedir%g
24334s%@infodir@%$infodir%g
24335s%@mandir@%$mandir%g
24336s%@PACKAGE@%$PACKAGE%g
24337s%@libtool_VERSION@%$libtool_VERSION%g
24338s%@toplevel_srcdir@%$toplevel_srcdir%g
24339s%@host@%$host%g
24340s%@host_alias@%$host_alias%g
24341s%@host_cpu@%$host_cpu%g
24342s%@host_vendor@%$host_vendor%g
24343s%@host_os@%$host_os%g
24344s%@target@%$target%g
24345s%@target_alias@%$target_alias%g
24346s%@target_cpu@%$target_cpu%g
24347s%@target_vendor@%$target_vendor%g
24348s%@target_os@%$target_os%g
24349s%@build@%$build%g
24350s%@build_alias@%$build_alias%g
24351s%@build_cpu@%$build_cpu%g
24352s%@build_vendor@%$build_vendor%g
24353s%@build_os@%$build_os%g
24354s%@glibcpp_builddir@%$glibcpp_builddir%g
24355s%@glibcpp_srcdir@%$glibcpp_srcdir%g
24356s%@AWK@%$AWK%g
24357s%@LN_S@%$LN_S%g
24358s%@glibcpp_basedir@%$glibcpp_basedir%g
24359s%@CC@%$CC%g
24360s%@glibcpp_CXX@%$glibcpp_CXX%g
24361s%@AS@%$AS%g
24362s%@AR@%$AR%g
24363s%@RANLIB@%$RANLIB%g
24364s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24365s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24366s%@INSTALL_DATA@%$INSTALL_DATA%g
24367s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
24368s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
24369s%@MAINT@%$MAINT%g
24370s%@EXEEXT@%$EXEEXT%g
24371s%@VERSION@%$VERSION%g
24372s%@ACLOCAL@%$ACLOCAL%g
24373s%@AUTOCONF@%$AUTOCONF%g
24374s%@AUTOMAKE@%$AUTOMAKE%g
24375s%@AUTOHEADER@%$AUTOHEADER%g
24376s%@MAKEINFO@%$MAKEINFO%g
24377s%@SET_MAKE@%$SET_MAKE%g
24378s%@OBJEXT@%$OBJEXT%g
24379s%@STRIP@%$STRIP%g
24380s%@LIBTOOL@%$LIBTOOL%g
24381s%@CXXCPP@%$CXXCPP%g
24382s%@enable_shared@%$enable_shared%g
24383s%@enable_static@%$enable_static%g
24384s%@ifGNUmake@%$ifGNUmake%g
24385s%@CPP@%$CPP%g
24386s%@CSTDIO_H@%$CSTDIO_H%g
24387s%@BASIC_FILE_H@%$BASIC_FILE_H%g
24388s%@BASIC_FILE_CC@%$BASIC_FILE_CC%g
24389s%@CCODECVT_C@%$CCODECVT_C%g
24390s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
24391s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
24392s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
24393s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
24394s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
24395s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
24396s%@libio_la@%$libio_la%g
24397s%@check_msgfmt@%$check_msgfmt%g
24398s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
24399s%@glibcpp_POFILES@%$glibcpp_POFILES%g
24400s%@glibcpp_localedir@%$glibcpp_localedir%g
24401s%@USE_NLS@%$USE_NLS%g
24402s%@CLOCALE_H@%$CLOCALE_H%g
24403s%@CCODECVT_H@%$CCODECVT_H%g
24404s%@CMESSAGES_H@%$CMESSAGES_H%g
24405s%@CCODECVT_CC@%$CCODECVT_CC%g
24406s%@CCOLLATE_CC@%$CCOLLATE_CC%g
24407s%@CCTYPE_CC@%$CCTYPE_CC%g
24408s%@CMESSAGES_CC@%$CMESSAGES_CC%g
24409s%@CMONEY_CC@%$CMONEY_CC%g
24410s%@CNUMERIC_CC@%$CNUMERIC_CC%g
24411s%@CTIME_H@%$CTIME_H%g
24412s%@CTIME_CC@%$CTIME_CC%g
24413s%@CLOCALE_CC@%$CLOCALE_CC%g
24414s%@CLOCALE_INTERNAL_H@%$CLOCALE_INTERNAL_H%g
24415s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
24416s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
24417s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
24418s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
24419s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
24420s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
24421s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
24422s%@glibcpp_thread_h@%$glibcpp_thread_h%g
24423s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
24424s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
24425s%@GLIBCPP_BUILD_DEBUG_TRUE@%$GLIBCPP_BUILD_DEBUG_TRUE%g
24426s%@GLIBCPP_BUILD_DEBUG_FALSE@%$GLIBCPP_BUILD_DEBUG_FALSE%g
24427s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
24428s%@SECTION_FLAGS@%$SECTION_FLAGS%g
24429s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
24430s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
24431s%@LIBMATHOBJS@%$LIBMATHOBJS%g
24432s%@GLIBCPP_BUILD_LIBMATH_TRUE@%$GLIBCPP_BUILD_LIBMATH_TRUE%g
24433s%@GLIBCPP_BUILD_LIBMATH_FALSE@%$GLIBCPP_BUILD_LIBMATH_FALSE%g
24434s%@GLIBCPP_TEST_WCHAR_T_TRUE@%$GLIBCPP_TEST_WCHAR_T_TRUE%g
24435s%@GLIBCPP_TEST_WCHAR_T_FALSE@%$GLIBCPP_TEST_WCHAR_T_FALSE%g
24436s%@WERROR@%$WERROR%g
24437s%@SYMVER_MAP@%$SYMVER_MAP%g
24438s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
24439s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
24440s%@baseline_dir@%$baseline_dir%g
24441s%@GLIBCPP_TEST_ABI_TRUE@%$GLIBCPP_TEST_ABI_TRUE%g
24442s%@GLIBCPP_TEST_ABI_FALSE@%$GLIBCPP_TEST_ABI_FALSE%g
24443s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
24444s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
24445s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
24446s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
24447s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
24448s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
24449s%@gxx_include_dir@%$gxx_include_dir%g
24450s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
24451s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
24452s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
24453s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
24454s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
24455s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
24456s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
24457s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
24458s%@WARN_FLAGS@%$WARN_FLAGS%g
24459s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
24460
24461CEOF
24462EOF
24463
24464cat >> $CONFIG_STATUS <<\EOF
24465
24466# Split the substitutions into bite-sized pieces for seds with
24467# small command number limits, like on Digital OSF/1 and HP-UX.
24468ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24469ac_file=1 # Number of current file.
24470ac_beg=1 # First line for current file.
24471ac_end=$ac_max_sed_cmds # Line after last line for current file.
24472ac_more_lines=:
24473ac_sed_cmds=""
24474while $ac_more_lines; do
24475  if test $ac_beg -gt 1; then
24476    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24477  else
24478    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24479  fi
24480  if test ! -s conftest.s$ac_file; then
24481    ac_more_lines=false
24482    rm -f conftest.s$ac_file
24483  else
24484    if test -z "$ac_sed_cmds"; then
24485      ac_sed_cmds="sed -f conftest.s$ac_file"
24486    else
24487      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24488    fi
24489    ac_file=`expr $ac_file + 1`
24490    ac_beg=$ac_end
24491    ac_end=`expr $ac_end + $ac_max_sed_cmds`
24492  fi
24493done
24494if test -z "$ac_sed_cmds"; then
24495  ac_sed_cmds=cat
24496fi
24497EOF
24498
24499cat >> $CONFIG_STATUS <<EOF
24500
24501CONFIG_FILES=\${CONFIG_FILES-"Makefile \
24502    include/Makefile src/Makefile \
24503    libmath/Makefile libio/Makefile libsupc++/Makefile \
24504    po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
24505EOF
24506cat >> $CONFIG_STATUS <<\EOF
24507for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24508  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24509  case "$ac_file" in
24510  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24511       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24512  *) ac_file_in="${ac_file}.in" ;;
24513  esac
24514
24515  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24516
24517  # Remove last slash and all that follows it.  Not all systems have dirname.
24518  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24519  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24520    # The file is in a subdirectory.
24521    test ! -d "$ac_dir" && mkdir "$ac_dir"
24522    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24523    # A "../" for each directory in $ac_dir_suffix.
24524    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24525  else
24526    ac_dir_suffix= ac_dots=
24527  fi
24528
24529  case "$ac_given_srcdir" in
24530  .)  srcdir=.
24531      if test -z "$ac_dots"; then top_srcdir=.
24532      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24533  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24534  *) # Relative path.
24535    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24536    top_srcdir="$ac_dots$ac_given_srcdir" ;;
24537  esac
24538
24539  case "$ac_given_INSTALL" in
24540  [/$]*) INSTALL="$ac_given_INSTALL" ;;
24541  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24542  esac
24543
24544  echo creating "$ac_file"
24545  rm -f "$ac_file"
24546  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24547  case "$ac_file" in
24548  *Makefile*) ac_comsub="1i\\
24549# $configure_input" ;;
24550  *) ac_comsub= ;;
24551  esac
24552
24553  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24554  sed -e "$ac_comsub
24555s%@configure_input@%$configure_input%g
24556s%@srcdir@%$srcdir%g
24557s%@top_srcdir@%$top_srcdir%g
24558s%@INSTALL@%$INSTALL%g
24559" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24560fi; done
24561rm -f conftest.s*
24562
24563# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24564# NAME is the cpp macro being defined and VALUE is the value it is being given.
24565#
24566# ac_d sets the value in "#define NAME VALUE" lines.
24567ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
24568ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
24569ac_dC='\3'
24570ac_dD='%g'
24571# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24572ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
24573ac_uB='\([ 	]\)%\1#\2define\3'
24574ac_uC=' '
24575ac_uD='\4%g'
24576# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24577ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
24578ac_eB='$%\1#\2define\3'
24579ac_eC=' '
24580ac_eD='%g'
24581
24582if test "${CONFIG_HEADERS+set}" != set; then
24583EOF
24584cat >> $CONFIG_STATUS <<EOF
24585  CONFIG_HEADERS="config.h"
24586EOF
24587cat >> $CONFIG_STATUS <<\EOF
24588fi
24589for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24590  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24591  case "$ac_file" in
24592  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24593       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24594  *) ac_file_in="${ac_file}.in" ;;
24595  esac
24596
24597  echo creating $ac_file
24598
24599  rm -f conftest.frag conftest.in conftest.out
24600  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24601  cat $ac_file_inputs > conftest.in
24602
24603EOF
24604
24605# Transform confdefs.h into a sed script conftest.vals that substitutes
24606# the proper values into config.h.in to produce config.h.  And first:
24607# Protect against being on the right side of a sed subst in config.status.
24608# Protect against being in an unquoted here document in config.status.
24609rm -f conftest.vals
24610cat > conftest.hdr <<\EOF
24611s/[\\&%]/\\&/g
24612s%[\\$`]%\\&%g
24613s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24614s%ac_d%ac_u%gp
24615s%ac_u%ac_e%gp
24616EOF
24617sed -n -f conftest.hdr confdefs.h > conftest.vals
24618rm -f conftest.hdr
24619
24620# This sed command replaces #undef with comments.  This is necessary, for
24621# example, in the case of _POSIX_SOURCE, which is predefined and required
24622# on some systems where configure will not decide to define it.
24623cat >> conftest.vals <<\EOF
24624s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24625EOF
24626
24627# Break up conftest.vals because some shells have a limit on
24628# the size of here documents, and old seds have small limits too.
24629
24630rm -f conftest.tail
24631while :
24632do
24633  ac_lines=`grep -c . conftest.vals`
24634  # grep -c gives empty output for an empty file on some AIX systems.
24635  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24636  # Write a limited-size here document to conftest.frag.
24637  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24638  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24639  echo 'CEOF
24640  sed -f conftest.frag conftest.in > conftest.out
24641  rm -f conftest.in
24642  mv conftest.out conftest.in
24643' >> $CONFIG_STATUS
24644  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24645  rm -f conftest.vals
24646  mv conftest.tail conftest.vals
24647done
24648rm -f conftest.vals
24649
24650cat >> $CONFIG_STATUS <<\EOF
24651  rm -f conftest.frag conftest.h
24652  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
24653  cat conftest.in >> conftest.h
24654  rm -f conftest.in
24655  if cmp -s $ac_file conftest.h 2>/dev/null; then
24656    echo "$ac_file is unchanged"
24657    rm -f conftest.h
24658  else
24659    # Remove last slash and all that follows it.  Not all systems have dirname.
24660      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24661      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24662      # The file is in a subdirectory.
24663      test ! -d "$ac_dir" && mkdir "$ac_dir"
24664    fi
24665    rm -f $ac_file
24666    mv conftest.h $ac_file
24667  fi
24668fi; done
24669
24670EOF
24671cat >> $CONFIG_STATUS <<EOF
24672
24673srcdir=${srcdir}
24674host=${host}
24675target=${target}
24676with_multisubdir=${with_multisubdir}
24677ac_configure_args="${multilib_arg} ${ac_configure_args}"
24678CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24679glibcpp_basedir=${glibcpp_basedir}
24680CC="${CC}"
24681CXX="${CXX}"
24682ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
24683
24684EOF
24685cat >> $CONFIG_STATUS <<\EOF
24686test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24687if test -n "$CONFIG_FILES"; then
24688  LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24689  ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
24690  grep '^MULTISUBDIR =' Makefile >> src/Makefile
24691  grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24692  grep '^MULTISUBDIR =' Makefile >> testsuite/Makefile
24693fi
24694chmod +x mkcheck
24695chmod +x testsuite_flags
24696
24697exit 0
24698EOF
24699chmod +x $CONFIG_STATUS
24700rm -fr confdefs* $ac_clean_files
24701test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24702
24703
24704
24705# Sanity checking & User-visible messages.
24706# Checks down here, otherwise they get scrolled off before
24707# the user will notice.
24708
24709# Trying to get more people to read documentation.  Possibly remove
24710# check and warn all the time. There is no "informational" AC_MSG_
24711# macro, so these are going to be printed even when --quiet/--silent
24712# is given.
24713if test ! -f stamp-sanity-warned; then
24714  touch stamp-sanity-warned
24715  echo ""
24716  echo "Please make certain that you read the installation information here:"
24717  echo "  faster => ${srcdir}/docs/html/install.html"
24718  echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24719  echo ""
24720  echo "and the configuration information here:"
24721  echo "  faster => ${srcdir}/docs/html/configopts.html"
24722  echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24723  echo ""
24724  echo "before proceeding with ${_cv_gnu_make_command}."
24725  echo ""
24726fi
24727