OSDN Git Service

* c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-target-subdir=SUBDIR
16                            configuring in a subdirectory"
17 ac_help="$ac_help
18   --with-cross-host=HOST  configuring with a cross compiler"
19 ac_help="$ac_help
20   --enable-multilib       build hella library versions (default)"
21 ac_help="$ac_help
22   --enable-maintainer-mode enable make rules and dependencies not useful
23                           (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25   --enable-shared[=PKGS]  build shared libraries [default=yes]"
26 ac_help="$ac_help
27   --enable-static[=PKGS]  build static libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33   --disable-libtool-lock  avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37   --enable-debug          extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39   --enable-cstdio         enable stdio for target io package. 
40   --enable-cstdio=LIB     use LIB target-speific io package. [default=stdio]
41   "
42 ac_help="$ac_help
43   --enable-clocale        enable model for target locale package. 
44   --enable-clocale=MODEL  use MODEL target-speific locale package. [default=generic]
45   "
46 ac_help="$ac_help
47   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
48 ac_help="$ac_help
49   --enable-c99      turns on 'ISO/IEC 9899:1999 support' [default=yes]"
50 ac_help="$ac_help
51   --enable-long-long      turns on 'long long' [default=yes]"
52 ac_help="$ac_help
53   --enable-cheaders       construct "C" header files for g++ [default=c_std]"
54 ac_help="$ac_help
55   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
56                                 [default=none]"
57 ac_help="$ac_help
58   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
59 ac_help="$ac_help
60   --with-gxx-include-dir  the installation directory for include files"
61 ac_help="$ac_help
62   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
63
64 # Initialize some variables set by options.
65 # The variables have the same names as the options, with
66 # dashes changed to underlines.
67 build=NONE
68 cache_file=./config.cache
69 exec_prefix=NONE
70 host=NONE
71 no_create=
72 nonopt=NONE
73 no_recursion=
74 prefix=NONE
75 program_prefix=NONE
76 program_suffix=NONE
77 program_transform_name=s,x,x,
78 silent=
79 site=
80 sitefile=
81 srcdir=
82 target=NONE
83 verbose=
84 x_includes=NONE
85 x_libraries=NONE
86 bindir='${exec_prefix}/bin'
87 sbindir='${exec_prefix}/sbin'
88 libexecdir='${exec_prefix}/libexec'
89 datadir='${prefix}/share'
90 sysconfdir='${prefix}/etc'
91 sharedstatedir='${prefix}/com'
92 localstatedir='${prefix}/var'
93 libdir='${exec_prefix}/lib'
94 includedir='${prefix}/include'
95 oldincludedir='/usr/include'
96 infodir='${prefix}/info'
97 mandir='${prefix}/man'
98
99 # Initialize some other variables.
100 subdirs=
101 MFLAGS= MAKEFLAGS=
102 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 ac_max_here_lines=12
105
106 ac_prev=
107 for ac_option
108 do
109
110   # If the previous option needs an argument, assign it.
111   if test -n "$ac_prev"; then
112     eval "$ac_prev=\$ac_option"
113     ac_prev=
114     continue
115   fi
116
117   case "$ac_option" in
118   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
119   *) ac_optarg= ;;
120   esac
121
122   # Accept the important Cygnus configure options, so we can diagnose typos.
123
124   case "$ac_option" in
125
126   -bindir | --bindir | --bindi | --bind | --bin | --bi)
127     ac_prev=bindir ;;
128   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
129     bindir="$ac_optarg" ;;
130
131   -build | --build | --buil | --bui | --bu)
132     ac_prev=build ;;
133   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
134     build="$ac_optarg" ;;
135
136   -cache-file | --cache-file | --cache-fil | --cache-fi \
137   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
138     ac_prev=cache_file ;;
139   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
140   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
141     cache_file="$ac_optarg" ;;
142
143   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
144     ac_prev=datadir ;;
145   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
146   | --da=*)
147     datadir="$ac_optarg" ;;
148
149   -disable-* | --disable-*)
150     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
151     # Reject names that are not valid shell variable names.
152     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
153       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154     fi
155     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
156     eval "enable_${ac_feature}=no" ;;
157
158   -enable-* | --enable-*)
159     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
160     # Reject names that are not valid shell variable names.
161     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
162       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163     fi
164     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165     case "$ac_option" in
166       *=*) ;;
167       *) ac_optarg=yes ;;
168     esac
169     eval "enable_${ac_feature}='$ac_optarg'" ;;
170
171   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
172   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
173   | --exec | --exe | --ex)
174     ac_prev=exec_prefix ;;
175   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
176   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
177   | --exec=* | --exe=* | --ex=*)
178     exec_prefix="$ac_optarg" ;;
179
180   -gas | --gas | --ga | --g)
181     # Obsolete; use --with-gas.
182     with_gas=yes ;;
183
184   -help | --help | --hel | --he)
185     # Omit some internal or obsolete options to make the list less imposing.
186     # This message is too long to be a string in the A/UX 3.1 sh.
187     cat << EOF
188 Usage: configure [options] [host]
189 Options: [defaults in brackets after descriptions]
190 Configuration:
191   --cache-file=FILE       cache test results in FILE
192   --help                  print this message
193   --no-create             do not create output files
194   --quiet, --silent       do not print \`checking...' messages
195   --site-file=FILE        use FILE as the site file
196   --version               print the version of autoconf that created configure
197 Directory and file names:
198   --prefix=PREFIX         install architecture-independent files in PREFIX
199                           [$ac_default_prefix]
200   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
201                           [same as prefix]
202   --bindir=DIR            user executables in DIR [EPREFIX/bin]
203   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
204   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
205   --datadir=DIR           read-only architecture-independent data in DIR
206                           [PREFIX/share]
207   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
208   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
209                           [PREFIX/com]
210   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
211   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
212   --includedir=DIR        C header files in DIR [PREFIX/include]
213   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
214   --infodir=DIR           info documentation in DIR [PREFIX/info]
215   --mandir=DIR            man documentation in DIR [PREFIX/man]
216   --srcdir=DIR            find the sources in DIR [configure dir or ..]
217   --program-prefix=PREFIX prepend PREFIX to installed program names
218   --program-suffix=SUFFIX append SUFFIX to installed program names
219   --program-transform-name=PROGRAM
220                           run sed PROGRAM on installed program names
221 EOF
222     cat << EOF
223 Host type:
224   --build=BUILD           configure for building on BUILD [BUILD=HOST]
225   --host=HOST             configure for HOST [guessed]
226   --target=TARGET         configure for TARGET [TARGET=HOST]
227 Features and packages:
228   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
229   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
230   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
231   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
232   --x-includes=DIR        X include files are in DIR
233   --x-libraries=DIR       X library files are in DIR
234 EOF
235     if test -n "$ac_help"; then
236       echo "--enable and --with options recognized:$ac_help"
237     fi
238     exit 0 ;;
239
240   -host | --host | --hos | --ho)
241     ac_prev=host ;;
242   -host=* | --host=* | --hos=* | --ho=*)
243     host="$ac_optarg" ;;
244
245   -includedir | --includedir | --includedi | --included | --include \
246   | --includ | --inclu | --incl | --inc)
247     ac_prev=includedir ;;
248   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
249   | --includ=* | --inclu=* | --incl=* | --inc=*)
250     includedir="$ac_optarg" ;;
251
252   -infodir | --infodir | --infodi | --infod | --info | --inf)
253     ac_prev=infodir ;;
254   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
255     infodir="$ac_optarg" ;;
256
257   -libdir | --libdir | --libdi | --libd)
258     ac_prev=libdir ;;
259   -libdir=* | --libdir=* | --libdi=* | --libd=*)
260     libdir="$ac_optarg" ;;
261
262   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
263   | --libexe | --libex | --libe)
264     ac_prev=libexecdir ;;
265   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
266   | --libexe=* | --libex=* | --libe=*)
267     libexecdir="$ac_optarg" ;;
268
269   -localstatedir | --localstatedir | --localstatedi | --localstated \
270   | --localstate | --localstat | --localsta | --localst \
271   | --locals | --local | --loca | --loc | --lo)
272     ac_prev=localstatedir ;;
273   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
274   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
275   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
276     localstatedir="$ac_optarg" ;;
277
278   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279     ac_prev=mandir ;;
280   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
281     mandir="$ac_optarg" ;;
282
283   -nfp | --nfp | --nf)
284     # Obsolete; use --without-fp.
285     with_fp=no ;;
286
287   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
288   | --no-cr | --no-c)
289     no_create=yes ;;
290
291   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
292   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
293     no_recursion=yes ;;
294
295   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
296   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
297   | --oldin | --oldi | --old | --ol | --o)
298     ac_prev=oldincludedir ;;
299   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
300   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
301   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
302     oldincludedir="$ac_optarg" ;;
303
304   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305     ac_prev=prefix ;;
306   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
307     prefix="$ac_optarg" ;;
308
309   -program-prefix | --program-prefix | --program-prefi | --program-pref \
310   | --program-pre | --program-pr | --program-p)
311     ac_prev=program_prefix ;;
312   -program-prefix=* | --program-prefix=* | --program-prefi=* \
313   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
314     program_prefix="$ac_optarg" ;;
315
316   -program-suffix | --program-suffix | --program-suffi | --program-suff \
317   | --program-suf | --program-su | --program-s)
318     ac_prev=program_suffix ;;
319   -program-suffix=* | --program-suffix=* | --program-suffi=* \
320   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
321     program_suffix="$ac_optarg" ;;
322
323   -program-transform-name | --program-transform-name \
324   | --program-transform-nam | --program-transform-na \
325   | --program-transform-n | --program-transform- \
326   | --program-transform | --program-transfor \
327   | --program-transfo | --program-transf \
328   | --program-trans | --program-tran \
329   | --progr-tra | --program-tr | --program-t)
330     ac_prev=program_transform_name ;;
331   -program-transform-name=* | --program-transform-name=* \
332   | --program-transform-nam=* | --program-transform-na=* \
333   | --program-transform-n=* | --program-transform-=* \
334   | --program-transform=* | --program-transfor=* \
335   | --program-transfo=* | --program-transf=* \
336   | --program-trans=* | --program-tran=* \
337   | --progr-tra=* | --program-tr=* | --program-t=*)
338     program_transform_name="$ac_optarg" ;;
339
340   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
341   | -silent | --silent | --silen | --sile | --sil)
342     silent=yes ;;
343
344   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345     ac_prev=sbindir ;;
346   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347   | --sbi=* | --sb=*)
348     sbindir="$ac_optarg" ;;
349
350   -sharedstatedir | --sharedstatedir | --sharedstatedi \
351   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
352   | --sharedst | --shareds | --shared | --share | --shar \
353   | --sha | --sh)
354     ac_prev=sharedstatedir ;;
355   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
356   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
357   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358   | --sha=* | --sh=*)
359     sharedstatedir="$ac_optarg" ;;
360
361   -site | --site | --sit)
362     ac_prev=site ;;
363   -site=* | --site=* | --sit=*)
364     site="$ac_optarg" ;;
365
366   -site-file | --site-file | --site-fil | --site-fi | --site-f)
367     ac_prev=sitefile ;;
368   -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
369     sitefile="$ac_optarg" ;;
370
371   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
372     ac_prev=srcdir ;;
373   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
374     srcdir="$ac_optarg" ;;
375
376   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
377   | --syscon | --sysco | --sysc | --sys | --sy)
378     ac_prev=sysconfdir ;;
379   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
380   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
381     sysconfdir="$ac_optarg" ;;
382
383   -target | --target | --targe | --targ | --tar | --ta | --t)
384     ac_prev=target ;;
385   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
386     target="$ac_optarg" ;;
387
388   -v | -verbose | --verbose | --verbos | --verbo | --verb)
389     verbose=yes ;;
390
391   -version | --version | --versio | --versi | --vers)
392     echo "configure generated by autoconf version 2.13"
393     exit 0 ;;
394
395   -with-* | --with-*)
396     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
397     # Reject names that are not valid shell variable names.
398     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
399       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
400     fi
401     ac_package=`echo $ac_package| sed 's/-/_/g'`
402     case "$ac_option" in
403       *=*) ;;
404       *) ac_optarg=yes ;;
405     esac
406     eval "with_${ac_package}='$ac_optarg'" ;;
407
408   -without-* | --without-*)
409     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
410     # Reject names that are not valid shell variable names.
411     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
412       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
413     fi
414     ac_package=`echo $ac_package| sed 's/-/_/g'`
415     eval "with_${ac_package}=no" ;;
416
417   --x)
418     # Obsolete; use --with-x.
419     with_x=yes ;;
420
421   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
422   | --x-incl | --x-inc | --x-in | --x-i)
423     ac_prev=x_includes ;;
424   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
425   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
426     x_includes="$ac_optarg" ;;
427
428   -x-libraries | --x-libraries | --x-librarie | --x-librari \
429   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
430     ac_prev=x_libraries ;;
431   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
432   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
433     x_libraries="$ac_optarg" ;;
434
435   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
436     ;;
437
438   *)
439     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
440       echo "configure: warning: $ac_option: invalid host type" 1>&2
441     fi
442     if test "x$nonopt" != xNONE; then
443       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
444     fi
445     nonopt="$ac_option"
446     ;;
447
448   esac
449 done
450
451 if test -n "$ac_prev"; then
452   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
453 fi
454
455 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
456
457 # File descriptor usage:
458 # 0 standard input
459 # 1 file creation
460 # 2 errors and warnings
461 # 3 some systems may open it to /dev/tty
462 # 4 used on the Kubota Titan
463 # 6 checking for... messages and results
464 # 5 compiler messages saved in config.log
465 if test "$silent" = yes; then
466   exec 6>/dev/null
467 else
468   exec 6>&1
469 fi
470 exec 5>./config.log
471
472 echo "\
473 This file contains any messages produced by compilers while
474 running configure, to aid debugging if configure makes a mistake.
475 " 1>&5
476
477 # Strip out --no-create and --no-recursion so they do not pile up.
478 # Also quote any args containing shell metacharacters.
479 ac_configure_args=
480 for ac_arg
481 do
482   case "$ac_arg" in
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c) ;;
485   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
486   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
487   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
488   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
489   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
490   esac
491 done
492
493 # NLS nuisances.
494 # Only set these to C if already set.  These must not be set unconditionally
495 # because not all systems understand e.g. LANG=C (notably SCO).
496 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
497 # Non-C LC_CTYPE values break the ctype check.
498 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
499 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
500 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
501 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
502
503 # confdefs.h avoids OS command line length limits that DEFS can exceed.
504 rm -rf conftest* confdefs.h
505 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
506 echo > confdefs.h
507
508 # A filename unique to this package, relative to the directory that
509 # configure is in, which we can look for to find out if srcdir is correct.
510 ac_unique_file=src/ios.cc
511
512 # Find the source files, if location was not specified.
513 if test -z "$srcdir"; then
514   ac_srcdir_defaulted=yes
515   # Try the directory containing this script, then its parent.
516   ac_prog=$0
517   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
518   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
519   srcdir=$ac_confdir
520   if test ! -r $srcdir/$ac_unique_file; then
521     srcdir=..
522   fi
523 else
524   ac_srcdir_defaulted=no
525 fi
526 if test ! -r $srcdir/$ac_unique_file; then
527   if test "$ac_srcdir_defaulted" = yes; then
528     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
529   else
530     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531   fi
532 fi
533 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
534
535 # Prefer explicitly selected file to automatically selected ones.
536 if test -z "$sitefile"; then
537   if test -z "$CONFIG_SITE"; then
538     if test "x$prefix" != xNONE; then
539       CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540     else
541       CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
542     fi
543   fi
544 else
545   CONFIG_SITE="$sitefile"
546 fi
547 for ac_site_file in $CONFIG_SITE; do
548   if test -r "$ac_site_file"; then
549     echo "loading site script $ac_site_file"
550     . "$ac_site_file"
551   fi
552 done
553
554 if test -r "$cache_file"; then
555   echo "loading cache $cache_file"
556   . $cache_file
557 else
558   echo "creating cache $cache_file"
559   > $cache_file
560 fi
561
562 ac_ext=c
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp='$CPP $CPPFLAGS'
565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling=$ac_cv_prog_cc_cross
568
569 ac_exeext=
570 ac_objext=o
571 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
572   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574     ac_n= ac_c='
575 ' ac_t='        '
576   else
577     ac_n=-n ac_c= ac_t=
578   fi
579 else
580   ac_n= ac_c='\c' ac_t=
581 fi
582
583
584
585 # When building with srcdir == objdir, links to the source files will
586 # be created in directories within the target_subdir.  We have to
587 # adjust toplevel_srcdir accordingly, so that configure finds
588 # install-sh and other auxiliary files that live in the top-level
589 # source directory.
590 if test "${srcdir}" = "."; then
591   if test -z "${with_target_subdir}"; then
592     toprel=".."
593   else
594     if test "${with_target_subdir}" != "."; then
595       toprel="${with_multisrctop}../.."
596     else
597       toprel="${with_multisrctop}.."
598     fi
599   fi
600 else
601   toprel=".."
602 fi
603 ac_aux_dir=
604 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
605   if test -f $ac_dir/install-sh; then
606     ac_aux_dir=$ac_dir
607     ac_install_sh="$ac_aux_dir/install-sh -c"
608     break
609   elif test -f $ac_dir/install.sh; then
610     ac_aux_dir=$ac_dir
611     ac_install_sh="$ac_aux_dir/install.sh -c"
612     break
613   fi
614 done
615 if test -z "$ac_aux_dir"; then
616   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
617 fi
618 ac_config_guess=$ac_aux_dir/config.guess
619 ac_config_sub=$ac_aux_dir/config.sub
620 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
621
622 toplevel_srcdir=\${top_srcdir}/$toprel
623
624
625
626
627 # Gets and sets build, host, target, *_vendor, *_cpu, *_os, etc.
628 # AC 2.50 sets target_alias iff the user specified --target, but we use it
629 # everywhere, so we set it here just to be sure.
630
631 # Do some error checking and defaulting for the host and target type.
632 # The inputs are:
633 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
634 #
635 # The rules are:
636 # 1. You are not allowed to specify --host, --target, and nonopt at the
637 #    same time.
638 # 2. Host defaults to nonopt.
639 # 3. If nonopt is not specified, then host defaults to the current host,
640 #    as determined by config.guess.
641 # 4. Target and build default to nonopt.
642 # 5. If nonopt is not specified, then target and build default to host.
643
644 # The aliases save the names the user supplied, while $host etc.
645 # will get canonicalized.
646 case $host---$target---$nonopt in
647 NONE---*---* | *---NONE---* | *---*---NONE) ;;
648 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
649 esac
650
651
652 # Make sure we can run config.sub.
653 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
654 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
655 fi
656
657 echo $ac_n "checking host system type""... $ac_c" 1>&6
658 echo "configure:659: checking host system type" >&5
659
660 host_alias=$host
661 case "$host_alias" in
662 NONE)
663   case $nonopt in
664   NONE)
665     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
666     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
667     fi ;;
668   *) host_alias=$nonopt ;;
669   esac ;;
670 esac
671
672 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
673 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
674 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
675 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
676 echo "$ac_t""$host" 1>&6
677
678 echo $ac_n "checking target system type""... $ac_c" 1>&6
679 echo "configure:680: checking target system type" >&5
680
681 target_alias=$target
682 case "$target_alias" in
683 NONE)
684   case $nonopt in
685   NONE) target_alias=$host_alias ;;
686   *) target_alias=$nonopt ;;
687   esac ;;
688 esac
689
690 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
691 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
692 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
693 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
694 echo "$ac_t""$target" 1>&6
695
696 echo $ac_n "checking build system type""... $ac_c" 1>&6
697 echo "configure:698: checking build system type" >&5
698
699 build_alias=$build
700 case "$build_alias" in
701 NONE)
702   case $nonopt in
703   NONE) build_alias=$host_alias ;;
704   *) build_alias=$nonopt ;;
705   esac ;;
706 esac
707
708 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
709 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
710 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
711 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
712 echo "$ac_t""$build" 1>&6
713
714 test "$host_alias" != "$target_alias" &&
715   test "$program_prefix$program_suffix$program_transform_name" = \
716     NONENONEs,x,x, &&
717   program_prefix=${target_alias}-
718
719 target_alias=${target_alias-$target}
720
721
722 # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.50+, can also
723 # be 'cp -p' if linking isn't available.
724 #ac_cv_prog_LN_S='cp -p'
725 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
726 echo "configure:727: checking whether ln -s works" >&5
727 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
728   echo $ac_n "(cached) $ac_c" 1>&6
729 else
730   rm -f conftestdata
731 if ln -s X conftestdata 2>/dev/null
732 then
733   rm -f conftestdata
734   ac_cv_prog_LN_S="ln -s"
735 else
736   ac_cv_prog_LN_S=ln
737 fi
738 fi
739 LN_S="$ac_cv_prog_LN_S"
740 if test "$ac_cv_prog_LN_S" = "ln -s"; then
741   echo "$ac_t""yes" 1>&6
742 else
743   echo "$ac_t""no" 1>&6
744 fi
745
746
747 # We use these options to decide which functions to include.
748 # Check whether --with-target-subdir or --without-target-subdir was given.
749 if test "${with_target_subdir+set}" = set; then
750   withval="$with_target_subdir"
751   :
752 fi
753
754 # Check whether --with-cross-host or --without-cross-host was given.
755 if test "${with_cross_host+set}" = set; then
756   withval="$with_cross_host"
757   :
758 fi
759
760
761 # Runs configure.host and configure.target. Have to run this before
762 # the GLIBCPP_ENABLE_* macros below.
763 # Find a good install program.  We prefer a C program (faster),
764 # so one script is as good as another.  But avoid the broken or
765 # incompatible versions:
766 # SysV /etc/install, /usr/sbin/install
767 # SunOS /usr/etc/install
768 # IRIX /sbin/install
769 # AIX /bin/install
770 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
771 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
772 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
773 # ./install, which can be erroneously created by make from ./install.sh.
774 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
775 echo "configure:776: checking for a BSD compatible install" >&5
776 if test -z "$INSTALL"; then
777 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
778   echo $ac_n "(cached) $ac_c" 1>&6
779 else
780     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
781   for ac_dir in $PATH; do
782     # Account for people who put trailing slashes in PATH elements.
783     case "$ac_dir/" in
784     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
785     *)
786       # OSF1 and SCO ODT 3.0 have their own names for install.
787       # Don't use installbsd from OSF since it installs stuff as root
788       # by default.
789       for ac_prog in ginstall scoinst install; do
790         if test -f $ac_dir/$ac_prog; then
791           if test $ac_prog = install &&
792             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
793             # AIX install.  It has an incompatible calling convention.
794             :
795           else
796             ac_cv_path_install="$ac_dir/$ac_prog -c"
797             break 2
798           fi
799         fi
800       done
801       ;;
802     esac
803   done
804   IFS="$ac_save_IFS"
805
806 fi
807   if test "${ac_cv_path_install+set}" = set; then
808     INSTALL="$ac_cv_path_install"
809   else
810     # As a last resort, use the slow shell script.  We don't cache a
811     # path for INSTALL within a source directory, because that will
812     # break other packages using the cache if that directory is
813     # removed, or if the path is relative.
814     INSTALL="$ac_install_sh"
815   fi
816 fi
817 echo "$ac_t""$INSTALL" 1>&6
818
819 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
820 # It thinks the first close brace ends the variable substitution.
821 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
822
823 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
824
825 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
826
827 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
828 echo "configure:829: checking whether build environment is sane" >&5
829 # Just in case
830 sleep 1
831 echo timestamp > conftestfile
832 # Do `set' in a subshell so we don't clobber the current shell's
833 # arguments.  Must try -L first in case configure is actually a
834 # symlink; some systems play weird games with the mod time of symlinks
835 # (eg FreeBSD returns the mod time of the symlink's containing
836 # directory).
837 if (
838    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
839    if test "$*" = "X"; then
840       # -L didn't work.
841       set X `ls -t $srcdir/configure conftestfile`
842    fi
843    if test "$*" != "X $srcdir/configure conftestfile" \
844       && test "$*" != "X conftestfile $srcdir/configure"; then
845
846       # If neither matched, then we have a broken ls.  This can happen
847       # if, for instance, CONFIG_SHELL is bash and it inherits a
848       # broken ls alias from the environment.  This has actually
849       # happened.  Such a system could not be considered "sane".
850       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
851 alias in your environment" 1>&2; exit 1; }
852    fi
853
854    test "$2" = conftestfile
855    )
856 then
857    # Ok.
858    :
859 else
860    { echo "configure: error: newly created file is older than distributed files!
861 Check your system clock" 1>&2; exit 1; }
862 fi
863 rm -f conftest*
864 echo "$ac_t""yes" 1>&6
865 if test "$program_transform_name" = s,x,x,; then
866   program_transform_name=
867 else
868   # Double any \ or $.  echo might interpret backslashes.
869   cat <<\EOF_SED > conftestsed
870 s,\\,\\\\,g; s,\$,$$,g
871 EOF_SED
872   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
873   rm -f conftestsed
874 fi
875 test "$program_prefix" != NONE &&
876   program_transform_name="s,^,${program_prefix},; $program_transform_name"
877 # Use a double $ so make ignores it.
878 test "$program_suffix" != NONE &&
879   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
880
881 # sed with no file args requires a program.
882 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
883
884 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
885 echo "configure:886: checking whether ${MAKE-make} sets \${MAKE}" >&5
886 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
887 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
888   echo $ac_n "(cached) $ac_c" 1>&6
889 else
890   cat > conftestmake <<\EOF
891 all:
892         @echo 'ac_maketemp="${MAKE}"'
893 EOF
894 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
895 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
896 if test -n "$ac_maketemp"; then
897   eval ac_cv_prog_make_${ac_make}_set=yes
898 else
899   eval ac_cv_prog_make_${ac_make}_set=no
900 fi
901 rm -f conftestmake
902 fi
903 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
904   echo "$ac_t""yes" 1>&6
905   SET_MAKE=
906 else
907   echo "$ac_t""no" 1>&6
908   SET_MAKE="MAKE=${MAKE-make}"
909 fi
910
911 if test $host != $build; then
912   ac_tool_prefix=${host_alias}-
913 else
914   ac_tool_prefix=
915 fi
916
917 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
918 echo "configure:919: checking for Cygwin environment" >&5
919 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
920   echo $ac_n "(cached) $ac_c" 1>&6
921 else
922   cat > conftest.$ac_ext <<EOF
923 #line 924 "configure"
924 #include "confdefs.h"
925
926 int main() {
927
928 #ifndef __CYGWIN__
929 #define __CYGWIN__ __CYGWIN32__
930 #endif
931 return __CYGWIN__;
932 ; return 0; }
933 EOF
934 if { (eval echo configure:935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
935   rm -rf conftest*
936   ac_cv_cygwin=yes
937 else
938   echo "configure: failed program was:" >&5
939   cat conftest.$ac_ext >&5
940   rm -rf conftest*
941   ac_cv_cygwin=no
942 fi
943 rm -f conftest*
944 rm -f conftest*
945 fi
946
947 echo "$ac_t""$ac_cv_cygwin" 1>&6
948 CYGWIN=
949 test "$ac_cv_cygwin" = yes && CYGWIN=yes
950 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
951 echo "configure:952: checking for mingw32 environment" >&5
952 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
953   echo $ac_n "(cached) $ac_c" 1>&6
954 else
955   cat > conftest.$ac_ext <<EOF
956 #line 957 "configure"
957 #include "confdefs.h"
958
959 int main() {
960 return __MINGW32__;
961 ; return 0; }
962 EOF
963 if { (eval echo configure:964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
964   rm -rf conftest*
965   ac_cv_mingw32=yes
966 else
967   echo "configure: failed program was:" >&5
968   cat conftest.$ac_ext >&5
969   rm -rf conftest*
970   ac_cv_mingw32=no
971 fi
972 rm -f conftest*
973 rm -f conftest*
974 fi
975
976 echo "$ac_t""$ac_cv_mingw32" 1>&6
977 MINGW32=
978 test "$ac_cv_mingw32" = yes && MINGW32=yes
979
980     # Check whether --enable-multilib or --disable-multilib was given.
981 if test "${enable_multilib+set}" = set; then
982   enableval="$enable_multilib"
983   case "${enableval}" in
984     yes) multilib=yes ;;
985     no)  multilib=no ;;
986     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
987    esac
988 else
989   multilib=yes
990 fi
991
992   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
993   
994
995   
996 PACKAGE=libstdc++
997
998 VERSION=3.0.0
999
1000 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1001   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1002 fi
1003 cat >> confdefs.h <<EOF
1004 #define PACKAGE "$PACKAGE"
1005 EOF
1006
1007 cat >> confdefs.h <<EOF
1008 #define VERSION "$VERSION"
1009 EOF
1010
1011
1012
1013 missing_dir=`cd $ac_aux_dir && pwd`
1014 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1015 echo "configure:1016: checking for working aclocal" >&5
1016 # Run test in a subshell; some versions of sh will print an error if
1017 # an executable is not found, even if stderr is redirected.
1018 # Redirect stdin to placate older versions of autoconf.  Sigh.
1019 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1020    ACLOCAL=aclocal
1021    echo "$ac_t""found" 1>&6
1022 else
1023    ACLOCAL="$missing_dir/missing aclocal"
1024    echo "$ac_t""missing" 1>&6
1025 fi
1026
1027 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1028 echo "configure:1029: checking for working autoconf" >&5
1029 # Run test in a subshell; some versions of sh will print an error if
1030 # an executable is not found, even if stderr is redirected.
1031 # Redirect stdin to placate older versions of autoconf.  Sigh.
1032 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1033    AUTOCONF=autoconf
1034    echo "$ac_t""found" 1>&6
1035 else
1036    AUTOCONF="$missing_dir/missing autoconf"
1037    echo "$ac_t""missing" 1>&6
1038 fi
1039
1040 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1041 echo "configure:1042: checking for working automake" >&5
1042 # Run test in a subshell; some versions of sh will print an error if
1043 # an executable is not found, even if stderr is redirected.
1044 # Redirect stdin to placate older versions of autoconf.  Sigh.
1045 if (automake --version) < /dev/null > /dev/null 2>&1; then
1046    AUTOMAKE=automake
1047    echo "$ac_t""found" 1>&6
1048 else
1049    AUTOMAKE="$missing_dir/missing automake"
1050    echo "$ac_t""missing" 1>&6
1051 fi
1052
1053 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1054 echo "configure:1055: checking for working autoheader" >&5
1055 # Run test in a subshell; some versions of sh will print an error if
1056 # an executable is not found, even if stderr is redirected.
1057 # Redirect stdin to placate older versions of autoconf.  Sigh.
1058 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1059    AUTOHEADER=autoheader
1060    echo "$ac_t""found" 1>&6
1061 else
1062    AUTOHEADER="$missing_dir/missing autoheader"
1063    echo "$ac_t""missing" 1>&6
1064 fi
1065
1066 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1067 echo "configure:1068: checking for working makeinfo" >&5
1068 # Run test in a subshell; some versions of sh will print an error if
1069 # an executable is not found, even if stderr is redirected.
1070 # Redirect stdin to placate older versions of autoconf.  Sigh.
1071 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1072    MAKEINFO=makeinfo
1073    echo "$ac_t""found" 1>&6
1074 else
1075    MAKEINFO="$missing_dir/missing makeinfo"
1076    echo "$ac_t""missing" 1>&6
1077 fi
1078
1079
1080
1081   # Never versions of autoconf add an underscore to these functions.
1082   # Prevent future problems ...
1083   
1084   
1085   
1086   
1087
1088 #  AC_PROG_CC
1089
1090 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1091 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1092 # are probably using a cross compiler, which will not be able to fully
1093 # link an executable.  This should really be fixed in autoconf
1094 # itself.
1095
1096
1097
1098
1099 # Extract the first word of "gcc", so it can be a program name with args.
1100 set dummy gcc; ac_word=$2
1101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1102 echo "configure:1103: checking for $ac_word" >&5
1103 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1104   echo $ac_n "(cached) $ac_c" 1>&6
1105 else
1106   if test -n "$CC"; then
1107   ac_cv_prog_CC="$CC" # Let the user override the test.
1108 else
1109   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1110   ac_dummy="$PATH"
1111   for ac_dir in $ac_dummy; do
1112     test -z "$ac_dir" && ac_dir=.
1113     if test -f $ac_dir/$ac_word; then
1114       ac_cv_prog_CC="gcc"
1115       break
1116     fi
1117   done
1118   IFS="$ac_save_ifs"
1119 fi
1120 fi
1121 CC="$ac_cv_prog_CC"
1122 if test -n "$CC"; then
1123   echo "$ac_t""$CC" 1>&6
1124 else
1125   echo "$ac_t""no" 1>&6
1126 fi
1127
1128 if test -z "$CC"; then
1129   # Extract the first word of "cc", so it can be a program name with args.
1130 set dummy cc; ac_word=$2
1131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1132 echo "configure:1133: checking for $ac_word" >&5
1133 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1134   echo $ac_n "(cached) $ac_c" 1>&6
1135 else
1136   if test -n "$CC"; then
1137   ac_cv_prog_CC="$CC" # Let the user override the test.
1138 else
1139   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1140   ac_prog_rejected=no
1141   ac_dummy="$PATH"
1142   for ac_dir in $ac_dummy; do
1143     test -z "$ac_dir" && ac_dir=.
1144     if test -f $ac_dir/$ac_word; then
1145       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1146         ac_prog_rejected=yes
1147         continue
1148       fi
1149       ac_cv_prog_CC="cc"
1150       break
1151     fi
1152   done
1153   IFS="$ac_save_ifs"
1154 if test $ac_prog_rejected = yes; then
1155   # We found a bogon in the path, so make sure we never use it.
1156   set dummy $ac_cv_prog_CC
1157   shift
1158   if test $# -gt 0; then
1159     # We chose a different compiler from the bogus one.
1160     # However, it has the same basename, so the bogon will be chosen
1161     # first if we set CC to just the basename; use the full file name.
1162     shift
1163     set dummy "$ac_dir/$ac_word" "$@"
1164     shift
1165     ac_cv_prog_CC="$@"
1166   fi
1167 fi
1168 fi
1169 fi
1170 CC="$ac_cv_prog_CC"
1171 if test -n "$CC"; then
1172   echo "$ac_t""$CC" 1>&6
1173 else
1174   echo "$ac_t""no" 1>&6
1175 fi
1176
1177   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1178 fi
1179
1180 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1181 echo "configure:1182: checking whether we are using GNU C" >&5
1182 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1183   echo $ac_n "(cached) $ac_c" 1>&6
1184 else
1185   cat > conftest.c <<EOF
1186 #ifdef __GNUC__
1187   yes;
1188 #endif
1189 EOF
1190 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1191   ac_cv_prog_gcc=yes
1192 else
1193   ac_cv_prog_gcc=no
1194 fi
1195 fi
1196
1197 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1198
1199 if test $ac_cv_prog_gcc = yes; then
1200   GCC=yes
1201   ac_test_CFLAGS="${CFLAGS+set}"
1202   ac_save_CFLAGS="$CFLAGS"
1203   CFLAGS=
1204   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1205 echo "configure:1206: checking whether ${CC-cc} accepts -g" >&5
1206 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1207   echo $ac_n "(cached) $ac_c" 1>&6
1208 else
1209   echo 'void f(){}' > conftest.c
1210 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1211   ac_cv_prog_cc_g=yes
1212 else
1213   ac_cv_prog_cc_g=no
1214 fi
1215 rm -f conftest*
1216
1217 fi
1218
1219 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1220   if test "$ac_test_CFLAGS" = set; then
1221     CFLAGS="$ac_save_CFLAGS"
1222   elif test $ac_cv_prog_cc_g = yes; then
1223     CFLAGS="-g -O2"
1224   else
1225     CFLAGS="-O2"
1226   fi
1227 else
1228   GCC=
1229   test "${CFLAGS+set}" = set || CFLAGS="-g"
1230 fi
1231
1232
1233 # Can't just call these here as g++ requires libstc++ to be built....
1234 #  AC_PROG_CXX
1235
1236 # Likewise for AC_PROG_CXX.
1237
1238
1239
1240 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1241 # flags that come in CXX while configuring libstdc++.  They're different
1242 # from those used for all other target libraries.  If CXX is set in
1243 # the environment, respect that here.
1244 glibcpp_CXX=$CXX
1245 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1246 do
1247 # Extract the first word of "$ac_prog", so it can be a program name with args.
1248 set dummy $ac_prog; ac_word=$2
1249 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1250 echo "configure:1251: checking for $ac_word" >&5
1251 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1252   echo $ac_n "(cached) $ac_c" 1>&6
1253 else
1254   if test -n "$glibcpp_CXX"; then
1255   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1256 else
1257   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1258   ac_dummy="$PATH"
1259   for ac_dir in $ac_dummy; do
1260     test -z "$ac_dir" && ac_dir=.
1261     if test -f $ac_dir/$ac_word; then
1262       ac_cv_prog_glibcpp_CXX="$ac_prog"
1263       break
1264     fi
1265   done
1266   IFS="$ac_save_ifs"
1267 fi
1268 fi
1269 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1270 if test -n "$glibcpp_CXX"; then
1271   echo "$ac_t""$glibcpp_CXX" 1>&6
1272 else
1273   echo "$ac_t""no" 1>&6
1274 fi
1275
1276 test -n "$glibcpp_CXX" && break
1277 done
1278 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1279
1280
1281 CXX=$glibcpp_CXX
1282 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1283
1284 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1285 echo "configure:1286: checking whether we are using GNU C++" >&5
1286 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1287   echo $ac_n "(cached) $ac_c" 1>&6
1288 else
1289   cat > conftest.C <<EOF
1290 #ifdef __GNUC__
1291   yes;
1292 #endif
1293 EOF
1294 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1295   ac_cv_prog_gxx=yes
1296 else
1297   ac_cv_prog_gxx=no
1298 fi
1299 fi
1300
1301 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1302
1303 if test $ac_cv_prog_gxx = yes; then
1304   GXX=yes
1305   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1306   ac_save_CXXFLAGS="$CXXFLAGS"
1307   CXXFLAGS=
1308   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1309 echo "configure:1310: checking whether ${CXX-g++} accepts -g" >&5
1310 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1311   echo $ac_n "(cached) $ac_c" 1>&6
1312 else
1313   echo 'void f(){}' > conftest.cc
1314 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1315   ac_cv_prog_cxx_g=yes
1316 else
1317   ac_cv_prog_cxx_g=no
1318 fi
1319 rm -f conftest*
1320
1321 fi
1322
1323 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1324   if test "$ac_test_CXXFLAGS" = set; then
1325     CXXFLAGS="$ac_save_CXXFLAGS"
1326   elif test $ac_cv_prog_cxx_g = yes; then
1327     CXXFLAGS="-g -O2"
1328   else
1329     CXXFLAGS="-O2"
1330   fi
1331 else
1332   GXX=
1333   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1334 fi
1335
1336
1337   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1338 set dummy ${ac_tool_prefix}as; ac_word=$2
1339 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1340 echo "configure:1341: checking for $ac_word" >&5
1341 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1342   echo $ac_n "(cached) $ac_c" 1>&6
1343 else
1344   if test -n "$AS"; then
1345   ac_cv_prog_AS="$AS" # Let the user override the test.
1346 else
1347   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1348   ac_dummy="$PATH"
1349   for ac_dir in $ac_dummy; do
1350     test -z "$ac_dir" && ac_dir=.
1351     if test -f $ac_dir/$ac_word; then
1352       ac_cv_prog_AS="${ac_tool_prefix}as"
1353       break
1354     fi
1355   done
1356   IFS="$ac_save_ifs"
1357   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1358 fi
1359 fi
1360 AS="$ac_cv_prog_AS"
1361 if test -n "$AS"; then
1362   echo "$ac_t""$AS" 1>&6
1363 else
1364   echo "$ac_t""no" 1>&6
1365 fi
1366
1367
1368
1369   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1370 set dummy ${ac_tool_prefix}ar; ac_word=$2
1371 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1372 echo "configure:1373: checking for $ac_word" >&5
1373 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1374   echo $ac_n "(cached) $ac_c" 1>&6
1375 else
1376   if test -n "$AR"; then
1377   ac_cv_prog_AR="$AR" # Let the user override the test.
1378 else
1379   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1380   ac_dummy="$PATH"
1381   for ac_dir in $ac_dummy; do
1382     test -z "$ac_dir" && ac_dir=.
1383     if test -f $ac_dir/$ac_word; then
1384       ac_cv_prog_AR="${ac_tool_prefix}ar"
1385       break
1386     fi
1387   done
1388   IFS="$ac_save_ifs"
1389   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1390 fi
1391 fi
1392 AR="$ac_cv_prog_AR"
1393 if test -n "$AR"; then
1394   echo "$ac_t""$AR" 1>&6
1395 else
1396   echo "$ac_t""no" 1>&6
1397 fi
1398
1399
1400
1401   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1402 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1403 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1404 echo "configure:1405: checking for $ac_word" >&5
1405 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1406   echo $ac_n "(cached) $ac_c" 1>&6
1407 else
1408   if test -n "$RANLIB"; then
1409   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1410 else
1411   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1412   ac_dummy="$PATH"
1413   for ac_dir in $ac_dummy; do
1414     test -z "$ac_dir" && ac_dir=.
1415     if test -f $ac_dir/$ac_word; then
1416       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1417       break
1418     fi
1419   done
1420   IFS="$ac_save_ifs"
1421 fi
1422 fi
1423 RANLIB="$ac_cv_prog_RANLIB"
1424 if test -n "$RANLIB"; then
1425   echo "$ac_t""$RANLIB" 1>&6
1426 else
1427   echo "$ac_t""no" 1>&6
1428 fi
1429
1430
1431 if test -z "$ac_cv_prog_RANLIB"; then
1432 if test -n "$ac_tool_prefix"; then
1433   # Extract the first word of "ranlib", so it can be a program name with args.
1434 set dummy ranlib; ac_word=$2
1435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1436 echo "configure:1437: checking for $ac_word" >&5
1437 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1438   echo $ac_n "(cached) $ac_c" 1>&6
1439 else
1440   if test -n "$RANLIB"; then
1441   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1442 else
1443   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1444   ac_dummy="$PATH"
1445   for ac_dir in $ac_dummy; do
1446     test -z "$ac_dir" && ac_dir=.
1447     if test -f $ac_dir/$ac_word; then
1448       ac_cv_prog_RANLIB="ranlib"
1449       break
1450     fi
1451   done
1452   IFS="$ac_save_ifs"
1453   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1454 fi
1455 fi
1456 RANLIB="$ac_cv_prog_RANLIB"
1457 if test -n "$RANLIB"; then
1458   echo "$ac_t""$RANLIB" 1>&6
1459 else
1460   echo "$ac_t""no" 1>&6
1461 fi
1462
1463 else
1464   RANLIB="ranlib-not-found-in-path-error"
1465 fi
1466 fi
1467
1468   # Find a good install program.  We prefer a C program (faster),
1469 # so one script is as good as another.  But avoid the broken or
1470 # incompatible versions:
1471 # SysV /etc/install, /usr/sbin/install
1472 # SunOS /usr/etc/install
1473 # IRIX /sbin/install
1474 # AIX /bin/install
1475 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1476 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1477 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1478 # ./install, which can be erroneously created by make from ./install.sh.
1479 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1480 echo "configure:1481: checking for a BSD compatible install" >&5
1481 if test -z "$INSTALL"; then
1482 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1483   echo $ac_n "(cached) $ac_c" 1>&6
1484 else
1485     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1486   for ac_dir in $PATH; do
1487     # Account for people who put trailing slashes in PATH elements.
1488     case "$ac_dir/" in
1489     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1490     *)
1491       # OSF1 and SCO ODT 3.0 have their own names for install.
1492       # Don't use installbsd from OSF since it installs stuff as root
1493       # by default.
1494       for ac_prog in ginstall scoinst install; do
1495         if test -f $ac_dir/$ac_prog; then
1496           if test $ac_prog = install &&
1497             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1498             # AIX install.  It has an incompatible calling convention.
1499             :
1500           else
1501             ac_cv_path_install="$ac_dir/$ac_prog -c"
1502             break 2
1503           fi
1504         fi
1505       done
1506       ;;
1507     esac
1508   done
1509   IFS="$ac_save_IFS"
1510
1511 fi
1512   if test "${ac_cv_path_install+set}" = set; then
1513     INSTALL="$ac_cv_path_install"
1514   else
1515     # As a last resort, use the slow shell script.  We don't cache a
1516     # path for INSTALL within a source directory, because that will
1517     # break other packages using the cache if that directory is
1518     # removed, or if the path is relative.
1519     INSTALL="$ac_install_sh"
1520   fi
1521 fi
1522 echo "$ac_t""$INSTALL" 1>&6
1523
1524 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1525 # It thinks the first close brace ends the variable substitution.
1526 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1527
1528 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1529
1530 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1531
1532
1533   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1534 echo "configure:1535: checking whether to enable maintainer-specific portions of Makefiles" >&5
1535     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537   enableval="$enable_maintainer_mode"
1538   USE_MAINTAINER_MODE=$enableval
1539 else
1540   USE_MAINTAINER_MODE=no
1541 fi
1542
1543   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1544   
1545
1546 if test $USE_MAINTAINER_MODE = yes; then
1547   MAINTAINER_MODE_TRUE=
1548   MAINTAINER_MODE_FALSE='#'
1549 else
1550   MAINTAINER_MODE_TRUE='#'
1551   MAINTAINER_MODE_FALSE=
1552 fi
1553   MAINT=$MAINTAINER_MODE_TRUE
1554   
1555
1556
1557   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1558   # at least currently, we never actually build a program, so we never
1559   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1560   # fails, because we are probably configuring with a cross compiler
1561   # which cant create executables.  So we include AC_EXEEXT to keep
1562   # automake happy, but we dont execute it, since we dont care about
1563   # the result.
1564   if false; then
1565     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1566     # to nothing, so nothing would remain between `then' and `fi' if it
1567     # were not for the `:' below.
1568     :
1569     
1570
1571 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1572 echo "configure:1573: checking for executable suffix" >&5
1573 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1574   echo $ac_n "(cached) $ac_c" 1>&6
1575 else
1576   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1577   ac_cv_exeext=.exe
1578 else
1579   rm -f conftest*
1580   echo 'int main () { return 0; }' > conftest.$ac_ext
1581   ac_cv_exeext=
1582   if { (eval echo configure:1583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1583     for file in conftest.*; do
1584       case $file in
1585       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1586       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1587       esac
1588     done
1589   else
1590     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1591   fi
1592   rm -f conftest*
1593   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1594 fi
1595 fi
1596
1597 EXEEXT=""
1598 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1599 echo "$ac_t""${ac_cv_exeext}" 1>&6
1600 ac_exeext=$EXEEXT
1601
1602   fi
1603
1604   . ${glibcpp_basedir}/configure.host
1605
1606   case ${glibcpp_basedir} in
1607     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1608     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1609   esac
1610
1611   # This does for the target what configure.host does for the host.  In
1612   # addition to possibly modifying the same flags, it also sets up symlinks.
1613   
1614     . ${glibcpp_basedir}/configure.target
1615     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1616     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1617
1618
1619
1620
1621 # Check whether --enable-shared or --disable-shared was given.
1622 if test "${enable_shared+set}" = set; then
1623   enableval="$enable_shared"
1624   p=${PACKAGE-default}
1625 case $enableval in
1626 yes) enable_shared=yes ;;
1627 no) enable_shared=no ;;
1628 *)
1629   enable_shared=no
1630   # Look at the argument we got.  We use all the common list separators.
1631   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1632   for pkg in $enableval; do
1633     if test "X$pkg" = "X$p"; then
1634       enable_shared=yes
1635     fi
1636   done
1637   IFS="$ac_save_ifs"
1638   ;;
1639 esac
1640 else
1641   enable_shared=yes
1642 fi
1643
1644 # Check whether --enable-static or --disable-static was given.
1645 if test "${enable_static+set}" = set; then
1646   enableval="$enable_static"
1647   p=${PACKAGE-default}
1648 case $enableval in
1649 yes) enable_static=yes ;;
1650 no) enable_static=no ;;
1651 *)
1652   enable_static=no
1653   # Look at the argument we got.  We use all the common list separators.
1654   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1655   for pkg in $enableval; do
1656     if test "X$pkg" = "X$p"; then
1657       enable_static=yes
1658     fi
1659   done
1660   IFS="$ac_save_ifs"
1661   ;;
1662 esac
1663 else
1664   enable_static=yes
1665 fi
1666
1667 # Check whether --enable-fast-install or --disable-fast-install was given.
1668 if test "${enable_fast_install+set}" = set; then
1669   enableval="$enable_fast_install"
1670   p=${PACKAGE-default}
1671 case $enableval in
1672 yes) enable_fast_install=yes ;;
1673 no) enable_fast_install=no ;;
1674 *)
1675   enable_fast_install=no
1676   # Look at the argument we got.  We use all the common list separators.
1677   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1678   for pkg in $enableval; do
1679     if test "X$pkg" = "X$p"; then
1680       enable_fast_install=yes
1681     fi
1682   done
1683   IFS="$ac_save_ifs"
1684   ;;
1685 esac
1686 else
1687   enable_fast_install=yes
1688 fi
1689
1690 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1691 if test "${with_gnu_ld+set}" = set; then
1692   withval="$with_gnu_ld"
1693   test "$withval" = no || with_gnu_ld=yes
1694 else
1695   with_gnu_ld=no
1696 fi
1697
1698 ac_prog=ld
1699 if test "$GCC" = yes; then
1700   # Check if gcc -print-prog-name=ld gives a path.
1701   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1702 echo "configure:1703: checking for ld used by GCC" >&5
1703   case $host in
1704   *-*-mingw*)
1705     # gcc leaves a trailing carriage return which upsets mingw
1706     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1707   *)
1708     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1709   esac
1710   case $ac_prog in
1711     # Accept absolute paths.
1712     [\\/]* | [A-Za-z]:[\\/]*)
1713       re_direlt='/[^/][^/]*/\.\./'
1714       # Canonicalize the path of ld
1715       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1716       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1717         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1718       done
1719       test -z "$LD" && LD="$ac_prog"
1720       ;;
1721   "")
1722     # If it fails, then pretend we aren't using GCC.
1723     ac_prog=ld
1724     ;;
1725   *)
1726     # If it is relative, then search for the first ld in PATH.
1727     with_gnu_ld=unknown
1728     ;;
1729   esac
1730 elif test "$with_gnu_ld" = yes; then
1731   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1732 echo "configure:1733: checking for GNU ld" >&5
1733 else
1734   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1735 echo "configure:1736: checking for non-GNU ld" >&5
1736 fi
1737 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1738   echo $ac_n "(cached) $ac_c" 1>&6
1739 else
1740   if test -z "$LD"; then
1741   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1742   for ac_dir in $PATH; do
1743     test -z "$ac_dir" && ac_dir=.
1744     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1745       lt_cv_path_LD="$ac_dir/$ac_prog"
1746       # Check to see if the program is GNU ld.  I'd rather use --version,
1747       # but apparently some GNU ld's only accept -v.
1748       # Break only if it was the GNU/non-GNU ld that we prefer.
1749       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1750         test "$with_gnu_ld" != no && break
1751       else
1752         test "$with_gnu_ld" != yes && break
1753       fi
1754     fi
1755   done
1756   IFS="$ac_save_ifs"
1757 else
1758   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1759 fi
1760 fi
1761
1762 LD="$lt_cv_path_LD"
1763 if test -n "$LD"; then
1764   echo "$ac_t""$LD" 1>&6
1765 else
1766   echo "$ac_t""no" 1>&6
1767 fi
1768 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1769 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1770 echo "configure:1771: checking if the linker ($LD) is GNU ld" >&5
1771 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1772   echo $ac_n "(cached) $ac_c" 1>&6
1773 else
1774   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1775 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1776   lt_cv_prog_gnu_ld=yes
1777 else
1778   lt_cv_prog_gnu_ld=no
1779 fi
1780 fi
1781
1782 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1783 with_gnu_ld=$lt_cv_prog_gnu_ld
1784
1785
1786 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1787 echo "configure:1788: checking for $LD option to reload object files" >&5
1788 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1789   echo $ac_n "(cached) $ac_c" 1>&6
1790 else
1791   lt_cv_ld_reload_flag='-r'
1792 fi
1793
1794 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1795 reload_flag=$lt_cv_ld_reload_flag
1796 test -n "$reload_flag" && reload_flag=" $reload_flag"
1797
1798 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1799 echo "configure:1800: checking for BSD-compatible nm" >&5
1800 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1801   echo $ac_n "(cached) $ac_c" 1>&6
1802 else
1803   if test -n "$NM"; then
1804   # Let the user override the test.
1805   lt_cv_path_NM="$NM"
1806 else
1807   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1808   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1809     test -z "$ac_dir" && ac_dir=.
1810     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1811     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1812       # Check to see if the nm accepts a BSD-compat flag.
1813       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1814       #   nm: unknown option "B" ignored
1815       # Tru64's nm complains that /dev/null is an invalid object file
1816       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1817         lt_cv_path_NM="$tmp_nm -B"
1818         break
1819       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1820         lt_cv_path_NM="$tmp_nm -p"
1821         break
1822       else
1823         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1824         continue # so that we can try to find one that supports BSD flags
1825       fi
1826     fi
1827   done
1828   IFS="$ac_save_ifs"
1829   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1830 fi
1831 fi
1832
1833 NM="$lt_cv_path_NM"
1834 echo "$ac_t""$NM" 1>&6
1835
1836 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1837 echo "configure:1838: checking how to recognise dependant libraries" >&5
1838 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1839   echo $ac_n "(cached) $ac_c" 1>&6
1840 else
1841   lt_cv_file_magic_cmd='$MAGIC_CMD'
1842 lt_cv_file_magic_test_file=
1843 lt_cv_deplibs_check_method='unknown'
1844 # Need to set the preceding variable on all platforms that support
1845 # interlibrary dependencies.
1846 # 'none' -- dependencies not supported.
1847 # `unknown' -- same as none, but documents that we really don't know.
1848 # 'pass_all' -- all dependencies passed with no checks.
1849 # 'test_compile' -- check by making test program.
1850 # 'file_magic [regex]' -- check by looking for files in library path
1851 # which responds to the $file_magic_cmd with a given egrep regex.
1852 # If you have `file' or equivalent on your system and you're not sure
1853 # whether `pass_all' will *always* work, you probably want this one.
1854
1855 case $host_os in
1856 aix*)
1857   lt_cv_deplibs_check_method=pass_all
1858   ;;
1859
1860 beos*)
1861   lt_cv_deplibs_check_method=pass_all
1862   ;;
1863
1864 bsdi4*)
1865   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1866   lt_cv_file_magic_cmd='/usr/bin/file -L'
1867   lt_cv_file_magic_test_file=/shlib/libc.so
1868   ;;
1869
1870 cygwin* | mingw* |pw32*)
1871   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1872   lt_cv_file_magic_cmd='$OBJDUMP -f'
1873   ;;
1874
1875 darwin* | rhapsody*)
1876   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1877   lt_cv_file_magic_cmd='/usr/bin/file -L'
1878   case "$host_os" in
1879   rhapsody* | darwin1.012)
1880     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1881     ;;
1882   *) # Darwin 1.3 on
1883     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1884     ;;
1885   esac
1886   ;;
1887
1888 freebsd* )
1889   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1890     case $host_cpu in
1891     i*86 )
1892       # Not sure whether the presence of OpenBSD here was a mistake.
1893       # Let's accept both of them until this is cleared up.
1894       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1895       lt_cv_file_magic_cmd=/usr/bin/file
1896       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1897       ;;
1898     esac
1899   else
1900     lt_cv_deplibs_check_method=pass_all
1901   fi
1902   ;;
1903
1904 gnu*)
1905   lt_cv_deplibs_check_method=pass_all
1906   ;;
1907
1908 hpux10.20*|hpux11*)
1909   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1910   lt_cv_file_magic_cmd=/usr/bin/file
1911   lt_cv_file_magic_test_file=/usr/lib/libc.sl
1912   ;;
1913
1914 irix5* | irix6*)
1915   case $host_os in
1916   irix5*)
1917     # this will be overridden with pass_all, but let us keep it just in case
1918     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1919     ;;
1920   *)
1921     case $LD in
1922     *-32|*"-32 ") libmagic=32-bit;;
1923     *-n32|*"-n32 ") libmagic=N32;;
1924     *-64|*"-64 ") libmagic=64-bit;;
1925     *) libmagic=never-match;;
1926     esac
1927     # this will be overridden with pass_all, but let us keep it just in case
1928     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1929     ;;
1930   esac
1931   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1932   lt_cv_deplibs_check_method=pass_all
1933   ;;
1934
1935 # This must be Linux ELF.
1936 linux-gnu*)
1937   case $host_cpu in
1938   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1939     lt_cv_deplibs_check_method=pass_all ;;
1940   *)
1941     # glibc up to 2.1.1 does not perform some relocations on ARM
1942     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1943   esac
1944   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1945   ;;
1946
1947 netbsd*)
1948   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1949     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1950   else
1951     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1952   fi
1953   ;;
1954
1955 newsos6)
1956   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1957   lt_cv_file_magic_cmd=/usr/bin/file
1958   lt_cv_file_magic_test_file=/usr/lib/libnls.so
1959   ;;
1960
1961 osf3* | osf4* | osf5*)
1962   # this will be overridden with pass_all, but let us keep it just in case
1963   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1964   lt_cv_file_magic_test_file=/shlib/libc.so
1965   lt_cv_deplibs_check_method=pass_all
1966   ;;
1967
1968 sco3.2v5*)
1969   lt_cv_deplibs_check_method=pass_all
1970   ;;
1971
1972 solaris*)
1973   lt_cv_deplibs_check_method=pass_all
1974   lt_cv_file_magic_test_file=/lib/libc.so
1975   ;;
1976
1977 sysv5uw[78]* | sysv4*uw2*)
1978   lt_cv_deplibs_check_method=pass_all
1979   ;;
1980
1981 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1982   case $host_vendor in
1983   ncr)
1984     lt_cv_deplibs_check_method=pass_all
1985     ;;
1986   motorola)
1987     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]'
1988     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1989     ;;
1990   esac
1991   ;;
1992 esac
1993
1994 fi
1995
1996 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1997 file_magic_cmd=$lt_cv_file_magic_cmd
1998 deplibs_check_method=$lt_cv_deplibs_check_method
1999
2000 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2001 echo "configure:2002: checking for object suffix" >&5
2002 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2003   echo $ac_n "(cached) $ac_c" 1>&6
2004 else
2005   rm -f conftest*
2006 echo 'int i = 1;' > conftest.$ac_ext
2007 if { (eval echo configure:2008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2008   for ac_file in conftest.*; do
2009     case $ac_file in
2010     *.c) ;;
2011     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2012     esac
2013   done
2014 else
2015   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2016 fi
2017 rm -f conftest*
2018 fi
2019
2020 echo "$ac_t""$ac_cv_objext" 1>&6
2021 OBJEXT=$ac_cv_objext
2022 ac_objext=$ac_cv_objext
2023
2024 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2025
2026 # Only perform the check for file, if the check method requires it
2027 case $deplibs_check_method in
2028 file_magic*)
2029   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2030     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2031 echo "configure:2032: checking for ${ac_tool_prefix}file" >&5
2032 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2033   echo $ac_n "(cached) $ac_c" 1>&6
2034 else
2035   case $MAGIC_CMD in
2036   /*)
2037   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2038   ;;
2039   ?:/*)
2040   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2041   ;;
2042   *)
2043   ac_save_MAGIC_CMD="$MAGIC_CMD"
2044   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2045   ac_dummy="/usr/bin:$PATH"
2046   for ac_dir in $ac_dummy; do
2047     test -z "$ac_dir" && ac_dir=.
2048     if test -f $ac_dir/${ac_tool_prefix}file; then
2049       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2050       if test -n "$file_magic_test_file"; then
2051         case $deplibs_check_method in
2052         "file_magic "*)
2053           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2054           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2055           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2056             egrep "$file_magic_regex" > /dev/null; then
2057             :
2058           else
2059             cat <<EOF 1>&2
2060
2061 *** Warning: the command libtool uses to detect shared libraries,
2062 *** $file_magic_cmd, produces output that libtool cannot recognize.
2063 *** The result is that libtool may fail to recognize shared libraries
2064 *** as such.  This will affect the creation of libtool libraries that
2065 *** depend on shared libraries, but programs linked with such libtool
2066 *** libraries will work regardless of this problem.  Nevertheless, you
2067 *** may want to report the problem to your system manager and/or to
2068 *** bug-libtool@gnu.org
2069
2070 EOF
2071           fi ;;
2072         esac
2073       fi
2074       break
2075     fi
2076   done
2077   IFS="$ac_save_ifs"
2078   MAGIC_CMD="$ac_save_MAGIC_CMD"
2079   ;;
2080 esac
2081 fi
2082
2083 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2084 if test -n "$MAGIC_CMD"; then
2085   echo "$ac_t""$MAGIC_CMD" 1>&6
2086 else
2087   echo "$ac_t""no" 1>&6
2088 fi
2089
2090 if test -z "$lt_cv_path_MAGIC_CMD"; then
2091   if test -n "$ac_tool_prefix"; then
2092     echo $ac_n "checking for file""... $ac_c" 1>&6
2093 echo "configure:2094: checking for file" >&5
2094 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2095   echo $ac_n "(cached) $ac_c" 1>&6
2096 else
2097   case $MAGIC_CMD in
2098   /*)
2099   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2100   ;;
2101   ?:/*)
2102   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2103   ;;
2104   *)
2105   ac_save_MAGIC_CMD="$MAGIC_CMD"
2106   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2107   ac_dummy="/usr/bin:$PATH"
2108   for ac_dir in $ac_dummy; do
2109     test -z "$ac_dir" && ac_dir=.
2110     if test -f $ac_dir/file; then
2111       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2112       if test -n "$file_magic_test_file"; then
2113         case $deplibs_check_method in
2114         "file_magic "*)
2115           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2116           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2117           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2118             egrep "$file_magic_regex" > /dev/null; then
2119             :
2120           else
2121             cat <<EOF 1>&2
2122
2123 *** Warning: the command libtool uses to detect shared libraries,
2124 *** $file_magic_cmd, produces output that libtool cannot recognize.
2125 *** The result is that libtool may fail to recognize shared libraries
2126 *** as such.  This will affect the creation of libtool libraries that
2127 *** depend on shared libraries, but programs linked with such libtool
2128 *** libraries will work regardless of this problem.  Nevertheless, you
2129 *** may want to report the problem to your system manager and/or to
2130 *** bug-libtool@gnu.org
2131
2132 EOF
2133           fi ;;
2134         esac
2135       fi
2136       break
2137     fi
2138   done
2139   IFS="$ac_save_ifs"
2140   MAGIC_CMD="$ac_save_MAGIC_CMD"
2141   ;;
2142 esac
2143 fi
2144
2145 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2146 if test -n "$MAGIC_CMD"; then
2147   echo "$ac_t""$MAGIC_CMD" 1>&6
2148 else
2149   echo "$ac_t""no" 1>&6
2150 fi
2151
2152   else
2153     MAGIC_CMD=:
2154   fi
2155 fi
2156
2157   fi
2158   ;;
2159 esac
2160
2161 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2162 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2163 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2164 echo "configure:2165: checking for $ac_word" >&5
2165 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2166   echo $ac_n "(cached) $ac_c" 1>&6
2167 else
2168   if test -n "$RANLIB"; then
2169   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2170 else
2171   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2172   ac_dummy="$PATH"
2173   for ac_dir in $ac_dummy; do
2174     test -z "$ac_dir" && ac_dir=.
2175     if test -f $ac_dir/$ac_word; then
2176       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2177       break
2178     fi
2179   done
2180   IFS="$ac_save_ifs"
2181 fi
2182 fi
2183 RANLIB="$ac_cv_prog_RANLIB"
2184 if test -n "$RANLIB"; then
2185   echo "$ac_t""$RANLIB" 1>&6
2186 else
2187   echo "$ac_t""no" 1>&6
2188 fi
2189
2190
2191 if test -z "$ac_cv_prog_RANLIB"; then
2192 if test -n "$ac_tool_prefix"; then
2193   # Extract the first word of "ranlib", so it can be a program name with args.
2194 set dummy ranlib; ac_word=$2
2195 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2196 echo "configure:2197: checking for $ac_word" >&5
2197 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2198   echo $ac_n "(cached) $ac_c" 1>&6
2199 else
2200   if test -n "$RANLIB"; then
2201   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2202 else
2203   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2204   ac_dummy="$PATH"
2205   for ac_dir in $ac_dummy; do
2206     test -z "$ac_dir" && ac_dir=.
2207     if test -f $ac_dir/$ac_word; then
2208       ac_cv_prog_RANLIB="ranlib"
2209       break
2210     fi
2211   done
2212   IFS="$ac_save_ifs"
2213   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2214 fi
2215 fi
2216 RANLIB="$ac_cv_prog_RANLIB"
2217 if test -n "$RANLIB"; then
2218   echo "$ac_t""$RANLIB" 1>&6
2219 else
2220   echo "$ac_t""no" 1>&6
2221 fi
2222
2223 else
2224   RANLIB=":"
2225 fi
2226 fi
2227
2228 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2229 set dummy ${ac_tool_prefix}strip; ac_word=$2
2230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2231 echo "configure:2232: checking for $ac_word" >&5
2232 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2233   echo $ac_n "(cached) $ac_c" 1>&6
2234 else
2235   if test -n "$STRIP"; then
2236   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2237 else
2238   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2239   ac_dummy="$PATH"
2240   for ac_dir in $ac_dummy; do
2241     test -z "$ac_dir" && ac_dir=.
2242     if test -f $ac_dir/$ac_word; then
2243       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2244       break
2245     fi
2246   done
2247   IFS="$ac_save_ifs"
2248 fi
2249 fi
2250 STRIP="$ac_cv_prog_STRIP"
2251 if test -n "$STRIP"; then
2252   echo "$ac_t""$STRIP" 1>&6
2253 else
2254   echo "$ac_t""no" 1>&6
2255 fi
2256
2257
2258 if test -z "$ac_cv_prog_STRIP"; then
2259 if test -n "$ac_tool_prefix"; then
2260   # Extract the first word of "strip", so it can be a program name with args.
2261 set dummy strip; ac_word=$2
2262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2263 echo "configure:2264: checking for $ac_word" >&5
2264 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2265   echo $ac_n "(cached) $ac_c" 1>&6
2266 else
2267   if test -n "$STRIP"; then
2268   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2269 else
2270   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2271   ac_dummy="$PATH"
2272   for ac_dir in $ac_dummy; do
2273     test -z "$ac_dir" && ac_dir=.
2274     if test -f $ac_dir/$ac_word; then
2275       ac_cv_prog_STRIP="strip"
2276       break
2277     fi
2278   done
2279   IFS="$ac_save_ifs"
2280   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2281 fi
2282 fi
2283 STRIP="$ac_cv_prog_STRIP"
2284 if test -n "$STRIP"; then
2285   echo "$ac_t""$STRIP" 1>&6
2286 else
2287   echo "$ac_t""no" 1>&6
2288 fi
2289
2290 else
2291   STRIP=":"
2292 fi
2293 fi
2294
2295
2296 # Check for any special flags to pass to ltconfig.
2297 libtool_flags="--cache-file=$cache_file"
2298 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2299 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2300 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2301 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2302 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2303 libtool_flags="$libtool_flags --enable-dlopen"
2304
2305 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2306 if test "${enable_libtool_lock+set}" = set; then
2307   enableval="$enable_libtool_lock"
2308   :
2309 fi
2310
2311 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2312 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2313
2314 # Check whether --with-pic or --without-pic was given.
2315 if test "${with_pic+set}" = set; then
2316   withval="$with_pic"
2317   pic_mode="$withval"
2318 else
2319   pic_mode=default
2320 fi
2321
2322 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2323 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2324
2325 # Some flags need to be propagated to the compiler or linker for good
2326 # libtool support.
2327 case $host in
2328 *-*-irix6*)
2329   # Find out which ABI we are using.
2330   echo '#line 2331 "configure"' > conftest.$ac_ext
2331   if { (eval echo configure:2332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2332     case `/usr/bin/file conftest.$ac_objext` in
2333     *32-bit*)
2334       LD="${LD-ld} -32"
2335       ;;
2336     *N32*)
2337       LD="${LD-ld} -n32"
2338       ;;
2339     *64-bit*)
2340       LD="${LD-ld} -64"
2341       ;;
2342     esac
2343   fi
2344   rm -rf conftest*
2345   ;;
2346
2347 *-*-sco3.2v5*)
2348   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2349   SAVE_CFLAGS="$CFLAGS"
2350   CFLAGS="$CFLAGS -belf"
2351   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2352 echo "configure:2353: checking whether the C compiler needs -belf" >&5
2353 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2354   echo $ac_n "(cached) $ac_c" 1>&6
2355 else
2356   
2357      ac_ext=c
2358 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2359 ac_cpp='$CPP $CPPFLAGS'
2360 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2361 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2362 cross_compiling=$ac_cv_prog_cc_cross
2363
2364      cat > conftest.$ac_ext <<EOF
2365 #line 2366 "configure"
2366 #include "confdefs.h"
2367
2368 int main() {
2369
2370 ; return 0; }
2371 EOF
2372 if { (eval echo configure:2373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2373   rm -rf conftest*
2374   lt_cv_cc_needs_belf=yes
2375 else
2376   echo "configure: failed program was:" >&5
2377   cat conftest.$ac_ext >&5
2378   rm -rf conftest*
2379   lt_cv_cc_needs_belf=no
2380 fi
2381 rm -f conftest*
2382      ac_ext=c
2383 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2384 ac_cpp='$CPP $CPPFLAGS'
2385 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2386 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2387 cross_compiling=$ac_cv_prog_cc_cross
2388
2389 fi
2390
2391 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2392   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2393     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2394     CFLAGS="$SAVE_CFLAGS"
2395   fi
2396   ;;
2397
2398
2399 esac
2400
2401 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2402 echo "configure:2403: checking how to run the C++ preprocessor" >&5
2403 if test -z "$CXXCPP"; then
2404 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2405   echo $ac_n "(cached) $ac_c" 1>&6
2406 else
2407   ac_ext=C
2408 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2409 ac_cpp='$CXXCPP $CPPFLAGS'
2410 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2411 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2412 cross_compiling=$ac_cv_prog_cxx_cross
2413   CXXCPP="${CXX-g++} -E"
2414   cat > conftest.$ac_ext <<EOF
2415 #line 2416 "configure"
2416 #include "confdefs.h"
2417 #include <stdlib.h>
2418 EOF
2419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2420 { (eval echo configure:2421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2422 if test -z "$ac_err"; then
2423   :
2424 else
2425   echo "$ac_err" >&5
2426   echo "configure: failed program was:" >&5
2427   cat conftest.$ac_ext >&5
2428   rm -rf conftest*
2429   CXXCPP=/lib/cpp
2430 fi
2431 rm -f conftest*
2432   ac_cv_prog_CXXCPP="$CXXCPP"
2433 ac_ext=c
2434 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2435 ac_cpp='$CPP $CPPFLAGS'
2436 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2437 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2438 cross_compiling=$ac_cv_prog_cc_cross
2439 fi
2440 fi
2441 CXXCPP="$ac_cv_prog_CXXCPP"
2442 echo "$ac_t""$CXXCPP" 1>&6
2443
2444
2445 # Save cache, so that ltconfig can load it
2446 cat > confcache <<\EOF
2447 # This file is a shell script that caches the results of configure
2448 # tests run on this system so they can be shared between configure
2449 # scripts and configure runs.  It is not useful on other systems.
2450 # If it contains results you don't want to keep, you may remove or edit it.
2451 #
2452 # By default, configure uses ./config.cache as the cache file,
2453 # creating it if it does not exist already.  You can give configure
2454 # the --cache-file=FILE option to use a different cache file; that is
2455 # what configure does when it calls configure scripts in
2456 # subdirectories, so they share the cache.
2457 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2458 # config.status only pays attention to the cache file if you give it the
2459 # --recheck option to rerun configure.
2460 #
2461 EOF
2462 # The following way of writing the cache mishandles newlines in values,
2463 # but we know of no workaround that is simple, portable, and efficient.
2464 # So, don't put newlines in cache variables' values.
2465 # Ultrix sh set writes to stderr and can't be redirected directly,
2466 # and sets the high bit in the cache file unless we assign to the vars.
2467 (set) 2>&1 |
2468   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2469   *ac_space=\ *)
2470     # `set' does not quote correctly, so add quotes (double-quote substitution
2471     # turns \\\\ into \\, and sed turns \\ into \).
2472     sed -n \
2473       -e "s/'/'\\\\''/g" \
2474       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2475     ;;
2476   *)
2477     # `set' quotes correctly as required by POSIX, so do not add quotes.
2478     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2479     ;;
2480   esac >> confcache
2481 if cmp -s $cache_file confcache; then
2482   :
2483 else
2484   if test -w $cache_file; then
2485     echo "updating cache $cache_file"
2486     cat confcache > $cache_file
2487   else
2488     echo "not updating unwritable cache $cache_file"
2489   fi
2490 fi
2491 rm -f confcache
2492
2493
2494 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2495 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2496 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2497 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2498 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2499 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2500 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2501 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2502 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2503 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2504
2505 # Reload cache, that may have been modified by ltconfig
2506 if test -r "$cache_file"; then
2507   echo "loading cache $cache_file"
2508   . $cache_file
2509 else
2510   echo "creating cache $cache_file"
2511   > $cache_file
2512 fi
2513
2514
2515 # This can be used to rebuild libtool when needed
2516 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2517
2518 # Always use our own libtool.
2519 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2520
2521 # Redirect the config.log output again, so that the ltconfig log is not
2522 # clobbered by the next message.
2523 exec 5>>./config.log
2524
2525
2526
2527 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2528 lt_save_CC="$CC"
2529 lt_save_CFLAGS="$CFLAGS"
2530 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2531 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2532 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2533 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2534 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2535 deplibs_check_method="$deplibs_check_method" \
2536 file_magic_cmd="$file_magic_cmd" \
2537 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2538 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2539 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2540 CC="$lt_save_CC"
2541 CFLAGS="$lt_save_CFLAGS"
2542
2543 # Redirect the config.log output again, so that the ltconfig log is not
2544 # clobbered by the next message.
2545 exec 5>>./config.log
2546
2547   
2548
2549   
2550          
2551          
2552
2553
2554 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2555 echo "configure:2556: checking for GNU make" >&5
2556 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2557   echo $ac_n "(cached) $ac_c" 1>&6
2558 else
2559   _cv_gnu_make_command='' ;
2560           for a in "${MAKE-make}" make gmake gnumake ; do
2561                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2562                   then
2563                           _cv_gnu_make_command=$a ;
2564                           break;
2565                   fi
2566           done ;
2567   
2568 fi
2569
2570 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2571   if test  "x$_cv_gnu_make_command" != "x"  ; then
2572           ifGNUmake='' ;
2573   else
2574           ifGNUmake='#' ;
2575   fi
2576   
2577
2578
2579
2580
2581
2582
2583 # Check for c++ or library specific bits that don't require linking.
2584
2585 if test ! -f stamp-sanity-compiler; then
2586   echo $ac_n "checking for g++ that will successfully compile libstdc++-v3""... $ac_c" 1>&6
2587 echo "configure:2588: checking for g++ that will successfully compile libstdc++-v3" >&5
2588   
2589   ac_ext=C
2590 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2591 ac_cpp='$CXXCPP $CPPFLAGS'
2592 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2593 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2594 cross_compiling=$ac_cv_prog_cxx_cross
2595
2596   cat > conftest.$ac_ext <<EOF
2597 #line 2598 "configure"
2598 #include "confdefs.h"
2599
2600 int main() {
2601
2602   #if __GNUC__ < 3
2603     not_ok
2604   #endif
2605   
2606 ; return 0; }
2607 EOF
2608 if { (eval echo configure:2609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2609   rm -rf conftest*
2610   gpp_satisfactory=yes
2611 else
2612   echo "configure: failed program was:" >&5
2613   cat conftest.$ac_ext >&5
2614   rm -rf conftest*
2615   { echo "configure: error: please upgrade to GCC 3.0 or above" 1>&2; exit 1; }
2616 fi
2617 rm -f conftest*
2618   ac_ext=c
2619 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2620 ac_cpp='$CPP $CPPFLAGS'
2621 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2622 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2623 cross_compiling=$ac_cv_prog_cc_cross
2624
2625   echo "$ac_t""$gpp_satisfactory" 1>&6
2626   touch stamp-sanity-compiler
2627 fi
2628
2629
2630 # Enable all the crazy c++ stuff.  C_MBCHAR must come early.
2631 # Check whether --enable-debug or --disable-debug was given.
2632 if test "${enable_debug+set}" = set; then
2633   enableval="$enable_debug"
2634   case "${enableval}" in
2635  yes) enable_debug=yes ;;
2636  no)  enable_debug=no ;;
2637  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2638  esac
2639 else
2640   enable_debug=no
2641 fi
2642
2643 case "${enable_debug}" in
2644     yes) 
2645         DEBUG_FLAGS='-O0 -ggdb3'                        
2646         ;; 
2647     no)   
2648         DEBUG_FLAGS='-g'
2649         ;;
2650 esac
2651
2652
2653 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2654 echo "configure:2655: checking how to run the C preprocessor" >&5
2655 # On Suns, sometimes $CPP names a directory.
2656 if test -n "$CPP" && test -d "$CPP"; then
2657   CPP=
2658 fi
2659 if test -z "$CPP"; then
2660 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2661   echo $ac_n "(cached) $ac_c" 1>&6
2662 else
2663     # This must be in double quotes, not single quotes, because CPP may get
2664   # substituted into the Makefile and "${CC-cc}" will confuse make.
2665   CPP="${CC-cc} -E"
2666   # On the NeXT, cc -E runs the code through the compiler's parser,
2667   # not just through cpp.
2668   cat > conftest.$ac_ext <<EOF
2669 #line 2670 "configure"
2670 #include "confdefs.h"
2671 #include <assert.h>
2672 Syntax Error
2673 EOF
2674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2675 { (eval echo configure:2676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2676 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2677 if test -z "$ac_err"; then
2678   :
2679 else
2680   echo "$ac_err" >&5
2681   echo "configure: failed program was:" >&5
2682   cat conftest.$ac_ext >&5
2683   rm -rf conftest*
2684   CPP="${CC-cc} -E -traditional-cpp"
2685   cat > conftest.$ac_ext <<EOF
2686 #line 2687 "configure"
2687 #include "confdefs.h"
2688 #include <assert.h>
2689 Syntax Error
2690 EOF
2691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2692 { (eval echo configure:2693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2693 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2694 if test -z "$ac_err"; then
2695   :
2696 else
2697   echo "$ac_err" >&5
2698   echo "configure: failed program was:" >&5
2699   cat conftest.$ac_ext >&5
2700   rm -rf conftest*
2701   CPP="${CC-cc} -nologo -E"
2702   cat > conftest.$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2705 #include <assert.h>
2706 Syntax Error
2707 EOF
2708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2709 { (eval echo configure:2710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2711 if test -z "$ac_err"; then
2712   :
2713 else
2714   echo "$ac_err" >&5
2715   echo "configure: failed program was:" >&5
2716   cat conftest.$ac_ext >&5
2717   rm -rf conftest*
2718   CPP=/lib/cpp
2719 fi
2720 rm -f conftest*
2721 fi
2722 rm -f conftest*
2723 fi
2724 rm -f conftest*
2725   ac_cv_prog_CPP="$CPP"
2726 fi
2727   CPP="$ac_cv_prog_CPP"
2728 else
2729   ac_cv_prog_CPP="$CPP"
2730 fi
2731 echo "$ac_t""$CPP" 1>&6
2732
2733
2734   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2735 echo "configure:2736: checking for cstdio to use" >&5
2736   # Check whether --enable-cstdio or --disable-cstdio was given.
2737 if test "${enable_cstdio+set}" = set; then
2738   enableval="$enable_cstdio"
2739   if test x$enable_cstdio = xno; then
2740      enable_cstdio=stdio
2741   fi
2742 else
2743   enable_cstdio=stdio
2744 fi
2745
2746
2747   enable_cstdio_flag=$enable_cstdio
2748
2749     case x${enable_cstdio_flag} in
2750     xlibio)
2751       CSTDIO_H=config/c_io_libio.h
2752       BASIC_FILE_H=config/basic_file_libio.h
2753       BASIC_FILE_CC=config/basic_file_libio.cc
2754       echo "$ac_t""libio" 1>&6
2755
2756       # see if we are on a system with libio native (ie, linux)
2757       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2758 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2759 echo "configure:2760: checking for libio.h" >&5
2760 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2761   echo $ac_n "(cached) $ac_c" 1>&6
2762 else
2763   cat > conftest.$ac_ext <<EOF
2764 #line 2765 "configure"
2765 #include "confdefs.h"
2766 #include <libio.h>
2767 EOF
2768 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2769 { (eval echo configure:2770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2770 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2771 if test -z "$ac_err"; then
2772   rm -rf conftest*
2773   eval "ac_cv_header_$ac_safe=yes"
2774 else
2775   echo "$ac_err" >&5
2776   echo "configure: failed program was:" >&5
2777   cat conftest.$ac_ext >&5
2778   rm -rf conftest*
2779   eval "ac_cv_header_$ac_safe=no"
2780 fi
2781 rm -f conftest*
2782 fi
2783 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2784   echo "$ac_t""yes" 1>&6
2785   has_libio=yes
2786 else
2787   echo "$ac_t""no" 1>&6
2788 has_libio=no
2789 fi
2790
2791
2792       # Need to check and see what version of glibc is being used. If
2793       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2794       # compile most of libio for linux systems.
2795       if test x$has_libio = x"yes"; then
2796         case "$target" in
2797           *-*-linux*)
2798               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2799 echo "configure:2800: checking for glibc version >= 2.2" >&5
2800               cat > conftest.$ac_ext <<EOF
2801 #line 2802 "configure"
2802 #include "confdefs.h"
2803
2804             #include <features.h>
2805               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2806                     ok
2807               #endif
2808               
2809 EOF
2810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2811   egrep "ok" >/dev/null 2>&1; then
2812   rm -rf conftest*
2813   glibc_satisfactory=yes
2814 else
2815   rm -rf conftest*
2816   glibc_satisfactory=no
2817 fi
2818 rm -f conftest*
2819
2820               echo "$ac_t""$glibc_satisfactory" 1>&6
2821             ;;
2822         esac
2823
2824         # XXX at the moment, admit defeat and force the recompilation
2825         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2826         glibc_satisfactory=no        
2827
2828         if test x$glibc_satisfactory = x"yes"; then
2829            need_libio=no
2830            need_wlibio=no        
2831         else
2832            need_libio=yes
2833            # bkoz XXX need to add checks to enable this
2834            # pme XXX here's a first pass at such a check
2835            if test x$enable_c_mbchar != xno; then
2836               need_wlibio=yes
2837            else
2838               need_wlibio=no
2839            fi
2840         fi
2841
2842       else
2843          # Using libio, but <libio.h> doesn't exist on the target system. . .
2844          need_libio=yes
2845          # bkoz XXX need to add checks to enable this
2846          # pme XXX here's a first pass at such a check
2847          if test x$enable_c_mbchar != xno; then
2848              need_wlibio=yes
2849          else
2850              need_wlibio=no
2851          fi
2852       fi
2853       ;;
2854     xstdio | x | xno | xnone | xyes)
2855       # default
2856       CSTDIO_H=config/c_io_stdio.h
2857       BASIC_FILE_H=config/basic_file_stdio.h
2858       BASIC_FILE_CC=config/basic_file_stdio.cc
2859       echo "$ac_t""stdio" 1>&6
2860
2861       # We're not using stdio.
2862       need_libio=no
2863       need_wlibio=no
2864       ;;
2865     *)
2866       echo "$enable_cstdio is an unknown io package" 1>&2
2867       exit 1
2868       ;;
2869   esac
2870   
2871   
2872   
2873
2874   # 2000-08-04 bkoz hack
2875   CCODECVT_C=config/c_io_libio_codecvt.c
2876   
2877   # 2000-08-04 bkoz hack
2878
2879   
2880
2881 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2882   GLIBCPP_BUILD_LIBIO_TRUE=
2883   GLIBCPP_BUILD_LIBIO_FALSE='#'
2884 else
2885   GLIBCPP_BUILD_LIBIO_TRUE='#'
2886   GLIBCPP_BUILD_LIBIO_FALSE=
2887 fi
2888   
2889
2890 if test "$need_libio" = yes; then
2891   GLIBCPP_NEED_LIBIO_TRUE=
2892   GLIBCPP_NEED_LIBIO_FALSE='#'
2893 else
2894   GLIBCPP_NEED_LIBIO_TRUE='#'
2895   GLIBCPP_NEED_LIBIO_FALSE=
2896 fi
2897   
2898
2899 if test "$need_wlibio" = yes; then
2900   GLIBCPP_NEED_WLIBIO_TRUE=
2901   GLIBCPP_NEED_WLIBIO_FALSE='#'
2902 else
2903   GLIBCPP_NEED_WLIBIO_TRUE='#'
2904   GLIBCPP_NEED_WLIBIO_FALSE=
2905 fi
2906   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2907     libio_la=../libio/libio.la
2908   else
2909     libio_la=
2910   fi
2911   
2912
2913
2914   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2915 echo "configure:2916: checking for clocale to use" >&5
2916   # Check whether --enable-clocale or --disable-clocale was given.
2917 if test "${enable_clocale+set}" = set; then
2918   enableval="$enable_clocale"
2919   if test x$enable_clocale = xno; then
2920      enable_clocale=generic
2921   fi
2922 else
2923   enable_clocale=generic
2924 fi
2925
2926
2927   enable_clocale_flag=$enable_clocale
2928
2929     case x${enable_clocale_flag} in
2930     xgnu)
2931       CLOCALE_H=config/c_locale_gnu.h
2932       CLOCALE_CC=config/c_locale_gnu.cc
2933       echo "$ac_t""gnu" 1>&6
2934       ;;
2935     xgeneric)
2936       CLOCALE_H=config/c_locale_generic.h
2937       CLOCALE_CC=config/c_locale_generic.cc
2938       echo "$ac_t""generic" 1>&6
2939       ;;
2940     *)
2941       echo "$enable_clocale is an unknown locale package" 1>&2
2942       exit 1
2943       ;;
2944   esac
2945
2946   
2947   
2948
2949 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
2950 if test "${enable_c_mbchar+set}" = set; then
2951   enableval="$enable_c_mbchar"
2952   case "$enableval" in
2953  yes) enable_c_mbchar=yes ;;
2954  no)  enable_c_mbchar=no ;;
2955  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
2956  esac
2957 else
2958   enable_c_mbchar=yes
2959 fi
2960
2961   
2962   # Check whether --enable-c99 or --disable-c99 was given.
2963 if test "${enable_c99+set}" = set; then
2964   enableval="$enable_c99"
2965     case "$enableval" in
2966    yes) enable_c99=yes ;;
2967    no)  enable_c99=no ;;
2968    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
2969    esac
2970 else
2971   enable_c99=yes
2972 fi
2973  
2974   
2975   ac_ext=C
2976 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2977 ac_cpp='$CXXCPP $CPPFLAGS'
2978 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2979 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2980 cross_compiling=$ac_cv_prog_cxx_cross
2981
2982
2983   # Check for the existence of <math.h> functions used if C99 is enabled.
2984   ac_c99_math=yes;
2985   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
2986 echo "configure:2987: checking for ISO C99 support in <math.h>" >&5
2987   cat > conftest.$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2990 #include <math.h>
2991 int main() {
2992 fpclassify(0.0);
2993 ; return 0; }
2994 EOF
2995 if { (eval echo configure:2996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2996   :
2997 else
2998   echo "configure: failed program was:" >&5
2999   cat conftest.$ac_ext >&5
3000   rm -rf conftest*
3001   ac_c99_math=no
3002 fi
3003 rm -f conftest*
3004   cat > conftest.$ac_ext <<EOF
3005 #line 3006 "configure"
3006 #include "confdefs.h"
3007 #include <math.h>
3008 int main() {
3009 isfinite(0.0);
3010 ; return 0; }
3011 EOF
3012 if { (eval echo configure:3013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3013   :
3014 else
3015   echo "configure: failed program was:" >&5
3016   cat conftest.$ac_ext >&5
3017   rm -rf conftest*
3018   ac_c99_math=no
3019 fi
3020 rm -f conftest*
3021   cat > conftest.$ac_ext <<EOF
3022 #line 3023 "configure"
3023 #include "confdefs.h"
3024 #include <math.h>
3025 int main() {
3026 isinf(0.0);
3027 ; return 0; }
3028 EOF
3029 if { (eval echo configure:3030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3030   :
3031 else
3032   echo "configure: failed program was:" >&5
3033   cat conftest.$ac_ext >&5
3034   rm -rf conftest*
3035   ac_c99_math=no
3036 fi
3037 rm -f conftest*
3038   cat > conftest.$ac_ext <<EOF
3039 #line 3040 "configure"
3040 #include "confdefs.h"
3041 #include <math.h>
3042 int main() {
3043 isnan(0.0);
3044 ; return 0; }
3045 EOF
3046 if { (eval echo configure:3047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3047   :
3048 else
3049   echo "configure: failed program was:" >&5
3050   cat conftest.$ac_ext >&5
3051   rm -rf conftest*
3052   ac_c99_math=no
3053 fi
3054 rm -f conftest*
3055   cat > conftest.$ac_ext <<EOF
3056 #line 3057 "configure"
3057 #include "confdefs.h"
3058 #include <math.h>
3059 int main() {
3060 isnormal(0.0);
3061 ; return 0; }
3062 EOF
3063 if { (eval echo configure:3064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3064   :
3065 else
3066   echo "configure: failed program was:" >&5
3067   cat conftest.$ac_ext >&5
3068   rm -rf conftest*
3069   ac_c99_math=no
3070 fi
3071 rm -f conftest*
3072   cat > conftest.$ac_ext <<EOF
3073 #line 3074 "configure"
3074 #include "confdefs.h"
3075 #include <math.h>
3076 int main() {
3077 signbit(0.0);
3078 ; return 0; }
3079 EOF
3080 if { (eval echo configure:3081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3081   :
3082 else
3083   echo "configure: failed program was:" >&5
3084   cat conftest.$ac_ext >&5
3085   rm -rf conftest*
3086   ac_c99_math=no
3087 fi
3088 rm -f conftest*
3089   cat > conftest.$ac_ext <<EOF
3090 #line 3091 "configure"
3091 #include "confdefs.h"
3092 #include <math.h>
3093 int main() {
3094 isgreater(0.0,0.0);
3095 ; return 0; }
3096 EOF
3097 if { (eval echo configure:3098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3098   :
3099 else
3100   echo "configure: failed program was:" >&5
3101   cat conftest.$ac_ext >&5
3102   rm -rf conftest*
3103   ac_c99_math=no
3104 fi
3105 rm -f conftest*
3106   cat > conftest.$ac_ext <<EOF
3107 #line 3108 "configure"
3108 #include "confdefs.h"
3109 #include <math.h>
3110 int main() {
3111 isgreaterequal(0.0,0.0);
3112 ; return 0; }
3113 EOF
3114 if { (eval echo configure:3115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3115   :
3116 else
3117   echo "configure: failed program was:" >&5
3118   cat conftest.$ac_ext >&5
3119   rm -rf conftest*
3120   ac_c99_math=no
3121 fi
3122 rm -f conftest*
3123   cat > conftest.$ac_ext <<EOF
3124 #line 3125 "configure"
3125 #include "confdefs.h"
3126 #include <math.h>
3127 int main() {
3128 isless(0.0,0.0);
3129 ; return 0; }
3130 EOF
3131 if { (eval echo configure:3132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3132   :
3133 else
3134   echo "configure: failed program was:" >&5
3135   cat conftest.$ac_ext >&5
3136   rm -rf conftest*
3137   ac_c99_math=no
3138 fi
3139 rm -f conftest*
3140   cat > conftest.$ac_ext <<EOF
3141 #line 3142 "configure"
3142 #include "confdefs.h"
3143 #include <math.h>
3144 int main() {
3145 islessequal(0.0,0.0);
3146 ; return 0; }
3147 EOF
3148 if { (eval echo configure:3149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3149   :
3150 else
3151   echo "configure: failed program was:" >&5
3152   cat conftest.$ac_ext >&5
3153   rm -rf conftest*
3154   ac_c99_math=no
3155 fi
3156 rm -f conftest*
3157   cat > conftest.$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3160 #include <math.h>
3161 int main() {
3162 islessgreater(0.0,0.0);
3163 ; return 0; }
3164 EOF
3165 if { (eval echo configure:3166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3166   :
3167 else
3168   echo "configure: failed program was:" >&5
3169   cat conftest.$ac_ext >&5
3170   rm -rf conftest*
3171   ac_c99_math=no
3172 fi
3173 rm -f conftest*
3174   cat > conftest.$ac_ext <<EOF
3175 #line 3176 "configure"
3176 #include "confdefs.h"
3177 #include <math.h>
3178 int main() {
3179 isunordered(0.0,0.0);
3180 ; return 0; }
3181 EOF
3182 if { (eval echo configure:3183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3183   :
3184 else
3185   echo "configure: failed program was:" >&5
3186   cat conftest.$ac_ext >&5
3187   rm -rf conftest*
3188   ac_c99_math=no
3189 fi
3190 rm -f conftest*
3191   echo "$ac_t""$ac_c99_math" 1>&6
3192
3193   # Check for the existence in <stdio.h> of vscanf, et. al.
3194   ac_c99_stdio=yes;
3195   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3196 echo "configure:3197: checking for ISO C99 support in <stdio.h>" >&5
3197   cat > conftest.$ac_ext <<EOF
3198 #line 3199 "configure"
3199 #include "confdefs.h"
3200 #include <stdio.h>
3201 int main() {
3202 snprintf("12", 0, "%i");
3203 ; return 0; }
3204 EOF
3205 if { (eval echo configure:3206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3206   :
3207 else
3208   echo "configure: failed program was:" >&5
3209   cat conftest.$ac_ext >&5
3210   rm -rf conftest*
3211   ac_c99_stdio=no
3212 fi
3213 rm -f conftest*
3214   cat > conftest.$ac_ext <<EOF
3215 #line 3216 "configure"
3216 #include "confdefs.h"
3217 #include <stdio.h>
3218                   #include <stdarg.h>
3219                   void foo(char* fmt, ...)
3220                   {va_list args; va_start(args, fmt);
3221                   vfscanf(stderr, "%i", args);}
3222 int main() {
3223
3224 ; return 0; }
3225 EOF
3226 if { (eval echo configure:3227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3227   :
3228 else
3229   echo "configure: failed program was:" >&5
3230   cat conftest.$ac_ext >&5
3231   rm -rf conftest*
3232   ac_c99_stdio=no
3233 fi
3234 rm -f conftest*
3235   cat > conftest.$ac_ext <<EOF
3236 #line 3237 "configure"
3237 #include "confdefs.h"
3238 #include <stdio.h>
3239                   #include <stdarg.h>
3240                   void foo(char* fmt, ...)
3241                   {va_list args; va_start(args, fmt);
3242                   vscanf("%i", args);}
3243 int main() {
3244
3245 ; return 0; }
3246 EOF
3247 if { (eval echo configure:3248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3248   :
3249 else
3250   echo "configure: failed program was:" >&5
3251   cat conftest.$ac_ext >&5
3252   rm -rf conftest*
3253   ac_c99_stdio=no
3254 fi
3255 rm -f conftest*
3256   cat > conftest.$ac_ext <<EOF
3257 #line 3258 "configure"
3258 #include "confdefs.h"
3259 #include <stdio.h>
3260                   #include <stdarg.h>
3261                   void foo(char* fmt, ...)
3262                   {va_list args; va_start(args, fmt);
3263                   vsnprintf(fmt, 0, "%i", args);}
3264 int main() {
3265
3266 ; return 0; }
3267 EOF
3268 if { (eval echo configure:3269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3269   :
3270 else
3271   echo "configure: failed program was:" >&5
3272   cat conftest.$ac_ext >&5
3273   rm -rf conftest*
3274   ac_c99_stdio=no
3275 fi
3276 rm -f conftest*
3277   cat > conftest.$ac_ext <<EOF
3278 #line 3279 "configure"
3279 #include "confdefs.h"
3280 #include <stdio.h>
3281                   #include <stdarg.h>
3282                   void foo(char* fmt, ...)
3283                   {va_list args; va_start(args, fmt);
3284                   vsscanf(fmt, "%i", args);}
3285 int main() {
3286
3287 ; return 0; }
3288 EOF
3289 if { (eval echo configure:3290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3290   :
3291 else
3292   echo "configure: failed program was:" >&5
3293   cat conftest.$ac_ext >&5
3294   rm -rf conftest*
3295   ac_c99_stdio=no
3296 fi
3297 rm -f conftest*
3298   echo "$ac_t""$ac_c99_stdio" 1>&6
3299
3300   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3301   ac_c99_stdlib=yes;
3302   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3303 echo "configure:3304: checking for lldiv_t declaration" >&5
3304   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3305   echo $ac_n "(cached) $ac_c" 1>&6
3306 else
3307   
3308   cat > conftest.$ac_ext <<EOF
3309 #line 3310 "configure"
3310 #include "confdefs.h"
3311 #include <stdlib.h>
3312 int main() {
3313  lldiv_t mydivt;
3314 ; return 0; }
3315 EOF
3316 if { (eval echo configure:3317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3317   rm -rf conftest*
3318   ac_c99_lldiv_t=yes
3319 else
3320   echo "configure: failed program was:" >&5
3321   cat conftest.$ac_ext >&5
3322   rm -rf conftest*
3323   ac_c99_lldiv_t=no
3324 fi
3325 rm -f conftest*
3326   
3327 fi
3328
3329   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3330
3331   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3332 echo "configure:3333: checking for ISO C99 support in <stdlib.h>" >&5
3333   cat > conftest.$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3336 #include <stdlib.h>
3337 int main() {
3338 char* tmp; strtof("gnu", &tmp);
3339 ; return 0; }
3340 EOF
3341 if { (eval echo configure:3342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3342   :
3343 else
3344   echo "configure: failed program was:" >&5
3345   cat conftest.$ac_ext >&5
3346   rm -rf conftest*
3347   ac_c99_stdlib=no
3348 fi
3349 rm -f conftest*
3350   cat > conftest.$ac_ext <<EOF
3351 #line 3352 "configure"
3352 #include "confdefs.h"
3353 #include <stdlib.h>
3354 int main() {
3355 char* tmp; strtold("gnu", &tmp);
3356 ; return 0; }
3357 EOF
3358 if { (eval echo configure:3359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3359   :
3360 else
3361   echo "configure: failed program was:" >&5
3362   cat conftest.$ac_ext >&5
3363   rm -rf conftest*
3364   ac_c99_stdlib=no
3365 fi
3366 rm -f conftest*
3367   cat > conftest.$ac_ext <<EOF
3368 #line 3369 "configure"
3369 #include "confdefs.h"
3370 #include <stdlib.h>
3371 int main() {
3372 char* tmp; strtoll("gnu", &tmp, 10);
3373 ; return 0; }
3374 EOF
3375 if { (eval echo configure:3376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3376   :
3377 else
3378   echo "configure: failed program was:" >&5
3379   cat conftest.$ac_ext >&5
3380   rm -rf conftest*
3381   ac_c99_stdlib=no
3382 fi
3383 rm -f conftest*
3384   cat > conftest.$ac_ext <<EOF
3385 #line 3386 "configure"
3386 #include "confdefs.h"
3387 #include <stdlib.h>
3388 int main() {
3389 char* tmp; strtoull("gnu", &tmp, 10);
3390 ; return 0; }
3391 EOF
3392 if { (eval echo configure:3393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3393   :
3394 else
3395   echo "configure: failed program was:" >&5
3396   cat conftest.$ac_ext >&5
3397   rm -rf conftest*
3398   ac_c99_stdlib=no
3399 fi
3400 rm -f conftest*
3401   cat > conftest.$ac_ext <<EOF
3402 #line 3403 "configure"
3403 #include "confdefs.h"
3404 #include <stdlib.h>
3405 int main() {
3406 llabs(10);
3407 ; return 0; }
3408 EOF
3409 if { (eval echo configure:3410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3410   :
3411 else
3412   echo "configure: failed program was:" >&5
3413   cat conftest.$ac_ext >&5
3414   rm -rf conftest*
3415   ac_c99_stdlib=no
3416 fi
3417 rm -f conftest*
3418   cat > conftest.$ac_ext <<EOF
3419 #line 3420 "configure"
3420 #include "confdefs.h"
3421 #include <stdlib.h>
3422 int main() {
3423 lldiv(10,1);
3424 ; return 0; }
3425 EOF
3426 if { (eval echo configure:3427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3427   :
3428 else
3429   echo "configure: failed program was:" >&5
3430   cat conftest.$ac_ext >&5
3431   rm -rf conftest*
3432   ac_c99_stdlib=no
3433 fi
3434 rm -f conftest*
3435   cat > conftest.$ac_ext <<EOF
3436 #line 3437 "configure"
3437 #include "confdefs.h"
3438 #include <stdlib.h>
3439 int main() {
3440 atoll("10");
3441 ; return 0; }
3442 EOF
3443 if { (eval echo configure:3444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3444   :
3445 else
3446   echo "configure: failed program was:" >&5
3447   cat conftest.$ac_ext >&5
3448   rm -rf conftest*
3449   ac_c99_stdlib=no
3450 fi
3451 rm -f conftest*
3452   cat > conftest.$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3455 #include <stdlib.h>
3456 int main() {
3457 _Exit(0);
3458 ; return 0; }
3459 EOF
3460 if { (eval echo configure:3461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3461   :
3462 else
3463   echo "configure: failed program was:" >&5
3464   cat conftest.$ac_ext >&5
3465   rm -rf conftest*
3466   ac_c99_stdlib=no
3467 fi
3468 rm -f conftest*
3469   if test x"$ac_c99_lldiv_t" = x"no"; then
3470     ac_c99_stdlib=no; 
3471   fi; 
3472   echo "$ac_t""$ac_c99_stdlib" 1>&6
3473
3474   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3475   # XXX the wchar.h checks should be rolled into the general C99 bits.
3476   ac_c99_wchar=yes;
3477   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3478 echo "configure:3479: checking for additional ISO C99 support in <wchar.h>" >&5
3479   cat > conftest.$ac_ext <<EOF
3480 #line 3481 "configure"
3481 #include "confdefs.h"
3482 #include <wchar.h>
3483 int main() {
3484 wcstold(L"10.0", NULL);
3485 ; return 0; }
3486 EOF
3487 if { (eval echo configure:3488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3488   :
3489 else
3490   echo "configure: failed program was:" >&5
3491   cat conftest.$ac_ext >&5
3492   rm -rf conftest*
3493   ac_c99_wchar=no
3494 fi
3495 rm -f conftest*
3496   cat > conftest.$ac_ext <<EOF
3497 #line 3498 "configure"
3498 #include "confdefs.h"
3499 #include <wchar.h>
3500 int main() {
3501 wcstoll(L"10", NULL, 10);
3502 ; return 0; }
3503 EOF
3504 if { (eval echo configure:3505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3505   :
3506 else
3507   echo "configure: failed program was:" >&5
3508   cat conftest.$ac_ext >&5
3509   rm -rf conftest*
3510   ac_c99_wchar=no
3511 fi
3512 rm -f conftest*
3513   cat > conftest.$ac_ext <<EOF
3514 #line 3515 "configure"
3515 #include "confdefs.h"
3516 #include <wchar.h>
3517 int main() {
3518 wcstoull(L"10", NULL, 10);
3519 ; return 0; }
3520 EOF
3521 if { (eval echo configure:3522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3522   :
3523 else
3524   echo "configure: failed program was:" >&5
3525   cat conftest.$ac_ext >&5
3526   rm -rf conftest*
3527   ac_c99_wchar=no
3528 fi
3529 rm -f conftest*
3530   echo "$ac_t""$ac_c99_wchar" 1>&6
3531
3532   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3533 echo "configure:3534: checking for enabled ISO C99 support" >&5
3534   if test x"$ac_c99_math" = x"no" ||
3535      test x"$ac_c99_stdio" = x"no" ||
3536      test x"$ac_c99_stdlib" = x"no" ||
3537      test x"$ac_c99_wchar" = x"no"; then
3538     enable_c99=no; 
3539   fi; 
3540   echo "$ac_t""$enable_c99" 1>&6
3541
3542   # Option parsed, now set things appropriately
3543   if test x"$enable_c99" = x"yes"; then
3544     cat >> confdefs.h <<\EOF
3545 #define _GLIBCPP_USE_C99 1
3546 EOF
3547
3548   fi
3549
3550   ac_ext=c
3551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3552 ac_cpp='$CPP $CPPFLAGS'
3553 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3554 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3555 cross_compiling=$ac_cv_prog_cc_cross
3556
3557
3558   
3559   # Check whether --enable-long-long or --disable-long-long was given.
3560 if test "${enable_long_long+set}" = set; then
3561   enableval="$enable_long_long"
3562     case "$enableval" in
3563    yes) enable_long_long=yes ;;
3564    no)  enable_long_long=no ;;
3565    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3566    esac
3567 else
3568   enable_long_long=yes
3569 fi
3570
3571   # iostreams require strtoll, strtoull to compile. If the
3572   # GLIBCPP_ENABLE_C99 tests found these, and if C99 support is enabled,
3573   # go ahead and allow long long to be used.
3574   if test x"$enable_c99" = x"no"; then
3575     enable_long_long=no; 
3576   fi
3577
3578   # Option parsed, now set things appropriately
3579   echo $ac_n "checking for enabled long long support""... $ac_c" 1>&6
3580 echo "configure:3581: checking for enabled long long support" >&5
3581   if test x"$enable_long_long" = xyes; then
3582     cat >> confdefs.h <<\EOF
3583 #define _GLIBCPP_USE_LONG_LONG 1
3584 EOF
3585
3586   fi
3587   echo "$ac_t""$enable_long_long" 1>&6
3588
3589 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3590 echo "configure:3591: checking for c header strategy to use" >&5
3591 # Check whether --enable-cheaders or --disable-cheaders was given.
3592 if test "${enable_cheaders+set}" = set; then
3593   enableval="$enable_cheaders"
3594   
3595   case "$enableval" in
3596    c) 
3597         enable_cheaders=c 
3598         ;;
3599    c_std)  
3600         enable_cheaders=c_std 
3601         ;;
3602    c_shadow)  
3603         enable_cheaders=c_shadow 
3604         ;;
3605    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3606         ;;
3607   esac
3608 else
3609   enable_cheaders=c_std
3610 fi
3611
3612   echo "$ac_t""$enable_cheaders" 1>&6
3613
3614     case "$enable_cheaders" in
3615     c_shadow) 
3616         CSHADOW_FLAGS="-fno-builtin"
3617         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3618         cat >> confdefs.h <<\EOF
3619 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3620 EOF
3621
3622         ;;
3623     c_std)   
3624         CSHADOW_FLAGS=""
3625         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3626         ;;
3627     c)   
3628         CSHADOW_FLAGS=""
3629         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3630         ;;
3631   esac
3632
3633   
3634   
3635   
3636
3637 if test "$enable_cheaders" = c_shadow; then
3638   GLIBCPP_USE_CSHADOW_TRUE=
3639   GLIBCPP_USE_CSHADOW_FALSE='#'
3640 else
3641   GLIBCPP_USE_CSHADOW_TRUE='#'
3642   GLIBCPP_USE_CSHADOW_FALSE=
3643 fi
3644
3645
3646   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3647 echo "configure:3648: checking for thread model used by GCC" >&5
3648   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3649   echo "$ac_t""$target_thread_file" 1>&6
3650
3651   if test $target_thread_file != single; then
3652     cat >> confdefs.h <<\EOF
3653 #define HAVE_GTHR_DEFAULT 1
3654 EOF
3655
3656     cat >> confdefs.h <<\EOF
3657 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3658 EOF
3659
3660   fi
3661
3662   glibcpp_thread_h=gthr-$target_thread_file.h
3663   
3664
3665 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3666 if test "${enable_cxx_flags+set}" = set; then
3667   enableval="$enable_cxx_flags"
3668   case "x$enableval" in
3669  xyes)   
3670         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3671  xno|x)  
3672         enable_cxx_flags='' ;;
3673  *)      
3674         enable_cxx_flags="$enableval" ;;
3675  esac
3676 else
3677   enable_cxx_flags='none'
3678 fi
3679
3680
3681 if test "$enable_cxx_flags" = "none"; then 
3682   enable_cxx_flags=''; 
3683 fi
3684
3685 if test -n "$enable_cxx_flags"; then
3686     for f in $enable_cxx_flags; do
3687         case "$f" in
3688             -fhonor-std)  ;;
3689             -*)  ;;
3690             *)   # and we're trying to pass /what/ exactly?
3691                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3692         esac
3693     done
3694 fi
3695 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3696
3697
3698
3699   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3700 echo "configure:3701: checking for exception model to use" >&5
3701   
3702   ac_ext=C
3703 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3704 ac_cpp='$CXXCPP $CPPFLAGS'
3705 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3706 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3707 cross_compiling=$ac_cv_prog_cxx_cross
3708
3709   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3710 if test "${enable_sjlj_exceptions+set}" = set; then
3711   enableval="$enable_sjlj_exceptions"
3712   :
3713 else
3714                        cat > conftest.$ac_ext << EOF
3715 #line 3716 "configure"
3716 struct S { ~S(); };
3717 void bar();
3718 void foo()
3719 {
3720   S s;
3721   bar();
3722 }
3723 EOF
3724    old_CXXFLAGS="$CXXFLAGS"  
3725    CXXFLAGS=-S
3726    if { (eval echo configure:3727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3727      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3728        enable_sjlj_exceptions=yes
3729      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3730        enable_sjlj_exceptions=no
3731      fi
3732    fi
3733    CXXFLAGS="$old_CXXFLAGS"
3734    rm -f conftest*
3735 fi
3736
3737    if test x$enable_sjlj_exceptions = xyes; then
3738      cat >> confdefs.h <<\EOF
3739 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3740 EOF
3741
3742      ac_exception_model_name=sjlj
3743    elif test x$enable_sjlj_exceptions = xno; then
3744      ac_exception_model_name="call frame"
3745    else
3746      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3747    fi
3748    ac_ext=c
3749 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3752 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3753 cross_compiling=$ac_cv_prog_cc_cross
3754
3755    echo "$ac_t""$ac_exception_model_name" 1>&6
3756
3757
3758 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
3759
3760   # We are being configured with some form of cross compiler.
3761   # mknumeric_limits may not work correctly, either because the
3762   # compiler may not run on this machine, may not be able to link
3763   # executables, or may produce executables we can't run on this
3764   # machine.
3765   GLIBCPP_IS_CROSS_COMPILING=1
3766
3767   # If Canadian cross, then don't pick up tools from the build
3768   # directory.
3769   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
3770     CANADIAN=yes
3771   else
3772     CANADIAN=no
3773   fi
3774
3775   case "$target_alias" in
3776     *-linux*)
3777         # Construct linux crosses by hand, eliminating bits that need ld...
3778         # Check for available headers.
3779         for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3780         machine/endian.h machine/param.h sys/machine.h fp.h locale.h \
3781         float.h inttypes.h
3782 do
3783 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3784 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3785 echo "configure:3786: checking for $ac_hdr" >&5
3786 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3787   echo $ac_n "(cached) $ac_c" 1>&6
3788 else
3789   cat > conftest.$ac_ext <<EOF
3790 #line 3791 "configure"
3791 #include "confdefs.h"
3792 #include <$ac_hdr>
3793 EOF
3794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3795 { (eval echo configure:3796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3797 if test -z "$ac_err"; then
3798   rm -rf conftest*
3799   eval "ac_cv_header_$ac_safe=yes"
3800 else
3801   echo "$ac_err" >&5
3802   echo "configure: failed program was:" >&5
3803   cat conftest.$ac_ext >&5
3804   rm -rf conftest*
3805   eval "ac_cv_header_$ac_safe=no"
3806 fi
3807 rm -f conftest*
3808 fi
3809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3810   echo "$ac_t""yes" 1>&6
3811     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3812   cat >> confdefs.h <<EOF
3813 #define $ac_tr_hdr 1
3814 EOF
3815  
3816 else
3817   echo "$ac_t""no" 1>&6
3818 fi
3819 done
3820
3821
3822         # GLIBCPP_CHECK_COMPILER_FEATURES
3823         SECTION_FLAGS='-ffunction-sections -fdata-sections'
3824         
3825         
3826   # If we're not using GNU ld, then there's no point in even trying these
3827   # tests.  Check for that first.  We should have already tested for gld
3828   # by now (in libtool), but require it now just to be safe...
3829   SECTION_LDFLAGS=''
3830   OPT_LDFLAGS=''
3831   
3832
3833   # Set --gc-sections.
3834   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3835     # GNU ld it is!  Joy and bunny rabbits!
3836
3837     # All these tests are for C++; save the language and the compiler flags.
3838     # Need to do this so that g++ won't try to link in libstdc++
3839     ac_test_CFLAGS="${CFLAGS+set}"
3840     ac_save_CFLAGS="$CFLAGS"
3841     CFLAGS='-x c++  -Wl,--gc-sections'
3842
3843     # Check for -Wl,--gc-sections
3844     # XXX This test is broken at the moment, as symbols required for
3845     # linking are now in libsupc++ (not built yet.....). In addition, 
3846     # this test has cored on solaris in the past. In addition,
3847     # --gc-sections doesn't really work at the moment (keeps on discarding
3848     # used sections, first .eh_frame and now some of the glibc sections for
3849     # iconv). Bzzzzt. Thanks for playing, maybe next time.
3850     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3851 echo "configure:3852: checking for ld that supports -Wl,--gc-sections" >&5
3852     if test "$cross_compiling" = yes; then
3853   ac_sectionLDflags=yes
3854 else
3855   cat > conftest.$ac_ext <<EOF
3856 #line 3857 "configure"
3857 #include "confdefs.h"
3858
3859      int main(void) 
3860      {
3861        try { throw 1; }
3862        catch (...) { };
3863        return 0;
3864      }
3865     
3866 EOF
3867 if { (eval echo configure:3868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3868 then
3869   ac_sectionLDflags=yes
3870 else
3871   echo "configure: failed program was:" >&5
3872   cat conftest.$ac_ext >&5
3873   rm -fr conftest*
3874   ac_sectionLFflags=no
3875 fi
3876 rm -fr conftest*
3877 fi
3878
3879     if test "$ac_test_CFLAGS" = set; then
3880       CFLAGS="$ac_save_CFLAGS"
3881     else
3882       # this is the suspicious part
3883       CFLAGS=''
3884     fi
3885     if test "$ac_sectionLDflags" = "yes"; then
3886       SECTION_LDFLAGS='-Wl,--gc-sections'
3887     fi
3888     echo "$ac_t""$ac_sectionLDflags" 1>&6
3889   fi
3890
3891   # Set linker optimization flags.
3892   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
3893      test x"$enable_debug" = x"no"; then
3894     OPT_LDFLAGS='-Wl,-O1'
3895   fi
3896
3897   
3898   
3899
3900         # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3901         # GLIBCPP_CHECK_MATH_SUPPORT
3902         cat >> confdefs.h <<\EOF
3903 #define HAVE_ACOSF 1
3904 EOF
3905
3906         cat >> confdefs.h <<\EOF
3907 #define HAVE_ASINF 1
3908 EOF
3909
3910         cat >> confdefs.h <<\EOF
3911 #define HAVE_ATAN2F 1
3912 EOF
3913
3914         cat >> confdefs.h <<\EOF
3915 #define HAVE_ATANF 1
3916 EOF
3917
3918         cat >> confdefs.h <<\EOF
3919 #define HAVE_CEILF 1
3920 EOF
3921
3922         cat >> confdefs.h <<\EOF
3923 #define HAVE_COPYSIGN 1
3924 EOF
3925
3926         cat >> confdefs.h <<\EOF
3927 #define HAVE_COPYSIGNF 1
3928 EOF
3929
3930         cat >> confdefs.h <<\EOF
3931 #define HAVE_COSF 1
3932 EOF
3933
3934         cat >> confdefs.h <<\EOF
3935 #define HAVE_COSHF 1
3936 EOF
3937
3938         cat >> confdefs.h <<\EOF
3939 #define HAVE_EXPF 1
3940 EOF
3941
3942         cat >> confdefs.h <<\EOF
3943 #define HAVE_FABSF 1
3944 EOF
3945
3946         cat >> confdefs.h <<\EOF
3947 #define HAVE_FINITE 1
3948 EOF
3949
3950         cat >> confdefs.h <<\EOF
3951 #define HAVE_FINITEF 1
3952 EOF
3953
3954         cat >> confdefs.h <<\EOF
3955 #define HAVE_FLOORF 1
3956 EOF
3957
3958         cat >> confdefs.h <<\EOF
3959 #define HAVE_FMODF 1
3960 EOF
3961
3962         cat >> confdefs.h <<\EOF
3963 #define HAVE_FREXPF 1
3964 EOF
3965
3966         cat >> confdefs.h <<\EOF
3967 #define HAVE_ISINF 1
3968 EOF
3969
3970         cat >> confdefs.h <<\EOF
3971 #define HAVE_ISINFF 1
3972 EOF
3973
3974         cat >> confdefs.h <<\EOF
3975 #define HAVE_ISNAN 1
3976 EOF
3977
3978         cat >> confdefs.h <<\EOF
3979 #define HAVE_ISNANF 1
3980 EOF
3981
3982         cat >> confdefs.h <<\EOF
3983 #define HAVE_LDEXPF 1
3984 EOF
3985
3986         cat >> confdefs.h <<\EOF
3987 #define HAVE_LOG10F 1
3988 EOF
3989
3990         cat >> confdefs.h <<\EOF
3991 #define HAVE_LOGF 1
3992 EOF
3993
3994         cat >> confdefs.h <<\EOF
3995 #define HAVE_MODFF 1
3996 EOF
3997
3998         cat >> confdefs.h <<\EOF
3999 #define HAVE_POWF 1
4000 EOF
4001
4002         cat >> confdefs.h <<\EOF
4003 #define HAVE_SINCOS 1
4004 EOF
4005
4006         cat >> confdefs.h <<\EOF
4007 #define HAVE_SINCOSF 1
4008 EOF
4009
4010         cat >> confdefs.h <<\EOF
4011 #define HAVE_SINF 1
4012 EOF
4013
4014         cat >> confdefs.h <<\EOF
4015 #define HAVE_SINHF 1
4016 EOF
4017
4018         cat >> confdefs.h <<\EOF
4019 #define HAVE_SQRTF 1
4020 EOF
4021
4022         cat >> confdefs.h <<\EOF
4023 #define HAVE_TANF 1
4024 EOF
4025
4026         cat >> confdefs.h <<\EOF
4027 #define HAVE_TANHF 1
4028 EOF
4029
4030
4031         # At some point, we should differentiate between architectures
4032         # like x86, which have long double versions, and alpha/powerpc/etc.,
4033         # which don't. For the time being, punt.
4034         if test x"long_double_math_on_this_cpu" = x"yes"; then
4035           cat >> confdefs.h <<\EOF
4036 #define HAVE_ACOSL 1
4037 EOF
4038
4039           cat >> confdefs.h <<\EOF
4040 #define HAVE_ASINL 1
4041 EOF
4042
4043           cat >> confdefs.h <<\EOF
4044 #define HAVE_ATAN2L 1
4045 EOF
4046
4047           cat >> confdefs.h <<\EOF
4048 #define HAVE_ATANL 1
4049 EOF
4050
4051           cat >> confdefs.h <<\EOF
4052 #define HAVE_CEILL 1
4053 EOF
4054
4055           cat >> confdefs.h <<\EOF
4056 #define HAVE_COPYSIGNL 1
4057 EOF
4058
4059           cat >> confdefs.h <<\EOF
4060 #define HAVE_COSL 1
4061 EOF
4062
4063           cat >> confdefs.h <<\EOF
4064 #define HAVE_COSHL 1
4065 EOF
4066
4067           cat >> confdefs.h <<\EOF
4068 #define HAVE_EXPL 1
4069 EOF
4070
4071           cat >> confdefs.h <<\EOF
4072 #define HAVE_FABSL 1
4073 EOF
4074
4075           cat >> confdefs.h <<\EOF
4076 #define HAVE_FINITEL 1
4077 EOF
4078
4079           cat >> confdefs.h <<\EOF
4080 #define HAVE_FLOORL 1
4081 EOF
4082
4083           cat >> confdefs.h <<\EOF
4084 #define HAVE_FMODL 1
4085 EOF
4086
4087           cat >> confdefs.h <<\EOF
4088 #define HAVE_FREXPL 1
4089 EOF
4090
4091           cat >> confdefs.h <<\EOF
4092 #define HAVE_ISINFL 1
4093 EOF
4094
4095           cat >> confdefs.h <<\EOF
4096 #define HAVE_ISNANL 1
4097 EOF
4098
4099           cat >> confdefs.h <<\EOF
4100 #define HAVE_LDEXPL 1
4101 EOF
4102
4103           cat >> confdefs.h <<\EOF
4104 #define HAVE_LOG10L 1
4105 EOF
4106
4107           cat >> confdefs.h <<\EOF
4108 #define HAVE_LOGL 1
4109 EOF
4110
4111           cat >> confdefs.h <<\EOF
4112 #define HAVE_MODFL 1
4113 EOF
4114
4115           cat >> confdefs.h <<\EOF
4116 #define HAVE_POWL 1
4117 EOF
4118
4119           cat >> confdefs.h <<\EOF
4120 #define HAVE_SINCOSL 1
4121 EOF
4122
4123           cat >> confdefs.h <<\EOF
4124 #define HAVE_SINL 1
4125 EOF
4126
4127           cat >> confdefs.h <<\EOF
4128 #define HAVE_SINHL 1
4129 EOF
4130
4131           cat >> confdefs.h <<\EOF
4132 #define HAVE_SQRTL 1
4133 EOF
4134
4135           cat >> confdefs.h <<\EOF
4136 #define HAVE_TANL 1
4137 EOF
4138
4139           cat >> confdefs.h <<\EOF
4140 #define HAVE_TANHL 1
4141 EOF
4142
4143         fi
4144         
4145     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4146 echo "configure:4147: checking for main in -lm" >&5
4147 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4148 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4149   echo $ac_n "(cached) $ac_c" 1>&6
4150 else
4151   ac_save_LIBS="$LIBS"
4152 LIBS="-lm  $LIBS"
4153 cat > conftest.$ac_ext <<EOF
4154 #line 4155 "configure"
4155 #include "confdefs.h"
4156
4157 int main() {
4158 main()
4159 ; return 0; }
4160 EOF
4161 if { (eval echo configure:4162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4162   rm -rf conftest*
4163   eval "ac_cv_lib_$ac_lib_var=yes"
4164 else
4165   echo "configure: failed program was:" >&5
4166   cat conftest.$ac_ext >&5
4167   rm -rf conftest*
4168   eval "ac_cv_lib_$ac_lib_var=no"
4169 fi
4170 rm -f conftest*
4171 LIBS="$ac_save_LIBS"
4172
4173 fi
4174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4175   echo "$ac_t""yes" 1>&6
4176     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4177     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4178   cat >> confdefs.h <<EOF
4179 #define $ac_tr_lib 1
4180 EOF
4181
4182   LIBS="-lm $LIBS"
4183
4184 else
4185   echo "$ac_t""no" 1>&6
4186 fi
4187
4188   for ac_func in nan hypot hypotf copysignf
4189 do
4190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4191 echo "configure:4192: checking for $ac_func" >&5
4192 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4193   echo $ac_n "(cached) $ac_c" 1>&6
4194 else
4195   cat > conftest.$ac_ext <<EOF
4196 #line 4197 "configure"
4197 #include "confdefs.h"
4198 /* System header to define __stub macros and hopefully few prototypes,
4199     which can conflict with char $ac_func(); below.  */
4200 #include <assert.h>
4201 /* Override any gcc2 internal prototype to avoid an error.  */
4202 /* We use char because int might match the return type of a gcc2
4203     builtin and then its argument prototype would still apply.  */
4204 char $ac_func();
4205
4206 int main() {
4207
4208 /* The GNU C library defines this for functions which it implements
4209     to always fail with ENOSYS.  Some functions are actually named
4210     something starting with __ and the normal name is an alias.  */
4211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4212 choke me
4213 #else
4214 $ac_func();
4215 #endif
4216
4217 ; return 0; }
4218 EOF
4219 if { (eval echo configure:4220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4220   rm -rf conftest*
4221   eval "ac_cv_func_$ac_func=yes"
4222 else
4223   echo "configure: failed program was:" >&5
4224   cat conftest.$ac_ext >&5
4225   rm -rf conftest*
4226   eval "ac_cv_func_$ac_func=no"
4227 fi
4228 rm -f conftest*
4229 fi
4230
4231 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4232   echo "$ac_t""yes" 1>&6
4233     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4234   cat >> confdefs.h <<EOF
4235 #define $ac_tr_func 1
4236 EOF
4237  
4238 else
4239   echo "$ac_t""no" 1>&6
4240 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4241 fi
4242 done
4243
4244
4245
4246           USE_COMPLEX_LONG_DOUBLE=no
4247   if test x$ac_cv_func_atan2l = x"yes" &&
4248      test x$ac_cv_func_copysignl = x"yes"; then
4249     USE_COMPLEX_LONG_DOUBLE=yes
4250     for ac_func in hypotl signbitl
4251 do
4252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4253 echo "configure:4254: checking for $ac_func" >&5
4254 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4255   echo $ac_n "(cached) $ac_c" 1>&6
4256 else
4257   cat > conftest.$ac_ext <<EOF
4258 #line 4259 "configure"
4259 #include "confdefs.h"
4260 /* System header to define __stub macros and hopefully few prototypes,
4261     which can conflict with char $ac_func(); below.  */
4262 #include <assert.h>
4263 /* Override any gcc2 internal prototype to avoid an error.  */
4264 /* We use char because int might match the return type of a gcc2
4265     builtin and then its argument prototype would still apply.  */
4266 char $ac_func();
4267
4268 int main() {
4269
4270 /* The GNU C library defines this for functions which it implements
4271     to always fail with ENOSYS.  Some functions are actually named
4272     something starting with __ and the normal name is an alias.  */
4273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4274 choke me
4275 #else
4276 $ac_func();
4277 #endif
4278
4279 ; return 0; }
4280 EOF
4281 if { (eval echo configure:4282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4282   rm -rf conftest*
4283   eval "ac_cv_func_$ac_func=yes"
4284 else
4285   echo "configure: failed program was:" >&5
4286   cat conftest.$ac_ext >&5
4287   rm -rf conftest*
4288   eval "ac_cv_func_$ac_func=no"
4289 fi
4290 rm -f conftest*
4291 fi
4292
4293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4294   echo "$ac_t""yes" 1>&6
4295     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4296   cat >> confdefs.h <<EOF
4297 #define $ac_tr_func 1
4298 EOF
4299  
4300 else
4301   echo "$ac_t""no" 1>&6
4302 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4303 fi
4304 done
4305
4306
4307   fi
4308
4309   
4310
4311         
4312
4313       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4314 echo "configure:4315: checking for mbstate_t" >&5
4315   cat > conftest.$ac_ext <<EOF
4316 #line 4317 "configure"
4317 #include "confdefs.h"
4318 #include <wchar.h>
4319 int main() {
4320 mbstate_t teststate;
4321 ; return 0; }
4322 EOF
4323 if { (eval echo configure:4324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4324   rm -rf conftest*
4325   have_mbstate_t=yes
4326 else
4327   echo "configure: failed program was:" >&5
4328   cat conftest.$ac_ext >&5
4329   rm -rf conftest*
4330   have_mbstate_t=no
4331 fi
4332 rm -f conftest*
4333   echo "$ac_t""$have_mbstate_t" 1>&6
4334   if test x"$have_mbstate_t" = xyes; then
4335     cat >> confdefs.h <<\EOF
4336 #define HAVE_MBSTATE_T 1
4337 EOF
4338
4339   fi
4340
4341     for ac_hdr in wchar.h
4342 do
4343 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4344 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4345 echo "configure:4346: checking for $ac_hdr" >&5
4346 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4347   echo $ac_n "(cached) $ac_c" 1>&6
4348 else
4349   cat > conftest.$ac_ext <<EOF
4350 #line 4351 "configure"
4351 #include "confdefs.h"
4352 #include <$ac_hdr>
4353 EOF
4354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4355 { (eval echo configure:4356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4357 if test -z "$ac_err"; then
4358   rm -rf conftest*
4359   eval "ac_cv_header_$ac_safe=yes"
4360 else
4361   echo "$ac_err" >&5
4362   echo "configure: failed program was:" >&5
4363   cat conftest.$ac_ext >&5
4364   rm -rf conftest*
4365   eval "ac_cv_header_$ac_safe=no"
4366 fi
4367 rm -f conftest*
4368 fi
4369 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4370   echo "$ac_t""yes" 1>&6
4371     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4372   cat >> confdefs.h <<EOF
4373 #define $ac_tr_hdr 1
4374 EOF
4375  ac_has_wchar_h=yes
4376 else
4377   echo "$ac_t""no" 1>&6
4378 ac_has_wchar_h=no
4379 fi
4380 done
4381
4382   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4383 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4384 echo "configure:4385: checking for wctype.h" >&5
4385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4386   echo $ac_n "(cached) $ac_c" 1>&6
4387 else
4388   cat > conftest.$ac_ext <<EOF
4389 #line 4390 "configure"
4390 #include "confdefs.h"
4391 #include <wctype.h>
4392 EOF
4393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4394 { (eval echo configure:4395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4396 if test -z "$ac_err"; then
4397   rm -rf conftest*
4398   eval "ac_cv_header_$ac_safe=yes"
4399 else
4400   echo "$ac_err" >&5
4401   echo "configure: failed program was:" >&5
4402   cat conftest.$ac_ext >&5
4403   rm -rf conftest*
4404   eval "ac_cv_header_$ac_safe=no"
4405 fi
4406 rm -f conftest*
4407 fi
4408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4409   echo "$ac_t""yes" 1>&6
4410   ac_has_wctype_h=yes
4411 else
4412   echo "$ac_t""no" 1>&6
4413 ac_has_wctype_h=no
4414 fi
4415
4416   
4417     if test x"$ac_has_wchar_h" = xyes &&
4418      test x"$ac_has_wctype_h" = xyes &&
4419      test x"$enable_c_mbchar" != xno; then
4420       
4421             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4422 echo "configure:4423: checking for WCHAR_MIN and WCHAR_MAX" >&5
4423     cat > conftest.$ac_ext <<EOF
4424 #line 4425 "configure"
4425 #include "confdefs.h"
4426 #include <wchar.h>
4427 int main() {
4428 int i = WCHAR_MIN; int j = WCHAR_MAX;
4429 ; return 0; }
4430 EOF
4431 if { (eval echo configure:4432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4432   rm -rf conftest*
4433   has_wchar_minmax=yes
4434 else
4435   echo "configure: failed program was:" >&5
4436   cat conftest.$ac_ext >&5
4437   rm -rf conftest*
4438   has_wchar_minmax=no
4439 fi
4440 rm -f conftest*
4441     echo "$ac_t""$has_wchar_minmax" 1>&6
4442     
4443             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4444 echo "configure:4445: checking for WEOF" >&5
4445     cat > conftest.$ac_ext <<EOF
4446 #line 4447 "configure"
4447 #include "confdefs.h"
4448
4449       #include <wchar.h>
4450       #include <stddef.h>
4451 int main() {
4452 wint_t i = WEOF;
4453 ; return 0; }
4454 EOF
4455 if { (eval echo configure:4456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4456   rm -rf conftest*
4457   has_weof=yes
4458 else
4459   echo "configure: failed program was:" >&5
4460   cat conftest.$ac_ext >&5
4461   rm -rf conftest*
4462   has_weof=no
4463 fi
4464 rm -f conftest*
4465     echo "$ac_t""$has_weof" 1>&6
4466   
4467         ac_wfuncs=yes
4468     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4469 do
4470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4471 echo "configure:4472: checking for $ac_func" >&5
4472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4473   echo $ac_n "(cached) $ac_c" 1>&6
4474 else
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.  */
4484 char $ac_func();
4485
4486 int 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)
4492 choke me
4493 #else
4494 $ac_func();
4495 #endif
4496
4497 ; return 0; }
4498 EOF
4499 if { (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"
4502 else
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"
4507 fi
4508 rm -f conftest*
4509 fi
4510
4511 if 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
4516 EOF
4517  
4518 else
4519   echo "$ac_t""no" 1>&6
4520 \
4521     ac_wfuncs=no
4522 fi
4523 done
4524
4525   
4526         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4527     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4528     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4529     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4530     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4531     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4532 do
4533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4534 echo "configure:4535: checking for $ac_func" >&5
4535 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4536   echo $ac_n "(cached) $ac_c" 1>&6
4537 else
4538   cat > conftest.$ac_ext <<EOF
4539 #line 4540 "configure"
4540 #include "confdefs.h"
4541 /* System header to define __stub macros and hopefully few prototypes,
4542     which can conflict with char $ac_func(); below.  */
4543 #include <assert.h>
4544 /* Override any gcc2 internal prototype to avoid an error.  */
4545 /* We use char because int might match the return type of a gcc2
4546     builtin and then its argument prototype would still apply.  */
4547 char $ac_func();
4548
4549 int main() {
4550
4551 /* The GNU C library defines this for functions which it implements
4552     to always fail with ENOSYS.  Some functions are actually named
4553     something starting with __ and the normal name is an alias.  */
4554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4555 choke me
4556 #else
4557 $ac_func();
4558 #endif
4559
4560 ; return 0; }
4561 EOF
4562 if { (eval echo configure:4563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4563   rm -rf conftest*
4564   eval "ac_cv_func_$ac_func=yes"
4565 else
4566   echo "configure: failed program was:" >&5
4567   cat conftest.$ac_ext >&5
4568   rm -rf conftest*
4569   eval "ac_cv_func_$ac_func=no"
4570 fi
4571 rm -f conftest*
4572 fi
4573
4574 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4575   echo "$ac_t""yes" 1>&6
4576     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4577   cat >> confdefs.h <<EOF
4578 #define $ac_tr_func 1
4579 EOF
4580  
4581 else
4582   echo "$ac_t""no" 1>&6
4583 \
4584     ac_wfuncs=no
4585 fi
4586 done
4587
4588
4589     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4590 echo "configure:4591: checking for ISO C99 wchar_t support" >&5
4591     if test x"$has_weof" = xyes &&
4592        test x"$has_wchar_minmax" = xyes &&
4593        test x"$ac_wfuncs" = xyes; then
4594       ac_isoC99_wchar_t=yes
4595     else
4596       ac_isoC99_wchar_t=no
4597     fi
4598     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4599   
4600             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4601 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4602 echo "configure:4603: checking for iconv.h" >&5
4603 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4604   echo $ac_n "(cached) $ac_c" 1>&6
4605 else
4606   cat > conftest.$ac_ext <<EOF
4607 #line 4608 "configure"
4608 #include "confdefs.h"
4609 #include <iconv.h>
4610 EOF
4611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4612 { (eval echo configure:4613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4614 if test -z "$ac_err"; then
4615   rm -rf conftest*
4616   eval "ac_cv_header_$ac_safe=yes"
4617 else
4618   echo "$ac_err" >&5
4619   echo "configure: failed program was:" >&5
4620   cat conftest.$ac_ext >&5
4621   rm -rf conftest*
4622   eval "ac_cv_header_$ac_safe=no"
4623 fi
4624 rm -f conftest*
4625 fi
4626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4627   echo "$ac_t""yes" 1>&6
4628   ac_has_iconv_h=yes
4629 else
4630   echo "$ac_t""no" 1>&6
4631 ac_has_iconv_h=no
4632 fi
4633
4634     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4635 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4636 echo "configure:4637: checking for langinfo.h" >&5
4637 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4638   echo $ac_n "(cached) $ac_c" 1>&6
4639 else
4640   cat > conftest.$ac_ext <<EOF
4641 #line 4642 "configure"
4642 #include "confdefs.h"
4643 #include <langinfo.h>
4644 EOF
4645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4646 { (eval echo configure:4647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4647 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4648 if test -z "$ac_err"; then
4649   rm -rf conftest*
4650   eval "ac_cv_header_$ac_safe=yes"
4651 else
4652   echo "$ac_err" >&5
4653   echo "configure: failed program was:" >&5
4654   cat conftest.$ac_ext >&5
4655   rm -rf conftest*
4656   eval "ac_cv_header_$ac_safe=no"
4657 fi
4658 rm -f conftest*
4659 fi
4660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4661   echo "$ac_t""yes" 1>&6
4662   ac_has_langinfo_h=yes
4663 else
4664   echo "$ac_t""no" 1>&6
4665 ac_has_langinfo_h=no
4666 fi
4667
4668
4669         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4670 echo "configure:4671: checking for iconv in -liconv" >&5
4671 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4672 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4673   echo $ac_n "(cached) $ac_c" 1>&6
4674 else
4675   ac_save_LIBS="$LIBS"
4676 LIBS="-liconv  $LIBS"
4677 cat > conftest.$ac_ext <<EOF
4678 #line 4679 "configure"
4679 #include "confdefs.h"
4680 /* Override any gcc2 internal prototype to avoid an error.  */
4681 /* We use char because int might match the return type of a gcc2
4682     builtin and then its argument prototype would still apply.  */
4683 char iconv();
4684
4685 int main() {
4686 iconv()
4687 ; return 0; }
4688 EOF
4689 if { (eval echo configure:4690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4690   rm -rf conftest*
4691   eval "ac_cv_lib_$ac_lib_var=yes"
4692 else
4693   echo "configure: failed program was:" >&5
4694   cat conftest.$ac_ext >&5
4695   rm -rf conftest*
4696   eval "ac_cv_lib_$ac_lib_var=no"
4697 fi
4698 rm -f conftest*
4699 LIBS="$ac_save_LIBS"
4700
4701 fi
4702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4703   echo "$ac_t""yes" 1>&6
4704   libiconv="-liconv"
4705 else
4706   echo "$ac_t""no" 1>&6
4707 fi
4708
4709     ac_save_LIBS="$LIBS"
4710     LIBS="$LIBS $libiconv"
4711
4712     for ac_func in iconv_open iconv_close iconv nl_langinfo
4713 do
4714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4715 echo "configure:4716: checking for $ac_func" >&5
4716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4717   echo $ac_n "(cached) $ac_c" 1>&6
4718 else
4719   cat > conftest.$ac_ext <<EOF
4720 #line 4721 "configure"
4721 #include "confdefs.h"
4722 /* System header to define __stub macros and hopefully few prototypes,
4723     which can conflict with char $ac_func(); below.  */
4724 #include <assert.h>
4725 /* Override any gcc2 internal prototype to avoid an error.  */
4726 /* We use char because int might match the return type of a gcc2
4727     builtin and then its argument prototype would still apply.  */
4728 char $ac_func();
4729
4730 int main() {
4731
4732 /* The GNU C library defines this for functions which it implements
4733     to always fail with ENOSYS.  Some functions are actually named
4734     something starting with __ and the normal name is an alias.  */
4735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4736 choke me
4737 #else
4738 $ac_func();
4739 #endif
4740
4741 ; return 0; }
4742 EOF
4743 if { (eval echo configure:4744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4744   rm -rf conftest*
4745   eval "ac_cv_func_$ac_func=yes"
4746 else
4747   echo "configure: failed program was:" >&5
4748   cat conftest.$ac_ext >&5
4749   rm -rf conftest*
4750   eval "ac_cv_func_$ac_func=no"
4751 fi
4752 rm -f conftest*
4753 fi
4754
4755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4756   echo "$ac_t""yes" 1>&6
4757     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4758   cat >> confdefs.h <<EOF
4759 #define $ac_tr_func 1
4760 EOF
4761  \
4762     ac_XPG2funcs=yes
4763 else
4764   echo "$ac_t""no" 1>&6
4765 ac_XPG2funcs=no
4766 fi
4767 done
4768
4769   
4770     LIBS="$ac_save_LIBS"
4771
4772     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4773 echo "configure:4774: checking for XPG2 wchar_t support" >&5
4774     if test x"$ac_has_iconv_h" = xyes &&
4775        test x"$ac_has_langinfo_h" = xyes &&
4776        test x"$ac_XPG2funcs" = xyes; then
4777       ac_XPG2_wchar_t=yes
4778     else
4779       ac_XPG2_wchar_t=no
4780     fi
4781     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4782   
4783             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4784 echo "configure:4785: checking for enabled wchar_t specializations" >&5
4785     if test x"$ac_isoC99_wchar_t" = xyes &&
4786        test x"$ac_XPG2_wchar_t" = xyes; then
4787       cat >> confdefs.h <<\EOF
4788 #define _GLIBCPP_USE_WCHAR_T 1
4789 EOF
4790
4791       echo "$ac_t"""yes"" 1>&6
4792     else
4793       echo "$ac_t"""no"" 1>&6
4794     fi
4795   else
4796         echo "configure: warning: wchar_t support disabled." 1>&2
4797   fi
4798
4799         os_include_dir="config/os/gnu-linux"
4800         # GLIBCPP_CHECK_STDLIB_SUPPORT
4801         cat >> confdefs.h <<\EOF
4802 #define HAVE_STRTOF 1
4803 EOF
4804         
4805         cat >> confdefs.h <<\EOF
4806 #define HAVE_STRTOLD 1
4807 EOF
4808         
4809         # AC_FUNC_MMAP
4810         cat >> confdefs.h <<\EOF
4811 #define HAVE_MMAP 1
4812 EOF
4813
4814         ;;
4815     *)
4816         # We assume newlib.  This lets us hard-code the functions we know
4817         # we'll have.
4818         cat >> confdefs.h <<\EOF
4819 #define HAVE_FINITE 1
4820 EOF
4821
4822         cat >> confdefs.h <<\EOF
4823 #define HAVE_ISNAN 1
4824 EOF
4825
4826         cat >> confdefs.h <<\EOF
4827 #define HAVE_ISNANF 1
4828 EOF
4829
4830         cat >> confdefs.h <<\EOF
4831 #define HAVE_ISINF 1
4832 EOF
4833
4834         cat >> confdefs.h <<\EOF
4835 #define HAVE_ISINFF 1
4836 EOF
4837
4838
4839         os_include_dir="config/os/newlib"
4840
4841         # need to check for faster f versions of math functions, ie sinf?
4842         ;;
4843   esac
4844 else
4845
4846   # We are being configured natively. We can do more elaborate tests
4847   # that include AC_TRY_COMPILE now, as the linker is assumed to be
4848   # working.
4849   GLIBCPP_IS_CROSS_COMPILING=0
4850   CANADIAN=no
4851
4852   # Check for available headers.
4853   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
4854   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
4855 do
4856 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4857 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4858 echo "configure:4859: checking for $ac_hdr" >&5
4859 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4860   echo $ac_n "(cached) $ac_c" 1>&6
4861 else
4862   cat > conftest.$ac_ext <<EOF
4863 #line 4864 "configure"
4864 #include "confdefs.h"
4865 #include <$ac_hdr>
4866 EOF
4867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4868 { (eval echo configure:4869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4870 if test -z "$ac_err"; then
4871   rm -rf conftest*
4872   eval "ac_cv_header_$ac_safe=yes"
4873 else
4874   echo "$ac_err" >&5
4875   echo "configure: failed program was:" >&5
4876   cat conftest.$ac_ext >&5
4877   rm -rf conftest*
4878   eval "ac_cv_header_$ac_safe=no"
4879 fi
4880 rm -f conftest*
4881 fi
4882 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4883   echo "$ac_t""yes" 1>&6
4884     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4885   cat >> confdefs.h <<EOF
4886 #define $ac_tr_hdr 1
4887 EOF
4888  
4889 else
4890   echo "$ac_t""no" 1>&6
4891 fi
4892 done
4893
4894
4895   
4896   # All these tests are for C++; save the language and the compiler flags.
4897   # The CXXFLAGS thing is suspicious, but based on similar bits previously
4898   # found in GLIBCPP_CONFIGURE.
4899   
4900   ac_ext=C
4901 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4902 ac_cpp='$CXXCPP $CPPFLAGS'
4903 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4904 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4905 cross_compiling=$ac_cv_prog_cxx_cross
4906
4907   ac_test_CXXFLAGS="${CXXFLAGS+set}"
4908   ac_save_CXXFLAGS="$CXXFLAGS"
4909
4910   # Check for maintainer-mode bits.
4911   if test x"$USE_MAINTAINER_MODE" = xno; then
4912     WERROR=''
4913   else
4914     WERROR='-Werror'
4915   fi
4916
4917   # Check for -ffunction-sections -fdata-sections
4918   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
4919 echo "configure:4920: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
4920   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
4921   cat > conftest.$ac_ext <<EOF
4922 #line 4923 "configure"
4923 #include "confdefs.h"
4924
4925 int main() {
4926 int foo;
4927   
4928 ; return 0; }
4929 EOF
4930 if { (eval echo configure:4931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4931   rm -rf conftest*
4932   ac_fdsections=yes
4933 else
4934   echo "configure: failed program was:" >&5
4935   cat conftest.$ac_ext >&5
4936   rm -rf conftest*
4937   ac_fdsections=no
4938 fi
4939 rm -f conftest*
4940   if test "$ac_test_CXXFLAGS" = set; then
4941     CXXFLAGS="$ac_save_CXXFLAGS"
4942   else
4943     # this is the suspicious part
4944     CXXFLAGS=''
4945   fi
4946   if test x"$ac_fdsections" = x"yes" &&
4947      test x"$enable_debug" = x"no"; then
4948     SECTION_FLAGS='-ffunction-sections -fdata-sections'
4949   fi
4950   echo "$ac_t""$ac_fdsections" 1>&6
4951
4952   ac_ext=c
4953 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4954 ac_cpp='$CPP $CPPFLAGS'
4955 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4956 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4957 cross_compiling=$ac_cv_prog_cc_cross
4958
4959   
4960   
4961
4962   
4963   # If we're not using GNU ld, then there's no point in even trying these
4964   # tests.  Check for that first.  We should have already tested for gld
4965   # by now (in libtool), but require it now just to be safe...
4966   SECTION_LDFLAGS=''
4967   OPT_LDFLAGS=''
4968   
4969
4970   # Set --gc-sections.
4971   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4972     # GNU ld it is!  Joy and bunny rabbits!
4973
4974     # All these tests are for C++; save the language and the compiler flags.
4975     # Need to do this so that g++ won't try to link in libstdc++
4976     ac_test_CFLAGS="${CFLAGS+set}"
4977     ac_save_CFLAGS="$CFLAGS"
4978     CFLAGS='-x c++  -Wl,--gc-sections'
4979
4980     # Check for -Wl,--gc-sections
4981     # XXX This test is broken at the moment, as symbols required for
4982     # linking are now in libsupc++ (not built yet.....). In addition, 
4983     # this test has cored on solaris in the past. In addition,
4984     # --gc-sections doesn't really work at the moment (keeps on discarding
4985     # used sections, first .eh_frame and now some of the glibc sections for
4986     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4987     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4988 echo "configure:4989: checking for ld that supports -Wl,--gc-sections" >&5
4989     if test "$cross_compiling" = yes; then
4990   ac_sectionLDflags=yes
4991 else
4992   cat > conftest.$ac_ext <<EOF
4993 #line 4994 "configure"
4994 #include "confdefs.h"
4995
4996      int main(void) 
4997      {
4998        try { throw 1; }
4999        catch (...) { };
5000        return 0;
5001      }
5002     
5003 EOF
5004 if { (eval echo configure:5005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5005 then
5006   ac_sectionLDflags=yes
5007 else
5008   echo "configure: failed program was:" >&5
5009   cat conftest.$ac_ext >&5
5010   rm -fr conftest*
5011   ac_sectionLFflags=no
5012 fi
5013 rm -fr conftest*
5014 fi
5015
5016     if test "$ac_test_CFLAGS" = set; then
5017       CFLAGS="$ac_save_CFLAGS"
5018     else
5019       # this is the suspicious part
5020       CFLAGS=''
5021     fi
5022     if test "$ac_sectionLDflags" = "yes"; then
5023       SECTION_LDFLAGS='-Wl,--gc-sections'
5024     fi
5025     echo "$ac_t""$ac_sectionLDflags" 1>&6
5026   fi
5027
5028   # Set linker optimization flags.
5029   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
5030      test x"$enable_debug" = x"no"; then
5031     OPT_LDFLAGS='-Wl,-O1'
5032   fi
5033
5034   
5035   
5036
5037   
5038       
5039   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
5040 echo "configure:5041: checking for __builtin_abs declaration" >&5
5041   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
5042     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
5043   echo $ac_n "(cached) $ac_c" 1>&6
5044 else
5045   
5046       
5047       ac_ext=C
5048 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5049 ac_cpp='$CXXCPP $CPPFLAGS'
5050 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5051 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5052 cross_compiling=$ac_cv_prog_cxx_cross
5053
5054       cat > conftest.$ac_ext <<EOF
5055 #line 5056 "configure"
5056 #include "confdefs.h"
5057 #include <math.h>
5058 int main() {
5059  __builtin_abs(0);
5060 ; return 0; }
5061 EOF
5062 if { (eval echo configure:5063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5063   rm -rf conftest*
5064   glibcpp_cv_func___builtin_abs_use=yes
5065 else
5066   echo "configure: failed program was:" >&5
5067   cat conftest.$ac_ext >&5
5068   rm -rf conftest*
5069   glibcpp_cv_func___builtin_abs_use=no
5070 fi
5071 rm -f conftest*
5072       ac_ext=c
5073 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5074 ac_cpp='$CPP $CPPFLAGS'
5075 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5076 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5077 cross_compiling=$ac_cv_prog_cc_cross
5078
5079     
5080 fi
5081
5082   fi
5083   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
5084   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
5085     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
5086 echo "configure:5087: checking for __builtin_abs linkage" >&5
5087     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
5088       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
5089   echo $ac_n "(cached) $ac_c" 1>&6
5090 else
5091   
5092         cat > conftest.$ac_ext <<EOF
5093 #line 5094 "configure"
5094 #include "confdefs.h"
5095 #include <math.h>
5096 int main() {
5097  __builtin_abs(0);
5098 ; return 0; }
5099 EOF
5100 if { (eval echo configure:5101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5101   rm -rf conftest*
5102   glibcpp_cv_func___builtin_abs_link=yes
5103 else
5104   echo "configure: failed program was:" >&5
5105   cat conftest.$ac_ext >&5
5106   rm -rf conftest*
5107   glibcpp_cv_func___builtin_abs_link=no
5108 fi
5109 rm -f conftest*
5110       
5111 fi
5112
5113     fi
5114     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
5115     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
5116       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5117       cat >> confdefs.h <<EOF
5118 #define ${ac_tr_func} 1
5119 EOF
5120
5121     fi
5122   fi
5123
5124   
5125   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
5126 echo "configure:5127: checking for __builtin_fabsf declaration" >&5
5127   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
5128     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
5129   echo $ac_n "(cached) $ac_c" 1>&6
5130 else
5131   
5132       
5133       ac_ext=C
5134 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5135 ac_cpp='$CXXCPP $CPPFLAGS'
5136 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5137 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5138 cross_compiling=$ac_cv_prog_cxx_cross
5139
5140       cat > conftest.$ac_ext <<EOF
5141 #line 5142 "configure"
5142 #include "confdefs.h"
5143 #include <math.h>
5144 int main() {
5145  __builtin_fabsf(0);
5146 ; return 0; }
5147 EOF
5148 if { (eval echo configure:5149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5149   rm -rf conftest*
5150   glibcpp_cv_func___builtin_fabsf_use=yes
5151 else
5152   echo "configure: failed program was:" >&5
5153   cat conftest.$ac_ext >&5
5154   rm -rf conftest*
5155   glibcpp_cv_func___builtin_fabsf_use=no
5156 fi
5157 rm -f conftest*
5158       ac_ext=c
5159 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5160 ac_cpp='$CPP $CPPFLAGS'
5161 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5162 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5163 cross_compiling=$ac_cv_prog_cc_cross
5164
5165     
5166 fi
5167
5168   fi
5169   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
5170   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
5171     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
5172 echo "configure:5173: checking for __builtin_fabsf linkage" >&5
5173     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
5174       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
5175   echo $ac_n "(cached) $ac_c" 1>&6
5176 else
5177   
5178         cat > conftest.$ac_ext <<EOF
5179 #line 5180 "configure"
5180 #include "confdefs.h"
5181 #include <math.h>
5182 int main() {
5183  __builtin_fabsf(0);
5184 ; return 0; }
5185 EOF
5186 if { (eval echo configure:5187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5187   rm -rf conftest*
5188   glibcpp_cv_func___builtin_fabsf_link=yes
5189 else
5190   echo "configure: failed program was:" >&5
5191   cat conftest.$ac_ext >&5
5192   rm -rf conftest*
5193   glibcpp_cv_func___builtin_fabsf_link=no
5194 fi
5195 rm -f conftest*
5196       
5197 fi
5198
5199     fi
5200     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
5201     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
5202       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5203       cat >> confdefs.h <<EOF
5204 #define ${ac_tr_func} 1
5205 EOF
5206
5207     fi
5208   fi
5209
5210   
5211   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
5212 echo "configure:5213: checking for __builtin_fabs declaration" >&5
5213   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
5214     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
5215   echo $ac_n "(cached) $ac_c" 1>&6
5216 else
5217   
5218       
5219       ac_ext=C
5220 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5221 ac_cpp='$CXXCPP $CPPFLAGS'
5222 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5223 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5224 cross_compiling=$ac_cv_prog_cxx_cross
5225
5226       cat > conftest.$ac_ext <<EOF
5227 #line 5228 "configure"
5228 #include "confdefs.h"
5229 #include <math.h>
5230 int main() {
5231  __builtin_fabs(0);
5232 ; return 0; }
5233 EOF
5234 if { (eval echo configure:5235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5235   rm -rf conftest*
5236   glibcpp_cv_func___builtin_fabs_use=yes
5237 else
5238   echo "configure: failed program was:" >&5
5239   cat conftest.$ac_ext >&5
5240   rm -rf conftest*
5241   glibcpp_cv_func___builtin_fabs_use=no
5242 fi
5243 rm -f conftest*
5244       ac_ext=c
5245 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5246 ac_cpp='$CPP $CPPFLAGS'
5247 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5248 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5249 cross_compiling=$ac_cv_prog_cc_cross
5250
5251     
5252 fi
5253
5254   fi
5255   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
5256   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
5257     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
5258 echo "configure:5259: checking for __builtin_fabs linkage" >&5
5259     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
5260       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
5261   echo $ac_n "(cached) $ac_c" 1>&6
5262 else
5263   
5264         cat > conftest.$ac_ext <<EOF
5265 #line 5266 "configure"
5266 #include "confdefs.h"
5267 #include <math.h>
5268 int main() {
5269  __builtin_fabs(0);
5270 ; return 0; }
5271 EOF
5272 if { (eval echo configure:5273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5273   rm -rf conftest*
5274   glibcpp_cv_func___builtin_fabs_link=yes
5275 else
5276   echo "configure: failed program was:" >&5
5277   cat conftest.$ac_ext >&5
5278   rm -rf conftest*
5279   glibcpp_cv_func___builtin_fabs_link=no
5280 fi
5281 rm -f conftest*
5282       
5283 fi
5284
5285     fi
5286     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
5287     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
5288       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5289       cat >> confdefs.h <<EOF
5290 #define ${ac_tr_func} 1
5291 EOF
5292
5293     fi
5294   fi
5295
5296   
5297   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
5298 echo "configure:5299: checking for __builtin_fabsl declaration" >&5
5299   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
5300     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
5301   echo $ac_n "(cached) $ac_c" 1>&6
5302 else
5303   
5304       
5305       ac_ext=C
5306 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5307 ac_cpp='$CXXCPP $CPPFLAGS'
5308 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5309 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5310 cross_compiling=$ac_cv_prog_cxx_cross
5311
5312       cat > conftest.$ac_ext <<EOF
5313 #line 5314 "configure"
5314 #include "confdefs.h"
5315 #include <math.h>
5316 int main() {
5317  __builtin_fabsl(0);
5318 ; return 0; }
5319 EOF
5320 if { (eval echo configure:5321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5321   rm -rf conftest*
5322   glibcpp_cv_func___builtin_fabsl_use=yes
5323 else
5324   echo "configure: failed program was:" >&5
5325   cat conftest.$ac_ext >&5
5326   rm -rf conftest*
5327   glibcpp_cv_func___builtin_fabsl_use=no
5328 fi
5329 rm -f conftest*
5330       ac_ext=c
5331 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5332 ac_cpp='$CPP $CPPFLAGS'
5333 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5334 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5335 cross_compiling=$ac_cv_prog_cc_cross
5336
5337     
5338 fi
5339
5340   fi
5341   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
5342   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
5343     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
5344 echo "configure:5345: checking for __builtin_fabsl linkage" >&5
5345     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
5346       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
5347   echo $ac_n "(cached) $ac_c" 1>&6
5348 else
5349   
5350         cat > conftest.$ac_ext <<EOF
5351 #line 5352 "configure"
5352 #include "confdefs.h"
5353 #include <math.h>
5354 int main() {
5355  __builtin_fabsl(0);
5356 ; return 0; }
5357 EOF
5358 if { (eval echo configure:5359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5359   rm -rf conftest*
5360   glibcpp_cv_func___builtin_fabsl_link=yes
5361 else
5362   echo "configure: failed program was:" >&5
5363   cat conftest.$ac_ext >&5
5364   rm -rf conftest*
5365   glibcpp_cv_func___builtin_fabsl_link=no
5366 fi
5367 rm -f conftest*
5368       
5369 fi
5370
5371     fi
5372     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
5373     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
5374       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5375       cat >> confdefs.h <<EOF
5376 #define ${ac_tr_func} 1
5377 EOF
5378
5379     fi
5380   fi
5381
5382   
5383   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
5384 echo "configure:5385: checking for __builtin_labs declaration" >&5
5385   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
5386     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
5387   echo $ac_n "(cached) $ac_c" 1>&6
5388 else
5389   
5390       
5391       ac_ext=C
5392 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5393 ac_cpp='$CXXCPP $CPPFLAGS'
5394 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5395 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5396 cross_compiling=$ac_cv_prog_cxx_cross
5397
5398       cat > conftest.$ac_ext <<EOF
5399 #line 5400 "configure"
5400 #include "confdefs.h"
5401 #include <math.h>
5402 int main() {
5403  __builtin_labs(0);
5404 ; return 0; }
5405 EOF
5406 if { (eval echo configure:5407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5407   rm -rf conftest*
5408   glibcpp_cv_func___builtin_labs_use=yes
5409 else
5410   echo "configure: failed program was:" >&5
5411   cat conftest.$ac_ext >&5
5412   rm -rf conftest*
5413   glibcpp_cv_func___builtin_labs_use=no
5414 fi
5415 rm -f conftest*
5416       ac_ext=c
5417 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5418 ac_cpp='$CPP $CPPFLAGS'
5419 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5420 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5421 cross_compiling=$ac_cv_prog_cc_cross
5422
5423     
5424 fi
5425
5426   fi
5427   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
5428   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
5429     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
5430 echo "configure:5431: checking for __builtin_labs linkage" >&5
5431     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
5432       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
5433   echo $ac_n "(cached) $ac_c" 1>&6
5434 else
5435   
5436         cat > conftest.$ac_ext <<EOF
5437 #line 5438 "configure"
5438 #include "confdefs.h"
5439 #include <math.h>
5440 int main() {
5441  __builtin_labs(0);
5442 ; return 0; }
5443 EOF
5444 if { (eval echo configure:5445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5445   rm -rf conftest*
5446   glibcpp_cv_func___builtin_labs_link=yes
5447 else
5448   echo "configure: failed program was:" >&5
5449   cat conftest.$ac_ext >&5
5450   rm -rf conftest*
5451   glibcpp_cv_func___builtin_labs_link=no
5452 fi
5453 rm -f conftest*
5454       
5455 fi
5456
5457     fi
5458     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5459     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5460       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5461       cat >> confdefs.h <<EOF
5462 #define ${ac_tr_func} 1
5463 EOF
5464
5465     fi
5466   fi
5467
5468
5469   
5470   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5471 echo "configure:5472: checking for __builtin_sqrtf declaration" >&5
5472   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5473     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
5474   echo $ac_n "(cached) $ac_c" 1>&6
5475 else
5476   
5477       
5478       ac_ext=C
5479 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5480 ac_cpp='$CXXCPP $CPPFLAGS'
5481 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5482 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5483 cross_compiling=$ac_cv_prog_cxx_cross
5484
5485       cat > conftest.$ac_ext <<EOF
5486 #line 5487 "configure"
5487 #include "confdefs.h"
5488 #include <math.h>
5489 int main() {
5490  __builtin_sqrtf(0);
5491 ; return 0; }
5492 EOF
5493 if { (eval echo configure:5494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5494   rm -rf conftest*
5495   glibcpp_cv_func___builtin_sqrtf_use=yes
5496 else
5497   echo "configure: failed program was:" >&5
5498   cat conftest.$ac_ext >&5
5499   rm -rf conftest*
5500   glibcpp_cv_func___builtin_sqrtf_use=no
5501 fi
5502 rm -f conftest*
5503       ac_ext=c
5504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5505 ac_cpp='$CPP $CPPFLAGS'
5506 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5507 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5508 cross_compiling=$ac_cv_prog_cc_cross
5509
5510     
5511 fi
5512
5513   fi
5514   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
5515   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5516     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5517 echo "configure:5518: checking for __builtin_sqrtf linkage" >&5
5518     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5519       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
5520   echo $ac_n "(cached) $ac_c" 1>&6
5521 else
5522   
5523         cat > conftest.$ac_ext <<EOF
5524 #line 5525 "configure"
5525 #include "confdefs.h"
5526 #include <math.h>
5527 int main() {
5528  __builtin_sqrtf(0);
5529 ; return 0; }
5530 EOF
5531 if { (eval echo configure:5532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5532   rm -rf conftest*
5533   glibcpp_cv_func___builtin_sqrtf_link=yes
5534 else
5535   echo "configure: failed program was:" >&5
5536   cat conftest.$ac_ext >&5
5537   rm -rf conftest*
5538   glibcpp_cv_func___builtin_sqrtf_link=no
5539 fi
5540 rm -f conftest*
5541       
5542 fi
5543
5544     fi
5545     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5546     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5547       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5548       cat >> confdefs.h <<EOF
5549 #define ${ac_tr_func} 1
5550 EOF
5551
5552     fi
5553   fi
5554
5555   
5556   echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5557 echo "configure:5558: checking for __builtin_fsqrt declaration" >&5
5558   if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5559     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
5560   echo $ac_n "(cached) $ac_c" 1>&6
5561 else
5562   
5563       
5564       ac_ext=C
5565 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5566 ac_cpp='$CXXCPP $CPPFLAGS'
5567 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5568 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5569 cross_compiling=$ac_cv_prog_cxx_cross
5570
5571       cat > conftest.$ac_ext <<EOF
5572 #line 5573 "configure"
5573 #include "confdefs.h"
5574 #include <math.h>
5575 int main() {
5576  __builtin_fsqrt(0);
5577 ; return 0; }
5578 EOF
5579 if { (eval echo configure:5580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5580   rm -rf conftest*
5581   glibcpp_cv_func___builtin_fsqrt_use=yes
5582 else
5583   echo "configure: failed program was:" >&5
5584   cat conftest.$ac_ext >&5
5585   rm -rf conftest*
5586   glibcpp_cv_func___builtin_fsqrt_use=no
5587 fi
5588 rm -f conftest*
5589       ac_ext=c
5590 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5591 ac_cpp='$CPP $CPPFLAGS'
5592 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5593 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5594 cross_compiling=$ac_cv_prog_cc_cross
5595
5596     
5597 fi
5598
5599   fi
5600   echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
5601   if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5602     echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5603 echo "configure:5604: checking for __builtin_fsqrt linkage" >&5
5604     if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5605       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
5606   echo $ac_n "(cached) $ac_c" 1>&6
5607 else
5608   
5609         cat > conftest.$ac_ext <<EOF
5610 #line 5611 "configure"
5611 #include "confdefs.h"
5612 #include <math.h>
5613 int main() {
5614  __builtin_fsqrt(0);
5615 ; return 0; }
5616 EOF
5617 if { (eval echo configure:5618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5618   rm -rf conftest*
5619   glibcpp_cv_func___builtin_fsqrt_link=yes
5620 else
5621   echo "configure: failed program was:" >&5
5622   cat conftest.$ac_ext >&5
5623   rm -rf conftest*
5624   glibcpp_cv_func___builtin_fsqrt_link=no
5625 fi
5626 rm -f conftest*
5627       
5628 fi
5629
5630     fi
5631     echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5632     if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5633       ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5634       cat >> confdefs.h <<EOF
5635 #define ${ac_tr_func} 1
5636 EOF
5637
5638     fi
5639   fi
5640
5641   
5642   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5643 echo "configure:5644: checking for __builtin_sqrtl declaration" >&5
5644   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5645     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5646   echo $ac_n "(cached) $ac_c" 1>&6
5647 else
5648   
5649       
5650       ac_ext=C
5651 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5652 ac_cpp='$CXXCPP $CPPFLAGS'
5653 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5654 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5655 cross_compiling=$ac_cv_prog_cxx_cross
5656
5657       cat > conftest.$ac_ext <<EOF
5658 #line 5659 "configure"
5659 #include "confdefs.h"
5660 #include <math.h>
5661 int main() {
5662  __builtin_sqrtl(0);
5663 ; return 0; }
5664 EOF
5665 if { (eval echo configure:5666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5666   rm -rf conftest*
5667   glibcpp_cv_func___builtin_sqrtl_use=yes
5668 else
5669   echo "configure: failed program was:" >&5
5670   cat conftest.$ac_ext >&5
5671   rm -rf conftest*
5672   glibcpp_cv_func___builtin_sqrtl_use=no
5673 fi
5674 rm -f conftest*
5675       ac_ext=c
5676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5677 ac_cpp='$CPP $CPPFLAGS'
5678 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5679 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5680 cross_compiling=$ac_cv_prog_cc_cross
5681
5682     
5683 fi
5684
5685   fi
5686   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
5687   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5688     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5689 echo "configure:5690: checking for __builtin_sqrtl linkage" >&5
5690     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
5691       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
5692   echo $ac_n "(cached) $ac_c" 1>&6
5693 else
5694   
5695         cat > conftest.$ac_ext <<EOF
5696 #line 5697 "configure"
5697 #include "confdefs.h"
5698 #include <math.h>
5699 int main() {
5700  __builtin_sqrtl(0);
5701 ; return 0; }
5702 EOF
5703 if { (eval echo configure:5704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5704   rm -rf conftest*
5705   glibcpp_cv_func___builtin_sqrtl_link=yes
5706 else
5707   echo "configure: failed program was:" >&5
5708   cat conftest.$ac_ext >&5
5709   rm -rf conftest*
5710   glibcpp_cv_func___builtin_sqrtl_link=no
5711 fi
5712 rm -f conftest*
5713       
5714 fi
5715
5716     fi
5717     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
5718     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
5719       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5720       cat >> confdefs.h <<EOF
5721 #define ${ac_tr_func} 1
5722 EOF
5723
5724     fi
5725   fi
5726
5727
5728   
5729   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
5730 echo "configure:5731: checking for __builtin_sinf declaration" >&5
5731   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
5732     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
5733   echo $ac_n "(cached) $ac_c" 1>&6
5734 else
5735   
5736       
5737       ac_ext=C
5738 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5739 ac_cpp='$CXXCPP $CPPFLAGS'
5740 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5741 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5742 cross_compiling=$ac_cv_prog_cxx_cross
5743
5744       cat > conftest.$ac_ext <<EOF
5745 #line 5746 "configure"
5746 #include "confdefs.h"
5747 #include <math.h>
5748 int main() {
5749  __builtin_sinf(0);
5750 ; return 0; }
5751 EOF
5752 if { (eval echo configure:5753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5753   rm -rf conftest*
5754   glibcpp_cv_func___builtin_sinf_use=yes
5755 else
5756   echo "configure: failed program was:" >&5
5757   cat conftest.$ac_ext >&5
5758   rm -rf conftest*
5759   glibcpp_cv_func___builtin_sinf_use=no
5760 fi
5761 rm -f conftest*
5762       ac_ext=c
5763 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5764 ac_cpp='$CPP $CPPFLAGS'
5765 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5766 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5767 cross_compiling=$ac_cv_prog_cc_cross
5768
5769     
5770 fi
5771
5772   fi
5773   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
5774   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
5775     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
5776 echo "configure:5777: checking for __builtin_sinf linkage" >&5
5777     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
5778       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
5779   echo $ac_n "(cached) $ac_c" 1>&6
5780 else
5781   
5782         cat > conftest.$ac_ext <<EOF
5783 #line 5784 "configure"
5784 #include "confdefs.h"
5785 #include <math.h>
5786 int main() {
5787  __builtin_sinf(0);
5788 ; return 0; }
5789 EOF
5790 if { (eval echo configure:5791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5791   rm -rf conftest*
5792   glibcpp_cv_func___builtin_sinf_link=yes
5793 else
5794   echo "configure: failed program was:" >&5
5795   cat conftest.$ac_ext >&5
5796   rm -rf conftest*
5797   glibcpp_cv_func___builtin_sinf_link=no
5798 fi
5799 rm -f conftest*
5800       
5801 fi
5802
5803     fi
5804     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
5805     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
5806       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5807       cat >> confdefs.h <<EOF
5808 #define ${ac_tr_func} 1
5809 EOF
5810
5811     fi
5812   fi
5813
5814   
5815   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
5816 echo "configure:5817: checking for __builtin_sin declaration" >&5
5817   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
5818     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
5819   echo $ac_n "(cached) $ac_c" 1>&6
5820 else
5821   
5822       
5823       ac_ext=C
5824 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5825 ac_cpp='$CXXCPP $CPPFLAGS'
5826 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5827 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5828 cross_compiling=$ac_cv_prog_cxx_cross
5829
5830       cat > conftest.$ac_ext <<EOF
5831 #line 5832 "configure"
5832 #include "confdefs.h"
5833 #include <math.h>
5834 int main() {
5835  __builtin_sin(0);
5836 ; return 0; }
5837 EOF
5838 if { (eval echo configure:5839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5839   rm -rf conftest*
5840   glibcpp_cv_func___builtin_sin_use=yes
5841 else
5842   echo "configure: failed program was:" >&5
5843   cat conftest.$ac_ext >&5
5844   rm -rf conftest*
5845   glibcpp_cv_func___builtin_sin_use=no
5846 fi
5847 rm -f conftest*
5848       ac_ext=c
5849 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5850 ac_cpp='$CPP $CPPFLAGS'
5851 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5852 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5853 cross_compiling=$ac_cv_prog_cc_cross
5854
5855     
5856 fi
5857
5858   fi
5859   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
5860   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
5861     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
5862 echo "configure:5863: checking for __builtin_sin linkage" >&5
5863     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
5864       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
5865   echo $ac_n "(cached) $ac_c" 1>&6
5866 else
5867   
5868         cat > conftest.$ac_ext <<EOF
5869 #line 5870 "configure"
5870 #include "confdefs.h"
5871 #include <math.h>
5872 int main() {
5873  __builtin_sin(0);
5874 ; return 0; }
5875 EOF
5876 if { (eval echo configure:5877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5877   rm -rf conftest*
5878   glibcpp_cv_func___builtin_sin_link=yes
5879 else
5880   echo "configure: failed program was:" >&5
5881   cat conftest.$ac_ext >&5
5882   rm -rf conftest*
5883   glibcpp_cv_func___builtin_sin_link=no
5884 fi
5885 rm -f conftest*
5886       
5887 fi
5888
5889     fi
5890     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
5891     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
5892       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5893       cat >> confdefs.h <<EOF
5894 #define ${ac_tr_func} 1
5895 EOF
5896
5897     fi
5898   fi
5899
5900   
5901   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
5902 echo "configure:5903: checking for __builtin_sinl declaration" >&5
5903   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
5904     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
5905   echo $ac_n "(cached) $ac_c" 1>&6
5906 else
5907   
5908       
5909       ac_ext=C
5910 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5911 ac_cpp='$CXXCPP $CPPFLAGS'
5912 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5913 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5914 cross_compiling=$ac_cv_prog_cxx_cross
5915
5916       cat > conftest.$ac_ext <<EOF
5917 #line 5918 "configure"
5918 #include "confdefs.h"
5919 #include <math.h>
5920 int main() {
5921  __builtin_sinl(0);
5922 ; return 0; }
5923 EOF
5924 if { (eval echo configure:5925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5925   rm -rf conftest*
5926   glibcpp_cv_func___builtin_sinl_use=yes
5927 else
5928   echo "configure: failed program was:" >&5
5929   cat conftest.$ac_ext >&5
5930   rm -rf conftest*
5931   glibcpp_cv_func___builtin_sinl_use=no
5932 fi
5933 rm -f conftest*
5934       ac_ext=c
5935 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5936 ac_cpp='$CPP $CPPFLAGS'
5937 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5938 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5939 cross_compiling=$ac_cv_prog_cc_cross
5940
5941     
5942 fi
5943
5944   fi
5945   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
5946   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
5947     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
5948 echo "configure:5949: checking for __builtin_sinl linkage" >&5
5949     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
5950       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
5951   echo $ac_n "(cached) $ac_c" 1>&6
5952 else
5953   
5954         cat > conftest.$ac_ext <<EOF
5955 #line 5956 "configure"
5956 #include "confdefs.h"
5957 #include <math.h>
5958 int main() {
5959  __builtin_sinl(0);
5960 ; return 0; }
5961 EOF
5962 if { (eval echo configure:5963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5963   rm -rf conftest*
5964   glibcpp_cv_func___builtin_sinl_link=yes
5965 else
5966   echo "configure: failed program was:" >&5
5967   cat conftest.$ac_ext >&5
5968   rm -rf conftest*
5969   glibcpp_cv_func___builtin_sinl_link=no
5970 fi
5971 rm -f conftest*
5972       
5973 fi
5974
5975     fi
5976     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
5977     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
5978       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5979       cat >> confdefs.h <<EOF
5980 #define ${ac_tr_func} 1
5981 EOF
5982
5983     fi
5984   fi
5985
5986
5987   
5988   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
5989 echo "configure:5990: checking for __builtin_cosf declaration" >&5
5990   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
5991     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
5992   echo $ac_n "(cached) $ac_c" 1>&6
5993 else
5994   
5995       
5996       ac_ext=C
5997 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5998 ac_cpp='$CXXCPP $CPPFLAGS'
5999 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6000 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6001 cross_compiling=$ac_cv_prog_cxx_cross
6002
6003       cat > conftest.$ac_ext <<EOF
6004 #line 6005 "configure"
6005 #include "confdefs.h"
6006 #include <math.h>
6007 int main() {
6008  __builtin_cosf(0);
6009 ; return 0; }
6010 EOF
6011 if { (eval echo configure:6012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6012   rm -rf conftest*
6013   glibcpp_cv_func___builtin_cosf_use=yes
6014 else
6015   echo "configure: failed program was:" >&5
6016   cat conftest.$ac_ext >&5
6017   rm -rf conftest*
6018   glibcpp_cv_func___builtin_cosf_use=no
6019 fi
6020 rm -f conftest*
6021       ac_ext=c
6022 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6023 ac_cpp='$CPP $CPPFLAGS'
6024 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6025 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6026 cross_compiling=$ac_cv_prog_cc_cross
6027
6028     
6029 fi
6030
6031   fi
6032   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
6033   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
6034     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
6035 echo "configure:6036: checking for __builtin_cosf linkage" >&5
6036     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
6037       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
6038   echo $ac_n "(cached) $ac_c" 1>&6
6039 else
6040   
6041         cat > conftest.$ac_ext <<EOF
6042 #line 6043 "configure"
6043 #include "confdefs.h"
6044 #include <math.h>
6045 int main() {
6046  __builtin_cosf(0);
6047 ; return 0; }
6048 EOF
6049 if { (eval echo configure:6050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6050   rm -rf conftest*
6051   glibcpp_cv_func___builtin_cosf_link=yes
6052 else
6053   echo "configure: failed program was:" >&5
6054   cat conftest.$ac_ext >&5
6055   rm -rf conftest*
6056   glibcpp_cv_func___builtin_cosf_link=no
6057 fi
6058 rm -f conftest*
6059       
6060 fi
6061
6062     fi
6063     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
6064     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
6065       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6066       cat >> confdefs.h <<EOF
6067 #define ${ac_tr_func} 1
6068 EOF
6069
6070     fi
6071   fi
6072
6073   
6074   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
6075 echo "configure:6076: checking for __builtin_cos declaration" >&5
6076   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
6077     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
6078   echo $ac_n "(cached) $ac_c" 1>&6
6079 else
6080   
6081       
6082       ac_ext=C
6083 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6084 ac_cpp='$CXXCPP $CPPFLAGS'
6085 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6086 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6087 cross_compiling=$ac_cv_prog_cxx_cross
6088
6089       cat > conftest.$ac_ext <<EOF
6090 #line 6091 "configure"
6091 #include "confdefs.h"
6092 #include <math.h>
6093 int main() {
6094  __builtin_cos(0);
6095 ; return 0; }
6096 EOF
6097 if { (eval echo configure:6098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6098   rm -rf conftest*
6099   glibcpp_cv_func___builtin_cos_use=yes
6100 else
6101   echo "configure: failed program was:" >&5
6102   cat conftest.$ac_ext >&5
6103   rm -rf conftest*
6104   glibcpp_cv_func___builtin_cos_use=no
6105 fi
6106 rm -f conftest*
6107       ac_ext=c
6108 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6109 ac_cpp='$CPP $CPPFLAGS'
6110 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6111 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6112 cross_compiling=$ac_cv_prog_cc_cross
6113
6114     
6115 fi
6116
6117   fi
6118   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
6119   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
6120     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
6121 echo "configure:6122: checking for __builtin_cos linkage" >&5
6122     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
6123       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
6124   echo $ac_n "(cached) $ac_c" 1>&6
6125 else
6126   
6127         cat > conftest.$ac_ext <<EOF
6128 #line 6129 "configure"
6129 #include "confdefs.h"
6130 #include <math.h>
6131 int main() {
6132  __builtin_cos(0);
6133 ; return 0; }
6134 EOF
6135 if { (eval echo configure:6136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6136   rm -rf conftest*
6137   glibcpp_cv_func___builtin_cos_link=yes
6138 else
6139   echo "configure: failed program was:" >&5
6140   cat conftest.$ac_ext >&5
6141   rm -rf conftest*
6142   glibcpp_cv_func___builtin_cos_link=no
6143 fi
6144 rm -f conftest*
6145       
6146 fi
6147
6148     fi
6149     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
6150     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
6151       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6152       cat >> confdefs.h <<EOF
6153 #define ${ac_tr_func} 1
6154 EOF
6155
6156     fi
6157   fi
6158
6159   
6160   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
6161 echo "configure:6162: checking for __builtin_cosl declaration" >&5
6162   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
6163     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
6164   echo $ac_n "(cached) $ac_c" 1>&6
6165 else
6166   
6167       
6168       ac_ext=C
6169 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6170 ac_cpp='$CXXCPP $CPPFLAGS'
6171 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6172 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6173 cross_compiling=$ac_cv_prog_cxx_cross
6174
6175       cat > conftest.$ac_ext <<EOF
6176 #line 6177 "configure"
6177 #include "confdefs.h"
6178 #include <math.h>
6179 int main() {
6180  __builtin_cosl(0);
6181 ; return 0; }
6182 EOF
6183 if { (eval echo configure:6184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6184   rm -rf conftest*
6185   glibcpp_cv_func___builtin_cosl_use=yes
6186 else
6187   echo "configure: failed program was:" >&5
6188   cat conftest.$ac_ext >&5
6189   rm -rf conftest*
6190   glibcpp_cv_func___builtin_cosl_use=no
6191 fi
6192 rm -f conftest*
6193       ac_ext=c
6194 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6195 ac_cpp='$CPP $CPPFLAGS'
6196 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6197 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6198 cross_compiling=$ac_cv_prog_cc_cross
6199
6200     
6201 fi
6202
6203   fi
6204   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
6205   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
6206     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
6207 echo "configure:6208: checking for __builtin_cosl linkage" >&5
6208     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
6209       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
6210   echo $ac_n "(cached) $ac_c" 1>&6
6211 else
6212   
6213         cat > conftest.$ac_ext <<EOF
6214 #line 6215 "configure"
6215 #include "confdefs.h"
6216 #include <math.h>
6217 int main() {
6218  __builtin_cosl(0);
6219 ; return 0; }
6220 EOF
6221 if { (eval echo configure:6222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6222   rm -rf conftest*
6223   glibcpp_cv_func___builtin_cosl_link=yes
6224 else
6225   echo "configure: failed program was:" >&5
6226   cat conftest.$ac_ext >&5
6227   rm -rf conftest*
6228   glibcpp_cv_func___builtin_cosl_link=no
6229 fi
6230 rm -f conftest*
6231       
6232 fi
6233
6234     fi
6235     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
6236     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
6237       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6238       cat >> confdefs.h <<EOF
6239 #define ${ac_tr_func} 1
6240 EOF
6241
6242     fi
6243   fi
6244
6245
6246               dummyvar=no
6247   if test x$dummyvar = x"yes"; then
6248     cat >> confdefs.h <<\EOF
6249 #define HAVE___BUILTIN_ABS 1
6250 EOF
6251
6252     cat >> confdefs.h <<\EOF
6253 #define HAVE___BUILTIN_LABS 1
6254 EOF
6255
6256     cat >> confdefs.h <<\EOF
6257 #define HAVE___BUILTIN_COS 1
6258 EOF
6259
6260     cat >> confdefs.h <<\EOF
6261 #define HAVE___BUILTIN_COSF 1
6262 EOF
6263
6264     cat >> confdefs.h <<\EOF
6265 #define HAVE___BUILTIN_COSL 1
6266 EOF
6267
6268     cat >> confdefs.h <<\EOF
6269 #define HAVE___BUILTIN_FABS 1
6270 EOF
6271
6272     cat >> confdefs.h <<\EOF
6273 #define HAVE___BUILTIN_FABSF 1
6274 EOF
6275
6276     cat >> confdefs.h <<\EOF
6277 #define HAVE___BUILTIN_FABSL 1
6278 EOF
6279
6280     cat >> confdefs.h <<\EOF
6281 #define HAVE___BUILTIN_SIN 1
6282 EOF
6283
6284     cat >> confdefs.h <<\EOF
6285 #define HAVE___BUILTIN_SINF 1
6286 EOF
6287
6288     cat >> confdefs.h <<\EOF
6289 #define HAVE___BUILTIN_SINL 1
6290 EOF
6291
6292     cat >> confdefs.h <<\EOF
6293 #define HAVE___BUILTIN_FSQRT 1
6294 EOF
6295
6296     cat >> confdefs.h <<\EOF
6297 #define HAVE___BUILTIN_SQRTF 1
6298 EOF
6299
6300     cat >> confdefs.h <<\EOF
6301 #define HAVE___BUILTIN_SQRTL 1
6302 EOF
6303
6304   fi
6305
6306   
6307   ac_test_CXXFLAGS="${CXXFLAGS+set}"
6308   ac_save_CXXFLAGS="$CXXFLAGS"
6309   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
6310
6311     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
6312 echo "configure:6313: checking for sin in -lm" >&5
6313 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
6314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6315   echo $ac_n "(cached) $ac_c" 1>&6
6316 else
6317   ac_save_LIBS="$LIBS"
6318 LIBS="-lm  $LIBS"
6319 cat > conftest.$ac_ext <<EOF
6320 #line 6321 "configure"
6321 #include "confdefs.h"
6322 /* Override any gcc2 internal prototype to avoid an error.  */
6323 /* We use char because int might match the return type of a gcc2
6324     builtin and then its argument prototype would still apply.  */
6325 char sin();
6326
6327 int main() {
6328 sin()
6329 ; return 0; }
6330 EOF
6331 if { (eval echo configure:6332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6332   rm -rf conftest*
6333   eval "ac_cv_lib_$ac_lib_var=yes"
6334 else
6335   echo "configure: failed program was:" >&5
6336   cat conftest.$ac_ext >&5
6337   rm -rf conftest*
6338   eval "ac_cv_lib_$ac_lib_var=no"
6339 fi
6340 rm -f conftest*
6341 LIBS="$ac_save_LIBS"
6342
6343 fi
6344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6345   echo "$ac_t""yes" 1>&6
6346   libm="-lm"
6347 else
6348   echo "$ac_t""no" 1>&6
6349 fi
6350
6351   ac_save_LIBS="$LIBS"
6352   LIBS="$LIBS $libm"
6353
6354     
6355   
6356   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
6357 echo "configure:6358: checking for isinf declaration" >&5
6358   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
6359     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
6360   echo $ac_n "(cached) $ac_c" 1>&6
6361 else
6362   
6363       
6364       ac_ext=C
6365 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6366 ac_cpp='$CXXCPP $CPPFLAGS'
6367 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6368 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6369 cross_compiling=$ac_cv_prog_cxx_cross
6370
6371       cat > conftest.$ac_ext <<EOF
6372 #line 6373 "configure"
6373 #include "confdefs.h"
6374 #include <math.h>
6375                       #ifdef HAVE_IEEEFP_H
6376                       #include <ieeefp.h>
6377                       #endif
6378                      
6379 int main() {
6380  isinf(0);
6381 ; return 0; }
6382 EOF
6383 if { (eval echo configure:6384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6384   rm -rf conftest*
6385   glibcpp_cv_func_isinf_use=yes
6386 else
6387   echo "configure: failed program was:" >&5
6388   cat conftest.$ac_ext >&5
6389   rm -rf conftest*
6390   glibcpp_cv_func_isinf_use=no
6391 fi
6392 rm -f conftest*
6393       ac_ext=c
6394 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6395 ac_cpp='$CPP $CPPFLAGS'
6396 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6397 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6398 cross_compiling=$ac_cv_prog_cc_cross
6399
6400     
6401 fi
6402
6403   fi
6404   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
6405
6406   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
6407     for ac_func in isinf
6408 do
6409 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6410 echo "configure:6411: checking for $ac_func" >&5
6411 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6412   echo $ac_n "(cached) $ac_c" 1>&6
6413 else
6414   cat > conftest.$ac_ext <<EOF
6415 #line 6416 "configure"
6416 #include "confdefs.h"
6417 /* System header to define __stub macros and hopefully few prototypes,
6418     which can conflict with char $ac_func(); below.  */
6419 #include <assert.h>
6420 /* Override any gcc2 internal prototype to avoid an error.  */
6421 /* We use char because int might match the return type of a gcc2
6422     builtin and then its argument prototype would still apply.  */
6423 char $ac_func();
6424
6425 int main() {
6426
6427 /* The GNU C library defines this for functions which it implements
6428     to always fail with ENOSYS.  Some functions are actually named
6429     something starting with __ and the normal name is an alias.  */
6430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6431 choke me
6432 #else
6433 $ac_func();
6434 #endif
6435
6436 ; return 0; }
6437 EOF
6438 if { (eval echo configure:6439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6439   rm -rf conftest*
6440   eval "ac_cv_func_$ac_func=yes"
6441 else
6442   echo "configure: failed program was:" >&5
6443   cat conftest.$ac_ext >&5
6444   rm -rf conftest*
6445   eval "ac_cv_func_$ac_func=no"
6446 fi
6447 rm -f conftest*
6448 fi
6449
6450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6451   echo "$ac_t""yes" 1>&6
6452     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6453   cat >> confdefs.h <<EOF
6454 #define $ac_tr_func 1
6455 EOF
6456  
6457 else
6458   echo "$ac_t""no" 1>&6
6459 fi
6460 done
6461     
6462   else
6463     
6464   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6465 echo "configure:6466: checking for _isinf declaration" >&5
6466   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6467     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6468   echo $ac_n "(cached) $ac_c" 1>&6
6469 else
6470   
6471       
6472       ac_ext=C
6473 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6474 ac_cpp='$CXXCPP $CPPFLAGS'
6475 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6476 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6477 cross_compiling=$ac_cv_prog_cxx_cross
6478
6479       cat > conftest.$ac_ext <<EOF
6480 #line 6481 "configure"
6481 #include "confdefs.h"
6482 #include <math.h>
6483                       #ifdef HAVE_IEEEFP_H
6484                       #include <ieeefp.h>
6485                       #endif
6486                      
6487 int main() {
6488  _isinf(0);
6489 ; return 0; }
6490 EOF
6491 if { (eval echo configure:6492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6492   rm -rf conftest*
6493   glibcpp_cv_func__isinf_use=yes
6494 else
6495   echo "configure: failed program was:" >&5
6496   cat conftest.$ac_ext >&5
6497   rm -rf conftest*
6498   glibcpp_cv_func__isinf_use=no
6499 fi
6500 rm -f conftest*
6501       ac_ext=c
6502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6503 ac_cpp='$CPP $CPPFLAGS'
6504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6505 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6506 cross_compiling=$ac_cv_prog_cc_cross
6507
6508     
6509 fi
6510
6511   fi
6512   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6513
6514     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6515       for ac_func in _isinf
6516 do
6517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6518 echo "configure:6519: checking for $ac_func" >&5
6519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6520   echo $ac_n "(cached) $ac_c" 1>&6
6521 else
6522   cat > conftest.$ac_ext <<EOF
6523 #line 6524 "configure"
6524 #include "confdefs.h"
6525 /* System header to define __stub macros and hopefully few prototypes,
6526     which can conflict with char $ac_func(); below.  */
6527 #include <assert.h>
6528 /* Override any gcc2 internal prototype to avoid an error.  */
6529 /* We use char because int might match the return type of a gcc2
6530     builtin and then its argument prototype would still apply.  */
6531 char $ac_func();
6532
6533 int main() {
6534
6535 /* The GNU C library defines this for functions which it implements
6536     to always fail with ENOSYS.  Some functions are actually named
6537     something starting with __ and the normal name is an alias.  */
6538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6539 choke me
6540 #else
6541 $ac_func();
6542 #endif
6543
6544 ; return 0; }
6545 EOF
6546 if { (eval echo configure:6547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6547   rm -rf conftest*
6548   eval "ac_cv_func_$ac_func=yes"
6549 else
6550   echo "configure: failed program was:" >&5
6551   cat conftest.$ac_ext >&5
6552   rm -rf conftest*
6553   eval "ac_cv_func_$ac_func=no"
6554 fi
6555 rm -f conftest*
6556 fi
6557
6558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6559   echo "$ac_t""yes" 1>&6
6560     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6561   cat >> confdefs.h <<EOF
6562 #define $ac_tr_func 1
6563 EOF
6564  
6565 else
6566   echo "$ac_t""no" 1>&6
6567 fi
6568 done
6569     
6570     fi
6571   fi
6572
6573   
6574   
6575   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6576 echo "configure:6577: checking for isnan declaration" >&5
6577   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6578     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6579   echo $ac_n "(cached) $ac_c" 1>&6
6580 else
6581   
6582       
6583       ac_ext=C
6584 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6585 ac_cpp='$CXXCPP $CPPFLAGS'
6586 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6587 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6588 cross_compiling=$ac_cv_prog_cxx_cross
6589
6590       cat > conftest.$ac_ext <<EOF
6591 #line 6592 "configure"
6592 #include "confdefs.h"
6593 #include <math.h>
6594                       #ifdef HAVE_IEEEFP_H
6595                       #include <ieeefp.h>
6596                       #endif
6597                      
6598 int main() {
6599  isnan(0);
6600 ; return 0; }
6601 EOF
6602 if { (eval echo configure:6603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6603   rm -rf conftest*
6604   glibcpp_cv_func_isnan_use=yes
6605 else
6606   echo "configure: failed program was:" >&5
6607   cat conftest.$ac_ext >&5
6608   rm -rf conftest*
6609   glibcpp_cv_func_isnan_use=no
6610 fi
6611 rm -f conftest*
6612       ac_ext=c
6613 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6614 ac_cpp='$CPP $CPPFLAGS'
6615 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6616 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6617 cross_compiling=$ac_cv_prog_cc_cross
6618
6619     
6620 fi
6621
6622   fi
6623   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6624
6625   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6626     for ac_func in isnan
6627 do
6628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6629 echo "configure:6630: checking for $ac_func" >&5
6630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6631   echo $ac_n "(cached) $ac_c" 1>&6
6632 else
6633   cat > conftest.$ac_ext <<EOF
6634 #line 6635 "configure"
6635 #include "confdefs.h"
6636 /* System header to define __stub macros and hopefully few prototypes,
6637     which can conflict with char $ac_func(); below.  */
6638 #include <assert.h>
6639 /* Override any gcc2 internal prototype to avoid an error.  */
6640 /* We use char because int might match the return type of a gcc2
6641     builtin and then its argument prototype would still apply.  */
6642 char $ac_func();
6643
6644 int main() {
6645
6646 /* The GNU C library defines this for functions which it implements
6647     to always fail with ENOSYS.  Some functions are actually named
6648     something starting with __ and the normal name is an alias.  */
6649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6650 choke me
6651 #else
6652 $ac_func();
6653 #endif
6654
6655 ; return 0; }
6656 EOF
6657 if { (eval echo configure:6658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6658   rm -rf conftest*
6659   eval "ac_cv_func_$ac_func=yes"
6660 else
6661   echo "configure: failed program was:" >&5
6662   cat conftest.$ac_ext >&5
6663   rm -rf conftest*
6664   eval "ac_cv_func_$ac_func=no"
6665 fi
6666 rm -f conftest*
6667 fi
6668
6669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6670   echo "$ac_t""yes" 1>&6
6671     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6672   cat >> confdefs.h <<EOF
6673 #define $ac_tr_func 1
6674 EOF
6675  
6676 else
6677   echo "$ac_t""no" 1>&6
6678 fi
6679 done
6680     
6681   else
6682     
6683   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6684 echo "configure:6685: checking for _isnan declaration" >&5
6685   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6686     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6687   echo $ac_n "(cached) $ac_c" 1>&6
6688 else
6689   
6690       
6691       ac_ext=C
6692 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6693 ac_cpp='$CXXCPP $CPPFLAGS'
6694 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6695 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6696 cross_compiling=$ac_cv_prog_cxx_cross
6697
6698       cat > conftest.$ac_ext <<EOF
6699 #line 6700 "configure"
6700 #include "confdefs.h"
6701 #include <math.h>
6702                       #ifdef HAVE_IEEEFP_H
6703                       #include <ieeefp.h>
6704                       #endif
6705                      
6706 int main() {
6707  _isnan(0);
6708 ; return 0; }
6709 EOF
6710 if { (eval echo configure:6711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6711   rm -rf conftest*
6712   glibcpp_cv_func__isnan_use=yes
6713 else
6714   echo "configure: failed program was:" >&5
6715   cat conftest.$ac_ext >&5
6716   rm -rf conftest*
6717   glibcpp_cv_func__isnan_use=no
6718 fi
6719 rm -f conftest*
6720       ac_ext=c
6721 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6722 ac_cpp='$CPP $CPPFLAGS'
6723 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6724 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6725 cross_compiling=$ac_cv_prog_cc_cross
6726
6727     
6728 fi
6729
6730   fi
6731   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
6732
6733     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
6734       for ac_func in _isnan
6735 do
6736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6737 echo "configure:6738: checking for $ac_func" >&5
6738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6739   echo $ac_n "(cached) $ac_c" 1>&6
6740 else
6741   cat > conftest.$ac_ext <<EOF
6742 #line 6743 "configure"
6743 #include "confdefs.h"
6744 /* System header to define __stub macros and hopefully few prototypes,
6745     which can conflict with char $ac_func(); below.  */
6746 #include <assert.h>
6747 /* Override any gcc2 internal prototype to avoid an error.  */
6748 /* We use char because int might match the return type of a gcc2
6749     builtin and then its argument prototype would still apply.  */
6750 char $ac_func();
6751
6752 int main() {
6753
6754 /* The GNU C library defines this for functions which it implements
6755     to always fail with ENOSYS.  Some functions are actually named
6756     something starting with __ and the normal name is an alias.  */
6757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6758 choke me
6759 #else
6760 $ac_func();
6761 #endif
6762
6763 ; return 0; }
6764 EOF
6765 if { (eval echo configure:6766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6766   rm -rf conftest*
6767   eval "ac_cv_func_$ac_func=yes"
6768 else
6769   echo "configure: failed program was:" >&5
6770   cat conftest.$ac_ext >&5
6771   rm -rf conftest*
6772   eval "ac_cv_func_$ac_func=no"
6773 fi
6774 rm -f conftest*
6775 fi
6776
6777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6778   echo "$ac_t""yes" 1>&6
6779     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6780   cat >> confdefs.h <<EOF
6781 #define $ac_tr_func 1
6782 EOF
6783  
6784 else
6785   echo "$ac_t""no" 1>&6
6786 fi
6787 done
6788     
6789     fi
6790   fi
6791
6792   
6793   
6794   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
6795 echo "configure:6796: checking for finite declaration" >&5
6796   if test x${glibcpp_cv_func_finite_use+set} != xset; then
6797     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
6798   echo $ac_n "(cached) $ac_c" 1>&6
6799 else
6800   
6801       
6802       ac_ext=C
6803 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6804 ac_cpp='$CXXCPP $CPPFLAGS'
6805 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6806 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6807 cross_compiling=$ac_cv_prog_cxx_cross
6808
6809       cat > conftest.$ac_ext <<EOF
6810 #line 6811 "configure"
6811 #include "confdefs.h"
6812 #include <math.h>
6813                       #ifdef HAVE_IEEEFP_H
6814                       #include <ieeefp.h>
6815                       #endif
6816                      
6817 int main() {
6818  finite(0);
6819 ; return 0; }
6820 EOF
6821 if { (eval echo configure:6822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6822   rm -rf conftest*
6823   glibcpp_cv_func_finite_use=yes
6824 else
6825   echo "configure: failed program was:" >&5
6826   cat conftest.$ac_ext >&5
6827   rm -rf conftest*
6828   glibcpp_cv_func_finite_use=no
6829 fi
6830 rm -f conftest*
6831       ac_ext=c
6832 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6833 ac_cpp='$CPP $CPPFLAGS'
6834 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6835 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6836 cross_compiling=$ac_cv_prog_cc_cross
6837
6838     
6839 fi
6840
6841   fi
6842   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
6843
6844   if test x$glibcpp_cv_func_finite_use = x"yes"; then
6845     for ac_func in finite
6846 do
6847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6848 echo "configure:6849: checking for $ac_func" >&5
6849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6850   echo $ac_n "(cached) $ac_c" 1>&6
6851 else
6852   cat > conftest.$ac_ext <<EOF
6853 #line 6854 "configure"
6854 #include "confdefs.h"
6855 /* System header to define __stub macros and hopefully few prototypes,
6856     which can conflict with char $ac_func(); below.  */
6857 #include <assert.h>
6858 /* Override any gcc2 internal prototype to avoid an error.  */
6859 /* We use char because int might match the return type of a gcc2
6860     builtin and then its argument prototype would still apply.  */
6861 char $ac_func();
6862
6863 int main() {
6864
6865 /* The GNU C library defines this for functions which it implements
6866     to always fail with ENOSYS.  Some functions are actually named
6867     something starting with __ and the normal name is an alias.  */
6868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6869 choke me
6870 #else
6871 $ac_func();
6872 #endif
6873
6874 ; return 0; }
6875 EOF
6876 if { (eval echo configure:6877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6877   rm -rf conftest*
6878   eval "ac_cv_func_$ac_func=yes"
6879 else
6880   echo "configure: failed program was:" >&5
6881   cat conftest.$ac_ext >&5
6882   rm -rf conftest*
6883   eval "ac_cv_func_$ac_func=no"
6884 fi
6885 rm -f conftest*
6886 fi
6887
6888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6889   echo "$ac_t""yes" 1>&6
6890     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6891   cat >> confdefs.h <<EOF
6892 #define $ac_tr_func 1
6893 EOF
6894  
6895 else
6896   echo "$ac_t""no" 1>&6
6897 fi
6898 done
6899     
6900   else
6901     
6902   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
6903 echo "configure:6904: checking for _finite declaration" >&5
6904   if test x${glibcpp_cv_func__finite_use+set} != xset; then
6905     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
6906   echo $ac_n "(cached) $ac_c" 1>&6
6907 else
6908   
6909       
6910       ac_ext=C
6911 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6912 ac_cpp='$CXXCPP $CPPFLAGS'
6913 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6914 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6915 cross_compiling=$ac_cv_prog_cxx_cross
6916
6917       cat > conftest.$ac_ext <<EOF
6918 #line 6919 "configure"
6919 #include "confdefs.h"
6920 #include <math.h>
6921                       #ifdef HAVE_IEEEFP_H
6922                       #include <ieeefp.h>
6923                       #endif
6924                      
6925 int main() {
6926  _finite(0);
6927 ; return 0; }
6928 EOF
6929 if { (eval echo configure:6930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6930   rm -rf conftest*
6931   glibcpp_cv_func__finite_use=yes
6932 else
6933   echo "configure: failed program was:" >&5
6934   cat conftest.$ac_ext >&5
6935   rm -rf conftest*
6936   glibcpp_cv_func__finite_use=no
6937 fi
6938 rm -f conftest*
6939       ac_ext=c
6940 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6941 ac_cpp='$CPP $CPPFLAGS'
6942 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6943 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6944 cross_compiling=$ac_cv_prog_cc_cross
6945
6946     
6947 fi
6948
6949   fi
6950   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
6951
6952     if test x$glibcpp_cv_func__finite_use = x"yes"; then
6953       for ac_func in _finite
6954 do
6955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6956 echo "configure:6957: checking for $ac_func" >&5
6957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6958   echo $ac_n "(cached) $ac_c" 1>&6
6959 else
6960   cat > conftest.$ac_ext <<EOF
6961 #line 6962 "configure"
6962 #include "confdefs.h"
6963 /* System header to define __stub macros and hopefully few prototypes,
6964     which can conflict with char $ac_func(); below.  */
6965 #include <assert.h>
6966 /* Override any gcc2 internal prototype to avoid an error.  */
6967 /* We use char because int might match the return type of a gcc2
6968     builtin and then its argument prototype would still apply.  */
6969 char $ac_func();
6970
6971 int main() {
6972
6973 /* The GNU C library defines this for functions which it implements
6974     to always fail with ENOSYS.  Some functions are actually named
6975     something starting with __ and the normal name is an alias.  */
6976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6977 choke me
6978 #else
6979 $ac_func();
6980 #endif
6981
6982 ; return 0; }
6983 EOF
6984 if { (eval echo configure:6985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6985   rm -rf conftest*
6986   eval "ac_cv_func_$ac_func=yes"
6987 else
6988   echo "configure: failed program was:" >&5
6989   cat conftest.$ac_ext >&5
6990   rm -rf conftest*
6991   eval "ac_cv_func_$ac_func=no"
6992 fi
6993 rm -f conftest*
6994 fi
6995
6996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6997   echo "$ac_t""yes" 1>&6
6998     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6999   cat >> confdefs.h <<EOF
7000 #define $ac_tr_func 1
7001 EOF
7002  
7003 else
7004   echo "$ac_t""no" 1>&6
7005 fi
7006 done
7007     
7008     fi
7009   fi
7010
7011   
7012   
7013   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
7014 echo "configure:7015: checking for copysign declaration" >&5
7015   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
7016     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
7017   echo $ac_n "(cached) $ac_c" 1>&6
7018 else
7019   
7020       
7021       ac_ext=C
7022 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7023 ac_cpp='$CXXCPP $CPPFLAGS'
7024 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7025 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7026 cross_compiling=$ac_cv_prog_cxx_cross
7027
7028       cat > conftest.$ac_ext <<EOF
7029 #line 7030 "configure"
7030 #include "confdefs.h"
7031 #include <math.h>
7032 int main() {
7033  copysign(0, 0);
7034 ; return 0; }
7035 EOF
7036 if { (eval echo configure:7037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7037   rm -rf conftest*
7038   glibcpp_cv_func_copysign_use=yes
7039 else
7040   echo "configure: failed program was:" >&5
7041   cat conftest.$ac_ext >&5
7042   rm -rf conftest*
7043   glibcpp_cv_func_copysign_use=no
7044 fi
7045 rm -f conftest*
7046       ac_ext=c
7047 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7048 ac_cpp='$CPP $CPPFLAGS'
7049 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7050 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7051 cross_compiling=$ac_cv_prog_cc_cross
7052
7053     
7054 fi
7055
7056   fi
7057   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
7058
7059   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
7060     for ac_func in copysign
7061 do
7062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7063 echo "configure:7064: checking for $ac_func" >&5
7064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7065   echo $ac_n "(cached) $ac_c" 1>&6
7066 else
7067   cat > conftest.$ac_ext <<EOF
7068 #line 7069 "configure"
7069 #include "confdefs.h"
7070 /* System header to define __stub macros and hopefully few prototypes,
7071     which can conflict with char $ac_func(); below.  */
7072 #include <assert.h>
7073 /* Override any gcc2 internal prototype to avoid an error.  */
7074 /* We use char because int might match the return type of a gcc2
7075     builtin and then its argument prototype would still apply.  */
7076 char $ac_func();
7077
7078 int main() {
7079
7080 /* The GNU C library defines this for functions which it implements
7081     to always fail with ENOSYS.  Some functions are actually named
7082     something starting with __ and the normal name is an alias.  */
7083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7084 choke me
7085 #else
7086 $ac_func();
7087 #endif
7088
7089 ; return 0; }
7090 EOF
7091 if { (eval echo configure:7092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7092   rm -rf conftest*
7093   eval "ac_cv_func_$ac_func=yes"
7094 else
7095   echo "configure: failed program was:" >&5
7096   cat conftest.$ac_ext >&5
7097   rm -rf conftest*
7098   eval "ac_cv_func_$ac_func=no"
7099 fi
7100 rm -f conftest*
7101 fi
7102
7103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7104   echo "$ac_t""yes" 1>&6
7105     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7106   cat >> confdefs.h <<EOF
7107 #define $ac_tr_func 1
7108 EOF
7109  
7110 else
7111   echo "$ac_t""no" 1>&6
7112 fi
7113 done
7114     
7115   else
7116     
7117   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
7118 echo "configure:7119: checking for _copysign declaration" >&5
7119   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
7120     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
7121   echo $ac_n "(cached) $ac_c" 1>&6
7122 else
7123   
7124       
7125       ac_ext=C
7126 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7127 ac_cpp='$CXXCPP $CPPFLAGS'
7128 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7129 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7130 cross_compiling=$ac_cv_prog_cxx_cross
7131
7132       cat > conftest.$ac_ext <<EOF
7133 #line 7134 "configure"
7134 #include "confdefs.h"
7135 #include <math.h>
7136 int main() {
7137  _copysign(0, 0);
7138 ; return 0; }
7139 EOF
7140 if { (eval echo configure:7141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7141   rm -rf conftest*
7142   glibcpp_cv_func__copysign_use=yes
7143 else
7144   echo "configure: failed program was:" >&5
7145   cat conftest.$ac_ext >&5
7146   rm -rf conftest*
7147   glibcpp_cv_func__copysign_use=no
7148 fi
7149 rm -f conftest*
7150       ac_ext=c
7151 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7152 ac_cpp='$CPP $CPPFLAGS'
7153 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7154 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7155 cross_compiling=$ac_cv_prog_cc_cross
7156
7157     
7158 fi
7159
7160   fi
7161   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
7162
7163     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
7164       for ac_func in _copysign
7165 do
7166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7167 echo "configure:7168: checking for $ac_func" >&5
7168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7169   echo $ac_n "(cached) $ac_c" 1>&6
7170 else
7171   cat > conftest.$ac_ext <<EOF
7172 #line 7173 "configure"
7173 #include "confdefs.h"
7174 /* System header to define __stub macros and hopefully few prototypes,
7175     which can conflict with char $ac_func(); below.  */
7176 #include <assert.h>
7177 /* Override any gcc2 internal prototype to avoid an error.  */
7178 /* We use char because int might match the return type of a gcc2
7179     builtin and then its argument prototype would still apply.  */
7180 char $ac_func();
7181
7182 int main() {
7183
7184 /* The GNU C library defines this for functions which it implements
7185     to always fail with ENOSYS.  Some functions are actually named
7186     something starting with __ and the normal name is an alias.  */
7187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7188 choke me
7189 #else
7190 $ac_func();
7191 #endif
7192
7193 ; return 0; }
7194 EOF
7195 if { (eval echo configure:7196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7196   rm -rf conftest*
7197   eval "ac_cv_func_$ac_func=yes"
7198 else
7199   echo "configure: failed program was:" >&5
7200   cat conftest.$ac_ext >&5
7201   rm -rf conftest*
7202   eval "ac_cv_func_$ac_func=no"
7203 fi
7204 rm -f conftest*
7205 fi
7206
7207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7208   echo "$ac_t""yes" 1>&6
7209     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7210   cat >> confdefs.h <<EOF
7211 #define $ac_tr_func 1
7212 EOF
7213  
7214 else
7215   echo "$ac_t""no" 1>&6
7216 fi
7217 done
7218     
7219     fi
7220   fi
7221
7222   
7223   
7224   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
7225 echo "configure:7226: checking for sincos declaration" >&5
7226   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
7227     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
7228   echo $ac_n "(cached) $ac_c" 1>&6
7229 else
7230   
7231       
7232       ac_ext=C
7233 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7234 ac_cpp='$CXXCPP $CPPFLAGS'
7235 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7236 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7237 cross_compiling=$ac_cv_prog_cxx_cross
7238
7239       cat > conftest.$ac_ext <<EOF
7240 #line 7241 "configure"
7241 #include "confdefs.h"
7242 #include <math.h>
7243 int main() {
7244  sincos(0, 0, 0);
7245 ; return 0; }
7246 EOF
7247 if { (eval echo configure:7248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7248   rm -rf conftest*
7249   glibcpp_cv_func_sincos_use=yes
7250 else
7251   echo "configure: failed program was:" >&5
7252   cat conftest.$ac_ext >&5
7253   rm -rf conftest*
7254   glibcpp_cv_func_sincos_use=no
7255 fi
7256 rm -f conftest*
7257       ac_ext=c
7258 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7259 ac_cpp='$CPP $CPPFLAGS'
7260 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7261 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7262 cross_compiling=$ac_cv_prog_cc_cross
7263
7264     
7265 fi
7266
7267   fi
7268   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
7269
7270   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
7271     for ac_func in sincos
7272 do
7273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7274 echo "configure:7275: checking for $ac_func" >&5
7275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7276   echo $ac_n "(cached) $ac_c" 1>&6
7277 else
7278   cat > conftest.$ac_ext <<EOF
7279 #line 7280 "configure"
7280 #include "confdefs.h"
7281 /* System header to define __stub macros and hopefully few prototypes,
7282     which can conflict with char $ac_func(); below.  */
7283 #include <assert.h>
7284 /* Override any gcc2 internal prototype to avoid an error.  */
7285 /* We use char because int might match the return type of a gcc2
7286     builtin and then its argument prototype would still apply.  */
7287 char $ac_func();
7288
7289 int main() {
7290
7291 /* The GNU C library defines this for functions which it implements
7292     to always fail with ENOSYS.  Some functions are actually named
7293     something starting with __ and the normal name is an alias.  */
7294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7295 choke me
7296 #else
7297 $ac_func();
7298 #endif
7299
7300 ; return 0; }
7301 EOF
7302 if { (eval echo configure:7303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7303   rm -rf conftest*
7304   eval "ac_cv_func_$ac_func=yes"
7305 else
7306   echo "configure: failed program was:" >&5
7307   cat conftest.$ac_ext >&5
7308   rm -rf conftest*
7309   eval "ac_cv_func_$ac_func=no"
7310 fi
7311 rm -f conftest*
7312 fi
7313
7314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7315   echo "$ac_t""yes" 1>&6
7316     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7317   cat >> confdefs.h <<EOF
7318 #define $ac_tr_func 1
7319 EOF
7320  
7321 else
7322   echo "$ac_t""no" 1>&6
7323 fi
7324 done
7325     
7326   else
7327     
7328   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
7329 echo "configure:7330: checking for _sincos declaration" >&5
7330   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
7331     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
7332   echo $ac_n "(cached) $ac_c" 1>&6
7333 else
7334   
7335       
7336       ac_ext=C
7337 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7338 ac_cpp='$CXXCPP $CPPFLAGS'
7339 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7340 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7341 cross_compiling=$ac_cv_prog_cxx_cross
7342
7343       cat > conftest.$ac_ext <<EOF
7344 #line 7345 "configure"
7345 #include "confdefs.h"
7346 #include <math.h>
7347 int main() {
7348  _sincos(0, 0, 0);
7349 ; return 0; }
7350 EOF
7351 if { (eval echo configure:7352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7352   rm -rf conftest*
7353   glibcpp_cv_func__sincos_use=yes
7354 else
7355   echo "configure: failed program was:" >&5
7356   cat conftest.$ac_ext >&5
7357   rm -rf conftest*
7358   glibcpp_cv_func__sincos_use=no
7359 fi
7360 rm -f conftest*
7361       ac_ext=c
7362 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7363 ac_cpp='$CPP $CPPFLAGS'
7364 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7365 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7366 cross_compiling=$ac_cv_prog_cc_cross
7367
7368     
7369 fi
7370
7371   fi
7372   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
7373
7374     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
7375       for ac_func in _sincos
7376 do
7377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7378 echo "configure:7379: checking for $ac_func" >&5
7379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7380   echo $ac_n "(cached) $ac_c" 1>&6
7381 else
7382   cat > conftest.$ac_ext <<EOF
7383 #line 7384 "configure"
7384 #include "confdefs.h"
7385 /* System header to define __stub macros and hopefully few prototypes,
7386     which can conflict with char $ac_func(); below.  */
7387 #include <assert.h>
7388 /* Override any gcc2 internal prototype to avoid an error.  */
7389 /* We use char because int might match the return type of a gcc2
7390     builtin and then its argument prototype would still apply.  */
7391 char $ac_func();
7392
7393 int main() {
7394
7395 /* The GNU C library defines this for functions which it implements
7396     to always fail with ENOSYS.  Some functions are actually named
7397     something starting with __ and the normal name is an alias.  */
7398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7399 choke me
7400 #else
7401 $ac_func();
7402 #endif
7403
7404 ; return 0; }
7405 EOF
7406 if { (eval echo configure:7407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7407   rm -rf conftest*
7408   eval "ac_cv_func_$ac_func=yes"
7409 else
7410   echo "configure: failed program was:" >&5
7411   cat conftest.$ac_ext >&5
7412   rm -rf conftest*
7413   eval "ac_cv_func_$ac_func=no"
7414 fi
7415 rm -f conftest*
7416 fi
7417
7418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7419   echo "$ac_t""yes" 1>&6
7420     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7421   cat >> confdefs.h <<EOF
7422 #define $ac_tr_func 1
7423 EOF
7424  
7425 else
7426   echo "$ac_t""no" 1>&6
7427 fi
7428 done
7429     
7430     fi
7431   fi
7432
7433   
7434   
7435   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
7436 echo "configure:7437: checking for fpclass declaration" >&5
7437   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7438     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7439   echo $ac_n "(cached) $ac_c" 1>&6
7440 else
7441   
7442       
7443       ac_ext=C
7444 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7445 ac_cpp='$CXXCPP $CPPFLAGS'
7446 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7447 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7448 cross_compiling=$ac_cv_prog_cxx_cross
7449
7450       cat > conftest.$ac_ext <<EOF
7451 #line 7452 "configure"
7452 #include "confdefs.h"
7453 #include <math.h>
7454                       #ifdef HAVE_IEEEFP_H
7455                       #include <ieeefp.h>
7456                       #endif
7457                      
7458 int main() {
7459  fpclass(0);
7460 ; return 0; }
7461 EOF
7462 if { (eval echo configure:7463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7463   rm -rf conftest*
7464   glibcpp_cv_func_fpclass_use=yes
7465 else
7466   echo "configure: failed program was:" >&5
7467   cat conftest.$ac_ext >&5
7468   rm -rf conftest*
7469   glibcpp_cv_func_fpclass_use=no
7470 fi
7471 rm -f conftest*
7472       ac_ext=c
7473 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7474 ac_cpp='$CPP $CPPFLAGS'
7475 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7476 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7477 cross_compiling=$ac_cv_prog_cc_cross
7478
7479     
7480 fi
7481
7482   fi
7483   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7484
7485   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7486     for ac_func in fpclass
7487 do
7488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7489 echo "configure:7490: checking for $ac_func" >&5
7490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7491   echo $ac_n "(cached) $ac_c" 1>&6
7492 else
7493   cat > conftest.$ac_ext <<EOF
7494 #line 7495 "configure"
7495 #include "confdefs.h"
7496 /* System header to define __stub macros and hopefully few prototypes,
7497     which can conflict with char $ac_func(); below.  */
7498 #include <assert.h>
7499 /* Override any gcc2 internal prototype to avoid an error.  */
7500 /* We use char because int might match the return type of a gcc2
7501     builtin and then its argument prototype would still apply.  */
7502 char $ac_func();
7503
7504 int main() {
7505
7506 /* The GNU C library defines this for functions which it implements
7507     to always fail with ENOSYS.  Some functions are actually named
7508     something starting with __ and the normal name is an alias.  */
7509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7510 choke me
7511 #else
7512 $ac_func();
7513 #endif
7514
7515 ; return 0; }
7516 EOF
7517 if { (eval echo configure:7518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7518   rm -rf conftest*
7519   eval "ac_cv_func_$ac_func=yes"
7520 else
7521   echo "configure: failed program was:" >&5
7522   cat conftest.$ac_ext >&5
7523   rm -rf conftest*
7524   eval "ac_cv_func_$ac_func=no"
7525 fi
7526 rm -f conftest*
7527 fi
7528
7529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7530   echo "$ac_t""yes" 1>&6
7531     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7532   cat >> confdefs.h <<EOF
7533 #define $ac_tr_func 1
7534 EOF
7535  
7536 else
7537   echo "$ac_t""no" 1>&6
7538 fi
7539 done
7540     
7541   else
7542     
7543   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7544 echo "configure:7545: checking for _fpclass declaration" >&5
7545   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7546     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7547   echo $ac_n "(cached) $ac_c" 1>&6
7548 else
7549   
7550       
7551       ac_ext=C
7552 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7553 ac_cpp='$CXXCPP $CPPFLAGS'
7554 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7555 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7556 cross_compiling=$ac_cv_prog_cxx_cross
7557
7558       cat > conftest.$ac_ext <<EOF
7559 #line 7560 "configure"
7560 #include "confdefs.h"
7561 #include <math.h>
7562                       #ifdef HAVE_IEEEFP_H
7563                       #include <ieeefp.h>
7564                       #endif
7565                      
7566 int main() {
7567  _fpclass(0);
7568 ; return 0; }
7569 EOF
7570 if { (eval echo configure:7571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7571   rm -rf conftest*
7572   glibcpp_cv_func__fpclass_use=yes
7573 else
7574   echo "configure: failed program was:" >&5
7575   cat conftest.$ac_ext >&5
7576   rm -rf conftest*
7577   glibcpp_cv_func__fpclass_use=no
7578 fi
7579 rm -f conftest*
7580       ac_ext=c
7581 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7582 ac_cpp='$CPP $CPPFLAGS'
7583 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7584 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7585 cross_compiling=$ac_cv_prog_cc_cross
7586
7587     
7588 fi
7589
7590   fi
7591   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7592
7593     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7594       for ac_func in _fpclass
7595 do
7596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7597 echo "configure:7598: checking for $ac_func" >&5
7598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7599   echo $ac_n "(cached) $ac_c" 1>&6
7600 else
7601   cat > conftest.$ac_ext <<EOF
7602 #line 7603 "configure"
7603 #include "confdefs.h"
7604 /* System header to define __stub macros and hopefully few prototypes,
7605     which can conflict with char $ac_func(); below.  */
7606 #include <assert.h>
7607 /* Override any gcc2 internal prototype to avoid an error.  */
7608 /* We use char because int might match the return type of a gcc2
7609     builtin and then its argument prototype would still apply.  */
7610 char $ac_func();
7611
7612 int main() {
7613
7614 /* The GNU C library defines this for functions which it implements
7615     to always fail with ENOSYS.  Some functions are actually named
7616     something starting with __ and the normal name is an alias.  */
7617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7618 choke me
7619 #else
7620 $ac_func();
7621 #endif
7622
7623 ; return 0; }
7624 EOF
7625 if { (eval echo configure:7626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7626   rm -rf conftest*
7627   eval "ac_cv_func_$ac_func=yes"
7628 else
7629   echo "configure: failed program was:" >&5
7630   cat conftest.$ac_ext >&5
7631   rm -rf conftest*
7632   eval "ac_cv_func_$ac_func=no"
7633 fi
7634 rm -f conftest*
7635 fi
7636
7637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7638   echo "$ac_t""yes" 1>&6
7639     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7640   cat >> confdefs.h <<EOF
7641 #define $ac_tr_func 1
7642 EOF
7643  
7644 else
7645   echo "$ac_t""no" 1>&6
7646 fi
7647 done
7648     
7649     fi
7650   fi
7651
7652   
7653   
7654   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7655 echo "configure:7656: checking for qfpclass declaration" >&5
7656   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7657     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7658   echo $ac_n "(cached) $ac_c" 1>&6
7659 else
7660   
7661       
7662       ac_ext=C
7663 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7664 ac_cpp='$CXXCPP $CPPFLAGS'
7665 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7666 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7667 cross_compiling=$ac_cv_prog_cxx_cross
7668
7669       cat > conftest.$ac_ext <<EOF
7670 #line 7671 "configure"
7671 #include "confdefs.h"
7672 #include <math.h>
7673                       #ifdef HAVE_IEEEFP_H
7674                       #include <ieeefp.h>
7675                       #endif
7676                      
7677 int main() {
7678  qfpclass(0);
7679 ; return 0; }
7680 EOF
7681 if { (eval echo configure:7682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7682   rm -rf conftest*
7683   glibcpp_cv_func_qfpclass_use=yes
7684 else
7685   echo "configure: failed program was:" >&5
7686   cat conftest.$ac_ext >&5
7687   rm -rf conftest*
7688   glibcpp_cv_func_qfpclass_use=no
7689 fi
7690 rm -f conftest*
7691       ac_ext=c
7692 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7693 ac_cpp='$CPP $CPPFLAGS'
7694 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7695 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7696 cross_compiling=$ac_cv_prog_cc_cross
7697
7698     
7699 fi
7700
7701   fi
7702   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
7703
7704   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
7705     for ac_func in qfpclass
7706 do
7707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7708 echo "configure:7709: checking for $ac_func" >&5
7709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7710   echo $ac_n "(cached) $ac_c" 1>&6
7711 else
7712   cat > conftest.$ac_ext <<EOF
7713 #line 7714 "configure"
7714 #include "confdefs.h"
7715 /* System header to define __stub macros and hopefully few prototypes,
7716     which can conflict with char $ac_func(); below.  */
7717 #include <assert.h>
7718 /* Override any gcc2 internal prototype to avoid an error.  */
7719 /* We use char because int might match the return type of a gcc2
7720     builtin and then its argument prototype would still apply.  */
7721 char $ac_func();
7722
7723 int main() {
7724
7725 /* The GNU C library defines this for functions which it implements
7726     to always fail with ENOSYS.  Some functions are actually named
7727     something starting with __ and the normal name is an alias.  */
7728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7729 choke me
7730 #else
7731 $ac_func();
7732 #endif
7733
7734 ; return 0; }
7735 EOF
7736 if { (eval echo configure:7737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7737   rm -rf conftest*
7738   eval "ac_cv_func_$ac_func=yes"
7739 else
7740   echo "configure: failed program was:" >&5
7741   cat conftest.$ac_ext >&5
7742   rm -rf conftest*
7743   eval "ac_cv_func_$ac_func=no"
7744 fi
7745 rm -f conftest*
7746 fi
7747
7748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7749   echo "$ac_t""yes" 1>&6
7750     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7751   cat >> confdefs.h <<EOF
7752 #define $ac_tr_func 1
7753 EOF
7754  
7755 else
7756   echo "$ac_t""no" 1>&6
7757 fi
7758 done
7759     
7760   else
7761     
7762   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
7763 echo "configure:7764: checking for _qfpclass declaration" >&5
7764   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
7765     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
7766   echo $ac_n "(cached) $ac_c" 1>&6
7767 else
7768   
7769       
7770       ac_ext=C
7771 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7772 ac_cpp='$CXXCPP $CPPFLAGS'
7773 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7774 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7775 cross_compiling=$ac_cv_prog_cxx_cross
7776
7777       cat > conftest.$ac_ext <<EOF
7778 #line 7779 "configure"
7779 #include "confdefs.h"
7780 #include <math.h>
7781                       #ifdef HAVE_IEEEFP_H
7782                       #include <ieeefp.h>
7783                       #endif
7784                      
7785 int main() {
7786  _qfpclass(0);
7787 ; return 0; }
7788 EOF
7789 if { (eval echo configure:7790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7790   rm -rf conftest*
7791   glibcpp_cv_func__qfpclass_use=yes
7792 else
7793   echo "configure: failed program was:" >&5
7794   cat conftest.$ac_ext >&5
7795   rm -rf conftest*
7796   glibcpp_cv_func__qfpclass_use=no
7797 fi
7798 rm -f conftest*
7799       ac_ext=c
7800 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7801 ac_cpp='$CPP $CPPFLAGS'
7802 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7803 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7804 cross_compiling=$ac_cv_prog_cc_cross
7805
7806     
7807 fi
7808
7809   fi
7810   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
7811
7812     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
7813       for ac_func in _qfpclass
7814 do
7815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7816 echo "configure:7817: checking for $ac_func" >&5
7817 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7818   echo $ac_n "(cached) $ac_c" 1>&6
7819 else
7820   cat > conftest.$ac_ext <<EOF
7821 #line 7822 "configure"
7822 #include "confdefs.h"
7823 /* System header to define __stub macros and hopefully few prototypes,
7824     which can conflict with char $ac_func(); below.  */
7825 #include <assert.h>
7826 /* Override any gcc2 internal prototype to avoid an error.  */
7827 /* We use char because int might match the return type of a gcc2
7828     builtin and then its argument prototype would still apply.  */
7829 char $ac_func();
7830
7831 int main() {
7832
7833 /* The GNU C library defines this for functions which it implements
7834     to always fail with ENOSYS.  Some functions are actually named
7835     something starting with __ and the normal name is an alias.  */
7836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7837 choke me
7838 #else
7839 $ac_func();
7840 #endif
7841
7842 ; return 0; }
7843 EOF
7844 if { (eval echo configure:7845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7845   rm -rf conftest*
7846   eval "ac_cv_func_$ac_func=yes"
7847 else
7848   echo "configure: failed program was:" >&5
7849   cat conftest.$ac_ext >&5
7850   rm -rf conftest*
7851   eval "ac_cv_func_$ac_func=no"
7852 fi
7853 rm -f conftest*
7854 fi
7855
7856 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7857   echo "$ac_t""yes" 1>&6
7858     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7859   cat >> confdefs.h <<EOF
7860 #define $ac_tr_func 1
7861 EOF
7862  
7863 else
7864   echo "$ac_t""no" 1>&6
7865 fi
7866 done
7867     
7868     fi
7869   fi
7870
7871
7872     
7873   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
7874 echo "configure:7875: checking for float trig functions" >&5
7875   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
7876   echo $ac_n "(cached) $ac_c" 1>&6
7877 else
7878   
7879     
7880     ac_ext=C
7881 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7882 ac_cpp='$CXXCPP $CPPFLAGS'
7883 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7884 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7885 cross_compiling=$ac_cv_prog_cxx_cross
7886
7887     cat > conftest.$ac_ext <<EOF
7888 #line 7889 "configure"
7889 #include "confdefs.h"
7890 #include <math.h>
7891 int main() {
7892  `for x in acosf asinf atanf \
7893                                           cosf sinf tanf \
7894                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
7895 ; return 0; }
7896 EOF
7897 if { (eval echo configure:7898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7898   rm -rf conftest*
7899   glibcpp_cv_func_float_trig_use=yes
7900 else
7901   echo "configure: failed program was:" >&5
7902   cat conftest.$ac_ext >&5
7903   rm -rf conftest*
7904   glibcpp_cv_func_float_trig_use=no
7905 fi
7906 rm -f conftest*
7907     ac_ext=c
7908 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7909 ac_cpp='$CPP $CPPFLAGS'
7910 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7911 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7912 cross_compiling=$ac_cv_prog_cc_cross
7913
7914 fi
7915
7916   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
7917   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
7918     for ac_func in acosf asinf atanf \
7919                                           cosf sinf tanf \
7920                                           coshf sinhf tanhf
7921 do
7922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7923 echo "configure:7924: checking for $ac_func" >&5
7924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7925   echo $ac_n "(cached) $ac_c" 1>&6
7926 else
7927   cat > conftest.$ac_ext <<EOF
7928 #line 7929 "configure"
7929 #include "confdefs.h"
7930 /* System header to define __stub macros and hopefully few prototypes,
7931     which can conflict with char $ac_func(); below.  */
7932 #include <assert.h>
7933 /* Override any gcc2 internal prototype to avoid an error.  */
7934 /* We use char because int might match the return type of a gcc2
7935     builtin and then its argument prototype would still apply.  */
7936 char $ac_func();
7937
7938 int main() {
7939
7940 /* The GNU C library defines this for functions which it implements
7941     to always fail with ENOSYS.  Some functions are actually named
7942     something starting with __ and the normal name is an alias.  */
7943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7944 choke me
7945 #else
7946 $ac_func();
7947 #endif
7948
7949 ; return 0; }
7950 EOF
7951 if { (eval echo configure:7952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7952   rm -rf conftest*
7953   eval "ac_cv_func_$ac_func=yes"
7954 else
7955   echo "configure: failed program was:" >&5
7956   cat conftest.$ac_ext >&5
7957   rm -rf conftest*
7958   eval "ac_cv_func_$ac_func=no"
7959 fi
7960 rm -f conftest*
7961 fi
7962
7963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7964   echo "$ac_t""yes" 1>&6
7965     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7966   cat >> confdefs.h <<EOF
7967 #define $ac_tr_func 1
7968 EOF
7969  
7970 else
7971   echo "$ac_t""no" 1>&6
7972 fi
7973 done
7974
7975   fi
7976
7977   
7978   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
7979 echo "configure:7980: checking for float round functions" >&5
7980   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
7981   echo $ac_n "(cached) $ac_c" 1>&6
7982 else
7983   
7984     
7985     ac_ext=C
7986 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7987 ac_cpp='$CXXCPP $CPPFLAGS'
7988 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7989 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7990 cross_compiling=$ac_cv_prog_cxx_cross
7991
7992     cat > conftest.$ac_ext <<EOF
7993 #line 7994 "configure"
7994 #include "confdefs.h"
7995 #include <math.h>
7996 int main() {
7997  `for x in ceilf floorf; do echo "$x (0);"; done` 
7998 ; return 0; }
7999 EOF
8000 if { (eval echo configure:8001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8001   rm -rf conftest*
8002   glibcpp_cv_func_float_round_use=yes
8003 else
8004   echo "configure: failed program was:" >&5
8005   cat conftest.$ac_ext >&5
8006   rm -rf conftest*
8007   glibcpp_cv_func_float_round_use=no
8008 fi
8009 rm -f conftest*
8010     ac_ext=c
8011 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8012 ac_cpp='$CPP $CPPFLAGS'
8013 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8014 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8015 cross_compiling=$ac_cv_prog_cc_cross
8016
8017 fi
8018
8019   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
8020   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
8021     for ac_func in ceilf floorf
8022 do
8023 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8024 echo "configure:8025: checking for $ac_func" >&5
8025 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8026   echo $ac_n "(cached) $ac_c" 1>&6
8027 else
8028   cat > conftest.$ac_ext <<EOF
8029 #line 8030 "configure"
8030 #include "confdefs.h"
8031 /* System header to define __stub macros and hopefully few prototypes,
8032     which can conflict with char $ac_func(); below.  */
8033 #include <assert.h>
8034 /* Override any gcc2 internal prototype to avoid an error.  */
8035 /* We use char because int might match the return type of a gcc2
8036     builtin and then its argument prototype would still apply.  */
8037 char $ac_func();
8038
8039 int main() {
8040
8041 /* The GNU C library defines this for functions which it implements
8042     to always fail with ENOSYS.  Some functions are actually named
8043     something starting with __ and the normal name is an alias.  */
8044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8045 choke me
8046 #else
8047 $ac_func();
8048 #endif
8049
8050 ; return 0; }
8051 EOF
8052 if { (eval echo configure:8053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8053   rm -rf conftest*
8054   eval "ac_cv_func_$ac_func=yes"
8055 else
8056   echo "configure: failed program was:" >&5
8057   cat conftest.$ac_ext >&5
8058   rm -rf conftest*
8059   eval "ac_cv_func_$ac_func=no"
8060 fi
8061 rm -f conftest*
8062 fi
8063
8064 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8065   echo "$ac_t""yes" 1>&6
8066     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8067   cat >> confdefs.h <<EOF
8068 #define $ac_tr_func 1
8069 EOF
8070  
8071 else
8072   echo "$ac_t""no" 1>&6
8073 fi
8074 done
8075
8076   fi
8077
8078   
8079   
8080   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
8081 echo "configure:8082: checking for isnanf declaration" >&5
8082   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
8083     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
8084   echo $ac_n "(cached) $ac_c" 1>&6
8085 else
8086   
8087       
8088       ac_ext=C
8089 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8090 ac_cpp='$CXXCPP $CPPFLAGS'
8091 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8092 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8093 cross_compiling=$ac_cv_prog_cxx_cross
8094
8095       cat > conftest.$ac_ext <<EOF
8096 #line 8097 "configure"
8097 #include "confdefs.h"
8098 #include <math.h>
8099                       #ifdef HAVE_IEEEFP_H
8100                       #include <ieeefp.h>
8101                       #endif
8102                      
8103 int main() {
8104  isnanf(0);
8105 ; return 0; }
8106 EOF
8107 if { (eval echo configure:8108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8108   rm -rf conftest*
8109   glibcpp_cv_func_isnanf_use=yes
8110 else
8111   echo "configure: failed program was:" >&5
8112   cat conftest.$ac_ext >&5
8113   rm -rf conftest*
8114   glibcpp_cv_func_isnanf_use=no
8115 fi
8116 rm -f conftest*
8117       ac_ext=c
8118 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8119 ac_cpp='$CPP $CPPFLAGS'
8120 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8121 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8122 cross_compiling=$ac_cv_prog_cc_cross
8123
8124     
8125 fi
8126
8127   fi
8128   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
8129
8130   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
8131     for ac_func in isnanf
8132 do
8133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8134 echo "configure:8135: checking for $ac_func" >&5
8135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8136   echo $ac_n "(cached) $ac_c" 1>&6
8137 else
8138   cat > conftest.$ac_ext <<EOF
8139 #line 8140 "configure"
8140 #include "confdefs.h"
8141 /* System header to define __stub macros and hopefully few prototypes,
8142     which can conflict with char $ac_func(); below.  */
8143 #include <assert.h>
8144 /* Override any gcc2 internal prototype to avoid an error.  */
8145 /* We use char because int might match the return type of a gcc2
8146     builtin and then its argument prototype would still apply.  */
8147 char $ac_func();
8148
8149 int main() {
8150
8151 /* The GNU C library defines this for functions which it implements
8152     to always fail with ENOSYS.  Some functions are actually named
8153     something starting with __ and the normal name is an alias.  */
8154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8155 choke me
8156 #else
8157 $ac_func();
8158 #endif
8159
8160 ; return 0; }
8161 EOF
8162 if { (eval echo configure:8163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8163   rm -rf conftest*
8164   eval "ac_cv_func_$ac_func=yes"
8165 else
8166   echo "configure: failed program was:" >&5
8167   cat conftest.$ac_ext >&5
8168   rm -rf conftest*
8169   eval "ac_cv_func_$ac_func=no"
8170 fi
8171 rm -f conftest*
8172 fi
8173
8174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8175   echo "$ac_t""yes" 1>&6
8176     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8177   cat >> confdefs.h <<EOF
8178 #define $ac_tr_func 1
8179 EOF
8180  
8181 else
8182   echo "$ac_t""no" 1>&6
8183 fi
8184 done
8185     
8186   else
8187     
8188   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
8189 echo "configure:8190: checking for _isnanf declaration" >&5
8190   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
8191     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
8192   echo $ac_n "(cached) $ac_c" 1>&6
8193 else
8194   
8195       
8196       ac_ext=C
8197 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8198 ac_cpp='$CXXCPP $CPPFLAGS'
8199 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8200 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8201 cross_compiling=$ac_cv_prog_cxx_cross
8202
8203       cat > conftest.$ac_ext <<EOF
8204 #line 8205 "configure"
8205 #include "confdefs.h"
8206 #include <math.h>
8207                       #ifdef HAVE_IEEEFP_H
8208                       #include <ieeefp.h>
8209                       #endif
8210                      
8211 int main() {
8212  _isnanf(0);
8213 ; return 0; }
8214 EOF
8215 if { (eval echo configure:8216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8216   rm -rf conftest*
8217   glibcpp_cv_func__isnanf_use=yes
8218 else
8219   echo "configure: failed program was:" >&5
8220   cat conftest.$ac_ext >&5
8221   rm -rf conftest*
8222   glibcpp_cv_func__isnanf_use=no
8223 fi
8224 rm -f conftest*
8225       ac_ext=c
8226 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8227 ac_cpp='$CPP $CPPFLAGS'
8228 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8229 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8230 cross_compiling=$ac_cv_prog_cc_cross
8231
8232     
8233 fi
8234
8235   fi
8236   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
8237
8238     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
8239       for ac_func in _isnanf
8240 do
8241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8242 echo "configure:8243: checking for $ac_func" >&5
8243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8244   echo $ac_n "(cached) $ac_c" 1>&6
8245 else
8246   cat > conftest.$ac_ext <<EOF
8247 #line 8248 "configure"
8248 #include "confdefs.h"
8249 /* System header to define __stub macros and hopefully few prototypes,
8250     which can conflict with char $ac_func(); below.  */
8251 #include <assert.h>
8252 /* Override any gcc2 internal prototype to avoid an error.  */
8253 /* We use char because int might match the return type of a gcc2
8254     builtin and then its argument prototype would still apply.  */
8255 char $ac_func();
8256
8257 int main() {
8258
8259 /* The GNU C library defines this for functions which it implements
8260     to always fail with ENOSYS.  Some functions are actually named
8261     something starting with __ and the normal name is an alias.  */
8262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8263 choke me
8264 #else
8265 $ac_func();
8266 #endif
8267
8268 ; return 0; }
8269 EOF
8270 if { (eval echo configure:8271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8271   rm -rf conftest*
8272   eval "ac_cv_func_$ac_func=yes"
8273 else
8274   echo "configure: failed program was:" >&5
8275   cat conftest.$ac_ext >&5
8276   rm -rf conftest*
8277   eval "ac_cv_func_$ac_func=no"
8278 fi
8279 rm -f conftest*
8280 fi
8281
8282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8283   echo "$ac_t""yes" 1>&6
8284     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8285   cat >> confdefs.h <<EOF
8286 #define $ac_tr_func 1
8287 EOF
8288  
8289 else
8290   echo "$ac_t""no" 1>&6
8291 fi
8292 done
8293     
8294     fi
8295   fi
8296
8297   
8298   
8299   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
8300 echo "configure:8301: checking for isinff declaration" >&5
8301   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
8302     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
8303   echo $ac_n "(cached) $ac_c" 1>&6
8304 else
8305   
8306       
8307       ac_ext=C
8308 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8309 ac_cpp='$CXXCPP $CPPFLAGS'
8310 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8311 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8312 cross_compiling=$ac_cv_prog_cxx_cross
8313
8314       cat > conftest.$ac_ext <<EOF
8315 #line 8316 "configure"
8316 #include "confdefs.h"
8317 #include <math.h>
8318                       #ifdef HAVE_IEEEFP_H
8319                       #include <ieeefp.h>
8320                       #endif
8321                      
8322 int main() {
8323  isinff(0);
8324 ; return 0; }
8325 EOF
8326 if { (eval echo configure:8327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8327   rm -rf conftest*
8328   glibcpp_cv_func_isinff_use=yes
8329 else
8330   echo "configure: failed program was:" >&5
8331   cat conftest.$ac_ext >&5
8332   rm -rf conftest*
8333   glibcpp_cv_func_isinff_use=no
8334 fi
8335 rm -f conftest*
8336       ac_ext=c
8337 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8338 ac_cpp='$CPP $CPPFLAGS'
8339 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8340 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8341 cross_compiling=$ac_cv_prog_cc_cross
8342
8343     
8344 fi
8345
8346   fi
8347   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
8348
8349   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
8350     for ac_func in isinff
8351 do
8352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8353 echo "configure:8354: checking for $ac_func" >&5
8354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8355   echo $ac_n "(cached) $ac_c" 1>&6
8356 else
8357   cat > conftest.$ac_ext <<EOF
8358 #line 8359 "configure"
8359 #include "confdefs.h"
8360 /* System header to define __stub macros and hopefully few prototypes,
8361     which can conflict with char $ac_func(); below.  */
8362 #include <assert.h>
8363 /* Override any gcc2 internal prototype to avoid an error.  */
8364 /* We use char because int might match the return type of a gcc2
8365     builtin and then its argument prototype would still apply.  */
8366 char $ac_func();
8367
8368 int main() {
8369
8370 /* The GNU C library defines this for functions which it implements
8371     to always fail with ENOSYS.  Some functions are actually named
8372     something starting with __ and the normal name is an alias.  */
8373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8374 choke me
8375 #else
8376 $ac_func();
8377 #endif
8378
8379 ; return 0; }
8380 EOF
8381 if { (eval echo configure:8382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8382   rm -rf conftest*
8383   eval "ac_cv_func_$ac_func=yes"
8384 else
8385   echo "configure: failed program was:" >&5
8386   cat conftest.$ac_ext >&5
8387   rm -rf conftest*
8388   eval "ac_cv_func_$ac_func=no"
8389 fi
8390 rm -f conftest*
8391 fi
8392
8393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8394   echo "$ac_t""yes" 1>&6
8395     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8396   cat >> confdefs.h <<EOF
8397 #define $ac_tr_func 1
8398 EOF
8399  
8400 else
8401   echo "$ac_t""no" 1>&6
8402 fi
8403 done
8404     
8405   else
8406     
8407   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
8408 echo "configure:8409: checking for _isinff declaration" >&5
8409   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
8410     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
8411   echo $ac_n "(cached) $ac_c" 1>&6
8412 else
8413   
8414       
8415       ac_ext=C
8416 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8417 ac_cpp='$CXXCPP $CPPFLAGS'
8418 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8419 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8420 cross_compiling=$ac_cv_prog_cxx_cross
8421
8422       cat > conftest.$ac_ext <<EOF
8423 #line 8424 "configure"
8424 #include "confdefs.h"
8425 #include <math.h>
8426                       #ifdef HAVE_IEEEFP_H
8427                       #include <ieeefp.h>
8428                       #endif
8429                      
8430 int main() {
8431  _isinff(0);
8432 ; return 0; }
8433 EOF
8434 if { (eval echo configure:8435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8435   rm -rf conftest*
8436   glibcpp_cv_func__isinff_use=yes
8437 else
8438   echo "configure: failed program was:" >&5
8439   cat conftest.$ac_ext >&5
8440   rm -rf conftest*
8441   glibcpp_cv_func__isinff_use=no
8442 fi
8443 rm -f conftest*
8444       ac_ext=c
8445 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8446 ac_cpp='$CPP $CPPFLAGS'
8447 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8448 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8449 cross_compiling=$ac_cv_prog_cc_cross
8450
8451     
8452 fi
8453
8454   fi
8455   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8456
8457     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8458       for ac_func in _isinff
8459 do
8460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8461 echo "configure:8462: checking for $ac_func" >&5
8462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8463   echo $ac_n "(cached) $ac_c" 1>&6
8464 else
8465   cat > conftest.$ac_ext <<EOF
8466 #line 8467 "configure"
8467 #include "confdefs.h"
8468 /* System header to define __stub macros and hopefully few prototypes,
8469     which can conflict with char $ac_func(); below.  */
8470 #include <assert.h>
8471 /* Override any gcc2 internal prototype to avoid an error.  */
8472 /* We use char because int might match the return type of a gcc2
8473     builtin and then its argument prototype would still apply.  */
8474 char $ac_func();
8475
8476 int main() {
8477
8478 /* The GNU C library defines this for functions which it implements
8479     to always fail with ENOSYS.  Some functions are actually named
8480     something starting with __ and the normal name is an alias.  */
8481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8482 choke me
8483 #else
8484 $ac_func();
8485 #endif
8486
8487 ; return 0; }
8488 EOF
8489 if { (eval echo configure:8490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8490   rm -rf conftest*
8491   eval "ac_cv_func_$ac_func=yes"
8492 else
8493   echo "configure: failed program was:" >&5
8494   cat conftest.$ac_ext >&5
8495   rm -rf conftest*
8496   eval "ac_cv_func_$ac_func=no"
8497 fi
8498 rm -f conftest*
8499 fi
8500
8501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8502   echo "$ac_t""yes" 1>&6
8503     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8504   cat >> confdefs.h <<EOF
8505 #define $ac_tr_func 1
8506 EOF
8507  
8508 else
8509   echo "$ac_t""no" 1>&6
8510 fi
8511 done
8512     
8513     fi
8514   fi
8515
8516   
8517   
8518   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
8519 echo "configure:8520: checking for fabsf declaration" >&5
8520   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
8521     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
8522   echo $ac_n "(cached) $ac_c" 1>&6
8523 else
8524   
8525       
8526       ac_ext=C
8527 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8528 ac_cpp='$CXXCPP $CPPFLAGS'
8529 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8530 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8531 cross_compiling=$ac_cv_prog_cxx_cross
8532
8533       cat > conftest.$ac_ext <<EOF
8534 #line 8535 "configure"
8535 #include "confdefs.h"
8536 #include <math.h>
8537                       #ifdef HAVE_IEEEFP_H
8538                       #include <ieeefp.h>
8539                       #endif
8540                      
8541 int main() {
8542  fabsf(0);
8543 ; return 0; }
8544 EOF
8545 if { (eval echo configure:8546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8546   rm -rf conftest*
8547   glibcpp_cv_func_fabsf_use=yes
8548 else
8549   echo "configure: failed program was:" >&5
8550   cat conftest.$ac_ext >&5
8551   rm -rf conftest*
8552   glibcpp_cv_func_fabsf_use=no
8553 fi
8554 rm -f conftest*
8555       ac_ext=c
8556 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8557 ac_cpp='$CPP $CPPFLAGS'
8558 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8559 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8560 cross_compiling=$ac_cv_prog_cc_cross
8561
8562     
8563 fi
8564
8565   fi
8566   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
8567
8568   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
8569     for ac_func in fabsf
8570 do
8571 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8572 echo "configure:8573: checking for $ac_func" >&5
8573 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8574   echo $ac_n "(cached) $ac_c" 1>&6
8575 else
8576   cat > conftest.$ac_ext <<EOF
8577 #line 8578 "configure"
8578 #include "confdefs.h"
8579 /* System header to define __stub macros and hopefully few prototypes,
8580     which can conflict with char $ac_func(); below.  */
8581 #include <assert.h>
8582 /* Override any gcc2 internal prototype to avoid an error.  */
8583 /* We use char because int might match the return type of a gcc2
8584     builtin and then its argument prototype would still apply.  */
8585 char $ac_func();
8586
8587 int main() {
8588
8589 /* The GNU C library defines this for functions which it implements
8590     to always fail with ENOSYS.  Some functions are actually named
8591     something starting with __ and the normal name is an alias.  */
8592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8593 choke me
8594 #else
8595 $ac_func();
8596 #endif
8597
8598 ; return 0; }
8599 EOF
8600 if { (eval echo configure:8601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8601   rm -rf conftest*
8602   eval "ac_cv_func_$ac_func=yes"
8603 else
8604   echo "configure: failed program was:" >&5
8605   cat conftest.$ac_ext >&5
8606   rm -rf conftest*
8607   eval "ac_cv_func_$ac_func=no"
8608 fi
8609 rm -f conftest*
8610 fi
8611
8612 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8613   echo "$ac_t""yes" 1>&6
8614     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8615   cat >> confdefs.h <<EOF
8616 #define $ac_tr_func 1
8617 EOF
8618  
8619 else
8620   echo "$ac_t""no" 1>&6
8621 fi
8622 done
8623     
8624   else
8625     
8626   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
8627 echo "configure:8628: checking for _fabsf declaration" >&5
8628   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
8629     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
8630   echo $ac_n "(cached) $ac_c" 1>&6
8631 else
8632   
8633       
8634       ac_ext=C
8635 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8636 ac_cpp='$CXXCPP $CPPFLAGS'
8637 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8638 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8639 cross_compiling=$ac_cv_prog_cxx_cross
8640
8641       cat > conftest.$ac_ext <<EOF
8642 #line 8643 "configure"
8643 #include "confdefs.h"
8644 #include <math.h>
8645                       #ifdef HAVE_IEEEFP_H
8646                       #include <ieeefp.h>
8647                       #endif
8648                      
8649 int main() {
8650  _fabsf(0);
8651 ; return 0; }
8652 EOF
8653 if { (eval echo configure:8654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8654   rm -rf conftest*
8655   glibcpp_cv_func__fabsf_use=yes
8656 else
8657   echo "configure: failed program was:" >&5
8658   cat conftest.$ac_ext >&5
8659   rm -rf conftest*
8660   glibcpp_cv_func__fabsf_use=no
8661 fi
8662 rm -f conftest*
8663       ac_ext=c
8664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8665 ac_cpp='$CPP $CPPFLAGS'
8666 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8667 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8668 cross_compiling=$ac_cv_prog_cc_cross
8669
8670     
8671 fi
8672
8673   fi
8674   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
8675
8676     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
8677       for ac_func in _fabsf
8678 do
8679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8680 echo "configure:8681: checking for $ac_func" >&5
8681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8682   echo $ac_n "(cached) $ac_c" 1>&6
8683 else
8684   cat > conftest.$ac_ext <<EOF
8685 #line 8686 "configure"
8686 #include "confdefs.h"
8687 /* System header to define __stub macros and hopefully few prototypes,
8688     which can conflict with char $ac_func(); below.  */
8689 #include <assert.h>
8690 /* Override any gcc2 internal prototype to avoid an error.  */
8691 /* We use char because int might match the return type of a gcc2
8692     builtin and then its argument prototype would still apply.  */
8693 char $ac_func();
8694
8695 int main() {
8696
8697 /* The GNU C library defines this for functions which it implements
8698     to always fail with ENOSYS.  Some functions are actually named
8699     something starting with __ and the normal name is an alias.  */
8700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8701 choke me
8702 #else
8703 $ac_func();
8704 #endif
8705
8706 ; return 0; }
8707 EOF
8708 if { (eval echo configure:8709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8709   rm -rf conftest*
8710   eval "ac_cv_func_$ac_func=yes"
8711 else
8712   echo "configure: failed program was:" >&5
8713   cat conftest.$ac_ext >&5
8714   rm -rf conftest*
8715   eval "ac_cv_func_$ac_func=no"
8716 fi
8717 rm -f conftest*
8718 fi
8719
8720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8721   echo "$ac_t""yes" 1>&6
8722     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8723   cat >> confdefs.h <<EOF
8724 #define $ac_tr_func 1
8725 EOF
8726  
8727 else
8728   echo "$ac_t""no" 1>&6
8729 fi
8730 done
8731     
8732     fi
8733   fi
8734
8735   
8736   
8737   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
8738 echo "configure:8739: checking for fmodf declaration" >&5
8739   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
8740     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
8741   echo $ac_n "(cached) $ac_c" 1>&6
8742 else
8743   
8744       
8745       ac_ext=C
8746 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8747 ac_cpp='$CXXCPP $CPPFLAGS'
8748 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8749 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8750 cross_compiling=$ac_cv_prog_cxx_cross
8751
8752       cat > conftest.$ac_ext <<EOF
8753 #line 8754 "configure"
8754 #include "confdefs.h"
8755 #include <math.h>
8756 int main() {
8757  fmodf(0, 0);
8758 ; return 0; }
8759 EOF
8760 if { (eval echo configure:8761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8761   rm -rf conftest*
8762   glibcpp_cv_func_fmodf_use=yes
8763 else
8764   echo "configure: failed program was:" >&5
8765   cat conftest.$ac_ext >&5
8766   rm -rf conftest*
8767   glibcpp_cv_func_fmodf_use=no
8768 fi
8769 rm -f conftest*
8770       ac_ext=c
8771 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8772 ac_cpp='$CPP $CPPFLAGS'
8773 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8774 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8775 cross_compiling=$ac_cv_prog_cc_cross
8776
8777     
8778 fi
8779
8780   fi
8781   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
8782
8783   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
8784     for ac_func in fmodf
8785 do
8786 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8787 echo "configure:8788: checking for $ac_func" >&5
8788 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8789   echo $ac_n "(cached) $ac_c" 1>&6
8790 else
8791   cat > conftest.$ac_ext <<EOF
8792 #line 8793 "configure"
8793 #include "confdefs.h"
8794 /* System header to define __stub macros and hopefully few prototypes,
8795     which can conflict with char $ac_func(); below.  */
8796 #include <assert.h>
8797 /* Override any gcc2 internal prototype to avoid an error.  */
8798 /* We use char because int might match the return type of a gcc2
8799     builtin and then its argument prototype would still apply.  */
8800 char $ac_func();
8801
8802 int main() {
8803
8804 /* The GNU C library defines this for functions which it implements
8805     to always fail with ENOSYS.  Some functions are actually named
8806     something starting with __ and the normal name is an alias.  */
8807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8808 choke me
8809 #else
8810 $ac_func();
8811 #endif
8812
8813 ; return 0; }
8814 EOF
8815 if { (eval echo configure:8816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8816   rm -rf conftest*
8817   eval "ac_cv_func_$ac_func=yes"
8818 else
8819   echo "configure: failed program was:" >&5
8820   cat conftest.$ac_ext >&5
8821   rm -rf conftest*
8822   eval "ac_cv_func_$ac_func=no"
8823 fi
8824 rm -f conftest*
8825 fi
8826
8827 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8828   echo "$ac_t""yes" 1>&6
8829     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8830   cat >> confdefs.h <<EOF
8831 #define $ac_tr_func 1
8832 EOF
8833  
8834 else
8835   echo "$ac_t""no" 1>&6
8836 fi
8837 done
8838     
8839   else
8840     
8841   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
8842 echo "configure:8843: checking for _fmodf declaration" >&5
8843   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
8844     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
8845   echo $ac_n "(cached) $ac_c" 1>&6
8846 else
8847   
8848       
8849       ac_ext=C
8850 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8851 ac_cpp='$CXXCPP $CPPFLAGS'
8852 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8853 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8854 cross_compiling=$ac_cv_prog_cxx_cross
8855
8856       cat > conftest.$ac_ext <<EOF
8857 #line 8858 "configure"
8858 #include "confdefs.h"
8859 #include <math.h>
8860 int main() {
8861  _fmodf(0, 0);
8862 ; return 0; }
8863 EOF
8864 if { (eval echo configure:8865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8865   rm -rf conftest*
8866   glibcpp_cv_func__fmodf_use=yes
8867 else
8868   echo "configure: failed program was:" >&5
8869   cat conftest.$ac_ext >&5
8870   rm -rf conftest*
8871   glibcpp_cv_func__fmodf_use=no
8872 fi
8873 rm -f conftest*
8874       ac_ext=c
8875 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8876 ac_cpp='$CPP $CPPFLAGS'
8877 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8878 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8879 cross_compiling=$ac_cv_prog_cc_cross
8880
8881     
8882 fi
8883
8884   fi
8885   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
8886
8887     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
8888       for ac_func in _fmodf
8889 do
8890 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8891 echo "configure:8892: checking for $ac_func" >&5
8892 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8893   echo $ac_n "(cached) $ac_c" 1>&6
8894 else
8895   cat > conftest.$ac_ext <<EOF
8896 #line 8897 "configure"
8897 #include "confdefs.h"
8898 /* System header to define __stub macros and hopefully few prototypes,
8899     which can conflict with char $ac_func(); below.  */
8900 #include <assert.h>
8901 /* Override any gcc2 internal prototype to avoid an error.  */
8902 /* We use char because int might match the return type of a gcc2
8903     builtin and then its argument prototype would still apply.  */
8904 char $ac_func();
8905
8906 int main() {
8907
8908 /* The GNU C library defines this for functions which it implements
8909     to always fail with ENOSYS.  Some functions are actually named
8910     something starting with __ and the normal name is an alias.  */
8911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8912 choke me
8913 #else
8914 $ac_func();
8915 #endif
8916
8917 ; return 0; }
8918 EOF
8919 if { (eval echo configure:8920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8920   rm -rf conftest*
8921   eval "ac_cv_func_$ac_func=yes"
8922 else
8923   echo "configure: failed program was:" >&5
8924   cat conftest.$ac_ext >&5
8925   rm -rf conftest*
8926   eval "ac_cv_func_$ac_func=no"
8927 fi
8928 rm -f conftest*
8929 fi
8930
8931 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8932   echo "$ac_t""yes" 1>&6
8933     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8934   cat >> confdefs.h <<EOF
8935 #define $ac_tr_func 1
8936 EOF
8937  
8938 else
8939   echo "$ac_t""no" 1>&6
8940 fi
8941 done
8942     
8943     fi
8944   fi
8945
8946   
8947   
8948   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
8949 echo "configure:8950: checking for frexpf declaration" >&5
8950   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
8951     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
8952   echo $ac_n "(cached) $ac_c" 1>&6
8953 else
8954   
8955       
8956       ac_ext=C
8957 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8958 ac_cpp='$CXXCPP $CPPFLAGS'
8959 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8960 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8961 cross_compiling=$ac_cv_prog_cxx_cross
8962
8963       cat > conftest.$ac_ext <<EOF
8964 #line 8965 "configure"
8965 #include "confdefs.h"
8966 #include <math.h>
8967 int main() {
8968  frexpf(0, 0);
8969 ; return 0; }
8970 EOF
8971 if { (eval echo configure:8972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8972   rm -rf conftest*
8973   glibcpp_cv_func_frexpf_use=yes
8974 else
8975   echo "configure: failed program was:" >&5
8976   cat conftest.$ac_ext >&5
8977   rm -rf conftest*
8978   glibcpp_cv_func_frexpf_use=no
8979 fi
8980 rm -f conftest*
8981       ac_ext=c
8982 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8983 ac_cpp='$CPP $CPPFLAGS'
8984 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8985 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8986 cross_compiling=$ac_cv_prog_cc_cross
8987
8988     
8989 fi
8990
8991   fi
8992   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
8993
8994   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
8995     for ac_func in frexpf
8996 do
8997 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8998 echo "configure:8999: checking for $ac_func" >&5
8999 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9000   echo $ac_n "(cached) $ac_c" 1>&6
9001 else
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.  */
9011 char $ac_func();
9012
9013 int 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)
9019 choke me
9020 #else
9021 $ac_func();
9022 #endif
9023
9024 ; return 0; }
9025 EOF
9026 if { (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"
9029 else
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"
9034 fi
9035 rm -f conftest*
9036 fi
9037
9038 if 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
9043 EOF
9044  
9045 else
9046   echo "$ac_t""no" 1>&6
9047 fi
9048 done
9049     
9050   else
9051     
9052   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
9053 echo "configure:9054: checking for _frexpf declaration" >&5
9054   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
9055     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
9056   echo $ac_n "(cached) $ac_c" 1>&6
9057 else
9058   
9059       
9060       ac_ext=C
9061 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9062 ac_cpp='$CXXCPP $CPPFLAGS'
9063 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9064 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9065 cross_compiling=$ac_cv_prog_cxx_cross
9066
9067       cat > conftest.$ac_ext <<EOF
9068 #line 9069 "configure"
9069 #include "confdefs.h"
9070 #include <math.h>
9071 int main() {
9072  _frexpf(0, 0);
9073 ; return 0; }
9074 EOF
9075 if { (eval echo configure:9076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9076   rm -rf conftest*
9077   glibcpp_cv_func__frexpf_use=yes
9078 else
9079   echo "configure: failed program was:" >&5
9080   cat conftest.$ac_ext >&5
9081   rm -rf conftest*
9082   glibcpp_cv_func__frexpf_use=no
9083 fi
9084 rm -f conftest*
9085       ac_ext=c
9086 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9087 ac_cpp='$CPP $CPPFLAGS'
9088 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9089 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9090 cross_compiling=$ac_cv_prog_cc_cross
9091
9092     
9093 fi
9094
9095   fi
9096   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
9097
9098     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
9099       for ac_func in _frexpf
9100 do
9101 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9102 echo "configure:9103: checking for $ac_func" >&5
9103 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9104   echo $ac_n "(cached) $ac_c" 1>&6
9105 else
9106   cat > conftest.$ac_ext <<EOF
9107 #line 9108 "configure"
9108 #include "confdefs.h"
9109 /* System header to define __stub macros and hopefully few prototypes,
9110     which can conflict with char $ac_func(); below.  */
9111 #include <assert.h>
9112 /* Override any gcc2 internal prototype to avoid an error.  */
9113 /* We use char because int might match the return type of a gcc2
9114     builtin and then its argument prototype would still apply.  */
9115 char $ac_func();
9116
9117 int main() {
9118
9119 /* The GNU C library defines this for functions which it implements
9120     to always fail with ENOSYS.  Some functions are actually named
9121     something starting with __ and the normal name is an alias.  */
9122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9123 choke me
9124 #else
9125 $ac_func();
9126 #endif
9127
9128 ; return 0; }
9129 EOF
9130 if { (eval echo configure:9131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9131   rm -rf conftest*
9132   eval "ac_cv_func_$ac_func=yes"
9133 else
9134   echo "configure: failed program was:" >&5
9135   cat conftest.$ac_ext >&5
9136   rm -rf conftest*
9137   eval "ac_cv_func_$ac_func=no"
9138 fi
9139 rm -f conftest*
9140 fi
9141
9142 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9143   echo "$ac_t""yes" 1>&6
9144     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9145   cat >> confdefs.h <<EOF
9146 #define $ac_tr_func 1
9147 EOF
9148  
9149 else
9150   echo "$ac_t""no" 1>&6
9151 fi
9152 done
9153     
9154     fi
9155   fi
9156
9157   
9158   
9159   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
9160 echo "configure:9161: checking for ldexpf declaration" >&5
9161   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
9162     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
9163   echo $ac_n "(cached) $ac_c" 1>&6
9164 else
9165   
9166       
9167       ac_ext=C
9168 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9169 ac_cpp='$CXXCPP $CPPFLAGS'
9170 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9171 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9172 cross_compiling=$ac_cv_prog_cxx_cross
9173
9174       cat > conftest.$ac_ext <<EOF
9175 #line 9176 "configure"
9176 #include "confdefs.h"
9177 #include <math.h>
9178 int main() {
9179  ldexpf(0, 0);
9180 ; return 0; }
9181 EOF
9182 if { (eval echo configure:9183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9183   rm -rf conftest*
9184   glibcpp_cv_func_ldexpf_use=yes
9185 else
9186   echo "configure: failed program was:" >&5
9187   cat conftest.$ac_ext >&5
9188   rm -rf conftest*
9189   glibcpp_cv_func_ldexpf_use=no
9190 fi
9191 rm -f conftest*
9192       ac_ext=c
9193 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9194 ac_cpp='$CPP $CPPFLAGS'
9195 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9196 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9197 cross_compiling=$ac_cv_prog_cc_cross
9198
9199     
9200 fi
9201
9202   fi
9203   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
9204
9205   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
9206     for ac_func in ldexpf
9207 do
9208 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9209 echo "configure:9210: checking for $ac_func" >&5
9210 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9211   echo $ac_n "(cached) $ac_c" 1>&6
9212 else
9213   cat > conftest.$ac_ext <<EOF
9214 #line 9215 "configure"
9215 #include "confdefs.h"
9216 /* System header to define __stub macros and hopefully few prototypes,
9217     which can conflict with char $ac_func(); below.  */
9218 #include <assert.h>
9219 /* Override any gcc2 internal prototype to avoid an error.  */
9220 /* We use char because int might match the return type of a gcc2
9221     builtin and then its argument prototype would still apply.  */
9222 char $ac_func();
9223
9224 int main() {
9225
9226 /* The GNU C library defines this for functions which it implements
9227     to always fail with ENOSYS.  Some functions are actually named
9228     something starting with __ and the normal name is an alias.  */
9229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9230 choke me
9231 #else
9232 $ac_func();
9233 #endif
9234
9235 ; return 0; }
9236 EOF
9237 if { (eval echo configure:9238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9238   rm -rf conftest*
9239   eval "ac_cv_func_$ac_func=yes"
9240 else
9241   echo "configure: failed program was:" >&5
9242   cat conftest.$ac_ext >&5
9243   rm -rf conftest*
9244   eval "ac_cv_func_$ac_func=no"
9245 fi
9246 rm -f conftest*
9247 fi
9248
9249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9250   echo "$ac_t""yes" 1>&6
9251     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9252   cat >> confdefs.h <<EOF
9253 #define $ac_tr_func 1
9254 EOF
9255  
9256 else
9257   echo "$ac_t""no" 1>&6
9258 fi
9259 done
9260     
9261   else
9262     
9263   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
9264 echo "configure:9265: checking for _ldexpf declaration" >&5
9265   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
9266     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
9267   echo $ac_n "(cached) $ac_c" 1>&6
9268 else
9269   
9270       
9271       ac_ext=C
9272 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9273 ac_cpp='$CXXCPP $CPPFLAGS'
9274 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9275 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9276 cross_compiling=$ac_cv_prog_cxx_cross
9277
9278       cat > conftest.$ac_ext <<EOF
9279 #line 9280 "configure"
9280 #include "confdefs.h"
9281 #include <math.h>
9282 int main() {
9283  _ldexpf(0, 0);
9284 ; return 0; }
9285 EOF
9286 if { (eval echo configure:9287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9287   rm -rf conftest*
9288   glibcpp_cv_func__ldexpf_use=yes
9289 else
9290   echo "configure: failed program was:" >&5
9291   cat conftest.$ac_ext >&5
9292   rm -rf conftest*
9293   glibcpp_cv_func__ldexpf_use=no
9294 fi
9295 rm -f conftest*
9296       ac_ext=c
9297 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9298 ac_cpp='$CPP $CPPFLAGS'
9299 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9300 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9301 cross_compiling=$ac_cv_prog_cc_cross
9302
9303     
9304 fi
9305
9306   fi
9307   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
9308
9309     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
9310       for ac_func in _ldexpf
9311 do
9312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9313 echo "configure:9314: checking for $ac_func" >&5
9314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9315   echo $ac_n "(cached) $ac_c" 1>&6
9316 else
9317   cat > conftest.$ac_ext <<EOF
9318 #line 9319 "configure"
9319 #include "confdefs.h"
9320 /* System header to define __stub macros and hopefully few prototypes,
9321     which can conflict with char $ac_func(); below.  */
9322 #include <assert.h>
9323 /* Override any gcc2 internal prototype to avoid an error.  */
9324 /* We use char because int might match the return type of a gcc2
9325     builtin and then its argument prototype would still apply.  */
9326 char $ac_func();
9327
9328 int main() {
9329
9330 /* The GNU C library defines this for functions which it implements
9331     to always fail with ENOSYS.  Some functions are actually named
9332     something starting with __ and the normal name is an alias.  */
9333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9334 choke me
9335 #else
9336 $ac_func();
9337 #endif
9338
9339 ; return 0; }
9340 EOF
9341 if { (eval echo configure:9342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9342   rm -rf conftest*
9343   eval "ac_cv_func_$ac_func=yes"
9344 else
9345   echo "configure: failed program was:" >&5
9346   cat conftest.$ac_ext >&5
9347   rm -rf conftest*
9348   eval "ac_cv_func_$ac_func=no"
9349 fi
9350 rm -f conftest*
9351 fi
9352
9353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9354   echo "$ac_t""yes" 1>&6
9355     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9356   cat >> confdefs.h <<EOF
9357 #define $ac_tr_func 1
9358 EOF
9359  
9360 else
9361   echo "$ac_t""no" 1>&6
9362 fi
9363 done
9364     
9365     fi
9366   fi
9367
9368   
9369   
9370   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
9371 echo "configure:9372: checking for logf declaration" >&5
9372   if test x${glibcpp_cv_func_logf_use+set} != xset; then
9373     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
9374   echo $ac_n "(cached) $ac_c" 1>&6
9375 else
9376   
9377       
9378       ac_ext=C
9379 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9380 ac_cpp='$CXXCPP $CPPFLAGS'
9381 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9382 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9383 cross_compiling=$ac_cv_prog_cxx_cross
9384
9385       cat > conftest.$ac_ext <<EOF
9386 #line 9387 "configure"
9387 #include "confdefs.h"
9388 #include <math.h>
9389                       #ifdef HAVE_IEEEFP_H
9390                       #include <ieeefp.h>
9391                       #endif
9392                      
9393 int main() {
9394  logf(0);
9395 ; return 0; }
9396 EOF
9397 if { (eval echo configure:9398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9398   rm -rf conftest*
9399   glibcpp_cv_func_logf_use=yes
9400 else
9401   echo "configure: failed program was:" >&5
9402   cat conftest.$ac_ext >&5
9403   rm -rf conftest*
9404   glibcpp_cv_func_logf_use=no
9405 fi
9406 rm -f conftest*
9407       ac_ext=c
9408 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9409 ac_cpp='$CPP $CPPFLAGS'
9410 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9411 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9412 cross_compiling=$ac_cv_prog_cc_cross
9413
9414     
9415 fi
9416
9417   fi
9418   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
9419
9420   if test x$glibcpp_cv_func_logf_use = x"yes"; then
9421     for ac_func in logf
9422 do
9423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9424 echo "configure:9425: checking for $ac_func" >&5
9425 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9426   echo $ac_n "(cached) $ac_c" 1>&6
9427 else
9428   cat > conftest.$ac_ext <<EOF
9429 #line 9430 "configure"
9430 #include "confdefs.h"
9431 /* System header to define __stub macros and hopefully few prototypes,
9432     which can conflict with char $ac_func(); below.  */
9433 #include <assert.h>
9434 /* Override any gcc2 internal prototype to avoid an error.  */
9435 /* We use char because int might match the return type of a gcc2
9436     builtin and then its argument prototype would still apply.  */
9437 char $ac_func();
9438
9439 int main() {
9440
9441 /* The GNU C library defines this for functions which it implements
9442     to always fail with ENOSYS.  Some functions are actually named
9443     something starting with __ and the normal name is an alias.  */
9444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9445 choke me
9446 #else
9447 $ac_func();
9448 #endif
9449
9450 ; return 0; }
9451 EOF
9452 if { (eval echo configure:9453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9453   rm -rf conftest*
9454   eval "ac_cv_func_$ac_func=yes"
9455 else
9456   echo "configure: failed program was:" >&5
9457   cat conftest.$ac_ext >&5
9458   rm -rf conftest*
9459   eval "ac_cv_func_$ac_func=no"
9460 fi
9461 rm -f conftest*
9462 fi
9463
9464 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9465   echo "$ac_t""yes" 1>&6
9466     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9467   cat >> confdefs.h <<EOF
9468 #define $ac_tr_func 1
9469 EOF
9470  
9471 else
9472   echo "$ac_t""no" 1>&6
9473 fi
9474 done
9475     
9476   else
9477     
9478   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
9479 echo "configure:9480: checking for _logf declaration" >&5
9480   if test x${glibcpp_cv_func__logf_use+set} != xset; then
9481     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
9482   echo $ac_n "(cached) $ac_c" 1>&6
9483 else
9484   
9485       
9486       ac_ext=C
9487 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9488 ac_cpp='$CXXCPP $CPPFLAGS'
9489 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9490 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9491 cross_compiling=$ac_cv_prog_cxx_cross
9492
9493       cat > conftest.$ac_ext <<EOF
9494 #line 9495 "configure"
9495 #include "confdefs.h"
9496 #include <math.h>
9497                       #ifdef HAVE_IEEEFP_H
9498                       #include <ieeefp.h>
9499                       #endif
9500                      
9501 int main() {
9502  _logf(0);
9503 ; return 0; }
9504 EOF
9505 if { (eval echo configure:9506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9506   rm -rf conftest*
9507   glibcpp_cv_func__logf_use=yes
9508 else
9509   echo "configure: failed program was:" >&5
9510   cat conftest.$ac_ext >&5
9511   rm -rf conftest*
9512   glibcpp_cv_func__logf_use=no
9513 fi
9514 rm -f conftest*
9515       ac_ext=c
9516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9517 ac_cpp='$CPP $CPPFLAGS'
9518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9520 cross_compiling=$ac_cv_prog_cc_cross
9521
9522     
9523 fi
9524
9525   fi
9526   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
9527
9528     if test x$glibcpp_cv_func__logf_use = x"yes"; then
9529       for ac_func in _logf
9530 do
9531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9532 echo "configure:9533: checking for $ac_func" >&5
9533 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9534   echo $ac_n "(cached) $ac_c" 1>&6
9535 else
9536   cat > conftest.$ac_ext <<EOF
9537 #line 9538 "configure"
9538 #include "confdefs.h"
9539 /* System header to define __stub macros and hopefully few prototypes,
9540     which can conflict with char $ac_func(); below.  */
9541 #include <assert.h>
9542 /* Override any gcc2 internal prototype to avoid an error.  */
9543 /* We use char because int might match the return type of a gcc2
9544     builtin and then its argument prototype would still apply.  */
9545 char $ac_func();
9546
9547 int main() {
9548
9549 /* The GNU C library defines this for functions which it implements
9550     to always fail with ENOSYS.  Some functions are actually named
9551     something starting with __ and the normal name is an alias.  */
9552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9553 choke me
9554 #else
9555 $ac_func();
9556 #endif
9557
9558 ; return 0; }
9559 EOF
9560 if { (eval echo configure:9561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9561   rm -rf conftest*
9562   eval "ac_cv_func_$ac_func=yes"
9563 else
9564   echo "configure: failed program was:" >&5
9565   cat conftest.$ac_ext >&5
9566   rm -rf conftest*
9567   eval "ac_cv_func_$ac_func=no"
9568 fi
9569 rm -f conftest*
9570 fi
9571
9572 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9573   echo "$ac_t""yes" 1>&6
9574     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9575   cat >> confdefs.h <<EOF
9576 #define $ac_tr_func 1
9577 EOF
9578  
9579 else
9580   echo "$ac_t""no" 1>&6
9581 fi
9582 done
9583     
9584     fi
9585   fi
9586
9587   
9588   
9589   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
9590 echo "configure:9591: checking for log10f declaration" >&5
9591   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
9592     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
9593   echo $ac_n "(cached) $ac_c" 1>&6
9594 else
9595   
9596       
9597       ac_ext=C
9598 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9599 ac_cpp='$CXXCPP $CPPFLAGS'
9600 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9601 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9602 cross_compiling=$ac_cv_prog_cxx_cross
9603
9604       cat > conftest.$ac_ext <<EOF
9605 #line 9606 "configure"
9606 #include "confdefs.h"
9607 #include <math.h>
9608                       #ifdef HAVE_IEEEFP_H
9609                       #include <ieeefp.h>
9610                       #endif
9611                      
9612 int main() {
9613  log10f(0);
9614 ; return 0; }
9615 EOF
9616 if { (eval echo configure:9617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9617   rm -rf conftest*
9618   glibcpp_cv_func_log10f_use=yes
9619 else
9620   echo "configure: failed program was:" >&5
9621   cat conftest.$ac_ext >&5
9622   rm -rf conftest*
9623   glibcpp_cv_func_log10f_use=no
9624 fi
9625 rm -f conftest*
9626       ac_ext=c
9627 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9628 ac_cpp='$CPP $CPPFLAGS'
9629 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9630 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9631 cross_compiling=$ac_cv_prog_cc_cross
9632
9633     
9634 fi
9635
9636   fi
9637   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
9638
9639   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
9640     for ac_func in log10f
9641 do
9642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9643 echo "configure:9644: checking for $ac_func" >&5
9644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9645   echo $ac_n "(cached) $ac_c" 1>&6
9646 else
9647   cat > conftest.$ac_ext <<EOF
9648 #line 9649 "configure"
9649 #include "confdefs.h"
9650 /* System header to define __stub macros and hopefully few prototypes,
9651     which can conflict with char $ac_func(); below.  */
9652 #include <assert.h>
9653 /* Override any gcc2 internal prototype to avoid an error.  */
9654 /* We use char because int might match the return type of a gcc2
9655     builtin and then its argument prototype would still apply.  */
9656 char $ac_func();
9657
9658 int main() {
9659
9660 /* The GNU C library defines this for functions which it implements
9661     to always fail with ENOSYS.  Some functions are actually named
9662     something starting with __ and the normal name is an alias.  */
9663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9664 choke me
9665 #else
9666 $ac_func();
9667 #endif
9668
9669 ; return 0; }
9670 EOF
9671 if { (eval echo configure:9672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9672   rm -rf conftest*
9673   eval "ac_cv_func_$ac_func=yes"
9674 else
9675   echo "configure: failed program was:" >&5
9676   cat conftest.$ac_ext >&5
9677   rm -rf conftest*
9678   eval "ac_cv_func_$ac_func=no"
9679 fi
9680 rm -f conftest*
9681 fi
9682
9683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9684   echo "$ac_t""yes" 1>&6
9685     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9686   cat >> confdefs.h <<EOF
9687 #define $ac_tr_func 1
9688 EOF
9689  
9690 else
9691   echo "$ac_t""no" 1>&6
9692 fi
9693 done
9694     
9695   else
9696     
9697   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
9698 echo "configure:9699: checking for _log10f declaration" >&5
9699   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
9700     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
9701   echo $ac_n "(cached) $ac_c" 1>&6
9702 else
9703   
9704       
9705       ac_ext=C
9706 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9707 ac_cpp='$CXXCPP $CPPFLAGS'
9708 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9709 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9710 cross_compiling=$ac_cv_prog_cxx_cross
9711
9712       cat > conftest.$ac_ext <<EOF
9713 #line 9714 "configure"
9714 #include "confdefs.h"
9715 #include <math.h>
9716                       #ifdef HAVE_IEEEFP_H
9717                       #include <ieeefp.h>
9718                       #endif
9719                      
9720 int main() {
9721  _log10f(0);
9722 ; return 0; }
9723 EOF
9724 if { (eval echo configure:9725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9725   rm -rf conftest*
9726   glibcpp_cv_func__log10f_use=yes
9727 else
9728   echo "configure: failed program was:" >&5
9729   cat conftest.$ac_ext >&5
9730   rm -rf conftest*
9731   glibcpp_cv_func__log10f_use=no
9732 fi
9733 rm -f conftest*
9734       ac_ext=c
9735 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9736 ac_cpp='$CPP $CPPFLAGS'
9737 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9738 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9739 cross_compiling=$ac_cv_prog_cc_cross
9740
9741     
9742 fi
9743
9744   fi
9745   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
9746
9747     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
9748       for ac_func in _log10f
9749 do
9750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9751 echo "configure:9752: checking for $ac_func" >&5
9752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9753   echo $ac_n "(cached) $ac_c" 1>&6
9754 else
9755   cat > conftest.$ac_ext <<EOF
9756 #line 9757 "configure"
9757 #include "confdefs.h"
9758 /* System header to define __stub macros and hopefully few prototypes,
9759     which can conflict with char $ac_func(); below.  */
9760 #include <assert.h>
9761 /* Override any gcc2 internal prototype to avoid an error.  */
9762 /* We use char because int might match the return type of a gcc2
9763     builtin and then its argument prototype would still apply.  */
9764 char $ac_func();
9765
9766 int main() {
9767
9768 /* The GNU C library defines this for functions which it implements
9769     to always fail with ENOSYS.  Some functions are actually named
9770     something starting with __ and the normal name is an alias.  */
9771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9772 choke me
9773 #else
9774 $ac_func();
9775 #endif
9776
9777 ; return 0; }
9778 EOF
9779 if { (eval echo configure:9780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9780   rm -rf conftest*
9781   eval "ac_cv_func_$ac_func=yes"
9782 else
9783   echo "configure: failed program was:" >&5
9784   cat conftest.$ac_ext >&5
9785   rm -rf conftest*
9786   eval "ac_cv_func_$ac_func=no"
9787 fi
9788 rm -f conftest*
9789 fi
9790
9791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9792   echo "$ac_t""yes" 1>&6
9793     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9794   cat >> confdefs.h <<EOF
9795 #define $ac_tr_func 1
9796 EOF
9797  
9798 else
9799   echo "$ac_t""no" 1>&6
9800 fi
9801 done
9802     
9803     fi
9804   fi
9805
9806   
9807   
9808   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
9809 echo "configure:9810: checking for modff declaration" >&5
9810   if test x${glibcpp_cv_func_modff_use+set} != xset; then
9811     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
9812   echo $ac_n "(cached) $ac_c" 1>&6
9813 else
9814   
9815       
9816       ac_ext=C
9817 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9818 ac_cpp='$CXXCPP $CPPFLAGS'
9819 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9820 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9821 cross_compiling=$ac_cv_prog_cxx_cross
9822
9823       cat > conftest.$ac_ext <<EOF
9824 #line 9825 "configure"
9825 #include "confdefs.h"
9826 #include <math.h>
9827 int main() {
9828  modff(0, 0);
9829 ; return 0; }
9830 EOF
9831 if { (eval echo configure:9832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9832   rm -rf conftest*
9833   glibcpp_cv_func_modff_use=yes
9834 else
9835   echo "configure: failed program was:" >&5
9836   cat conftest.$ac_ext >&5
9837   rm -rf conftest*
9838   glibcpp_cv_func_modff_use=no
9839 fi
9840 rm -f conftest*
9841       ac_ext=c
9842 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9843 ac_cpp='$CPP $CPPFLAGS'
9844 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9845 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9846 cross_compiling=$ac_cv_prog_cc_cross
9847
9848     
9849 fi
9850
9851   fi
9852   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
9853
9854   if test x$glibcpp_cv_func_modff_use = x"yes"; then
9855     for ac_func in modff
9856 do
9857 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9858 echo "configure:9859: checking for $ac_func" >&5
9859 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9860   echo $ac_n "(cached) $ac_c" 1>&6
9861 else
9862   cat > conftest.$ac_ext <<EOF
9863 #line 9864 "configure"
9864 #include "confdefs.h"
9865 /* System header to define __stub macros and hopefully few prototypes,
9866     which can conflict with char $ac_func(); below.  */
9867 #include <assert.h>
9868 /* Override any gcc2 internal prototype to avoid an error.  */
9869 /* We use char because int might match the return type of a gcc2
9870     builtin and then its argument prototype would still apply.  */
9871 char $ac_func();
9872
9873 int main() {
9874
9875 /* The GNU C library defines this for functions which it implements
9876     to always fail with ENOSYS.  Some functions are actually named
9877     something starting with __ and the normal name is an alias.  */
9878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9879 choke me
9880 #else
9881 $ac_func();
9882 #endif
9883
9884 ; return 0; }
9885 EOF
9886 if { (eval echo configure:9887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9887   rm -rf conftest*
9888   eval "ac_cv_func_$ac_func=yes"
9889 else
9890   echo "configure: failed program was:" >&5
9891   cat conftest.$ac_ext >&5
9892   rm -rf conftest*
9893   eval "ac_cv_func_$ac_func=no"
9894 fi
9895 rm -f conftest*
9896 fi
9897
9898 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9899   echo "$ac_t""yes" 1>&6
9900     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9901   cat >> confdefs.h <<EOF
9902 #define $ac_tr_func 1
9903 EOF
9904  
9905 else
9906   echo "$ac_t""no" 1>&6
9907 fi
9908 done
9909     
9910   else
9911     
9912   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
9913 echo "configure:9914: checking for _modff declaration" >&5
9914   if test x${glibcpp_cv_func__modff_use+set} != xset; then
9915     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
9916   echo $ac_n "(cached) $ac_c" 1>&6
9917 else
9918   
9919       
9920       ac_ext=C
9921 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9922 ac_cpp='$CXXCPP $CPPFLAGS'
9923 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9924 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9925 cross_compiling=$ac_cv_prog_cxx_cross
9926
9927       cat > conftest.$ac_ext <<EOF
9928 #line 9929 "configure"
9929 #include "confdefs.h"
9930 #include <math.h>
9931 int main() {
9932  _modff(0, 0);
9933 ; return 0; }
9934 EOF
9935 if { (eval echo configure:9936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9936   rm -rf conftest*
9937   glibcpp_cv_func__modff_use=yes
9938 else
9939   echo "configure: failed program was:" >&5
9940   cat conftest.$ac_ext >&5
9941   rm -rf conftest*
9942   glibcpp_cv_func__modff_use=no
9943 fi
9944 rm -f conftest*
9945       ac_ext=c
9946 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9947 ac_cpp='$CPP $CPPFLAGS'
9948 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9949 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9950 cross_compiling=$ac_cv_prog_cc_cross
9951
9952     
9953 fi
9954
9955   fi
9956   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
9957
9958     if test x$glibcpp_cv_func__modff_use = x"yes"; then
9959       for ac_func in _modff
9960 do
9961 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9962 echo "configure:9963: checking for $ac_func" >&5
9963 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9964   echo $ac_n "(cached) $ac_c" 1>&6
9965 else
9966   cat > conftest.$ac_ext <<EOF
9967 #line 9968 "configure"
9968 #include "confdefs.h"
9969 /* System header to define __stub macros and hopefully few prototypes,
9970     which can conflict with char $ac_func(); below.  */
9971 #include <assert.h>
9972 /* Override any gcc2 internal prototype to avoid an error.  */
9973 /* We use char because int might match the return type of a gcc2
9974     builtin and then its argument prototype would still apply.  */
9975 char $ac_func();
9976
9977 int main() {
9978
9979 /* The GNU C library defines this for functions which it implements
9980     to always fail with ENOSYS.  Some functions are actually named
9981     something starting with __ and the normal name is an alias.  */
9982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9983 choke me
9984 #else
9985 $ac_func();
9986 #endif
9987
9988 ; return 0; }
9989 EOF
9990 if { (eval echo configure:9991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9991   rm -rf conftest*
9992   eval "ac_cv_func_$ac_func=yes"
9993 else
9994   echo "configure: failed program was:" >&5
9995   cat conftest.$ac_ext >&5
9996   rm -rf conftest*
9997   eval "ac_cv_func_$ac_func=no"
9998 fi
9999 rm -f conftest*
10000 fi
10001
10002 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10003   echo "$ac_t""yes" 1>&6
10004     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10005   cat >> confdefs.h <<EOF
10006 #define $ac_tr_func 1
10007 EOF
10008  
10009 else
10010   echo "$ac_t""no" 1>&6
10011 fi
10012 done
10013     
10014     fi
10015   fi
10016
10017   
10018   
10019   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
10020 echo "configure:10021: checking for powf declaration" >&5
10021   if test x${glibcpp_cv_func_powf_use+set} != xset; then
10022     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
10023   echo $ac_n "(cached) $ac_c" 1>&6
10024 else
10025   
10026       
10027       ac_ext=C
10028 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10029 ac_cpp='$CXXCPP $CPPFLAGS'
10030 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10031 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10032 cross_compiling=$ac_cv_prog_cxx_cross
10033
10034       cat > conftest.$ac_ext <<EOF
10035 #line 10036 "configure"
10036 #include "confdefs.h"
10037 #include <math.h>
10038 int main() {
10039  powf(0, 0);
10040 ; return 0; }
10041 EOF
10042 if { (eval echo configure:10043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10043   rm -rf conftest*
10044   glibcpp_cv_func_powf_use=yes
10045 else
10046   echo "configure: failed program was:" >&5
10047   cat conftest.$ac_ext >&5
10048   rm -rf conftest*
10049   glibcpp_cv_func_powf_use=no
10050 fi
10051 rm -f conftest*
10052       ac_ext=c
10053 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10054 ac_cpp='$CPP $CPPFLAGS'
10055 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10056 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10057 cross_compiling=$ac_cv_prog_cc_cross
10058
10059     
10060 fi
10061
10062   fi
10063   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
10064
10065   if test x$glibcpp_cv_func_powf_use = x"yes"; then
10066     for ac_func in powf
10067 do
10068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10069 echo "configure:10070: checking for $ac_func" >&5
10070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10071   echo $ac_n "(cached) $ac_c" 1>&6
10072 else
10073   cat > conftest.$ac_ext <<EOF
10074 #line 10075 "configure"
10075 #include "confdefs.h"
10076 /* System header to define __stub macros and hopefully few prototypes,
10077     which can conflict with char $ac_func(); below.  */
10078 #include <assert.h>
10079 /* Override any gcc2 internal prototype to avoid an error.  */
10080 /* We use char because int might match the return type of a gcc2
10081     builtin and then its argument prototype would still apply.  */
10082 char $ac_func();
10083
10084 int main() {
10085
10086 /* The GNU C library defines this for functions which it implements
10087     to always fail with ENOSYS.  Some functions are actually named
10088     something starting with __ and the normal name is an alias.  */
10089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10090 choke me
10091 #else
10092 $ac_func();
10093 #endif
10094
10095 ; return 0; }
10096 EOF
10097 if { (eval echo configure:10098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10098   rm -rf conftest*
10099   eval "ac_cv_func_$ac_func=yes"
10100 else
10101   echo "configure: failed program was:" >&5
10102   cat conftest.$ac_ext >&5
10103   rm -rf conftest*
10104   eval "ac_cv_func_$ac_func=no"
10105 fi
10106 rm -f conftest*
10107 fi
10108
10109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10110   echo "$ac_t""yes" 1>&6
10111     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10112   cat >> confdefs.h <<EOF
10113 #define $ac_tr_func 1
10114 EOF
10115  
10116 else
10117   echo "$ac_t""no" 1>&6
10118 fi
10119 done
10120     
10121   else
10122     
10123   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
10124 echo "configure:10125: checking for _powf declaration" >&5
10125   if test x${glibcpp_cv_func__powf_use+set} != xset; then
10126     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
10127   echo $ac_n "(cached) $ac_c" 1>&6
10128 else
10129   
10130       
10131       ac_ext=C
10132 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10133 ac_cpp='$CXXCPP $CPPFLAGS'
10134 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10135 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10136 cross_compiling=$ac_cv_prog_cxx_cross
10137
10138       cat > conftest.$ac_ext <<EOF
10139 #line 10140 "configure"
10140 #include "confdefs.h"
10141 #include <math.h>
10142 int main() {
10143  _powf(0, 0);
10144 ; return 0; }
10145 EOF
10146 if { (eval echo configure:10147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10147   rm -rf conftest*
10148   glibcpp_cv_func__powf_use=yes
10149 else
10150   echo "configure: failed program was:" >&5
10151   cat conftest.$ac_ext >&5
10152   rm -rf conftest*
10153   glibcpp_cv_func__powf_use=no
10154 fi
10155 rm -f conftest*
10156       ac_ext=c
10157 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10158 ac_cpp='$CPP $CPPFLAGS'
10159 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10160 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10161 cross_compiling=$ac_cv_prog_cc_cross
10162
10163     
10164 fi
10165
10166   fi
10167   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
10168
10169     if test x$glibcpp_cv_func__powf_use = x"yes"; then
10170       for ac_func in _powf
10171 do
10172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10173 echo "configure:10174: checking for $ac_func" >&5
10174 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10175   echo $ac_n "(cached) $ac_c" 1>&6
10176 else
10177   cat > conftest.$ac_ext <<EOF
10178 #line 10179 "configure"
10179 #include "confdefs.h"
10180 /* System header to define __stub macros and hopefully few prototypes,
10181     which can conflict with char $ac_func(); below.  */
10182 #include <assert.h>
10183 /* Override any gcc2 internal prototype to avoid an error.  */
10184 /* We use char because int might match the return type of a gcc2
10185     builtin and then its argument prototype would still apply.  */
10186 char $ac_func();
10187
10188 int main() {
10189
10190 /* The GNU C library defines this for functions which it implements
10191     to always fail with ENOSYS.  Some functions are actually named
10192     something starting with __ and the normal name is an alias.  */
10193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10194 choke me
10195 #else
10196 $ac_func();
10197 #endif
10198
10199 ; return 0; }
10200 EOF
10201 if { (eval echo configure:10202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10202   rm -rf conftest*
10203   eval "ac_cv_func_$ac_func=yes"
10204 else
10205   echo "configure: failed program was:" >&5
10206   cat conftest.$ac_ext >&5
10207   rm -rf conftest*
10208   eval "ac_cv_func_$ac_func=no"
10209 fi
10210 rm -f conftest*
10211 fi
10212
10213 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10214   echo "$ac_t""yes" 1>&6
10215     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10216   cat >> confdefs.h <<EOF
10217 #define $ac_tr_func 1
10218 EOF
10219  
10220 else
10221   echo "$ac_t""no" 1>&6
10222 fi
10223 done
10224     
10225     fi
10226   fi
10227
10228   
10229   
10230   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
10231 echo "configure:10232: checking for sqrtf declaration" >&5
10232   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
10233     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
10234   echo $ac_n "(cached) $ac_c" 1>&6
10235 else
10236   
10237       
10238       ac_ext=C
10239 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10240 ac_cpp='$CXXCPP $CPPFLAGS'
10241 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10242 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10243 cross_compiling=$ac_cv_prog_cxx_cross
10244
10245       cat > conftest.$ac_ext <<EOF
10246 #line 10247 "configure"
10247 #include "confdefs.h"
10248 #include <math.h>
10249                       #ifdef HAVE_IEEEFP_H
10250                       #include <ieeefp.h>
10251                       #endif
10252                      
10253 int main() {
10254  sqrtf(0);
10255 ; return 0; }
10256 EOF
10257 if { (eval echo configure:10258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10258   rm -rf conftest*
10259   glibcpp_cv_func_sqrtf_use=yes
10260 else
10261   echo "configure: failed program was:" >&5
10262   cat conftest.$ac_ext >&5
10263   rm -rf conftest*
10264   glibcpp_cv_func_sqrtf_use=no
10265 fi
10266 rm -f conftest*
10267       ac_ext=c
10268 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10269 ac_cpp='$CPP $CPPFLAGS'
10270 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10271 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10272 cross_compiling=$ac_cv_prog_cc_cross
10273
10274     
10275 fi
10276
10277   fi
10278   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
10279
10280   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
10281     for ac_func in sqrtf
10282 do
10283 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10284 echo "configure:10285: checking for $ac_func" >&5
10285 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10286   echo $ac_n "(cached) $ac_c" 1>&6
10287 else
10288   cat > conftest.$ac_ext <<EOF
10289 #line 10290 "configure"
10290 #include "confdefs.h"
10291 /* System header to define __stub macros and hopefully few prototypes,
10292     which can conflict with char $ac_func(); below.  */
10293 #include <assert.h>
10294 /* Override any gcc2 internal prototype to avoid an error.  */
10295 /* We use char because int might match the return type of a gcc2
10296     builtin and then its argument prototype would still apply.  */
10297 char $ac_func();
10298
10299 int main() {
10300
10301 /* The GNU C library defines this for functions which it implements
10302     to always fail with ENOSYS.  Some functions are actually named
10303     something starting with __ and the normal name is an alias.  */
10304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10305 choke me
10306 #else
10307 $ac_func();
10308 #endif
10309
10310 ; return 0; }
10311 EOF
10312 if { (eval echo configure:10313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10313   rm -rf conftest*
10314   eval "ac_cv_func_$ac_func=yes"
10315 else
10316   echo "configure: failed program was:" >&5
10317   cat conftest.$ac_ext >&5
10318   rm -rf conftest*
10319   eval "ac_cv_func_$ac_func=no"
10320 fi
10321 rm -f conftest*
10322 fi
10323
10324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10325   echo "$ac_t""yes" 1>&6
10326     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10327   cat >> confdefs.h <<EOF
10328 #define $ac_tr_func 1
10329 EOF
10330  
10331 else
10332   echo "$ac_t""no" 1>&6
10333 fi
10334 done
10335     
10336   else
10337     
10338   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
10339 echo "configure:10340: checking for _sqrtf declaration" >&5
10340   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
10341     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
10342   echo $ac_n "(cached) $ac_c" 1>&6
10343 else
10344   
10345       
10346       ac_ext=C
10347 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10348 ac_cpp='$CXXCPP $CPPFLAGS'
10349 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10350 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10351 cross_compiling=$ac_cv_prog_cxx_cross
10352
10353       cat > conftest.$ac_ext <<EOF
10354 #line 10355 "configure"
10355 #include "confdefs.h"
10356 #include <math.h>
10357                       #ifdef HAVE_IEEEFP_H
10358                       #include <ieeefp.h>
10359                       #endif
10360                      
10361 int main() {
10362  _sqrtf(0);
10363 ; return 0; }
10364 EOF
10365 if { (eval echo configure:10366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10366   rm -rf conftest*
10367   glibcpp_cv_func__sqrtf_use=yes
10368 else
10369   echo "configure: failed program was:" >&5
10370   cat conftest.$ac_ext >&5
10371   rm -rf conftest*
10372   glibcpp_cv_func__sqrtf_use=no
10373 fi
10374 rm -f conftest*
10375       ac_ext=c
10376 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10377 ac_cpp='$CPP $CPPFLAGS'
10378 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10379 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10380 cross_compiling=$ac_cv_prog_cc_cross
10381
10382     
10383 fi
10384
10385   fi
10386   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
10387
10388     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
10389       for ac_func in _sqrtf
10390 do
10391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10392 echo "configure:10393: checking for $ac_func" >&5
10393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10394   echo $ac_n "(cached) $ac_c" 1>&6
10395 else
10396   cat > conftest.$ac_ext <<EOF
10397 #line 10398 "configure"
10398 #include "confdefs.h"
10399 /* System header to define __stub macros and hopefully few prototypes,
10400     which can conflict with char $ac_func(); below.  */
10401 #include <assert.h>
10402 /* Override any gcc2 internal prototype to avoid an error.  */
10403 /* We use char because int might match the return type of a gcc2
10404     builtin and then its argument prototype would still apply.  */
10405 char $ac_func();
10406
10407 int main() {
10408
10409 /* The GNU C library defines this for functions which it implements
10410     to always fail with ENOSYS.  Some functions are actually named
10411     something starting with __ and the normal name is an alias.  */
10412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10413 choke me
10414 #else
10415 $ac_func();
10416 #endif
10417
10418 ; return 0; }
10419 EOF
10420 if { (eval echo configure:10421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10421   rm -rf conftest*
10422   eval "ac_cv_func_$ac_func=yes"
10423 else
10424   echo "configure: failed program was:" >&5
10425   cat conftest.$ac_ext >&5
10426   rm -rf conftest*
10427   eval "ac_cv_func_$ac_func=no"
10428 fi
10429 rm -f conftest*
10430 fi
10431
10432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10433   echo "$ac_t""yes" 1>&6
10434     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10435   cat >> confdefs.h <<EOF
10436 #define $ac_tr_func 1
10437 EOF
10438  
10439 else
10440   echo "$ac_t""no" 1>&6
10441 fi
10442 done
10443     
10444     fi
10445   fi
10446
10447   
10448   
10449   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
10450 echo "configure:10451: checking for sincosf declaration" >&5
10451   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
10452     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
10453   echo $ac_n "(cached) $ac_c" 1>&6
10454 else
10455   
10456       
10457       ac_ext=C
10458 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10459 ac_cpp='$CXXCPP $CPPFLAGS'
10460 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10461 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10462 cross_compiling=$ac_cv_prog_cxx_cross
10463
10464       cat > conftest.$ac_ext <<EOF
10465 #line 10466 "configure"
10466 #include "confdefs.h"
10467 #include <math.h>
10468 int main() {
10469  sincosf(0, 0, 0);
10470 ; return 0; }
10471 EOF
10472 if { (eval echo configure:10473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10473   rm -rf conftest*
10474   glibcpp_cv_func_sincosf_use=yes
10475 else
10476   echo "configure: failed program was:" >&5
10477   cat conftest.$ac_ext >&5
10478   rm -rf conftest*
10479   glibcpp_cv_func_sincosf_use=no
10480 fi
10481 rm -f conftest*
10482       ac_ext=c
10483 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10484 ac_cpp='$CPP $CPPFLAGS'
10485 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10486 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10487 cross_compiling=$ac_cv_prog_cc_cross
10488
10489     
10490 fi
10491
10492   fi
10493   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
10494
10495   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
10496     for ac_func in sincosf
10497 do
10498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10499 echo "configure:10500: checking for $ac_func" >&5
10500 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10501   echo $ac_n "(cached) $ac_c" 1>&6
10502 else
10503   cat > conftest.$ac_ext <<EOF
10504 #line 10505 "configure"
10505 #include "confdefs.h"
10506 /* System header to define __stub macros and hopefully few prototypes,
10507     which can conflict with char $ac_func(); below.  */
10508 #include <assert.h>
10509 /* Override any gcc2 internal prototype to avoid an error.  */
10510 /* We use char because int might match the return type of a gcc2
10511     builtin and then its argument prototype would still apply.  */
10512 char $ac_func();
10513
10514 int main() {
10515
10516 /* The GNU C library defines this for functions which it implements
10517     to always fail with ENOSYS.  Some functions are actually named
10518     something starting with __ and the normal name is an alias.  */
10519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10520 choke me
10521 #else
10522 $ac_func();
10523 #endif
10524
10525 ; return 0; }
10526 EOF
10527 if { (eval echo configure:10528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10528   rm -rf conftest*
10529   eval "ac_cv_func_$ac_func=yes"
10530 else
10531   echo "configure: failed program was:" >&5
10532   cat conftest.$ac_ext >&5
10533   rm -rf conftest*
10534   eval "ac_cv_func_$ac_func=no"
10535 fi
10536 rm -f conftest*
10537 fi
10538
10539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10540   echo "$ac_t""yes" 1>&6
10541     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10542   cat >> confdefs.h <<EOF
10543 #define $ac_tr_func 1
10544 EOF
10545  
10546 else
10547   echo "$ac_t""no" 1>&6
10548 fi
10549 done
10550     
10551   else
10552     
10553   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
10554 echo "configure:10555: checking for _sincosf declaration" >&5
10555   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
10556     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
10557   echo $ac_n "(cached) $ac_c" 1>&6
10558 else
10559   
10560       
10561       ac_ext=C
10562 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10563 ac_cpp='$CXXCPP $CPPFLAGS'
10564 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10565 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10566 cross_compiling=$ac_cv_prog_cxx_cross
10567
10568       cat > conftest.$ac_ext <<EOF
10569 #line 10570 "configure"
10570 #include "confdefs.h"
10571 #include <math.h>
10572 int main() {
10573  _sincosf(0, 0, 0);
10574 ; return 0; }
10575 EOF
10576 if { (eval echo configure:10577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10577   rm -rf conftest*
10578   glibcpp_cv_func__sincosf_use=yes
10579 else
10580   echo "configure: failed program was:" >&5
10581   cat conftest.$ac_ext >&5
10582   rm -rf conftest*
10583   glibcpp_cv_func__sincosf_use=no
10584 fi
10585 rm -f conftest*
10586       ac_ext=c
10587 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10588 ac_cpp='$CPP $CPPFLAGS'
10589 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10590 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10591 cross_compiling=$ac_cv_prog_cc_cross
10592
10593     
10594 fi
10595
10596   fi
10597   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
10598
10599     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
10600       for ac_func in _sincosf
10601 do
10602 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10603 echo "configure:10604: checking for $ac_func" >&5
10604 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10605   echo $ac_n "(cached) $ac_c" 1>&6
10606 else
10607   cat > conftest.$ac_ext <<EOF
10608 #line 10609 "configure"
10609 #include "confdefs.h"
10610 /* System header to define __stub macros and hopefully few prototypes,
10611     which can conflict with char $ac_func(); below.  */
10612 #include <assert.h>
10613 /* Override any gcc2 internal prototype to avoid an error.  */
10614 /* We use char because int might match the return type of a gcc2
10615     builtin and then its argument prototype would still apply.  */
10616 char $ac_func();
10617
10618 int main() {
10619
10620 /* The GNU C library defines this for functions which it implements
10621     to always fail with ENOSYS.  Some functions are actually named
10622     something starting with __ and the normal name is an alias.  */
10623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10624 choke me
10625 #else
10626 $ac_func();
10627 #endif
10628
10629 ; return 0; }
10630 EOF
10631 if { (eval echo configure:10632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10632   rm -rf conftest*
10633   eval "ac_cv_func_$ac_func=yes"
10634 else
10635   echo "configure: failed program was:" >&5
10636   cat conftest.$ac_ext >&5
10637   rm -rf conftest*
10638   eval "ac_cv_func_$ac_func=no"
10639 fi
10640 rm -f conftest*
10641 fi
10642
10643 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10644   echo "$ac_t""yes" 1>&6
10645     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10646   cat >> confdefs.h <<EOF
10647 #define $ac_tr_func 1
10648 EOF
10649  
10650 else
10651   echo "$ac_t""no" 1>&6
10652 fi
10653 done
10654     
10655     fi
10656   fi
10657
10658   
10659   
10660   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
10661 echo "configure:10662: checking for finitef declaration" >&5
10662   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
10663     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
10664   echo $ac_n "(cached) $ac_c" 1>&6
10665 else
10666   
10667       
10668       ac_ext=C
10669 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10670 ac_cpp='$CXXCPP $CPPFLAGS'
10671 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10672 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10673 cross_compiling=$ac_cv_prog_cxx_cross
10674
10675       cat > conftest.$ac_ext <<EOF
10676 #line 10677 "configure"
10677 #include "confdefs.h"
10678 #include <math.h>
10679                       #ifdef HAVE_IEEEFP_H
10680                       #include <ieeefp.h>
10681                       #endif
10682                      
10683 int main() {
10684  finitef(0);
10685 ; return 0; }
10686 EOF
10687 if { (eval echo configure:10688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10688   rm -rf conftest*
10689   glibcpp_cv_func_finitef_use=yes
10690 else
10691   echo "configure: failed program was:" >&5
10692   cat conftest.$ac_ext >&5
10693   rm -rf conftest*
10694   glibcpp_cv_func_finitef_use=no
10695 fi
10696 rm -f conftest*
10697       ac_ext=c
10698 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10699 ac_cpp='$CPP $CPPFLAGS'
10700 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10701 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10702 cross_compiling=$ac_cv_prog_cc_cross
10703
10704     
10705 fi
10706
10707   fi
10708   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
10709
10710   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
10711     for ac_func in finitef
10712 do
10713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10714 echo "configure:10715: checking for $ac_func" >&5
10715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10716   echo $ac_n "(cached) $ac_c" 1>&6
10717 else
10718   cat > conftest.$ac_ext <<EOF
10719 #line 10720 "configure"
10720 #include "confdefs.h"
10721 /* System header to define __stub macros and hopefully few prototypes,
10722     which can conflict with char $ac_func(); below.  */
10723 #include <assert.h>
10724 /* Override any gcc2 internal prototype to avoid an error.  */
10725 /* We use char because int might match the return type of a gcc2
10726     builtin and then its argument prototype would still apply.  */
10727 char $ac_func();
10728
10729 int main() {
10730
10731 /* The GNU C library defines this for functions which it implements
10732     to always fail with ENOSYS.  Some functions are actually named
10733     something starting with __ and the normal name is an alias.  */
10734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10735 choke me
10736 #else
10737 $ac_func();
10738 #endif
10739
10740 ; return 0; }
10741 EOF
10742 if { (eval echo configure:10743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10743   rm -rf conftest*
10744   eval "ac_cv_func_$ac_func=yes"
10745 else
10746   echo "configure: failed program was:" >&5
10747   cat conftest.$ac_ext >&5
10748   rm -rf conftest*
10749   eval "ac_cv_func_$ac_func=no"
10750 fi
10751 rm -f conftest*
10752 fi
10753
10754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10755   echo "$ac_t""yes" 1>&6
10756     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10757   cat >> confdefs.h <<EOF
10758 #define $ac_tr_func 1
10759 EOF
10760  
10761 else
10762   echo "$ac_t""no" 1>&6
10763 fi
10764 done
10765     
10766   else
10767     
10768   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
10769 echo "configure:10770: checking for _finitef declaration" >&5
10770   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
10771     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
10772   echo $ac_n "(cached) $ac_c" 1>&6
10773 else
10774   
10775       
10776       ac_ext=C
10777 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10778 ac_cpp='$CXXCPP $CPPFLAGS'
10779 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10780 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10781 cross_compiling=$ac_cv_prog_cxx_cross
10782
10783       cat > conftest.$ac_ext <<EOF
10784 #line 10785 "configure"
10785 #include "confdefs.h"
10786 #include <math.h>
10787                       #ifdef HAVE_IEEEFP_H
10788                       #include <ieeefp.h>
10789                       #endif
10790                      
10791 int main() {
10792  _finitef(0);
10793 ; return 0; }
10794 EOF
10795 if { (eval echo configure:10796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10796   rm -rf conftest*
10797   glibcpp_cv_func__finitef_use=yes
10798 else
10799   echo "configure: failed program was:" >&5
10800   cat conftest.$ac_ext >&5
10801   rm -rf conftest*
10802   glibcpp_cv_func__finitef_use=no
10803 fi
10804 rm -f conftest*
10805       ac_ext=c
10806 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10807 ac_cpp='$CPP $CPPFLAGS'
10808 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10809 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10810 cross_compiling=$ac_cv_prog_cc_cross
10811
10812     
10813 fi
10814
10815   fi
10816   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
10817
10818     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
10819       for ac_func in _finitef
10820 do
10821 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10822 echo "configure:10823: checking for $ac_func" >&5
10823 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10824   echo $ac_n "(cached) $ac_c" 1>&6
10825 else
10826   cat > conftest.$ac_ext <<EOF
10827 #line 10828 "configure"
10828 #include "confdefs.h"
10829 /* System header to define __stub macros and hopefully few prototypes,
10830     which can conflict with char $ac_func(); below.  */
10831 #include <assert.h>
10832 /* Override any gcc2 internal prototype to avoid an error.  */
10833 /* We use char because int might match the return type of a gcc2
10834     builtin and then its argument prototype would still apply.  */
10835 char $ac_func();
10836
10837 int main() {
10838
10839 /* The GNU C library defines this for functions which it implements
10840     to always fail with ENOSYS.  Some functions are actually named
10841     something starting with __ and the normal name is an alias.  */
10842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10843 choke me
10844 #else
10845 $ac_func();
10846 #endif
10847
10848 ; return 0; }
10849 EOF
10850 if { (eval echo configure:10851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10851   rm -rf conftest*
10852   eval "ac_cv_func_$ac_func=yes"
10853 else
10854   echo "configure: failed program was:" >&5
10855   cat conftest.$ac_ext >&5
10856   rm -rf conftest*
10857   eval "ac_cv_func_$ac_func=no"
10858 fi
10859 rm -f conftest*
10860 fi
10861
10862 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10863   echo "$ac_t""yes" 1>&6
10864     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10865   cat >> confdefs.h <<EOF
10866 #define $ac_tr_func 1
10867 EOF
10868  
10869 else
10870   echo "$ac_t""no" 1>&6
10871 fi
10872 done
10873     
10874     fi
10875   fi
10876
10877
10878     
10879   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
10880 echo "configure:10881: checking for long double trig functions" >&5
10881   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
10882   echo $ac_n "(cached) $ac_c" 1>&6
10883 else
10884   
10885     
10886     ac_ext=C
10887 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10888 ac_cpp='$CXXCPP $CPPFLAGS'
10889 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10890 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10891 cross_compiling=$ac_cv_prog_cxx_cross
10892
10893     cat > conftest.$ac_ext <<EOF
10894 #line 10895 "configure"
10895 #include "confdefs.h"
10896 #include <math.h>
10897 int main() {
10898  `for x in acosl asinl atanl \
10899                                           cosl sinl tanl \
10900                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
10901 ; return 0; }
10902 EOF
10903 if { (eval echo configure:10904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10904   rm -rf conftest*
10905   glibcpp_cv_func_long_double_trig_use=yes
10906 else
10907   echo "configure: failed program was:" >&5
10908   cat conftest.$ac_ext >&5
10909   rm -rf conftest*
10910   glibcpp_cv_func_long_double_trig_use=no
10911 fi
10912 rm -f conftest*
10913     ac_ext=c
10914 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10915 ac_cpp='$CPP $CPPFLAGS'
10916 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10917 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10918 cross_compiling=$ac_cv_prog_cc_cross
10919
10920 fi
10921
10922   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
10923   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
10924     for ac_func in acosl asinl atanl \
10925                                           cosl sinl tanl \
10926                                           coshl sinhl tanhl
10927 do
10928 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10929 echo "configure:10930: checking for $ac_func" >&5
10930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10931   echo $ac_n "(cached) $ac_c" 1>&6
10932 else
10933   cat > conftest.$ac_ext <<EOF
10934 #line 10935 "configure"
10935 #include "confdefs.h"
10936 /* System header to define __stub macros and hopefully few prototypes,
10937     which can conflict with char $ac_func(); below.  */
10938 #include <assert.h>
10939 /* Override any gcc2 internal prototype to avoid an error.  */
10940 /* We use char because int might match the return type of a gcc2
10941     builtin and then its argument prototype would still apply.  */
10942 char $ac_func();
10943
10944 int main() {
10945
10946 /* The GNU C library defines this for functions which it implements
10947     to always fail with ENOSYS.  Some functions are actually named
10948     something starting with __ and the normal name is an alias.  */
10949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10950 choke me
10951 #else
10952 $ac_func();
10953 #endif
10954
10955 ; return 0; }
10956 EOF
10957 if { (eval echo configure:10958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10958   rm -rf conftest*
10959   eval "ac_cv_func_$ac_func=yes"
10960 else
10961   echo "configure: failed program was:" >&5
10962   cat conftest.$ac_ext >&5
10963   rm -rf conftest*
10964   eval "ac_cv_func_$ac_func=no"
10965 fi
10966 rm -f conftest*
10967 fi
10968
10969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10970   echo "$ac_t""yes" 1>&6
10971     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10972   cat >> confdefs.h <<EOF
10973 #define $ac_tr_func 1
10974 EOF
10975  
10976 else
10977   echo "$ac_t""no" 1>&6
10978 fi
10979 done
10980
10981   fi
10982
10983   
10984   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
10985 echo "configure:10986: checking for long double round functions" >&5
10986   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
10987   echo $ac_n "(cached) $ac_c" 1>&6
10988 else
10989   
10990     
10991     ac_ext=C
10992 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10993 ac_cpp='$CXXCPP $CPPFLAGS'
10994 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10995 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10996 cross_compiling=$ac_cv_prog_cxx_cross
10997
10998     cat > conftest.$ac_ext <<EOF
10999 #line 11000 "configure"
11000 #include "confdefs.h"
11001 #include <math.h>
11002 int main() {
11003  `for x in ceill floorl; do echo "$x (0);"; done` 
11004 ; return 0; }
11005 EOF
11006 if { (eval echo configure:11007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11007   rm -rf conftest*
11008   glibcpp_cv_func_long_double_round_use=yes
11009 else
11010   echo "configure: failed program was:" >&5
11011   cat conftest.$ac_ext >&5
11012   rm -rf conftest*
11013   glibcpp_cv_func_long_double_round_use=no
11014 fi
11015 rm -f conftest*
11016     ac_ext=c
11017 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11018 ac_cpp='$CPP $CPPFLAGS'
11019 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11020 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11021 cross_compiling=$ac_cv_prog_cc_cross
11022
11023 fi
11024
11025   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
11026   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
11027     for ac_func in ceill floorl
11028 do
11029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11030 echo "configure:11031: checking for $ac_func" >&5
11031 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11032   echo $ac_n "(cached) $ac_c" 1>&6
11033 else
11034   cat > conftest.$ac_ext <<EOF
11035 #line 11036 "configure"
11036 #include "confdefs.h"
11037 /* System header to define __stub macros and hopefully few prototypes,
11038     which can conflict with char $ac_func(); below.  */
11039 #include <assert.h>
11040 /* Override any gcc2 internal prototype to avoid an error.  */
11041 /* We use char because int might match the return type of a gcc2
11042     builtin and then its argument prototype would still apply.  */
11043 char $ac_func();
11044
11045 int main() {
11046
11047 /* The GNU C library defines this for functions which it implements
11048     to always fail with ENOSYS.  Some functions are actually named
11049     something starting with __ and the normal name is an alias.  */
11050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11051 choke me
11052 #else
11053 $ac_func();
11054 #endif
11055
11056 ; return 0; }
11057 EOF
11058 if { (eval echo configure:11059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11059   rm -rf conftest*
11060   eval "ac_cv_func_$ac_func=yes"
11061 else
11062   echo "configure: failed program was:" >&5
11063   cat conftest.$ac_ext >&5
11064   rm -rf conftest*
11065   eval "ac_cv_func_$ac_func=no"
11066 fi
11067 rm -f conftest*
11068 fi
11069
11070 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11071   echo "$ac_t""yes" 1>&6
11072     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11073   cat >> confdefs.h <<EOF
11074 #define $ac_tr_func 1
11075 EOF
11076  
11077 else
11078   echo "$ac_t""no" 1>&6
11079 fi
11080 done
11081
11082   fi
11083
11084   
11085   
11086   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
11087 echo "configure:11088: checking for isnanl declaration" >&5
11088   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
11089     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
11090   echo $ac_n "(cached) $ac_c" 1>&6
11091 else
11092   
11093       
11094       ac_ext=C
11095 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11096 ac_cpp='$CXXCPP $CPPFLAGS'
11097 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11098 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11099 cross_compiling=$ac_cv_prog_cxx_cross
11100
11101       cat > conftest.$ac_ext <<EOF
11102 #line 11103 "configure"
11103 #include "confdefs.h"
11104 #include <math.h>
11105                       #ifdef HAVE_IEEEFP_H
11106                       #include <ieeefp.h>
11107                       #endif
11108                      
11109 int main() {
11110  isnanl(0);
11111 ; return 0; }
11112 EOF
11113 if { (eval echo configure:11114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11114   rm -rf conftest*
11115   glibcpp_cv_func_isnanl_use=yes
11116 else
11117   echo "configure: failed program was:" >&5
11118   cat conftest.$ac_ext >&5
11119   rm -rf conftest*
11120   glibcpp_cv_func_isnanl_use=no
11121 fi
11122 rm -f conftest*
11123       ac_ext=c
11124 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11125 ac_cpp='$CPP $CPPFLAGS'
11126 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11127 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11128 cross_compiling=$ac_cv_prog_cc_cross
11129
11130     
11131 fi
11132
11133   fi
11134   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
11135
11136   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
11137     for ac_func in isnanl
11138 do
11139 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11140 echo "configure:11141: checking for $ac_func" >&5
11141 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11142   echo $ac_n "(cached) $ac_c" 1>&6
11143 else
11144   cat > conftest.$ac_ext <<EOF
11145 #line 11146 "configure"
11146 #include "confdefs.h"
11147 /* System header to define __stub macros and hopefully few prototypes,
11148     which can conflict with char $ac_func(); below.  */
11149 #include <assert.h>
11150 /* Override any gcc2 internal prototype to avoid an error.  */
11151 /* We use char because int might match the return type of a gcc2
11152     builtin and then its argument prototype would still apply.  */
11153 char $ac_func();
11154
11155 int main() {
11156
11157 /* The GNU C library defines this for functions which it implements
11158     to always fail with ENOSYS.  Some functions are actually named
11159     something starting with __ and the normal name is an alias.  */
11160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11161 choke me
11162 #else
11163 $ac_func();
11164 #endif
11165
11166 ; return 0; }
11167 EOF
11168 if { (eval echo configure:11169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11169   rm -rf conftest*
11170   eval "ac_cv_func_$ac_func=yes"
11171 else
11172   echo "configure: failed program was:" >&5
11173   cat conftest.$ac_ext >&5
11174   rm -rf conftest*
11175   eval "ac_cv_func_$ac_func=no"
11176 fi
11177 rm -f conftest*
11178 fi
11179
11180 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11181   echo "$ac_t""yes" 1>&6
11182     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11183   cat >> confdefs.h <<EOF
11184 #define $ac_tr_func 1
11185 EOF
11186  
11187 else
11188   echo "$ac_t""no" 1>&6
11189 fi
11190 done
11191     
11192   else
11193     
11194   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
11195 echo "configure:11196: checking for _isnanl declaration" >&5
11196   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
11197     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
11198   echo $ac_n "(cached) $ac_c" 1>&6
11199 else
11200   
11201       
11202       ac_ext=C
11203 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11204 ac_cpp='$CXXCPP $CPPFLAGS'
11205 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11206 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11207 cross_compiling=$ac_cv_prog_cxx_cross
11208
11209       cat > conftest.$ac_ext <<EOF
11210 #line 11211 "configure"
11211 #include "confdefs.h"
11212 #include <math.h>
11213                       #ifdef HAVE_IEEEFP_H
11214                       #include <ieeefp.h>
11215                       #endif
11216                      
11217 int main() {
11218  _isnanl(0);
11219 ; return 0; }
11220 EOF
11221 if { (eval echo configure:11222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11222   rm -rf conftest*
11223   glibcpp_cv_func__isnanl_use=yes
11224 else
11225   echo "configure: failed program was:" >&5
11226   cat conftest.$ac_ext >&5
11227   rm -rf conftest*
11228   glibcpp_cv_func__isnanl_use=no
11229 fi
11230 rm -f conftest*
11231       ac_ext=c
11232 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11233 ac_cpp='$CPP $CPPFLAGS'
11234 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11235 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11236 cross_compiling=$ac_cv_prog_cc_cross
11237
11238     
11239 fi
11240
11241   fi
11242   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
11243
11244     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
11245       for ac_func in _isnanl
11246 do
11247 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11248 echo "configure:11249: checking for $ac_func" >&5
11249 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11250   echo $ac_n "(cached) $ac_c" 1>&6
11251 else
11252   cat > conftest.$ac_ext <<EOF
11253 #line 11254 "configure"
11254 #include "confdefs.h"
11255 /* System header to define __stub macros and hopefully few prototypes,
11256     which can conflict with char $ac_func(); below.  */
11257 #include <assert.h>
11258 /* Override any gcc2 internal prototype to avoid an error.  */
11259 /* We use char because int might match the return type of a gcc2
11260     builtin and then its argument prototype would still apply.  */
11261 char $ac_func();
11262
11263 int main() {
11264
11265 /* The GNU C library defines this for functions which it implements
11266     to always fail with ENOSYS.  Some functions are actually named
11267     something starting with __ and the normal name is an alias.  */
11268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11269 choke me
11270 #else
11271 $ac_func();
11272 #endif
11273
11274 ; return 0; }
11275 EOF
11276 if { (eval echo configure:11277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11277   rm -rf conftest*
11278   eval "ac_cv_func_$ac_func=yes"
11279 else
11280   echo "configure: failed program was:" >&5
11281   cat conftest.$ac_ext >&5
11282   rm -rf conftest*
11283   eval "ac_cv_func_$ac_func=no"
11284 fi
11285 rm -f conftest*
11286 fi
11287
11288 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11289   echo "$ac_t""yes" 1>&6
11290     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11291   cat >> confdefs.h <<EOF
11292 #define $ac_tr_func 1
11293 EOF
11294  
11295 else
11296   echo "$ac_t""no" 1>&6
11297 fi
11298 done
11299     
11300     fi
11301   fi
11302
11303   
11304   
11305   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
11306 echo "configure:11307: checking for isinfl declaration" >&5
11307   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
11308     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
11309   echo $ac_n "(cached) $ac_c" 1>&6
11310 else
11311   
11312       
11313       ac_ext=C
11314 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11315 ac_cpp='$CXXCPP $CPPFLAGS'
11316 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11317 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11318 cross_compiling=$ac_cv_prog_cxx_cross
11319
11320       cat > conftest.$ac_ext <<EOF
11321 #line 11322 "configure"
11322 #include "confdefs.h"
11323 #include <math.h>
11324                       #ifdef HAVE_IEEEFP_H
11325                       #include <ieeefp.h>
11326                       #endif
11327                      
11328 int main() {
11329  isinfl(0);
11330 ; return 0; }
11331 EOF
11332 if { (eval echo configure:11333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11333   rm -rf conftest*
11334   glibcpp_cv_func_isinfl_use=yes
11335 else
11336   echo "configure: failed program was:" >&5
11337   cat conftest.$ac_ext >&5
11338   rm -rf conftest*
11339   glibcpp_cv_func_isinfl_use=no
11340 fi
11341 rm -f conftest*
11342       ac_ext=c
11343 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11344 ac_cpp='$CPP $CPPFLAGS'
11345 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11346 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11347 cross_compiling=$ac_cv_prog_cc_cross
11348
11349     
11350 fi
11351
11352   fi
11353   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
11354
11355   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
11356     for ac_func in isinfl
11357 do
11358 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11359 echo "configure:11360: checking for $ac_func" >&5
11360 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11361   echo $ac_n "(cached) $ac_c" 1>&6
11362 else
11363   cat > conftest.$ac_ext <<EOF
11364 #line 11365 "configure"
11365 #include "confdefs.h"
11366 /* System header to define __stub macros and hopefully few prototypes,
11367     which can conflict with char $ac_func(); below.  */
11368 #include <assert.h>
11369 /* Override any gcc2 internal prototype to avoid an error.  */
11370 /* We use char because int might match the return type of a gcc2
11371     builtin and then its argument prototype would still apply.  */
11372 char $ac_func();
11373
11374 int main() {
11375
11376 /* The GNU C library defines this for functions which it implements
11377     to always fail with ENOSYS.  Some functions are actually named
11378     something starting with __ and the normal name is an alias.  */
11379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11380 choke me
11381 #else
11382 $ac_func();
11383 #endif
11384
11385 ; return 0; }
11386 EOF
11387 if { (eval echo configure:11388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11388   rm -rf conftest*
11389   eval "ac_cv_func_$ac_func=yes"
11390 else
11391   echo "configure: failed program was:" >&5
11392   cat conftest.$ac_ext >&5
11393   rm -rf conftest*
11394   eval "ac_cv_func_$ac_func=no"
11395 fi
11396 rm -f conftest*
11397 fi
11398
11399 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11400   echo "$ac_t""yes" 1>&6
11401     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11402   cat >> confdefs.h <<EOF
11403 #define $ac_tr_func 1
11404 EOF
11405  
11406 else
11407   echo "$ac_t""no" 1>&6
11408 fi
11409 done
11410     
11411   else
11412     
11413   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
11414 echo "configure:11415: checking for _isinfl declaration" >&5
11415   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
11416     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
11417   echo $ac_n "(cached) $ac_c" 1>&6
11418 else
11419   
11420       
11421       ac_ext=C
11422 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11423 ac_cpp='$CXXCPP $CPPFLAGS'
11424 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11425 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11426 cross_compiling=$ac_cv_prog_cxx_cross
11427
11428       cat > conftest.$ac_ext <<EOF
11429 #line 11430 "configure"
11430 #include "confdefs.h"
11431 #include <math.h>
11432                       #ifdef HAVE_IEEEFP_H
11433                       #include <ieeefp.h>
11434                       #endif
11435                      
11436 int main() {
11437  _isinfl(0);
11438 ; return 0; }
11439 EOF
11440 if { (eval echo configure:11441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11441   rm -rf conftest*
11442   glibcpp_cv_func__isinfl_use=yes
11443 else
11444   echo "configure: failed program was:" >&5
11445   cat conftest.$ac_ext >&5
11446   rm -rf conftest*
11447   glibcpp_cv_func__isinfl_use=no
11448 fi
11449 rm -f conftest*
11450       ac_ext=c
11451 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11452 ac_cpp='$CPP $CPPFLAGS'
11453 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11454 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11455 cross_compiling=$ac_cv_prog_cc_cross
11456
11457     
11458 fi
11459
11460   fi
11461   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
11462
11463     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
11464       for ac_func in _isinfl
11465 do
11466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11467 echo "configure:11468: checking for $ac_func" >&5
11468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11469   echo $ac_n "(cached) $ac_c" 1>&6
11470 else
11471   cat > conftest.$ac_ext <<EOF
11472 #line 11473 "configure"
11473 #include "confdefs.h"
11474 /* System header to define __stub macros and hopefully few prototypes,
11475     which can conflict with char $ac_func(); below.  */
11476 #include <assert.h>
11477 /* Override any gcc2 internal prototype to avoid an error.  */
11478 /* We use char because int might match the return type of a gcc2
11479     builtin and then its argument prototype would still apply.  */
11480 char $ac_func();
11481
11482 int main() {
11483
11484 /* The GNU C library defines this for functions which it implements
11485     to always fail with ENOSYS.  Some functions are actually named
11486     something starting with __ and the normal name is an alias.  */
11487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11488 choke me
11489 #else
11490 $ac_func();
11491 #endif
11492
11493 ; return 0; }
11494 EOF
11495 if { (eval echo configure:11496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11496   rm -rf conftest*
11497   eval "ac_cv_func_$ac_func=yes"
11498 else
11499   echo "configure: failed program was:" >&5
11500   cat conftest.$ac_ext >&5
11501   rm -rf conftest*
11502   eval "ac_cv_func_$ac_func=no"
11503 fi
11504 rm -f conftest*
11505 fi
11506
11507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11508   echo "$ac_t""yes" 1>&6
11509     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11510   cat >> confdefs.h <<EOF
11511 #define $ac_tr_func 1
11512 EOF
11513  
11514 else
11515   echo "$ac_t""no" 1>&6
11516 fi
11517 done
11518     
11519     fi
11520   fi
11521
11522   
11523   
11524   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
11525 echo "configure:11526: checking for copysignl declaration" >&5
11526   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
11527     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
11528   echo $ac_n "(cached) $ac_c" 1>&6
11529 else
11530   
11531       
11532       ac_ext=C
11533 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11534 ac_cpp='$CXXCPP $CPPFLAGS'
11535 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11536 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11537 cross_compiling=$ac_cv_prog_cxx_cross
11538
11539       cat > conftest.$ac_ext <<EOF
11540 #line 11541 "configure"
11541 #include "confdefs.h"
11542 #include <math.h>
11543 int main() {
11544  copysignl(0, 0);
11545 ; return 0; }
11546 EOF
11547 if { (eval echo configure:11548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11548   rm -rf conftest*
11549   glibcpp_cv_func_copysignl_use=yes
11550 else
11551   echo "configure: failed program was:" >&5
11552   cat conftest.$ac_ext >&5
11553   rm -rf conftest*
11554   glibcpp_cv_func_copysignl_use=no
11555 fi
11556 rm -f conftest*
11557       ac_ext=c
11558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11559 ac_cpp='$CPP $CPPFLAGS'
11560 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11561 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11562 cross_compiling=$ac_cv_prog_cc_cross
11563
11564     
11565 fi
11566
11567   fi
11568   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
11569
11570   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
11571     for ac_func in copysignl
11572 do
11573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11574 echo "configure:11575: checking for $ac_func" >&5
11575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11576   echo $ac_n "(cached) $ac_c" 1>&6
11577 else
11578   cat > conftest.$ac_ext <<EOF
11579 #line 11580 "configure"
11580 #include "confdefs.h"
11581 /* System header to define __stub macros and hopefully few prototypes,
11582     which can conflict with char $ac_func(); below.  */
11583 #include <assert.h>
11584 /* Override any gcc2 internal prototype to avoid an error.  */
11585 /* We use char because int might match the return type of a gcc2
11586     builtin and then its argument prototype would still apply.  */
11587 char $ac_func();
11588
11589 int main() {
11590
11591 /* The GNU C library defines this for functions which it implements
11592     to always fail with ENOSYS.  Some functions are actually named
11593     something starting with __ and the normal name is an alias.  */
11594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11595 choke me
11596 #else
11597 $ac_func();
11598 #endif
11599
11600 ; return 0; }
11601 EOF
11602 if { (eval echo configure:11603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11603   rm -rf conftest*
11604   eval "ac_cv_func_$ac_func=yes"
11605 else
11606   echo "configure: failed program was:" >&5
11607   cat conftest.$ac_ext >&5
11608   rm -rf conftest*
11609   eval "ac_cv_func_$ac_func=no"
11610 fi
11611 rm -f conftest*
11612 fi
11613
11614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11615   echo "$ac_t""yes" 1>&6
11616     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11617   cat >> confdefs.h <<EOF
11618 #define $ac_tr_func 1
11619 EOF
11620  
11621 else
11622   echo "$ac_t""no" 1>&6
11623 fi
11624 done
11625     
11626   else
11627     
11628   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
11629 echo "configure:11630: checking for _copysignl declaration" >&5
11630   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
11631     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
11632   echo $ac_n "(cached) $ac_c" 1>&6
11633 else
11634   
11635       
11636       ac_ext=C
11637 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11638 ac_cpp='$CXXCPP $CPPFLAGS'
11639 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11640 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11641 cross_compiling=$ac_cv_prog_cxx_cross
11642
11643       cat > conftest.$ac_ext <<EOF
11644 #line 11645 "configure"
11645 #include "confdefs.h"
11646 #include <math.h>
11647 int main() {
11648  _copysignl(0, 0);
11649 ; return 0; }
11650 EOF
11651 if { (eval echo configure:11652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11652   rm -rf conftest*
11653   glibcpp_cv_func__copysignl_use=yes
11654 else
11655   echo "configure: failed program was:" >&5
11656   cat conftest.$ac_ext >&5
11657   rm -rf conftest*
11658   glibcpp_cv_func__copysignl_use=no
11659 fi
11660 rm -f conftest*
11661       ac_ext=c
11662 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11663 ac_cpp='$CPP $CPPFLAGS'
11664 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11665 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11666 cross_compiling=$ac_cv_prog_cc_cross
11667
11668     
11669 fi
11670
11671   fi
11672   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
11673
11674     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
11675       for ac_func in _copysignl
11676 do
11677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11678 echo "configure:11679: checking for $ac_func" >&5
11679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11680   echo $ac_n "(cached) $ac_c" 1>&6
11681 else
11682   cat > conftest.$ac_ext <<EOF
11683 #line 11684 "configure"
11684 #include "confdefs.h"
11685 /* System header to define __stub macros and hopefully few prototypes,
11686     which can conflict with char $ac_func(); below.  */
11687 #include <assert.h>
11688 /* Override any gcc2 internal prototype to avoid an error.  */
11689 /* We use char because int might match the return type of a gcc2
11690     builtin and then its argument prototype would still apply.  */
11691 char $ac_func();
11692
11693 int main() {
11694
11695 /* The GNU C library defines this for functions which it implements
11696     to always fail with ENOSYS.  Some functions are actually named
11697     something starting with __ and the normal name is an alias.  */
11698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11699 choke me
11700 #else
11701 $ac_func();
11702 #endif
11703
11704 ; return 0; }
11705 EOF
11706 if { (eval echo configure:11707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11707   rm -rf conftest*
11708   eval "ac_cv_func_$ac_func=yes"
11709 else
11710   echo "configure: failed program was:" >&5
11711   cat conftest.$ac_ext >&5
11712   rm -rf conftest*
11713   eval "ac_cv_func_$ac_func=no"
11714 fi
11715 rm -f conftest*
11716 fi
11717
11718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11719   echo "$ac_t""yes" 1>&6
11720     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11721   cat >> confdefs.h <<EOF
11722 #define $ac_tr_func 1
11723 EOF
11724  
11725 else
11726   echo "$ac_t""no" 1>&6
11727 fi
11728 done
11729     
11730     fi
11731   fi
11732
11733   
11734   
11735   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
11736 echo "configure:11737: checking for atan2l declaration" >&5
11737   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
11738     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
11739   echo $ac_n "(cached) $ac_c" 1>&6
11740 else
11741   
11742       
11743       ac_ext=C
11744 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11745 ac_cpp='$CXXCPP $CPPFLAGS'
11746 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11747 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11748 cross_compiling=$ac_cv_prog_cxx_cross
11749
11750       cat > conftest.$ac_ext <<EOF
11751 #line 11752 "configure"
11752 #include "confdefs.h"
11753 #include <math.h>
11754 int main() {
11755  atan2l(0, 0);
11756 ; return 0; }
11757 EOF
11758 if { (eval echo configure:11759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11759   rm -rf conftest*
11760   glibcpp_cv_func_atan2l_use=yes
11761 else
11762   echo "configure: failed program was:" >&5
11763   cat conftest.$ac_ext >&5
11764   rm -rf conftest*
11765   glibcpp_cv_func_atan2l_use=no
11766 fi
11767 rm -f conftest*
11768       ac_ext=c
11769 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11770 ac_cpp='$CPP $CPPFLAGS'
11771 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11772 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11773 cross_compiling=$ac_cv_prog_cc_cross
11774
11775     
11776 fi
11777
11778   fi
11779   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
11780
11781   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
11782     for ac_func in atan2l
11783 do
11784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11785 echo "configure:11786: checking for $ac_func" >&5
11786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11787   echo $ac_n "(cached) $ac_c" 1>&6
11788 else
11789   cat > conftest.$ac_ext <<EOF
11790 #line 11791 "configure"
11791 #include "confdefs.h"
11792 /* System header to define __stub macros and hopefully few prototypes,
11793     which can conflict with char $ac_func(); below.  */
11794 #include <assert.h>
11795 /* Override any gcc2 internal prototype to avoid an error.  */
11796 /* We use char because int might match the return type of a gcc2
11797     builtin and then its argument prototype would still apply.  */
11798 char $ac_func();
11799
11800 int main() {
11801
11802 /* The GNU C library defines this for functions which it implements
11803     to always fail with ENOSYS.  Some functions are actually named
11804     something starting with __ and the normal name is an alias.  */
11805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11806 choke me
11807 #else
11808 $ac_func();
11809 #endif
11810
11811 ; return 0; }
11812 EOF
11813 if { (eval echo configure:11814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11814   rm -rf conftest*
11815   eval "ac_cv_func_$ac_func=yes"
11816 else
11817   echo "configure: failed program was:" >&5
11818   cat conftest.$ac_ext >&5
11819   rm -rf conftest*
11820   eval "ac_cv_func_$ac_func=no"
11821 fi
11822 rm -f conftest*
11823 fi
11824
11825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11826   echo "$ac_t""yes" 1>&6
11827     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11828   cat >> confdefs.h <<EOF
11829 #define $ac_tr_func 1
11830 EOF
11831  
11832 else
11833   echo "$ac_t""no" 1>&6
11834 fi
11835 done
11836     
11837   else
11838     
11839   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
11840 echo "configure:11841: checking for _atan2l declaration" >&5
11841   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
11842     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
11843   echo $ac_n "(cached) $ac_c" 1>&6
11844 else
11845   
11846       
11847       ac_ext=C
11848 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11849 ac_cpp='$CXXCPP $CPPFLAGS'
11850 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11851 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11852 cross_compiling=$ac_cv_prog_cxx_cross
11853
11854       cat > conftest.$ac_ext <<EOF
11855 #line 11856 "configure"
11856 #include "confdefs.h"
11857 #include <math.h>
11858 int main() {
11859  _atan2l(0, 0);
11860 ; return 0; }
11861 EOF
11862 if { (eval echo configure:11863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11863   rm -rf conftest*
11864   glibcpp_cv_func__atan2l_use=yes
11865 else
11866   echo "configure: failed program was:" >&5
11867   cat conftest.$ac_ext >&5
11868   rm -rf conftest*
11869   glibcpp_cv_func__atan2l_use=no
11870 fi
11871 rm -f conftest*
11872       ac_ext=c
11873 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11874 ac_cpp='$CPP $CPPFLAGS'
11875 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11876 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11877 cross_compiling=$ac_cv_prog_cc_cross
11878
11879     
11880 fi
11881
11882   fi
11883   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
11884
11885     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
11886       for ac_func in _atan2l
11887 do
11888 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11889 echo "configure:11890: checking for $ac_func" >&5
11890 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11891   echo $ac_n "(cached) $ac_c" 1>&6
11892 else
11893   cat > conftest.$ac_ext <<EOF
11894 #line 11895 "configure"
11895 #include "confdefs.h"
11896 /* System header to define __stub macros and hopefully few prototypes,
11897     which can conflict with char $ac_func(); below.  */
11898 #include <assert.h>
11899 /* Override any gcc2 internal prototype to avoid an error.  */
11900 /* We use char because int might match the return type of a gcc2
11901     builtin and then its argument prototype would still apply.  */
11902 char $ac_func();
11903
11904 int main() {
11905
11906 /* The GNU C library defines this for functions which it implements
11907     to always fail with ENOSYS.  Some functions are actually named
11908     something starting with __ and the normal name is an alias.  */
11909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11910 choke me
11911 #else
11912 $ac_func();
11913 #endif
11914
11915 ; return 0; }
11916 EOF
11917 if { (eval echo configure:11918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11918   rm -rf conftest*
11919   eval "ac_cv_func_$ac_func=yes"
11920 else
11921   echo "configure: failed program was:" >&5
11922   cat conftest.$ac_ext >&5
11923   rm -rf conftest*
11924   eval "ac_cv_func_$ac_func=no"
11925 fi
11926 rm -f conftest*
11927 fi
11928
11929 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11930   echo "$ac_t""yes" 1>&6
11931     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11932   cat >> confdefs.h <<EOF
11933 #define $ac_tr_func 1
11934 EOF
11935  
11936 else
11937   echo "$ac_t""no" 1>&6
11938 fi
11939 done
11940     
11941     fi
11942   fi
11943
11944   
11945   
11946   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
11947 echo "configure:11948: checking for expl declaration" >&5
11948   if test x${glibcpp_cv_func_expl_use+set} != xset; then
11949     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
11950   echo $ac_n "(cached) $ac_c" 1>&6
11951 else
11952   
11953       
11954       ac_ext=C
11955 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11956 ac_cpp='$CXXCPP $CPPFLAGS'
11957 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11958 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11959 cross_compiling=$ac_cv_prog_cxx_cross
11960
11961       cat > conftest.$ac_ext <<EOF
11962 #line 11963 "configure"
11963 #include "confdefs.h"
11964 #include <math.h>
11965                       #ifdef HAVE_IEEEFP_H
11966                       #include <ieeefp.h>
11967                       #endif
11968                      
11969 int main() {
11970  expl(0);
11971 ; return 0; }
11972 EOF
11973 if { (eval echo configure:11974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11974   rm -rf conftest*
11975   glibcpp_cv_func_expl_use=yes
11976 else
11977   echo "configure: failed program was:" >&5
11978   cat conftest.$ac_ext >&5
11979   rm -rf conftest*
11980   glibcpp_cv_func_expl_use=no
11981 fi
11982 rm -f conftest*
11983       ac_ext=c
11984 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11985 ac_cpp='$CPP $CPPFLAGS'
11986 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11987 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11988 cross_compiling=$ac_cv_prog_cc_cross
11989
11990     
11991 fi
11992
11993   fi
11994   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
11995
11996   if test x$glibcpp_cv_func_expl_use = x"yes"; then
11997     for ac_func in expl
11998 do
11999 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12000 echo "configure:12001: checking for $ac_func" >&5
12001 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12002   echo $ac_n "(cached) $ac_c" 1>&6
12003 else
12004   cat > conftest.$ac_ext <<EOF
12005 #line 12006 "configure"
12006 #include "confdefs.h"
12007 /* System header to define __stub macros and hopefully few prototypes,
12008     which can conflict with char $ac_func(); below.  */
12009 #include <assert.h>
12010 /* Override any gcc2 internal prototype to avoid an error.  */
12011 /* We use char because int might match the return type of a gcc2
12012     builtin and then its argument prototype would still apply.  */
12013 char $ac_func();
12014
12015 int main() {
12016
12017 /* The GNU C library defines this for functions which it implements
12018     to always fail with ENOSYS.  Some functions are actually named
12019     something starting with __ and the normal name is an alias.  */
12020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12021 choke me
12022 #else
12023 $ac_func();
12024 #endif
12025
12026 ; return 0; }
12027 EOF
12028 if { (eval echo configure:12029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12029   rm -rf conftest*
12030   eval "ac_cv_func_$ac_func=yes"
12031 else
12032   echo "configure: failed program was:" >&5
12033   cat conftest.$ac_ext >&5
12034   rm -rf conftest*
12035   eval "ac_cv_func_$ac_func=no"
12036 fi
12037 rm -f conftest*
12038 fi
12039
12040 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12041   echo "$ac_t""yes" 1>&6
12042     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12043   cat >> confdefs.h <<EOF
12044 #define $ac_tr_func 1
12045 EOF
12046  
12047 else
12048   echo "$ac_t""no" 1>&6
12049 fi
12050 done
12051     
12052   else
12053     
12054   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
12055 echo "configure:12056: checking for _expl declaration" >&5
12056   if test x${glibcpp_cv_func__expl_use+set} != xset; then
12057     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
12058   echo $ac_n "(cached) $ac_c" 1>&6
12059 else
12060   
12061       
12062       ac_ext=C
12063 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12064 ac_cpp='$CXXCPP $CPPFLAGS'
12065 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12066 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12067 cross_compiling=$ac_cv_prog_cxx_cross
12068
12069       cat > conftest.$ac_ext <<EOF
12070 #line 12071 "configure"
12071 #include "confdefs.h"
12072 #include <math.h>
12073                       #ifdef HAVE_IEEEFP_H
12074                       #include <ieeefp.h>
12075                       #endif
12076                      
12077 int main() {
12078  _expl(0);
12079 ; return 0; }
12080 EOF
12081 if { (eval echo configure:12082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12082   rm -rf conftest*
12083   glibcpp_cv_func__expl_use=yes
12084 else
12085   echo "configure: failed program was:" >&5
12086   cat conftest.$ac_ext >&5
12087   rm -rf conftest*
12088   glibcpp_cv_func__expl_use=no
12089 fi
12090 rm -f conftest*
12091       ac_ext=c
12092 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12093 ac_cpp='$CPP $CPPFLAGS'
12094 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12095 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12096 cross_compiling=$ac_cv_prog_cc_cross
12097
12098     
12099 fi
12100
12101   fi
12102   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
12103
12104     if test x$glibcpp_cv_func__expl_use = x"yes"; then
12105       for ac_func in _expl
12106 do
12107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12108 echo "configure:12109: checking for $ac_func" >&5
12109 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12110   echo $ac_n "(cached) $ac_c" 1>&6
12111 else
12112   cat > conftest.$ac_ext <<EOF
12113 #line 12114 "configure"
12114 #include "confdefs.h"
12115 /* System header to define __stub macros and hopefully few prototypes,
12116     which can conflict with char $ac_func(); below.  */
12117 #include <assert.h>
12118 /* Override any gcc2 internal prototype to avoid an error.  */
12119 /* We use char because int might match the return type of a gcc2
12120     builtin and then its argument prototype would still apply.  */
12121 char $ac_func();
12122
12123 int main() {
12124
12125 /* The GNU C library defines this for functions which it implements
12126     to always fail with ENOSYS.  Some functions are actually named
12127     something starting with __ and the normal name is an alias.  */
12128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12129 choke me
12130 #else
12131 $ac_func();
12132 #endif
12133
12134 ; return 0; }
12135 EOF
12136 if { (eval echo configure:12137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12137   rm -rf conftest*
12138   eval "ac_cv_func_$ac_func=yes"
12139 else
12140   echo "configure: failed program was:" >&5
12141   cat conftest.$ac_ext >&5
12142   rm -rf conftest*
12143   eval "ac_cv_func_$ac_func=no"
12144 fi
12145 rm -f conftest*
12146 fi
12147
12148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12149   echo "$ac_t""yes" 1>&6
12150     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12151   cat >> confdefs.h <<EOF
12152 #define $ac_tr_func 1
12153 EOF
12154  
12155 else
12156   echo "$ac_t""no" 1>&6
12157 fi
12158 done
12159     
12160     fi
12161   fi
12162
12163   
12164   
12165   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
12166 echo "configure:12167: checking for fabsl declaration" >&5
12167   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
12168     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
12169   echo $ac_n "(cached) $ac_c" 1>&6
12170 else
12171   
12172       
12173       ac_ext=C
12174 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12175 ac_cpp='$CXXCPP $CPPFLAGS'
12176 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12177 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12178 cross_compiling=$ac_cv_prog_cxx_cross
12179
12180       cat > conftest.$ac_ext <<EOF
12181 #line 12182 "configure"
12182 #include "confdefs.h"
12183 #include <math.h>
12184                       #ifdef HAVE_IEEEFP_H
12185                       #include <ieeefp.h>
12186                       #endif
12187                      
12188 int main() {
12189  fabsl(0);
12190 ; return 0; }
12191 EOF
12192 if { (eval echo configure:12193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12193   rm -rf conftest*
12194   glibcpp_cv_func_fabsl_use=yes
12195 else
12196   echo "configure: failed program was:" >&5
12197   cat conftest.$ac_ext >&5
12198   rm -rf conftest*
12199   glibcpp_cv_func_fabsl_use=no
12200 fi
12201 rm -f conftest*
12202       ac_ext=c
12203 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12204 ac_cpp='$CPP $CPPFLAGS'
12205 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12206 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12207 cross_compiling=$ac_cv_prog_cc_cross
12208
12209     
12210 fi
12211
12212   fi
12213   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
12214
12215   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
12216     for ac_func in fabsl
12217 do
12218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12219 echo "configure:12220: checking for $ac_func" >&5
12220 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12221   echo $ac_n "(cached) $ac_c" 1>&6
12222 else
12223   cat > conftest.$ac_ext <<EOF
12224 #line 12225 "configure"
12225 #include "confdefs.h"
12226 /* System header to define __stub macros and hopefully few prototypes,
12227     which can conflict with char $ac_func(); below.  */
12228 #include <assert.h>
12229 /* Override any gcc2 internal prototype to avoid an error.  */
12230 /* We use char because int might match the return type of a gcc2
12231     builtin and then its argument prototype would still apply.  */
12232 char $ac_func();
12233
12234 int main() {
12235
12236 /* The GNU C library defines this for functions which it implements
12237     to always fail with ENOSYS.  Some functions are actually named
12238     something starting with __ and the normal name is an alias.  */
12239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12240 choke me
12241 #else
12242 $ac_func();
12243 #endif
12244
12245 ; return 0; }
12246 EOF
12247 if { (eval echo configure:12248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12248   rm -rf conftest*
12249   eval "ac_cv_func_$ac_func=yes"
12250 else
12251   echo "configure: failed program was:" >&5
12252   cat conftest.$ac_ext >&5
12253   rm -rf conftest*
12254   eval "ac_cv_func_$ac_func=no"
12255 fi
12256 rm -f conftest*
12257 fi
12258
12259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12260   echo "$ac_t""yes" 1>&6
12261     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12262   cat >> confdefs.h <<EOF
12263 #define $ac_tr_func 1
12264 EOF
12265  
12266 else
12267   echo "$ac_t""no" 1>&6
12268 fi
12269 done
12270     
12271   else
12272     
12273   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
12274 echo "configure:12275: checking for _fabsl declaration" >&5
12275   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
12276     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
12277   echo $ac_n "(cached) $ac_c" 1>&6
12278 else
12279   
12280       
12281       ac_ext=C
12282 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12283 ac_cpp='$CXXCPP $CPPFLAGS'
12284 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12285 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12286 cross_compiling=$ac_cv_prog_cxx_cross
12287
12288       cat > conftest.$ac_ext <<EOF
12289 #line 12290 "configure"
12290 #include "confdefs.h"
12291 #include <math.h>
12292                       #ifdef HAVE_IEEEFP_H
12293                       #include <ieeefp.h>
12294                       #endif
12295                      
12296 int main() {
12297  _fabsl(0);
12298 ; return 0; }
12299 EOF
12300 if { (eval echo configure:12301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12301   rm -rf conftest*
12302   glibcpp_cv_func__fabsl_use=yes
12303 else
12304   echo "configure: failed program was:" >&5
12305   cat conftest.$ac_ext >&5
12306   rm -rf conftest*
12307   glibcpp_cv_func__fabsl_use=no
12308 fi
12309 rm -f conftest*
12310       ac_ext=c
12311 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12312 ac_cpp='$CPP $CPPFLAGS'
12313 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12314 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12315 cross_compiling=$ac_cv_prog_cc_cross
12316
12317     
12318 fi
12319
12320   fi
12321   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
12322
12323     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
12324       for ac_func in _fabsl
12325 do
12326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12327 echo "configure:12328: checking for $ac_func" >&5
12328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12329   echo $ac_n "(cached) $ac_c" 1>&6
12330 else
12331   cat > conftest.$ac_ext <<EOF
12332 #line 12333 "configure"
12333 #include "confdefs.h"
12334 /* System header to define __stub macros and hopefully few prototypes,
12335     which can conflict with char $ac_func(); below.  */
12336 #include <assert.h>
12337 /* Override any gcc2 internal prototype to avoid an error.  */
12338 /* We use char because int might match the return type of a gcc2
12339     builtin and then its argument prototype would still apply.  */
12340 char $ac_func();
12341
12342 int main() {
12343
12344 /* The GNU C library defines this for functions which it implements
12345     to always fail with ENOSYS.  Some functions are actually named
12346     something starting with __ and the normal name is an alias.  */
12347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12348 choke me
12349 #else
12350 $ac_func();
12351 #endif
12352
12353 ; return 0; }
12354 EOF
12355 if { (eval echo configure:12356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12356   rm -rf conftest*
12357   eval "ac_cv_func_$ac_func=yes"
12358 else
12359   echo "configure: failed program was:" >&5
12360   cat conftest.$ac_ext >&5
12361   rm -rf conftest*
12362   eval "ac_cv_func_$ac_func=no"
12363 fi
12364 rm -f conftest*
12365 fi
12366
12367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12368   echo "$ac_t""yes" 1>&6
12369     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12370   cat >> confdefs.h <<EOF
12371 #define $ac_tr_func 1
12372 EOF
12373  
12374 else
12375   echo "$ac_t""no" 1>&6
12376 fi
12377 done
12378     
12379     fi
12380   fi
12381
12382   
12383   
12384   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
12385 echo "configure:12386: checking for fmodl declaration" >&5
12386   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
12387     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
12388   echo $ac_n "(cached) $ac_c" 1>&6
12389 else
12390   
12391       
12392       ac_ext=C
12393 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12394 ac_cpp='$CXXCPP $CPPFLAGS'
12395 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12396 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12397 cross_compiling=$ac_cv_prog_cxx_cross
12398
12399       cat > conftest.$ac_ext <<EOF
12400 #line 12401 "configure"
12401 #include "confdefs.h"
12402 #include <math.h>
12403 int main() {
12404  fmodl(0, 0);
12405 ; return 0; }
12406 EOF
12407 if { (eval echo configure:12408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12408   rm -rf conftest*
12409   glibcpp_cv_func_fmodl_use=yes
12410 else
12411   echo "configure: failed program was:" >&5
12412   cat conftest.$ac_ext >&5
12413   rm -rf conftest*
12414   glibcpp_cv_func_fmodl_use=no
12415 fi
12416 rm -f conftest*
12417       ac_ext=c
12418 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12419 ac_cpp='$CPP $CPPFLAGS'
12420 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12421 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12422 cross_compiling=$ac_cv_prog_cc_cross
12423
12424     
12425 fi
12426
12427   fi
12428   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
12429
12430   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
12431     for ac_func in fmodl
12432 do
12433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12434 echo "configure:12435: checking for $ac_func" >&5
12435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12436   echo $ac_n "(cached) $ac_c" 1>&6
12437 else
12438   cat > conftest.$ac_ext <<EOF
12439 #line 12440 "configure"
12440 #include "confdefs.h"
12441 /* System header to define __stub macros and hopefully few prototypes,
12442     which can conflict with char $ac_func(); below.  */
12443 #include <assert.h>
12444 /* Override any gcc2 internal prototype to avoid an error.  */
12445 /* We use char because int might match the return type of a gcc2
12446     builtin and then its argument prototype would still apply.  */
12447 char $ac_func();
12448
12449 int main() {
12450
12451 /* The GNU C library defines this for functions which it implements
12452     to always fail with ENOSYS.  Some functions are actually named
12453     something starting with __ and the normal name is an alias.  */
12454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12455 choke me
12456 #else
12457 $ac_func();
12458 #endif
12459
12460 ; return 0; }
12461 EOF
12462 if { (eval echo configure:12463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12463   rm -rf conftest*
12464   eval "ac_cv_func_$ac_func=yes"
12465 else
12466   echo "configure: failed program was:" >&5
12467   cat conftest.$ac_ext >&5
12468   rm -rf conftest*
12469   eval "ac_cv_func_$ac_func=no"
12470 fi
12471 rm -f conftest*
12472 fi
12473
12474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12475   echo "$ac_t""yes" 1>&6
12476     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12477   cat >> confdefs.h <<EOF
12478 #define $ac_tr_func 1
12479 EOF
12480  
12481 else
12482   echo "$ac_t""no" 1>&6
12483 fi
12484 done
12485     
12486   else
12487     
12488   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
12489 echo "configure:12490: checking for _fmodl declaration" >&5
12490   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
12491     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
12492   echo $ac_n "(cached) $ac_c" 1>&6
12493 else
12494   
12495       
12496       ac_ext=C
12497 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12498 ac_cpp='$CXXCPP $CPPFLAGS'
12499 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12500 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12501 cross_compiling=$ac_cv_prog_cxx_cross
12502
12503       cat > conftest.$ac_ext <<EOF
12504 #line 12505 "configure"
12505 #include "confdefs.h"
12506 #include <math.h>
12507 int main() {
12508  _fmodl(0, 0);
12509 ; return 0; }
12510 EOF
12511 if { (eval echo configure:12512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12512   rm -rf conftest*
12513   glibcpp_cv_func__fmodl_use=yes
12514 else
12515   echo "configure: failed program was:" >&5
12516   cat conftest.$ac_ext >&5
12517   rm -rf conftest*
12518   glibcpp_cv_func__fmodl_use=no
12519 fi
12520 rm -f conftest*
12521       ac_ext=c
12522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12523 ac_cpp='$CPP $CPPFLAGS'
12524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12526 cross_compiling=$ac_cv_prog_cc_cross
12527
12528     
12529 fi
12530
12531   fi
12532   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
12533
12534     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
12535       for ac_func in _fmodl
12536 do
12537 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12538 echo "configure:12539: checking for $ac_func" >&5
12539 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12540   echo $ac_n "(cached) $ac_c" 1>&6
12541 else
12542   cat > conftest.$ac_ext <<EOF
12543 #line 12544 "configure"
12544 #include "confdefs.h"
12545 /* System header to define __stub macros and hopefully few prototypes,
12546     which can conflict with char $ac_func(); below.  */
12547 #include <assert.h>
12548 /* Override any gcc2 internal prototype to avoid an error.  */
12549 /* We use char because int might match the return type of a gcc2
12550     builtin and then its argument prototype would still apply.  */
12551 char $ac_func();
12552
12553 int main() {
12554
12555 /* The GNU C library defines this for functions which it implements
12556     to always fail with ENOSYS.  Some functions are actually named
12557     something starting with __ and the normal name is an alias.  */
12558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12559 choke me
12560 #else
12561 $ac_func();
12562 #endif
12563
12564 ; return 0; }
12565 EOF
12566 if { (eval echo configure:12567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12567   rm -rf conftest*
12568   eval "ac_cv_func_$ac_func=yes"
12569 else
12570   echo "configure: failed program was:" >&5
12571   cat conftest.$ac_ext >&5
12572   rm -rf conftest*
12573   eval "ac_cv_func_$ac_func=no"
12574 fi
12575 rm -f conftest*
12576 fi
12577
12578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12579   echo "$ac_t""yes" 1>&6
12580     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12581   cat >> confdefs.h <<EOF
12582 #define $ac_tr_func 1
12583 EOF
12584  
12585 else
12586   echo "$ac_t""no" 1>&6
12587 fi
12588 done
12589     
12590     fi
12591   fi
12592
12593   
12594   
12595   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
12596 echo "configure:12597: checking for frexpl declaration" >&5
12597   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
12598     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
12599   echo $ac_n "(cached) $ac_c" 1>&6
12600 else
12601   
12602       
12603       ac_ext=C
12604 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12605 ac_cpp='$CXXCPP $CPPFLAGS'
12606 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12607 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12608 cross_compiling=$ac_cv_prog_cxx_cross
12609
12610       cat > conftest.$ac_ext <<EOF
12611 #line 12612 "configure"
12612 #include "confdefs.h"
12613 #include <math.h>
12614 int main() {
12615  frexpl(0, 0);
12616 ; return 0; }
12617 EOF
12618 if { (eval echo configure:12619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12619   rm -rf conftest*
12620   glibcpp_cv_func_frexpl_use=yes
12621 else
12622   echo "configure: failed program was:" >&5
12623   cat conftest.$ac_ext >&5
12624   rm -rf conftest*
12625   glibcpp_cv_func_frexpl_use=no
12626 fi
12627 rm -f conftest*
12628       ac_ext=c
12629 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12630 ac_cpp='$CPP $CPPFLAGS'
12631 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12632 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12633 cross_compiling=$ac_cv_prog_cc_cross
12634
12635     
12636 fi
12637
12638   fi
12639   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
12640
12641   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
12642     for ac_func in frexpl
12643 do
12644 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12645 echo "configure:12646: checking for $ac_func" >&5
12646 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12647   echo $ac_n "(cached) $ac_c" 1>&6
12648 else
12649   cat > conftest.$ac_ext <<EOF
12650 #line 12651 "configure"
12651 #include "confdefs.h"
12652 /* System header to define __stub macros and hopefully few prototypes,
12653     which can conflict with char $ac_func(); below.  */
12654 #include <assert.h>
12655 /* Override any gcc2 internal prototype to avoid an error.  */
12656 /* We use char because int might match the return type of a gcc2
12657     builtin and then its argument prototype would still apply.  */
12658 char $ac_func();
12659
12660 int main() {
12661
12662 /* The GNU C library defines this for functions which it implements
12663     to always fail with ENOSYS.  Some functions are actually named
12664     something starting with __ and the normal name is an alias.  */
12665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12666 choke me
12667 #else
12668 $ac_func();
12669 #endif
12670
12671 ; return 0; }
12672 EOF
12673 if { (eval echo configure:12674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12674   rm -rf conftest*
12675   eval "ac_cv_func_$ac_func=yes"
12676 else
12677   echo "configure: failed program was:" >&5
12678   cat conftest.$ac_ext >&5
12679   rm -rf conftest*
12680   eval "ac_cv_func_$ac_func=no"
12681 fi
12682 rm -f conftest*
12683 fi
12684
12685 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12686   echo "$ac_t""yes" 1>&6
12687     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12688   cat >> confdefs.h <<EOF
12689 #define $ac_tr_func 1
12690 EOF
12691  
12692 else
12693   echo "$ac_t""no" 1>&6
12694 fi
12695 done
12696     
12697   else
12698     
12699   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
12700 echo "configure:12701: checking for _frexpl declaration" >&5
12701   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
12702     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
12703   echo $ac_n "(cached) $ac_c" 1>&6
12704 else
12705   
12706       
12707       ac_ext=C
12708 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12709 ac_cpp='$CXXCPP $CPPFLAGS'
12710 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12711 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12712 cross_compiling=$ac_cv_prog_cxx_cross
12713
12714       cat > conftest.$ac_ext <<EOF
12715 #line 12716 "configure"
12716 #include "confdefs.h"
12717 #include <math.h>
12718 int main() {
12719  _frexpl(0, 0);
12720 ; return 0; }
12721 EOF
12722 if { (eval echo configure:12723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12723   rm -rf conftest*
12724   glibcpp_cv_func__frexpl_use=yes
12725 else
12726   echo "configure: failed program was:" >&5
12727   cat conftest.$ac_ext >&5
12728   rm -rf conftest*
12729   glibcpp_cv_func__frexpl_use=no
12730 fi
12731 rm -f conftest*
12732       ac_ext=c
12733 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12734 ac_cpp='$CPP $CPPFLAGS'
12735 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12736 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12737 cross_compiling=$ac_cv_prog_cc_cross
12738
12739     
12740 fi
12741
12742   fi
12743   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
12744
12745     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
12746       for ac_func in _frexpl
12747 do
12748 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12749 echo "configure:12750: checking for $ac_func" >&5
12750 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12751   echo $ac_n "(cached) $ac_c" 1>&6
12752 else
12753   cat > conftest.$ac_ext <<EOF
12754 #line 12755 "configure"
12755 #include "confdefs.h"
12756 /* System header to define __stub macros and hopefully few prototypes,
12757     which can conflict with char $ac_func(); below.  */
12758 #include <assert.h>
12759 /* Override any gcc2 internal prototype to avoid an error.  */
12760 /* We use char because int might match the return type of a gcc2
12761     builtin and then its argument prototype would still apply.  */
12762 char $ac_func();
12763
12764 int main() {
12765
12766 /* The GNU C library defines this for functions which it implements
12767     to always fail with ENOSYS.  Some functions are actually named
12768     something starting with __ and the normal name is an alias.  */
12769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12770 choke me
12771 #else
12772 $ac_func();
12773 #endif
12774
12775 ; return 0; }
12776 EOF
12777 if { (eval echo configure:12778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12778   rm -rf conftest*
12779   eval "ac_cv_func_$ac_func=yes"
12780 else
12781   echo "configure: failed program was:" >&5
12782   cat conftest.$ac_ext >&5
12783   rm -rf conftest*
12784   eval "ac_cv_func_$ac_func=no"
12785 fi
12786 rm -f conftest*
12787 fi
12788
12789 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12790   echo "$ac_t""yes" 1>&6
12791     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12792   cat >> confdefs.h <<EOF
12793 #define $ac_tr_func 1
12794 EOF
12795  
12796 else
12797   echo "$ac_t""no" 1>&6
12798 fi
12799 done
12800     
12801     fi
12802   fi
12803
12804   
12805   
12806   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
12807 echo "configure:12808: checking for ldexpl declaration" >&5
12808   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
12809     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
12810   echo $ac_n "(cached) $ac_c" 1>&6
12811 else
12812   
12813       
12814       ac_ext=C
12815 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12816 ac_cpp='$CXXCPP $CPPFLAGS'
12817 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12818 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12819 cross_compiling=$ac_cv_prog_cxx_cross
12820
12821       cat > conftest.$ac_ext <<EOF
12822 #line 12823 "configure"
12823 #include "confdefs.h"
12824 #include <math.h>
12825 int main() {
12826  ldexpl(0, 0);
12827 ; return 0; }
12828 EOF
12829 if { (eval echo configure:12830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12830   rm -rf conftest*
12831   glibcpp_cv_func_ldexpl_use=yes
12832 else
12833   echo "configure: failed program was:" >&5
12834   cat conftest.$ac_ext >&5
12835   rm -rf conftest*
12836   glibcpp_cv_func_ldexpl_use=no
12837 fi
12838 rm -f conftest*
12839       ac_ext=c
12840 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12841 ac_cpp='$CPP $CPPFLAGS'
12842 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12843 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12844 cross_compiling=$ac_cv_prog_cc_cross
12845
12846     
12847 fi
12848
12849   fi
12850   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
12851
12852   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
12853     for ac_func in ldexpl
12854 do
12855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12856 echo "configure:12857: checking for $ac_func" >&5
12857 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12858   echo $ac_n "(cached) $ac_c" 1>&6
12859 else
12860   cat > conftest.$ac_ext <<EOF
12861 #line 12862 "configure"
12862 #include "confdefs.h"
12863 /* System header to define __stub macros and hopefully few prototypes,
12864     which can conflict with char $ac_func(); below.  */
12865 #include <assert.h>
12866 /* Override any gcc2 internal prototype to avoid an error.  */
12867 /* We use char because int might match the return type of a gcc2
12868     builtin and then its argument prototype would still apply.  */
12869 char $ac_func();
12870
12871 int main() {
12872
12873 /* The GNU C library defines this for functions which it implements
12874     to always fail with ENOSYS.  Some functions are actually named
12875     something starting with __ and the normal name is an alias.  */
12876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12877 choke me
12878 #else
12879 $ac_func();
12880 #endif
12881
12882 ; return 0; }
12883 EOF
12884 if { (eval echo configure:12885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12885   rm -rf conftest*
12886   eval "ac_cv_func_$ac_func=yes"
12887 else
12888   echo "configure: failed program was:" >&5
12889   cat conftest.$ac_ext >&5
12890   rm -rf conftest*
12891   eval "ac_cv_func_$ac_func=no"
12892 fi
12893 rm -f conftest*
12894 fi
12895
12896 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12897   echo "$ac_t""yes" 1>&6
12898     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12899   cat >> confdefs.h <<EOF
12900 #define $ac_tr_func 1
12901 EOF
12902  
12903 else
12904   echo "$ac_t""no" 1>&6
12905 fi
12906 done
12907     
12908   else
12909     
12910   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
12911 echo "configure:12912: checking for _ldexpl declaration" >&5
12912   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
12913     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
12914   echo $ac_n "(cached) $ac_c" 1>&6
12915 else
12916   
12917       
12918       ac_ext=C
12919 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12920 ac_cpp='$CXXCPP $CPPFLAGS'
12921 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12922 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12923 cross_compiling=$ac_cv_prog_cxx_cross
12924
12925       cat > conftest.$ac_ext <<EOF
12926 #line 12927 "configure"
12927 #include "confdefs.h"
12928 #include <math.h>
12929 int main() {
12930  _ldexpl(0, 0);
12931 ; return 0; }
12932 EOF
12933 if { (eval echo configure:12934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12934   rm -rf conftest*
12935   glibcpp_cv_func__ldexpl_use=yes
12936 else
12937   echo "configure: failed program was:" >&5
12938   cat conftest.$ac_ext >&5
12939   rm -rf conftest*
12940   glibcpp_cv_func__ldexpl_use=no
12941 fi
12942 rm -f conftest*
12943       ac_ext=c
12944 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12945 ac_cpp='$CPP $CPPFLAGS'
12946 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12947 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12948 cross_compiling=$ac_cv_prog_cc_cross
12949
12950     
12951 fi
12952
12953   fi
12954   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
12955
12956     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
12957       for ac_func in _ldexpl
12958 do
12959 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12960 echo "configure:12961: checking for $ac_func" >&5
12961 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12962   echo $ac_n "(cached) $ac_c" 1>&6
12963 else
12964   cat > conftest.$ac_ext <<EOF
12965 #line 12966 "configure"
12966 #include "confdefs.h"
12967 /* System header to define __stub macros and hopefully few prototypes,
12968     which can conflict with char $ac_func(); below.  */
12969 #include <assert.h>
12970 /* Override any gcc2 internal prototype to avoid an error.  */
12971 /* We use char because int might match the return type of a gcc2
12972     builtin and then its argument prototype would still apply.  */
12973 char $ac_func();
12974
12975 int main() {
12976
12977 /* The GNU C library defines this for functions which it implements
12978     to always fail with ENOSYS.  Some functions are actually named
12979     something starting with __ and the normal name is an alias.  */
12980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12981 choke me
12982 #else
12983 $ac_func();
12984 #endif
12985
12986 ; return 0; }
12987 EOF
12988 if { (eval echo configure:12989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12989   rm -rf conftest*
12990   eval "ac_cv_func_$ac_func=yes"
12991 else
12992   echo "configure: failed program was:" >&5
12993   cat conftest.$ac_ext >&5
12994   rm -rf conftest*
12995   eval "ac_cv_func_$ac_func=no"
12996 fi
12997 rm -f conftest*
12998 fi
12999
13000 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13001   echo "$ac_t""yes" 1>&6
13002     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13003   cat >> confdefs.h <<EOF
13004 #define $ac_tr_func 1
13005 EOF
13006  
13007 else
13008   echo "$ac_t""no" 1>&6
13009 fi
13010 done
13011     
13012     fi
13013   fi
13014
13015   
13016   
13017   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
13018 echo "configure:13019: checking for logl declaration" >&5
13019   if test x${glibcpp_cv_func_logl_use+set} != xset; then
13020     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
13021   echo $ac_n "(cached) $ac_c" 1>&6
13022 else
13023   
13024       
13025       ac_ext=C
13026 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13027 ac_cpp='$CXXCPP $CPPFLAGS'
13028 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13029 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13030 cross_compiling=$ac_cv_prog_cxx_cross
13031
13032       cat > conftest.$ac_ext <<EOF
13033 #line 13034 "configure"
13034 #include "confdefs.h"
13035 #include <math.h>
13036                       #ifdef HAVE_IEEEFP_H
13037                       #include <ieeefp.h>
13038                       #endif
13039                      
13040 int main() {
13041  logl(0);
13042 ; return 0; }
13043 EOF
13044 if { (eval echo configure:13045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13045   rm -rf conftest*
13046   glibcpp_cv_func_logl_use=yes
13047 else
13048   echo "configure: failed program was:" >&5
13049   cat conftest.$ac_ext >&5
13050   rm -rf conftest*
13051   glibcpp_cv_func_logl_use=no
13052 fi
13053 rm -f conftest*
13054       ac_ext=c
13055 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13056 ac_cpp='$CPP $CPPFLAGS'
13057 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13058 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13059 cross_compiling=$ac_cv_prog_cc_cross
13060
13061     
13062 fi
13063
13064   fi
13065   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
13066
13067   if test x$glibcpp_cv_func_logl_use = x"yes"; then
13068     for ac_func in logl
13069 do
13070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13071 echo "configure:13072: checking for $ac_func" >&5
13072 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13073   echo $ac_n "(cached) $ac_c" 1>&6
13074 else
13075   cat > conftest.$ac_ext <<EOF
13076 #line 13077 "configure"
13077 #include "confdefs.h"
13078 /* System header to define __stub macros and hopefully few prototypes,
13079     which can conflict with char $ac_func(); below.  */
13080 #include <assert.h>
13081 /* Override any gcc2 internal prototype to avoid an error.  */
13082 /* We use char because int might match the return type of a gcc2
13083     builtin and then its argument prototype would still apply.  */
13084 char $ac_func();
13085
13086 int main() {
13087
13088 /* The GNU C library defines this for functions which it implements
13089     to always fail with ENOSYS.  Some functions are actually named
13090     something starting with __ and the normal name is an alias.  */
13091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13092 choke me
13093 #else
13094 $ac_func();
13095 #endif
13096
13097 ; return 0; }
13098 EOF
13099 if { (eval echo configure:13100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13100   rm -rf conftest*
13101   eval "ac_cv_func_$ac_func=yes"
13102 else
13103   echo "configure: failed program was:" >&5
13104   cat conftest.$ac_ext >&5
13105   rm -rf conftest*
13106   eval "ac_cv_func_$ac_func=no"
13107 fi
13108 rm -f conftest*
13109 fi
13110
13111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13112   echo "$ac_t""yes" 1>&6
13113     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13114   cat >> confdefs.h <<EOF
13115 #define $ac_tr_func 1
13116 EOF
13117  
13118 else
13119   echo "$ac_t""no" 1>&6
13120 fi
13121 done
13122     
13123   else
13124     
13125   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
13126 echo "configure:13127: checking for _logl declaration" >&5
13127   if test x${glibcpp_cv_func__logl_use+set} != xset; then
13128     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
13129   echo $ac_n "(cached) $ac_c" 1>&6
13130 else
13131   
13132       
13133       ac_ext=C
13134 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13135 ac_cpp='$CXXCPP $CPPFLAGS'
13136 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13137 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13138 cross_compiling=$ac_cv_prog_cxx_cross
13139
13140       cat > conftest.$ac_ext <<EOF
13141 #line 13142 "configure"
13142 #include "confdefs.h"
13143 #include <math.h>
13144                       #ifdef HAVE_IEEEFP_H
13145                       #include <ieeefp.h>
13146                       #endif
13147                      
13148 int main() {
13149  _logl(0);
13150 ; return 0; }
13151 EOF
13152 if { (eval echo configure:13153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13153   rm -rf conftest*
13154   glibcpp_cv_func__logl_use=yes
13155 else
13156   echo "configure: failed program was:" >&5
13157   cat conftest.$ac_ext >&5
13158   rm -rf conftest*
13159   glibcpp_cv_func__logl_use=no
13160 fi
13161 rm -f conftest*
13162       ac_ext=c
13163 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13164 ac_cpp='$CPP $CPPFLAGS'
13165 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13166 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13167 cross_compiling=$ac_cv_prog_cc_cross
13168
13169     
13170 fi
13171
13172   fi
13173   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
13174
13175     if test x$glibcpp_cv_func__logl_use = x"yes"; then
13176       for ac_func in _logl
13177 do
13178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13179 echo "configure:13180: checking for $ac_func" >&5
13180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13181   echo $ac_n "(cached) $ac_c" 1>&6
13182 else
13183   cat > conftest.$ac_ext <<EOF
13184 #line 13185 "configure"
13185 #include "confdefs.h"
13186 /* System header to define __stub macros and hopefully few prototypes,
13187     which can conflict with char $ac_func(); below.  */
13188 #include <assert.h>
13189 /* Override any gcc2 internal prototype to avoid an error.  */
13190 /* We use char because int might match the return type of a gcc2
13191     builtin and then its argument prototype would still apply.  */
13192 char $ac_func();
13193
13194 int main() {
13195
13196 /* The GNU C library defines this for functions which it implements
13197     to always fail with ENOSYS.  Some functions are actually named
13198     something starting with __ and the normal name is an alias.  */
13199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13200 choke me
13201 #else
13202 $ac_func();
13203 #endif
13204
13205 ; return 0; }
13206 EOF
13207 if { (eval echo configure:13208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13208   rm -rf conftest*
13209   eval "ac_cv_func_$ac_func=yes"
13210 else
13211   echo "configure: failed program was:" >&5
13212   cat conftest.$ac_ext >&5
13213   rm -rf conftest*
13214   eval "ac_cv_func_$ac_func=no"
13215 fi
13216 rm -f conftest*
13217 fi
13218
13219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13220   echo "$ac_t""yes" 1>&6
13221     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13222   cat >> confdefs.h <<EOF
13223 #define $ac_tr_func 1
13224 EOF
13225  
13226 else
13227   echo "$ac_t""no" 1>&6
13228 fi
13229 done
13230     
13231     fi
13232   fi
13233
13234   
13235   
13236   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
13237 echo "configure:13238: checking for log10l declaration" >&5
13238   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
13239     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
13240   echo $ac_n "(cached) $ac_c" 1>&6
13241 else
13242   
13243       
13244       ac_ext=C
13245 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13246 ac_cpp='$CXXCPP $CPPFLAGS'
13247 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13248 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13249 cross_compiling=$ac_cv_prog_cxx_cross
13250
13251       cat > conftest.$ac_ext <<EOF
13252 #line 13253 "configure"
13253 #include "confdefs.h"
13254 #include <math.h>
13255                       #ifdef HAVE_IEEEFP_H
13256                       #include <ieeefp.h>
13257                       #endif
13258                      
13259 int main() {
13260  log10l(0);
13261 ; return 0; }
13262 EOF
13263 if { (eval echo configure:13264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13264   rm -rf conftest*
13265   glibcpp_cv_func_log10l_use=yes
13266 else
13267   echo "configure: failed program was:" >&5
13268   cat conftest.$ac_ext >&5
13269   rm -rf conftest*
13270   glibcpp_cv_func_log10l_use=no
13271 fi
13272 rm -f conftest*
13273       ac_ext=c
13274 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13275 ac_cpp='$CPP $CPPFLAGS'
13276 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13277 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13278 cross_compiling=$ac_cv_prog_cc_cross
13279
13280     
13281 fi
13282
13283   fi
13284   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
13285
13286   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
13287     for ac_func in log10l
13288 do
13289 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13290 echo "configure:13291: checking for $ac_func" >&5
13291 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13292   echo $ac_n "(cached) $ac_c" 1>&6
13293 else
13294   cat > conftest.$ac_ext <<EOF
13295 #line 13296 "configure"
13296 #include "confdefs.h"
13297 /* System header to define __stub macros and hopefully few prototypes,
13298     which can conflict with char $ac_func(); below.  */
13299 #include <assert.h>
13300 /* Override any gcc2 internal prototype to avoid an error.  */
13301 /* We use char because int might match the return type of a gcc2
13302     builtin and then its argument prototype would still apply.  */
13303 char $ac_func();
13304
13305 int main() {
13306
13307 /* The GNU C library defines this for functions which it implements
13308     to always fail with ENOSYS.  Some functions are actually named
13309     something starting with __ and the normal name is an alias.  */
13310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13311 choke me
13312 #else
13313 $ac_func();
13314 #endif
13315
13316 ; return 0; }
13317 EOF
13318 if { (eval echo configure:13319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13319   rm -rf conftest*
13320   eval "ac_cv_func_$ac_func=yes"
13321 else
13322   echo "configure: failed program was:" >&5
13323   cat conftest.$ac_ext >&5
13324   rm -rf conftest*
13325   eval "ac_cv_func_$ac_func=no"
13326 fi
13327 rm -f conftest*
13328 fi
13329
13330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13331   echo "$ac_t""yes" 1>&6
13332     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13333   cat >> confdefs.h <<EOF
13334 #define $ac_tr_func 1
13335 EOF
13336  
13337 else
13338   echo "$ac_t""no" 1>&6
13339 fi
13340 done
13341     
13342   else
13343     
13344   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
13345 echo "configure:13346: checking for _log10l declaration" >&5
13346   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
13347     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
13348   echo $ac_n "(cached) $ac_c" 1>&6
13349 else
13350   
13351       
13352       ac_ext=C
13353 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13354 ac_cpp='$CXXCPP $CPPFLAGS'
13355 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13356 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13357 cross_compiling=$ac_cv_prog_cxx_cross
13358
13359       cat > conftest.$ac_ext <<EOF
13360 #line 13361 "configure"
13361 #include "confdefs.h"
13362 #include <math.h>
13363                       #ifdef HAVE_IEEEFP_H
13364                       #include <ieeefp.h>
13365                       #endif
13366                      
13367 int main() {
13368  _log10l(0);
13369 ; return 0; }
13370 EOF
13371 if { (eval echo configure:13372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13372   rm -rf conftest*
13373   glibcpp_cv_func__log10l_use=yes
13374 else
13375   echo "configure: failed program was:" >&5
13376   cat conftest.$ac_ext >&5
13377   rm -rf conftest*
13378   glibcpp_cv_func__log10l_use=no
13379 fi
13380 rm -f conftest*
13381       ac_ext=c
13382 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13383 ac_cpp='$CPP $CPPFLAGS'
13384 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13385 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13386 cross_compiling=$ac_cv_prog_cc_cross
13387
13388     
13389 fi
13390
13391   fi
13392   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
13393
13394     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
13395       for ac_func in _log10l
13396 do
13397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13398 echo "configure:13399: checking for $ac_func" >&5
13399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13400   echo $ac_n "(cached) $ac_c" 1>&6
13401 else
13402   cat > conftest.$ac_ext <<EOF
13403 #line 13404 "configure"
13404 #include "confdefs.h"
13405 /* System header to define __stub macros and hopefully few prototypes,
13406     which can conflict with char $ac_func(); below.  */
13407 #include <assert.h>
13408 /* Override any gcc2 internal prototype to avoid an error.  */
13409 /* We use char because int might match the return type of a gcc2
13410     builtin and then its argument prototype would still apply.  */
13411 char $ac_func();
13412
13413 int main() {
13414
13415 /* The GNU C library defines this for functions which it implements
13416     to always fail with ENOSYS.  Some functions are actually named
13417     something starting with __ and the normal name is an alias.  */
13418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13419 choke me
13420 #else
13421 $ac_func();
13422 #endif
13423
13424 ; return 0; }
13425 EOF
13426 if { (eval echo configure:13427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13427   rm -rf conftest*
13428   eval "ac_cv_func_$ac_func=yes"
13429 else
13430   echo "configure: failed program was:" >&5
13431   cat conftest.$ac_ext >&5
13432   rm -rf conftest*
13433   eval "ac_cv_func_$ac_func=no"
13434 fi
13435 rm -f conftest*
13436 fi
13437
13438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13439   echo "$ac_t""yes" 1>&6
13440     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13441   cat >> confdefs.h <<EOF
13442 #define $ac_tr_func 1
13443 EOF
13444  
13445 else
13446   echo "$ac_t""no" 1>&6
13447 fi
13448 done
13449     
13450     fi
13451   fi
13452
13453   
13454   
13455   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
13456 echo "configure:13457: checking for modfl declaration" >&5
13457   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
13458     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
13459   echo $ac_n "(cached) $ac_c" 1>&6
13460 else
13461   
13462       
13463       ac_ext=C
13464 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13465 ac_cpp='$CXXCPP $CPPFLAGS'
13466 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13467 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13468 cross_compiling=$ac_cv_prog_cxx_cross
13469
13470       cat > conftest.$ac_ext <<EOF
13471 #line 13472 "configure"
13472 #include "confdefs.h"
13473 #include <math.h>
13474 int main() {
13475  modfl(0, 0);
13476 ; return 0; }
13477 EOF
13478 if { (eval echo configure:13479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13479   rm -rf conftest*
13480   glibcpp_cv_func_modfl_use=yes
13481 else
13482   echo "configure: failed program was:" >&5
13483   cat conftest.$ac_ext >&5
13484   rm -rf conftest*
13485   glibcpp_cv_func_modfl_use=no
13486 fi
13487 rm -f conftest*
13488       ac_ext=c
13489 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13490 ac_cpp='$CPP $CPPFLAGS'
13491 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13492 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13493 cross_compiling=$ac_cv_prog_cc_cross
13494
13495     
13496 fi
13497
13498   fi
13499   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
13500
13501   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
13502     for ac_func in modfl
13503 do
13504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13505 echo "configure:13506: checking for $ac_func" >&5
13506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13507   echo $ac_n "(cached) $ac_c" 1>&6
13508 else
13509   cat > conftest.$ac_ext <<EOF
13510 #line 13511 "configure"
13511 #include "confdefs.h"
13512 /* System header to define __stub macros and hopefully few prototypes,
13513     which can conflict with char $ac_func(); below.  */
13514 #include <assert.h>
13515 /* Override any gcc2 internal prototype to avoid an error.  */
13516 /* We use char because int might match the return type of a gcc2
13517     builtin and then its argument prototype would still apply.  */
13518 char $ac_func();
13519
13520 int main() {
13521
13522 /* The GNU C library defines this for functions which it implements
13523     to always fail with ENOSYS.  Some functions are actually named
13524     something starting with __ and the normal name is an alias.  */
13525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13526 choke me
13527 #else
13528 $ac_func();
13529 #endif
13530
13531 ; return 0; }
13532 EOF
13533 if { (eval echo configure:13534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13534   rm -rf conftest*
13535   eval "ac_cv_func_$ac_func=yes"
13536 else
13537   echo "configure: failed program was:" >&5
13538   cat conftest.$ac_ext >&5
13539   rm -rf conftest*
13540   eval "ac_cv_func_$ac_func=no"
13541 fi
13542 rm -f conftest*
13543 fi
13544
13545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13546   echo "$ac_t""yes" 1>&6
13547     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13548   cat >> confdefs.h <<EOF
13549 #define $ac_tr_func 1
13550 EOF
13551  
13552 else
13553   echo "$ac_t""no" 1>&6
13554 fi
13555 done
13556     
13557   else
13558     
13559   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
13560 echo "configure:13561: checking for _modfl declaration" >&5
13561   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
13562     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
13563   echo $ac_n "(cached) $ac_c" 1>&6
13564 else
13565   
13566       
13567       ac_ext=C
13568 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13569 ac_cpp='$CXXCPP $CPPFLAGS'
13570 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13571 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13572 cross_compiling=$ac_cv_prog_cxx_cross
13573
13574       cat > conftest.$ac_ext <<EOF
13575 #line 13576 "configure"
13576 #include "confdefs.h"
13577 #include <math.h>
13578 int main() {
13579  _modfl(0, 0);
13580 ; return 0; }
13581 EOF
13582 if { (eval echo configure:13583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13583   rm -rf conftest*
13584   glibcpp_cv_func__modfl_use=yes
13585 else
13586   echo "configure: failed program was:" >&5
13587   cat conftest.$ac_ext >&5
13588   rm -rf conftest*
13589   glibcpp_cv_func__modfl_use=no
13590 fi
13591 rm -f conftest*
13592       ac_ext=c
13593 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13594 ac_cpp='$CPP $CPPFLAGS'
13595 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13596 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13597 cross_compiling=$ac_cv_prog_cc_cross
13598
13599     
13600 fi
13601
13602   fi
13603   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
13604
13605     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
13606       for ac_func in _modfl
13607 do
13608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13609 echo "configure:13610: checking for $ac_func" >&5
13610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13611   echo $ac_n "(cached) $ac_c" 1>&6
13612 else
13613   cat > conftest.$ac_ext <<EOF
13614 #line 13615 "configure"
13615 #include "confdefs.h"
13616 /* System header to define __stub macros and hopefully few prototypes,
13617     which can conflict with char $ac_func(); below.  */
13618 #include <assert.h>
13619 /* Override any gcc2 internal prototype to avoid an error.  */
13620 /* We use char because int might match the return type of a gcc2
13621     builtin and then its argument prototype would still apply.  */
13622 char $ac_func();
13623
13624 int main() {
13625
13626 /* The GNU C library defines this for functions which it implements
13627     to always fail with ENOSYS.  Some functions are actually named
13628     something starting with __ and the normal name is an alias.  */
13629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13630 choke me
13631 #else
13632 $ac_func();
13633 #endif
13634
13635 ; return 0; }
13636 EOF
13637 if { (eval echo configure:13638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13638   rm -rf conftest*
13639   eval "ac_cv_func_$ac_func=yes"
13640 else
13641   echo "configure: failed program was:" >&5
13642   cat conftest.$ac_ext >&5
13643   rm -rf conftest*
13644   eval "ac_cv_func_$ac_func=no"
13645 fi
13646 rm -f conftest*
13647 fi
13648
13649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13650   echo "$ac_t""yes" 1>&6
13651     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13652   cat >> confdefs.h <<EOF
13653 #define $ac_tr_func 1
13654 EOF
13655  
13656 else
13657   echo "$ac_t""no" 1>&6
13658 fi
13659 done
13660     
13661     fi
13662   fi
13663
13664   
13665   
13666   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
13667 echo "configure:13668: checking for powl declaration" >&5
13668   if test x${glibcpp_cv_func_powl_use+set} != xset; then
13669     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
13670   echo $ac_n "(cached) $ac_c" 1>&6
13671 else
13672   
13673       
13674       ac_ext=C
13675 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13676 ac_cpp='$CXXCPP $CPPFLAGS'
13677 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13678 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13679 cross_compiling=$ac_cv_prog_cxx_cross
13680
13681       cat > conftest.$ac_ext <<EOF
13682 #line 13683 "configure"
13683 #include "confdefs.h"
13684 #include <math.h>
13685 int main() {
13686  powl(0, 0);
13687 ; return 0; }
13688 EOF
13689 if { (eval echo configure:13690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13690   rm -rf conftest*
13691   glibcpp_cv_func_powl_use=yes
13692 else
13693   echo "configure: failed program was:" >&5
13694   cat conftest.$ac_ext >&5
13695   rm -rf conftest*
13696   glibcpp_cv_func_powl_use=no
13697 fi
13698 rm -f conftest*
13699       ac_ext=c
13700 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13701 ac_cpp='$CPP $CPPFLAGS'
13702 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13703 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13704 cross_compiling=$ac_cv_prog_cc_cross
13705
13706     
13707 fi
13708
13709   fi
13710   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
13711
13712   if test x$glibcpp_cv_func_powl_use = x"yes"; then
13713     for ac_func in powl
13714 do
13715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13716 echo "configure:13717: checking for $ac_func" >&5
13717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13718   echo $ac_n "(cached) $ac_c" 1>&6
13719 else
13720   cat > conftest.$ac_ext <<EOF
13721 #line 13722 "configure"
13722 #include "confdefs.h"
13723 /* System header to define __stub macros and hopefully few prototypes,
13724     which can conflict with char $ac_func(); below.  */
13725 #include <assert.h>
13726 /* Override any gcc2 internal prototype to avoid an error.  */
13727 /* We use char because int might match the return type of a gcc2
13728     builtin and then its argument prototype would still apply.  */
13729 char $ac_func();
13730
13731 int main() {
13732
13733 /* The GNU C library defines this for functions which it implements
13734     to always fail with ENOSYS.  Some functions are actually named
13735     something starting with __ and the normal name is an alias.  */
13736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13737 choke me
13738 #else
13739 $ac_func();
13740 #endif
13741
13742 ; return 0; }
13743 EOF
13744 if { (eval echo configure:13745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13745   rm -rf conftest*
13746   eval "ac_cv_func_$ac_func=yes"
13747 else
13748   echo "configure: failed program was:" >&5
13749   cat conftest.$ac_ext >&5
13750   rm -rf conftest*
13751   eval "ac_cv_func_$ac_func=no"
13752 fi
13753 rm -f conftest*
13754 fi
13755
13756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13757   echo "$ac_t""yes" 1>&6
13758     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13759   cat >> confdefs.h <<EOF
13760 #define $ac_tr_func 1
13761 EOF
13762  
13763 else
13764   echo "$ac_t""no" 1>&6
13765 fi
13766 done
13767     
13768   else
13769     
13770   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
13771 echo "configure:13772: checking for _powl declaration" >&5
13772   if test x${glibcpp_cv_func__powl_use+set} != xset; then
13773     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
13774   echo $ac_n "(cached) $ac_c" 1>&6
13775 else
13776   
13777       
13778       ac_ext=C
13779 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13780 ac_cpp='$CXXCPP $CPPFLAGS'
13781 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13782 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13783 cross_compiling=$ac_cv_prog_cxx_cross
13784
13785       cat > conftest.$ac_ext <<EOF
13786 #line 13787 "configure"
13787 #include "confdefs.h"
13788 #include <math.h>
13789 int main() {
13790  _powl(0, 0);
13791 ; return 0; }
13792 EOF
13793 if { (eval echo configure:13794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13794   rm -rf conftest*
13795   glibcpp_cv_func__powl_use=yes
13796 else
13797   echo "configure: failed program was:" >&5
13798   cat conftest.$ac_ext >&5
13799   rm -rf conftest*
13800   glibcpp_cv_func__powl_use=no
13801 fi
13802 rm -f conftest*
13803       ac_ext=c
13804 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13805 ac_cpp='$CPP $CPPFLAGS'
13806 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13807 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13808 cross_compiling=$ac_cv_prog_cc_cross
13809
13810     
13811 fi
13812
13813   fi
13814   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
13815
13816     if test x$glibcpp_cv_func__powl_use = x"yes"; then
13817       for ac_func in _powl
13818 do
13819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13820 echo "configure:13821: checking for $ac_func" >&5
13821 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13822   echo $ac_n "(cached) $ac_c" 1>&6
13823 else
13824   cat > conftest.$ac_ext <<EOF
13825 #line 13826 "configure"
13826 #include "confdefs.h"
13827 /* System header to define __stub macros and hopefully few prototypes,
13828     which can conflict with char $ac_func(); below.  */
13829 #include <assert.h>
13830 /* Override any gcc2 internal prototype to avoid an error.  */
13831 /* We use char because int might match the return type of a gcc2
13832     builtin and then its argument prototype would still apply.  */
13833 char $ac_func();
13834
13835 int main() {
13836
13837 /* The GNU C library defines this for functions which it implements
13838     to always fail with ENOSYS.  Some functions are actually named
13839     something starting with __ and the normal name is an alias.  */
13840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13841 choke me
13842 #else
13843 $ac_func();
13844 #endif
13845
13846 ; return 0; }
13847 EOF
13848 if { (eval echo configure:13849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13849   rm -rf conftest*
13850   eval "ac_cv_func_$ac_func=yes"
13851 else
13852   echo "configure: failed program was:" >&5
13853   cat conftest.$ac_ext >&5
13854   rm -rf conftest*
13855   eval "ac_cv_func_$ac_func=no"
13856 fi
13857 rm -f conftest*
13858 fi
13859
13860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13861   echo "$ac_t""yes" 1>&6
13862     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13863   cat >> confdefs.h <<EOF
13864 #define $ac_tr_func 1
13865 EOF
13866  
13867 else
13868   echo "$ac_t""no" 1>&6
13869 fi
13870 done
13871     
13872     fi
13873   fi
13874
13875   
13876   
13877   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
13878 echo "configure:13879: checking for sqrtl declaration" >&5
13879   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
13880     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
13881   echo $ac_n "(cached) $ac_c" 1>&6
13882 else
13883   
13884       
13885       ac_ext=C
13886 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13887 ac_cpp='$CXXCPP $CPPFLAGS'
13888 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13889 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13890 cross_compiling=$ac_cv_prog_cxx_cross
13891
13892       cat > conftest.$ac_ext <<EOF
13893 #line 13894 "configure"
13894 #include "confdefs.h"
13895 #include <math.h>
13896                       #ifdef HAVE_IEEEFP_H
13897                       #include <ieeefp.h>
13898                       #endif
13899                      
13900 int main() {
13901  sqrtl(0);
13902 ; return 0; }
13903 EOF
13904 if { (eval echo configure:13905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13905   rm -rf conftest*
13906   glibcpp_cv_func_sqrtl_use=yes
13907 else
13908   echo "configure: failed program was:" >&5
13909   cat conftest.$ac_ext >&5
13910   rm -rf conftest*
13911   glibcpp_cv_func_sqrtl_use=no
13912 fi
13913 rm -f conftest*
13914       ac_ext=c
13915 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13916 ac_cpp='$CPP $CPPFLAGS'
13917 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13918 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13919 cross_compiling=$ac_cv_prog_cc_cross
13920
13921     
13922 fi
13923
13924   fi
13925   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
13926
13927   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
13928     for ac_func in sqrtl
13929 do
13930 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13931 echo "configure:13932: checking for $ac_func" >&5
13932 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13933   echo $ac_n "(cached) $ac_c" 1>&6
13934 else
13935   cat > conftest.$ac_ext <<EOF
13936 #line 13937 "configure"
13937 #include "confdefs.h"
13938 /* System header to define __stub macros and hopefully few prototypes,
13939     which can conflict with char $ac_func(); below.  */
13940 #include <assert.h>
13941 /* Override any gcc2 internal prototype to avoid an error.  */
13942 /* We use char because int might match the return type of a gcc2
13943     builtin and then its argument prototype would still apply.  */
13944 char $ac_func();
13945
13946 int main() {
13947
13948 /* The GNU C library defines this for functions which it implements
13949     to always fail with ENOSYS.  Some functions are actually named
13950     something starting with __ and the normal name is an alias.  */
13951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13952 choke me
13953 #else
13954 $ac_func();
13955 #endif
13956
13957 ; return 0; }
13958 EOF
13959 if { (eval echo configure:13960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13960   rm -rf conftest*
13961   eval "ac_cv_func_$ac_func=yes"
13962 else
13963   echo "configure: failed program was:" >&5
13964   cat conftest.$ac_ext >&5
13965   rm -rf conftest*
13966   eval "ac_cv_func_$ac_func=no"
13967 fi
13968 rm -f conftest*
13969 fi
13970
13971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13972   echo "$ac_t""yes" 1>&6
13973     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13974   cat >> confdefs.h <<EOF
13975 #define $ac_tr_func 1
13976 EOF
13977  
13978 else
13979   echo "$ac_t""no" 1>&6
13980 fi
13981 done
13982     
13983   else
13984     
13985   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
13986 echo "configure:13987: checking for _sqrtl declaration" >&5
13987   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
13988     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
13989   echo $ac_n "(cached) $ac_c" 1>&6
13990 else
13991   
13992       
13993       ac_ext=C
13994 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13995 ac_cpp='$CXXCPP $CPPFLAGS'
13996 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13997 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13998 cross_compiling=$ac_cv_prog_cxx_cross
13999
14000       cat > conftest.$ac_ext <<EOF
14001 #line 14002 "configure"
14002 #include "confdefs.h"
14003 #include <math.h>
14004                       #ifdef HAVE_IEEEFP_H
14005                       #include <ieeefp.h>
14006                       #endif
14007                      
14008 int main() {
14009  _sqrtl(0);
14010 ; return 0; }
14011 EOF
14012 if { (eval echo configure:14013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14013   rm -rf conftest*
14014   glibcpp_cv_func__sqrtl_use=yes
14015 else
14016   echo "configure: failed program was:" >&5
14017   cat conftest.$ac_ext >&5
14018   rm -rf conftest*
14019   glibcpp_cv_func__sqrtl_use=no
14020 fi
14021 rm -f conftest*
14022       ac_ext=c
14023 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14024 ac_cpp='$CPP $CPPFLAGS'
14025 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14026 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14027 cross_compiling=$ac_cv_prog_cc_cross
14028
14029     
14030 fi
14031
14032   fi
14033   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
14034
14035     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
14036       for ac_func in _sqrtl
14037 do
14038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14039 echo "configure:14040: checking for $ac_func" >&5
14040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14041   echo $ac_n "(cached) $ac_c" 1>&6
14042 else
14043   cat > conftest.$ac_ext <<EOF
14044 #line 14045 "configure"
14045 #include "confdefs.h"
14046 /* System header to define __stub macros and hopefully few prototypes,
14047     which can conflict with char $ac_func(); below.  */
14048 #include <assert.h>
14049 /* Override any gcc2 internal prototype to avoid an error.  */
14050 /* We use char because int might match the return type of a gcc2
14051     builtin and then its argument prototype would still apply.  */
14052 char $ac_func();
14053
14054 int main() {
14055
14056 /* The GNU C library defines this for functions which it implements
14057     to always fail with ENOSYS.  Some functions are actually named
14058     something starting with __ and the normal name is an alias.  */
14059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14060 choke me
14061 #else
14062 $ac_func();
14063 #endif
14064
14065 ; return 0; }
14066 EOF
14067 if { (eval echo configure:14068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14068   rm -rf conftest*
14069   eval "ac_cv_func_$ac_func=yes"
14070 else
14071   echo "configure: failed program was:" >&5
14072   cat conftest.$ac_ext >&5
14073   rm -rf conftest*
14074   eval "ac_cv_func_$ac_func=no"
14075 fi
14076 rm -f conftest*
14077 fi
14078
14079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14080   echo "$ac_t""yes" 1>&6
14081     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14082   cat >> confdefs.h <<EOF
14083 #define $ac_tr_func 1
14084 EOF
14085  
14086 else
14087   echo "$ac_t""no" 1>&6
14088 fi
14089 done
14090     
14091     fi
14092   fi
14093
14094   
14095   
14096   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
14097 echo "configure:14098: checking for sincosl declaration" >&5
14098   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
14099     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
14100   echo $ac_n "(cached) $ac_c" 1>&6
14101 else
14102   
14103       
14104       ac_ext=C
14105 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14106 ac_cpp='$CXXCPP $CPPFLAGS'
14107 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14108 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14109 cross_compiling=$ac_cv_prog_cxx_cross
14110
14111       cat > conftest.$ac_ext <<EOF
14112 #line 14113 "configure"
14113 #include "confdefs.h"
14114 #include <math.h>
14115 int main() {
14116  sincosl(0, 0, 0);
14117 ; return 0; }
14118 EOF
14119 if { (eval echo configure:14120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14120   rm -rf conftest*
14121   glibcpp_cv_func_sincosl_use=yes
14122 else
14123   echo "configure: failed program was:" >&5
14124   cat conftest.$ac_ext >&5
14125   rm -rf conftest*
14126   glibcpp_cv_func_sincosl_use=no
14127 fi
14128 rm -f conftest*
14129       ac_ext=c
14130 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14131 ac_cpp='$CPP $CPPFLAGS'
14132 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14133 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14134 cross_compiling=$ac_cv_prog_cc_cross
14135
14136     
14137 fi
14138
14139   fi
14140   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
14141
14142   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
14143     for ac_func in sincosl
14144 do
14145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14146 echo "configure:14147: checking for $ac_func" >&5
14147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14148   echo $ac_n "(cached) $ac_c" 1>&6
14149 else
14150   cat > conftest.$ac_ext <<EOF
14151 #line 14152 "configure"
14152 #include "confdefs.h"
14153 /* System header to define __stub macros and hopefully few prototypes,
14154     which can conflict with char $ac_func(); below.  */
14155 #include <assert.h>
14156 /* Override any gcc2 internal prototype to avoid an error.  */
14157 /* We use char because int might match the return type of a gcc2
14158     builtin and then its argument prototype would still apply.  */
14159 char $ac_func();
14160
14161 int main() {
14162
14163 /* The GNU C library defines this for functions which it implements
14164     to always fail with ENOSYS.  Some functions are actually named
14165     something starting with __ and the normal name is an alias.  */
14166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14167 choke me
14168 #else
14169 $ac_func();
14170 #endif
14171
14172 ; return 0; }
14173 EOF
14174 if { (eval echo configure:14175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14175   rm -rf conftest*
14176   eval "ac_cv_func_$ac_func=yes"
14177 else
14178   echo "configure: failed program was:" >&5
14179   cat conftest.$ac_ext >&5
14180   rm -rf conftest*
14181   eval "ac_cv_func_$ac_func=no"
14182 fi
14183 rm -f conftest*
14184 fi
14185
14186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14187   echo "$ac_t""yes" 1>&6
14188     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14189   cat >> confdefs.h <<EOF
14190 #define $ac_tr_func 1
14191 EOF
14192  
14193 else
14194   echo "$ac_t""no" 1>&6
14195 fi
14196 done
14197     
14198   else
14199     
14200   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
14201 echo "configure:14202: checking for _sincosl declaration" >&5
14202   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
14203     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
14204   echo $ac_n "(cached) $ac_c" 1>&6
14205 else
14206   
14207       
14208       ac_ext=C
14209 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14210 ac_cpp='$CXXCPP $CPPFLAGS'
14211 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14212 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14213 cross_compiling=$ac_cv_prog_cxx_cross
14214
14215       cat > conftest.$ac_ext <<EOF
14216 #line 14217 "configure"
14217 #include "confdefs.h"
14218 #include <math.h>
14219 int main() {
14220  _sincosl(0, 0, 0);
14221 ; return 0; }
14222 EOF
14223 if { (eval echo configure:14224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14224   rm -rf conftest*
14225   glibcpp_cv_func__sincosl_use=yes
14226 else
14227   echo "configure: failed program was:" >&5
14228   cat conftest.$ac_ext >&5
14229   rm -rf conftest*
14230   glibcpp_cv_func__sincosl_use=no
14231 fi
14232 rm -f conftest*
14233       ac_ext=c
14234 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14235 ac_cpp='$CPP $CPPFLAGS'
14236 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14237 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14238 cross_compiling=$ac_cv_prog_cc_cross
14239
14240     
14241 fi
14242
14243   fi
14244   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
14245
14246     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
14247       for ac_func in _sincosl
14248 do
14249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14250 echo "configure:14251: checking for $ac_func" >&5
14251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14252   echo $ac_n "(cached) $ac_c" 1>&6
14253 else
14254   cat > conftest.$ac_ext <<EOF
14255 #line 14256 "configure"
14256 #include "confdefs.h"
14257 /* System header to define __stub macros and hopefully few prototypes,
14258     which can conflict with char $ac_func(); below.  */
14259 #include <assert.h>
14260 /* Override any gcc2 internal prototype to avoid an error.  */
14261 /* We use char because int might match the return type of a gcc2
14262     builtin and then its argument prototype would still apply.  */
14263 char $ac_func();
14264
14265 int main() {
14266
14267 /* The GNU C library defines this for functions which it implements
14268     to always fail with ENOSYS.  Some functions are actually named
14269     something starting with __ and the normal name is an alias.  */
14270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14271 choke me
14272 #else
14273 $ac_func();
14274 #endif
14275
14276 ; return 0; }
14277 EOF
14278 if { (eval echo configure:14279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14279   rm -rf conftest*
14280   eval "ac_cv_func_$ac_func=yes"
14281 else
14282   echo "configure: failed program was:" >&5
14283   cat conftest.$ac_ext >&5
14284   rm -rf conftest*
14285   eval "ac_cv_func_$ac_func=no"
14286 fi
14287 rm -f conftest*
14288 fi
14289
14290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14291   echo "$ac_t""yes" 1>&6
14292     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14293   cat >> confdefs.h <<EOF
14294 #define $ac_tr_func 1
14295 EOF
14296  
14297 else
14298   echo "$ac_t""no" 1>&6
14299 fi
14300 done
14301     
14302     fi
14303   fi
14304
14305   
14306   
14307   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
14308 echo "configure:14309: checking for finitel declaration" >&5
14309   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
14310     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
14311   echo $ac_n "(cached) $ac_c" 1>&6
14312 else
14313   
14314       
14315       ac_ext=C
14316 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14317 ac_cpp='$CXXCPP $CPPFLAGS'
14318 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14319 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14320 cross_compiling=$ac_cv_prog_cxx_cross
14321
14322       cat > conftest.$ac_ext <<EOF
14323 #line 14324 "configure"
14324 #include "confdefs.h"
14325 #include <math.h>
14326                       #ifdef HAVE_IEEEFP_H
14327                       #include <ieeefp.h>
14328                       #endif
14329                      
14330 int main() {
14331  finitel(0);
14332 ; return 0; }
14333 EOF
14334 if { (eval echo configure:14335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14335   rm -rf conftest*
14336   glibcpp_cv_func_finitel_use=yes
14337 else
14338   echo "configure: failed program was:" >&5
14339   cat conftest.$ac_ext >&5
14340   rm -rf conftest*
14341   glibcpp_cv_func_finitel_use=no
14342 fi
14343 rm -f conftest*
14344       ac_ext=c
14345 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14346 ac_cpp='$CPP $CPPFLAGS'
14347 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14348 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14349 cross_compiling=$ac_cv_prog_cc_cross
14350
14351     
14352 fi
14353
14354   fi
14355   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
14356
14357   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
14358     for ac_func in finitel
14359 do
14360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14361 echo "configure:14362: checking for $ac_func" >&5
14362 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14363   echo $ac_n "(cached) $ac_c" 1>&6
14364 else
14365   cat > conftest.$ac_ext <<EOF
14366 #line 14367 "configure"
14367 #include "confdefs.h"
14368 /* System header to define __stub macros and hopefully few prototypes,
14369     which can conflict with char $ac_func(); below.  */
14370 #include <assert.h>
14371 /* Override any gcc2 internal prototype to avoid an error.  */
14372 /* We use char because int might match the return type of a gcc2
14373     builtin and then its argument prototype would still apply.  */
14374 char $ac_func();
14375
14376 int main() {
14377
14378 /* The GNU C library defines this for functions which it implements
14379     to always fail with ENOSYS.  Some functions are actually named
14380     something starting with __ and the normal name is an alias.  */
14381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14382 choke me
14383 #else
14384 $ac_func();
14385 #endif
14386
14387 ; return 0; }
14388 EOF
14389 if { (eval echo configure:14390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14390   rm -rf conftest*
14391   eval "ac_cv_func_$ac_func=yes"
14392 else
14393   echo "configure: failed program was:" >&5
14394   cat conftest.$ac_ext >&5
14395   rm -rf conftest*
14396   eval "ac_cv_func_$ac_func=no"
14397 fi
14398 rm -f conftest*
14399 fi
14400
14401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14402   echo "$ac_t""yes" 1>&6
14403     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14404   cat >> confdefs.h <<EOF
14405 #define $ac_tr_func 1
14406 EOF
14407  
14408 else
14409   echo "$ac_t""no" 1>&6
14410 fi
14411 done
14412     
14413   else
14414     
14415   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
14416 echo "configure:14417: checking for _finitel declaration" >&5
14417   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
14418     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
14419   echo $ac_n "(cached) $ac_c" 1>&6
14420 else
14421   
14422       
14423       ac_ext=C
14424 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14425 ac_cpp='$CXXCPP $CPPFLAGS'
14426 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14427 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14428 cross_compiling=$ac_cv_prog_cxx_cross
14429
14430       cat > conftest.$ac_ext <<EOF
14431 #line 14432 "configure"
14432 #include "confdefs.h"
14433 #include <math.h>
14434                       #ifdef HAVE_IEEEFP_H
14435                       #include <ieeefp.h>
14436                       #endif
14437                      
14438 int main() {
14439  _finitel(0);
14440 ; return 0; }
14441 EOF
14442 if { (eval echo configure:14443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14443   rm -rf conftest*
14444   glibcpp_cv_func__finitel_use=yes
14445 else
14446   echo "configure: failed program was:" >&5
14447   cat conftest.$ac_ext >&5
14448   rm -rf conftest*
14449   glibcpp_cv_func__finitel_use=no
14450 fi
14451 rm -f conftest*
14452       ac_ext=c
14453 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14454 ac_cpp='$CPP $CPPFLAGS'
14455 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14456 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14457 cross_compiling=$ac_cv_prog_cc_cross
14458
14459     
14460 fi
14461
14462   fi
14463   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
14464
14465     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
14466       for ac_func in _finitel
14467 do
14468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14469 echo "configure:14470: checking for $ac_func" >&5
14470 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14471   echo $ac_n "(cached) $ac_c" 1>&6
14472 else
14473   cat > conftest.$ac_ext <<EOF
14474 #line 14475 "configure"
14475 #include "confdefs.h"
14476 /* System header to define __stub macros and hopefully few prototypes,
14477     which can conflict with char $ac_func(); below.  */
14478 #include <assert.h>
14479 /* Override any gcc2 internal prototype to avoid an error.  */
14480 /* We use char because int might match the return type of a gcc2
14481     builtin and then its argument prototype would still apply.  */
14482 char $ac_func();
14483
14484 int main() {
14485
14486 /* The GNU C library defines this for functions which it implements
14487     to always fail with ENOSYS.  Some functions are actually named
14488     something starting with __ and the normal name is an alias.  */
14489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14490 choke me
14491 #else
14492 $ac_func();
14493 #endif
14494
14495 ; return 0; }
14496 EOF
14497 if { (eval echo configure:14498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14498   rm -rf conftest*
14499   eval "ac_cv_func_$ac_func=yes"
14500 else
14501   echo "configure: failed program was:" >&5
14502   cat conftest.$ac_ext >&5
14503   rm -rf conftest*
14504   eval "ac_cv_func_$ac_func=no"
14505 fi
14506 rm -f conftest*
14507 fi
14508
14509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14510   echo "$ac_t""yes" 1>&6
14511     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14512   cat >> confdefs.h <<EOF
14513 #define $ac_tr_func 1
14514 EOF
14515  
14516 else
14517   echo "$ac_t""no" 1>&6
14518 fi
14519 done
14520     
14521     fi
14522   fi
14523
14524
14525         
14526     
14527   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
14528 echo "configure:14529: checking for _float trig functions" >&5
14529   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
14530   echo $ac_n "(cached) $ac_c" 1>&6
14531 else
14532   
14533     
14534     ac_ext=C
14535 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14536 ac_cpp='$CXXCPP $CPPFLAGS'
14537 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14538 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14539 cross_compiling=$ac_cv_prog_cxx_cross
14540
14541     cat > conftest.$ac_ext <<EOF
14542 #line 14543 "configure"
14543 #include "confdefs.h"
14544 #include <math.h>
14545 int main() {
14546  `for x in _acosf _asinf _atanf \
14547                                           _cosf _sinf _tanf \
14548                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
14549 ; return 0; }
14550 EOF
14551 if { (eval echo configure:14552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14552   rm -rf conftest*
14553   glibcpp_cv_func__float_trig_use=yes
14554 else
14555   echo "configure: failed program was:" >&5
14556   cat conftest.$ac_ext >&5
14557   rm -rf conftest*
14558   glibcpp_cv_func__float_trig_use=no
14559 fi
14560 rm -f conftest*
14561     ac_ext=c
14562 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14563 ac_cpp='$CPP $CPPFLAGS'
14564 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14565 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14566 cross_compiling=$ac_cv_prog_cc_cross
14567
14568 fi
14569
14570   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
14571   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
14572     for ac_func in _acosf _asinf _atanf \
14573                                           _cosf _sinf _tanf \
14574                                           _coshf _sinhf _tanhf
14575 do
14576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14577 echo "configure:14578: checking for $ac_func" >&5
14578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14579   echo $ac_n "(cached) $ac_c" 1>&6
14580 else
14581   cat > conftest.$ac_ext <<EOF
14582 #line 14583 "configure"
14583 #include "confdefs.h"
14584 /* System header to define __stub macros and hopefully few prototypes,
14585     which can conflict with char $ac_func(); below.  */
14586 #include <assert.h>
14587 /* Override any gcc2 internal prototype to avoid an error.  */
14588 /* We use char because int might match the return type of a gcc2
14589     builtin and then its argument prototype would still apply.  */
14590 char $ac_func();
14591
14592 int main() {
14593
14594 /* The GNU C library defines this for functions which it implements
14595     to always fail with ENOSYS.  Some functions are actually named
14596     something starting with __ and the normal name is an alias.  */
14597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14598 choke me
14599 #else
14600 $ac_func();
14601 #endif
14602
14603 ; return 0; }
14604 EOF
14605 if { (eval echo configure:14606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14606   rm -rf conftest*
14607   eval "ac_cv_func_$ac_func=yes"
14608 else
14609   echo "configure: failed program was:" >&5
14610   cat conftest.$ac_ext >&5
14611   rm -rf conftest*
14612   eval "ac_cv_func_$ac_func=no"
14613 fi
14614 rm -f conftest*
14615 fi
14616
14617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14618   echo "$ac_t""yes" 1>&6
14619     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14620   cat >> confdefs.h <<EOF
14621 #define $ac_tr_func 1
14622 EOF
14623  
14624 else
14625   echo "$ac_t""no" 1>&6
14626 fi
14627 done
14628
14629   fi
14630
14631   
14632   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
14633 echo "configure:14634: checking for _float round functions" >&5
14634   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
14635   echo $ac_n "(cached) $ac_c" 1>&6
14636 else
14637   
14638     
14639     ac_ext=C
14640 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14641 ac_cpp='$CXXCPP $CPPFLAGS'
14642 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14643 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14644 cross_compiling=$ac_cv_prog_cxx_cross
14645
14646     cat > conftest.$ac_ext <<EOF
14647 #line 14648 "configure"
14648 #include "confdefs.h"
14649 #include <math.h>
14650 int main() {
14651  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
14652 ; return 0; }
14653 EOF
14654 if { (eval echo configure:14655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14655   rm -rf conftest*
14656   glibcpp_cv_func__float_round_use=yes
14657 else
14658   echo "configure: failed program was:" >&5
14659   cat conftest.$ac_ext >&5
14660   rm -rf conftest*
14661   glibcpp_cv_func__float_round_use=no
14662 fi
14663 rm -f conftest*
14664     ac_ext=c
14665 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14666 ac_cpp='$CPP $CPPFLAGS'
14667 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14668 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14669 cross_compiling=$ac_cv_prog_cc_cross
14670
14671 fi
14672
14673   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
14674   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
14675     for ac_func in _ceilf _floorf
14676 do
14677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14678 echo "configure:14679: checking for $ac_func" >&5
14679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14680   echo $ac_n "(cached) $ac_c" 1>&6
14681 else
14682   cat > conftest.$ac_ext <<EOF
14683 #line 14684 "configure"
14684 #include "confdefs.h"
14685 /* System header to define __stub macros and hopefully few prototypes,
14686     which can conflict with char $ac_func(); below.  */
14687 #include <assert.h>
14688 /* Override any gcc2 internal prototype to avoid an error.  */
14689 /* We use char because int might match the return type of a gcc2
14690     builtin and then its argument prototype would still apply.  */
14691 char $ac_func();
14692
14693 int main() {
14694
14695 /* The GNU C library defines this for functions which it implements
14696     to always fail with ENOSYS.  Some functions are actually named
14697     something starting with __ and the normal name is an alias.  */
14698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14699 choke me
14700 #else
14701 $ac_func();
14702 #endif
14703
14704 ; return 0; }
14705 EOF
14706 if { (eval echo configure:14707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14707   rm -rf conftest*
14708   eval "ac_cv_func_$ac_func=yes"
14709 else
14710   echo "configure: failed program was:" >&5
14711   cat conftest.$ac_ext >&5
14712   rm -rf conftest*
14713   eval "ac_cv_func_$ac_func=no"
14714 fi
14715 rm -f conftest*
14716 fi
14717
14718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14719   echo "$ac_t""yes" 1>&6
14720     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14721   cat >> confdefs.h <<EOF
14722 #define $ac_tr_func 1
14723 EOF
14724  
14725 else
14726   echo "$ac_t""no" 1>&6
14727 fi
14728 done
14729
14730   fi
14731
14732
14733     
14734   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
14735 echo "configure:14736: checking for _long double trig functions" >&5
14736   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
14737   echo $ac_n "(cached) $ac_c" 1>&6
14738 else
14739   
14740     
14741     ac_ext=C
14742 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14743 ac_cpp='$CXXCPP $CPPFLAGS'
14744 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14745 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14746 cross_compiling=$ac_cv_prog_cxx_cross
14747
14748     cat > conftest.$ac_ext <<EOF
14749 #line 14750 "configure"
14750 #include "confdefs.h"
14751 #include <math.h>
14752 int main() {
14753  `for x in _acosl _asinl _atanl \
14754                                           _cosl _sinl _tanl \
14755                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
14756 ; return 0; }
14757 EOF
14758 if { (eval echo configure:14759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14759   rm -rf conftest*
14760   glibcpp_cv_func__long_double_trig_use=yes
14761 else
14762   echo "configure: failed program was:" >&5
14763   cat conftest.$ac_ext >&5
14764   rm -rf conftest*
14765   glibcpp_cv_func__long_double_trig_use=no
14766 fi
14767 rm -f conftest*
14768     ac_ext=c
14769 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14770 ac_cpp='$CPP $CPPFLAGS'
14771 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14772 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14773 cross_compiling=$ac_cv_prog_cc_cross
14774
14775 fi
14776
14777   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
14778   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
14779     for ac_func in _acosl _asinl _atanl \
14780                                           _cosl _sinl _tanl \
14781                                           _coshl _sinhl _tanhl
14782 do
14783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14784 echo "configure:14785: checking for $ac_func" >&5
14785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14786   echo $ac_n "(cached) $ac_c" 1>&6
14787 else
14788   cat > conftest.$ac_ext <<EOF
14789 #line 14790 "configure"
14790 #include "confdefs.h"
14791 /* System header to define __stub macros and hopefully few prototypes,
14792     which can conflict with char $ac_func(); below.  */
14793 #include <assert.h>
14794 /* Override any gcc2 internal prototype to avoid an error.  */
14795 /* We use char because int might match the return type of a gcc2
14796     builtin and then its argument prototype would still apply.  */
14797 char $ac_func();
14798
14799 int main() {
14800
14801 /* The GNU C library defines this for functions which it implements
14802     to always fail with ENOSYS.  Some functions are actually named
14803     something starting with __ and the normal name is an alias.  */
14804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14805 choke me
14806 #else
14807 $ac_func();
14808 #endif
14809
14810 ; return 0; }
14811 EOF
14812 if { (eval echo configure:14813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14813   rm -rf conftest*
14814   eval "ac_cv_func_$ac_func=yes"
14815 else
14816   echo "configure: failed program was:" >&5
14817   cat conftest.$ac_ext >&5
14818   rm -rf conftest*
14819   eval "ac_cv_func_$ac_func=no"
14820 fi
14821 rm -f conftest*
14822 fi
14823
14824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14825   echo "$ac_t""yes" 1>&6
14826     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14827   cat >> confdefs.h <<EOF
14828 #define $ac_tr_func 1
14829 EOF
14830  
14831 else
14832   echo "$ac_t""no" 1>&6
14833 fi
14834 done
14835
14836   fi
14837
14838   
14839   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
14840 echo "configure:14841: checking for _long double round functions" >&5
14841   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
14842   echo $ac_n "(cached) $ac_c" 1>&6
14843 else
14844   
14845     
14846     ac_ext=C
14847 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14848 ac_cpp='$CXXCPP $CPPFLAGS'
14849 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14850 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14851 cross_compiling=$ac_cv_prog_cxx_cross
14852
14853     cat > conftest.$ac_ext <<EOF
14854 #line 14855 "configure"
14855 #include "confdefs.h"
14856 #include <math.h>
14857 int main() {
14858  `for x in _ceill _floorl; do echo "$x (0);"; done` 
14859 ; return 0; }
14860 EOF
14861 if { (eval echo configure:14862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14862   rm -rf conftest*
14863   glibcpp_cv_func__long_double_round_use=yes
14864 else
14865   echo "configure: failed program was:" >&5
14866   cat conftest.$ac_ext >&5
14867   rm -rf conftest*
14868   glibcpp_cv_func__long_double_round_use=no
14869 fi
14870 rm -f conftest*
14871     ac_ext=c
14872 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14873 ac_cpp='$CPP $CPPFLAGS'
14874 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14875 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14876 cross_compiling=$ac_cv_prog_cc_cross
14877
14878 fi
14879
14880   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
14881   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
14882     for ac_func in _ceill _floorl
14883 do
14884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14885 echo "configure:14886: checking for $ac_func" >&5
14886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14887   echo $ac_n "(cached) $ac_c" 1>&6
14888 else
14889   cat > conftest.$ac_ext <<EOF
14890 #line 14891 "configure"
14891 #include "confdefs.h"
14892 /* System header to define __stub macros and hopefully few prototypes,
14893     which can conflict with char $ac_func(); below.  */
14894 #include <assert.h>
14895 /* Override any gcc2 internal prototype to avoid an error.  */
14896 /* We use char because int might match the return type of a gcc2
14897     builtin and then its argument prototype would still apply.  */
14898 char $ac_func();
14899
14900 int main() {
14901
14902 /* The GNU C library defines this for functions which it implements
14903     to always fail with ENOSYS.  Some functions are actually named
14904     something starting with __ and the normal name is an alias.  */
14905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14906 choke me
14907 #else
14908 $ac_func();
14909 #endif
14910
14911 ; return 0; }
14912 EOF
14913 if { (eval echo configure:14914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14914   rm -rf conftest*
14915   eval "ac_cv_func_$ac_func=yes"
14916 else
14917   echo "configure: failed program was:" >&5
14918   cat conftest.$ac_ext >&5
14919   rm -rf conftest*
14920   eval "ac_cv_func_$ac_func=no"
14921 fi
14922 rm -f conftest*
14923 fi
14924
14925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14926   echo "$ac_t""yes" 1>&6
14927     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14928   cat >> confdefs.h <<EOF
14929 #define $ac_tr_func 1
14930 EOF
14931  
14932 else
14933   echo "$ac_t""no" 1>&6
14934 fi
14935 done
14936
14937   fi
14938
14939
14940   LIBS="$ac_save_LIBS"
14941   CXXFLAGS="$ac_save_CXXFLAGS"
14942
14943   
14944     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
14945 echo "configure:14946: checking for main in -lm" >&5
14946 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
14947 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14948   echo $ac_n "(cached) $ac_c" 1>&6
14949 else
14950   ac_save_LIBS="$LIBS"
14951 LIBS="-lm  $LIBS"
14952 cat > conftest.$ac_ext <<EOF
14953 #line 14954 "configure"
14954 #include "confdefs.h"
14955
14956 int main() {
14957 main()
14958 ; return 0; }
14959 EOF
14960 if { (eval echo configure:14961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14961   rm -rf conftest*
14962   eval "ac_cv_lib_$ac_lib_var=yes"
14963 else
14964   echo "configure: failed program was:" >&5
14965   cat conftest.$ac_ext >&5
14966   rm -rf conftest*
14967   eval "ac_cv_lib_$ac_lib_var=no"
14968 fi
14969 rm -f conftest*
14970 LIBS="$ac_save_LIBS"
14971
14972 fi
14973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14974   echo "$ac_t""yes" 1>&6
14975     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14976     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14977   cat >> confdefs.h <<EOF
14978 #define $ac_tr_lib 1
14979 EOF
14980
14981   LIBS="-lm $LIBS"
14982
14983 else
14984   echo "$ac_t""no" 1>&6
14985 fi
14986
14987   for ac_func in nan hypot hypotf copysignf
14988 do
14989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14990 echo "configure:14991: checking for $ac_func" >&5
14991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14992   echo $ac_n "(cached) $ac_c" 1>&6
14993 else
14994   cat > conftest.$ac_ext <<EOF
14995 #line 14996 "configure"
14996 #include "confdefs.h"
14997 /* System header to define __stub macros and hopefully few prototypes,
14998     which can conflict with char $ac_func(); below.  */
14999 #include <assert.h>
15000 /* Override any gcc2 internal prototype to avoid an error.  */
15001 /* We use char because int might match the return type of a gcc2
15002     builtin and then its argument prototype would still apply.  */
15003 char $ac_func();
15004
15005 int main() {
15006
15007 /* The GNU C library defines this for functions which it implements
15008     to always fail with ENOSYS.  Some functions are actually named
15009     something starting with __ and the normal name is an alias.  */
15010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15011 choke me
15012 #else
15013 $ac_func();
15014 #endif
15015
15016 ; return 0; }
15017 EOF
15018 if { (eval echo configure:15019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15019   rm -rf conftest*
15020   eval "ac_cv_func_$ac_func=yes"
15021 else
15022   echo "configure: failed program was:" >&5
15023   cat conftest.$ac_ext >&5
15024   rm -rf conftest*
15025   eval "ac_cv_func_$ac_func=no"
15026 fi
15027 rm -f conftest*
15028 fi
15029
15030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15031   echo "$ac_t""yes" 1>&6
15032     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15033   cat >> confdefs.h <<EOF
15034 #define $ac_tr_func 1
15035 EOF
15036  
15037 else
15038   echo "$ac_t""no" 1>&6
15039 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15040 fi
15041 done
15042
15043
15044
15045           USE_COMPLEX_LONG_DOUBLE=no
15046   if test x$ac_cv_func_atan2l = x"yes" &&
15047      test x$ac_cv_func_copysignl = x"yes"; then
15048     USE_COMPLEX_LONG_DOUBLE=yes
15049     for ac_func in hypotl signbitl
15050 do
15051 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15052 echo "configure:15053: checking for $ac_func" >&5
15053 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15054   echo $ac_n "(cached) $ac_c" 1>&6
15055 else
15056   cat > conftest.$ac_ext <<EOF
15057 #line 15058 "configure"
15058 #include "confdefs.h"
15059 /* System header to define __stub macros and hopefully few prototypes,
15060     which can conflict with char $ac_func(); below.  */
15061 #include <assert.h>
15062 /* Override any gcc2 internal prototype to avoid an error.  */
15063 /* We use char because int might match the return type of a gcc2
15064     builtin and then its argument prototype would still apply.  */
15065 char $ac_func();
15066
15067 int main() {
15068
15069 /* The GNU C library defines this for functions which it implements
15070     to always fail with ENOSYS.  Some functions are actually named
15071     something starting with __ and the normal name is an alias.  */
15072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15073 choke me
15074 #else
15075 $ac_func();
15076 #endif
15077
15078 ; return 0; }
15079 EOF
15080 if { (eval echo configure:15081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15081   rm -rf conftest*
15082   eval "ac_cv_func_$ac_func=yes"
15083 else
15084   echo "configure: failed program was:" >&5
15085   cat conftest.$ac_ext >&5
15086   rm -rf conftest*
15087   eval "ac_cv_func_$ac_func=no"
15088 fi
15089 rm -f conftest*
15090 fi
15091
15092 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15093   echo "$ac_t""yes" 1>&6
15094     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15095   cat >> confdefs.h <<EOF
15096 #define $ac_tr_func 1
15097 EOF
15098  
15099 else
15100   echo "$ac_t""no" 1>&6
15101 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15102 fi
15103 done
15104
15105
15106   fi
15107
15108   
15109
15110   
15111
15112       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
15113 echo "configure:15114: checking for mbstate_t" >&5
15114   cat > conftest.$ac_ext <<EOF
15115 #line 15116 "configure"
15116 #include "confdefs.h"
15117 #include <wchar.h>
15118 int main() {
15119 mbstate_t teststate;
15120 ; return 0; }
15121 EOF
15122 if { (eval echo configure:15123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15123   rm -rf conftest*
15124   have_mbstate_t=yes
15125 else
15126   echo "configure: failed program was:" >&5
15127   cat conftest.$ac_ext >&5
15128   rm -rf conftest*
15129   have_mbstate_t=no
15130 fi
15131 rm -f conftest*
15132   echo "$ac_t""$have_mbstate_t" 1>&6
15133   if test x"$have_mbstate_t" = xyes; then
15134     cat >> confdefs.h <<\EOF
15135 #define HAVE_MBSTATE_T 1
15136 EOF
15137
15138   fi
15139
15140     for ac_hdr in wchar.h
15141 do
15142 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15143 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15144 echo "configure:15145: checking for $ac_hdr" >&5
15145 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15146   echo $ac_n "(cached) $ac_c" 1>&6
15147 else
15148   cat > conftest.$ac_ext <<EOF
15149 #line 15150 "configure"
15150 #include "confdefs.h"
15151 #include <$ac_hdr>
15152 EOF
15153 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15154 { (eval echo configure:15155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15155 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15156 if test -z "$ac_err"; then
15157   rm -rf conftest*
15158   eval "ac_cv_header_$ac_safe=yes"
15159 else
15160   echo "$ac_err" >&5
15161   echo "configure: failed program was:" >&5
15162   cat conftest.$ac_ext >&5
15163   rm -rf conftest*
15164   eval "ac_cv_header_$ac_safe=no"
15165 fi
15166 rm -f conftest*
15167 fi
15168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15169   echo "$ac_t""yes" 1>&6
15170     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15171   cat >> confdefs.h <<EOF
15172 #define $ac_tr_hdr 1
15173 EOF
15174  ac_has_wchar_h=yes
15175 else
15176   echo "$ac_t""no" 1>&6
15177 ac_has_wchar_h=no
15178 fi
15179 done
15180
15181   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
15182 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
15183 echo "configure:15184: checking for wctype.h" >&5
15184 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15185   echo $ac_n "(cached) $ac_c" 1>&6
15186 else
15187   cat > conftest.$ac_ext <<EOF
15188 #line 15189 "configure"
15189 #include "confdefs.h"
15190 #include <wctype.h>
15191 EOF
15192 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15193 { (eval echo configure:15194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15194 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15195 if test -z "$ac_err"; then
15196   rm -rf conftest*
15197   eval "ac_cv_header_$ac_safe=yes"
15198 else
15199   echo "$ac_err" >&5
15200   echo "configure: failed program was:" >&5
15201   cat conftest.$ac_ext >&5
15202   rm -rf conftest*
15203   eval "ac_cv_header_$ac_safe=no"
15204 fi
15205 rm -f conftest*
15206 fi
15207 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15208   echo "$ac_t""yes" 1>&6
15209   ac_has_wctype_h=yes
15210 else
15211   echo "$ac_t""no" 1>&6
15212 ac_has_wctype_h=no
15213 fi
15214
15215   
15216     if test x"$ac_has_wchar_h" = xyes &&
15217      test x"$ac_has_wctype_h" = xyes &&
15218      test x"$enable_c_mbchar" != xno; then
15219       
15220             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
15221 echo "configure:15222: checking for WCHAR_MIN and WCHAR_MAX" >&5
15222     cat > conftest.$ac_ext <<EOF
15223 #line 15224 "configure"
15224 #include "confdefs.h"
15225 #include <wchar.h>
15226 int main() {
15227 int i = WCHAR_MIN; int j = WCHAR_MAX;
15228 ; return 0; }
15229 EOF
15230 if { (eval echo configure:15231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15231   rm -rf conftest*
15232   has_wchar_minmax=yes
15233 else
15234   echo "configure: failed program was:" >&5
15235   cat conftest.$ac_ext >&5
15236   rm -rf conftest*
15237   has_wchar_minmax=no
15238 fi
15239 rm -f conftest*
15240     echo "$ac_t""$has_wchar_minmax" 1>&6
15241     
15242             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
15243 echo "configure:15244: checking for WEOF" >&5
15244     cat > conftest.$ac_ext <<EOF
15245 #line 15246 "configure"
15246 #include "confdefs.h"
15247
15248       #include <wchar.h>
15249       #include <stddef.h>
15250 int main() {
15251 wint_t i = WEOF;
15252 ; return 0; }
15253 EOF
15254 if { (eval echo configure:15255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15255   rm -rf conftest*
15256   has_weof=yes
15257 else
15258   echo "configure: failed program was:" >&5
15259   cat conftest.$ac_ext >&5
15260   rm -rf conftest*
15261   has_weof=no
15262 fi
15263 rm -f conftest*
15264     echo "$ac_t""$has_weof" 1>&6
15265   
15266         ac_wfuncs=yes
15267     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
15268 do
15269 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15270 echo "configure:15271: checking for $ac_func" >&5
15271 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15272   echo $ac_n "(cached) $ac_c" 1>&6
15273 else
15274   cat > conftest.$ac_ext <<EOF
15275 #line 15276 "configure"
15276 #include "confdefs.h"
15277 /* System header to define __stub macros and hopefully few prototypes,
15278     which can conflict with char $ac_func(); below.  */
15279 #include <assert.h>
15280 /* Override any gcc2 internal prototype to avoid an error.  */
15281 /* We use char because int might match the return type of a gcc2
15282     builtin and then its argument prototype would still apply.  */
15283 char $ac_func();
15284
15285 int main() {
15286
15287 /* The GNU C library defines this for functions which it implements
15288     to always fail with ENOSYS.  Some functions are actually named
15289     something starting with __ and the normal name is an alias.  */
15290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15291 choke me
15292 #else
15293 $ac_func();
15294 #endif
15295
15296 ; return 0; }
15297 EOF
15298 if { (eval echo configure:15299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15299   rm -rf conftest*
15300   eval "ac_cv_func_$ac_func=yes"
15301 else
15302   echo "configure: failed program was:" >&5
15303   cat conftest.$ac_ext >&5
15304   rm -rf conftest*
15305   eval "ac_cv_func_$ac_func=no"
15306 fi
15307 rm -f conftest*
15308 fi
15309
15310 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15311   echo "$ac_t""yes" 1>&6
15312     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15313   cat >> confdefs.h <<EOF
15314 #define $ac_tr_func 1
15315 EOF
15316  
15317 else
15318   echo "$ac_t""no" 1>&6
15319 \
15320     ac_wfuncs=no
15321 fi
15322 done
15323
15324   
15325         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
15326     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
15327     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
15328     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
15329     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
15330     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
15331 do
15332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15333 echo "configure:15334: checking for $ac_func" >&5
15334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15335   echo $ac_n "(cached) $ac_c" 1>&6
15336 else
15337   cat > conftest.$ac_ext <<EOF
15338 #line 15339 "configure"
15339 #include "confdefs.h"
15340 /* System header to define __stub macros and hopefully few prototypes,
15341     which can conflict with char $ac_func(); below.  */
15342 #include <assert.h>
15343 /* Override any gcc2 internal prototype to avoid an error.  */
15344 /* We use char because int might match the return type of a gcc2
15345     builtin and then its argument prototype would still apply.  */
15346 char $ac_func();
15347
15348 int main() {
15349
15350 /* The GNU C library defines this for functions which it implements
15351     to always fail with ENOSYS.  Some functions are actually named
15352     something starting with __ and the normal name is an alias.  */
15353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15354 choke me
15355 #else
15356 $ac_func();
15357 #endif
15358
15359 ; return 0; }
15360 EOF
15361 if { (eval echo configure:15362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15362   rm -rf conftest*
15363   eval "ac_cv_func_$ac_func=yes"
15364 else
15365   echo "configure: failed program was:" >&5
15366   cat conftest.$ac_ext >&5
15367   rm -rf conftest*
15368   eval "ac_cv_func_$ac_func=no"
15369 fi
15370 rm -f conftest*
15371 fi
15372
15373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15374   echo "$ac_t""yes" 1>&6
15375     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15376   cat >> confdefs.h <<EOF
15377 #define $ac_tr_func 1
15378 EOF
15379  
15380 else
15381   echo "$ac_t""no" 1>&6
15382 \
15383     ac_wfuncs=no
15384 fi
15385 done
15386
15387
15388     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
15389 echo "configure:15390: checking for ISO C99 wchar_t support" >&5
15390     if test x"$has_weof" = xyes &&
15391        test x"$has_wchar_minmax" = xyes &&
15392        test x"$ac_wfuncs" = xyes; then
15393       ac_isoC99_wchar_t=yes
15394     else
15395       ac_isoC99_wchar_t=no
15396     fi
15397     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
15398   
15399             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
15400 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
15401 echo "configure:15402: checking for iconv.h" >&5
15402 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15403   echo $ac_n "(cached) $ac_c" 1>&6
15404 else
15405   cat > conftest.$ac_ext <<EOF
15406 #line 15407 "configure"
15407 #include "confdefs.h"
15408 #include <iconv.h>
15409 EOF
15410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15411 { (eval echo configure:15412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15413 if test -z "$ac_err"; then
15414   rm -rf conftest*
15415   eval "ac_cv_header_$ac_safe=yes"
15416 else
15417   echo "$ac_err" >&5
15418   echo "configure: failed program was:" >&5
15419   cat conftest.$ac_ext >&5
15420   rm -rf conftest*
15421   eval "ac_cv_header_$ac_safe=no"
15422 fi
15423 rm -f conftest*
15424 fi
15425 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15426   echo "$ac_t""yes" 1>&6
15427   ac_has_iconv_h=yes
15428 else
15429   echo "$ac_t""no" 1>&6
15430 ac_has_iconv_h=no
15431 fi
15432
15433     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
15434 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
15435 echo "configure:15436: checking for langinfo.h" >&5
15436 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15437   echo $ac_n "(cached) $ac_c" 1>&6
15438 else
15439   cat > conftest.$ac_ext <<EOF
15440 #line 15441 "configure"
15441 #include "confdefs.h"
15442 #include <langinfo.h>
15443 EOF
15444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15445 { (eval echo configure:15446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15446 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15447 if test -z "$ac_err"; then
15448   rm -rf conftest*
15449   eval "ac_cv_header_$ac_safe=yes"
15450 else
15451   echo "$ac_err" >&5
15452   echo "configure: failed program was:" >&5
15453   cat conftest.$ac_ext >&5
15454   rm -rf conftest*
15455   eval "ac_cv_header_$ac_safe=no"
15456 fi
15457 rm -f conftest*
15458 fi
15459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15460   echo "$ac_t""yes" 1>&6
15461   ac_has_langinfo_h=yes
15462 else
15463   echo "$ac_t""no" 1>&6
15464 ac_has_langinfo_h=no
15465 fi
15466
15467
15468         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
15469 echo "configure:15470: checking for iconv in -liconv" >&5
15470 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
15471 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15472   echo $ac_n "(cached) $ac_c" 1>&6
15473 else
15474   ac_save_LIBS="$LIBS"
15475 LIBS="-liconv  $LIBS"
15476 cat > conftest.$ac_ext <<EOF
15477 #line 15478 "configure"
15478 #include "confdefs.h"
15479 /* Override any gcc2 internal prototype to avoid an error.  */
15480 /* We use char because int might match the return type of a gcc2
15481     builtin and then its argument prototype would still apply.  */
15482 char iconv();
15483
15484 int main() {
15485 iconv()
15486 ; return 0; }
15487 EOF
15488 if { (eval echo configure:15489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15489   rm -rf conftest*
15490   eval "ac_cv_lib_$ac_lib_var=yes"
15491 else
15492   echo "configure: failed program was:" >&5
15493   cat conftest.$ac_ext >&5
15494   rm -rf conftest*
15495   eval "ac_cv_lib_$ac_lib_var=no"
15496 fi
15497 rm -f conftest*
15498 LIBS="$ac_save_LIBS"
15499
15500 fi
15501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15502   echo "$ac_t""yes" 1>&6
15503   libiconv="-liconv"
15504 else
15505   echo "$ac_t""no" 1>&6
15506 fi
15507
15508     ac_save_LIBS="$LIBS"
15509     LIBS="$LIBS $libiconv"
15510
15511     for ac_func in iconv_open iconv_close iconv nl_langinfo
15512 do
15513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15514 echo "configure:15515: checking for $ac_func" >&5
15515 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15516   echo $ac_n "(cached) $ac_c" 1>&6
15517 else
15518   cat > conftest.$ac_ext <<EOF
15519 #line 15520 "configure"
15520 #include "confdefs.h"
15521 /* System header to define __stub macros and hopefully few prototypes,
15522     which can conflict with char $ac_func(); below.  */
15523 #include <assert.h>
15524 /* Override any gcc2 internal prototype to avoid an error.  */
15525 /* We use char because int might match the return type of a gcc2
15526     builtin and then its argument prototype would still apply.  */
15527 char $ac_func();
15528
15529 int main() {
15530
15531 /* The GNU C library defines this for functions which it implements
15532     to always fail with ENOSYS.  Some functions are actually named
15533     something starting with __ and the normal name is an alias.  */
15534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15535 choke me
15536 #else
15537 $ac_func();
15538 #endif
15539
15540 ; return 0; }
15541 EOF
15542 if { (eval echo configure:15543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15543   rm -rf conftest*
15544   eval "ac_cv_func_$ac_func=yes"
15545 else
15546   echo "configure: failed program was:" >&5
15547   cat conftest.$ac_ext >&5
15548   rm -rf conftest*
15549   eval "ac_cv_func_$ac_func=no"
15550 fi
15551 rm -f conftest*
15552 fi
15553
15554 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15555   echo "$ac_t""yes" 1>&6
15556     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15557   cat >> confdefs.h <<EOF
15558 #define $ac_tr_func 1
15559 EOF
15560  \
15561     ac_XPG2funcs=yes
15562 else
15563   echo "$ac_t""no" 1>&6
15564 ac_XPG2funcs=no
15565 fi
15566 done
15567
15568   
15569     LIBS="$ac_save_LIBS"
15570
15571     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
15572 echo "configure:15573: checking for XPG2 wchar_t support" >&5
15573     if test x"$ac_has_iconv_h" = xyes &&
15574        test x"$ac_has_langinfo_h" = xyes &&
15575        test x"$ac_XPG2funcs" = xyes; then
15576       ac_XPG2_wchar_t=yes
15577     else
15578       ac_XPG2_wchar_t=no
15579     fi
15580     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
15581   
15582             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
15583 echo "configure:15584: checking for enabled wchar_t specializations" >&5
15584     if test x"$ac_isoC99_wchar_t" = xyes &&
15585        test x"$ac_XPG2_wchar_t" = xyes; then
15586       cat >> confdefs.h <<\EOF
15587 #define _GLIBCPP_USE_WCHAR_T 1
15588 EOF
15589
15590       echo "$ac_t"""yes"" 1>&6
15591     else
15592       echo "$ac_t"""no"" 1>&6
15593     fi
15594   else
15595         echo "configure: warning: wchar_t support disabled." 1>&2
15596   fi
15597
15598   
15599   ac_test_CXXFLAGS="${CXXFLAGS+set}"
15600   ac_save_CXXFLAGS="$CXXFLAGS"
15601   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
15602
15603   
15604   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
15605 echo "configure:15606: checking for strtold declaration" >&5
15606   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
15607     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
15608   echo $ac_n "(cached) $ac_c" 1>&6
15609 else
15610   
15611       
15612       ac_ext=C
15613 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15614 ac_cpp='$CXXCPP $CPPFLAGS'
15615 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15616 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15617 cross_compiling=$ac_cv_prog_cxx_cross
15618
15619       cat > conftest.$ac_ext <<EOF
15620 #line 15621 "configure"
15621 #include "confdefs.h"
15622 #include <stdlib.h>
15623 int main() {
15624  strtold(0, 0);
15625 ; return 0; }
15626 EOF
15627 if { (eval echo configure:15628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15628   rm -rf conftest*
15629   glibcpp_cv_func_strtold_use=yes
15630 else
15631   echo "configure: failed program was:" >&5
15632   cat conftest.$ac_ext >&5
15633   rm -rf conftest*
15634   glibcpp_cv_func_strtold_use=no
15635 fi
15636 rm -f conftest*
15637       ac_ext=c
15638 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15639 ac_cpp='$CPP $CPPFLAGS'
15640 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15641 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15642 cross_compiling=$ac_cv_prog_cc_cross
15643
15644     
15645 fi
15646
15647   fi
15648   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
15649   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
15650     for ac_func in strtold
15651 do
15652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15653 echo "configure:15654: checking for $ac_func" >&5
15654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15655   echo $ac_n "(cached) $ac_c" 1>&6
15656 else
15657   cat > conftest.$ac_ext <<EOF
15658 #line 15659 "configure"
15659 #include "confdefs.h"
15660 /* System header to define __stub macros and hopefully few prototypes,
15661     which can conflict with char $ac_func(); below.  */
15662 #include <assert.h>
15663 /* Override any gcc2 internal prototype to avoid an error.  */
15664 /* We use char because int might match the return type of a gcc2
15665     builtin and then its argument prototype would still apply.  */
15666 char $ac_func();
15667
15668 int main() {
15669
15670 /* The GNU C library defines this for functions which it implements
15671     to always fail with ENOSYS.  Some functions are actually named
15672     something starting with __ and the normal name is an alias.  */
15673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15674 choke me
15675 #else
15676 $ac_func();
15677 #endif
15678
15679 ; return 0; }
15680 EOF
15681 if { (eval echo configure:15682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15682   rm -rf conftest*
15683   eval "ac_cv_func_$ac_func=yes"
15684 else
15685   echo "configure: failed program was:" >&5
15686   cat conftest.$ac_ext >&5
15687   rm -rf conftest*
15688   eval "ac_cv_func_$ac_func=no"
15689 fi
15690 rm -f conftest*
15691 fi
15692
15693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15694   echo "$ac_t""yes" 1>&6
15695     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15696   cat >> confdefs.h <<EOF
15697 #define $ac_tr_func 1
15698 EOF
15699  
15700 else
15701   echo "$ac_t""no" 1>&6
15702 fi
15703 done
15704     
15705   fi
15706
15707   for ac_func in drand48
15708 do
15709 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15710 echo "configure:15711: checking for $ac_func" >&5
15711 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15712   echo $ac_n "(cached) $ac_c" 1>&6
15713 else
15714   cat > conftest.$ac_ext <<EOF
15715 #line 15716 "configure"
15716 #include "confdefs.h"
15717 /* System header to define __stub macros and hopefully few prototypes,
15718     which can conflict with char $ac_func(); below.  */
15719 #include <assert.h>
15720 /* Override any gcc2 internal prototype to avoid an error.  */
15721 /* We use char because int might match the return type of a gcc2
15722     builtin and then its argument prototype would still apply.  */
15723 char $ac_func();
15724
15725 int main() {
15726
15727 /* The GNU C library defines this for functions which it implements
15728     to always fail with ENOSYS.  Some functions are actually named
15729     something starting with __ and the normal name is an alias.  */
15730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15731 choke me
15732 #else
15733 $ac_func();
15734 #endif
15735
15736 ; return 0; }
15737 EOF
15738 if { (eval echo configure:15739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15739   rm -rf conftest*
15740   eval "ac_cv_func_$ac_func=yes"
15741 else
15742   echo "configure: failed program was:" >&5
15743   cat conftest.$ac_ext >&5
15744   rm -rf conftest*
15745   eval "ac_cv_func_$ac_func=no"
15746 fi
15747 rm -f conftest*
15748 fi
15749
15750 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15751   echo "$ac_t""yes" 1>&6
15752     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15753   cat >> confdefs.h <<EOF
15754 #define $ac_tr_func 1
15755 EOF
15756  
15757 else
15758   echo "$ac_t""no" 1>&6
15759 fi
15760 done
15761
15762
15763   CXXFLAGS="$ac_save_CXXFLAGS"
15764
15765
15766   cat > conftest.$ac_ext <<EOF
15767 #line 15768 "configure"
15768 #include "confdefs.h"
15769
15770 #include <setjmp.h>
15771
15772 int main() {
15773 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
15774 ; return 0; }
15775 EOF
15776 if { (eval echo configure:15777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15777   rm -rf conftest*
15778   cat >> confdefs.h <<\EOF
15779 #define HAVE_SIGSETJMP 1
15780 EOF
15781
15782 else
15783   echo "configure: failed program was:" >&5
15784   cat conftest.$ac_ext >&5
15785 fi
15786 rm -f conftest*
15787
15788   for ac_hdr in unistd.h
15789 do
15790 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15791 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15792 echo "configure:15793: checking for $ac_hdr" >&5
15793 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15794   echo $ac_n "(cached) $ac_c" 1>&6
15795 else
15796   cat > conftest.$ac_ext <<EOF
15797 #line 15798 "configure"
15798 #include "confdefs.h"
15799 #include <$ac_hdr>
15800 EOF
15801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15802 { (eval echo configure:15803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15804 if test -z "$ac_err"; then
15805   rm -rf conftest*
15806   eval "ac_cv_header_$ac_safe=yes"
15807 else
15808   echo "$ac_err" >&5
15809   echo "configure: failed program was:" >&5
15810   cat conftest.$ac_ext >&5
15811   rm -rf conftest*
15812   eval "ac_cv_header_$ac_safe=no"
15813 fi
15814 rm -f conftest*
15815 fi
15816 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15817   echo "$ac_t""yes" 1>&6
15818     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15819   cat >> confdefs.h <<EOF
15820 #define $ac_tr_hdr 1
15821 EOF
15822  
15823 else
15824   echo "$ac_t""no" 1>&6
15825 fi
15826 done
15827
15828 for ac_func in getpagesize
15829 do
15830 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15831 echo "configure:15832: checking for $ac_func" >&5
15832 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15833   echo $ac_n "(cached) $ac_c" 1>&6
15834 else
15835   cat > conftest.$ac_ext <<EOF
15836 #line 15837 "configure"
15837 #include "confdefs.h"
15838 /* System header to define __stub macros and hopefully few prototypes,
15839     which can conflict with char $ac_func(); below.  */
15840 #include <assert.h>
15841 /* Override any gcc2 internal prototype to avoid an error.  */
15842 /* We use char because int might match the return type of a gcc2
15843     builtin and then its argument prototype would still apply.  */
15844 char $ac_func();
15845
15846 int main() {
15847
15848 /* The GNU C library defines this for functions which it implements
15849     to always fail with ENOSYS.  Some functions are actually named
15850     something starting with __ and the normal name is an alias.  */
15851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15852 choke me
15853 #else
15854 $ac_func();
15855 #endif
15856
15857 ; return 0; }
15858 EOF
15859 if { (eval echo configure:15860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15860   rm -rf conftest*
15861   eval "ac_cv_func_$ac_func=yes"
15862 else
15863   echo "configure: failed program was:" >&5
15864   cat conftest.$ac_ext >&5
15865   rm -rf conftest*
15866   eval "ac_cv_func_$ac_func=no"
15867 fi
15868 rm -f conftest*
15869 fi
15870
15871 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15872   echo "$ac_t""yes" 1>&6
15873     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15874   cat >> confdefs.h <<EOF
15875 #define $ac_tr_func 1
15876 EOF
15877  
15878 else
15879   echo "$ac_t""no" 1>&6
15880 fi
15881 done
15882
15883 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
15884 echo "configure:15885: checking for working mmap" >&5
15885 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
15886   echo $ac_n "(cached) $ac_c" 1>&6
15887 else
15888   if test "$cross_compiling" = yes; then
15889   ac_cv_func_mmap_fixed_mapped=no
15890 else
15891   cat > conftest.$ac_ext <<EOF
15892 #line 15893 "configure"
15893 #include "confdefs.h"
15894
15895 /* Thanks to Mike Haertel and Jim Avera for this test.
15896    Here is a matrix of mmap possibilities:
15897         mmap private not fixed
15898         mmap private fixed at somewhere currently unmapped
15899         mmap private fixed at somewhere already mapped
15900         mmap shared not fixed
15901         mmap shared fixed at somewhere currently unmapped
15902         mmap shared fixed at somewhere already mapped
15903    For private mappings, we should verify that changes cannot be read()
15904    back from the file, nor mmap's back from the file at a different
15905    address.  (There have been systems where private was not correctly
15906    implemented like the infamous i386 svr4.0, and systems where the
15907    VM page cache was not coherent with the filesystem buffer cache
15908    like early versions of FreeBSD and possibly contemporary NetBSD.)
15909    For shared mappings, we should conversely verify that changes get
15910    propogated back to all the places they're supposed to be.
15911
15912    Grep wants private fixed already mapped.
15913    The main things grep needs to know about mmap are:
15914    * does it exist and is it safe to write into the mmap'd area
15915    * how to use it (BSD variants)  */
15916 #include <sys/types.h>
15917 #include <fcntl.h>
15918 #include <sys/mman.h>
15919
15920 /* This mess was copied from the GNU getpagesize.h.  */
15921 #ifndef HAVE_GETPAGESIZE
15922 # ifdef HAVE_UNISTD_H
15923 #  include <unistd.h>
15924 # endif
15925
15926 /* Assume that all systems that can run configure have sys/param.h.  */
15927 # ifndef HAVE_SYS_PARAM_H
15928 #  define HAVE_SYS_PARAM_H 1
15929 # endif
15930
15931 # ifdef _SC_PAGESIZE
15932 #  define getpagesize() sysconf(_SC_PAGESIZE)
15933 # else /* no _SC_PAGESIZE */
15934 #  ifdef HAVE_SYS_PARAM_H
15935 #   include <sys/param.h>
15936 #   ifdef EXEC_PAGESIZE
15937 #    define getpagesize() EXEC_PAGESIZE
15938 #   else /* no EXEC_PAGESIZE */
15939 #    ifdef NBPG
15940 #     define getpagesize() NBPG * CLSIZE
15941 #     ifndef CLSIZE
15942 #      define CLSIZE 1
15943 #     endif /* no CLSIZE */
15944 #    else /* no NBPG */
15945 #     ifdef NBPC
15946 #      define getpagesize() NBPC
15947 #     else /* no NBPC */
15948 #      ifdef PAGESIZE
15949 #       define getpagesize() PAGESIZE
15950 #      endif /* PAGESIZE */
15951 #     endif /* no NBPC */
15952 #    endif /* no NBPG */
15953 #   endif /* no EXEC_PAGESIZE */
15954 #  else /* no HAVE_SYS_PARAM_H */
15955 #   define getpagesize() 8192   /* punt totally */
15956 #  endif /* no HAVE_SYS_PARAM_H */
15957 # endif /* no _SC_PAGESIZE */
15958
15959 #endif /* no HAVE_GETPAGESIZE */
15960
15961 #ifdef __cplusplus
15962 extern "C" { void *malloc(unsigned); }
15963 #else
15964 char *malloc();
15965 #endif
15966
15967 int
15968 main()
15969 {
15970         char *data, *data2, *data3;
15971         int i, pagesize;
15972         int fd;
15973
15974         pagesize = getpagesize();
15975
15976         /*
15977          * First, make a file with some known garbage in it.
15978          */
15979         data = malloc(pagesize);
15980         if (!data)
15981                 exit(1);
15982         for (i = 0; i < pagesize; ++i)
15983                 *(data + i) = rand();
15984         umask(0);
15985         fd = creat("conftestmmap", 0600);
15986         if (fd < 0)
15987                 exit(1);
15988         if (write(fd, data, pagesize) != pagesize)
15989                 exit(1);
15990         close(fd);
15991
15992         /*
15993          * Next, try to mmap the file at a fixed address which
15994          * already has something else allocated at it.  If we can,
15995          * also make sure that we see the same garbage.
15996          */
15997         fd = open("conftestmmap", O_RDWR);
15998         if (fd < 0)
15999                 exit(1);
16000         data2 = malloc(2 * pagesize);
16001         if (!data2)
16002                 exit(1);
16003         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
16004         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
16005             MAP_PRIVATE | MAP_FIXED, fd, 0L))
16006                 exit(1);
16007         for (i = 0; i < pagesize; ++i)
16008                 if (*(data + i) != *(data2 + i))
16009                         exit(1);
16010
16011         /*
16012          * Finally, make sure that changes to the mapped area
16013          * do not percolate back to the file as seen by read().
16014          * (This is a bug on some variants of i386 svr4.0.)
16015          */
16016         for (i = 0; i < pagesize; ++i)
16017                 *(data2 + i) = *(data2 + i) + 1;
16018         data3 = malloc(pagesize);
16019         if (!data3)
16020                 exit(1);
16021         if (read(fd, data3, pagesize) != pagesize)
16022                 exit(1);
16023         for (i = 0; i < pagesize; ++i)
16024                 if (*(data + i) != *(data3 + i))
16025                         exit(1);
16026         close(fd);
16027         unlink("conftestmmap");
16028         exit(0);
16029 }
16030
16031 EOF
16032 if { (eval echo configure:16033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16033 then
16034   ac_cv_func_mmap_fixed_mapped=yes
16035 else
16036   echo "configure: failed program was:" >&5
16037   cat conftest.$ac_ext >&5
16038   rm -fr conftest*
16039   ac_cv_func_mmap_fixed_mapped=no
16040 fi
16041 rm -fr conftest*
16042 fi
16043
16044 fi
16045
16046 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
16047 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16048   cat >> confdefs.h <<\EOF
16049 #define HAVE_MMAP 1
16050 EOF
16051
16052 fi
16053
16054 fi
16055
16056 # Propagate the target-specific source directories through the build chain.
16057 OS_INC_SRCDIR=$os_include_dir/bits
16058 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
16059
16060
16061
16062 # Set up cross-compile flags
16063
16064
16065
16066 if test "$CANADIAN" = yes; then
16067   CANADIAN_TRUE=
16068   CANADIAN_FALSE='#'
16069 else
16070   CANADIAN_TRUE='#'
16071   CANADIAN_FALSE=
16072 fi
16073  
16074 cat > confcache <<\EOF
16075 # This file is a shell script that caches the results of configure
16076 # tests run on this system so they can be shared between configure
16077 # scripts and configure runs.  It is not useful on other systems.
16078 # If it contains results you don't want to keep, you may remove or edit it.
16079 #
16080 # By default, configure uses ./config.cache as the cache file,
16081 # creating it if it does not exist already.  You can give configure
16082 # the --cache-file=FILE option to use a different cache file; that is
16083 # what configure does when it calls configure scripts in
16084 # subdirectories, so they share the cache.
16085 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16086 # config.status only pays attention to the cache file if you give it the
16087 # --recheck option to rerun configure.
16088 #
16089 EOF
16090 # The following way of writing the cache mishandles newlines in values,
16091 # but we know of no workaround that is simple, portable, and efficient.
16092 # So, don't put newlines in cache variables' values.
16093 # Ultrix sh set writes to stderr and can't be redirected directly,
16094 # and sets the high bit in the cache file unless we assign to the vars.
16095 (set) 2>&1 |
16096   case `(ac_space=' '; set | grep ac_space) 2>&1` in
16097   *ac_space=\ *)
16098     # `set' does not quote correctly, so add quotes (double-quote substitution
16099     # turns \\\\ into \\, and sed turns \\ into \).
16100     sed -n \
16101       -e "s/'/'\\\\''/g" \
16102       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16103     ;;
16104   *)
16105     # `set' quotes correctly as required by POSIX, so do not add quotes.
16106     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16107     ;;
16108   esac >> confcache
16109 if cmp -s $cache_file confcache; then
16110   :
16111 else
16112   if test -w $cache_file; then
16113     echo "updating cache $cache_file"
16114     cat confcache > $cache_file
16115   else
16116     echo "not updating unwritable cache $cache_file"
16117   fi
16118 fi
16119 rm -f confcache
16120
16121
16122   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
16123 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
16124 echo "configure:16125: checking for locale.h" >&5
16125 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16126   echo $ac_n "(cached) $ac_c" 1>&6
16127 else
16128   cat > conftest.$ac_ext <<EOF
16129 #line 16130 "configure"
16130 #include "confdefs.h"
16131 #include <locale.h>
16132 EOF
16133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16134 { (eval echo configure:16135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16135 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16136 if test -z "$ac_err"; then
16137   rm -rf conftest*
16138   eval "ac_cv_header_$ac_safe=yes"
16139 else
16140   echo "$ac_err" >&5
16141   echo "configure: failed program was:" >&5
16142   cat conftest.$ac_ext >&5
16143   rm -rf conftest*
16144   eval "ac_cv_header_$ac_safe=no"
16145 fi
16146 rm -f conftest*
16147 fi
16148 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16149   echo "$ac_t""yes" 1>&6
16150   
16151     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
16152 echo "configure:16153: checking for LC_MESSAGES" >&5
16153 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
16154   echo $ac_n "(cached) $ac_c" 1>&6
16155 else
16156   cat > conftest.$ac_ext <<EOF
16157 #line 16158 "configure"
16158 #include "confdefs.h"
16159 #include <locale.h>
16160 int main() {
16161 return LC_MESSAGES
16162 ; return 0; }
16163 EOF
16164 if { (eval echo configure:16165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16165   rm -rf conftest*
16166   ac_cv_val_LC_MESSAGES=yes
16167 else
16168   echo "configure: failed program was:" >&5
16169   cat conftest.$ac_ext >&5
16170   rm -rf conftest*
16171   ac_cv_val_LC_MESSAGES=no
16172 fi
16173 rm -f conftest*
16174 fi
16175
16176 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
16177     if test $ac_cv_val_LC_MESSAGES = yes; then
16178       cat >> confdefs.h <<\EOF
16179 #define HAVE_LC_MESSAGES 1
16180 EOF
16181
16182     fi
16183   
16184 else
16185   echo "$ac_t""no" 1>&6
16186 fi
16187
16188
16189
16190 if test "${multilib}" = "yes"; then
16191   multilib_arg="--enable-multilib"
16192 else
16193   multilib_arg=
16194 fi
16195
16196 # Needed so that g++ can find the correct include subdir automatically.
16197 INTERFACE=v3
16198
16199 # Export all the install information
16200
16201
16202 glibcpp_toolexecdir=no
16203 glibcpp_toolexeclibdir=no
16204
16205 # Export build and source directories.
16206 # These need to be absolute paths, yet at the same time need to
16207 # canonicalize only relative paths, because then amd will not unmount
16208 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
16209 glibcpp_builddir=`pwd`
16210 case $srcdir in
16211 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
16212 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
16213 esac
16214 glibcpp_prefixdir=${prefix}
16215
16216 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
16217 echo "configure:16218: checking for interface version number" >&5
16218 libstdcxx_interface=$INTERFACE
16219 echo "$ac_t""$libstdcxx_interface" 1>&6
16220
16221 # Process the option --with-gxx-include-dir=<path to include-files directory>
16222 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
16223 echo "configure:16224: checking for --with-gxx-include-dir" >&5
16224 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
16225 if test "${with_gxx_include_dir+set}" = set; then
16226   withval="$with_gxx_include_dir"
16227   case "${withval}" in
16228   yes)
16229     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
16230     gxx_include_dir=no
16231     ;;
16232   no)
16233     gxx_include_dir=no
16234     ;;
16235   *)
16236     gxx_include_dir=${withval}
16237     ;;
16238 esac
16239 else
16240   gxx_include_dir=no
16241 fi
16242
16243 echo "$ac_t""$gxx_include_dir" 1>&6
16244
16245 # Process the option "--enable-version-specific-runtime-libs"
16246 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
16247 echo "configure:16248: checking for --enable-version-specific-runtime-libs" >&5
16248 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16249 if test "${enable_version_specific_runtime_libs+set}" = set; then
16250   enableval="$enable_version_specific_runtime_libs"
16251     version_specific_libs=yes
16252 # Need the gcc compiler version to know where to install libraries
16253 # and header files if --enable-version-specific-runtime-libs option
16254 # is selected.
16255 gcc_version_trigger=${srcdir}/../gcc/version.c
16256 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
16257 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
16258 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
16259 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16260 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
16261
16262 else
16263   version_specific_libs=no
16264 fi
16265
16266 echo "$ac_t""$version_specific_libs" 1>&6
16267
16268 # Default case for install directory for include files.
16269 if test x"$version_specific_libs" = x"no" \
16270    && test x"$gxx_include_dir" = x"no"; then
16271   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
16272 fi
16273
16274 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
16275 # Install a library built with a cross compiler in tooldir, not libdir.
16276 if test x"$glibcpp_toolexecdir" = x"no"; then 
16277   if test -n "$with_cross_host" &&
16278      test x"$with_cross_host" != x"no"; then
16279     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
16280     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
16281   else
16282     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16283     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
16284   fi
16285 fi
16286
16287 echo $ac_n "checking for install location""... $ac_c" 1>&6
16288 echo "configure:16289: checking for install location" >&5
16289 echo "$ac_t""$gxx_include_dir" 1>&6
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299 # Export all the include and flag information to makefiles.
16300
16301   # Root level of the build directory include sources.
16302   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
16303
16304   # Passed down for canadian crosses.
16305   if test x"$CANADIAN" = xyes; then
16306     TOPLEVEL_INCLUDES='-I$(includedir)'
16307   fi
16308
16309   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
16310
16311   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
16312
16313   if test x"$need_libio" = xyes; then
16314     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
16315     
16316   fi
16317
16318   # Now, export this to all the little Makefiles....
16319   
16320   
16321   
16322   
16323
16324
16325   # Optimization flags that are probably a good idea for thrill-seekers. Just
16326   # uncomment the lines below and make, everything else is ready to go... 
16327   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
16328   OPTIMIZE_CXXFLAGS=
16329   
16330
16331   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
16332   
16333
16334
16335 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
16336    grep "enable shared" > /dev/null; then
16337   LIBSUPCXX_PICFLAGS=-prefer-pic
16338 else
16339   LIBSUPCXX_PICFLAGS=
16340 fi
16341
16342
16343 # Generate the various Makefiles, include files, and scripts.
16344 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
16345 # and libsupc++/Makefile.am so that multilib installs will end up
16346 # installed in the correct place. To work around this not being passed
16347 # down from config-ml.in -> top_srcdir/Makefile.am ->
16348 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
16349 trap '' 1 2 15
16350 cat > confcache <<\EOF
16351 # This file is a shell script that caches the results of configure
16352 # tests run on this system so they can be shared between configure
16353 # scripts and configure runs.  It is not useful on other systems.
16354 # If it contains results you don't want to keep, you may remove or edit it.
16355 #
16356 # By default, configure uses ./config.cache as the cache file,
16357 # creating it if it does not exist already.  You can give configure
16358 # the --cache-file=FILE option to use a different cache file; that is
16359 # what configure does when it calls configure scripts in
16360 # subdirectories, so they share the cache.
16361 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16362 # config.status only pays attention to the cache file if you give it the
16363 # --recheck option to rerun configure.
16364 #
16365 EOF
16366 # The following way of writing the cache mishandles newlines in values,
16367 # but we know of no workaround that is simple, portable, and efficient.
16368 # So, don't put newlines in cache variables' values.
16369 # Ultrix sh set writes to stderr and can't be redirected directly,
16370 # and sets the high bit in the cache file unless we assign to the vars.
16371 (set) 2>&1 |
16372   case `(ac_space=' '; set | grep ac_space) 2>&1` in
16373   *ac_space=\ *)
16374     # `set' does not quote correctly, so add quotes (double-quote substitution
16375     # turns \\\\ into \\, and sed turns \\ into \).
16376     sed -n \
16377       -e "s/'/'\\\\''/g" \
16378       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16379     ;;
16380   *)
16381     # `set' quotes correctly as required by POSIX, so do not add quotes.
16382     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16383     ;;
16384   esac >> confcache
16385 if cmp -s $cache_file confcache; then
16386   :
16387 else
16388   if test -w $cache_file; then
16389     echo "updating cache $cache_file"
16390     cat confcache > $cache_file
16391   else
16392     echo "not updating unwritable cache $cache_file"
16393   fi
16394 fi
16395 rm -f confcache
16396
16397 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16398
16399 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16400 # Let make expand exec_prefix.
16401 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16402
16403 # Any assignment to VPATH causes Sun make to only execute
16404 # the first set of double-colon rules, so remove it if not needed.
16405 # If there is a colon in the path, we need to keep it.
16406 if test "x$srcdir" = x.; then
16407   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
16408 fi
16409
16410 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16411
16412 DEFS=-DHAVE_CONFIG_H
16413
16414 # Without the "./", some shells look in PATH for config.status.
16415 : ${CONFIG_STATUS=./config.status}
16416
16417 echo creating $CONFIG_STATUS
16418 rm -f $CONFIG_STATUS
16419 cat > $CONFIG_STATUS <<EOF
16420 #! /bin/sh
16421 # Generated automatically by configure.
16422 # Run this file to recreate the current configuration.
16423 # This directory was configured as follows,
16424 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16425 #
16426 # $0 $ac_configure_args
16427 #
16428 # Compiler output produced by configure, useful for debugging
16429 # configure, is in ./config.log if it exists.
16430
16431 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16432 for ac_option
16433 do
16434   case "\$ac_option" in
16435   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16436     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16437     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16438   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16439     echo "$CONFIG_STATUS generated by autoconf version 2.13"
16440     exit 0 ;;
16441   -help | --help | --hel | --he | --h)
16442     echo "\$ac_cs_usage"; exit 0 ;;
16443   *) echo "\$ac_cs_usage"; exit 1 ;;
16444   esac
16445 done
16446
16447 ac_given_srcdir=$srcdir
16448 ac_given_INSTALL="$INSTALL"
16449
16450 trap 'rm -fr `echo "Makefile \
16451     include/Makefile src/Makefile \
16452     libmath/Makefile libio/Makefile libsupc++/Makefile \
16453     testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16454 EOF
16455 cat >> $CONFIG_STATUS <<EOF
16456
16457 # Protect against being on the right side of a sed subst in config.status.
16458 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16459  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16460 $ac_vpsub
16461 $extrasub
16462 s%@SHELL@%$SHELL%g
16463 s%@CFLAGS@%$CFLAGS%g
16464 s%@CPPFLAGS@%$CPPFLAGS%g
16465 s%@CXXFLAGS@%$CXXFLAGS%g
16466 s%@FFLAGS@%$FFLAGS%g
16467 s%@DEFS@%$DEFS%g
16468 s%@LDFLAGS@%$LDFLAGS%g
16469 s%@LIBS@%$LIBS%g
16470 s%@exec_prefix@%$exec_prefix%g
16471 s%@prefix@%$prefix%g
16472 s%@program_transform_name@%$program_transform_name%g
16473 s%@bindir@%$bindir%g
16474 s%@sbindir@%$sbindir%g
16475 s%@libexecdir@%$libexecdir%g
16476 s%@datadir@%$datadir%g
16477 s%@sysconfdir@%$sysconfdir%g
16478 s%@sharedstatedir@%$sharedstatedir%g
16479 s%@localstatedir@%$localstatedir%g
16480 s%@libdir@%$libdir%g
16481 s%@includedir@%$includedir%g
16482 s%@oldincludedir@%$oldincludedir%g
16483 s%@infodir@%$infodir%g
16484 s%@mandir@%$mandir%g
16485 s%@toplevel_srcdir@%$toplevel_srcdir%g
16486 s%@host@%$host%g
16487 s%@host_alias@%$host_alias%g
16488 s%@host_cpu@%$host_cpu%g
16489 s%@host_vendor@%$host_vendor%g
16490 s%@host_os@%$host_os%g
16491 s%@target@%$target%g
16492 s%@target_alias@%$target_alias%g
16493 s%@target_cpu@%$target_cpu%g
16494 s%@target_vendor@%$target_vendor%g
16495 s%@target_os@%$target_os%g
16496 s%@build@%$build%g
16497 s%@build_alias@%$build_alias%g
16498 s%@build_cpu@%$build_cpu%g
16499 s%@build_vendor@%$build_vendor%g
16500 s%@build_os@%$build_os%g
16501 s%@LN_S@%$LN_S%g
16502 s%@glibcpp_basedir@%$glibcpp_basedir%g
16503 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16504 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16505 s%@INSTALL_DATA@%$INSTALL_DATA%g
16506 s%@PACKAGE@%$PACKAGE%g
16507 s%@VERSION@%$VERSION%g
16508 s%@ACLOCAL@%$ACLOCAL%g
16509 s%@AUTOCONF@%$AUTOCONF%g
16510 s%@AUTOMAKE@%$AUTOMAKE%g
16511 s%@AUTOHEADER@%$AUTOHEADER%g
16512 s%@MAKEINFO@%$MAKEINFO%g
16513 s%@SET_MAKE@%$SET_MAKE%g
16514 s%@CC@%$CC%g
16515 s%@glibcpp_CXX@%$glibcpp_CXX%g
16516 s%@AS@%$AS%g
16517 s%@AR@%$AR%g
16518 s%@RANLIB@%$RANLIB%g
16519 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
16520 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
16521 s%@MAINT@%$MAINT%g
16522 s%@EXEEXT@%$EXEEXT%g
16523 s%@OBJEXT@%$OBJEXT%g
16524 s%@STRIP@%$STRIP%g
16525 s%@LIBTOOL@%$LIBTOOL%g
16526 s%@CXXCPP@%$CXXCPP%g
16527 s%@enable_shared@%$enable_shared%g
16528 s%@enable_static@%$enable_static%g
16529 s%@ifGNUmake@%$ifGNUmake%g
16530 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
16531 s%@CPP@%$CPP%g
16532 s%@CSTDIO_H@%$CSTDIO_H%g
16533 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
16534 s%@CCODECVT_C@%$CCODECVT_C%g
16535 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
16536 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
16537 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
16538 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
16539 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
16540 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
16541 s%@libio_la@%$libio_la%g
16542 s%@CLOCALE_H@%$CLOCALE_H%g
16543 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
16544 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
16545 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
16546 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
16547 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
16548 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
16549 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
16550 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
16551 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
16552 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
16553 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
16554 s%@WERROR@%$WERROR%g
16555 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
16556 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
16557 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
16558 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
16559 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
16560 s%@glibcpp_builddir@%$glibcpp_builddir%g
16561 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
16562 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
16563 s%@gxx_include_dir@%$gxx_include_dir%g
16564 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
16565 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
16566 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
16567 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
16568 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
16569 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
16570 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
16571 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
16572 s%@WARN_FLAGS@%$WARN_FLAGS%g
16573 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
16574
16575 CEOF
16576 EOF
16577
16578 cat >> $CONFIG_STATUS <<\EOF
16579
16580 # Split the substitutions into bite-sized pieces for seds with
16581 # small command number limits, like on Digital OSF/1 and HP-UX.
16582 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16583 ac_file=1 # Number of current file.
16584 ac_beg=1 # First line for current file.
16585 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16586 ac_more_lines=:
16587 ac_sed_cmds=""
16588 while $ac_more_lines; do
16589   if test $ac_beg -gt 1; then
16590     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16591   else
16592     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16593   fi
16594   if test ! -s conftest.s$ac_file; then
16595     ac_more_lines=false
16596     rm -f conftest.s$ac_file
16597   else
16598     if test -z "$ac_sed_cmds"; then
16599       ac_sed_cmds="sed -f conftest.s$ac_file"
16600     else
16601       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16602     fi
16603     ac_file=`expr $ac_file + 1`
16604     ac_beg=$ac_end
16605     ac_end=`expr $ac_end + $ac_max_sed_cmds`
16606   fi
16607 done
16608 if test -z "$ac_sed_cmds"; then
16609   ac_sed_cmds=cat
16610 fi
16611 EOF
16612
16613 cat >> $CONFIG_STATUS <<EOF
16614
16615 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
16616     include/Makefile src/Makefile \
16617     libmath/Makefile libio/Makefile libsupc++/Makefile \
16618     testsuite/Makefile mkcheck testsuite_flags"}
16619 EOF
16620 cat >> $CONFIG_STATUS <<\EOF
16621 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16622   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16623   case "$ac_file" in
16624   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16625        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16626   *) ac_file_in="${ac_file}.in" ;;
16627   esac
16628
16629   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16630
16631   # Remove last slash and all that follows it.  Not all systems have dirname.
16632   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16633   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16634     # The file is in a subdirectory.
16635     test ! -d "$ac_dir" && mkdir "$ac_dir"
16636     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16637     # A "../" for each directory in $ac_dir_suffix.
16638     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16639   else
16640     ac_dir_suffix= ac_dots=
16641   fi
16642
16643   case "$ac_given_srcdir" in
16644   .)  srcdir=.
16645       if test -z "$ac_dots"; then top_srcdir=.
16646       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16647   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16648   *) # Relative path.
16649     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16650     top_srcdir="$ac_dots$ac_given_srcdir" ;;
16651   esac
16652
16653   case "$ac_given_INSTALL" in
16654   [/$]*) INSTALL="$ac_given_INSTALL" ;;
16655   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16656   esac
16657
16658   echo creating "$ac_file"
16659   rm -f "$ac_file"
16660   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16661   case "$ac_file" in
16662   *Makefile*) ac_comsub="1i\\
16663 # $configure_input" ;;
16664   *) ac_comsub= ;;
16665   esac
16666
16667   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16668   sed -e "$ac_comsub
16669 s%@configure_input@%$configure_input%g
16670 s%@srcdir@%$srcdir%g
16671 s%@top_srcdir@%$top_srcdir%g
16672 s%@INSTALL@%$INSTALL%g
16673 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16674 fi; done
16675 rm -f conftest.s*
16676
16677 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16678 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16679 #
16680 # ac_d sets the value in "#define NAME VALUE" lines.
16681 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16682 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
16683 ac_dC='\3'
16684 ac_dD='%g'
16685 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16686 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16687 ac_uB='\([      ]\)%\1#\2define\3'
16688 ac_uC=' '
16689 ac_uD='\4%g'
16690 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16691 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16692 ac_eB='$%\1#\2define\3'
16693 ac_eC=' '
16694 ac_eD='%g'
16695
16696 if test "${CONFIG_HEADERS+set}" != set; then
16697 EOF
16698 cat >> $CONFIG_STATUS <<EOF
16699   CONFIG_HEADERS="config.h"
16700 EOF
16701 cat >> $CONFIG_STATUS <<\EOF
16702 fi
16703 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16704   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16705   case "$ac_file" in
16706   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16707        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16708   *) ac_file_in="${ac_file}.in" ;;
16709   esac
16710
16711   echo creating $ac_file
16712
16713   rm -f conftest.frag conftest.in conftest.out
16714   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16715   cat $ac_file_inputs > conftest.in
16716
16717 EOF
16718
16719 # Transform confdefs.h into a sed script conftest.vals that substitutes
16720 # the proper values into config.h.in to produce config.h.  And first:
16721 # Protect against being on the right side of a sed subst in config.status.
16722 # Protect against being in an unquoted here document in config.status.
16723 rm -f conftest.vals
16724 cat > conftest.hdr <<\EOF
16725 s/[\\&%]/\\&/g
16726 s%[\\$`]%\\&%g
16727 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16728 s%ac_d%ac_u%gp
16729 s%ac_u%ac_e%gp
16730 EOF
16731 sed -n -f conftest.hdr confdefs.h > conftest.vals
16732 rm -f conftest.hdr
16733
16734 # This sed command replaces #undef with comments.  This is necessary, for
16735 # example, in the case of _POSIX_SOURCE, which is predefined and required
16736 # on some systems where configure will not decide to define it.
16737 cat >> conftest.vals <<\EOF
16738 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16739 EOF
16740
16741 # Break up conftest.vals because some shells have a limit on
16742 # the size of here documents, and old seds have small limits too.
16743
16744 rm -f conftest.tail
16745 while :
16746 do
16747   ac_lines=`grep -c . conftest.vals`
16748   # grep -c gives empty output for an empty file on some AIX systems.
16749   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16750   # Write a limited-size here document to conftest.frag.
16751   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16752   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16753   echo 'CEOF
16754   sed -f conftest.frag conftest.in > conftest.out
16755   rm -f conftest.in
16756   mv conftest.out conftest.in
16757 ' >> $CONFIG_STATUS
16758   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16759   rm -f conftest.vals
16760   mv conftest.tail conftest.vals
16761 done
16762 rm -f conftest.vals
16763
16764 cat >> $CONFIG_STATUS <<\EOF
16765   rm -f conftest.frag conftest.h
16766   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
16767   cat conftest.in >> conftest.h
16768   rm -f conftest.in
16769   if cmp -s $ac_file conftest.h 2>/dev/null; then
16770     echo "$ac_file is unchanged"
16771     rm -f conftest.h
16772   else
16773     # Remove last slash and all that follows it.  Not all systems have dirname.
16774       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16775       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16776       # The file is in a subdirectory.
16777       test ! -d "$ac_dir" && mkdir "$ac_dir"
16778     fi
16779     rm -f $ac_file
16780     mv conftest.h $ac_file
16781   fi
16782 fi; done
16783
16784 EOF
16785
16786 cat >> $CONFIG_STATUS <<EOF
16787 ac_sources="$BASIC_FILE_CC $CLOCALE_CC"
16788 ac_dests="src/basic_file.cc src/c++locale.cc"
16789 EOF
16790
16791 cat >> $CONFIG_STATUS <<\EOF
16792 srcdir=$ac_given_srcdir
16793 while test -n "$ac_sources"; do
16794   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
16795   set $ac_sources; ac_source=$1; shift; ac_sources=$*
16796
16797   echo "linking $srcdir/$ac_source to $ac_dest"
16798
16799   if test ! -r $srcdir/$ac_source; then
16800     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
16801   fi
16802   rm -f $ac_dest
16803
16804   # Make relative symlinks.
16805   # Remove last slash and all that follows it.  Not all systems have dirname.
16806   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
16807   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
16808     # The dest file is in a subdirectory.
16809     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
16810     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
16811     # A "../" for each directory in $ac_dest_dir_suffix.
16812     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
16813   else
16814     ac_dest_dir_suffix= ac_dots=
16815   fi
16816
16817   case "$srcdir" in
16818   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
16819   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
16820   esac
16821
16822   # Make a symlink if possible; otherwise try a hard link.
16823   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16824     ln $srcdir/$ac_source $ac_dest; then :
16825   else
16826     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
16827   fi
16828 done
16829 EOF
16830 cat >> $CONFIG_STATUS <<EOF
16831
16832 srcdir=${srcdir}
16833 host=${host}
16834 target=${target}
16835 with_multisubdir=${with_multisubdir}
16836 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16837 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16838 glibcpp_basedir=${glibcpp_basedir}
16839 CC="${CC}"
16840 CXX="${CXX}"
16841
16842 EOF
16843 cat >> $CONFIG_STATUS <<\EOF
16844 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
16845 if test -n "$CONFIG_FILES"; then
16846   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
16847   grep '^MULTISUBDIR =' Makefile >> src/Makefile
16848   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
16849 fi
16850 chmod +x mkcheck
16851 chmod +x testsuite_flags
16852
16853 exit 0
16854 EOF
16855 chmod +x $CONFIG_STATUS
16856 rm -fr confdefs* $ac_clean_files
16857 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
16858
16859
16860
16861 # Sanity checking & User-visible messages.
16862 # Checks down here, otherwise they get scrolled off before
16863 # the user will notice.
16864
16865 # Trying to get more people to read documentation.  Possibly remove
16866 # check and warn all the time. There is no "informational" AC_MSG_
16867 # macro, so these are going to be printed even when --quiet/--silent
16868 # is given.
16869 if test ! -f stamp-sanity-warned; then
16870   touch stamp-sanity-warned
16871   echo ""
16872   echo "Please make certain that you read the installation information here:"
16873   echo "  faster => ${srcdir}/docs/install.html"
16874   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
16875   echo ""
16876   echo "and the configuration information here:"
16877   echo "  faster => ${srcdir}/docs/configopts.html"
16878   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
16879   echo ""
16880   echo "before proceeding with ${_cv_gnu_make_command}."
16881   echo ""
16882 fi