]> git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/configure
Fix a loose end of a sentence in the way rth suggested.
[thirdparty/gcc.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-multilib build hella library versions (default)"
16 ac_help="$ac_help
17 --with-target-subdir=SUBDIR
18 configuring in a subdirectory"
19 ac_help="$ac_help
20 --with-cross-host=HOST configuring with a cross compiler"
21 ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33 --disable-libtool-lock avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37 --enable-cstdio enable stdio for target io package.
38 --enable-cstdio=LIB use LIB target-speific io package. [default=stdio]
39 "
40 ac_help="$ac_help
41 --enable-clocale enable model for target locale package.
42 --enable-clocale=MODEL use MODEL target-speific locale package. [default=generic]
43 "
44 ac_help="$ac_help
45 --enable-nls use Native Language Support (default)"
46 ac_help="$ac_help
47 --enable-cheaders=MODEL construct "C" header files for g++ [default=c_std]"
48 ac_help="$ac_help
49 --enable-c-mbchar enable multibyte (wide) characters [default=yes]"
50 ac_help="$ac_help
51 --enable-c99 turns on 'ISO/IEC 9899:1999 support' [default=yes]"
52 ac_help="$ac_help
53 --enable-long-long turns on 'long long' [default=yes]"
54 ac_help="$ac_help
55 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
56 ac_help="$ac_help
57 --enable-libunwind-exceptions force use of libunwind for exceptions"
58 ac_help="$ac_help
59 --enable-concept-checks use Boost-derived template checks [default=no]"
60 ac_help="$ac_help
61 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
62 [default=]"
63 ac_help="$ac_help
64 --enable-debug build extra debug library [default=no]"
65 ac_help="$ac_help
66 --enable-debug-flags=FLAGS pass compiler FLAGS when building debug
67 library;[default=none]"
68 ac_help="$ac_help
69 --enable-symvers=style enables symbol versioning of the shared library [default=yes]"
70 ac_help="$ac_help
71 --with-gxx-include-dir the installation directory for include files"
72 ac_help="$ac_help
73 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
74
75 # Initialize some variables set by options.
76 # The variables have the same names as the options, with
77 # dashes changed to underlines.
78 build=NONE
79 cache_file=./config.cache
80 exec_prefix=NONE
81 host=NONE
82 no_create=
83 nonopt=NONE
84 no_recursion=
85 prefix=NONE
86 program_prefix=NONE
87 program_suffix=NONE
88 program_transform_name=s,x,x,
89 silent=
90 site=
91 srcdir=
92 target=NONE
93 verbose=
94 x_includes=NONE
95 x_libraries=NONE
96 bindir='${exec_prefix}/bin'
97 sbindir='${exec_prefix}/sbin'
98 libexecdir='${exec_prefix}/libexec'
99 datadir='${prefix}/share'
100 sysconfdir='${prefix}/etc'
101 sharedstatedir='${prefix}/com'
102 localstatedir='${prefix}/var'
103 libdir='${exec_prefix}/lib'
104 includedir='${prefix}/include'
105 oldincludedir='/usr/include'
106 infodir='${prefix}/info'
107 mandir='${prefix}/man'
108
109 # Initialize some other variables.
110 subdirs=
111 MFLAGS= MAKEFLAGS=
112 SHELL=${CONFIG_SHELL-/bin/sh}
113 # Maximum number of lines to put in a shell here document.
114 ac_max_here_lines=12
115
116 ac_prev=
117 for ac_option
118 do
119
120 # If the previous option needs an argument, assign it.
121 if test -n "$ac_prev"; then
122 eval "$ac_prev=\$ac_option"
123 ac_prev=
124 continue
125 fi
126
127 case "$ac_option" in
128 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
129 *) ac_optarg= ;;
130 esac
131
132 # Accept the important Cygnus configure options, so we can diagnose typos.
133
134 case "$ac_option" in
135
136 -bindir | --bindir | --bindi | --bind | --bin | --bi)
137 ac_prev=bindir ;;
138 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
139 bindir="$ac_optarg" ;;
140
141 -build | --build | --buil | --bui | --bu)
142 ac_prev=build ;;
143 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
144 build="$ac_optarg" ;;
145
146 -cache-file | --cache-file | --cache-fil | --cache-fi \
147 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
148 ac_prev=cache_file ;;
149 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
150 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
151 cache_file="$ac_optarg" ;;
152
153 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
154 ac_prev=datadir ;;
155 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
156 | --da=*)
157 datadir="$ac_optarg" ;;
158
159 -disable-* | --disable-*)
160 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164 fi
165 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}=no" ;;
167
168 -enable-* | --enable-*)
169 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
173 fi
174 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
175 case "$ac_option" in
176 *=*) ;;
177 *) ac_optarg=yes ;;
178 esac
179 eval "enable_${ac_feature}='$ac_optarg'" ;;
180
181 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
182 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
183 | --exec | --exe | --ex)
184 ac_prev=exec_prefix ;;
185 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
186 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
187 | --exec=* | --exe=* | --ex=*)
188 exec_prefix="$ac_optarg" ;;
189
190 -gas | --gas | --ga | --g)
191 # Obsolete; use --with-gas.
192 with_gas=yes ;;
193
194 -help | --help | --hel | --he)
195 # Omit some internal or obsolete options to make the list less imposing.
196 # This message is too long to be a string in the A/UX 3.1 sh.
197 cat << EOF
198 Usage: configure [options] [host]
199 Options: [defaults in brackets after descriptions]
200 Configuration:
201 --cache-file=FILE cache test results in FILE
202 --help print this message
203 --no-create do not create output files
204 --quiet, --silent do not print \`checking...' messages
205 --version print the version of autoconf that created configure
206 Directory and file names:
207 --prefix=PREFIX install architecture-independent files in PREFIX
208 [$ac_default_prefix]
209 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
210 [same as prefix]
211 --bindir=DIR user executables in DIR [EPREFIX/bin]
212 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
213 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
214 --datadir=DIR read-only architecture-independent data in DIR
215 [PREFIX/share]
216 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
217 --sharedstatedir=DIR modifiable architecture-independent data in DIR
218 [PREFIX/com]
219 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
220 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
221 --includedir=DIR C header files in DIR [PREFIX/include]
222 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
223 --infodir=DIR info documentation in DIR [PREFIX/info]
224 --mandir=DIR man documentation in DIR [PREFIX/man]
225 --srcdir=DIR find the sources in DIR [configure dir or ..]
226 --program-prefix=PREFIX prepend PREFIX to installed program names
227 --program-suffix=SUFFIX append SUFFIX to installed program names
228 --program-transform-name=PROGRAM
229 run sed PROGRAM on installed program names
230 EOF
231 cat << EOF
232 Host type:
233 --build=BUILD configure for building on BUILD [BUILD=HOST]
234 --host=HOST configure for HOST [guessed]
235 --target=TARGET configure for TARGET [TARGET=HOST]
236 Features and packages:
237 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
238 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
239 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
240 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
241 --x-includes=DIR X include files are in DIR
242 --x-libraries=DIR X library files are in DIR
243 EOF
244 if test -n "$ac_help"; then
245 echo "--enable and --with options recognized:$ac_help"
246 fi
247 exit 0 ;;
248
249 -host | --host | --hos | --ho)
250 ac_prev=host ;;
251 -host=* | --host=* | --hos=* | --ho=*)
252 host="$ac_optarg" ;;
253
254 -includedir | --includedir | --includedi | --included | --include \
255 | --includ | --inclu | --incl | --inc)
256 ac_prev=includedir ;;
257 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
258 | --includ=* | --inclu=* | --incl=* | --inc=*)
259 includedir="$ac_optarg" ;;
260
261 -infodir | --infodir | --infodi | --infod | --info | --inf)
262 ac_prev=infodir ;;
263 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
264 infodir="$ac_optarg" ;;
265
266 -libdir | --libdir | --libdi | --libd)
267 ac_prev=libdir ;;
268 -libdir=* | --libdir=* | --libdi=* | --libd=*)
269 libdir="$ac_optarg" ;;
270
271 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
272 | --libexe | --libex | --libe)
273 ac_prev=libexecdir ;;
274 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
275 | --libexe=* | --libex=* | --libe=*)
276 libexecdir="$ac_optarg" ;;
277
278 -localstatedir | --localstatedir | --localstatedi | --localstated \
279 | --localstate | --localstat | --localsta | --localst \
280 | --locals | --local | --loca | --loc | --lo)
281 ac_prev=localstatedir ;;
282 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
283 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
284 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
285 localstatedir="$ac_optarg" ;;
286
287 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
288 ac_prev=mandir ;;
289 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
290 mandir="$ac_optarg" ;;
291
292 -nfp | --nfp | --nf)
293 # Obsolete; use --without-fp.
294 with_fp=no ;;
295
296 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
297 | --no-cr | --no-c)
298 no_create=yes ;;
299
300 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
301 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
302 no_recursion=yes ;;
303
304 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
305 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
306 | --oldin | --oldi | --old | --ol | --o)
307 ac_prev=oldincludedir ;;
308 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
309 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
310 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
311 oldincludedir="$ac_optarg" ;;
312
313 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
314 ac_prev=prefix ;;
315 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
316 prefix="$ac_optarg" ;;
317
318 -program-prefix | --program-prefix | --program-prefi | --program-pref \
319 | --program-pre | --program-pr | --program-p)
320 ac_prev=program_prefix ;;
321 -program-prefix=* | --program-prefix=* | --program-prefi=* \
322 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
323 program_prefix="$ac_optarg" ;;
324
325 -program-suffix | --program-suffix | --program-suffi | --program-suff \
326 | --program-suf | --program-su | --program-s)
327 ac_prev=program_suffix ;;
328 -program-suffix=* | --program-suffix=* | --program-suffi=* \
329 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
330 program_suffix="$ac_optarg" ;;
331
332 -program-transform-name | --program-transform-name \
333 | --program-transform-nam | --program-transform-na \
334 | --program-transform-n | --program-transform- \
335 | --program-transform | --program-transfor \
336 | --program-transfo | --program-transf \
337 | --program-trans | --program-tran \
338 | --progr-tra | --program-tr | --program-t)
339 ac_prev=program_transform_name ;;
340 -program-transform-name=* | --program-transform-name=* \
341 | --program-transform-nam=* | --program-transform-na=* \
342 | --program-transform-n=* | --program-transform-=* \
343 | --program-transform=* | --program-transfor=* \
344 | --program-transfo=* | --program-transf=* \
345 | --program-trans=* | --program-tran=* \
346 | --progr-tra=* | --program-tr=* | --program-t=*)
347 program_transform_name="$ac_optarg" ;;
348
349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
350 | -silent | --silent | --silen | --sile | --sil)
351 silent=yes ;;
352
353 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
354 ac_prev=sbindir ;;
355 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
356 | --sbi=* | --sb=*)
357 sbindir="$ac_optarg" ;;
358
359 -sharedstatedir | --sharedstatedir | --sharedstatedi \
360 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
361 | --sharedst | --shareds | --shared | --share | --shar \
362 | --sha | --sh)
363 ac_prev=sharedstatedir ;;
364 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
365 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
366 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
367 | --sha=* | --sh=*)
368 sharedstatedir="$ac_optarg" ;;
369
370 -site | --site | --sit)
371 ac_prev=site ;;
372 -site=* | --site=* | --sit=*)
373 site="$ac_optarg" ;;
374
375 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
376 ac_prev=srcdir ;;
377 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
378 srcdir="$ac_optarg" ;;
379
380 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
381 | --syscon | --sysco | --sysc | --sys | --sy)
382 ac_prev=sysconfdir ;;
383 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
384 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
385 sysconfdir="$ac_optarg" ;;
386
387 -target | --target | --targe | --targ | --tar | --ta | --t)
388 ac_prev=target ;;
389 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
390 target="$ac_optarg" ;;
391
392 -v | -verbose | --verbose | --verbos | --verbo | --verb)
393 verbose=yes ;;
394
395 -version | --version | --versio | --versi | --vers)
396 echo "configure generated by autoconf version 2.13"
397 exit 0 ;;
398
399 -with-* | --with-*)
400 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
404 fi
405 ac_package=`echo $ac_package| sed 's/-/_/g'`
406 case "$ac_option" in
407 *=*) ;;
408 *) ac_optarg=yes ;;
409 esac
410 eval "with_${ac_package}='$ac_optarg'" ;;
411
412 -without-* | --without-*)
413 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 fi
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}=no" ;;
420
421 --x)
422 # Obsolete; use --with-x.
423 with_x=yes ;;
424
425 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
426 | --x-incl | --x-inc | --x-in | --x-i)
427 ac_prev=x_includes ;;
428 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
429 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
430 x_includes="$ac_optarg" ;;
431
432 -x-libraries | --x-libraries | --x-librarie | --x-librari \
433 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
434 ac_prev=x_libraries ;;
435 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
436 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
437 x_libraries="$ac_optarg" ;;
438
439 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
440 ;;
441
442 *)
443 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444 echo "configure: warning: $ac_option: invalid host type" 1>&2
445 fi
446 if test "x$nonopt" != xNONE; then
447 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
448 fi
449 nonopt="$ac_option"
450 ;;
451
452 esac
453 done
454
455 if test -n "$ac_prev"; then
456 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
457 fi
458
459 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
460
461 # File descriptor usage:
462 # 0 standard input
463 # 1 file creation
464 # 2 errors and warnings
465 # 3 some systems may open it to /dev/tty
466 # 4 used on the Kubota Titan
467 # 6 checking for... messages and results
468 # 5 compiler messages saved in config.log
469 if test "$silent" = yes; then
470 exec 6>/dev/null
471 else
472 exec 6>&1
473 fi
474 exec 5>./config.log
475
476 echo "\
477 This file contains any messages produced by compilers while
478 running configure, to aid debugging if configure makes a mistake.
479 " 1>&5
480
481 # Strip out --no-create and --no-recursion so they do not pile up.
482 # Also quote any args containing shell metacharacters.
483 ac_configure_args=
484 for ac_arg
485 do
486 case "$ac_arg" in
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c) ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
491 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
493 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
494 esac
495 done
496
497 # NLS nuisances.
498 # Only set these to C if already set. These must not be set unconditionally
499 # because not all systems understand e.g. LANG=C (notably SCO).
500 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501 # Non-C LC_CTYPE values break the ctype check.
502 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
503 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
504 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
505 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
506
507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
508 rm -rf conftest* confdefs.h
509 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
510 echo > confdefs.h
511
512 # A filename unique to this package, relative to the directory that
513 # configure is in, which we can look for to find out if srcdir is correct.
514 ac_unique_file=src/ios.cc
515
516 # Find the source files, if location was not specified.
517 if test -z "$srcdir"; then
518 ac_srcdir_defaulted=yes
519 # Try the directory containing this script, then its parent.
520 ac_prog=$0
521 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
523 srcdir=$ac_confdir
524 if test ! -r $srcdir/$ac_unique_file; then
525 srcdir=..
526 fi
527 else
528 ac_srcdir_defaulted=no
529 fi
530 if test ! -r $srcdir/$ac_unique_file; then
531 if test "$ac_srcdir_defaulted" = yes; then
532 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
533 else
534 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
535 fi
536 fi
537 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
538
539 # Prefer explicitly selected file to automatically selected ones.
540 if test -z "$CONFIG_SITE"; then
541 if test "x$prefix" != xNONE; then
542 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
543 else
544 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
545 fi
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 # This works around the fact that libtool configuration may change LD
586 # for this particular configuration, but some shells, instead of
587 # keeping the changes in LD private, export them just because LD is
588 # exported. Only used at the end of this file.
589 ORIGINAL_LD_FOR_MULTILIBS=$LD
590
591 PACKAGE=libstdc++
592
593 # For libtool versioning info, format is CURRENT:REVISION:AGE
594 libtool_VERSION=6:0:0
595
596
597
598 # Check whether --enable-multilib or --disable-multilib was given.
599 if test "${enable_multilib+set}" = set; then
600 enableval="$enable_multilib"
601 case "${enableval}" in
602 yes) multilib=yes ;;
603 no) multilib=no ;;
604 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
605 esac
606 else
607 multilib=yes
608 fi
609
610 # When building with srcdir == objdir, links to the source files will
611 # be created in directories within the target_subdir. We have to
612 # adjust toplevel_srcdir accordingly, so that configure finds
613 # install-sh and other auxiliary files that live in the top-level
614 # source directory.
615 if test "${srcdir}" = "."; then
616 if test -z "${with_target_subdir}"; then
617 toprel=".."
618 else
619 if test "${with_target_subdir}" != "."; then
620 toprel="${with_multisrctop}../.."
621 else
622 toprel="${with_multisrctop}.."
623 fi
624 fi
625 else
626 toprel=".."
627 fi
628 ac_aux_dir=
629 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
630 if test -f $ac_dir/install-sh; then
631 ac_aux_dir=$ac_dir
632 ac_install_sh="$ac_aux_dir/install-sh -c"
633 break
634 elif test -f $ac_dir/install.sh; then
635 ac_aux_dir=$ac_dir
636 ac_install_sh="$ac_aux_dir/install.sh -c"
637 break
638 fi
639 done
640 if test -z "$ac_aux_dir"; then
641 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
642 fi
643 ac_config_guess=$ac_aux_dir/config.guess
644 ac_config_sub=$ac_aux_dir/config.sub
645 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
646
647 toplevel_srcdir=\${top_srcdir}/$toprel
648
649
650
651 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
652 #
653 # You will slowly go insane if you do not grok the following fact: when
654 # building v3 as part of the compiler, the top-level /target/ becomes the
655 # library's /host/. `configure' then causes --target to default to --host,
656 # exactly like any other package using autoconf. Therefore, 'target' and
657 # 'host' will always be the same. This makes sense both for native and
658 # cross compilers, just think about it for a little while. :-)
659 #
660 # Also, if v3 is being configured as part of a cross compiler, the top-level
661 # configure script will pass the "real" host as $with_cross_host.
662 #
663 # AC 2.5x sets target_alias iff the user specified --target, but we use it
664 # everywhere, so we set it here just to be sure. In AC 2.13
665 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
666
667 # Do some error checking and defaulting for the host and target type.
668 # The inputs are:
669 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
670 #
671 # The rules are:
672 # 1. You are not allowed to specify --host, --target, and nonopt at the
673 # same time.
674 # 2. Host defaults to nonopt.
675 # 3. If nonopt is not specified, then host defaults to the current host,
676 # as determined by config.guess.
677 # 4. Target and build default to nonopt.
678 # 5. If nonopt is not specified, then target and build default to host.
679
680 # The aliases save the names the user supplied, while $host etc.
681 # will get canonicalized.
682 case $host---$target---$nonopt in
683 NONE---*---* | *---NONE---* | *---*---NONE) ;;
684 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
685 esac
686
687
688 # Make sure we can run config.sub.
689 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
690 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
691 fi
692
693 echo $ac_n "checking host system type""... $ac_c" 1>&6
694 echo "configure:695: checking host system type" >&5
695
696 host_alias=$host
697 case "$host_alias" in
698 NONE)
699 case $nonopt in
700 NONE)
701 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
702 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
703 fi ;;
704 *) host_alias=$nonopt ;;
705 esac ;;
706 esac
707
708 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
709 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
710 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
711 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
712 echo "$ac_t""$host" 1>&6
713
714 echo $ac_n "checking target system type""... $ac_c" 1>&6
715 echo "configure:716: checking target system type" >&5
716
717 target_alias=$target
718 case "$target_alias" in
719 NONE)
720 case $nonopt in
721 NONE) target_alias=$host_alias ;;
722 *) target_alias=$nonopt ;;
723 esac ;;
724 esac
725
726 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
727 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
728 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
729 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
730 echo "$ac_t""$target" 1>&6
731
732 echo $ac_n "checking build system type""... $ac_c" 1>&6
733 echo "configure:734: checking build system type" >&5
734
735 build_alias=$build
736 case "$build_alias" in
737 NONE)
738 case $nonopt in
739 NONE) build_alias=$host_alias ;;
740 *) build_alias=$nonopt ;;
741 esac ;;
742 esac
743
744 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
745 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
746 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
747 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
748 echo "$ac_t""$build" 1>&6
749
750 test "$host_alias" != "$target_alias" &&
751 test "$program_prefix$program_suffix$program_transform_name" = \
752 NONENONEs,x,x, &&
753 program_prefix=${target_alias}-
754
755 target_alias=${target_alias-$target}
756
757
758 # Runs configure.target, finds CC, CXX and assorted other critical bits.
759 # Must run this before the GLIBCPP_ENABLE_* macros below.
760 if test $host != $build; then
761 ac_tool_prefix=${host_alias}-
762 else
763 ac_tool_prefix=
764 fi
765
766 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
767 echo "configure:768: checking for Cygwin environment" >&5
768 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
769 echo $ac_n "(cached) $ac_c" 1>&6
770 else
771 cat > conftest.$ac_ext <<EOF
772 #line 773 "configure"
773 #include "confdefs.h"
774
775 int main() {
776
777 #ifndef __CYGWIN__
778 #define __CYGWIN__ __CYGWIN32__
779 #endif
780 return __CYGWIN__;
781 ; return 0; }
782 EOF
783 if { (eval echo configure:784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
784 rm -rf conftest*
785 ac_cv_cygwin=yes
786 else
787 echo "configure: failed program was:" >&5
788 cat conftest.$ac_ext >&5
789 rm -rf conftest*
790 ac_cv_cygwin=no
791 fi
792 rm -f conftest*
793 rm -f conftest*
794 fi
795
796 echo "$ac_t""$ac_cv_cygwin" 1>&6
797 CYGWIN=
798 test "$ac_cv_cygwin" = yes && CYGWIN=yes
799 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
800 echo "configure:801: checking for mingw32 environment" >&5
801 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
803 else
804 cat > conftest.$ac_ext <<EOF
805 #line 806 "configure"
806 #include "confdefs.h"
807
808 int main() {
809 return __MINGW32__;
810 ; return 0; }
811 EOF
812 if { (eval echo configure:813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
813 rm -rf conftest*
814 ac_cv_mingw32=yes
815 else
816 echo "configure: failed program was:" >&5
817 cat conftest.$ac_ext >&5
818 rm -rf conftest*
819 ac_cv_mingw32=no
820 fi
821 rm -f conftest*
822 rm -f conftest*
823 fi
824
825 echo "$ac_t""$ac_cv_mingw32" 1>&6
826 MINGW32=
827 test "$ac_cv_mingw32" = yes && MINGW32=yes
828
829 # Export build and source directories.
830 # These need to be absolute paths, yet at the same time need to
831 # canonicalize only relative paths, because then amd will not unmount
832 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
833 glibcpp_builddir=`${PWDCMD-pwd}`
834 case $srcdir in
835 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
836 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
837 esac
838
839
840
841
842
843 for ac_prog in gawk mawk nawk awk
844 do
845 # Extract the first word of "$ac_prog", so it can be a program name with args.
846 set dummy $ac_prog; ac_word=$2
847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
848 echo "configure:849: checking for $ac_word" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
851 else
852 if test -n "$AWK"; then
853 ac_cv_prog_AWK="$AWK" # Let the user override the test.
854 else
855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
856 ac_dummy="$PATH"
857 for ac_dir in $ac_dummy; do
858 test -z "$ac_dir" && ac_dir=.
859 if test -f $ac_dir/$ac_word; then
860 ac_cv_prog_AWK="$ac_prog"
861 break
862 fi
863 done
864 IFS="$ac_save_ifs"
865 fi
866 fi
867 AWK="$ac_cv_prog_AWK"
868 if test -n "$AWK"; then
869 echo "$ac_t""$AWK" 1>&6
870 else
871 echo "$ac_t""no" 1>&6
872 fi
873
874 test -n "$AWK" && break
875 done
876
877 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.5x, can also
878 # be 'cp -p' if linking isn't available. Uncomment the next line to
879 # force a particular method.
880 #ac_cv_prog_LN_S='cp -p'
881 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
882 echo "configure:883: checking whether ln -s works" >&5
883 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
884 echo $ac_n "(cached) $ac_c" 1>&6
885 else
886 rm -f conftestdata
887 if ln -s X conftestdata 2>/dev/null
888 then
889 rm -f conftestdata
890 ac_cv_prog_LN_S="ln -s"
891 else
892 ac_cv_prog_LN_S=ln
893 fi
894 fi
895 LN_S="$ac_cv_prog_LN_S"
896 if test "$ac_cv_prog_LN_S" = "ln -s"; then
897 echo "$ac_t""yes" 1>&6
898 else
899 echo "$ac_t""no" 1>&6
900 fi
901
902
903 # We use these options to decide which functions to include.
904 # Check whether --with-target-subdir or --without-target-subdir was given.
905 if test "${with_target_subdir+set}" = set; then
906 withval="$with_target_subdir"
907 :
908 fi
909
910 # Check whether --with-cross-host or --without-cross-host was given.
911 if test "${with_cross_host+set}" = set; then
912 withval="$with_cross_host"
913 :
914 fi
915
916
917 glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
918
919
920 # Never versions of autoconf add an underscore to these functions.
921 # Prevent future problems ...
922
923
924
925
926
927 # AC_PROG_CC
928 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
929 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
930 # are probably using a cross compiler, which will not be able to fully
931 # link an executable. This is addressed in later versions of autoconf.
932
933
934
935
936 # Extract the first word of "gcc", so it can be a program name with args.
937 set dummy gcc; ac_word=$2
938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
939 echo "configure:940: checking for $ac_word" >&5
940 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
941 echo $ac_n "(cached) $ac_c" 1>&6
942 else
943 if test -n "$CC"; then
944 ac_cv_prog_CC="$CC" # Let the user override the test.
945 else
946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
947 ac_dummy="$PATH"
948 for ac_dir in $ac_dummy; do
949 test -z "$ac_dir" && ac_dir=.
950 if test -f $ac_dir/$ac_word; then
951 ac_cv_prog_CC="gcc"
952 break
953 fi
954 done
955 IFS="$ac_save_ifs"
956 fi
957 fi
958 CC="$ac_cv_prog_CC"
959 if test -n "$CC"; then
960 echo "$ac_t""$CC" 1>&6
961 else
962 echo "$ac_t""no" 1>&6
963 fi
964
965 if test -z "$CC"; then
966 # Extract the first word of "cc", so it can be a program name with args.
967 set dummy cc; ac_word=$2
968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
969 echo "configure:970: checking for $ac_word" >&5
970 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
972 else
973 if test -n "$CC"; then
974 ac_cv_prog_CC="$CC" # Let the user override the test.
975 else
976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
977 ac_prog_rejected=no
978 ac_dummy="$PATH"
979 for ac_dir in $ac_dummy; do
980 test -z "$ac_dir" && ac_dir=.
981 if test -f $ac_dir/$ac_word; then
982 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
983 ac_prog_rejected=yes
984 continue
985 fi
986 ac_cv_prog_CC="cc"
987 break
988 fi
989 done
990 IFS="$ac_save_ifs"
991 if test $ac_prog_rejected = yes; then
992 # We found a bogon in the path, so make sure we never use it.
993 set dummy $ac_cv_prog_CC
994 shift
995 if test $# -gt 0; then
996 # We chose a different compiler from the bogus one.
997 # However, it has the same basename, so the bogon will be chosen
998 # first if we set CC to just the basename; use the full file name.
999 shift
1000 set dummy "$ac_dir/$ac_word" "$@"
1001 shift
1002 ac_cv_prog_CC="$@"
1003 fi
1004 fi
1005 fi
1006 fi
1007 CC="$ac_cv_prog_CC"
1008 if test -n "$CC"; then
1009 echo "$ac_t""$CC" 1>&6
1010 else
1011 echo "$ac_t""no" 1>&6
1012 fi
1013
1014 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1015 fi
1016
1017 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1018 echo "configure:1019: checking whether we are using GNU C" >&5
1019 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1021 else
1022 cat > conftest.c <<EOF
1023 #ifdef __GNUC__
1024 yes;
1025 #endif
1026 EOF
1027 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1028 ac_cv_prog_gcc=yes
1029 else
1030 ac_cv_prog_gcc=no
1031 fi
1032 fi
1033
1034 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1035
1036 if test $ac_cv_prog_gcc = yes; then
1037 GCC=yes
1038 ac_test_CFLAGS="${CFLAGS+set}"
1039 ac_save_CFLAGS="$CFLAGS"
1040 CFLAGS=
1041 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1042 echo "configure:1043: checking whether ${CC-cc} accepts -g" >&5
1043 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1045 else
1046 echo 'void f(){}' > conftest.c
1047 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1048 ac_cv_prog_cc_g=yes
1049 else
1050 ac_cv_prog_cc_g=no
1051 fi
1052 rm -f conftest*
1053
1054 fi
1055
1056 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1057 if test "$ac_test_CFLAGS" = set; then
1058 CFLAGS="$ac_save_CFLAGS"
1059 elif test $ac_cv_prog_cc_g = yes; then
1060 CFLAGS="-g -O2"
1061 else
1062 CFLAGS="-O2"
1063 fi
1064 else
1065 GCC=
1066 test "${CFLAGS+set}" = set || CFLAGS="-g"
1067 fi
1068
1069
1070 # Likewise for AC_PROG_CXX. We can't just call it directly because g++
1071 # will try to link in libstdc++.
1072
1073
1074
1075 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1076 # flags that come in CXX while configuring libstdc++. They're different
1077 # from those used for all other target libraries. If CXX is set in
1078 # the environment, respect that here.
1079 glibcpp_CXX=$CXX
1080 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1081 do
1082 # Extract the first word of "$ac_prog", so it can be a program name with args.
1083 set dummy $ac_prog; ac_word=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1088 else
1089 if test -n "$glibcpp_CXX"; then
1090 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1091 else
1092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1093 ac_dummy="$PATH"
1094 for ac_dir in $ac_dummy; do
1095 test -z "$ac_dir" && ac_dir=.
1096 if test -f $ac_dir/$ac_word; then
1097 ac_cv_prog_glibcpp_CXX="$ac_prog"
1098 break
1099 fi
1100 done
1101 IFS="$ac_save_ifs"
1102 fi
1103 fi
1104 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1105 if test -n "$glibcpp_CXX"; then
1106 echo "$ac_t""$glibcpp_CXX" 1>&6
1107 else
1108 echo "$ac_t""no" 1>&6
1109 fi
1110
1111 test -n "$glibcpp_CXX" && break
1112 done
1113 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1114
1115
1116 CXX=$glibcpp_CXX
1117 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1118
1119 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1120 echo "configure:1121: checking whether we are using GNU C++" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1123 else
1124 cat > conftest.C <<EOF
1125 #ifdef __GNUC__
1126 yes;
1127 #endif
1128 EOF
1129 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1130 ac_cv_prog_gxx=yes
1131 else
1132 ac_cv_prog_gxx=no
1133 fi
1134 fi
1135
1136 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1137
1138 if test $ac_cv_prog_gxx = yes; then
1139 GXX=yes
1140 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1141 ac_save_CXXFLAGS="$CXXFLAGS"
1142 CXXFLAGS=
1143 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1144 echo "configure:1145: checking whether ${CXX-g++} accepts -g" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1147 else
1148 echo 'void f(){}' > conftest.cc
1149 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1150 ac_cv_prog_cxx_g=yes
1151 else
1152 ac_cv_prog_cxx_g=no
1153 fi
1154 rm -f conftest*
1155
1156 fi
1157
1158 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1159 if test "$ac_test_CXXFLAGS" = set; then
1160 CXXFLAGS="$ac_save_CXXFLAGS"
1161 elif test $ac_cv_prog_cxx_g = yes; then
1162 CXXFLAGS="-g -O2"
1163 else
1164 CXXFLAGS="-O2"
1165 fi
1166 else
1167 GXX=
1168 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1169 fi
1170
1171
1172 # For directory versioning (e.g., headers) and other variables.
1173 echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1174 echo "configure:1175: checking for GCC version number" >&5
1175 gcc_version=`$glibcpp_CXX -dumpversion`
1176 echo "$ac_t""$gcc_version" 1>&6
1177
1178 # For some reason, gettext needs this.
1179
1180 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1181 echo "configure:1182: checking for strerror in -lcposix" >&5
1182 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1185 else
1186 ac_save_LIBS="$LIBS"
1187 LIBS="-lcposix $LIBS"
1188 cat > conftest.$ac_ext <<EOF
1189 #line 1190 "configure"
1190 #include "confdefs.h"
1191 /* Override any gcc2 internal prototype to avoid an error. */
1192 /* We use char because int might match the return type of a gcc2
1193 builtin and then its argument prototype would still apply. */
1194 char strerror();
1195
1196 int main() {
1197 strerror()
1198 ; return 0; }
1199 EOF
1200 if { (eval echo configure:1201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1201 rm -rf conftest*
1202 eval "ac_cv_lib_$ac_lib_var=yes"
1203 else
1204 echo "configure: failed program was:" >&5
1205 cat conftest.$ac_ext >&5
1206 rm -rf conftest*
1207 eval "ac_cv_lib_$ac_lib_var=no"
1208 fi
1209 rm -f conftest*
1210 LIBS="$ac_save_LIBS"
1211
1212 fi
1213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1214 echo "$ac_t""yes" 1>&6
1215 LIBS="$LIBS -lcposix"
1216 else
1217 echo "$ac_t""no" 1>&6
1218 fi
1219
1220
1221
1222
1223 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1224 set dummy ${ac_tool_prefix}as; ac_word=$2
1225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1226 echo "configure:1227: checking for $ac_word" >&5
1227 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1229 else
1230 if test -n "$AS"; then
1231 ac_cv_prog_AS="$AS" # Let the user override the test.
1232 else
1233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1234 ac_dummy="$PATH"
1235 for ac_dir in $ac_dummy; do
1236 test -z "$ac_dir" && ac_dir=.
1237 if test -f $ac_dir/$ac_word; then
1238 ac_cv_prog_AS="${ac_tool_prefix}as"
1239 break
1240 fi
1241 done
1242 IFS="$ac_save_ifs"
1243 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1244 fi
1245 fi
1246 AS="$ac_cv_prog_AS"
1247 if test -n "$AS"; then
1248 echo "$ac_t""$AS" 1>&6
1249 else
1250 echo "$ac_t""no" 1>&6
1251 fi
1252
1253
1254
1255 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1256 set dummy ${ac_tool_prefix}ar; ac_word=$2
1257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1258 echo "configure:1259: checking for $ac_word" >&5
1259 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1261 else
1262 if test -n "$AR"; then
1263 ac_cv_prog_AR="$AR" # Let the user override the test.
1264 else
1265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1266 ac_dummy="$PATH"
1267 for ac_dir in $ac_dummy; do
1268 test -z "$ac_dir" && ac_dir=.
1269 if test -f $ac_dir/$ac_word; then
1270 ac_cv_prog_AR="${ac_tool_prefix}ar"
1271 break
1272 fi
1273 done
1274 IFS="$ac_save_ifs"
1275 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1276 fi
1277 fi
1278 AR="$ac_cv_prog_AR"
1279 if test -n "$AR"; then
1280 echo "$ac_t""$AR" 1>&6
1281 else
1282 echo "$ac_t""no" 1>&6
1283 fi
1284
1285
1286
1287 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1288 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1290 echo "configure:1291: checking for $ac_word" >&5
1291 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1293 else
1294 if test -n "$RANLIB"; then
1295 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1296 else
1297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1298 ac_dummy="$PATH"
1299 for ac_dir in $ac_dummy; do
1300 test -z "$ac_dir" && ac_dir=.
1301 if test -f $ac_dir/$ac_word; then
1302 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1303 break
1304 fi
1305 done
1306 IFS="$ac_save_ifs"
1307 fi
1308 fi
1309 RANLIB="$ac_cv_prog_RANLIB"
1310 if test -n "$RANLIB"; then
1311 echo "$ac_t""$RANLIB" 1>&6
1312 else
1313 echo "$ac_t""no" 1>&6
1314 fi
1315
1316
1317 if test -z "$ac_cv_prog_RANLIB"; then
1318 if test -n "$ac_tool_prefix"; then
1319 # Extract the first word of "ranlib", so it can be a program name with args.
1320 set dummy ranlib; ac_word=$2
1321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1322 echo "configure:1323: checking for $ac_word" >&5
1323 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326 if test -n "$RANLIB"; then
1327 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1328 else
1329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1330 ac_dummy="$PATH"
1331 for ac_dir in $ac_dummy; do
1332 test -z "$ac_dir" && ac_dir=.
1333 if test -f $ac_dir/$ac_word; then
1334 ac_cv_prog_RANLIB="ranlib"
1335 break
1336 fi
1337 done
1338 IFS="$ac_save_ifs"
1339 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1340 fi
1341 fi
1342 RANLIB="$ac_cv_prog_RANLIB"
1343 if test -n "$RANLIB"; then
1344 echo "$ac_t""$RANLIB" 1>&6
1345 else
1346 echo "$ac_t""no" 1>&6
1347 fi
1348
1349 else
1350 RANLIB="ranlib-not-found-in-path-error"
1351 fi
1352 fi
1353
1354 # Find a good install program. We prefer a C program (faster),
1355 # so one script is as good as another. But avoid the broken or
1356 # incompatible versions:
1357 # SysV /etc/install, /usr/sbin/install
1358 # SunOS /usr/etc/install
1359 # IRIX /sbin/install
1360 # AIX /bin/install
1361 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1362 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1363 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1364 # ./install, which can be erroneously created by make from ./install.sh.
1365 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1366 echo "configure:1367: checking for a BSD compatible install" >&5
1367 if test -z "$INSTALL"; then
1368 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1370 else
1371 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1372 for ac_dir in $PATH; do
1373 # Account for people who put trailing slashes in PATH elements.
1374 case "$ac_dir/" in
1375 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1376 *)
1377 # OSF1 and SCO ODT 3.0 have their own names for install.
1378 # Don't use installbsd from OSF since it installs stuff as root
1379 # by default.
1380 for ac_prog in ginstall scoinst install; do
1381 if test -f $ac_dir/$ac_prog; then
1382 if test $ac_prog = install &&
1383 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1384 # AIX install. It has an incompatible calling convention.
1385 :
1386 else
1387 ac_cv_path_install="$ac_dir/$ac_prog -c"
1388 break 2
1389 fi
1390 fi
1391 done
1392 ;;
1393 esac
1394 done
1395 IFS="$ac_save_IFS"
1396
1397 fi
1398 if test "${ac_cv_path_install+set}" = set; then
1399 INSTALL="$ac_cv_path_install"
1400 else
1401 # As a last resort, use the slow shell script. We don't cache a
1402 # path for INSTALL within a source directory, because that will
1403 # break other packages using the cache if that directory is
1404 # removed, or if the path is relative.
1405 INSTALL="$ac_install_sh"
1406 fi
1407 fi
1408 echo "$ac_t""$INSTALL" 1>&6
1409
1410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1411 # It thinks the first close brace ends the variable substitution.
1412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1413
1414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1415
1416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1417
1418
1419 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1420 echo "configure:1421: checking whether to enable maintainer-specific portions of Makefiles" >&5
1421 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1422 if test "${enable_maintainer_mode+set}" = set; then
1423 enableval="$enable_maintainer_mode"
1424 USE_MAINTAINER_MODE=$enableval
1425 else
1426 USE_MAINTAINER_MODE=no
1427 fi
1428
1429 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1430
1431
1432 if test $USE_MAINTAINER_MODE = yes; then
1433 MAINTAINER_MODE_TRUE=
1434 MAINTAINER_MODE_FALSE='#'
1435 else
1436 MAINTAINER_MODE_TRUE='#'
1437 MAINTAINER_MODE_FALSE=
1438 fi
1439 MAINT=$MAINTAINER_MODE_TRUE
1440
1441
1442
1443 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1444 # at least currently, we never actually build a program, so we never
1445 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1446 # fails, because we are probably configuring with a cross compiler
1447 # which can't create executables. So we include AC_EXEEXT to keep
1448 # automake happy, but we don't execute it, since we don't care about
1449 # the result.
1450 if false; then
1451 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1452 # to nothing, so nothing would remain between `then' and `fi' if it
1453 # were not for the `:' below.
1454 :
1455
1456
1457 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1458 echo "configure:1459: checking for executable suffix" >&5
1459 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1461 else
1462 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1463 ac_cv_exeext=.exe
1464 else
1465 rm -f conftest*
1466 echo 'int main () { return 0; }' > conftest.$ac_ext
1467 ac_cv_exeext=
1468 if { (eval echo configure:1469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1469 for file in conftest.*; do
1470 case $file in
1471 *.c | *.o | *.obj) ;;
1472 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1473 esac
1474 done
1475 else
1476 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1477 fi
1478 rm -f conftest*
1479 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1480 fi
1481 fi
1482
1483 EXEEXT=""
1484 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1485 echo "$ac_t""${ac_cv_exeext}" 1>&6
1486 ac_exeext=$EXEEXT
1487
1488 fi
1489
1490 case ${glibcpp_basedir} in
1491 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1492 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1493 esac
1494
1495 # Find platform-specific directories containing configuration info. In
1496 # addition to possibly modifying the same flags, it also sets up symlinks.
1497
1498 . ${glibcpp_basedir}/configure.target
1499 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1500 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1501
1502
1503
1504 am__api_version="1.4"
1505 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1506 echo "configure:1507: checking whether build environment is sane" >&5
1507 # Just in case
1508 sleep 1
1509 echo timestamp > conftestfile
1510 # Do `set' in a subshell so we don't clobber the current shell's
1511 # arguments. Must try -L first in case configure is actually a
1512 # symlink; some systems play weird games with the mod time of symlinks
1513 # (eg FreeBSD returns the mod time of the symlink's containing
1514 # directory).
1515 if (
1516 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1517 if test "$*" = "X"; then
1518 # -L didn't work.
1519 set X `ls -t $srcdir/configure conftestfile`
1520 fi
1521 if test "$*" != "X $srcdir/configure conftestfile" \
1522 && test "$*" != "X conftestfile $srcdir/configure"; then
1523
1524 # If neither matched, then we have a broken ls. This can happen
1525 # if, for instance, CONFIG_SHELL is bash and it inherits a
1526 # broken ls alias from the environment. This has actually
1527 # happened. Such a system could not be considered "sane".
1528 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1529 alias in your environment" 1>&2; exit 1; }
1530 fi
1531
1532 test "$2" = conftestfile
1533 )
1534 then
1535 # Ok.
1536 :
1537 else
1538 { echo "configure: error: newly created file is older than distributed files!
1539 Check your system clock" 1>&2; exit 1; }
1540 fi
1541 rm -f conftest*
1542 echo "$ac_t""yes" 1>&6
1543 if test "$program_transform_name" = s,x,x,; then
1544 program_transform_name=
1545 else
1546 # Double any \ or $. echo might interpret backslashes.
1547 cat <<\EOF_SED > conftestsed
1548 s,\\,\\\\,g; s,\$,$$,g
1549 EOF_SED
1550 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1551 rm -f conftestsed
1552 fi
1553 test "$program_prefix" != NONE &&
1554 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1555 # Use a double $ so make ignores it.
1556 test "$program_suffix" != NONE &&
1557 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1558
1559 # sed with no file args requires a program.
1560 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1561
1562 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1563 echo "configure:1564: checking whether ${MAKE-make} sets \${MAKE}" >&5
1564 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1565 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1566 echo $ac_n "(cached) $ac_c" 1>&6
1567 else
1568 cat > conftestmake <<\EOF
1569 all:
1570 @echo 'ac_maketemp="${MAKE}"'
1571 EOF
1572 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1573 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1574 if test -n "$ac_maketemp"; then
1575 eval ac_cv_prog_make_${ac_make}_set=yes
1576 else
1577 eval ac_cv_prog_make_${ac_make}_set=no
1578 fi
1579 rm -f conftestmake
1580 fi
1581 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1582 echo "$ac_t""yes" 1>&6
1583 SET_MAKE=
1584 else
1585 echo "$ac_t""no" 1>&6
1586 SET_MAKE="MAKE=${MAKE-make}"
1587 fi
1588
1589
1590 PACKAGE=$PACKAGE
1591
1592 VERSION=$gcc_version
1593
1594 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1595 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1596 fi
1597 cat >> confdefs.h <<EOF
1598 #define PACKAGE "$PACKAGE"
1599 EOF
1600
1601 cat >> confdefs.h <<EOF
1602 #define VERSION "$VERSION"
1603 EOF
1604
1605
1606
1607 missing_dir=`cd $ac_aux_dir && pwd`
1608 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1609 echo "configure:1610: checking for working aclocal-${am__api_version}" >&5
1610 # Run test in a subshell; some versions of sh will print an error if
1611 # an executable is not found, even if stderr is redirected.
1612 # Redirect stdin to placate older versions of autoconf. Sigh.
1613 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1614 ACLOCAL=aclocal-${am__api_version}
1615 echo "$ac_t""found" 1>&6
1616 else
1617 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1618 echo "$ac_t""missing" 1>&6
1619 fi
1620
1621 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1622 echo "configure:1623: checking for working autoconf" >&5
1623 # Run test in a subshell; some versions of sh will print an error if
1624 # an executable is not found, even if stderr is redirected.
1625 # Redirect stdin to placate older versions of autoconf. Sigh.
1626 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1627 AUTOCONF=autoconf
1628 echo "$ac_t""found" 1>&6
1629 else
1630 AUTOCONF="$missing_dir/missing autoconf"
1631 echo "$ac_t""missing" 1>&6
1632 fi
1633
1634 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1635 echo "configure:1636: checking for working automake-${am__api_version}" >&5
1636 # Run test in a subshell; some versions of sh will print an error if
1637 # an executable is not found, even if stderr is redirected.
1638 # Redirect stdin to placate older versions of autoconf. Sigh.
1639 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1640 AUTOMAKE=automake-${am__api_version}
1641 echo "$ac_t""found" 1>&6
1642 else
1643 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1644 echo "$ac_t""missing" 1>&6
1645 fi
1646
1647 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1648 echo "configure:1649: checking for working autoheader" >&5
1649 # Run test in a subshell; some versions of sh will print an error if
1650 # an executable is not found, even if stderr is redirected.
1651 # Redirect stdin to placate older versions of autoconf. Sigh.
1652 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1653 AUTOHEADER=autoheader
1654 echo "$ac_t""found" 1>&6
1655 else
1656 AUTOHEADER="$missing_dir/missing autoheader"
1657 echo "$ac_t""missing" 1>&6
1658 fi
1659
1660 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1661 echo "configure:1662: checking for working makeinfo" >&5
1662 # Run test in a subshell; some versions of sh will print an error if
1663 # an executable is not found, even if stderr is redirected.
1664 # Redirect stdin to placate older versions of autoconf. Sigh.
1665 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1666 MAKEINFO=makeinfo
1667 echo "$ac_t""found" 1>&6
1668 else
1669 MAKEINFO="$missing_dir/missing makeinfo"
1670 echo "$ac_t""missing" 1>&6
1671 fi
1672
1673
1674
1675
1676
1677
1678
1679 # Check whether --enable-shared or --disable-shared was given.
1680 if test "${enable_shared+set}" = set; then
1681 enableval="$enable_shared"
1682 p=${PACKAGE-default}
1683 case $enableval in
1684 yes) enable_shared=yes ;;
1685 no) enable_shared=no ;;
1686 *)
1687 enable_shared=no
1688 # Look at the argument we got. We use all the common list separators.
1689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1690 for pkg in $enableval; do
1691 if test "X$pkg" = "X$p"; then
1692 enable_shared=yes
1693 fi
1694 done
1695 IFS="$ac_save_ifs"
1696 ;;
1697 esac
1698 else
1699 enable_shared=yes
1700 fi
1701
1702 # Check whether --enable-static or --disable-static was given.
1703 if test "${enable_static+set}" = set; then
1704 enableval="$enable_static"
1705 p=${PACKAGE-default}
1706 case $enableval in
1707 yes) enable_static=yes ;;
1708 no) enable_static=no ;;
1709 *)
1710 enable_static=no
1711 # Look at the argument we got. We use all the common list separators.
1712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1713 for pkg in $enableval; do
1714 if test "X$pkg" = "X$p"; then
1715 enable_static=yes
1716 fi
1717 done
1718 IFS="$ac_save_ifs"
1719 ;;
1720 esac
1721 else
1722 enable_static=yes
1723 fi
1724
1725 # Check whether --enable-fast-install or --disable-fast-install was given.
1726 if test "${enable_fast_install+set}" = set; then
1727 enableval="$enable_fast_install"
1728 p=${PACKAGE-default}
1729 case $enableval in
1730 yes) enable_fast_install=yes ;;
1731 no) enable_fast_install=no ;;
1732 *)
1733 enable_fast_install=no
1734 # Look at the argument we got. We use all the common list separators.
1735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1736 for pkg in $enableval; do
1737 if test "X$pkg" = "X$p"; then
1738 enable_fast_install=yes
1739 fi
1740 done
1741 IFS="$ac_save_ifs"
1742 ;;
1743 esac
1744 else
1745 enable_fast_install=yes
1746 fi
1747
1748 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1749 if test "${with_gnu_ld+set}" = set; then
1750 withval="$with_gnu_ld"
1751 test "$withval" = no || with_gnu_ld=yes
1752 else
1753 with_gnu_ld=no
1754 fi
1755
1756 ac_prog=ld
1757 if test "$GCC" = yes; then
1758 # Check if gcc -print-prog-name=ld gives a path.
1759 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1760 echo "configure:1761: checking for ld used by GCC" >&5
1761 case $host in
1762 *-*-mingw*)
1763 # gcc leaves a trailing carriage return which upsets mingw
1764 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1765 *)
1766 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1767 esac
1768 case $ac_prog in
1769 # Accept absolute paths.
1770 [\\/]* | [A-Za-z]:[\\/]*)
1771 re_direlt='/[^/][^/]*/\.\./'
1772 # Canonicalize the path of ld
1773 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1774 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1775 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1776 done
1777 test -z "$LD" && LD="$ac_prog"
1778 ;;
1779 "")
1780 # If it fails, then pretend we aren't using GCC.
1781 ac_prog=ld
1782 ;;
1783 *)
1784 # If it is relative, then search for the first ld in PATH.
1785 with_gnu_ld=unknown
1786 ;;
1787 esac
1788 elif test "$with_gnu_ld" = yes; then
1789 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1790 echo "configure:1791: checking for GNU ld" >&5
1791 else
1792 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1793 echo "configure:1794: checking for non-GNU ld" >&5
1794 fi
1795 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1796 echo $ac_n "(cached) $ac_c" 1>&6
1797 else
1798 if test -z "$LD"; then
1799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1800 for ac_dir in $PATH; do
1801 test -z "$ac_dir" && ac_dir=.
1802 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1803 lt_cv_path_LD="$ac_dir/$ac_prog"
1804 # Check to see if the program is GNU ld. I'd rather use --version,
1805 # but apparently some GNU ld's only accept -v.
1806 # Break only if it was the GNU/non-GNU ld that we prefer.
1807 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1808 test "$with_gnu_ld" != no && break
1809 else
1810 test "$with_gnu_ld" != yes && break
1811 fi
1812 fi
1813 done
1814 IFS="$ac_save_ifs"
1815 else
1816 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1817 fi
1818 fi
1819
1820 LD="$lt_cv_path_LD"
1821 if test -n "$LD"; then
1822 echo "$ac_t""$LD" 1>&6
1823 else
1824 echo "$ac_t""no" 1>&6
1825 fi
1826 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1827 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1828 echo "configure:1829: checking if the linker ($LD) is GNU ld" >&5
1829 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1831 else
1832 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1833 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1834 lt_cv_prog_gnu_ld=yes
1835 else
1836 lt_cv_prog_gnu_ld=no
1837 fi
1838 fi
1839
1840 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1841 with_gnu_ld=$lt_cv_prog_gnu_ld
1842
1843
1844 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1845 echo "configure:1846: checking for $LD option to reload object files" >&5
1846 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1848 else
1849 lt_cv_ld_reload_flag='-r'
1850 fi
1851
1852 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1853 reload_flag=$lt_cv_ld_reload_flag
1854 test -n "$reload_flag" && reload_flag=" $reload_flag"
1855
1856 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1857 echo "configure:1858: checking for BSD-compatible nm" >&5
1858 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1860 else
1861 if test -n "$NM"; then
1862 # Let the user override the test.
1863 lt_cv_path_NM="$NM"
1864 else
1865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1866 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1867 test -z "$ac_dir" && ac_dir=.
1868 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1869 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1870 # Check to see if the nm accepts a BSD-compat flag.
1871 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1872 # nm: unknown option "B" ignored
1873 # Tru64's nm complains that /dev/null is an invalid object file
1874 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1875 lt_cv_path_NM="$tmp_nm -B"
1876 break
1877 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1878 lt_cv_path_NM="$tmp_nm -p"
1879 break
1880 else
1881 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1882 continue # so that we can try to find one that supports BSD flags
1883 fi
1884 fi
1885 done
1886 IFS="$ac_save_ifs"
1887 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1888 fi
1889 fi
1890
1891 NM="$lt_cv_path_NM"
1892 echo "$ac_t""$NM" 1>&6
1893
1894 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1895 echo "configure:1896: checking how to recognise dependant libraries" >&5
1896 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1898 else
1899 lt_cv_file_magic_cmd='$MAGIC_CMD'
1900 lt_cv_file_magic_test_file=
1901 lt_cv_deplibs_check_method='unknown'
1902 # Need to set the preceding variable on all platforms that support
1903 # interlibrary dependencies.
1904 # 'none' -- dependencies not supported.
1905 # `unknown' -- same as none, but documents that we really don't know.
1906 # 'pass_all' -- all dependencies passed with no checks.
1907 # 'test_compile' -- check by making test program.
1908 # 'file_magic [regex]' -- check by looking for files in library path
1909 # which responds to the $file_magic_cmd with a given egrep regex.
1910 # If you have `file' or equivalent on your system and you're not sure
1911 # whether `pass_all' will *always* work, you probably want this one.
1912
1913 case $host_os in
1914 aix*)
1915 lt_cv_deplibs_check_method=pass_all
1916 ;;
1917
1918 beos*)
1919 lt_cv_deplibs_check_method=pass_all
1920 ;;
1921
1922 bsdi4*)
1923 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1924 lt_cv_file_magic_cmd='/usr/bin/file -L'
1925 lt_cv_file_magic_test_file=/shlib/libc.so
1926 ;;
1927
1928 cygwin* | mingw* |pw32*)
1929 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1930 lt_cv_file_magic_cmd='$OBJDUMP -f'
1931 ;;
1932
1933 darwin* | rhapsody*)
1934 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1935 lt_cv_file_magic_cmd='/usr/bin/file -L'
1936 case "$host_os" in
1937 rhapsody* | darwin1.012)
1938 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1939 ;;
1940 *) # Darwin 1.3 on
1941 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1942 ;;
1943 esac
1944 ;;
1945
1946 freebsd* )
1947 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1948 case $host_cpu in
1949 i*86 )
1950 # Not sure whether the presence of OpenBSD here was a mistake.
1951 # Let's accept both of them until this is cleared up.
1952 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1953 lt_cv_file_magic_cmd=/usr/bin/file
1954 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1955 ;;
1956 esac
1957 else
1958 lt_cv_deplibs_check_method=pass_all
1959 fi
1960 ;;
1961
1962 gnu*)
1963 lt_cv_deplibs_check_method=pass_all
1964 ;;
1965
1966 hpux10.20*|hpux11*)
1967 case $host_cpu in
1968 hppa*)
1969 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1970 lt_cv_file_magic_cmd=/usr/bin/file
1971 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1972 ;;
1973 ia64*)
1974 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1975 lt_cv_file_magic_cmd=/usr/bin/file
1976 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1977 ;;
1978 esac
1979 ;;
1980
1981 irix5* | irix6*)
1982 case $host_os in
1983 irix5*)
1984 # this will be overridden with pass_all, but let us keep it just in case
1985 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1986 ;;
1987 *)
1988 case $LD in
1989 *-32|*"-32 ") libmagic=32-bit;;
1990 *-n32|*"-n32 ") libmagic=N32;;
1991 *-64|*"-64 ") libmagic=64-bit;;
1992 *) libmagic=never-match;;
1993 esac
1994 # this will be overridden with pass_all, but let us keep it just in case
1995 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1996 ;;
1997 esac
1998 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1999 lt_cv_deplibs_check_method=pass_all
2000 ;;
2001
2002 # This must be Linux ELF.
2003 linux-gnu*)
2004 case $host_cpu in
2005 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2006 lt_cv_deplibs_check_method=pass_all ;;
2007 *)
2008 # glibc up to 2.1.1 does not perform some relocations on ARM
2009 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2010 esac
2011 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2012 ;;
2013
2014 netbsd*)
2015 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2016 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2017 else
2018 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2019 fi
2020 ;;
2021
2022 newsos6)
2023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2024 lt_cv_file_magic_cmd=/usr/bin/file
2025 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2026 ;;
2027
2028 osf3* | osf4* | osf5*)
2029 # this will be overridden with pass_all, but let us keep it just in case
2030 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2031 lt_cv_file_magic_test_file=/shlib/libc.so
2032 lt_cv_deplibs_check_method=pass_all
2033 ;;
2034
2035 sco3.2v5*)
2036 lt_cv_deplibs_check_method=pass_all
2037 ;;
2038
2039 solaris*)
2040 lt_cv_deplibs_check_method=pass_all
2041 lt_cv_file_magic_test_file=/lib/libc.so
2042 ;;
2043
2044 sysv5uw[78]* | sysv4*uw2*)
2045 lt_cv_deplibs_check_method=pass_all
2046 ;;
2047
2048 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2049 case $host_vendor in
2050 ncr)
2051 lt_cv_deplibs_check_method=pass_all
2052 ;;
2053 motorola)
2054 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]'
2055 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2056 ;;
2057 esac
2058 ;;
2059 esac
2060
2061 fi
2062
2063 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2064 file_magic_cmd=$lt_cv_file_magic_cmd
2065 deplibs_check_method=$lt_cv_deplibs_check_method
2066
2067 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2068 echo "configure:2069: checking for object suffix" >&5
2069 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2071 else
2072 rm -f conftest*
2073 echo 'int i = 1;' > conftest.$ac_ext
2074 if { (eval echo configure:2075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2075 for ac_file in conftest.*; do
2076 case $ac_file in
2077 *.c) ;;
2078 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2079 esac
2080 done
2081 else
2082 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2083 fi
2084 rm -f conftest*
2085 fi
2086
2087 echo "$ac_t""$ac_cv_objext" 1>&6
2088 OBJEXT=$ac_cv_objext
2089 ac_objext=$ac_cv_objext
2090
2091 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2092
2093 # Only perform the check for file, if the check method requires it
2094 case $deplibs_check_method in
2095 file_magic*)
2096 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2097 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2098 echo "configure:2099: checking for ${ac_tool_prefix}file" >&5
2099 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2100 echo $ac_n "(cached) $ac_c" 1>&6
2101 else
2102 case $MAGIC_CMD in
2103 /*)
2104 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2105 ;;
2106 ?:/*)
2107 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2108 ;;
2109 *)
2110 ac_save_MAGIC_CMD="$MAGIC_CMD"
2111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2112 ac_dummy="/usr/bin:$PATH"
2113 for ac_dir in $ac_dummy; do
2114 test -z "$ac_dir" && ac_dir=.
2115 if test -f $ac_dir/${ac_tool_prefix}file; then
2116 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2117 if test -n "$file_magic_test_file"; then
2118 case $deplibs_check_method in
2119 "file_magic "*)
2120 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2121 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2122 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2123 egrep "$file_magic_regex" > /dev/null; then
2124 :
2125 else
2126 cat <<EOF 1>&2
2127
2128 *** Warning: the command libtool uses to detect shared libraries,
2129 *** $file_magic_cmd, produces output that libtool cannot recognize.
2130 *** The result is that libtool may fail to recognize shared libraries
2131 *** as such. This will affect the creation of libtool libraries that
2132 *** depend on shared libraries, but programs linked with such libtool
2133 *** libraries will work regardless of this problem. Nevertheless, you
2134 *** may want to report the problem to your system manager and/or to
2135 *** bug-libtool@gnu.org
2136
2137 EOF
2138 fi ;;
2139 esac
2140 fi
2141 break
2142 fi
2143 done
2144 IFS="$ac_save_ifs"
2145 MAGIC_CMD="$ac_save_MAGIC_CMD"
2146 ;;
2147 esac
2148 fi
2149
2150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2151 if test -n "$MAGIC_CMD"; then
2152 echo "$ac_t""$MAGIC_CMD" 1>&6
2153 else
2154 echo "$ac_t""no" 1>&6
2155 fi
2156
2157 if test -z "$lt_cv_path_MAGIC_CMD"; then
2158 if test -n "$ac_tool_prefix"; then
2159 echo $ac_n "checking for file""... $ac_c" 1>&6
2160 echo "configure:2161: checking for file" >&5
2161 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2163 else
2164 case $MAGIC_CMD in
2165 /*)
2166 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2167 ;;
2168 ?:/*)
2169 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2170 ;;
2171 *)
2172 ac_save_MAGIC_CMD="$MAGIC_CMD"
2173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2174 ac_dummy="/usr/bin:$PATH"
2175 for ac_dir in $ac_dummy; do
2176 test -z "$ac_dir" && ac_dir=.
2177 if test -f $ac_dir/file; then
2178 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2179 if test -n "$file_magic_test_file"; then
2180 case $deplibs_check_method in
2181 "file_magic "*)
2182 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2183 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2184 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2185 egrep "$file_magic_regex" > /dev/null; then
2186 :
2187 else
2188 cat <<EOF 1>&2
2189
2190 *** Warning: the command libtool uses to detect shared libraries,
2191 *** $file_magic_cmd, produces output that libtool cannot recognize.
2192 *** The result is that libtool may fail to recognize shared libraries
2193 *** as such. This will affect the creation of libtool libraries that
2194 *** depend on shared libraries, but programs linked with such libtool
2195 *** libraries will work regardless of this problem. Nevertheless, you
2196 *** may want to report the problem to your system manager and/or to
2197 *** bug-libtool@gnu.org
2198
2199 EOF
2200 fi ;;
2201 esac
2202 fi
2203 break
2204 fi
2205 done
2206 IFS="$ac_save_ifs"
2207 MAGIC_CMD="$ac_save_MAGIC_CMD"
2208 ;;
2209 esac
2210 fi
2211
2212 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2213 if test -n "$MAGIC_CMD"; then
2214 echo "$ac_t""$MAGIC_CMD" 1>&6
2215 else
2216 echo "$ac_t""no" 1>&6
2217 fi
2218
2219 else
2220 MAGIC_CMD=:
2221 fi
2222 fi
2223
2224 fi
2225 ;;
2226 esac
2227
2228 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2229 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB'+set}'`\" = set"; then
2233 echo $ac_n "(cached) $ac_c" 1>&6
2234 else
2235 if test -n "$RANLIB"; then
2236 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
2244 break
2245 fi
2246 done
2247 IFS="$ac_save_ifs"
2248 fi
2249 fi
2250 RANLIB="$ac_cv_prog_RANLIB"
2251 if test -n "$RANLIB"; then
2252 echo "$ac_t""$RANLIB" 1>&6
2253 else
2254 echo "$ac_t""no" 1>&6
2255 fi
2256
2257
2258 if test -z "$ac_cv_prog_RANLIB"; then
2259 if test -n "$ac_tool_prefix"; then
2260 # Extract the first word of "ranlib", so it can be a program name with args.
2261 set dummy ranlib; 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_RANLIB'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2266 else
2267 if test -n "$RANLIB"; then
2268 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="ranlib"
2276 break
2277 fi
2278 done
2279 IFS="$ac_save_ifs"
2280 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2281 fi
2282 fi
2283 RANLIB="$ac_cv_prog_RANLIB"
2284 if test -n "$RANLIB"; then
2285 echo "$ac_t""$RANLIB" 1>&6
2286 else
2287 echo "$ac_t""no" 1>&6
2288 fi
2289
2290 else
2291 RANLIB=":"
2292 fi
2293 fi
2294
2295 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2296 set dummy ${ac_tool_prefix}strip; ac_word=$2
2297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2298 echo "configure:2299: checking for $ac_word" >&5
2299 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2301 else
2302 if test -n "$STRIP"; then
2303 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2304 else
2305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2306 ac_dummy="$PATH"
2307 for ac_dir in $ac_dummy; do
2308 test -z "$ac_dir" && ac_dir=.
2309 if test -f $ac_dir/$ac_word; then
2310 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2311 break
2312 fi
2313 done
2314 IFS="$ac_save_ifs"
2315 fi
2316 fi
2317 STRIP="$ac_cv_prog_STRIP"
2318 if test -n "$STRIP"; then
2319 echo "$ac_t""$STRIP" 1>&6
2320 else
2321 echo "$ac_t""no" 1>&6
2322 fi
2323
2324
2325 if test -z "$ac_cv_prog_STRIP"; then
2326 if test -n "$ac_tool_prefix"; then
2327 # Extract the first word of "strip", so it can be a program name with args.
2328 set dummy strip; ac_word=$2
2329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2330 echo "configure:2331: checking for $ac_word" >&5
2331 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2333 else
2334 if test -n "$STRIP"; then
2335 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2336 else
2337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2338 ac_dummy="$PATH"
2339 for ac_dir in $ac_dummy; do
2340 test -z "$ac_dir" && ac_dir=.
2341 if test -f $ac_dir/$ac_word; then
2342 ac_cv_prog_STRIP="strip"
2343 break
2344 fi
2345 done
2346 IFS="$ac_save_ifs"
2347 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2348 fi
2349 fi
2350 STRIP="$ac_cv_prog_STRIP"
2351 if test -n "$STRIP"; then
2352 echo "$ac_t""$STRIP" 1>&6
2353 else
2354 echo "$ac_t""no" 1>&6
2355 fi
2356
2357 else
2358 STRIP=":"
2359 fi
2360 fi
2361
2362
2363 # Check for any special flags to pass to ltconfig.
2364 libtool_flags="--cache-file=$cache_file"
2365 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2366 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2367 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2368 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2369 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2370 libtool_flags="$libtool_flags --enable-dlopen"
2371
2372 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2373 if test "${enable_libtool_lock+set}" = set; then
2374 enableval="$enable_libtool_lock"
2375 :
2376 fi
2377
2378 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2379 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2380
2381 # Check whether --with-pic or --without-pic was given.
2382 if test "${with_pic+set}" = set; then
2383 withval="$with_pic"
2384 pic_mode="$withval"
2385 else
2386 pic_mode=default
2387 fi
2388
2389 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2390 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2391
2392 # Some flags need to be propagated to the compiler or linker for good
2393 # libtool support.
2394 case $host in
2395 *-*-irix6*)
2396 # Find out which ABI we are using.
2397 echo '#line 2398 "configure"' > conftest.$ac_ext
2398 if { (eval echo configure:2399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2399 if test "$lt_cv_prog_gnu_ld" = yes; then
2400 case `/usr/bin/file conftest.$ac_objext` in
2401 *32-bit*)
2402 LD="${LD-ld} -melf32bsmip"
2403 ;;
2404 *N32*)
2405 LD="${LD-ld} -melf32bmipn32"
2406 ;;
2407 *64-bit*)
2408 LD="${LD-ld} -melf64bmip"
2409 ;;
2410 esac
2411 else
2412 case `/usr/bin/file conftest.$ac_objext` in
2413 *32-bit*)
2414 LD="${LD-ld} -32"
2415 ;;
2416 *N32*)
2417 LD="${LD-ld} -n32"
2418 ;;
2419 *64-bit*)
2420 LD="${LD-ld} -64"
2421 ;;
2422 esac
2423 fi
2424 fi
2425 rm -rf conftest*
2426 ;;
2427
2428 ia64-*-hpux*)
2429 # Find out which ABI we are using.
2430 echo 'int i;' > conftest.$ac_ext
2431 if { (eval echo configure:2432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2432 case "`/usr/bin/file conftest.o`" in
2433 *ELF-32*)
2434 HPUX_IA64_MODE="32"
2435 ;;
2436 *ELF-64*)
2437 HPUX_IA64_MODE="64"
2438 ;;
2439 esac
2440 fi
2441 rm -rf conftest*
2442 ;;
2443
2444 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2445 # Find out which ABI we are using.
2446 echo 'int i;' > conftest.$ac_ext
2447 if { (eval echo configure:2448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2448 case "`/usr/bin/file conftest.o`" in
2449 *32-bit*)
2450 case $host in
2451 x86_64-*linux*)
2452 LD="${LD-ld} -m elf_i386"
2453 ;;
2454 ppc64-*linux*)
2455 LD="${LD-ld} -m elf32ppclinux"
2456 ;;
2457 s390x-*linux*)
2458 LD="${LD-ld} -m elf_s390"
2459 ;;
2460 sparc64-*linux*)
2461 LD="${LD-ld} -m elf32_sparc"
2462 ;;
2463 esac
2464 ;;
2465 *64-bit*)
2466 case $host in
2467 x86_64-*linux*)
2468 LD="${LD-ld} -m elf_x86_64"
2469 ;;
2470 ppc*-*linux*|powerpc*-*linux*)
2471 LD="${LD-ld} -m elf64ppc"
2472 ;;
2473 s390*-*linux*)
2474 LD="${LD-ld} -m elf64_s390"
2475 ;;
2476 sparc*-*linux*)
2477 LD="${LD-ld} -m elf64_sparc"
2478 ;;
2479 esac
2480 ;;
2481 esac
2482 fi
2483 rm -rf conftest*
2484 ;;
2485
2486 *-*-sco3.2v5*)
2487 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2488 SAVE_CFLAGS="$CFLAGS"
2489 CFLAGS="$CFLAGS -belf"
2490 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2491 echo "configure:2492: checking whether the C compiler needs -belf" >&5
2492 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6
2494 else
2495
2496 ac_ext=c
2497 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2498 ac_cpp='$CPP $CPPFLAGS'
2499 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2500 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2501 cross_compiling=$ac_cv_prog_cc_cross
2502
2503 cat > conftest.$ac_ext <<EOF
2504 #line 2505 "configure"
2505 #include "confdefs.h"
2506
2507 int main() {
2508
2509 ; return 0; }
2510 EOF
2511 if { (eval echo configure:2512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2512 rm -rf conftest*
2513 lt_cv_cc_needs_belf=yes
2514 else
2515 echo "configure: failed program was:" >&5
2516 cat conftest.$ac_ext >&5
2517 rm -rf conftest*
2518 lt_cv_cc_needs_belf=no
2519 fi
2520 rm -f conftest*
2521 ac_ext=c
2522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2523 ac_cpp='$CPP $CPPFLAGS'
2524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2526 cross_compiling=$ac_cv_prog_cc_cross
2527
2528 fi
2529
2530 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2531 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2532 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2533 CFLAGS="$SAVE_CFLAGS"
2534 fi
2535 ;;
2536
2537
2538 esac
2539
2540 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2541 echo "configure:2542: checking how to run the C++ preprocessor" >&5
2542 if test -z "$CXXCPP"; then
2543 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2544 echo $ac_n "(cached) $ac_c" 1>&6
2545 else
2546 ac_ext=C
2547 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2548 ac_cpp='$CXXCPP $CPPFLAGS'
2549 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2550 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2551 cross_compiling=$ac_cv_prog_cxx_cross
2552 CXXCPP="${CXX-g++} -E"
2553 cat > conftest.$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2556 #include <stdlib.h>
2557 EOF
2558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2559 { (eval echo configure:2560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2561 if test -z "$ac_err"; then
2562 :
2563 else
2564 echo "$ac_err" >&5
2565 echo "configure: failed program was:" >&5
2566 cat conftest.$ac_ext >&5
2567 rm -rf conftest*
2568 CXXCPP=/lib/cpp
2569 fi
2570 rm -f conftest*
2571 ac_cv_prog_CXXCPP="$CXXCPP"
2572 ac_ext=c
2573 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2574 ac_cpp='$CPP $CPPFLAGS'
2575 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2576 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2577 cross_compiling=$ac_cv_prog_cc_cross
2578 fi
2579 fi
2580 CXXCPP="$ac_cv_prog_CXXCPP"
2581 echo "$ac_t""$CXXCPP" 1>&6
2582
2583
2584 # Save cache, so that ltconfig can load it
2585 cat > confcache <<\EOF
2586 # This file is a shell script that caches the results of configure
2587 # tests run on this system so they can be shared between configure
2588 # scripts and configure runs. It is not useful on other systems.
2589 # If it contains results you don't want to keep, you may remove or edit it.
2590 #
2591 # By default, configure uses ./config.cache as the cache file,
2592 # creating it if it does not exist already. You can give configure
2593 # the --cache-file=FILE option to use a different cache file; that is
2594 # what configure does when it calls configure scripts in
2595 # subdirectories, so they share the cache.
2596 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2597 # config.status only pays attention to the cache file if you give it the
2598 # --recheck option to rerun configure.
2599 #
2600 EOF
2601 # The following way of writing the cache mishandles newlines in values,
2602 # but we know of no workaround that is simple, portable, and efficient.
2603 # So, don't put newlines in cache variables' values.
2604 # Ultrix sh set writes to stderr and can't be redirected directly,
2605 # and sets the high bit in the cache file unless we assign to the vars.
2606 (set) 2>&1 |
2607 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2608 *ac_space=\ *)
2609 # `set' does not quote correctly, so add quotes (double-quote substitution
2610 # turns \\\\ into \\, and sed turns \\ into \).
2611 sed -n \
2612 -e "s/'/'\\\\''/g" \
2613 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2614 ;;
2615 *)
2616 # `set' quotes correctly as required by POSIX, so do not add quotes.
2617 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2618 ;;
2619 esac >> confcache
2620 if cmp -s $cache_file confcache; then
2621 :
2622 else
2623 if test -w $cache_file; then
2624 echo "updating cache $cache_file"
2625 cat confcache > $cache_file
2626 else
2627 echo "not updating unwritable cache $cache_file"
2628 fi
2629 fi
2630 rm -f confcache
2631
2632
2633 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2634 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2635 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2636 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2637 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2638 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2639 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2640 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2641 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2642 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2643
2644 # Reload cache, that may have been modified by ltconfig
2645 if test -r "$cache_file"; then
2646 echo "loading cache $cache_file"
2647 . $cache_file
2648 else
2649 echo "creating cache $cache_file"
2650 > $cache_file
2651 fi
2652
2653
2654 # This can be used to rebuild libtool when needed
2655 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2656
2657 # Always use our own libtool.
2658 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2659
2660 # Redirect the config.log output again, so that the ltconfig log is not
2661 # clobbered by the next message.
2662 exec 5>>./config.log
2663
2664
2665
2666 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2667 lt_save_CC="$CC"
2668 lt_save_CFLAGS="$CFLAGS"
2669 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2670 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2671 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2672 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2673 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2674 deplibs_check_method="$deplibs_check_method" \
2675 file_magic_cmd="$file_magic_cmd" \
2676 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2677 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2678 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2679 CC="$lt_save_CC"
2680 CFLAGS="$lt_save_CFLAGS"
2681
2682 # Redirect the config.log output again, so that the ltconfig log is not
2683 # clobbered by the next message.
2684 exec 5>>./config.log
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694 # Check for c++ or library specific bits that don't require linking.
2695 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2696 echo "configure:2697: checking for GNU make" >&5
2697 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2699 else
2700 _cv_gnu_make_command='' ;
2701 for a in "${MAKE-make}" make gmake gnumake ; do
2702 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2703 then
2704 _cv_gnu_make_command=$a ;
2705 break;
2706 fi
2707 done ;
2708
2709 fi
2710
2711 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2712 if test "x$_cv_gnu_make_command" != "x" ; then
2713 ifGNUmake='' ;
2714 else
2715 ifGNUmake='#' ;
2716 fi
2717
2718
2719 #GLIBCPP_CHECK_COMPILER_VERSION
2720
2721 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2722 ac_save_CXXFLAGS="$CXXFLAGS"
2723 CXXFLAGS='-Werror -Winvalid-pch -Wno-deprecated -x c++-header'
2724
2725 echo $ac_n "checking for compiler that seems to compile .gch files""... $ac_c" 1>&6
2726 echo "configure:2727: checking for compiler that seems to compile .gch files" >&5
2727 if test x${glibcpp_pch_comp+set} != xset; then
2728 if eval "test \"`echo '$''{'glibcpp_pch_comp'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2730 else
2731
2732
2733 ac_ext=C
2734 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2735 ac_cpp='$CXXCPP $CPPFLAGS'
2736 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2737 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2738 cross_compiling=$ac_cv_prog_cxx_cross
2739
2740 cat > conftest.$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2743 #include <math.h>
2744
2745 int main() {
2746 (0);
2747 ; return 0; }
2748 EOF
2749 if { (eval echo configure:2750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2750 rm -rf conftest*
2751 glibcpp_pch_comp=yes
2752 else
2753 echo "configure: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2755 rm -rf conftest*
2756 glibcpp_pch_comp=no
2757 fi
2758 rm -f conftest*
2759 ac_ext=c
2760 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2763 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2764 cross_compiling=$ac_cv_prog_cc_cross
2765
2766
2767 fi
2768
2769 fi
2770 echo "$ac_t""$glibcpp_pch_comp" 1>&6
2771
2772 CXXFLAGS="$ac_save_CXXFLAGS"
2773
2774
2775 if test "$glibcpp_pch_comp" = yes; then
2776 GLIBCPP_BUILD_PCH_TRUE=
2777 GLIBCPP_BUILD_PCH_FALSE='#'
2778 else
2779 GLIBCPP_BUILD_PCH_TRUE='#'
2780 GLIBCPP_BUILD_PCH_FALSE=
2781 fi
2782
2783
2784 # Enable all the variable C++ stuff. C_MBCHAR must come early.
2785 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2786 echo "configure:2787: checking how to run the C preprocessor" >&5
2787 # On Suns, sometimes $CPP names a directory.
2788 if test -n "$CPP" && test -d "$CPP"; then
2789 CPP=
2790 fi
2791 if test -z "$CPP"; then
2792 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2794 else
2795 # This must be in double quotes, not single quotes, because CPP may get
2796 # substituted into the Makefile and "${CC-cc}" will confuse make.
2797 CPP="${CC-cc} -E"
2798 # On the NeXT, cc -E runs the code through the compiler's parser,
2799 # not just through cpp.
2800 cat > conftest.$ac_ext <<EOF
2801 #line 2802 "configure"
2802 #include "confdefs.h"
2803 #include <assert.h>
2804 Syntax Error
2805 EOF
2806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2807 { (eval echo configure:2808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2809 if test -z "$ac_err"; then
2810 :
2811 else
2812 echo "$ac_err" >&5
2813 echo "configure: failed program was:" >&5
2814 cat conftest.$ac_ext >&5
2815 rm -rf conftest*
2816 CPP="${CC-cc} -E -traditional-cpp"
2817 cat > conftest.$ac_ext <<EOF
2818 #line 2819 "configure"
2819 #include "confdefs.h"
2820 #include <assert.h>
2821 Syntax Error
2822 EOF
2823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2824 { (eval echo configure:2825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2826 if test -z "$ac_err"; then
2827 :
2828 else
2829 echo "$ac_err" >&5
2830 echo "configure: failed program was:" >&5
2831 cat conftest.$ac_ext >&5
2832 rm -rf conftest*
2833 CPP="${CC-cc} -nologo -E"
2834 cat > conftest.$ac_ext <<EOF
2835 #line 2836 "configure"
2836 #include "confdefs.h"
2837 #include <assert.h>
2838 Syntax Error
2839 EOF
2840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2841 { (eval echo configure:2842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2843 if test -z "$ac_err"; then
2844 :
2845 else
2846 echo "$ac_err" >&5
2847 echo "configure: failed program was:" >&5
2848 cat conftest.$ac_ext >&5
2849 rm -rf conftest*
2850 CPP=/lib/cpp
2851 fi
2852 rm -f conftest*
2853 fi
2854 rm -f conftest*
2855 fi
2856 rm -f conftest*
2857 ac_cv_prog_CPP="$CPP"
2858 fi
2859 CPP="$ac_cv_prog_CPP"
2860 else
2861 ac_cv_prog_CPP="$CPP"
2862 fi
2863 echo "$ac_t""$CPP" 1>&6
2864
2865
2866 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2867 echo "configure:2868: checking for cstdio to use" >&5
2868 # Check whether --enable-cstdio or --disable-cstdio was given.
2869 if test "${enable_cstdio+set}" = set; then
2870 enableval="$enable_cstdio"
2871 if test x$enable_cstdio = xno; then
2872 enable_cstdio=stdio
2873 fi
2874 else
2875 enable_cstdio=stdio
2876 fi
2877
2878
2879 enable_cstdio_flag=$enable_cstdio
2880
2881 case x${enable_cstdio_flag} in
2882 xlibio)
2883 CSTDIO_H=config/io/c_io_libio.h
2884 BASIC_FILE_H=config/io/basic_file_libio.h
2885 BASIC_FILE_CC=config/io/basic_file_libio.cc
2886 echo "$ac_t""libio" 1>&6
2887
2888 # see if we are on a system with libio native (ie, linux)
2889 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2890 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2891 echo "configure:2892: checking for libio.h" >&5
2892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2893 echo $ac_n "(cached) $ac_c" 1>&6
2894 else
2895 cat > conftest.$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2898 #include <libio.h>
2899 EOF
2900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2901 { (eval echo configure:2902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2903 if test -z "$ac_err"; then
2904 rm -rf conftest*
2905 eval "ac_cv_header_$ac_safe=yes"
2906 else
2907 echo "$ac_err" >&5
2908 echo "configure: failed program was:" >&5
2909 cat conftest.$ac_ext >&5
2910 rm -rf conftest*
2911 eval "ac_cv_header_$ac_safe=no"
2912 fi
2913 rm -f conftest*
2914 fi
2915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2916 echo "$ac_t""yes" 1>&6
2917 has_libio=yes
2918 else
2919 echo "$ac_t""no" 1>&6
2920 has_libio=no
2921 fi
2922
2923
2924 # Need to check and see what version of glibc is being used. If
2925 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2926 # compile most of libio for linux systems.
2927 if test x$has_libio = x"yes"; then
2928 case "$target" in
2929 *-*-linux*)
2930 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2931 echo "configure:2932: checking for glibc version >= 2.2" >&5
2932 cat > conftest.$ac_ext <<EOF
2933 #line 2934 "configure"
2934 #include "confdefs.h"
2935
2936 #include <features.h>
2937 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2938 ok
2939 #endif
2940
2941 EOF
2942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2943 egrep "ok" >/dev/null 2>&1; then
2944 rm -rf conftest*
2945 glibc_satisfactory=yes
2946 else
2947 rm -rf conftest*
2948 glibc_satisfactory=no
2949 fi
2950 rm -f conftest*
2951
2952 echo "$ac_t""$glibc_satisfactory" 1>&6
2953 ;;
2954 esac
2955
2956 # XXX at the moment, admit defeat and force the recompilation
2957 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2958 glibc_satisfactory=no
2959
2960 if test x$glibc_satisfactory = x"yes"; then
2961 need_libio=no
2962 need_wlibio=no
2963 else
2964 need_libio=yes
2965 # bkoz XXX need to add checks to enable this
2966 # pme XXX here's a first pass at such a check
2967 if test x$enable_c_mbchar != xno; then
2968 need_wlibio=yes
2969 else
2970 need_wlibio=no
2971 fi
2972 fi
2973
2974 else
2975 # Using libio, but <libio.h> doesn't exist on the target system. . .
2976 need_libio=yes
2977 # bkoz XXX need to add checks to enable this
2978 # pme XXX here's a first pass at such a check
2979 if test x$enable_c_mbchar != xno; then
2980 need_wlibio=yes
2981 else
2982 need_wlibio=no
2983 fi
2984 fi
2985 ;;
2986 xstdio | x | xno | xnone | xyes)
2987 # default
2988 CSTDIO_H=config/io/c_io_stdio.h
2989 BASIC_FILE_H=config/io/basic_file_stdio.h
2990 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2991 echo "$ac_t""stdio" 1>&6
2992
2993 # We're not using stdio.
2994 need_libio=no
2995 need_wlibio=no
2996 ;;
2997 *)
2998 echo "$enable_cstdio is an unknown io package" 1>&2
2999 exit 1
3000 ;;
3001 esac
3002
3003
3004
3005
3006 # 2000-08-04 bkoz hack
3007 CCODECVT_C=config/io/c_io_libio_codecvt.c
3008
3009 # 2000-08-04 bkoz hack
3010
3011
3012
3013 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
3014 GLIBCPP_BUILD_LIBIO_TRUE=
3015 GLIBCPP_BUILD_LIBIO_FALSE='#'
3016 else
3017 GLIBCPP_BUILD_LIBIO_TRUE='#'
3018 GLIBCPP_BUILD_LIBIO_FALSE=
3019 fi
3020
3021
3022 if test "$need_libio" = yes; then
3023 GLIBCPP_NEED_LIBIO_TRUE=
3024 GLIBCPP_NEED_LIBIO_FALSE='#'
3025 else
3026 GLIBCPP_NEED_LIBIO_TRUE='#'
3027 GLIBCPP_NEED_LIBIO_FALSE=
3028 fi
3029
3030
3031 if test "$need_wlibio" = yes; then
3032 GLIBCPP_NEED_WLIBIO_TRUE=
3033 GLIBCPP_NEED_WLIBIO_FALSE='#'
3034 else
3035 GLIBCPP_NEED_WLIBIO_TRUE='#'
3036 GLIBCPP_NEED_WLIBIO_FALSE=
3037 fi
3038 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
3039 libio_la=../libio/libio.la
3040 else
3041 libio_la=
3042 fi
3043
3044
3045
3046 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
3047 echo "configure:3048: checking for clocale to use" >&5
3048 # Check whether --enable-clocale or --disable-clocale was given.
3049 if test "${enable_clocale+set}" = set; then
3050 enableval="$enable_clocale"
3051 if test x$enable_clocale = xno; then
3052 enable_clocale=no
3053 fi
3054 else
3055 enable_clocale=no
3056 fi
3057
3058
3059 enable_clocale_flag=$enable_clocale
3060
3061 if test x$enable_clocale_flag = xno; then
3062 case x${target_os} in
3063 xlinux* | xgnu*)
3064 cat > conftest.$ac_ext <<EOF
3065 #line 3066 "configure"
3066 #include "confdefs.h"
3067
3068 #include <features.h>
3069 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
3070 _GLIBCPP_ok
3071 #endif
3072
3073 EOF
3074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3075 egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3076 rm -rf conftest*
3077 enable_clocale_flag=gnu
3078 else
3079 rm -rf conftest*
3080 enable_clocale_flag=generic
3081 fi
3082 rm -f conftest*
3083
3084
3085 # Test for bugs early in glibc-2.2.x series
3086 if test x$enable_clocale_flag = xgnu; then
3087 if test "$cross_compiling" = yes; then
3088 enable_clocale_flag=generic
3089 else
3090 cat > conftest.$ac_ext <<EOF
3091 #line 3092 "configure"
3092 #include "confdefs.h"
3093
3094 #define _GNU_SOURCE 1
3095 #include <locale.h>
3096 #include <string.h>
3097 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
3098 extern __typeof(newlocale) __newlocale;
3099 extern __typeof(duplocale) __duplocale;
3100 extern __typeof(strcoll_l) __strcoll_l;
3101 #endif
3102 int main()
3103 {
3104 const char __one[] = "Äuglein Augmen";
3105 const char __two[] = "Äuglein";
3106 int i;
3107 int j;
3108 __locale_t loc;
3109 __locale_t loc_dup;
3110 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3111 loc_dup = __duplocale(loc);
3112 i = __strcoll_l(__one, __two, loc);
3113 j = __strcoll_l(__one, __two, loc_dup);
3114 return 0;
3115 }
3116
3117 EOF
3118 if { (eval echo configure:3119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3119 then
3120 enable_clocale_flag=gnu
3121 else
3122 echo "configure: failed program was:" >&5
3123 cat conftest.$ac_ext >&5
3124 rm -fr conftest*
3125 enable_clocale_flag=generic
3126 fi
3127 rm -fr conftest*
3128 fi
3129
3130 fi
3131
3132 # ... at some point put __strxfrm_l tests in as well.
3133 ;;
3134 *)
3135 enable_clocale_flag=generic
3136 ;;
3137 esac
3138 fi
3139
3140 # Check whether --enable-nls or --disable-nls was given.
3141 if test "${enable_nls+set}" = set; then
3142 enableval="$enable_nls"
3143 :
3144 else
3145 enable_nls=yes
3146 fi
3147
3148 USE_NLS=no
3149
3150 case x${enable_clocale_flag} in
3151 xgeneric)
3152 echo "$ac_t""generic" 1>&6
3153
3154 CLOCALE_H=config/locale/generic/c_locale.h
3155 CLOCALE_CC=config/locale/generic/c_locale.cc
3156 CCODECVT_H=config/locale/generic/codecvt_specializations.h
3157 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3158 CCOLLATE_CC=config/locale/generic/collate_members.cc
3159 CCTYPE_CC=config/locale/generic/ctype_members.cc
3160 CMESSAGES_H=config/locale/generic/messages_members.h
3161 CMESSAGES_CC=config/locale/generic/messages_members.cc
3162 CMONEY_CC=config/locale/generic/monetary_members.cc
3163 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3164 CTIME_H=config/locale/generic/time_members.h
3165 CTIME_CC=config/locale/generic/time_members.cc
3166 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3167 ;;
3168 xgnu)
3169 echo "$ac_t""gnu" 1>&6
3170
3171 # Declare intention to use gettext, and add support for specific
3172 # languages.
3173 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3174 ALL_LINGUAS="de fr"
3175
3176 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3177 # Extract the first word of "msgfmt", so it can be a program name with args.
3178 set dummy msgfmt; ac_word=$2
3179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3180 echo "configure:3181: checking for $ac_word" >&5
3181 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3182 echo $ac_n "(cached) $ac_c" 1>&6
3183 else
3184 if test -n "$check_msgfmt"; then
3185 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3186 else
3187 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3188 ac_dummy="$PATH"
3189 for ac_dir in $ac_dummy; do
3190 test -z "$ac_dir" && ac_dir=.
3191 if test -f $ac_dir/$ac_word; then
3192 ac_cv_prog_check_msgfmt="yes"
3193 break
3194 fi
3195 done
3196 IFS="$ac_save_ifs"
3197 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3198 fi
3199 fi
3200 check_msgfmt="$ac_cv_prog_check_msgfmt"
3201 if test -n "$check_msgfmt"; then
3202 echo "$ac_t""$check_msgfmt" 1>&6
3203 else
3204 echo "$ac_t""no" 1>&6
3205 fi
3206
3207 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3208 USE_NLS=yes
3209 fi
3210 # Export the build objects.
3211 for ling in $ALL_LINGUAS; do \
3212 glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3213 glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3214 done
3215
3216
3217
3218 CLOCALE_H=config/locale/gnu/c_locale.h
3219 CLOCALE_CC=config/locale/gnu/c_locale.cc
3220 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3221 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3222 CCOLLATE_CC=config/locale/gnu/collate_members.cc
3223 CCTYPE_CC=config/locale/gnu/ctype_members.cc
3224 CMESSAGES_H=config/locale/gnu/messages_members.h
3225 CMESSAGES_CC=config/locale/gnu/messages_members.cc
3226 CMONEY_CC=config/locale/gnu/monetary_members.cc
3227 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3228 CTIME_H=config/locale/gnu/time_members.h
3229 CTIME_CC=config/locale/gnu/time_members.cc
3230 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3231 ;;
3232 xieee_1003.1-2001)
3233 echo "$ac_t""IEEE 1003.1" 1>&6
3234
3235 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3236 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3237 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3238 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3239 CCOLLATE_CC=config/locale/generic/collate_members.cc
3240 CCTYPE_CC=config/locale/generic/ctype_members.cc
3241 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3242 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3243 CMONEY_CC=config/locale/generic/monetary_members.cc
3244 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3245 CTIME_H=config/locale/generic/time_members.h
3246 CTIME_CC=config/locale/generic/time_members.cc
3247 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3248 ;;
3249 *)
3250 echo "$enable_clocale is an unknown locale package" 1>&2
3251 exit 1
3252 ;;
3253 esac
3254
3255 # This is where the testsuite looks for locale catalogs, using the
3256 # -DLOCALEDIR define during testsuite compilation.
3257 glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3258
3259
3260 # A standalone libintl (e.g., GNU libintl) may be in use.
3261 if test $USE_NLS = yes; then
3262 for ac_hdr in libintl.h
3263 do
3264 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3265 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3266 echo "configure:3267: checking for $ac_hdr" >&5
3267 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3269 else
3270 cat > conftest.$ac_ext <<EOF
3271 #line 3272 "configure"
3272 #include "confdefs.h"
3273 #include <$ac_hdr>
3274 EOF
3275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3276 { (eval echo configure:3277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3278 if test -z "$ac_err"; then
3279 rm -rf conftest*
3280 eval "ac_cv_header_$ac_safe=yes"
3281 else
3282 echo "$ac_err" >&5
3283 echo "configure: failed program was:" >&5
3284 cat conftest.$ac_ext >&5
3285 rm -rf conftest*
3286 eval "ac_cv_header_$ac_safe=no"
3287 fi
3288 rm -f conftest*
3289 fi
3290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3291 echo "$ac_t""yes" 1>&6
3292 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3293 cat >> confdefs.h <<EOF
3294 #define $ac_tr_hdr 1
3295 EOF
3296
3297 else
3298 echo "$ac_t""no" 1>&6
3299 USE_NLS=no
3300 fi
3301 done
3302
3303
3304 echo $ac_n "checking for library containing gettext""... $ac_c" 1>&6
3305 echo "configure:3306: checking for library containing gettext" >&5
3306 if eval "test \"`echo '$''{'ac_cv_search_gettext'+set}'`\" = set"; then
3307 echo $ac_n "(cached) $ac_c" 1>&6
3308 else
3309 ac_func_search_save_LIBS="$LIBS"
3310 ac_cv_search_gettext="no"
3311 cat > conftest.$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3314 /* Override any gcc2 internal prototype to avoid an error. */
3315 /* We use char because int might match the return type of a gcc2
3316 builtin and then its argument prototype would still apply. */
3317 char gettext();
3318
3319 int main() {
3320 gettext()
3321 ; return 0; }
3322 EOF
3323 if { (eval echo configure:3324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3324 rm -rf conftest*
3325 ac_cv_search_gettext="none required"
3326 else
3327 echo "configure: failed program was:" >&5
3328 cat conftest.$ac_ext >&5
3329 fi
3330 rm -f conftest*
3331 test "$ac_cv_search_gettext" = "no" && for i in intl; do
3332 LIBS="-l$i $ac_func_search_save_LIBS"
3333 cat > conftest.$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3336 /* Override any gcc2 internal prototype to avoid an error. */
3337 /* We use char because int might match the return type of a gcc2
3338 builtin and then its argument prototype would still apply. */
3339 char gettext();
3340
3341 int main() {
3342 gettext()
3343 ; return 0; }
3344 EOF
3345 if { (eval echo configure:3346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3346 rm -rf conftest*
3347 ac_cv_search_gettext="-l$i"
3348 break
3349 else
3350 echo "configure: failed program was:" >&5
3351 cat conftest.$ac_ext >&5
3352 fi
3353 rm -f conftest*
3354 done
3355 LIBS="$ac_func_search_save_LIBS"
3356 fi
3357
3358 echo "$ac_t""$ac_cv_search_gettext" 1>&6
3359 if test "$ac_cv_search_gettext" != "no"; then
3360 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
3361
3362 else :
3363 USE_NLS=no
3364 fi
3365 fi
3366 if test $USE_NLS = yes; then
3367 cat >> confdefs.h <<\EOF
3368 #define _GLIBCPP_USE_NLS 1
3369 EOF
3370
3371 fi
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3389 echo "configure:3390: checking for c header strategy to use" >&5
3390 # Check whether --enable-cheaders or --disable-cheaders was given.
3391 if test "${enable_cheaders+set}" = set; then
3392 enableval="$enable_cheaders"
3393
3394 case "$enableval" in
3395 c)
3396 enable_cheaders=c
3397 ;;
3398 c_std)
3399 enable_cheaders=c_std
3400 ;;
3401 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3402 ;;
3403 esac
3404 else
3405 enable_cheaders=c_std
3406 fi
3407
3408 echo "$ac_t""$enable_cheaders" 1>&6
3409
3410 case "$enable_cheaders" in
3411 c_std)
3412 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3413 ;;
3414 c)
3415 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3416 ;;
3417 esac
3418
3419
3420
3421
3422 if test "$enable_cheaders" = c; then
3423 GLIBCPP_C_HEADERS_C_TRUE=
3424 GLIBCPP_C_HEADERS_C_FALSE='#'
3425 else
3426 GLIBCPP_C_HEADERS_C_TRUE='#'
3427 GLIBCPP_C_HEADERS_C_FALSE=
3428 fi
3429
3430
3431 if test "$enable_cheaders" = c_std; then
3432 GLIBCPP_C_HEADERS_C_STD_TRUE=
3433 GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3434 else
3435 GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3436 GLIBCPP_C_HEADERS_C_STD_FALSE=
3437 fi
3438
3439
3440 if test "$c_compatibility" = yes; then
3441 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3442 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3443 else
3444 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3445 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3446 fi
3447
3448 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3449 if test "${enable_c_mbchar+set}" = set; then
3450 enableval="$enable_c_mbchar"
3451 case "$enableval" in
3452 yes) enable_c_mbchar=yes ;;
3453 no) enable_c_mbchar=no ;;
3454 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3455 esac
3456 else
3457 enable_c_mbchar=yes
3458 fi
3459
3460
3461 # Check whether --enable-c99 or --disable-c99 was given.
3462 if test "${enable_c99+set}" = set; then
3463 enableval="$enable_c99"
3464 case "$enableval" in
3465 yes) enable_c99=yes ;;
3466 no) enable_c99=no ;;
3467 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3468 esac
3469 else
3470 enable_c99=yes
3471 fi
3472
3473
3474 ac_ext=C
3475 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3476 ac_cpp='$CXXCPP $CPPFLAGS'
3477 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3478 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3479 cross_compiling=$ac_cv_prog_cxx_cross
3480
3481
3482 # Check for the existence of <math.h> functions used if C99 is enabled.
3483 ac_c99_math=yes;
3484 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3485 echo "configure:3486: checking for ISO C99 support in <math.h>" >&5
3486 cat > conftest.$ac_ext <<EOF
3487 #line 3488 "configure"
3488 #include "confdefs.h"
3489 #include <math.h>
3490 int main() {
3491 fpclassify(0.0);
3492 ; return 0; }
3493 EOF
3494 if { (eval echo configure:3495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3495 :
3496 else
3497 echo "configure: failed program was:" >&5
3498 cat conftest.$ac_ext >&5
3499 rm -rf conftest*
3500 ac_c99_math=no
3501 fi
3502 rm -f conftest*
3503 cat > conftest.$ac_ext <<EOF
3504 #line 3505 "configure"
3505 #include "confdefs.h"
3506 #include <math.h>
3507 int main() {
3508 isfinite(0.0);
3509 ; return 0; }
3510 EOF
3511 if { (eval echo configure:3512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3512 :
3513 else
3514 echo "configure: failed program was:" >&5
3515 cat conftest.$ac_ext >&5
3516 rm -rf conftest*
3517 ac_c99_math=no
3518 fi
3519 rm -f conftest*
3520 cat > conftest.$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3523 #include <math.h>
3524 int main() {
3525 isinf(0.0);
3526 ; return 0; }
3527 EOF
3528 if { (eval echo configure:3529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3529 :
3530 else
3531 echo "configure: failed program was:" >&5
3532 cat conftest.$ac_ext >&5
3533 rm -rf conftest*
3534 ac_c99_math=no
3535 fi
3536 rm -f conftest*
3537 cat > conftest.$ac_ext <<EOF
3538 #line 3539 "configure"
3539 #include "confdefs.h"
3540 #include <math.h>
3541 int main() {
3542 isnan(0.0);
3543 ; return 0; }
3544 EOF
3545 if { (eval echo configure:3546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3546 :
3547 else
3548 echo "configure: failed program was:" >&5
3549 cat conftest.$ac_ext >&5
3550 rm -rf conftest*
3551 ac_c99_math=no
3552 fi
3553 rm -f conftest*
3554 cat > conftest.$ac_ext <<EOF
3555 #line 3556 "configure"
3556 #include "confdefs.h"
3557 #include <math.h>
3558 int main() {
3559 isnormal(0.0);
3560 ; return 0; }
3561 EOF
3562 if { (eval echo configure:3563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3563 :
3564 else
3565 echo "configure: failed program was:" >&5
3566 cat conftest.$ac_ext >&5
3567 rm -rf conftest*
3568 ac_c99_math=no
3569 fi
3570 rm -f conftest*
3571 cat > conftest.$ac_ext <<EOF
3572 #line 3573 "configure"
3573 #include "confdefs.h"
3574 #include <math.h>
3575 int main() {
3576 signbit(0.0);
3577 ; return 0; }
3578 EOF
3579 if { (eval echo configure:3580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3580 :
3581 else
3582 echo "configure: failed program was:" >&5
3583 cat conftest.$ac_ext >&5
3584 rm -rf conftest*
3585 ac_c99_math=no
3586 fi
3587 rm -f conftest*
3588 cat > conftest.$ac_ext <<EOF
3589 #line 3590 "configure"
3590 #include "confdefs.h"
3591 #include <math.h>
3592 int main() {
3593 isgreater(0.0,0.0);
3594 ; return 0; }
3595 EOF
3596 if { (eval echo configure:3597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3597 :
3598 else
3599 echo "configure: failed program was:" >&5
3600 cat conftest.$ac_ext >&5
3601 rm -rf conftest*
3602 ac_c99_math=no
3603 fi
3604 rm -f conftest*
3605 cat > conftest.$ac_ext <<EOF
3606 #line 3607 "configure"
3607 #include "confdefs.h"
3608 #include <math.h>
3609 int main() {
3610 isgreaterequal(0.0,0.0);
3611 ; return 0; }
3612 EOF
3613 if { (eval echo configure:3614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3614 :
3615 else
3616 echo "configure: failed program was:" >&5
3617 cat conftest.$ac_ext >&5
3618 rm -rf conftest*
3619 ac_c99_math=no
3620 fi
3621 rm -f conftest*
3622 cat > conftest.$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3625 #include <math.h>
3626 int main() {
3627 isless(0.0,0.0);
3628 ; return 0; }
3629 EOF
3630 if { (eval echo configure:3631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3631 :
3632 else
3633 echo "configure: failed program was:" >&5
3634 cat conftest.$ac_ext >&5
3635 rm -rf conftest*
3636 ac_c99_math=no
3637 fi
3638 rm -f conftest*
3639 cat > conftest.$ac_ext <<EOF
3640 #line 3641 "configure"
3641 #include "confdefs.h"
3642 #include <math.h>
3643 int main() {
3644 islessequal(0.0,0.0);
3645 ; return 0; }
3646 EOF
3647 if { (eval echo configure:3648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3648 :
3649 else
3650 echo "configure: failed program was:" >&5
3651 cat conftest.$ac_ext >&5
3652 rm -rf conftest*
3653 ac_c99_math=no
3654 fi
3655 rm -f conftest*
3656 cat > conftest.$ac_ext <<EOF
3657 #line 3658 "configure"
3658 #include "confdefs.h"
3659 #include <math.h>
3660 int main() {
3661 islessgreater(0.0,0.0);
3662 ; return 0; }
3663 EOF
3664 if { (eval echo configure:3665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3665 :
3666 else
3667 echo "configure: failed program was:" >&5
3668 cat conftest.$ac_ext >&5
3669 rm -rf conftest*
3670 ac_c99_math=no
3671 fi
3672 rm -f conftest*
3673 cat > conftest.$ac_ext <<EOF
3674 #line 3675 "configure"
3675 #include "confdefs.h"
3676 #include <math.h>
3677 int main() {
3678 isunordered(0.0,0.0);
3679 ; return 0; }
3680 EOF
3681 if { (eval echo configure:3682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3682 :
3683 else
3684 echo "configure: failed program was:" >&5
3685 cat conftest.$ac_ext >&5
3686 rm -rf conftest*
3687 ac_c99_math=no
3688 fi
3689 rm -f conftest*
3690 echo "$ac_t""$ac_c99_math" 1>&6
3691
3692 # Check for the existence in <stdio.h> of vscanf, et. al.
3693 ac_c99_stdio=yes;
3694 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3695 echo "configure:3696: checking for ISO C99 support in <stdio.h>" >&5
3696 cat > conftest.$ac_ext <<EOF
3697 #line 3698 "configure"
3698 #include "confdefs.h"
3699 #include <stdio.h>
3700 int main() {
3701 snprintf("12", 0, "%i");
3702 ; return 0; }
3703 EOF
3704 if { (eval echo configure:3705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3705 :
3706 else
3707 echo "configure: failed program was:" >&5
3708 cat conftest.$ac_ext >&5
3709 rm -rf conftest*
3710 ac_c99_stdio=no
3711 fi
3712 rm -f conftest*
3713 cat > conftest.$ac_ext <<EOF
3714 #line 3715 "configure"
3715 #include "confdefs.h"
3716 #include <stdio.h>
3717 #include <stdarg.h>
3718 void foo(char* fmt, ...)
3719 {va_list args; va_start(args, fmt);
3720 vfscanf(stderr, "%i", args);}
3721 int main() {
3722
3723 ; return 0; }
3724 EOF
3725 if { (eval echo configure:3726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3726 :
3727 else
3728 echo "configure: failed program was:" >&5
3729 cat conftest.$ac_ext >&5
3730 rm -rf conftest*
3731 ac_c99_stdio=no
3732 fi
3733 rm -f conftest*
3734 cat > conftest.$ac_ext <<EOF
3735 #line 3736 "configure"
3736 #include "confdefs.h"
3737 #include <stdio.h>
3738 #include <stdarg.h>
3739 void foo(char* fmt, ...)
3740 {va_list args; va_start(args, fmt);
3741 vscanf("%i", args);}
3742 int main() {
3743
3744 ; return 0; }
3745 EOF
3746 if { (eval echo configure:3747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3747 :
3748 else
3749 echo "configure: failed program was:" >&5
3750 cat conftest.$ac_ext >&5
3751 rm -rf conftest*
3752 ac_c99_stdio=no
3753 fi
3754 rm -f conftest*
3755 cat > conftest.$ac_ext <<EOF
3756 #line 3757 "configure"
3757 #include "confdefs.h"
3758 #include <stdio.h>
3759 #include <stdarg.h>
3760 void foo(char* fmt, ...)
3761 {va_list args; va_start(args, fmt);
3762 vsnprintf(fmt, 0, "%i", args);}
3763 int main() {
3764
3765 ; return 0; }
3766 EOF
3767 if { (eval echo configure:3768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3768 :
3769 else
3770 echo "configure: failed program was:" >&5
3771 cat conftest.$ac_ext >&5
3772 rm -rf conftest*
3773 ac_c99_stdio=no
3774 fi
3775 rm -f conftest*
3776 cat > conftest.$ac_ext <<EOF
3777 #line 3778 "configure"
3778 #include "confdefs.h"
3779 #include <stdio.h>
3780 #include <stdarg.h>
3781 void foo(char* fmt, ...)
3782 {va_list args; va_start(args, fmt);
3783 vsscanf(fmt, "%i", args);}
3784 int main() {
3785
3786 ; return 0; }
3787 EOF
3788 if { (eval echo configure:3789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3789 :
3790 else
3791 echo "configure: failed program was:" >&5
3792 cat conftest.$ac_ext >&5
3793 rm -rf conftest*
3794 ac_c99_stdio=no
3795 fi
3796 rm -f conftest*
3797 echo "$ac_t""$ac_c99_stdio" 1>&6
3798
3799 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3800 ac_c99_stdlib=yes;
3801 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3802 echo "configure:3803: checking for lldiv_t declaration" >&5
3803 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3804 echo $ac_n "(cached) $ac_c" 1>&6
3805 else
3806
3807 cat > conftest.$ac_ext <<EOF
3808 #line 3809 "configure"
3809 #include "confdefs.h"
3810 #include <stdlib.h>
3811 int main() {
3812 lldiv_t mydivt;
3813 ; return 0; }
3814 EOF
3815 if { (eval echo configure:3816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3816 rm -rf conftest*
3817 ac_c99_lldiv_t=yes
3818 else
3819 echo "configure: failed program was:" >&5
3820 cat conftest.$ac_ext >&5
3821 rm -rf conftest*
3822 ac_c99_lldiv_t=no
3823 fi
3824 rm -f conftest*
3825
3826 fi
3827
3828 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3829
3830 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3831 echo "configure:3832: checking for ISO C99 support in <stdlib.h>" >&5
3832 cat > conftest.$ac_ext <<EOF
3833 #line 3834 "configure"
3834 #include "confdefs.h"
3835 #include <stdlib.h>
3836 int main() {
3837 char* tmp; strtof("gnu", &tmp);
3838 ; return 0; }
3839 EOF
3840 if { (eval echo configure:3841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3841 :
3842 else
3843 echo "configure: failed program was:" >&5
3844 cat conftest.$ac_ext >&5
3845 rm -rf conftest*
3846 ac_c99_stdlib=no
3847 fi
3848 rm -f conftest*
3849 cat > conftest.$ac_ext <<EOF
3850 #line 3851 "configure"
3851 #include "confdefs.h"
3852 #include <stdlib.h>
3853 int main() {
3854 char* tmp; strtold("gnu", &tmp);
3855 ; return 0; }
3856 EOF
3857 if { (eval echo configure:3858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3858 :
3859 else
3860 echo "configure: failed program was:" >&5
3861 cat conftest.$ac_ext >&5
3862 rm -rf conftest*
3863 ac_c99_stdlib=no
3864 fi
3865 rm -f conftest*
3866 cat > conftest.$ac_ext <<EOF
3867 #line 3868 "configure"
3868 #include "confdefs.h"
3869 #include <stdlib.h>
3870 int main() {
3871 llabs(10);
3872 ; return 0; }
3873 EOF
3874 if { (eval echo configure:3875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3875 :
3876 else
3877 echo "configure: failed program was:" >&5
3878 cat conftest.$ac_ext >&5
3879 rm -rf conftest*
3880 ac_c99_stdlib=no
3881 fi
3882 rm -f conftest*
3883 cat > conftest.$ac_ext <<EOF
3884 #line 3885 "configure"
3885 #include "confdefs.h"
3886 #include <stdlib.h>
3887 int main() {
3888 lldiv(10,1);
3889 ; return 0; }
3890 EOF
3891 if { (eval echo configure:3892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3892 :
3893 else
3894 echo "configure: failed program was:" >&5
3895 cat conftest.$ac_ext >&5
3896 rm -rf conftest*
3897 ac_c99_stdlib=no
3898 fi
3899 rm -f conftest*
3900 cat > conftest.$ac_ext <<EOF
3901 #line 3902 "configure"
3902 #include "confdefs.h"
3903 #include <stdlib.h>
3904 int main() {
3905 atoll("10");
3906 ; return 0; }
3907 EOF
3908 if { (eval echo configure:3909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3909 :
3910 else
3911 echo "configure: failed program was:" >&5
3912 cat conftest.$ac_ext >&5
3913 rm -rf conftest*
3914 ac_c99_stdlib=no
3915 fi
3916 rm -f conftest*
3917 cat > conftest.$ac_ext <<EOF
3918 #line 3919 "configure"
3919 #include "confdefs.h"
3920 #include <stdlib.h>
3921 int main() {
3922 _Exit(0);
3923 ; return 0; }
3924 EOF
3925 if { (eval echo configure:3926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3926 :
3927 else
3928 echo "configure: failed program was:" >&5
3929 cat conftest.$ac_ext >&5
3930 rm -rf conftest*
3931 ac_c99_stdlib=no
3932 fi
3933 rm -f conftest*
3934 if test x"$ac_c99_lldiv_t" = x"no"; then
3935 ac_c99_stdlib=no;
3936 fi;
3937 echo "$ac_t""$ac_c99_stdlib" 1>&6
3938
3939 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3940 # XXX the wchar.h checks should be rolled into the general C99 bits.
3941 ac_c99_wchar=yes;
3942 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3943 echo "configure:3944: checking for additional ISO C99 support in <wchar.h>" >&5
3944 cat > conftest.$ac_ext <<EOF
3945 #line 3946 "configure"
3946 #include "confdefs.h"
3947 #include <wchar.h>
3948 int main() {
3949 wcstold(L"10.0", NULL);
3950 ; return 0; }
3951 EOF
3952 if { (eval echo configure:3953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3953 :
3954 else
3955 echo "configure: failed program was:" >&5
3956 cat conftest.$ac_ext >&5
3957 rm -rf conftest*
3958 ac_c99_wchar=no
3959 fi
3960 rm -f conftest*
3961 cat > conftest.$ac_ext <<EOF
3962 #line 3963 "configure"
3963 #include "confdefs.h"
3964 #include <wchar.h>
3965 int main() {
3966 wcstoll(L"10", NULL, 10);
3967 ; return 0; }
3968 EOF
3969 if { (eval echo configure:3970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3970 :
3971 else
3972 echo "configure: failed program was:" >&5
3973 cat conftest.$ac_ext >&5
3974 rm -rf conftest*
3975 ac_c99_wchar=no
3976 fi
3977 rm -f conftest*
3978 cat > conftest.$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3981 #include <wchar.h>
3982 int main() {
3983 wcstoull(L"10", NULL, 10);
3984 ; return 0; }
3985 EOF
3986 if { (eval echo configure:3987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3987 :
3988 else
3989 echo "configure: failed program was:" >&5
3990 cat conftest.$ac_ext >&5
3991 rm -rf conftest*
3992 ac_c99_wchar=no
3993 fi
3994 rm -f conftest*
3995 echo "$ac_t""$ac_c99_wchar" 1>&6
3996
3997 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3998 echo "configure:3999: checking for enabled ISO C99 support" >&5
3999 if test x"$ac_c99_math" = x"no" ||
4000 test x"$ac_c99_stdio" = x"no" ||
4001 test x"$ac_c99_stdlib" = x"no" ||
4002 test x"$ac_c99_wchar" = x"no"; then
4003 enable_c99=no;
4004 fi;
4005 echo "$ac_t""$enable_c99" 1>&6
4006
4007 # Option parsed, now set things appropriately
4008 if test x"$enable_c99" = x"yes"; then
4009 cat >> confdefs.h <<\EOF
4010 #define _GLIBCPP_USE_C99 1
4011 EOF
4012
4013 fi
4014
4015 ac_ext=c
4016 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4017 ac_cpp='$CPP $CPPFLAGS'
4018 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4019 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4020 cross_compiling=$ac_cv_prog_cc_cross
4021
4022
4023
4024 # Check whether --enable-long-long or --disable-long-long was given.
4025 if test "${enable_long_long+set}" = set; then
4026 enableval="$enable_long_long"
4027 case "$enableval" in
4028 yes) enable_long_long=yes ;;
4029 no) enable_long_long=no ;;
4030 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
4031 esac
4032 else
4033 enable_long_long=yes
4034 fi
4035
4036
4037 ac_ext=C
4038 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4039 ac_cpp='$CXXCPP $CPPFLAGS'
4040 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4041 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4042 cross_compiling=$ac_cv_prog_cxx_cross
4043
4044
4045 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
4046 echo "configure:4047: checking for enabled long long I/O support" >&5
4047 # iostreams require strtoll, strtoull to compile
4048 cat > conftest.$ac_ext <<EOF
4049 #line 4050 "configure"
4050 #include "confdefs.h"
4051 #include <stdlib.h>
4052 int main() {
4053 char* tmp; strtoll("gnu", &tmp, 10);
4054 ; return 0; }
4055 EOF
4056 if { (eval echo configure:4057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4057 :
4058 else
4059 echo "configure: failed program was:" >&5
4060 cat conftest.$ac_ext >&5
4061 rm -rf conftest*
4062 enable_long_long=no
4063 fi
4064 rm -f conftest*
4065 cat > conftest.$ac_ext <<EOF
4066 #line 4067 "configure"
4067 #include "confdefs.h"
4068 #include <stdlib.h>
4069 int main() {
4070 char* tmp; strtoull("gnu", &tmp, 10);
4071 ; return 0; }
4072 EOF
4073 if { (eval echo configure:4074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4074 :
4075 else
4076 echo "configure: failed program was:" >&5
4077 cat conftest.$ac_ext >&5
4078 rm -rf conftest*
4079 enable_long_long=no
4080 fi
4081 rm -f conftest*
4082
4083 # Option parsed, now set things appropriately
4084 if test x"$enable_long_long" = xyes; then
4085 cat >> confdefs.h <<\EOF
4086 #define _GLIBCPP_USE_LONG_LONG 1
4087 EOF
4088
4089 fi
4090 echo "$ac_t""$enable_long_long" 1>&6
4091
4092 ac_ext=c
4093 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4094 ac_cpp='$CPP $CPPFLAGS'
4095 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4096 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4097 cross_compiling=$ac_cv_prog_cc_cross
4098
4099
4100
4101 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
4102 echo "configure:4103: checking for thread model used by GCC" >&5
4103 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4104 echo "$ac_t""$target_thread_file" 1>&6
4105
4106 if test $target_thread_file != single; then
4107 cat >> confdefs.h <<\EOF
4108 #define HAVE_GTHR_DEFAULT 1
4109 EOF
4110
4111 cat >> confdefs.h <<\EOF
4112 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
4113 EOF
4114
4115 fi
4116
4117 glibcpp_thread_h=gthr-$target_thread_file.h
4118
4119
4120
4121 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
4122 echo "configure:4123: checking for exception model to use" >&5
4123
4124 ac_ext=C
4125 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4126 ac_cpp='$CXXCPP $CPPFLAGS'
4127 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4128 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4129 cross_compiling=$ac_cv_prog_cxx_cross
4130
4131 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
4132 if test "${enable_sjlj_exceptions+set}" = set; then
4133 enableval="$enable_sjlj_exceptions"
4134 :
4135 else
4136 cat > conftest.$ac_ext << EOF
4137 #line 4138 "configure"
4138 struct S { ~S(); };
4139 void bar();
4140 void foo()
4141 {
4142 S s;
4143 bar();
4144 }
4145 EOF
4146 old_CXXFLAGS="$CXXFLAGS"
4147 CXXFLAGS=-S
4148 if { (eval echo configure:4149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4149 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
4150 enable_sjlj_exceptions=yes
4151 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
4152 enable_sjlj_exceptions=no
4153 fi
4154 fi
4155 CXXFLAGS="$old_CXXFLAGS"
4156 rm -f conftest*
4157 fi
4158
4159 if test x$enable_sjlj_exceptions = xyes; then
4160 cat >> confdefs.h <<\EOF
4161 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
4162 EOF
4163
4164 ac_exception_model_name=sjlj
4165 elif test x$enable_sjlj_exceptions = xno; then
4166 ac_exception_model_name="call frame"
4167 else
4168 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
4169 fi
4170 ac_ext=c
4171 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4172 ac_cpp='$CPP $CPPFLAGS'
4173 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4174 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4175 cross_compiling=$ac_cv_prog_cc_cross
4176
4177 echo "$ac_t""$ac_exception_model_name" 1>&6
4178
4179
4180 echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4181 echo "configure:4182: checking for use of libunwind" >&5
4182 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4183 if test "${enable_libunwind_exceptions+set}" = set; then
4184 enableval="$enable_libunwind_exceptions"
4185 use_libunwind_exceptions=$enableval
4186 else
4187 use_libunwind_exceptions=no
4188 fi
4189
4190 echo "$ac_t""$use_libunwind_exceptions" 1>&6
4191 if test x"$use_libunwind_exceptions" = xyes; then
4192 LIBUNWIND_FLAG="-lunwind"
4193 else
4194 LIBUNWIND_FLAG=""
4195 fi
4196
4197
4198 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4199 if test "${enable_concept_checks+set}" = set; then
4200 enableval="$enable_concept_checks"
4201 case "$enableval" in
4202 yes) enable_concept_checks=yes ;;
4203 no) enable_concept_checks=no ;;
4204 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4205 esac
4206 else
4207 enable_concept_checks=no
4208 fi
4209 if test x"$enable_concept_checks" = xyes; then
4210 cat >> confdefs.h <<\EOF
4211 #define _GLIBCPP_CONCEPT_CHECKS 1
4212 EOF
4213
4214 fi
4215
4216 echo $ac_n "checking for extra compiler flags for building""... $ac_c" 1>&6
4217 echo "configure:4218: checking for extra compiler flags for building" >&5
4218 # Check whether --enable-cxx_flags or --disable-cxx_flags was given.
4219 if test "${enable_cxx_flags+set}" = set; then
4220 enableval="$enable_cxx_flags"
4221 case "x$enable_cxx_flags" in
4222 xyes)
4223 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
4224 xno | xnone | x)
4225 enable_cxx_flags='' ;;
4226 *)
4227 enable_cxx_flags="$enableval" ;;
4228 esac
4229 else
4230 enable_cxx_flags=
4231 fi
4232
4233
4234 if test -n "$enable_cxx_flags"; then
4235 for f in $enable_cxx_flags; do
4236 case "$f" in
4237 -fhonor-std) ;;
4238 -*) ;;
4239 *) # and we're trying to pass /what/ exactly?
4240 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
4241 esac
4242 done
4243 fi
4244 EXTRA_CXX_FLAGS="$enable_cxx_flags"
4245 echo "$ac_t""$EXTRA_CXX_FLAGS" 1>&6
4246
4247
4248 # Check whether --enable-debug or --disable-debug was given.
4249 if test "${enable_debug+set}" = set; then
4250 enableval="$enable_debug"
4251 case "${enableval}" in
4252 yes) enable_debug=yes ;;
4253 no) enable_debug=no ;;
4254 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
4255 esac
4256 else
4257 enable_debug=no
4258 fi
4259 echo $ac_n "checking for additional debug build""... $ac_c" 1>&6
4260 echo "configure:4261: checking for additional debug build" >&5
4261 echo "$ac_t""$enable_debug" 1>&6
4262
4263
4264 if test "$enable_debug" = yes; then
4265 GLIBCPP_BUILD_DEBUG_TRUE=
4266 GLIBCPP_BUILD_DEBUG_FALSE='#'
4267 else
4268 GLIBCPP_BUILD_DEBUG_TRUE='#'
4269 GLIBCPP_BUILD_DEBUG_FALSE=
4270 fi
4271
4272 # Check whether --enable-debug_flags or --disable-debug_flags was given.
4273 if test "${enable_debug_flags+set}" = set; then
4274 enableval="$enable_debug_flags"
4275 case "${enableval}" in
4276 none) ;;
4277 -*) enable_debug_flags="${enableval}" ;;
4278 *) { echo "configure: error: Unknown argument to extra debugging flags" 1>&2; exit 1; } ;;
4279 esac
4280 else
4281 enable_debug_flags=none
4282 fi
4283
4284 case x"$enable_debug" in
4285 xyes)
4286 case "$enable_debug_flags" in
4287 none)
4288 DEBUG_FLAGS="-g3 -O0";;
4289 -*) #valid input
4290 DEBUG_FLAGS="${enableval}"
4291 esac
4292 ;;
4293 xno)
4294 DEBUG_FLAGS=""
4295 ;;
4296 esac
4297
4298
4299 echo $ac_n "checking for debug build flags""... $ac_c" 1>&6
4300 echo "configure:4301: checking for debug build flags" >&5
4301 echo "$ac_t""$DEBUG_FLAGS" 1>&6
4302
4303
4304 # No surprises, no surprises...
4305 if test $ATOMICITYH = cpu/generic ; then
4306 echo "configure: warning: No native atomic operations are provided for this platform." 1>&2
4307 if test $target_thread_file = single; then
4308 echo "configure: warning: They cannot be faked when thread support is disabled." 1>&2
4309 echo "configure: warning: Thread-safety of certain classes is not guaranteed." 1>&2
4310 else
4311 echo "configure: warning: They will be faked using a mutex." 1>&2
4312 echo "configure: warning: Performance of certain classes will degrade as a result." 1>&2
4313 fi
4314 fi
4315
4316
4317 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4318
4319 # We are being configured with some form of cross compiler.
4320 GLIBCPP_IS_CROSS_COMPILING=1
4321
4322 # This lets us hard-code the functionality we know we'll have in the cross
4323 # target environment. "Let" is a sugar-coated word placed on an especially
4324 # dull and tedious hack, actually.
4325 #
4326 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4327 # that involve linking, can't be used:
4328 # "cannot open sim-crt0.o"
4329 # "cannot open crt0.o"
4330 # etc. All this is because there currently exists no unified, consistent
4331 # way for top level CC information to be passed down to target directories:
4332 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4333 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4334 # crosses can be removed.
4335
4336 # If Canadian cross, then don't pick up tools from the build directory.
4337 # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4338 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4339 CANADIAN=yes
4340 else
4341 CANADIAN=no
4342 fi
4343
4344 # Construct crosses by hand, eliminating bits that need ld...
4345 # GLIBCPP_CHECK_COMPILER_FEATURES
4346 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4347 # GLIBCPP_CHECK_MATH_SUPPORT
4348
4349 case "$target" in
4350 *-linux*)
4351 os_include_dir="os/gnu-linux"
4352 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4353 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4354 fp.h locale.h float.h inttypes.h
4355 do
4356 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4357 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4358 echo "configure:4359: checking for $ac_hdr" >&5
4359 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4360 echo $ac_n "(cached) $ac_c" 1>&6
4361 else
4362 cat > conftest.$ac_ext <<EOF
4363 #line 4364 "configure"
4364 #include "confdefs.h"
4365 #include <$ac_hdr>
4366 EOF
4367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4368 { (eval echo configure:4369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4370 if test -z "$ac_err"; then
4371 rm -rf conftest*
4372 eval "ac_cv_header_$ac_safe=yes"
4373 else
4374 echo "$ac_err" >&5
4375 echo "configure: failed program was:" >&5
4376 cat conftest.$ac_ext >&5
4377 rm -rf conftest*
4378 eval "ac_cv_header_$ac_safe=no"
4379 fi
4380 rm -f conftest*
4381 fi
4382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4383 echo "$ac_t""yes" 1>&6
4384 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4385 cat >> confdefs.h <<EOF
4386 #define $ac_tr_hdr 1
4387 EOF
4388
4389 else
4390 echo "$ac_t""no" 1>&6
4391 fi
4392 done
4393
4394 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4395
4396
4397 # If we're not using GNU ld, then there's no point in even trying these
4398 # tests. Check for that first. We should have already tested for gld
4399 # by now (in libtool), but require it now just to be safe...
4400 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4401 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4402
4403
4404 # The name set by libtool depends on the version of libtool. Shame on us
4405 # for depending on an impl detail, but c'est la vie. Older versions used
4406 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4407 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4408 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
4409 # set (hence we're using an older libtool), then set it.
4410 if test x${with_gnu_ld+set} != xset; then
4411 if test x${ac_cv_prog_gnu_ld+set} != xset; then
4412 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
4413 with_gnu_ld=no
4414 else
4415 with_gnu_ld=$ac_cv_prog_gnu_ld
4416 fi
4417 fi
4418
4419 # Start by getting the version number. I think the libtool test already
4420 # does some of this, but throws away the result.
4421
4422 ldver=`$LD --version 2>/dev/null | head -1 | \
4423 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4424
4425 glibcpp_gnu_ld_version=`echo $ldver | \
4426 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4427
4428 # Set --gc-sections.
4429 if test "$with_gnu_ld" = "notbroken"; then
4430 # GNU ld it is! Joy and bunny rabbits!
4431
4432 # All these tests are for C++; save the language and the compiler flags.
4433 # Need to do this so that g++ won't try to link in libstdc++
4434 ac_test_CFLAGS="${CFLAGS+set}"
4435 ac_save_CFLAGS="$CFLAGS"
4436 CFLAGS='-x c++ -Wl,--gc-sections'
4437
4438 # Check for -Wl,--gc-sections
4439 # XXX This test is broken at the moment, as symbols required for
4440 # linking are now in libsupc++ (not built yet.....). In addition,
4441 # this test has cored on solaris in the past. In addition,
4442 # --gc-sections doesn't really work at the moment (keeps on discarding
4443 # used sections, first .eh_frame and now some of the glibc sections for
4444 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4445 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4446 echo "configure:4447: checking for ld that supports -Wl,--gc-sections" >&5
4447 if test "$cross_compiling" = yes; then
4448 ac_sectionLDflags=yes
4449 else
4450 cat > conftest.$ac_ext <<EOF
4451 #line 4452 "configure"
4452 #include "confdefs.h"
4453
4454 int main(void)
4455 {
4456 try { throw 1; }
4457 catch (...) { };
4458 return 0;
4459 }
4460
4461 EOF
4462 if { (eval echo configure:4463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4463 then
4464 ac_sectionLDflags=yes
4465 else
4466 echo "configure: failed program was:" >&5
4467 cat conftest.$ac_ext >&5
4468 rm -fr conftest*
4469 ac_sectionLDflags=no
4470 fi
4471 rm -fr conftest*
4472 fi
4473
4474 if test "$ac_test_CFLAGS" = set; then
4475 CFLAGS="$ac_save_CFLAGS"
4476 else
4477 # this is the suspicious part
4478 CFLAGS=''
4479 fi
4480 if test "$ac_sectionLDflags" = "yes"; then
4481 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4482 fi
4483 echo "$ac_t""$ac_sectionLDflags" 1>&6
4484 fi
4485
4486 # Set linker optimization flags.
4487 if test x"$with_gnu_ld" = x"yes"; then
4488 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4489 fi
4490
4491
4492
4493
4494
4495 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4496 echo "configure:4497: checking for main in -lm" >&5
4497 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4499 echo $ac_n "(cached) $ac_c" 1>&6
4500 else
4501 ac_save_LIBS="$LIBS"
4502 LIBS="-lm $LIBS"
4503 cat > conftest.$ac_ext <<EOF
4504 #line 4505 "configure"
4505 #include "confdefs.h"
4506
4507 int main() {
4508 main()
4509 ; return 0; }
4510 EOF
4511 if { (eval echo configure:4512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4512 rm -rf conftest*
4513 eval "ac_cv_lib_$ac_lib_var=yes"
4514 else
4515 echo "configure: failed program was:" >&5
4516 cat conftest.$ac_ext >&5
4517 rm -rf conftest*
4518 eval "ac_cv_lib_$ac_lib_var=no"
4519 fi
4520 rm -f conftest*
4521 LIBS="$ac_save_LIBS"
4522
4523 fi
4524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4525 echo "$ac_t""yes" 1>&6
4526 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4527 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4528 cat >> confdefs.h <<EOF
4529 #define $ac_tr_lib 1
4530 EOF
4531
4532 LIBS="-lm $LIBS"
4533
4534 else
4535 echo "$ac_t""no" 1>&6
4536 fi
4537
4538 for ac_func in nan copysignf
4539 do
4540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4541 echo "configure:4542: checking for $ac_func" >&5
4542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4543 echo $ac_n "(cached) $ac_c" 1>&6
4544 else
4545 cat > conftest.$ac_ext <<EOF
4546 #line 4547 "configure"
4547 #include "confdefs.h"
4548 /* System header to define __stub macros and hopefully few prototypes,
4549 which can conflict with char $ac_func(); below. */
4550 #include <assert.h>
4551 /* Override any gcc2 internal prototype to avoid an error. */
4552 /* We use char because int might match the return type of a gcc2
4553 builtin and then its argument prototype would still apply. */
4554 char $ac_func();
4555
4556 int main() {
4557
4558 /* The GNU C library defines this for functions which it implements
4559 to always fail with ENOSYS. Some functions are actually named
4560 something starting with __ and the normal name is an alias. */
4561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4562 choke me
4563 #else
4564 $ac_func();
4565 #endif
4566
4567 ; return 0; }
4568 EOF
4569 if { (eval echo configure:4570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4570 rm -rf conftest*
4571 eval "ac_cv_func_$ac_func=yes"
4572 else
4573 echo "configure: failed program was:" >&5
4574 cat conftest.$ac_ext >&5
4575 rm -rf conftest*
4576 eval "ac_cv_func_$ac_func=no"
4577 fi
4578 rm -f conftest*
4579 fi
4580
4581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4582 echo "$ac_t""yes" 1>&6
4583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4584 cat >> confdefs.h <<EOF
4585 #define $ac_tr_func 1
4586 EOF
4587
4588 else
4589 echo "$ac_t""no" 1>&6
4590 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4591 fi
4592 done
4593
4594
4595 for ac_func in __signbit
4596 do
4597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4598 echo "configure:4599: checking for $ac_func" >&5
4599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4600 echo $ac_n "(cached) $ac_c" 1>&6
4601 else
4602 cat > conftest.$ac_ext <<EOF
4603 #line 4604 "configure"
4604 #include "confdefs.h"
4605 /* System header to define __stub macros and hopefully few prototypes,
4606 which can conflict with char $ac_func(); below. */
4607 #include <assert.h>
4608 /* Override any gcc2 internal prototype to avoid an error. */
4609 /* We use char because int might match the return type of a gcc2
4610 builtin and then its argument prototype would still apply. */
4611 char $ac_func();
4612
4613 int main() {
4614
4615 /* The GNU C library defines this for functions which it implements
4616 to always fail with ENOSYS. Some functions are actually named
4617 something starting with __ and the normal name is an alias. */
4618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4619 choke me
4620 #else
4621 $ac_func();
4622 #endif
4623
4624 ; return 0; }
4625 EOF
4626 if { (eval echo configure:4627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4627 rm -rf conftest*
4628 eval "ac_cv_func_$ac_func=yes"
4629 else
4630 echo "configure: failed program was:" >&5
4631 cat conftest.$ac_ext >&5
4632 rm -rf conftest*
4633 eval "ac_cv_func_$ac_func=no"
4634 fi
4635 rm -f conftest*
4636 fi
4637
4638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4639 echo "$ac_t""yes" 1>&6
4640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4641 cat >> confdefs.h <<EOF
4642 #define $ac_tr_func 1
4643 EOF
4644
4645 else
4646 echo "$ac_t""no" 1>&6
4647 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4648 fi
4649 done
4650
4651 for ac_func in __signbitf
4652 do
4653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4654 echo "configure:4655: checking for $ac_func" >&5
4655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4656 echo $ac_n "(cached) $ac_c" 1>&6
4657 else
4658 cat > conftest.$ac_ext <<EOF
4659 #line 4660 "configure"
4660 #include "confdefs.h"
4661 /* System header to define __stub macros and hopefully few prototypes,
4662 which can conflict with char $ac_func(); below. */
4663 #include <assert.h>
4664 /* Override any gcc2 internal prototype to avoid an error. */
4665 /* We use char because int might match the return type of a gcc2
4666 builtin and then its argument prototype would still apply. */
4667 char $ac_func();
4668
4669 int main() {
4670
4671 /* The GNU C library defines this for functions which it implements
4672 to always fail with ENOSYS. Some functions are actually named
4673 something starting with __ and the normal name is an alias. */
4674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4675 choke me
4676 #else
4677 $ac_func();
4678 #endif
4679
4680 ; return 0; }
4681 EOF
4682 if { (eval echo configure:4683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4683 rm -rf conftest*
4684 eval "ac_cv_func_$ac_func=yes"
4685 else
4686 echo "configure: failed program was:" >&5
4687 cat conftest.$ac_ext >&5
4688 rm -rf conftest*
4689 eval "ac_cv_func_$ac_func=no"
4690 fi
4691 rm -f conftest*
4692 fi
4693
4694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4695 echo "$ac_t""yes" 1>&6
4696 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4697 cat >> confdefs.h <<EOF
4698 #define $ac_tr_func 1
4699 EOF
4700
4701 else
4702 echo "$ac_t""no" 1>&6
4703 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4704 fi
4705 done
4706
4707
4708 if test x$ac_cv_func_copysignl = x"yes"; then
4709 for ac_func in __signbitl
4710 do
4711 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4712 echo "configure:4713: checking for $ac_func" >&5
4713 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4714 echo $ac_n "(cached) $ac_c" 1>&6
4715 else
4716 cat > conftest.$ac_ext <<EOF
4717 #line 4718 "configure"
4718 #include "confdefs.h"
4719 /* System header to define __stub macros and hopefully few prototypes,
4720 which can conflict with char $ac_func(); below. */
4721 #include <assert.h>
4722 /* Override any gcc2 internal prototype to avoid an error. */
4723 /* We use char because int might match the return type of a gcc2
4724 builtin and then its argument prototype would still apply. */
4725 char $ac_func();
4726
4727 int main() {
4728
4729 /* The GNU C library defines this for functions which it implements
4730 to always fail with ENOSYS. Some functions are actually named
4731 something starting with __ and the normal name is an alias. */
4732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4733 choke me
4734 #else
4735 $ac_func();
4736 #endif
4737
4738 ; return 0; }
4739 EOF
4740 if { (eval echo configure:4741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4741 rm -rf conftest*
4742 eval "ac_cv_func_$ac_func=yes"
4743 else
4744 echo "configure: failed program was:" >&5
4745 cat conftest.$ac_ext >&5
4746 rm -rf conftest*
4747 eval "ac_cv_func_$ac_func=no"
4748 fi
4749 rm -f conftest*
4750 fi
4751
4752 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4753 echo "$ac_t""yes" 1>&6
4754 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4755 cat >> confdefs.h <<EOF
4756 #define $ac_tr_func 1
4757 EOF
4758
4759 else
4760 echo "$ac_t""no" 1>&6
4761 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4762 fi
4763 done
4764
4765 fi
4766
4767 if test -n "$LIBMATHOBJS"; then
4768 need_libmath=yes
4769 fi
4770
4771
4772
4773 if test "$need_libmath" = yes; then
4774 GLIBCPP_BUILD_LIBMATH_TRUE=
4775 GLIBCPP_BUILD_LIBMATH_FALSE='#'
4776 else
4777 GLIBCPP_BUILD_LIBMATH_TRUE='#'
4778 GLIBCPP_BUILD_LIBMATH_FALSE=
4779 fi
4780
4781
4782 enable_wchar_t=no
4783
4784 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4785 echo "configure:4786: checking for mbstate_t" >&5
4786 cat > conftest.$ac_ext <<EOF
4787 #line 4788 "configure"
4788 #include "confdefs.h"
4789 #include <wchar.h>
4790 int main() {
4791 mbstate_t teststate;
4792 ; return 0; }
4793 EOF
4794 if { (eval echo configure:4795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4795 rm -rf conftest*
4796 have_mbstate_t=yes
4797 else
4798 echo "configure: failed program was:" >&5
4799 cat conftest.$ac_ext >&5
4800 rm -rf conftest*
4801 have_mbstate_t=no
4802 fi
4803 rm -f conftest*
4804 echo "$ac_t""$have_mbstate_t" 1>&6
4805 if test x"$have_mbstate_t" = xyes; then
4806 cat >> confdefs.h <<\EOF
4807 #define HAVE_MBSTATE_T 1
4808 EOF
4809
4810 fi
4811
4812 for ac_hdr in wchar.h
4813 do
4814 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4816 echo "configure:4817: checking for $ac_hdr" >&5
4817 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4818 echo $ac_n "(cached) $ac_c" 1>&6
4819 else
4820 cat > conftest.$ac_ext <<EOF
4821 #line 4822 "configure"
4822 #include "confdefs.h"
4823 #include <$ac_hdr>
4824 EOF
4825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4826 { (eval echo configure:4827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4828 if test -z "$ac_err"; then
4829 rm -rf conftest*
4830 eval "ac_cv_header_$ac_safe=yes"
4831 else
4832 echo "$ac_err" >&5
4833 echo "configure: failed program was:" >&5
4834 cat conftest.$ac_ext >&5
4835 rm -rf conftest*
4836 eval "ac_cv_header_$ac_safe=no"
4837 fi
4838 rm -f conftest*
4839 fi
4840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4841 echo "$ac_t""yes" 1>&6
4842 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4843 cat >> confdefs.h <<EOF
4844 #define $ac_tr_hdr 1
4845 EOF
4846 ac_has_wchar_h=yes
4847 else
4848 echo "$ac_t""no" 1>&6
4849 ac_has_wchar_h=no
4850 fi
4851 done
4852
4853 for ac_hdr in wctype.h
4854 do
4855 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4857 echo "configure:4858: checking for $ac_hdr" >&5
4858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4859 echo $ac_n "(cached) $ac_c" 1>&6
4860 else
4861 cat > conftest.$ac_ext <<EOF
4862 #line 4863 "configure"
4863 #include "confdefs.h"
4864 #include <$ac_hdr>
4865 EOF
4866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4867 { (eval echo configure:4868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4869 if test -z "$ac_err"; then
4870 rm -rf conftest*
4871 eval "ac_cv_header_$ac_safe=yes"
4872 else
4873 echo "$ac_err" >&5
4874 echo "configure: failed program was:" >&5
4875 cat conftest.$ac_ext >&5
4876 rm -rf conftest*
4877 eval "ac_cv_header_$ac_safe=no"
4878 fi
4879 rm -f conftest*
4880 fi
4881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4882 echo "$ac_t""yes" 1>&6
4883 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4884 cat >> confdefs.h <<EOF
4885 #define $ac_tr_hdr 1
4886 EOF
4887 ac_has_wctype_h=yes
4888 else
4889 echo "$ac_t""no" 1>&6
4890 ac_has_wctype_h=no
4891 fi
4892 done
4893
4894
4895 if test x"$ac_has_wchar_h" = xyes &&
4896 test x"$ac_has_wctype_h" = xyes &&
4897 test x"$enable_c_mbchar" != xno; then
4898
4899 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4900 echo "configure:4901: checking for WCHAR_MIN and WCHAR_MAX" >&5
4901 cat > conftest.$ac_ext <<EOF
4902 #line 4903 "configure"
4903 #include "confdefs.h"
4904 #include <wchar.h>
4905 int main() {
4906 int i = WCHAR_MIN; int j = WCHAR_MAX;
4907 ; return 0; }
4908 EOF
4909 if { (eval echo configure:4910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4910 rm -rf conftest*
4911 has_wchar_minmax=yes
4912 else
4913 echo "configure: failed program was:" >&5
4914 cat conftest.$ac_ext >&5
4915 rm -rf conftest*
4916 has_wchar_minmax=no
4917 fi
4918 rm -f conftest*
4919 echo "$ac_t""$has_wchar_minmax" 1>&6
4920
4921 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4922 echo "configure:4923: checking for WEOF" >&5
4923 cat > conftest.$ac_ext <<EOF
4924 #line 4925 "configure"
4925 #include "confdefs.h"
4926
4927 #include <wchar.h>
4928 #include <stddef.h>
4929 int main() {
4930 wint_t i = WEOF;
4931 ; return 0; }
4932 EOF
4933 if { (eval echo configure:4934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4934 rm -rf conftest*
4935 has_weof=yes
4936 else
4937 echo "configure: failed program was:" >&5
4938 cat conftest.$ac_ext >&5
4939 rm -rf conftest*
4940 has_weof=no
4941 fi
4942 rm -f conftest*
4943 echo "$ac_t""$has_weof" 1>&6
4944
4945 ac_wfuncs=yes
4946 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4947 do
4948 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4949 echo "configure:4950: checking for $ac_func" >&5
4950 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4951 echo $ac_n "(cached) $ac_c" 1>&6
4952 else
4953 cat > conftest.$ac_ext <<EOF
4954 #line 4955 "configure"
4955 #include "confdefs.h"
4956 /* System header to define __stub macros and hopefully few prototypes,
4957 which can conflict with char $ac_func(); below. */
4958 #include <assert.h>
4959 /* Override any gcc2 internal prototype to avoid an error. */
4960 /* We use char because int might match the return type of a gcc2
4961 builtin and then its argument prototype would still apply. */
4962 char $ac_func();
4963
4964 int main() {
4965
4966 /* The GNU C library defines this for functions which it implements
4967 to always fail with ENOSYS. Some functions are actually named
4968 something starting with __ and the normal name is an alias. */
4969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4970 choke me
4971 #else
4972 $ac_func();
4973 #endif
4974
4975 ; return 0; }
4976 EOF
4977 if { (eval echo configure:4978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4978 rm -rf conftest*
4979 eval "ac_cv_func_$ac_func=yes"
4980 else
4981 echo "configure: failed program was:" >&5
4982 cat conftest.$ac_ext >&5
4983 rm -rf conftest*
4984 eval "ac_cv_func_$ac_func=no"
4985 fi
4986 rm -f conftest*
4987 fi
4988
4989 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4990 echo "$ac_t""yes" 1>&6
4991 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4992 cat >> confdefs.h <<EOF
4993 #define $ac_tr_func 1
4994 EOF
4995
4996 else
4997 echo "$ac_t""no" 1>&6
4998 \
4999 ac_wfuncs=no
5000 fi
5001 done
5002
5003
5004 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
5005 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5006 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5007 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5008 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5009 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5010 do
5011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5012 echo "configure:5013: checking for $ac_func" >&5
5013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5014 echo $ac_n "(cached) $ac_c" 1>&6
5015 else
5016 cat > conftest.$ac_ext <<EOF
5017 #line 5018 "configure"
5018 #include "confdefs.h"
5019 /* System header to define __stub macros and hopefully few prototypes,
5020 which can conflict with char $ac_func(); below. */
5021 #include <assert.h>
5022 /* Override any gcc2 internal prototype to avoid an error. */
5023 /* We use char because int might match the return type of a gcc2
5024 builtin and then its argument prototype would still apply. */
5025 char $ac_func();
5026
5027 int main() {
5028
5029 /* The GNU C library defines this for functions which it implements
5030 to always fail with ENOSYS. Some functions are actually named
5031 something starting with __ and the normal name is an alias. */
5032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5033 choke me
5034 #else
5035 $ac_func();
5036 #endif
5037
5038 ; return 0; }
5039 EOF
5040 if { (eval echo configure:5041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5041 rm -rf conftest*
5042 eval "ac_cv_func_$ac_func=yes"
5043 else
5044 echo "configure: failed program was:" >&5
5045 cat conftest.$ac_ext >&5
5046 rm -rf conftest*
5047 eval "ac_cv_func_$ac_func=no"
5048 fi
5049 rm -f conftest*
5050 fi
5051
5052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5053 echo "$ac_t""yes" 1>&6
5054 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5055 cat >> confdefs.h <<EOF
5056 #define $ac_tr_func 1
5057 EOF
5058
5059 else
5060 echo "$ac_t""no" 1>&6
5061 \
5062 ac_wfuncs=no
5063 fi
5064 done
5065
5066
5067 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5068 echo "configure:5069: checking for ISO C99 wchar_t support" >&5
5069 if test x"$has_weof" = xyes &&
5070 test x"$has_wchar_minmax" = xyes &&
5071 test x"$ac_wfuncs" = xyes; then
5072 ac_isoC99_wchar_t=yes
5073 else
5074 ac_isoC99_wchar_t=no
5075 fi
5076 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5077
5078 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5079 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5080 echo "configure:5081: checking for iconv.h" >&5
5081 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5082 echo $ac_n "(cached) $ac_c" 1>&6
5083 else
5084 cat > conftest.$ac_ext <<EOF
5085 #line 5086 "configure"
5086 #include "confdefs.h"
5087 #include <iconv.h>
5088 EOF
5089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5090 { (eval echo configure:5091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5091 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5092 if test -z "$ac_err"; then
5093 rm -rf conftest*
5094 eval "ac_cv_header_$ac_safe=yes"
5095 else
5096 echo "$ac_err" >&5
5097 echo "configure: failed program was:" >&5
5098 cat conftest.$ac_ext >&5
5099 rm -rf conftest*
5100 eval "ac_cv_header_$ac_safe=no"
5101 fi
5102 rm -f conftest*
5103 fi
5104 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5105 echo "$ac_t""yes" 1>&6
5106 ac_has_iconv_h=yes
5107 else
5108 echo "$ac_t""no" 1>&6
5109 ac_has_iconv_h=no
5110 fi
5111
5112 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5113 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5114 echo "configure:5115: checking for langinfo.h" >&5
5115 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5116 echo $ac_n "(cached) $ac_c" 1>&6
5117 else
5118 cat > conftest.$ac_ext <<EOF
5119 #line 5120 "configure"
5120 #include "confdefs.h"
5121 #include <langinfo.h>
5122 EOF
5123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5124 { (eval echo configure:5125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5126 if test -z "$ac_err"; then
5127 rm -rf conftest*
5128 eval "ac_cv_header_$ac_safe=yes"
5129 else
5130 echo "$ac_err" >&5
5131 echo "configure: failed program was:" >&5
5132 cat conftest.$ac_ext >&5
5133 rm -rf conftest*
5134 eval "ac_cv_header_$ac_safe=no"
5135 fi
5136 rm -f conftest*
5137 fi
5138 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5139 echo "$ac_t""yes" 1>&6
5140 ac_has_langinfo_h=yes
5141 else
5142 echo "$ac_t""no" 1>&6
5143 ac_has_langinfo_h=no
5144 fi
5145
5146
5147 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5148 echo "configure:5149: checking for iconv in -liconv" >&5
5149 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5150 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5151 echo $ac_n "(cached) $ac_c" 1>&6
5152 else
5153 ac_save_LIBS="$LIBS"
5154 LIBS="-liconv $LIBS"
5155 cat > conftest.$ac_ext <<EOF
5156 #line 5157 "configure"
5157 #include "confdefs.h"
5158 /* Override any gcc2 internal prototype to avoid an error. */
5159 /* We use char because int might match the return type of a gcc2
5160 builtin and then its argument prototype would still apply. */
5161 char iconv();
5162
5163 int main() {
5164 iconv()
5165 ; return 0; }
5166 EOF
5167 if { (eval echo configure:5168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5168 rm -rf conftest*
5169 eval "ac_cv_lib_$ac_lib_var=yes"
5170 else
5171 echo "configure: failed program was:" >&5
5172 cat conftest.$ac_ext >&5
5173 rm -rf conftest*
5174 eval "ac_cv_lib_$ac_lib_var=no"
5175 fi
5176 rm -f conftest*
5177 LIBS="$ac_save_LIBS"
5178
5179 fi
5180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5181 echo "$ac_t""yes" 1>&6
5182 libiconv="-liconv"
5183 else
5184 echo "$ac_t""no" 1>&6
5185 fi
5186
5187 ac_save_LIBS="$LIBS"
5188 LIBS="$LIBS $libiconv"
5189
5190 for ac_func in iconv_open iconv_close iconv nl_langinfo
5191 do
5192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5193 echo "configure:5194: checking for $ac_func" >&5
5194 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5195 echo $ac_n "(cached) $ac_c" 1>&6
5196 else
5197 cat > conftest.$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5200 /* System header to define __stub macros and hopefully few prototypes,
5201 which can conflict with char $ac_func(); below. */
5202 #include <assert.h>
5203 /* Override any gcc2 internal prototype to avoid an error. */
5204 /* We use char because int might match the return type of a gcc2
5205 builtin and then its argument prototype would still apply. */
5206 char $ac_func();
5207
5208 int main() {
5209
5210 /* The GNU C library defines this for functions which it implements
5211 to always fail with ENOSYS. Some functions are actually named
5212 something starting with __ and the normal name is an alias. */
5213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5214 choke me
5215 #else
5216 $ac_func();
5217 #endif
5218
5219 ; return 0; }
5220 EOF
5221 if { (eval echo configure:5222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5222 rm -rf conftest*
5223 eval "ac_cv_func_$ac_func=yes"
5224 else
5225 echo "configure: failed program was:" >&5
5226 cat conftest.$ac_ext >&5
5227 rm -rf conftest*
5228 eval "ac_cv_func_$ac_func=no"
5229 fi
5230 rm -f conftest*
5231 fi
5232
5233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5234 echo "$ac_t""yes" 1>&6
5235 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5236 cat >> confdefs.h <<EOF
5237 #define $ac_tr_func 1
5238 EOF
5239 \
5240 ac_XPG2funcs=yes
5241 else
5242 echo "$ac_t""no" 1>&6
5243 ac_XPG2funcs=no
5244 fi
5245 done
5246
5247
5248 LIBS="$ac_save_LIBS"
5249
5250 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5251 echo "configure:5252: checking for XPG2 wchar_t support" >&5
5252 if test x"$ac_has_iconv_h" = xyes &&
5253 test x"$ac_has_langinfo_h" = xyes &&
5254 test x"$ac_XPG2funcs" = xyes; then
5255 ac_XPG2_wchar_t=yes
5256 else
5257 ac_XPG2_wchar_t=no
5258 fi
5259 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5260
5261 if test x"$ac_isoC99_wchar_t" = xyes &&
5262 test x"$ac_XPG2_wchar_t" = xyes; then
5263 cat >> confdefs.h <<\EOF
5264 #define _GLIBCPP_USE_WCHAR_T 1
5265 EOF
5266
5267 enable_wchar_t=yes
5268 fi
5269 fi
5270 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5271 echo "configure:5272: checking for enabled wchar_t specializations" >&5
5272 echo "$ac_t""$enable_wchar_t" 1>&6
5273
5274
5275 if test "$enable_wchar_t" = yes; then
5276 GLIBCPP_TEST_WCHAR_T_TRUE=
5277 GLIBCPP_TEST_WCHAR_T_FALSE='#'
5278 else
5279 GLIBCPP_TEST_WCHAR_T_TRUE='#'
5280 GLIBCPP_TEST_WCHAR_T_FALSE=
5281 fi
5282
5283 cat >> confdefs.h <<\EOF
5284 #define HAVE_COPYSIGN 1
5285 EOF
5286
5287 cat >> confdefs.h <<\EOF
5288 #define HAVE_COPYSIGNF 1
5289 EOF
5290
5291 cat >> confdefs.h <<\EOF
5292 #define HAVE_FINITE 1
5293 EOF
5294
5295 cat >> confdefs.h <<\EOF
5296 #define HAVE_FINITEF 1
5297 EOF
5298
5299 cat >> confdefs.h <<\EOF
5300 #define HAVE_FREXPF 1
5301 EOF
5302
5303 cat >> confdefs.h <<\EOF
5304 #define HAVE_HYPOTF 1
5305 EOF
5306
5307 cat >> confdefs.h <<\EOF
5308 #define HAVE_ISINF 1
5309 EOF
5310
5311 cat >> confdefs.h <<\EOF
5312 #define HAVE_ISINFF 1
5313 EOF
5314
5315 cat >> confdefs.h <<\EOF
5316 #define HAVE_ISNAN 1
5317 EOF
5318
5319 cat >> confdefs.h <<\EOF
5320 #define HAVE_ISNANF 1
5321 EOF
5322
5323 cat >> confdefs.h <<\EOF
5324 #define HAVE_SINCOS 1
5325 EOF
5326
5327 cat >> confdefs.h <<\EOF
5328 #define HAVE_SINCOSF 1
5329 EOF
5330
5331 if test x"long_double_math_on_this_cpu" = x"yes"; then
5332 cat >> confdefs.h <<\EOF
5333 #define HAVE_FINITEL 1
5334 EOF
5335
5336 cat >> confdefs.h <<\EOF
5337 #define HAVE_HYPOTL 1
5338 EOF
5339
5340 cat >> confdefs.h <<\EOF
5341 #define HAVE_ISINFL 1
5342 EOF
5343
5344 cat >> confdefs.h <<\EOF
5345 #define HAVE_ISNANL 1
5346 EOF
5347
5348 fi
5349 ;;
5350 *-hpux*)
5351 os_include_dir="os/hpux"
5352 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5353 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5354 fp.h locale.h float.h inttypes.h
5355 do
5356 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5357 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5358 echo "configure:5359: checking for $ac_hdr" >&5
5359 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5360 echo $ac_n "(cached) $ac_c" 1>&6
5361 else
5362 cat > conftest.$ac_ext <<EOF
5363 #line 5364 "configure"
5364 #include "confdefs.h"
5365 #include <$ac_hdr>
5366 EOF
5367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5368 { (eval echo configure:5369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5370 if test -z "$ac_err"; then
5371 rm -rf conftest*
5372 eval "ac_cv_header_$ac_safe=yes"
5373 else
5374 echo "$ac_err" >&5
5375 echo "configure: failed program was:" >&5
5376 cat conftest.$ac_ext >&5
5377 rm -rf conftest*
5378 eval "ac_cv_header_$ac_safe=no"
5379 fi
5380 rm -f conftest*
5381 fi
5382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5383 echo "$ac_t""yes" 1>&6
5384 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5385 cat >> confdefs.h <<EOF
5386 #define $ac_tr_hdr 1
5387 EOF
5388
5389 else
5390 echo "$ac_t""no" 1>&6
5391 fi
5392 done
5393
5394 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5395
5396
5397 # If we're not using GNU ld, then there's no point in even trying these
5398 # tests. Check for that first. We should have already tested for gld
5399 # by now (in libtool), but require it now just to be safe...
5400 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5401 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5402
5403
5404 # The name set by libtool depends on the version of libtool. Shame on us
5405 # for depending on an impl detail, but c'est la vie. Older versions used
5406 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5407 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5408 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
5409 # set (hence we're using an older libtool), then set it.
5410 if test x${with_gnu_ld+set} != xset; then
5411 if test x${ac_cv_prog_gnu_ld+set} != xset; then
5412 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
5413 with_gnu_ld=no
5414 else
5415 with_gnu_ld=$ac_cv_prog_gnu_ld
5416 fi
5417 fi
5418
5419 # Start by getting the version number. I think the libtool test already
5420 # does some of this, but throws away the result.
5421
5422 ldver=`$LD --version 2>/dev/null | head -1 | \
5423 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5424
5425 glibcpp_gnu_ld_version=`echo $ldver | \
5426 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5427
5428 # Set --gc-sections.
5429 if test "$with_gnu_ld" = "notbroken"; then
5430 # GNU ld it is! Joy and bunny rabbits!
5431
5432 # All these tests are for C++; save the language and the compiler flags.
5433 # Need to do this so that g++ won't try to link in libstdc++
5434 ac_test_CFLAGS="${CFLAGS+set}"
5435 ac_save_CFLAGS="$CFLAGS"
5436 CFLAGS='-x c++ -Wl,--gc-sections'
5437
5438 # Check for -Wl,--gc-sections
5439 # XXX This test is broken at the moment, as symbols required for
5440 # linking are now in libsupc++ (not built yet.....). In addition,
5441 # this test has cored on solaris in the past. In addition,
5442 # --gc-sections doesn't really work at the moment (keeps on discarding
5443 # used sections, first .eh_frame and now some of the glibc sections for
5444 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5445 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5446 echo "configure:5447: checking for ld that supports -Wl,--gc-sections" >&5
5447 if test "$cross_compiling" = yes; then
5448 ac_sectionLDflags=yes
5449 else
5450 cat > conftest.$ac_ext <<EOF
5451 #line 5452 "configure"
5452 #include "confdefs.h"
5453
5454 int main(void)
5455 {
5456 try { throw 1; }
5457 catch (...) { };
5458 return 0;
5459 }
5460
5461 EOF
5462 if { (eval echo configure:5463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5463 then
5464 ac_sectionLDflags=yes
5465 else
5466 echo "configure: failed program was:" >&5
5467 cat conftest.$ac_ext >&5
5468 rm -fr conftest*
5469 ac_sectionLDflags=no
5470 fi
5471 rm -fr conftest*
5472 fi
5473
5474 if test "$ac_test_CFLAGS" = set; then
5475 CFLAGS="$ac_save_CFLAGS"
5476 else
5477 # this is the suspicious part
5478 CFLAGS=''
5479 fi
5480 if test "$ac_sectionLDflags" = "yes"; then
5481 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5482 fi
5483 echo "$ac_t""$ac_sectionLDflags" 1>&6
5484 fi
5485
5486 # Set linker optimization flags.
5487 if test x"$with_gnu_ld" = x"yes"; then
5488 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5489 fi
5490
5491
5492
5493
5494
5495 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5496 echo "configure:5497: checking for main in -lm" >&5
5497 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5499 echo $ac_n "(cached) $ac_c" 1>&6
5500 else
5501 ac_save_LIBS="$LIBS"
5502 LIBS="-lm $LIBS"
5503 cat > conftest.$ac_ext <<EOF
5504 #line 5505 "configure"
5505 #include "confdefs.h"
5506
5507 int main() {
5508 main()
5509 ; return 0; }
5510 EOF
5511 if { (eval echo configure:5512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5512 rm -rf conftest*
5513 eval "ac_cv_lib_$ac_lib_var=yes"
5514 else
5515 echo "configure: failed program was:" >&5
5516 cat conftest.$ac_ext >&5
5517 rm -rf conftest*
5518 eval "ac_cv_lib_$ac_lib_var=no"
5519 fi
5520 rm -f conftest*
5521 LIBS="$ac_save_LIBS"
5522
5523 fi
5524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5525 echo "$ac_t""yes" 1>&6
5526 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5527 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5528 cat >> confdefs.h <<EOF
5529 #define $ac_tr_lib 1
5530 EOF
5531
5532 LIBS="-lm $LIBS"
5533
5534 else
5535 echo "$ac_t""no" 1>&6
5536 fi
5537
5538 for ac_func in nan copysignf
5539 do
5540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5541 echo "configure:5542: checking for $ac_func" >&5
5542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5543 echo $ac_n "(cached) $ac_c" 1>&6
5544 else
5545 cat > conftest.$ac_ext <<EOF
5546 #line 5547 "configure"
5547 #include "confdefs.h"
5548 /* System header to define __stub macros and hopefully few prototypes,
5549 which can conflict with char $ac_func(); below. */
5550 #include <assert.h>
5551 /* Override any gcc2 internal prototype to avoid an error. */
5552 /* We use char because int might match the return type of a gcc2
5553 builtin and then its argument prototype would still apply. */
5554 char $ac_func();
5555
5556 int main() {
5557
5558 /* The GNU C library defines this for functions which it implements
5559 to always fail with ENOSYS. Some functions are actually named
5560 something starting with __ and the normal name is an alias. */
5561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5562 choke me
5563 #else
5564 $ac_func();
5565 #endif
5566
5567 ; return 0; }
5568 EOF
5569 if { (eval echo configure:5570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5570 rm -rf conftest*
5571 eval "ac_cv_func_$ac_func=yes"
5572 else
5573 echo "configure: failed program was:" >&5
5574 cat conftest.$ac_ext >&5
5575 rm -rf conftest*
5576 eval "ac_cv_func_$ac_func=no"
5577 fi
5578 rm -f conftest*
5579 fi
5580
5581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5582 echo "$ac_t""yes" 1>&6
5583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5584 cat >> confdefs.h <<EOF
5585 #define $ac_tr_func 1
5586 EOF
5587
5588 else
5589 echo "$ac_t""no" 1>&6
5590 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5591 fi
5592 done
5593
5594
5595 for ac_func in __signbit
5596 do
5597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5598 echo "configure:5599: checking for $ac_func" >&5
5599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5600 echo $ac_n "(cached) $ac_c" 1>&6
5601 else
5602 cat > conftest.$ac_ext <<EOF
5603 #line 5604 "configure"
5604 #include "confdefs.h"
5605 /* System header to define __stub macros and hopefully few prototypes,
5606 which can conflict with char $ac_func(); below. */
5607 #include <assert.h>
5608 /* Override any gcc2 internal prototype to avoid an error. */
5609 /* We use char because int might match the return type of a gcc2
5610 builtin and then its argument prototype would still apply. */
5611 char $ac_func();
5612
5613 int main() {
5614
5615 /* The GNU C library defines this for functions which it implements
5616 to always fail with ENOSYS. Some functions are actually named
5617 something starting with __ and the normal name is an alias. */
5618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5619 choke me
5620 #else
5621 $ac_func();
5622 #endif
5623
5624 ; return 0; }
5625 EOF
5626 if { (eval echo configure:5627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5627 rm -rf conftest*
5628 eval "ac_cv_func_$ac_func=yes"
5629 else
5630 echo "configure: failed program was:" >&5
5631 cat conftest.$ac_ext >&5
5632 rm -rf conftest*
5633 eval "ac_cv_func_$ac_func=no"
5634 fi
5635 rm -f conftest*
5636 fi
5637
5638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5639 echo "$ac_t""yes" 1>&6
5640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5641 cat >> confdefs.h <<EOF
5642 #define $ac_tr_func 1
5643 EOF
5644
5645 else
5646 echo "$ac_t""no" 1>&6
5647 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5648 fi
5649 done
5650
5651 for ac_func in __signbitf
5652 do
5653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5654 echo "configure:5655: checking for $ac_func" >&5
5655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5656 echo $ac_n "(cached) $ac_c" 1>&6
5657 else
5658 cat > conftest.$ac_ext <<EOF
5659 #line 5660 "configure"
5660 #include "confdefs.h"
5661 /* System header to define __stub macros and hopefully few prototypes,
5662 which can conflict with char $ac_func(); below. */
5663 #include <assert.h>
5664 /* Override any gcc2 internal prototype to avoid an error. */
5665 /* We use char because int might match the return type of a gcc2
5666 builtin and then its argument prototype would still apply. */
5667 char $ac_func();
5668
5669 int main() {
5670
5671 /* The GNU C library defines this for functions which it implements
5672 to always fail with ENOSYS. Some functions are actually named
5673 something starting with __ and the normal name is an alias. */
5674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5675 choke me
5676 #else
5677 $ac_func();
5678 #endif
5679
5680 ; return 0; }
5681 EOF
5682 if { (eval echo configure:5683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5683 rm -rf conftest*
5684 eval "ac_cv_func_$ac_func=yes"
5685 else
5686 echo "configure: failed program was:" >&5
5687 cat conftest.$ac_ext >&5
5688 rm -rf conftest*
5689 eval "ac_cv_func_$ac_func=no"
5690 fi
5691 rm -f conftest*
5692 fi
5693
5694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5695 echo "$ac_t""yes" 1>&6
5696 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5697 cat >> confdefs.h <<EOF
5698 #define $ac_tr_func 1
5699 EOF
5700
5701 else
5702 echo "$ac_t""no" 1>&6
5703 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5704 fi
5705 done
5706
5707
5708 if test x$ac_cv_func_copysignl = x"yes"; then
5709 for ac_func in __signbitl
5710 do
5711 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5712 echo "configure:5713: checking for $ac_func" >&5
5713 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5714 echo $ac_n "(cached) $ac_c" 1>&6
5715 else
5716 cat > conftest.$ac_ext <<EOF
5717 #line 5718 "configure"
5718 #include "confdefs.h"
5719 /* System header to define __stub macros and hopefully few prototypes,
5720 which can conflict with char $ac_func(); below. */
5721 #include <assert.h>
5722 /* Override any gcc2 internal prototype to avoid an error. */
5723 /* We use char because int might match the return type of a gcc2
5724 builtin and then its argument prototype would still apply. */
5725 char $ac_func();
5726
5727 int main() {
5728
5729 /* The GNU C library defines this for functions which it implements
5730 to always fail with ENOSYS. Some functions are actually named
5731 something starting with __ and the normal name is an alias. */
5732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5733 choke me
5734 #else
5735 $ac_func();
5736 #endif
5737
5738 ; return 0; }
5739 EOF
5740 if { (eval echo configure:5741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5741 rm -rf conftest*
5742 eval "ac_cv_func_$ac_func=yes"
5743 else
5744 echo "configure: failed program was:" >&5
5745 cat conftest.$ac_ext >&5
5746 rm -rf conftest*
5747 eval "ac_cv_func_$ac_func=no"
5748 fi
5749 rm -f conftest*
5750 fi
5751
5752 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5753 echo "$ac_t""yes" 1>&6
5754 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5755 cat >> confdefs.h <<EOF
5756 #define $ac_tr_func 1
5757 EOF
5758
5759 else
5760 echo "$ac_t""no" 1>&6
5761 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5762 fi
5763 done
5764
5765 fi
5766
5767 if test -n "$LIBMATHOBJS"; then
5768 need_libmath=yes
5769 fi
5770
5771
5772
5773 if test "$need_libmath" = yes; then
5774 GLIBCPP_BUILD_LIBMATH_TRUE=
5775 GLIBCPP_BUILD_LIBMATH_FALSE='#'
5776 else
5777 GLIBCPP_BUILD_LIBMATH_TRUE='#'
5778 GLIBCPP_BUILD_LIBMATH_FALSE=
5779 fi
5780
5781
5782 enable_wchar_t=no
5783
5784 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5785 echo "configure:5786: checking for mbstate_t" >&5
5786 cat > conftest.$ac_ext <<EOF
5787 #line 5788 "configure"
5788 #include "confdefs.h"
5789 #include <wchar.h>
5790 int main() {
5791 mbstate_t teststate;
5792 ; return 0; }
5793 EOF
5794 if { (eval echo configure:5795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5795 rm -rf conftest*
5796 have_mbstate_t=yes
5797 else
5798 echo "configure: failed program was:" >&5
5799 cat conftest.$ac_ext >&5
5800 rm -rf conftest*
5801 have_mbstate_t=no
5802 fi
5803 rm -f conftest*
5804 echo "$ac_t""$have_mbstate_t" 1>&6
5805 if test x"$have_mbstate_t" = xyes; then
5806 cat >> confdefs.h <<\EOF
5807 #define HAVE_MBSTATE_T 1
5808 EOF
5809
5810 fi
5811
5812 for ac_hdr in wchar.h
5813 do
5814 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5816 echo "configure:5817: checking for $ac_hdr" >&5
5817 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5818 echo $ac_n "(cached) $ac_c" 1>&6
5819 else
5820 cat > conftest.$ac_ext <<EOF
5821 #line 5822 "configure"
5822 #include "confdefs.h"
5823 #include <$ac_hdr>
5824 EOF
5825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5826 { (eval echo configure:5827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5828 if test -z "$ac_err"; then
5829 rm -rf conftest*
5830 eval "ac_cv_header_$ac_safe=yes"
5831 else
5832 echo "$ac_err" >&5
5833 echo "configure: failed program was:" >&5
5834 cat conftest.$ac_ext >&5
5835 rm -rf conftest*
5836 eval "ac_cv_header_$ac_safe=no"
5837 fi
5838 rm -f conftest*
5839 fi
5840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5841 echo "$ac_t""yes" 1>&6
5842 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5843 cat >> confdefs.h <<EOF
5844 #define $ac_tr_hdr 1
5845 EOF
5846 ac_has_wchar_h=yes
5847 else
5848 echo "$ac_t""no" 1>&6
5849 ac_has_wchar_h=no
5850 fi
5851 done
5852
5853 for ac_hdr in wctype.h
5854 do
5855 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5857 echo "configure:5858: checking for $ac_hdr" >&5
5858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5859 echo $ac_n "(cached) $ac_c" 1>&6
5860 else
5861 cat > conftest.$ac_ext <<EOF
5862 #line 5863 "configure"
5863 #include "confdefs.h"
5864 #include <$ac_hdr>
5865 EOF
5866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5867 { (eval echo configure:5868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5869 if test -z "$ac_err"; then
5870 rm -rf conftest*
5871 eval "ac_cv_header_$ac_safe=yes"
5872 else
5873 echo "$ac_err" >&5
5874 echo "configure: failed program was:" >&5
5875 cat conftest.$ac_ext >&5
5876 rm -rf conftest*
5877 eval "ac_cv_header_$ac_safe=no"
5878 fi
5879 rm -f conftest*
5880 fi
5881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5882 echo "$ac_t""yes" 1>&6
5883 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5884 cat >> confdefs.h <<EOF
5885 #define $ac_tr_hdr 1
5886 EOF
5887 ac_has_wctype_h=yes
5888 else
5889 echo "$ac_t""no" 1>&6
5890 ac_has_wctype_h=no
5891 fi
5892 done
5893
5894
5895 if test x"$ac_has_wchar_h" = xyes &&
5896 test x"$ac_has_wctype_h" = xyes &&
5897 test x"$enable_c_mbchar" != xno; then
5898
5899 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5900 echo "configure:5901: checking for WCHAR_MIN and WCHAR_MAX" >&5
5901 cat > conftest.$ac_ext <<EOF
5902 #line 5903 "configure"
5903 #include "confdefs.h"
5904 #include <wchar.h>
5905 int main() {
5906 int i = WCHAR_MIN; int j = WCHAR_MAX;
5907 ; return 0; }
5908 EOF
5909 if { (eval echo configure:5910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5910 rm -rf conftest*
5911 has_wchar_minmax=yes
5912 else
5913 echo "configure: failed program was:" >&5
5914 cat conftest.$ac_ext >&5
5915 rm -rf conftest*
5916 has_wchar_minmax=no
5917 fi
5918 rm -f conftest*
5919 echo "$ac_t""$has_wchar_minmax" 1>&6
5920
5921 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5922 echo "configure:5923: checking for WEOF" >&5
5923 cat > conftest.$ac_ext <<EOF
5924 #line 5925 "configure"
5925 #include "confdefs.h"
5926
5927 #include <wchar.h>
5928 #include <stddef.h>
5929 int main() {
5930 wint_t i = WEOF;
5931 ; return 0; }
5932 EOF
5933 if { (eval echo configure:5934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5934 rm -rf conftest*
5935 has_weof=yes
5936 else
5937 echo "configure: failed program was:" >&5
5938 cat conftest.$ac_ext >&5
5939 rm -rf conftest*
5940 has_weof=no
5941 fi
5942 rm -f conftest*
5943 echo "$ac_t""$has_weof" 1>&6
5944
5945 ac_wfuncs=yes
5946 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5947 do
5948 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5949 echo "configure:5950: checking for $ac_func" >&5
5950 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5951 echo $ac_n "(cached) $ac_c" 1>&6
5952 else
5953 cat > conftest.$ac_ext <<EOF
5954 #line 5955 "configure"
5955 #include "confdefs.h"
5956 /* System header to define __stub macros and hopefully few prototypes,
5957 which can conflict with char $ac_func(); below. */
5958 #include <assert.h>
5959 /* Override any gcc2 internal prototype to avoid an error. */
5960 /* We use char because int might match the return type of a gcc2
5961 builtin and then its argument prototype would still apply. */
5962 char $ac_func();
5963
5964 int main() {
5965
5966 /* The GNU C library defines this for functions which it implements
5967 to always fail with ENOSYS. Some functions are actually named
5968 something starting with __ and the normal name is an alias. */
5969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5970 choke me
5971 #else
5972 $ac_func();
5973 #endif
5974
5975 ; return 0; }
5976 EOF
5977 if { (eval echo configure:5978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5978 rm -rf conftest*
5979 eval "ac_cv_func_$ac_func=yes"
5980 else
5981 echo "configure: failed program was:" >&5
5982 cat conftest.$ac_ext >&5
5983 rm -rf conftest*
5984 eval "ac_cv_func_$ac_func=no"
5985 fi
5986 rm -f conftest*
5987 fi
5988
5989 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5990 echo "$ac_t""yes" 1>&6
5991 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5992 cat >> confdefs.h <<EOF
5993 #define $ac_tr_func 1
5994 EOF
5995
5996 else
5997 echo "$ac_t""no" 1>&6
5998 \
5999 ac_wfuncs=no
6000 fi
6001 done
6002
6003
6004 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6005 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6006 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6007 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6008 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6009 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6010 do
6011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6012 echo "configure:6013: checking for $ac_func" >&5
6013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6014 echo $ac_n "(cached) $ac_c" 1>&6
6015 else
6016 cat > conftest.$ac_ext <<EOF
6017 #line 6018 "configure"
6018 #include "confdefs.h"
6019 /* System header to define __stub macros and hopefully few prototypes,
6020 which can conflict with char $ac_func(); below. */
6021 #include <assert.h>
6022 /* Override any gcc2 internal prototype to avoid an error. */
6023 /* We use char because int might match the return type of a gcc2
6024 builtin and then its argument prototype would still apply. */
6025 char $ac_func();
6026
6027 int main() {
6028
6029 /* The GNU C library defines this for functions which it implements
6030 to always fail with ENOSYS. Some functions are actually named
6031 something starting with __ and the normal name is an alias. */
6032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6033 choke me
6034 #else
6035 $ac_func();
6036 #endif
6037
6038 ; return 0; }
6039 EOF
6040 if { (eval echo configure:6041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6041 rm -rf conftest*
6042 eval "ac_cv_func_$ac_func=yes"
6043 else
6044 echo "configure: failed program was:" >&5
6045 cat conftest.$ac_ext >&5
6046 rm -rf conftest*
6047 eval "ac_cv_func_$ac_func=no"
6048 fi
6049 rm -f conftest*
6050 fi
6051
6052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6053 echo "$ac_t""yes" 1>&6
6054 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6055 cat >> confdefs.h <<EOF
6056 #define $ac_tr_func 1
6057 EOF
6058
6059 else
6060 echo "$ac_t""no" 1>&6
6061 \
6062 ac_wfuncs=no
6063 fi
6064 done
6065
6066
6067 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6068 echo "configure:6069: checking for ISO C99 wchar_t support" >&5
6069 if test x"$has_weof" = xyes &&
6070 test x"$has_wchar_minmax" = xyes &&
6071 test x"$ac_wfuncs" = xyes; then
6072 ac_isoC99_wchar_t=yes
6073 else
6074 ac_isoC99_wchar_t=no
6075 fi
6076 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6077
6078 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6079 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6080 echo "configure:6081: checking for iconv.h" >&5
6081 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6082 echo $ac_n "(cached) $ac_c" 1>&6
6083 else
6084 cat > conftest.$ac_ext <<EOF
6085 #line 6086 "configure"
6086 #include "confdefs.h"
6087 #include <iconv.h>
6088 EOF
6089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6090 { (eval echo configure:6091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6091 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6092 if test -z "$ac_err"; then
6093 rm -rf conftest*
6094 eval "ac_cv_header_$ac_safe=yes"
6095 else
6096 echo "$ac_err" >&5
6097 echo "configure: failed program was:" >&5
6098 cat conftest.$ac_ext >&5
6099 rm -rf conftest*
6100 eval "ac_cv_header_$ac_safe=no"
6101 fi
6102 rm -f conftest*
6103 fi
6104 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6105 echo "$ac_t""yes" 1>&6
6106 ac_has_iconv_h=yes
6107 else
6108 echo "$ac_t""no" 1>&6
6109 ac_has_iconv_h=no
6110 fi
6111
6112 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6113 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6114 echo "configure:6115: checking for langinfo.h" >&5
6115 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6116 echo $ac_n "(cached) $ac_c" 1>&6
6117 else
6118 cat > conftest.$ac_ext <<EOF
6119 #line 6120 "configure"
6120 #include "confdefs.h"
6121 #include <langinfo.h>
6122 EOF
6123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6124 { (eval echo configure:6125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6126 if test -z "$ac_err"; then
6127 rm -rf conftest*
6128 eval "ac_cv_header_$ac_safe=yes"
6129 else
6130 echo "$ac_err" >&5
6131 echo "configure: failed program was:" >&5
6132 cat conftest.$ac_ext >&5
6133 rm -rf conftest*
6134 eval "ac_cv_header_$ac_safe=no"
6135 fi
6136 rm -f conftest*
6137 fi
6138 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6139 echo "$ac_t""yes" 1>&6
6140 ac_has_langinfo_h=yes
6141 else
6142 echo "$ac_t""no" 1>&6
6143 ac_has_langinfo_h=no
6144 fi
6145
6146
6147 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6148 echo "configure:6149: checking for iconv in -liconv" >&5
6149 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6150 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6151 echo $ac_n "(cached) $ac_c" 1>&6
6152 else
6153 ac_save_LIBS="$LIBS"
6154 LIBS="-liconv $LIBS"
6155 cat > conftest.$ac_ext <<EOF
6156 #line 6157 "configure"
6157 #include "confdefs.h"
6158 /* Override any gcc2 internal prototype to avoid an error. */
6159 /* We use char because int might match the return type of a gcc2
6160 builtin and then its argument prototype would still apply. */
6161 char iconv();
6162
6163 int main() {
6164 iconv()
6165 ; return 0; }
6166 EOF
6167 if { (eval echo configure:6168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6168 rm -rf conftest*
6169 eval "ac_cv_lib_$ac_lib_var=yes"
6170 else
6171 echo "configure: failed program was:" >&5
6172 cat conftest.$ac_ext >&5
6173 rm -rf conftest*
6174 eval "ac_cv_lib_$ac_lib_var=no"
6175 fi
6176 rm -f conftest*
6177 LIBS="$ac_save_LIBS"
6178
6179 fi
6180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6181 echo "$ac_t""yes" 1>&6
6182 libiconv="-liconv"
6183 else
6184 echo "$ac_t""no" 1>&6
6185 fi
6186
6187 ac_save_LIBS="$LIBS"
6188 LIBS="$LIBS $libiconv"
6189
6190 for ac_func in iconv_open iconv_close iconv nl_langinfo
6191 do
6192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6193 echo "configure:6194: checking for $ac_func" >&5
6194 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6195 echo $ac_n "(cached) $ac_c" 1>&6
6196 else
6197 cat > conftest.$ac_ext <<EOF
6198 #line 6199 "configure"
6199 #include "confdefs.h"
6200 /* System header to define __stub macros and hopefully few prototypes,
6201 which can conflict with char $ac_func(); below. */
6202 #include <assert.h>
6203 /* Override any gcc2 internal prototype to avoid an error. */
6204 /* We use char because int might match the return type of a gcc2
6205 builtin and then its argument prototype would still apply. */
6206 char $ac_func();
6207
6208 int main() {
6209
6210 /* The GNU C library defines this for functions which it implements
6211 to always fail with ENOSYS. Some functions are actually named
6212 something starting with __ and the normal name is an alias. */
6213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6214 choke me
6215 #else
6216 $ac_func();
6217 #endif
6218
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 eval "ac_cv_func_$ac_func=yes"
6224 else
6225 echo "configure: failed program was:" >&5
6226 cat conftest.$ac_ext >&5
6227 rm -rf conftest*
6228 eval "ac_cv_func_$ac_func=no"
6229 fi
6230 rm -f conftest*
6231 fi
6232
6233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6234 echo "$ac_t""yes" 1>&6
6235 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6236 cat >> confdefs.h <<EOF
6237 #define $ac_tr_func 1
6238 EOF
6239 \
6240 ac_XPG2funcs=yes
6241 else
6242 echo "$ac_t""no" 1>&6
6243 ac_XPG2funcs=no
6244 fi
6245 done
6246
6247
6248 LIBS="$ac_save_LIBS"
6249
6250 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6251 echo "configure:6252: checking for XPG2 wchar_t support" >&5
6252 if test x"$ac_has_iconv_h" = xyes &&
6253 test x"$ac_has_langinfo_h" = xyes &&
6254 test x"$ac_XPG2funcs" = xyes; then
6255 ac_XPG2_wchar_t=yes
6256 else
6257 ac_XPG2_wchar_t=no
6258 fi
6259 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6260
6261 if test x"$ac_isoC99_wchar_t" = xyes &&
6262 test x"$ac_XPG2_wchar_t" = xyes; then
6263 cat >> confdefs.h <<\EOF
6264 #define _GLIBCPP_USE_WCHAR_T 1
6265 EOF
6266
6267 enable_wchar_t=yes
6268 fi
6269 fi
6270 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6271 echo "configure:6272: checking for enabled wchar_t specializations" >&5
6272 echo "$ac_t""$enable_wchar_t" 1>&6
6273
6274
6275 if test "$enable_wchar_t" = yes; then
6276 GLIBCPP_TEST_WCHAR_T_TRUE=
6277 GLIBCPP_TEST_WCHAR_T_FALSE='#'
6278 else
6279 GLIBCPP_TEST_WCHAR_T_TRUE='#'
6280 GLIBCPP_TEST_WCHAR_T_FALSE=
6281 fi
6282
6283 cat >> confdefs.h <<\EOF
6284 #define HAVE_COPYSIGN 1
6285 EOF
6286
6287 cat >> confdefs.h <<\EOF
6288 #define HAVE_COPYSIGNF 1
6289 EOF
6290
6291 cat >> confdefs.h <<\EOF
6292 #define HAVE_FREXPF 1
6293 EOF
6294
6295 cat >> confdefs.h <<\EOF
6296 #define HAVE_HYPOT 1
6297 EOF
6298
6299 case "$target" in
6300 *-hpux10*)
6301 cat >> confdefs.h <<\EOF
6302 #define HAVE_FINITE 1
6303 EOF
6304
6305 cat >> confdefs.h <<\EOF
6306 #define HAVE_FINITEF 1
6307 EOF
6308
6309 cat >> confdefs.h <<\EOF
6310 #define HAVE_ISINF 1
6311 EOF
6312
6313 cat >> confdefs.h <<\EOF
6314 #define HAVE_ISINFF 1
6315 EOF
6316
6317 cat >> confdefs.h <<\EOF
6318 #define HAVE_ISNAN 1
6319 EOF
6320
6321 cat >> confdefs.h <<\EOF
6322 #define HAVE_ISNANF 1
6323 EOF
6324
6325 ;;
6326 esac
6327 ;;
6328 *-netbsd*)
6329 os_include_dir="os/bsd/netbsd"
6330 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6331 machine/endian.h machine/param.h sys/machine.h sys/types.h \
6332 fp.h locale.h float.h inttypes.h
6333 do
6334 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6335 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6336 echo "configure:6337: checking for $ac_hdr" >&5
6337 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6338 echo $ac_n "(cached) $ac_c" 1>&6
6339 else
6340 cat > conftest.$ac_ext <<EOF
6341 #line 6342 "configure"
6342 #include "confdefs.h"
6343 #include <$ac_hdr>
6344 EOF
6345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6346 { (eval echo configure:6347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6348 if test -z "$ac_err"; then
6349 rm -rf conftest*
6350 eval "ac_cv_header_$ac_safe=yes"
6351 else
6352 echo "$ac_err" >&5
6353 echo "configure: failed program was:" >&5
6354 cat conftest.$ac_ext >&5
6355 rm -rf conftest*
6356 eval "ac_cv_header_$ac_safe=no"
6357 fi
6358 rm -f conftest*
6359 fi
6360 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6361 echo "$ac_t""yes" 1>&6
6362 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6363 cat >> confdefs.h <<EOF
6364 #define $ac_tr_hdr 1
6365 EOF
6366
6367 else
6368 echo "$ac_t""no" 1>&6
6369 fi
6370 done
6371
6372 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6373
6374
6375 # If we're not using GNU ld, then there's no point in even trying these
6376 # tests. Check for that first. We should have already tested for gld
6377 # by now (in libtool), but require it now just to be safe...
6378 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6379 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6380
6381
6382 # The name set by libtool depends on the version of libtool. Shame on us
6383 # for depending on an impl detail, but c'est la vie. Older versions used
6384 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6385 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6386 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6387 # set (hence we're using an older libtool), then set it.
6388 if test x${with_gnu_ld+set} != xset; then
6389 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6390 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6391 with_gnu_ld=no
6392 else
6393 with_gnu_ld=$ac_cv_prog_gnu_ld
6394 fi
6395 fi
6396
6397 # Start by getting the version number. I think the libtool test already
6398 # does some of this, but throws away the result.
6399
6400 ldver=`$LD --version 2>/dev/null | head -1 | \
6401 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6402
6403 glibcpp_gnu_ld_version=`echo $ldver | \
6404 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6405
6406 # Set --gc-sections.
6407 if test "$with_gnu_ld" = "notbroken"; then
6408 # GNU ld it is! Joy and bunny rabbits!
6409
6410 # All these tests are for C++; save the language and the compiler flags.
6411 # Need to do this so that g++ won't try to link in libstdc++
6412 ac_test_CFLAGS="${CFLAGS+set}"
6413 ac_save_CFLAGS="$CFLAGS"
6414 CFLAGS='-x c++ -Wl,--gc-sections'
6415
6416 # Check for -Wl,--gc-sections
6417 # XXX This test is broken at the moment, as symbols required for
6418 # linking are now in libsupc++ (not built yet.....). In addition,
6419 # this test has cored on solaris in the past. In addition,
6420 # --gc-sections doesn't really work at the moment (keeps on discarding
6421 # used sections, first .eh_frame and now some of the glibc sections for
6422 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6423 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6424 echo "configure:6425: checking for ld that supports -Wl,--gc-sections" >&5
6425 if test "$cross_compiling" = yes; then
6426 ac_sectionLDflags=yes
6427 else
6428 cat > conftest.$ac_ext <<EOF
6429 #line 6430 "configure"
6430 #include "confdefs.h"
6431
6432 int main(void)
6433 {
6434 try { throw 1; }
6435 catch (...) { };
6436 return 0;
6437 }
6438
6439 EOF
6440 if { (eval echo configure:6441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6441 then
6442 ac_sectionLDflags=yes
6443 else
6444 echo "configure: failed program was:" >&5
6445 cat conftest.$ac_ext >&5
6446 rm -fr conftest*
6447 ac_sectionLDflags=no
6448 fi
6449 rm -fr conftest*
6450 fi
6451
6452 if test "$ac_test_CFLAGS" = set; then
6453 CFLAGS="$ac_save_CFLAGS"
6454 else
6455 # this is the suspicious part
6456 CFLAGS=''
6457 fi
6458 if test "$ac_sectionLDflags" = "yes"; then
6459 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6460 fi
6461 echo "$ac_t""$ac_sectionLDflags" 1>&6
6462 fi
6463
6464 # Set linker optimization flags.
6465 if test x"$with_gnu_ld" = x"yes"; then
6466 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6467 fi
6468
6469
6470
6471
6472
6473 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6474 echo "configure:6475: checking for main in -lm" >&5
6475 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6476 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6477 echo $ac_n "(cached) $ac_c" 1>&6
6478 else
6479 ac_save_LIBS="$LIBS"
6480 LIBS="-lm $LIBS"
6481 cat > conftest.$ac_ext <<EOF
6482 #line 6483 "configure"
6483 #include "confdefs.h"
6484
6485 int main() {
6486 main()
6487 ; return 0; }
6488 EOF
6489 if { (eval echo configure:6490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6490 rm -rf conftest*
6491 eval "ac_cv_lib_$ac_lib_var=yes"
6492 else
6493 echo "configure: failed program was:" >&5
6494 cat conftest.$ac_ext >&5
6495 rm -rf conftest*
6496 eval "ac_cv_lib_$ac_lib_var=no"
6497 fi
6498 rm -f conftest*
6499 LIBS="$ac_save_LIBS"
6500
6501 fi
6502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6503 echo "$ac_t""yes" 1>&6
6504 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6505 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6506 cat >> confdefs.h <<EOF
6507 #define $ac_tr_lib 1
6508 EOF
6509
6510 LIBS="-lm $LIBS"
6511
6512 else
6513 echo "$ac_t""no" 1>&6
6514 fi
6515
6516 for ac_func in nan copysignf
6517 do
6518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6519 echo "configure:6520: checking for $ac_func" >&5
6520 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6521 echo $ac_n "(cached) $ac_c" 1>&6
6522 else
6523 cat > conftest.$ac_ext <<EOF
6524 #line 6525 "configure"
6525 #include "confdefs.h"
6526 /* System header to define __stub macros and hopefully few prototypes,
6527 which can conflict with char $ac_func(); below. */
6528 #include <assert.h>
6529 /* Override any gcc2 internal prototype to avoid an error. */
6530 /* We use char because int might match the return type of a gcc2
6531 builtin and then its argument prototype would still apply. */
6532 char $ac_func();
6533
6534 int main() {
6535
6536 /* The GNU C library defines this for functions which it implements
6537 to always fail with ENOSYS. Some functions are actually named
6538 something starting with __ and the normal name is an alias. */
6539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6540 choke me
6541 #else
6542 $ac_func();
6543 #endif
6544
6545 ; return 0; }
6546 EOF
6547 if { (eval echo configure:6548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6548 rm -rf conftest*
6549 eval "ac_cv_func_$ac_func=yes"
6550 else
6551 echo "configure: failed program was:" >&5
6552 cat conftest.$ac_ext >&5
6553 rm -rf conftest*
6554 eval "ac_cv_func_$ac_func=no"
6555 fi
6556 rm -f conftest*
6557 fi
6558
6559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6560 echo "$ac_t""yes" 1>&6
6561 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6562 cat >> confdefs.h <<EOF
6563 #define $ac_tr_func 1
6564 EOF
6565
6566 else
6567 echo "$ac_t""no" 1>&6
6568 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6569 fi
6570 done
6571
6572
6573 for ac_func in __signbit
6574 do
6575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6576 echo "configure:6577: checking for $ac_func" >&5
6577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6578 echo $ac_n "(cached) $ac_c" 1>&6
6579 else
6580 cat > conftest.$ac_ext <<EOF
6581 #line 6582 "configure"
6582 #include "confdefs.h"
6583 /* System header to define __stub macros and hopefully few prototypes,
6584 which can conflict with char $ac_func(); below. */
6585 #include <assert.h>
6586 /* Override any gcc2 internal prototype to avoid an error. */
6587 /* We use char because int might match the return type of a gcc2
6588 builtin and then its argument prototype would still apply. */
6589 char $ac_func();
6590
6591 int main() {
6592
6593 /* The GNU C library defines this for functions which it implements
6594 to always fail with ENOSYS. Some functions are actually named
6595 something starting with __ and the normal name is an alias. */
6596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6597 choke me
6598 #else
6599 $ac_func();
6600 #endif
6601
6602 ; return 0; }
6603 EOF
6604 if { (eval echo configure:6605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6605 rm -rf conftest*
6606 eval "ac_cv_func_$ac_func=yes"
6607 else
6608 echo "configure: failed program was:" >&5
6609 cat conftest.$ac_ext >&5
6610 rm -rf conftest*
6611 eval "ac_cv_func_$ac_func=no"
6612 fi
6613 rm -f conftest*
6614 fi
6615
6616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6617 echo "$ac_t""yes" 1>&6
6618 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6619 cat >> confdefs.h <<EOF
6620 #define $ac_tr_func 1
6621 EOF
6622
6623 else
6624 echo "$ac_t""no" 1>&6
6625 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6626 fi
6627 done
6628
6629 for ac_func in __signbitf
6630 do
6631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6632 echo "configure:6633: checking for $ac_func" >&5
6633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6634 echo $ac_n "(cached) $ac_c" 1>&6
6635 else
6636 cat > conftest.$ac_ext <<EOF
6637 #line 6638 "configure"
6638 #include "confdefs.h"
6639 /* System header to define __stub macros and hopefully few prototypes,
6640 which can conflict with char $ac_func(); below. */
6641 #include <assert.h>
6642 /* Override any gcc2 internal prototype to avoid an error. */
6643 /* We use char because int might match the return type of a gcc2
6644 builtin and then its argument prototype would still apply. */
6645 char $ac_func();
6646
6647 int main() {
6648
6649 /* The GNU C library defines this for functions which it implements
6650 to always fail with ENOSYS. Some functions are actually named
6651 something starting with __ and the normal name is an alias. */
6652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6653 choke me
6654 #else
6655 $ac_func();
6656 #endif
6657
6658 ; return 0; }
6659 EOF
6660 if { (eval echo configure:6661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6661 rm -rf conftest*
6662 eval "ac_cv_func_$ac_func=yes"
6663 else
6664 echo "configure: failed program was:" >&5
6665 cat conftest.$ac_ext >&5
6666 rm -rf conftest*
6667 eval "ac_cv_func_$ac_func=no"
6668 fi
6669 rm -f conftest*
6670 fi
6671
6672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6673 echo "$ac_t""yes" 1>&6
6674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6675 cat >> confdefs.h <<EOF
6676 #define $ac_tr_func 1
6677 EOF
6678
6679 else
6680 echo "$ac_t""no" 1>&6
6681 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6682 fi
6683 done
6684
6685
6686 if test x$ac_cv_func_copysignl = x"yes"; then
6687 for ac_func in __signbitl
6688 do
6689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6690 echo "configure:6691: checking for $ac_func" >&5
6691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6692 echo $ac_n "(cached) $ac_c" 1>&6
6693 else
6694 cat > conftest.$ac_ext <<EOF
6695 #line 6696 "configure"
6696 #include "confdefs.h"
6697 /* System header to define __stub macros and hopefully few prototypes,
6698 which can conflict with char $ac_func(); below. */
6699 #include <assert.h>
6700 /* Override any gcc2 internal prototype to avoid an error. */
6701 /* We use char because int might match the return type of a gcc2
6702 builtin and then its argument prototype would still apply. */
6703 char $ac_func();
6704
6705 int main() {
6706
6707 /* The GNU C library defines this for functions which it implements
6708 to always fail with ENOSYS. Some functions are actually named
6709 something starting with __ and the normal name is an alias. */
6710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6711 choke me
6712 #else
6713 $ac_func();
6714 #endif
6715
6716 ; return 0; }
6717 EOF
6718 if { (eval echo configure:6719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6719 rm -rf conftest*
6720 eval "ac_cv_func_$ac_func=yes"
6721 else
6722 echo "configure: failed program was:" >&5
6723 cat conftest.$ac_ext >&5
6724 rm -rf conftest*
6725 eval "ac_cv_func_$ac_func=no"
6726 fi
6727 rm -f conftest*
6728 fi
6729
6730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6731 echo "$ac_t""yes" 1>&6
6732 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6733 cat >> confdefs.h <<EOF
6734 #define $ac_tr_func 1
6735 EOF
6736
6737 else
6738 echo "$ac_t""no" 1>&6
6739 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6740 fi
6741 done
6742
6743 fi
6744
6745 if test -n "$LIBMATHOBJS"; then
6746 need_libmath=yes
6747 fi
6748
6749
6750
6751 if test "$need_libmath" = yes; then
6752 GLIBCPP_BUILD_LIBMATH_TRUE=
6753 GLIBCPP_BUILD_LIBMATH_FALSE='#'
6754 else
6755 GLIBCPP_BUILD_LIBMATH_TRUE='#'
6756 GLIBCPP_BUILD_LIBMATH_FALSE=
6757 fi
6758
6759
6760 enable_wchar_t=no
6761
6762 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6763 echo "configure:6764: checking for mbstate_t" >&5
6764 cat > conftest.$ac_ext <<EOF
6765 #line 6766 "configure"
6766 #include "confdefs.h"
6767 #include <wchar.h>
6768 int main() {
6769 mbstate_t teststate;
6770 ; return 0; }
6771 EOF
6772 if { (eval echo configure:6773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6773 rm -rf conftest*
6774 have_mbstate_t=yes
6775 else
6776 echo "configure: failed program was:" >&5
6777 cat conftest.$ac_ext >&5
6778 rm -rf conftest*
6779 have_mbstate_t=no
6780 fi
6781 rm -f conftest*
6782 echo "$ac_t""$have_mbstate_t" 1>&6
6783 if test x"$have_mbstate_t" = xyes; then
6784 cat >> confdefs.h <<\EOF
6785 #define HAVE_MBSTATE_T 1
6786 EOF
6787
6788 fi
6789
6790 for ac_hdr in wchar.h
6791 do
6792 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6793 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6794 echo "configure:6795: checking for $ac_hdr" >&5
6795 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6796 echo $ac_n "(cached) $ac_c" 1>&6
6797 else
6798 cat > conftest.$ac_ext <<EOF
6799 #line 6800 "configure"
6800 #include "confdefs.h"
6801 #include <$ac_hdr>
6802 EOF
6803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6804 { (eval echo configure:6805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6805 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6806 if test -z "$ac_err"; then
6807 rm -rf conftest*
6808 eval "ac_cv_header_$ac_safe=yes"
6809 else
6810 echo "$ac_err" >&5
6811 echo "configure: failed program was:" >&5
6812 cat conftest.$ac_ext >&5
6813 rm -rf conftest*
6814 eval "ac_cv_header_$ac_safe=no"
6815 fi
6816 rm -f conftest*
6817 fi
6818 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6819 echo "$ac_t""yes" 1>&6
6820 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6821 cat >> confdefs.h <<EOF
6822 #define $ac_tr_hdr 1
6823 EOF
6824 ac_has_wchar_h=yes
6825 else
6826 echo "$ac_t""no" 1>&6
6827 ac_has_wchar_h=no
6828 fi
6829 done
6830
6831 for ac_hdr in wctype.h
6832 do
6833 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6834 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6835 echo "configure:6836: checking for $ac_hdr" >&5
6836 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6837 echo $ac_n "(cached) $ac_c" 1>&6
6838 else
6839 cat > conftest.$ac_ext <<EOF
6840 #line 6841 "configure"
6841 #include "confdefs.h"
6842 #include <$ac_hdr>
6843 EOF
6844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6845 { (eval echo configure:6846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6847 if test -z "$ac_err"; then
6848 rm -rf conftest*
6849 eval "ac_cv_header_$ac_safe=yes"
6850 else
6851 echo "$ac_err" >&5
6852 echo "configure: failed program was:" >&5
6853 cat conftest.$ac_ext >&5
6854 rm -rf conftest*
6855 eval "ac_cv_header_$ac_safe=no"
6856 fi
6857 rm -f conftest*
6858 fi
6859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6860 echo "$ac_t""yes" 1>&6
6861 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6862 cat >> confdefs.h <<EOF
6863 #define $ac_tr_hdr 1
6864 EOF
6865 ac_has_wctype_h=yes
6866 else
6867 echo "$ac_t""no" 1>&6
6868 ac_has_wctype_h=no
6869 fi
6870 done
6871
6872
6873 if test x"$ac_has_wchar_h" = xyes &&
6874 test x"$ac_has_wctype_h" = xyes &&
6875 test x"$enable_c_mbchar" != xno; then
6876
6877 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6878 echo "configure:6879: checking for WCHAR_MIN and WCHAR_MAX" >&5
6879 cat > conftest.$ac_ext <<EOF
6880 #line 6881 "configure"
6881 #include "confdefs.h"
6882 #include <wchar.h>
6883 int main() {
6884 int i = WCHAR_MIN; int j = WCHAR_MAX;
6885 ; return 0; }
6886 EOF
6887 if { (eval echo configure:6888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6888 rm -rf conftest*
6889 has_wchar_minmax=yes
6890 else
6891 echo "configure: failed program was:" >&5
6892 cat conftest.$ac_ext >&5
6893 rm -rf conftest*
6894 has_wchar_minmax=no
6895 fi
6896 rm -f conftest*
6897 echo "$ac_t""$has_wchar_minmax" 1>&6
6898
6899 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6900 echo "configure:6901: checking for WEOF" >&5
6901 cat > conftest.$ac_ext <<EOF
6902 #line 6903 "configure"
6903 #include "confdefs.h"
6904
6905 #include <wchar.h>
6906 #include <stddef.h>
6907 int main() {
6908 wint_t i = WEOF;
6909 ; return 0; }
6910 EOF
6911 if { (eval echo configure:6912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6912 rm -rf conftest*
6913 has_weof=yes
6914 else
6915 echo "configure: failed program was:" >&5
6916 cat conftest.$ac_ext >&5
6917 rm -rf conftest*
6918 has_weof=no
6919 fi
6920 rm -f conftest*
6921 echo "$ac_t""$has_weof" 1>&6
6922
6923 ac_wfuncs=yes
6924 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6925 do
6926 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6927 echo "configure:6928: checking for $ac_func" >&5
6928 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6929 echo $ac_n "(cached) $ac_c" 1>&6
6930 else
6931 cat > conftest.$ac_ext <<EOF
6932 #line 6933 "configure"
6933 #include "confdefs.h"
6934 /* System header to define __stub macros and hopefully few prototypes,
6935 which can conflict with char $ac_func(); below. */
6936 #include <assert.h>
6937 /* Override any gcc2 internal prototype to avoid an error. */
6938 /* We use char because int might match the return type of a gcc2
6939 builtin and then its argument prototype would still apply. */
6940 char $ac_func();
6941
6942 int main() {
6943
6944 /* The GNU C library defines this for functions which it implements
6945 to always fail with ENOSYS. Some functions are actually named
6946 something starting with __ and the normal name is an alias. */
6947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6948 choke me
6949 #else
6950 $ac_func();
6951 #endif
6952
6953 ; return 0; }
6954 EOF
6955 if { (eval echo configure:6956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6956 rm -rf conftest*
6957 eval "ac_cv_func_$ac_func=yes"
6958 else
6959 echo "configure: failed program was:" >&5
6960 cat conftest.$ac_ext >&5
6961 rm -rf conftest*
6962 eval "ac_cv_func_$ac_func=no"
6963 fi
6964 rm -f conftest*
6965 fi
6966
6967 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6968 echo "$ac_t""yes" 1>&6
6969 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6970 cat >> confdefs.h <<EOF
6971 #define $ac_tr_func 1
6972 EOF
6973
6974 else
6975 echo "$ac_t""no" 1>&6
6976 \
6977 ac_wfuncs=no
6978 fi
6979 done
6980
6981
6982 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6983 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6984 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6985 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6986 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6987 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6988 do
6989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6990 echo "configure:6991: checking for $ac_func" >&5
6991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6992 echo $ac_n "(cached) $ac_c" 1>&6
6993 else
6994 cat > conftest.$ac_ext <<EOF
6995 #line 6996 "configure"
6996 #include "confdefs.h"
6997 /* System header to define __stub macros and hopefully few prototypes,
6998 which can conflict with char $ac_func(); below. */
6999 #include <assert.h>
7000 /* Override any gcc2 internal prototype to avoid an error. */
7001 /* We use char because int might match the return type of a gcc2
7002 builtin and then its argument prototype would still apply. */
7003 char $ac_func();
7004
7005 int main() {
7006
7007 /* The GNU C library defines this for functions which it implements
7008 to always fail with ENOSYS. Some functions are actually named
7009 something starting with __ and the normal name is an alias. */
7010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7011 choke me
7012 #else
7013 $ac_func();
7014 #endif
7015
7016 ; return 0; }
7017 EOF
7018 if { (eval echo configure:7019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7019 rm -rf conftest*
7020 eval "ac_cv_func_$ac_func=yes"
7021 else
7022 echo "configure: failed program was:" >&5
7023 cat conftest.$ac_ext >&5
7024 rm -rf conftest*
7025 eval "ac_cv_func_$ac_func=no"
7026 fi
7027 rm -f conftest*
7028 fi
7029
7030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7031 echo "$ac_t""yes" 1>&6
7032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7033 cat >> confdefs.h <<EOF
7034 #define $ac_tr_func 1
7035 EOF
7036
7037 else
7038 echo "$ac_t""no" 1>&6
7039 \
7040 ac_wfuncs=no
7041 fi
7042 done
7043
7044
7045 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7046 echo "configure:7047: checking for ISO C99 wchar_t support" >&5
7047 if test x"$has_weof" = xyes &&
7048 test x"$has_wchar_minmax" = xyes &&
7049 test x"$ac_wfuncs" = xyes; then
7050 ac_isoC99_wchar_t=yes
7051 else
7052 ac_isoC99_wchar_t=no
7053 fi
7054 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7055
7056 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7057 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7058 echo "configure:7059: checking for iconv.h" >&5
7059 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7060 echo $ac_n "(cached) $ac_c" 1>&6
7061 else
7062 cat > conftest.$ac_ext <<EOF
7063 #line 7064 "configure"
7064 #include "confdefs.h"
7065 #include <iconv.h>
7066 EOF
7067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7068 { (eval echo configure:7069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7070 if test -z "$ac_err"; then
7071 rm -rf conftest*
7072 eval "ac_cv_header_$ac_safe=yes"
7073 else
7074 echo "$ac_err" >&5
7075 echo "configure: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7077 rm -rf conftest*
7078 eval "ac_cv_header_$ac_safe=no"
7079 fi
7080 rm -f conftest*
7081 fi
7082 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7083 echo "$ac_t""yes" 1>&6
7084 ac_has_iconv_h=yes
7085 else
7086 echo "$ac_t""no" 1>&6
7087 ac_has_iconv_h=no
7088 fi
7089
7090 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7091 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7092 echo "configure:7093: checking for langinfo.h" >&5
7093 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7094 echo $ac_n "(cached) $ac_c" 1>&6
7095 else
7096 cat > conftest.$ac_ext <<EOF
7097 #line 7098 "configure"
7098 #include "confdefs.h"
7099 #include <langinfo.h>
7100 EOF
7101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7102 { (eval echo configure:7103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7104 if test -z "$ac_err"; then
7105 rm -rf conftest*
7106 eval "ac_cv_header_$ac_safe=yes"
7107 else
7108 echo "$ac_err" >&5
7109 echo "configure: failed program was:" >&5
7110 cat conftest.$ac_ext >&5
7111 rm -rf conftest*
7112 eval "ac_cv_header_$ac_safe=no"
7113 fi
7114 rm -f conftest*
7115 fi
7116 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7117 echo "$ac_t""yes" 1>&6
7118 ac_has_langinfo_h=yes
7119 else
7120 echo "$ac_t""no" 1>&6
7121 ac_has_langinfo_h=no
7122 fi
7123
7124
7125 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7126 echo "configure:7127: checking for iconv in -liconv" >&5
7127 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7129 echo $ac_n "(cached) $ac_c" 1>&6
7130 else
7131 ac_save_LIBS="$LIBS"
7132 LIBS="-liconv $LIBS"
7133 cat > conftest.$ac_ext <<EOF
7134 #line 7135 "configure"
7135 #include "confdefs.h"
7136 /* Override any gcc2 internal prototype to avoid an error. */
7137 /* We use char because int might match the return type of a gcc2
7138 builtin and then its argument prototype would still apply. */
7139 char iconv();
7140
7141 int main() {
7142 iconv()
7143 ; return 0; }
7144 EOF
7145 if { (eval echo configure:7146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7146 rm -rf conftest*
7147 eval "ac_cv_lib_$ac_lib_var=yes"
7148 else
7149 echo "configure: failed program was:" >&5
7150 cat conftest.$ac_ext >&5
7151 rm -rf conftest*
7152 eval "ac_cv_lib_$ac_lib_var=no"
7153 fi
7154 rm -f conftest*
7155 LIBS="$ac_save_LIBS"
7156
7157 fi
7158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7159 echo "$ac_t""yes" 1>&6
7160 libiconv="-liconv"
7161 else
7162 echo "$ac_t""no" 1>&6
7163 fi
7164
7165 ac_save_LIBS="$LIBS"
7166 LIBS="$LIBS $libiconv"
7167
7168 for ac_func in iconv_open iconv_close iconv nl_langinfo
7169 do
7170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7171 echo "configure:7172: checking for $ac_func" >&5
7172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7173 echo $ac_n "(cached) $ac_c" 1>&6
7174 else
7175 cat > conftest.$ac_ext <<EOF
7176 #line 7177 "configure"
7177 #include "confdefs.h"
7178 /* System header to define __stub macros and hopefully few prototypes,
7179 which can conflict with char $ac_func(); below. */
7180 #include <assert.h>
7181 /* Override any gcc2 internal prototype to avoid an error. */
7182 /* We use char because int might match the return type of a gcc2
7183 builtin and then its argument prototype would still apply. */
7184 char $ac_func();
7185
7186 int main() {
7187
7188 /* The GNU C library defines this for functions which it implements
7189 to always fail with ENOSYS. Some functions are actually named
7190 something starting with __ and the normal name is an alias. */
7191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7192 choke me
7193 #else
7194 $ac_func();
7195 #endif
7196
7197 ; return 0; }
7198 EOF
7199 if { (eval echo configure:7200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7200 rm -rf conftest*
7201 eval "ac_cv_func_$ac_func=yes"
7202 else
7203 echo "configure: failed program was:" >&5
7204 cat conftest.$ac_ext >&5
7205 rm -rf conftest*
7206 eval "ac_cv_func_$ac_func=no"
7207 fi
7208 rm -f conftest*
7209 fi
7210
7211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7212 echo "$ac_t""yes" 1>&6
7213 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7214 cat >> confdefs.h <<EOF
7215 #define $ac_tr_func 1
7216 EOF
7217 \
7218 ac_XPG2funcs=yes
7219 else
7220 echo "$ac_t""no" 1>&6
7221 ac_XPG2funcs=no
7222 fi
7223 done
7224
7225
7226 LIBS="$ac_save_LIBS"
7227
7228 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7229 echo "configure:7230: checking for XPG2 wchar_t support" >&5
7230 if test x"$ac_has_iconv_h" = xyes &&
7231 test x"$ac_has_langinfo_h" = xyes &&
7232 test x"$ac_XPG2funcs" = xyes; then
7233 ac_XPG2_wchar_t=yes
7234 else
7235 ac_XPG2_wchar_t=no
7236 fi
7237 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7238
7239 if test x"$ac_isoC99_wchar_t" = xyes &&
7240 test x"$ac_XPG2_wchar_t" = xyes; then
7241 cat >> confdefs.h <<\EOF
7242 #define _GLIBCPP_USE_WCHAR_T 1
7243 EOF
7244
7245 enable_wchar_t=yes
7246 fi
7247 fi
7248 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7249 echo "configure:7250: checking for enabled wchar_t specializations" >&5
7250 echo "$ac_t""$enable_wchar_t" 1>&6
7251
7252
7253 if test "$enable_wchar_t" = yes; then
7254 GLIBCPP_TEST_WCHAR_T_TRUE=
7255 GLIBCPP_TEST_WCHAR_T_FALSE='#'
7256 else
7257 GLIBCPP_TEST_WCHAR_T_TRUE='#'
7258 GLIBCPP_TEST_WCHAR_T_FALSE=
7259 fi
7260
7261 cat >> confdefs.h <<\EOF
7262 #define HAVE_COPYSIGN 1
7263 EOF
7264
7265 cat >> confdefs.h <<\EOF
7266 #define HAVE_COPYSIGNF 1
7267 EOF
7268
7269 cat >> confdefs.h <<\EOF
7270 #define HAVE_FINITEF 1
7271 EOF
7272
7273 cat >> confdefs.h <<\EOF
7274 #define HAVE_FINITE 1
7275 EOF
7276
7277 cat >> confdefs.h <<\EOF
7278 #define HAVE_FREXPF 1
7279 EOF
7280
7281 cat >> confdefs.h <<\EOF
7282 #define HAVE_HYPOTF 1
7283 EOF
7284
7285 cat >> confdefs.h <<\EOF
7286 #define HAVE_ISINF 1
7287 EOF
7288
7289 cat >> confdefs.h <<\EOF
7290 #define HAVE_ISINFF 1
7291 EOF
7292
7293 cat >> confdefs.h <<\EOF
7294 #define HAVE_ISNAN 1
7295 EOF
7296
7297 cat >> confdefs.h <<\EOF
7298 #define HAVE_ISNANF 1
7299 EOF
7300
7301 if test x"long_double_math_on_this_cpu" = x"yes"; then
7302 cat >> confdefs.h <<\EOF
7303 #define HAVE_FINITEL 1
7304 EOF
7305
7306 cat >> confdefs.h <<\EOF
7307 #define HAVE_ISINFL 1
7308 EOF
7309
7310 cat >> confdefs.h <<\EOF
7311 #define HAVE_ISNANL 1
7312 EOF
7313
7314 fi
7315 ;;
7316 *-freebsd*)
7317 os_include_dir="os/bsd/freebsd"
7318 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
7319 machine/endian.h machine/param.h sys/machine.h sys/types.h \
7320 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
7321 sys/time.h unistd.h
7322 do
7323 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7324 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7325 echo "configure:7326: checking for $ac_hdr" >&5
7326 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7327 echo $ac_n "(cached) $ac_c" 1>&6
7328 else
7329 cat > conftest.$ac_ext <<EOF
7330 #line 7331 "configure"
7331 #include "confdefs.h"
7332 #include <$ac_hdr>
7333 EOF
7334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7335 { (eval echo configure:7336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7337 if test -z "$ac_err"; then
7338 rm -rf conftest*
7339 eval "ac_cv_header_$ac_safe=yes"
7340 else
7341 echo "$ac_err" >&5
7342 echo "configure: failed program was:" >&5
7343 cat conftest.$ac_ext >&5
7344 rm -rf conftest*
7345 eval "ac_cv_header_$ac_safe=no"
7346 fi
7347 rm -f conftest*
7348 fi
7349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7350 echo "$ac_t""yes" 1>&6
7351 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7352 cat >> confdefs.h <<EOF
7353 #define $ac_tr_hdr 1
7354 EOF
7355
7356 else
7357 echo "$ac_t""no" 1>&6
7358 fi
7359 done
7360
7361 SECTION_FLAGS='-ffunction-sections -fdata-sections'
7362
7363
7364 # If we're not using GNU ld, then there's no point in even trying these
7365 # tests. Check for that first. We should have already tested for gld
7366 # by now (in libtool), but require it now just to be safe...
7367 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7368 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7369
7370
7371 # The name set by libtool depends on the version of libtool. Shame on us
7372 # for depending on an impl detail, but c'est la vie. Older versions used
7373 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7374 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7375 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7376 # set (hence we're using an older libtool), then set it.
7377 if test x${with_gnu_ld+set} != xset; then
7378 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7379 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7380 with_gnu_ld=no
7381 else
7382 with_gnu_ld=$ac_cv_prog_gnu_ld
7383 fi
7384 fi
7385
7386 # Start by getting the version number. I think the libtool test already
7387 # does some of this, but throws away the result.
7388
7389 ldver=`$LD --version 2>/dev/null | head -1 | \
7390 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7391
7392 glibcpp_gnu_ld_version=`echo $ldver | \
7393 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7394
7395 # Set --gc-sections.
7396 if test "$with_gnu_ld" = "notbroken"; then
7397 # GNU ld it is! Joy and bunny rabbits!
7398
7399 # All these tests are for C++; save the language and the compiler flags.
7400 # Need to do this so that g++ won't try to link in libstdc++
7401 ac_test_CFLAGS="${CFLAGS+set}"
7402 ac_save_CFLAGS="$CFLAGS"
7403 CFLAGS='-x c++ -Wl,--gc-sections'
7404
7405 # Check for -Wl,--gc-sections
7406 # XXX This test is broken at the moment, as symbols required for
7407 # linking are now in libsupc++ (not built yet.....). In addition,
7408 # this test has cored on solaris in the past. In addition,
7409 # --gc-sections doesn't really work at the moment (keeps on discarding
7410 # used sections, first .eh_frame and now some of the glibc sections for
7411 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7412 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7413 echo "configure:7414: checking for ld that supports -Wl,--gc-sections" >&5
7414 if test "$cross_compiling" = yes; then
7415 ac_sectionLDflags=yes
7416 else
7417 cat > conftest.$ac_ext <<EOF
7418 #line 7419 "configure"
7419 #include "confdefs.h"
7420
7421 int main(void)
7422 {
7423 try { throw 1; }
7424 catch (...) { };
7425 return 0;
7426 }
7427
7428 EOF
7429 if { (eval echo configure:7430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7430 then
7431 ac_sectionLDflags=yes
7432 else
7433 echo "configure: failed program was:" >&5
7434 cat conftest.$ac_ext >&5
7435 rm -fr conftest*
7436 ac_sectionLDflags=no
7437 fi
7438 rm -fr conftest*
7439 fi
7440
7441 if test "$ac_test_CFLAGS" = set; then
7442 CFLAGS="$ac_save_CFLAGS"
7443 else
7444 # this is the suspicious part
7445 CFLAGS=''
7446 fi
7447 if test "$ac_sectionLDflags" = "yes"; then
7448 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7449 fi
7450 echo "$ac_t""$ac_sectionLDflags" 1>&6
7451 fi
7452
7453 # Set linker optimization flags.
7454 if test x"$with_gnu_ld" = x"yes"; then
7455 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7456 fi
7457
7458
7459
7460
7461
7462 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7463 echo "configure:7464: checking for main in -lm" >&5
7464 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7466 echo $ac_n "(cached) $ac_c" 1>&6
7467 else
7468 ac_save_LIBS="$LIBS"
7469 LIBS="-lm $LIBS"
7470 cat > conftest.$ac_ext <<EOF
7471 #line 7472 "configure"
7472 #include "confdefs.h"
7473
7474 int main() {
7475 main()
7476 ; return 0; }
7477 EOF
7478 if { (eval echo configure:7479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7479 rm -rf conftest*
7480 eval "ac_cv_lib_$ac_lib_var=yes"
7481 else
7482 echo "configure: failed program was:" >&5
7483 cat conftest.$ac_ext >&5
7484 rm -rf conftest*
7485 eval "ac_cv_lib_$ac_lib_var=no"
7486 fi
7487 rm -f conftest*
7488 LIBS="$ac_save_LIBS"
7489
7490 fi
7491 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7492 echo "$ac_t""yes" 1>&6
7493 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7494 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7495 cat >> confdefs.h <<EOF
7496 #define $ac_tr_lib 1
7497 EOF
7498
7499 LIBS="-lm $LIBS"
7500
7501 else
7502 echo "$ac_t""no" 1>&6
7503 fi
7504
7505 for ac_func in nan copysignf
7506 do
7507 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7508 echo "configure:7509: checking for $ac_func" >&5
7509 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7510 echo $ac_n "(cached) $ac_c" 1>&6
7511 else
7512 cat > conftest.$ac_ext <<EOF
7513 #line 7514 "configure"
7514 #include "confdefs.h"
7515 /* System header to define __stub macros and hopefully few prototypes,
7516 which can conflict with char $ac_func(); below. */
7517 #include <assert.h>
7518 /* Override any gcc2 internal prototype to avoid an error. */
7519 /* We use char because int might match the return type of a gcc2
7520 builtin and then its argument prototype would still apply. */
7521 char $ac_func();
7522
7523 int main() {
7524
7525 /* The GNU C library defines this for functions which it implements
7526 to always fail with ENOSYS. Some functions are actually named
7527 something starting with __ and the normal name is an alias. */
7528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7529 choke me
7530 #else
7531 $ac_func();
7532 #endif
7533
7534 ; return 0; }
7535 EOF
7536 if { (eval echo configure:7537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7537 rm -rf conftest*
7538 eval "ac_cv_func_$ac_func=yes"
7539 else
7540 echo "configure: failed program was:" >&5
7541 cat conftest.$ac_ext >&5
7542 rm -rf conftest*
7543 eval "ac_cv_func_$ac_func=no"
7544 fi
7545 rm -f conftest*
7546 fi
7547
7548 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7549 echo "$ac_t""yes" 1>&6
7550 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7551 cat >> confdefs.h <<EOF
7552 #define $ac_tr_func 1
7553 EOF
7554
7555 else
7556 echo "$ac_t""no" 1>&6
7557 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7558 fi
7559 done
7560
7561
7562 for ac_func in __signbit
7563 do
7564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7565 echo "configure:7566: checking for $ac_func" >&5
7566 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7567 echo $ac_n "(cached) $ac_c" 1>&6
7568 else
7569 cat > conftest.$ac_ext <<EOF
7570 #line 7571 "configure"
7571 #include "confdefs.h"
7572 /* System header to define __stub macros and hopefully few prototypes,
7573 which can conflict with char $ac_func(); below. */
7574 #include <assert.h>
7575 /* Override any gcc2 internal prototype to avoid an error. */
7576 /* We use char because int might match the return type of a gcc2
7577 builtin and then its argument prototype would still apply. */
7578 char $ac_func();
7579
7580 int main() {
7581
7582 /* The GNU C library defines this for functions which it implements
7583 to always fail with ENOSYS. Some functions are actually named
7584 something starting with __ and the normal name is an alias. */
7585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7586 choke me
7587 #else
7588 $ac_func();
7589 #endif
7590
7591 ; return 0; }
7592 EOF
7593 if { (eval echo configure:7594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7594 rm -rf conftest*
7595 eval "ac_cv_func_$ac_func=yes"
7596 else
7597 echo "configure: failed program was:" >&5
7598 cat conftest.$ac_ext >&5
7599 rm -rf conftest*
7600 eval "ac_cv_func_$ac_func=no"
7601 fi
7602 rm -f conftest*
7603 fi
7604
7605 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7606 echo "$ac_t""yes" 1>&6
7607 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7608 cat >> confdefs.h <<EOF
7609 #define $ac_tr_func 1
7610 EOF
7611
7612 else
7613 echo "$ac_t""no" 1>&6
7614 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7615 fi
7616 done
7617
7618 for ac_func in __signbitf
7619 do
7620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7621 echo "configure:7622: checking for $ac_func" >&5
7622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7623 echo $ac_n "(cached) $ac_c" 1>&6
7624 else
7625 cat > conftest.$ac_ext <<EOF
7626 #line 7627 "configure"
7627 #include "confdefs.h"
7628 /* System header to define __stub macros and hopefully few prototypes,
7629 which can conflict with char $ac_func(); below. */
7630 #include <assert.h>
7631 /* Override any gcc2 internal prototype to avoid an error. */
7632 /* We use char because int might match the return type of a gcc2
7633 builtin and then its argument prototype would still apply. */
7634 char $ac_func();
7635
7636 int main() {
7637
7638 /* The GNU C library defines this for functions which it implements
7639 to always fail with ENOSYS. Some functions are actually named
7640 something starting with __ and the normal name is an alias. */
7641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7642 choke me
7643 #else
7644 $ac_func();
7645 #endif
7646
7647 ; return 0; }
7648 EOF
7649 if { (eval echo configure:7650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7650 rm -rf conftest*
7651 eval "ac_cv_func_$ac_func=yes"
7652 else
7653 echo "configure: failed program was:" >&5
7654 cat conftest.$ac_ext >&5
7655 rm -rf conftest*
7656 eval "ac_cv_func_$ac_func=no"
7657 fi
7658 rm -f conftest*
7659 fi
7660
7661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7662 echo "$ac_t""yes" 1>&6
7663 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7664 cat >> confdefs.h <<EOF
7665 #define $ac_tr_func 1
7666 EOF
7667
7668 else
7669 echo "$ac_t""no" 1>&6
7670 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7671 fi
7672 done
7673
7674
7675 if test x$ac_cv_func_copysignl = x"yes"; then
7676 for ac_func in __signbitl
7677 do
7678 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7679 echo "configure:7680: checking for $ac_func" >&5
7680 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7681 echo $ac_n "(cached) $ac_c" 1>&6
7682 else
7683 cat > conftest.$ac_ext <<EOF
7684 #line 7685 "configure"
7685 #include "confdefs.h"
7686 /* System header to define __stub macros and hopefully few prototypes,
7687 which can conflict with char $ac_func(); below. */
7688 #include <assert.h>
7689 /* Override any gcc2 internal prototype to avoid an error. */
7690 /* We use char because int might match the return type of a gcc2
7691 builtin and then its argument prototype would still apply. */
7692 char $ac_func();
7693
7694 int main() {
7695
7696 /* The GNU C library defines this for functions which it implements
7697 to always fail with ENOSYS. Some functions are actually named
7698 something starting with __ and the normal name is an alias. */
7699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7700 choke me
7701 #else
7702 $ac_func();
7703 #endif
7704
7705 ; return 0; }
7706 EOF
7707 if { (eval echo configure:7708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7708 rm -rf conftest*
7709 eval "ac_cv_func_$ac_func=yes"
7710 else
7711 echo "configure: failed program was:" >&5
7712 cat conftest.$ac_ext >&5
7713 rm -rf conftest*
7714 eval "ac_cv_func_$ac_func=no"
7715 fi
7716 rm -f conftest*
7717 fi
7718
7719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7720 echo "$ac_t""yes" 1>&6
7721 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7722 cat >> confdefs.h <<EOF
7723 #define $ac_tr_func 1
7724 EOF
7725
7726 else
7727 echo "$ac_t""no" 1>&6
7728 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7729 fi
7730 done
7731
7732 fi
7733
7734 if test -n "$LIBMATHOBJS"; then
7735 need_libmath=yes
7736 fi
7737
7738
7739
7740 if test "$need_libmath" = yes; then
7741 GLIBCPP_BUILD_LIBMATH_TRUE=
7742 GLIBCPP_BUILD_LIBMATH_FALSE='#'
7743 else
7744 GLIBCPP_BUILD_LIBMATH_TRUE='#'
7745 GLIBCPP_BUILD_LIBMATH_FALSE=
7746 fi
7747
7748
7749 enable_wchar_t=no
7750
7751 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7752 echo "configure:7753: checking for mbstate_t" >&5
7753 cat > conftest.$ac_ext <<EOF
7754 #line 7755 "configure"
7755 #include "confdefs.h"
7756 #include <wchar.h>
7757 int main() {
7758 mbstate_t teststate;
7759 ; return 0; }
7760 EOF
7761 if { (eval echo configure:7762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7762 rm -rf conftest*
7763 have_mbstate_t=yes
7764 else
7765 echo "configure: failed program was:" >&5
7766 cat conftest.$ac_ext >&5
7767 rm -rf conftest*
7768 have_mbstate_t=no
7769 fi
7770 rm -f conftest*
7771 echo "$ac_t""$have_mbstate_t" 1>&6
7772 if test x"$have_mbstate_t" = xyes; then
7773 cat >> confdefs.h <<\EOF
7774 #define HAVE_MBSTATE_T 1
7775 EOF
7776
7777 fi
7778
7779 for ac_hdr in wchar.h
7780 do
7781 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7782 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7783 echo "configure:7784: checking for $ac_hdr" >&5
7784 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7785 echo $ac_n "(cached) $ac_c" 1>&6
7786 else
7787 cat > conftest.$ac_ext <<EOF
7788 #line 7789 "configure"
7789 #include "confdefs.h"
7790 #include <$ac_hdr>
7791 EOF
7792 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7793 { (eval echo configure:7794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7794 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7795 if test -z "$ac_err"; then
7796 rm -rf conftest*
7797 eval "ac_cv_header_$ac_safe=yes"
7798 else
7799 echo "$ac_err" >&5
7800 echo "configure: failed program was:" >&5
7801 cat conftest.$ac_ext >&5
7802 rm -rf conftest*
7803 eval "ac_cv_header_$ac_safe=no"
7804 fi
7805 rm -f conftest*
7806 fi
7807 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7808 echo "$ac_t""yes" 1>&6
7809 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7810 cat >> confdefs.h <<EOF
7811 #define $ac_tr_hdr 1
7812 EOF
7813 ac_has_wchar_h=yes
7814 else
7815 echo "$ac_t""no" 1>&6
7816 ac_has_wchar_h=no
7817 fi
7818 done
7819
7820 for ac_hdr in wctype.h
7821 do
7822 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7823 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7824 echo "configure:7825: checking for $ac_hdr" >&5
7825 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7826 echo $ac_n "(cached) $ac_c" 1>&6
7827 else
7828 cat > conftest.$ac_ext <<EOF
7829 #line 7830 "configure"
7830 #include "confdefs.h"
7831 #include <$ac_hdr>
7832 EOF
7833 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7834 { (eval echo configure:7835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7835 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7836 if test -z "$ac_err"; then
7837 rm -rf conftest*
7838 eval "ac_cv_header_$ac_safe=yes"
7839 else
7840 echo "$ac_err" >&5
7841 echo "configure: failed program was:" >&5
7842 cat conftest.$ac_ext >&5
7843 rm -rf conftest*
7844 eval "ac_cv_header_$ac_safe=no"
7845 fi
7846 rm -f conftest*
7847 fi
7848 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7849 echo "$ac_t""yes" 1>&6
7850 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7851 cat >> confdefs.h <<EOF
7852 #define $ac_tr_hdr 1
7853 EOF
7854 ac_has_wctype_h=yes
7855 else
7856 echo "$ac_t""no" 1>&6
7857 ac_has_wctype_h=no
7858 fi
7859 done
7860
7861
7862 if test x"$ac_has_wchar_h" = xyes &&
7863 test x"$ac_has_wctype_h" = xyes &&
7864 test x"$enable_c_mbchar" != xno; then
7865
7866 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7867 echo "configure:7868: checking for WCHAR_MIN and WCHAR_MAX" >&5
7868 cat > conftest.$ac_ext <<EOF
7869 #line 7870 "configure"
7870 #include "confdefs.h"
7871 #include <wchar.h>
7872 int main() {
7873 int i = WCHAR_MIN; int j = WCHAR_MAX;
7874 ; return 0; }
7875 EOF
7876 if { (eval echo configure:7877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7877 rm -rf conftest*
7878 has_wchar_minmax=yes
7879 else
7880 echo "configure: failed program was:" >&5
7881 cat conftest.$ac_ext >&5
7882 rm -rf conftest*
7883 has_wchar_minmax=no
7884 fi
7885 rm -f conftest*
7886 echo "$ac_t""$has_wchar_minmax" 1>&6
7887
7888 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7889 echo "configure:7890: checking for WEOF" >&5
7890 cat > conftest.$ac_ext <<EOF
7891 #line 7892 "configure"
7892 #include "confdefs.h"
7893
7894 #include <wchar.h>
7895 #include <stddef.h>
7896 int main() {
7897 wint_t i = WEOF;
7898 ; return 0; }
7899 EOF
7900 if { (eval echo configure:7901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7901 rm -rf conftest*
7902 has_weof=yes
7903 else
7904 echo "configure: failed program was:" >&5
7905 cat conftest.$ac_ext >&5
7906 rm -rf conftest*
7907 has_weof=no
7908 fi
7909 rm -f conftest*
7910 echo "$ac_t""$has_weof" 1>&6
7911
7912 ac_wfuncs=yes
7913 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7914 do
7915 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7916 echo "configure:7917: checking for $ac_func" >&5
7917 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7918 echo $ac_n "(cached) $ac_c" 1>&6
7919 else
7920 cat > conftest.$ac_ext <<EOF
7921 #line 7922 "configure"
7922 #include "confdefs.h"
7923 /* System header to define __stub macros and hopefully few prototypes,
7924 which can conflict with char $ac_func(); below. */
7925 #include <assert.h>
7926 /* Override any gcc2 internal prototype to avoid an error. */
7927 /* We use char because int might match the return type of a gcc2
7928 builtin and then its argument prototype would still apply. */
7929 char $ac_func();
7930
7931 int main() {
7932
7933 /* The GNU C library defines this for functions which it implements
7934 to always fail with ENOSYS. Some functions are actually named
7935 something starting with __ and the normal name is an alias. */
7936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7937 choke me
7938 #else
7939 $ac_func();
7940 #endif
7941
7942 ; return 0; }
7943 EOF
7944 if { (eval echo configure:7945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7945 rm -rf conftest*
7946 eval "ac_cv_func_$ac_func=yes"
7947 else
7948 echo "configure: failed program was:" >&5
7949 cat conftest.$ac_ext >&5
7950 rm -rf conftest*
7951 eval "ac_cv_func_$ac_func=no"
7952 fi
7953 rm -f conftest*
7954 fi
7955
7956 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7957 echo "$ac_t""yes" 1>&6
7958 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7959 cat >> confdefs.h <<EOF
7960 #define $ac_tr_func 1
7961 EOF
7962
7963 else
7964 echo "$ac_t""no" 1>&6
7965 \
7966 ac_wfuncs=no
7967 fi
7968 done
7969
7970
7971 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
7972 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7973 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7974 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7975 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7976 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7977 do
7978 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7979 echo "configure:7980: checking for $ac_func" >&5
7980 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7981 echo $ac_n "(cached) $ac_c" 1>&6
7982 else
7983 cat > conftest.$ac_ext <<EOF
7984 #line 7985 "configure"
7985 #include "confdefs.h"
7986 /* System header to define __stub macros and hopefully few prototypes,
7987 which can conflict with char $ac_func(); below. */
7988 #include <assert.h>
7989 /* Override any gcc2 internal prototype to avoid an error. */
7990 /* We use char because int might match the return type of a gcc2
7991 builtin and then its argument prototype would still apply. */
7992 char $ac_func();
7993
7994 int main() {
7995
7996 /* The GNU C library defines this for functions which it implements
7997 to always fail with ENOSYS. Some functions are actually named
7998 something starting with __ and the normal name is an alias. */
7999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8000 choke me
8001 #else
8002 $ac_func();
8003 #endif
8004
8005 ; return 0; }
8006 EOF
8007 if { (eval echo configure:8008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8008 rm -rf conftest*
8009 eval "ac_cv_func_$ac_func=yes"
8010 else
8011 echo "configure: failed program was:" >&5
8012 cat conftest.$ac_ext >&5
8013 rm -rf conftest*
8014 eval "ac_cv_func_$ac_func=no"
8015 fi
8016 rm -f conftest*
8017 fi
8018
8019 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8020 echo "$ac_t""yes" 1>&6
8021 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8022 cat >> confdefs.h <<EOF
8023 #define $ac_tr_func 1
8024 EOF
8025
8026 else
8027 echo "$ac_t""no" 1>&6
8028 \
8029 ac_wfuncs=no
8030 fi
8031 done
8032
8033
8034 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8035 echo "configure:8036: checking for ISO C99 wchar_t support" >&5
8036 if test x"$has_weof" = xyes &&
8037 test x"$has_wchar_minmax" = xyes &&
8038 test x"$ac_wfuncs" = xyes; then
8039 ac_isoC99_wchar_t=yes
8040 else
8041 ac_isoC99_wchar_t=no
8042 fi
8043 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8044
8045 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8046 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8047 echo "configure:8048: checking for iconv.h" >&5
8048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8049 echo $ac_n "(cached) $ac_c" 1>&6
8050 else
8051 cat > conftest.$ac_ext <<EOF
8052 #line 8053 "configure"
8053 #include "confdefs.h"
8054 #include <iconv.h>
8055 EOF
8056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8057 { (eval echo configure:8058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8059 if test -z "$ac_err"; then
8060 rm -rf conftest*
8061 eval "ac_cv_header_$ac_safe=yes"
8062 else
8063 echo "$ac_err" >&5
8064 echo "configure: failed program was:" >&5
8065 cat conftest.$ac_ext >&5
8066 rm -rf conftest*
8067 eval "ac_cv_header_$ac_safe=no"
8068 fi
8069 rm -f conftest*
8070 fi
8071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8072 echo "$ac_t""yes" 1>&6
8073 ac_has_iconv_h=yes
8074 else
8075 echo "$ac_t""no" 1>&6
8076 ac_has_iconv_h=no
8077 fi
8078
8079 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8080 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8081 echo "configure:8082: checking for langinfo.h" >&5
8082 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8083 echo $ac_n "(cached) $ac_c" 1>&6
8084 else
8085 cat > conftest.$ac_ext <<EOF
8086 #line 8087 "configure"
8087 #include "confdefs.h"
8088 #include <langinfo.h>
8089 EOF
8090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8091 { (eval echo configure:8092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8093 if test -z "$ac_err"; then
8094 rm -rf conftest*
8095 eval "ac_cv_header_$ac_safe=yes"
8096 else
8097 echo "$ac_err" >&5
8098 echo "configure: failed program was:" >&5
8099 cat conftest.$ac_ext >&5
8100 rm -rf conftest*
8101 eval "ac_cv_header_$ac_safe=no"
8102 fi
8103 rm -f conftest*
8104 fi
8105 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8106 echo "$ac_t""yes" 1>&6
8107 ac_has_langinfo_h=yes
8108 else
8109 echo "$ac_t""no" 1>&6
8110 ac_has_langinfo_h=no
8111 fi
8112
8113
8114 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8115 echo "configure:8116: checking for iconv in -liconv" >&5
8116 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8117 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8118 echo $ac_n "(cached) $ac_c" 1>&6
8119 else
8120 ac_save_LIBS="$LIBS"
8121 LIBS="-liconv $LIBS"
8122 cat > conftest.$ac_ext <<EOF
8123 #line 8124 "configure"
8124 #include "confdefs.h"
8125 /* Override any gcc2 internal prototype to avoid an error. */
8126 /* We use char because int might match the return type of a gcc2
8127 builtin and then its argument prototype would still apply. */
8128 char iconv();
8129
8130 int main() {
8131 iconv()
8132 ; return 0; }
8133 EOF
8134 if { (eval echo configure:8135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8135 rm -rf conftest*
8136 eval "ac_cv_lib_$ac_lib_var=yes"
8137 else
8138 echo "configure: failed program was:" >&5
8139 cat conftest.$ac_ext >&5
8140 rm -rf conftest*
8141 eval "ac_cv_lib_$ac_lib_var=no"
8142 fi
8143 rm -f conftest*
8144 LIBS="$ac_save_LIBS"
8145
8146 fi
8147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8148 echo "$ac_t""yes" 1>&6
8149 libiconv="-liconv"
8150 else
8151 echo "$ac_t""no" 1>&6
8152 fi
8153
8154 ac_save_LIBS="$LIBS"
8155 LIBS="$LIBS $libiconv"
8156
8157 for ac_func in iconv_open iconv_close iconv nl_langinfo
8158 do
8159 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8160 echo "configure:8161: checking for $ac_func" >&5
8161 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8162 echo $ac_n "(cached) $ac_c" 1>&6
8163 else
8164 cat > conftest.$ac_ext <<EOF
8165 #line 8166 "configure"
8166 #include "confdefs.h"
8167 /* System header to define __stub macros and hopefully few prototypes,
8168 which can conflict with char $ac_func(); below. */
8169 #include <assert.h>
8170 /* Override any gcc2 internal prototype to avoid an error. */
8171 /* We use char because int might match the return type of a gcc2
8172 builtin and then its argument prototype would still apply. */
8173 char $ac_func();
8174
8175 int main() {
8176
8177 /* The GNU C library defines this for functions which it implements
8178 to always fail with ENOSYS. Some functions are actually named
8179 something starting with __ and the normal name is an alias. */
8180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8181 choke me
8182 #else
8183 $ac_func();
8184 #endif
8185
8186 ; return 0; }
8187 EOF
8188 if { (eval echo configure:8189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8189 rm -rf conftest*
8190 eval "ac_cv_func_$ac_func=yes"
8191 else
8192 echo "configure: failed program was:" >&5
8193 cat conftest.$ac_ext >&5
8194 rm -rf conftest*
8195 eval "ac_cv_func_$ac_func=no"
8196 fi
8197 rm -f conftest*
8198 fi
8199
8200 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8201 echo "$ac_t""yes" 1>&6
8202 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8203 cat >> confdefs.h <<EOF
8204 #define $ac_tr_func 1
8205 EOF
8206 \
8207 ac_XPG2funcs=yes
8208 else
8209 echo "$ac_t""no" 1>&6
8210 ac_XPG2funcs=no
8211 fi
8212 done
8213
8214
8215 LIBS="$ac_save_LIBS"
8216
8217 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8218 echo "configure:8219: checking for XPG2 wchar_t support" >&5
8219 if test x"$ac_has_iconv_h" = xyes &&
8220 test x"$ac_has_langinfo_h" = xyes &&
8221 test x"$ac_XPG2funcs" = xyes; then
8222 ac_XPG2_wchar_t=yes
8223 else
8224 ac_XPG2_wchar_t=no
8225 fi
8226 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8227
8228 if test x"$ac_isoC99_wchar_t" = xyes &&
8229 test x"$ac_XPG2_wchar_t" = xyes; then
8230 cat >> confdefs.h <<\EOF
8231 #define _GLIBCPP_USE_WCHAR_T 1
8232 EOF
8233
8234 enable_wchar_t=yes
8235 fi
8236 fi
8237 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8238 echo "configure:8239: checking for enabled wchar_t specializations" >&5
8239 echo "$ac_t""$enable_wchar_t" 1>&6
8240
8241
8242 if test "$enable_wchar_t" = yes; then
8243 GLIBCPP_TEST_WCHAR_T_TRUE=
8244 GLIBCPP_TEST_WCHAR_T_FALSE='#'
8245 else
8246 GLIBCPP_TEST_WCHAR_T_TRUE='#'
8247 GLIBCPP_TEST_WCHAR_T_FALSE=
8248 fi
8249
8250 cat >> confdefs.h <<\EOF
8251 #define HAVE_LC_MESSAGES 1
8252 EOF
8253
8254 cat >> confdefs.h <<\EOF
8255 #define HAVE_DRAND48 1
8256 EOF
8257
8258 cat >> confdefs.h <<\EOF
8259 #define HAVE_GETPAGESIZE 1
8260 EOF
8261
8262 cat >> confdefs.h <<\EOF
8263 #define HAVE_SETENV 1
8264 EOF
8265
8266 cat >> confdefs.h <<\EOF
8267 #define HAVE_SIGSETJMP 1
8268 EOF
8269
8270 cat >> confdefs.h <<\EOF
8271 #define HAVE_COPYSIGN 1
8272 EOF
8273
8274 cat >> confdefs.h <<\EOF
8275 #define HAVE_COPYSIGNF 1
8276 EOF
8277
8278 cat >> confdefs.h <<\EOF
8279 #define HAVE_FINITEF 1
8280 EOF
8281
8282 cat >> confdefs.h <<\EOF
8283 #define HAVE_FINITE 1
8284 EOF
8285
8286 cat >> confdefs.h <<\EOF
8287 #define HAVE_FREXPF 1
8288 EOF
8289
8290 cat >> confdefs.h <<\EOF
8291 #define HAVE_HYPOT 1
8292 EOF
8293
8294 cat >> confdefs.h <<\EOF
8295 #define HAVE_HYPOTF 1
8296 EOF
8297
8298 cat >> confdefs.h <<\EOF
8299 #define HAVE_ISINF 1
8300 EOF
8301
8302 cat >> confdefs.h <<\EOF
8303 #define HAVE_ISNAN 1
8304 EOF
8305
8306 cat >> confdefs.h <<\EOF
8307 #define HAVE_ISNANF 1
8308 EOF
8309
8310
8311 cat >> confdefs.h <<\EOF
8312 #define HAVE_MMAP 1
8313 EOF
8314
8315 cat >> confdefs.h <<\EOF
8316 #define HAVE_ACOSF 1
8317 EOF
8318
8319 cat >> confdefs.h <<\EOF
8320 #define HAVE_ASINF 1
8321 EOF
8322
8323 cat >> confdefs.h <<\EOF
8324 #define HAVE_ATAN2F 1
8325 EOF
8326
8327 cat >> confdefs.h <<\EOF
8328 #define HAVE_ATANF 1
8329 EOF
8330
8331 cat >> confdefs.h <<\EOF
8332 #define HAVE_CEILF 1
8333 EOF
8334
8335 cat >> confdefs.h <<\EOF
8336 #define HAVE_COPYSIGN 1
8337 EOF
8338
8339 cat >> confdefs.h <<\EOF
8340 #define HAVE_COPYSIGNF 1
8341 EOF
8342
8343 cat >> confdefs.h <<\EOF
8344 #define HAVE_COSF 1
8345 EOF
8346
8347 cat >> confdefs.h <<\EOF
8348 #define HAVE_COSHF 1
8349 EOF
8350
8351 cat >> confdefs.h <<\EOF
8352 #define HAVE_EXPF 1
8353 EOF
8354
8355 cat >> confdefs.h <<\EOF
8356 #define HAVE_FABSF 1
8357 EOF
8358
8359 cat >> confdefs.h <<\EOF
8360 #define HAVE_FLOORF 1
8361 EOF
8362
8363 cat >> confdefs.h <<\EOF
8364 #define HAVE_FMODF 1
8365 EOF
8366
8367 cat >> confdefs.h <<\EOF
8368 #define HAVE_FREXPF 1
8369 EOF
8370
8371 cat >> confdefs.h <<\EOF
8372 #define HAVE_LDEXPF 1
8373 EOF
8374
8375 cat >> confdefs.h <<\EOF
8376 #define HAVE_LOG10F 1
8377 EOF
8378
8379 cat >> confdefs.h <<\EOF
8380 #define HAVE_LOGF 1
8381 EOF
8382
8383 cat >> confdefs.h <<\EOF
8384 #define HAVE_MODFF 1
8385 EOF
8386
8387 cat >> confdefs.h <<\EOF
8388 #define HAVE_POWF 1
8389 EOF
8390
8391 cat >> confdefs.h <<\EOF
8392 #define HAVE_SINF 1
8393 EOF
8394
8395 cat >> confdefs.h <<\EOF
8396 #define HAVE_SINHF 1
8397 EOF
8398
8399 cat >> confdefs.h <<\EOF
8400 #define HAVE_SQRTF 1
8401 EOF
8402
8403 cat >> confdefs.h <<\EOF
8404 #define HAVE_TANF 1
8405 EOF
8406
8407 cat >> confdefs.h <<\EOF
8408 #define HAVE_TANHF 1
8409 EOF
8410
8411 if test x"long_double_math_on_this_cpu" = x"yes"; then
8412 cat >> confdefs.h <<\EOF
8413 #define HAVE_FINITEL 1
8414 EOF
8415
8416 cat >> confdefs.h <<\EOF
8417 #define HAVE_ISINFL 1
8418 EOF
8419
8420 cat >> confdefs.h <<\EOF
8421 #define HAVE_ISNANL 1
8422 EOF
8423
8424 fi
8425 ;;
8426 *-mingw32*)
8427 os_include_dir="os/mingw32"
8428 for ac_hdr in sys/types.h locale.h float.h
8429 do
8430 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8431 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8432 echo "configure:8433: checking for $ac_hdr" >&5
8433 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8434 echo $ac_n "(cached) $ac_c" 1>&6
8435 else
8436 cat > conftest.$ac_ext <<EOF
8437 #line 8438 "configure"
8438 #include "confdefs.h"
8439 #include <$ac_hdr>
8440 EOF
8441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8442 { (eval echo configure:8443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8444 if test -z "$ac_err"; then
8445 rm -rf conftest*
8446 eval "ac_cv_header_$ac_safe=yes"
8447 else
8448 echo "$ac_err" >&5
8449 echo "configure: failed program was:" >&5
8450 cat conftest.$ac_ext >&5
8451 rm -rf conftest*
8452 eval "ac_cv_header_$ac_safe=no"
8453 fi
8454 rm -f conftest*
8455 fi
8456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8457 echo "$ac_t""yes" 1>&6
8458 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8459 cat >> confdefs.h <<EOF
8460 #define $ac_tr_hdr 1
8461 EOF
8462
8463 else
8464 echo "$ac_t""no" 1>&6
8465 fi
8466 done
8467
8468
8469 # If we're not using GNU ld, then there's no point in even trying these
8470 # tests. Check for that first. We should have already tested for gld
8471 # by now (in libtool), but require it now just to be safe...
8472 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8473 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8474
8475
8476 # The name set by libtool depends on the version of libtool. Shame on us
8477 # for depending on an impl detail, but c'est la vie. Older versions used
8478 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8479 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8480 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
8481 # set (hence we're using an older libtool), then set it.
8482 if test x${with_gnu_ld+set} != xset; then
8483 if test x${ac_cv_prog_gnu_ld+set} != xset; then
8484 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
8485 with_gnu_ld=no
8486 else
8487 with_gnu_ld=$ac_cv_prog_gnu_ld
8488 fi
8489 fi
8490
8491 # Start by getting the version number. I think the libtool test already
8492 # does some of this, but throws away the result.
8493
8494 ldver=`$LD --version 2>/dev/null | head -1 | \
8495 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8496
8497 glibcpp_gnu_ld_version=`echo $ldver | \
8498 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8499
8500 # Set --gc-sections.
8501 if test "$with_gnu_ld" = "notbroken"; then
8502 # GNU ld it is! Joy and bunny rabbits!
8503
8504 # All these tests are for C++; save the language and the compiler flags.
8505 # Need to do this so that g++ won't try to link in libstdc++
8506 ac_test_CFLAGS="${CFLAGS+set}"
8507 ac_save_CFLAGS="$CFLAGS"
8508 CFLAGS='-x c++ -Wl,--gc-sections'
8509
8510 # Check for -Wl,--gc-sections
8511 # XXX This test is broken at the moment, as symbols required for
8512 # linking are now in libsupc++ (not built yet.....). In addition,
8513 # this test has cored on solaris in the past. In addition,
8514 # --gc-sections doesn't really work at the moment (keeps on discarding
8515 # used sections, first .eh_frame and now some of the glibc sections for
8516 # iconv). Bzzzzt. Thanks for playing, maybe next time.
8517 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8518 echo "configure:8519: checking for ld that supports -Wl,--gc-sections" >&5
8519 if test "$cross_compiling" = yes; then
8520 ac_sectionLDflags=yes
8521 else
8522 cat > conftest.$ac_ext <<EOF
8523 #line 8524 "configure"
8524 #include "confdefs.h"
8525
8526 int main(void)
8527 {
8528 try { throw 1; }
8529 catch (...) { };
8530 return 0;
8531 }
8532
8533 EOF
8534 if { (eval echo configure:8535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8535 then
8536 ac_sectionLDflags=yes
8537 else
8538 echo "configure: failed program was:" >&5
8539 cat conftest.$ac_ext >&5
8540 rm -fr conftest*
8541 ac_sectionLDflags=no
8542 fi
8543 rm -fr conftest*
8544 fi
8545
8546 if test "$ac_test_CFLAGS" = set; then
8547 CFLAGS="$ac_save_CFLAGS"
8548 else
8549 # this is the suspicious part
8550 CFLAGS=''
8551 fi
8552 if test "$ac_sectionLDflags" = "yes"; then
8553 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8554 fi
8555 echo "$ac_t""$ac_sectionLDflags" 1>&6
8556 fi
8557
8558 # Set linker optimization flags.
8559 if test x"$with_gnu_ld" = x"yes"; then
8560 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8561 fi
8562
8563
8564
8565
8566
8567 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8568 echo "configure:8569: checking for main in -lm" >&5
8569 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8570 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8571 echo $ac_n "(cached) $ac_c" 1>&6
8572 else
8573 ac_save_LIBS="$LIBS"
8574 LIBS="-lm $LIBS"
8575 cat > conftest.$ac_ext <<EOF
8576 #line 8577 "configure"
8577 #include "confdefs.h"
8578
8579 int main() {
8580 main()
8581 ; return 0; }
8582 EOF
8583 if { (eval echo configure:8584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8584 rm -rf conftest*
8585 eval "ac_cv_lib_$ac_lib_var=yes"
8586 else
8587 echo "configure: failed program was:" >&5
8588 cat conftest.$ac_ext >&5
8589 rm -rf conftest*
8590 eval "ac_cv_lib_$ac_lib_var=no"
8591 fi
8592 rm -f conftest*
8593 LIBS="$ac_save_LIBS"
8594
8595 fi
8596 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8597 echo "$ac_t""yes" 1>&6
8598 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8599 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8600 cat >> confdefs.h <<EOF
8601 #define $ac_tr_lib 1
8602 EOF
8603
8604 LIBS="-lm $LIBS"
8605
8606 else
8607 echo "$ac_t""no" 1>&6
8608 fi
8609
8610 for ac_func in nan copysignf
8611 do
8612 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8613 echo "configure:8614: checking for $ac_func" >&5
8614 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8615 echo $ac_n "(cached) $ac_c" 1>&6
8616 else
8617 cat > conftest.$ac_ext <<EOF
8618 #line 8619 "configure"
8619 #include "confdefs.h"
8620 /* System header to define __stub macros and hopefully few prototypes,
8621 which can conflict with char $ac_func(); below. */
8622 #include <assert.h>
8623 /* Override any gcc2 internal prototype to avoid an error. */
8624 /* We use char because int might match the return type of a gcc2
8625 builtin and then its argument prototype would still apply. */
8626 char $ac_func();
8627
8628 int main() {
8629
8630 /* The GNU C library defines this for functions which it implements
8631 to always fail with ENOSYS. Some functions are actually named
8632 something starting with __ and the normal name is an alias. */
8633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8634 choke me
8635 #else
8636 $ac_func();
8637 #endif
8638
8639 ; return 0; }
8640 EOF
8641 if { (eval echo configure:8642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8642 rm -rf conftest*
8643 eval "ac_cv_func_$ac_func=yes"
8644 else
8645 echo "configure: failed program was:" >&5
8646 cat conftest.$ac_ext >&5
8647 rm -rf conftest*
8648 eval "ac_cv_func_$ac_func=no"
8649 fi
8650 rm -f conftest*
8651 fi
8652
8653 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8654 echo "$ac_t""yes" 1>&6
8655 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8656 cat >> confdefs.h <<EOF
8657 #define $ac_tr_func 1
8658 EOF
8659
8660 else
8661 echo "$ac_t""no" 1>&6
8662 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8663 fi
8664 done
8665
8666
8667 for ac_func in __signbit
8668 do
8669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8670 echo "configure:8671: checking for $ac_func" >&5
8671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8672 echo $ac_n "(cached) $ac_c" 1>&6
8673 else
8674 cat > conftest.$ac_ext <<EOF
8675 #line 8676 "configure"
8676 #include "confdefs.h"
8677 /* System header to define __stub macros and hopefully few prototypes,
8678 which can conflict with char $ac_func(); below. */
8679 #include <assert.h>
8680 /* Override any gcc2 internal prototype to avoid an error. */
8681 /* We use char because int might match the return type of a gcc2
8682 builtin and then its argument prototype would still apply. */
8683 char $ac_func();
8684
8685 int main() {
8686
8687 /* The GNU C library defines this for functions which it implements
8688 to always fail with ENOSYS. Some functions are actually named
8689 something starting with __ and the normal name is an alias. */
8690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8691 choke me
8692 #else
8693 $ac_func();
8694 #endif
8695
8696 ; return 0; }
8697 EOF
8698 if { (eval echo configure:8699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8699 rm -rf conftest*
8700 eval "ac_cv_func_$ac_func=yes"
8701 else
8702 echo "configure: failed program was:" >&5
8703 cat conftest.$ac_ext >&5
8704 rm -rf conftest*
8705 eval "ac_cv_func_$ac_func=no"
8706 fi
8707 rm -f conftest*
8708 fi
8709
8710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8711 echo "$ac_t""yes" 1>&6
8712 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8713 cat >> confdefs.h <<EOF
8714 #define $ac_tr_func 1
8715 EOF
8716
8717 else
8718 echo "$ac_t""no" 1>&6
8719 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8720 fi
8721 done
8722
8723 for ac_func in __signbitf
8724 do
8725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8726 echo "configure:8727: checking for $ac_func" >&5
8727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8728 echo $ac_n "(cached) $ac_c" 1>&6
8729 else
8730 cat > conftest.$ac_ext <<EOF
8731 #line 8732 "configure"
8732 #include "confdefs.h"
8733 /* System header to define __stub macros and hopefully few prototypes,
8734 which can conflict with char $ac_func(); below. */
8735 #include <assert.h>
8736 /* Override any gcc2 internal prototype to avoid an error. */
8737 /* We use char because int might match the return type of a gcc2
8738 builtin and then its argument prototype would still apply. */
8739 char $ac_func();
8740
8741 int main() {
8742
8743 /* The GNU C library defines this for functions which it implements
8744 to always fail with ENOSYS. Some functions are actually named
8745 something starting with __ and the normal name is an alias. */
8746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8747 choke me
8748 #else
8749 $ac_func();
8750 #endif
8751
8752 ; return 0; }
8753 EOF
8754 if { (eval echo configure:8755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8755 rm -rf conftest*
8756 eval "ac_cv_func_$ac_func=yes"
8757 else
8758 echo "configure: failed program was:" >&5
8759 cat conftest.$ac_ext >&5
8760 rm -rf conftest*
8761 eval "ac_cv_func_$ac_func=no"
8762 fi
8763 rm -f conftest*
8764 fi
8765
8766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8767 echo "$ac_t""yes" 1>&6
8768 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8769 cat >> confdefs.h <<EOF
8770 #define $ac_tr_func 1
8771 EOF
8772
8773 else
8774 echo "$ac_t""no" 1>&6
8775 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8776 fi
8777 done
8778
8779
8780 if test x$ac_cv_func_copysignl = x"yes"; then
8781 for ac_func in __signbitl
8782 do
8783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8784 echo "configure:8785: checking for $ac_func" >&5
8785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8786 echo $ac_n "(cached) $ac_c" 1>&6
8787 else
8788 cat > conftest.$ac_ext <<EOF
8789 #line 8790 "configure"
8790 #include "confdefs.h"
8791 /* System header to define __stub macros and hopefully few prototypes,
8792 which can conflict with char $ac_func(); below. */
8793 #include <assert.h>
8794 /* Override any gcc2 internal prototype to avoid an error. */
8795 /* We use char because int might match the return type of a gcc2
8796 builtin and then its argument prototype would still apply. */
8797 char $ac_func();
8798
8799 int main() {
8800
8801 /* The GNU C library defines this for functions which it implements
8802 to always fail with ENOSYS. Some functions are actually named
8803 something starting with __ and the normal name is an alias. */
8804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8805 choke me
8806 #else
8807 $ac_func();
8808 #endif
8809
8810 ; return 0; }
8811 EOF
8812 if { (eval echo configure:8813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8813 rm -rf conftest*
8814 eval "ac_cv_func_$ac_func=yes"
8815 else
8816 echo "configure: failed program was:" >&5
8817 cat conftest.$ac_ext >&5
8818 rm -rf conftest*
8819 eval "ac_cv_func_$ac_func=no"
8820 fi
8821 rm -f conftest*
8822 fi
8823
8824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8825 echo "$ac_t""yes" 1>&6
8826 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8827 cat >> confdefs.h <<EOF
8828 #define $ac_tr_func 1
8829 EOF
8830
8831 else
8832 echo "$ac_t""no" 1>&6
8833 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8834 fi
8835 done
8836
8837 fi
8838
8839 if test -n "$LIBMATHOBJS"; then
8840 need_libmath=yes
8841 fi
8842
8843
8844
8845 if test "$need_libmath" = yes; then
8846 GLIBCPP_BUILD_LIBMATH_TRUE=
8847 GLIBCPP_BUILD_LIBMATH_FALSE='#'
8848 else
8849 GLIBCPP_BUILD_LIBMATH_TRUE='#'
8850 GLIBCPP_BUILD_LIBMATH_FALSE=
8851 fi
8852
8853
8854 enable_wchar_t=no
8855
8856 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8857 echo "configure:8858: checking for mbstate_t" >&5
8858 cat > conftest.$ac_ext <<EOF
8859 #line 8860 "configure"
8860 #include "confdefs.h"
8861 #include <wchar.h>
8862 int main() {
8863 mbstate_t teststate;
8864 ; return 0; }
8865 EOF
8866 if { (eval echo configure:8867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8867 rm -rf conftest*
8868 have_mbstate_t=yes
8869 else
8870 echo "configure: failed program was:" >&5
8871 cat conftest.$ac_ext >&5
8872 rm -rf conftest*
8873 have_mbstate_t=no
8874 fi
8875 rm -f conftest*
8876 echo "$ac_t""$have_mbstate_t" 1>&6
8877 if test x"$have_mbstate_t" = xyes; then
8878 cat >> confdefs.h <<\EOF
8879 #define HAVE_MBSTATE_T 1
8880 EOF
8881
8882 fi
8883
8884 for ac_hdr in wchar.h
8885 do
8886 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8887 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8888 echo "configure:8889: checking for $ac_hdr" >&5
8889 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8890 echo $ac_n "(cached) $ac_c" 1>&6
8891 else
8892 cat > conftest.$ac_ext <<EOF
8893 #line 8894 "configure"
8894 #include "confdefs.h"
8895 #include <$ac_hdr>
8896 EOF
8897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8898 { (eval echo configure:8899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8899 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8900 if test -z "$ac_err"; then
8901 rm -rf conftest*
8902 eval "ac_cv_header_$ac_safe=yes"
8903 else
8904 echo "$ac_err" >&5
8905 echo "configure: failed program was:" >&5
8906 cat conftest.$ac_ext >&5
8907 rm -rf conftest*
8908 eval "ac_cv_header_$ac_safe=no"
8909 fi
8910 rm -f conftest*
8911 fi
8912 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8913 echo "$ac_t""yes" 1>&6
8914 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8915 cat >> confdefs.h <<EOF
8916 #define $ac_tr_hdr 1
8917 EOF
8918 ac_has_wchar_h=yes
8919 else
8920 echo "$ac_t""no" 1>&6
8921 ac_has_wchar_h=no
8922 fi
8923 done
8924
8925 for ac_hdr in wctype.h
8926 do
8927 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8928 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8929 echo "configure:8930: checking for $ac_hdr" >&5
8930 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8931 echo $ac_n "(cached) $ac_c" 1>&6
8932 else
8933 cat > conftest.$ac_ext <<EOF
8934 #line 8935 "configure"
8935 #include "confdefs.h"
8936 #include <$ac_hdr>
8937 EOF
8938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8939 { (eval echo configure:8940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8941 if test -z "$ac_err"; then
8942 rm -rf conftest*
8943 eval "ac_cv_header_$ac_safe=yes"
8944 else
8945 echo "$ac_err" >&5
8946 echo "configure: failed program was:" >&5
8947 cat conftest.$ac_ext >&5
8948 rm -rf conftest*
8949 eval "ac_cv_header_$ac_safe=no"
8950 fi
8951 rm -f conftest*
8952 fi
8953 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8954 echo "$ac_t""yes" 1>&6
8955 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8956 cat >> confdefs.h <<EOF
8957 #define $ac_tr_hdr 1
8958 EOF
8959 ac_has_wctype_h=yes
8960 else
8961 echo "$ac_t""no" 1>&6
8962 ac_has_wctype_h=no
8963 fi
8964 done
8965
8966
8967 if test x"$ac_has_wchar_h" = xyes &&
8968 test x"$ac_has_wctype_h" = xyes &&
8969 test x"$enable_c_mbchar" != xno; then
8970
8971 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8972 echo "configure:8973: checking for WCHAR_MIN and WCHAR_MAX" >&5
8973 cat > conftest.$ac_ext <<EOF
8974 #line 8975 "configure"
8975 #include "confdefs.h"
8976 #include <wchar.h>
8977 int main() {
8978 int i = WCHAR_MIN; int j = WCHAR_MAX;
8979 ; return 0; }
8980 EOF
8981 if { (eval echo configure:8982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8982 rm -rf conftest*
8983 has_wchar_minmax=yes
8984 else
8985 echo "configure: failed program was:" >&5
8986 cat conftest.$ac_ext >&5
8987 rm -rf conftest*
8988 has_wchar_minmax=no
8989 fi
8990 rm -f conftest*
8991 echo "$ac_t""$has_wchar_minmax" 1>&6
8992
8993 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8994 echo "configure:8995: checking for WEOF" >&5
8995 cat > conftest.$ac_ext <<EOF
8996 #line 8997 "configure"
8997 #include "confdefs.h"
8998
8999 #include <wchar.h>
9000 #include <stddef.h>
9001 int main() {
9002 wint_t i = WEOF;
9003 ; return 0; }
9004 EOF
9005 if { (eval echo configure:9006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9006 rm -rf conftest*
9007 has_weof=yes
9008 else
9009 echo "configure: failed program was:" >&5
9010 cat conftest.$ac_ext >&5
9011 rm -rf conftest*
9012 has_weof=no
9013 fi
9014 rm -f conftest*
9015 echo "$ac_t""$has_weof" 1>&6
9016
9017 ac_wfuncs=yes
9018 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9019 do
9020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9021 echo "configure:9022: checking for $ac_func" >&5
9022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9023 echo $ac_n "(cached) $ac_c" 1>&6
9024 else
9025 cat > conftest.$ac_ext <<EOF
9026 #line 9027 "configure"
9027 #include "confdefs.h"
9028 /* System header to define __stub macros and hopefully few prototypes,
9029 which can conflict with char $ac_func(); below. */
9030 #include <assert.h>
9031 /* Override any gcc2 internal prototype to avoid an error. */
9032 /* We use char because int might match the return type of a gcc2
9033 builtin and then its argument prototype would still apply. */
9034 char $ac_func();
9035
9036 int main() {
9037
9038 /* The GNU C library defines this for functions which it implements
9039 to always fail with ENOSYS. Some functions are actually named
9040 something starting with __ and the normal name is an alias. */
9041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9042 choke me
9043 #else
9044 $ac_func();
9045 #endif
9046
9047 ; return 0; }
9048 EOF
9049 if { (eval echo configure:9050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9050 rm -rf conftest*
9051 eval "ac_cv_func_$ac_func=yes"
9052 else
9053 echo "configure: failed program was:" >&5
9054 cat conftest.$ac_ext >&5
9055 rm -rf conftest*
9056 eval "ac_cv_func_$ac_func=no"
9057 fi
9058 rm -f conftest*
9059 fi
9060
9061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9062 echo "$ac_t""yes" 1>&6
9063 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9064 cat >> confdefs.h <<EOF
9065 #define $ac_tr_func 1
9066 EOF
9067
9068 else
9069 echo "$ac_t""no" 1>&6
9070 \
9071 ac_wfuncs=no
9072 fi
9073 done
9074
9075
9076 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
9077 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9078 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9079 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9080 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9081 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9082 do
9083 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9084 echo "configure:9085: checking for $ac_func" >&5
9085 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9086 echo $ac_n "(cached) $ac_c" 1>&6
9087 else
9088 cat > conftest.$ac_ext <<EOF
9089 #line 9090 "configure"
9090 #include "confdefs.h"
9091 /* System header to define __stub macros and hopefully few prototypes,
9092 which can conflict with char $ac_func(); below. */
9093 #include <assert.h>
9094 /* Override any gcc2 internal prototype to avoid an error. */
9095 /* We use char because int might match the return type of a gcc2
9096 builtin and then its argument prototype would still apply. */
9097 char $ac_func();
9098
9099 int main() {
9100
9101 /* The GNU C library defines this for functions which it implements
9102 to always fail with ENOSYS. Some functions are actually named
9103 something starting with __ and the normal name is an alias. */
9104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9105 choke me
9106 #else
9107 $ac_func();
9108 #endif
9109
9110 ; return 0; }
9111 EOF
9112 if { (eval echo configure:9113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9113 rm -rf conftest*
9114 eval "ac_cv_func_$ac_func=yes"
9115 else
9116 echo "configure: failed program was:" >&5
9117 cat conftest.$ac_ext >&5
9118 rm -rf conftest*
9119 eval "ac_cv_func_$ac_func=no"
9120 fi
9121 rm -f conftest*
9122 fi
9123
9124 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9125 echo "$ac_t""yes" 1>&6
9126 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9127 cat >> confdefs.h <<EOF
9128 #define $ac_tr_func 1
9129 EOF
9130
9131 else
9132 echo "$ac_t""no" 1>&6
9133 \
9134 ac_wfuncs=no
9135 fi
9136 done
9137
9138
9139 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9140 echo "configure:9141: checking for ISO C99 wchar_t support" >&5
9141 if test x"$has_weof" = xyes &&
9142 test x"$has_wchar_minmax" = xyes &&
9143 test x"$ac_wfuncs" = xyes; then
9144 ac_isoC99_wchar_t=yes
9145 else
9146 ac_isoC99_wchar_t=no
9147 fi
9148 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9149
9150 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9151 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9152 echo "configure:9153: checking for iconv.h" >&5
9153 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9154 echo $ac_n "(cached) $ac_c" 1>&6
9155 else
9156 cat > conftest.$ac_ext <<EOF
9157 #line 9158 "configure"
9158 #include "confdefs.h"
9159 #include <iconv.h>
9160 EOF
9161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9162 { (eval echo configure:9163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9163 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9164 if test -z "$ac_err"; then
9165 rm -rf conftest*
9166 eval "ac_cv_header_$ac_safe=yes"
9167 else
9168 echo "$ac_err" >&5
9169 echo "configure: failed program was:" >&5
9170 cat conftest.$ac_ext >&5
9171 rm -rf conftest*
9172 eval "ac_cv_header_$ac_safe=no"
9173 fi
9174 rm -f conftest*
9175 fi
9176 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9177 echo "$ac_t""yes" 1>&6
9178 ac_has_iconv_h=yes
9179 else
9180 echo "$ac_t""no" 1>&6
9181 ac_has_iconv_h=no
9182 fi
9183
9184 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9185 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9186 echo "configure:9187: checking for langinfo.h" >&5
9187 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9188 echo $ac_n "(cached) $ac_c" 1>&6
9189 else
9190 cat > conftest.$ac_ext <<EOF
9191 #line 9192 "configure"
9192 #include "confdefs.h"
9193 #include <langinfo.h>
9194 EOF
9195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9196 { (eval echo configure:9197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9198 if test -z "$ac_err"; then
9199 rm -rf conftest*
9200 eval "ac_cv_header_$ac_safe=yes"
9201 else
9202 echo "$ac_err" >&5
9203 echo "configure: failed program was:" >&5
9204 cat conftest.$ac_ext >&5
9205 rm -rf conftest*
9206 eval "ac_cv_header_$ac_safe=no"
9207 fi
9208 rm -f conftest*
9209 fi
9210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9211 echo "$ac_t""yes" 1>&6
9212 ac_has_langinfo_h=yes
9213 else
9214 echo "$ac_t""no" 1>&6
9215 ac_has_langinfo_h=no
9216 fi
9217
9218
9219 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9220 echo "configure:9221: checking for iconv in -liconv" >&5
9221 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9222 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9223 echo $ac_n "(cached) $ac_c" 1>&6
9224 else
9225 ac_save_LIBS="$LIBS"
9226 LIBS="-liconv $LIBS"
9227 cat > conftest.$ac_ext <<EOF
9228 #line 9229 "configure"
9229 #include "confdefs.h"
9230 /* Override any gcc2 internal prototype to avoid an error. */
9231 /* We use char because int might match the return type of a gcc2
9232 builtin and then its argument prototype would still apply. */
9233 char iconv();
9234
9235 int main() {
9236 iconv()
9237 ; return 0; }
9238 EOF
9239 if { (eval echo configure:9240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9240 rm -rf conftest*
9241 eval "ac_cv_lib_$ac_lib_var=yes"
9242 else
9243 echo "configure: failed program was:" >&5
9244 cat conftest.$ac_ext >&5
9245 rm -rf conftest*
9246 eval "ac_cv_lib_$ac_lib_var=no"
9247 fi
9248 rm -f conftest*
9249 LIBS="$ac_save_LIBS"
9250
9251 fi
9252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9253 echo "$ac_t""yes" 1>&6
9254 libiconv="-liconv"
9255 else
9256 echo "$ac_t""no" 1>&6
9257 fi
9258
9259 ac_save_LIBS="$LIBS"
9260 LIBS="$LIBS $libiconv"
9261
9262 for ac_func in iconv_open iconv_close iconv nl_langinfo
9263 do
9264 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9265 echo "configure:9266: checking for $ac_func" >&5
9266 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9267 echo $ac_n "(cached) $ac_c" 1>&6
9268 else
9269 cat > conftest.$ac_ext <<EOF
9270 #line 9271 "configure"
9271 #include "confdefs.h"
9272 /* System header to define __stub macros and hopefully few prototypes,
9273 which can conflict with char $ac_func(); below. */
9274 #include <assert.h>
9275 /* Override any gcc2 internal prototype to avoid an error. */
9276 /* We use char because int might match the return type of a gcc2
9277 builtin and then its argument prototype would still apply. */
9278 char $ac_func();
9279
9280 int main() {
9281
9282 /* The GNU C library defines this for functions which it implements
9283 to always fail with ENOSYS. Some functions are actually named
9284 something starting with __ and the normal name is an alias. */
9285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9286 choke me
9287 #else
9288 $ac_func();
9289 #endif
9290
9291 ; return 0; }
9292 EOF
9293 if { (eval echo configure:9294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9294 rm -rf conftest*
9295 eval "ac_cv_func_$ac_func=yes"
9296 else
9297 echo "configure: failed program was:" >&5
9298 cat conftest.$ac_ext >&5
9299 rm -rf conftest*
9300 eval "ac_cv_func_$ac_func=no"
9301 fi
9302 rm -f conftest*
9303 fi
9304
9305 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9306 echo "$ac_t""yes" 1>&6
9307 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9308 cat >> confdefs.h <<EOF
9309 #define $ac_tr_func 1
9310 EOF
9311 \
9312 ac_XPG2funcs=yes
9313 else
9314 echo "$ac_t""no" 1>&6
9315 ac_XPG2funcs=no
9316 fi
9317 done
9318
9319
9320 LIBS="$ac_save_LIBS"
9321
9322 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9323 echo "configure:9324: checking for XPG2 wchar_t support" >&5
9324 if test x"$ac_has_iconv_h" = xyes &&
9325 test x"$ac_has_langinfo_h" = xyes &&
9326 test x"$ac_XPG2funcs" = xyes; then
9327 ac_XPG2_wchar_t=yes
9328 else
9329 ac_XPG2_wchar_t=no
9330 fi
9331 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9332
9333 if test x"$ac_isoC99_wchar_t" = xyes &&
9334 test x"$ac_XPG2_wchar_t" = xyes; then
9335 cat >> confdefs.h <<\EOF
9336 #define _GLIBCPP_USE_WCHAR_T 1
9337 EOF
9338
9339 enable_wchar_t=yes
9340 fi
9341 fi
9342 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9343 echo "configure:9344: checking for enabled wchar_t specializations" >&5
9344 echo "$ac_t""$enable_wchar_t" 1>&6
9345
9346
9347 if test "$enable_wchar_t" = yes; then
9348 GLIBCPP_TEST_WCHAR_T_TRUE=
9349 GLIBCPP_TEST_WCHAR_T_FALSE='#'
9350 else
9351 GLIBCPP_TEST_WCHAR_T_TRUE='#'
9352 GLIBCPP_TEST_WCHAR_T_FALSE=
9353 fi
9354
9355 ;;
9356 *-windiss*)
9357 os_include_dir="os/windiss"
9358 cat >> confdefs.h <<\EOF
9359 #define HAVE_ACOSF 1
9360 EOF
9361
9362 cat >> confdefs.h <<\EOF
9363 #define HAVE_ASINF 1
9364 EOF
9365
9366 cat >> confdefs.h <<\EOF
9367 #define HAVE_ATAN2F 1
9368 EOF
9369
9370 cat >> confdefs.h <<\EOF
9371 #define HAVE_ATANF 1
9372 EOF
9373
9374 cat >> confdefs.h <<\EOF
9375 #define HAVE_CEILF 1
9376 EOF
9377
9378 cat >> confdefs.h <<\EOF
9379 #define HAVE_COPYSIGN 1
9380 EOF
9381
9382 cat >> confdefs.h <<\EOF
9383 #define HAVE_COPYSIGNF 1
9384 EOF
9385
9386 cat >> confdefs.h <<\EOF
9387 #define HAVE_COSF 1
9388 EOF
9389
9390 cat >> confdefs.h <<\EOF
9391 #define HAVE_COSHF 1
9392 EOF
9393
9394 cat >> confdefs.h <<\EOF
9395 #define HAVE_EXPF 1
9396 EOF
9397
9398 cat >> confdefs.h <<\EOF
9399 #define HAVE_FABSF 1
9400 EOF
9401
9402 cat >> confdefs.h <<\EOF
9403 #define HAVE_FLOORF 1
9404 EOF
9405
9406 cat >> confdefs.h <<\EOF
9407 #define HAVE_FMODF 1
9408 EOF
9409
9410 cat >> confdefs.h <<\EOF
9411 #define HAVE_FREXPF 1
9412 EOF
9413
9414 cat >> confdefs.h <<\EOF
9415 #define HAVE_LDEXPF 1
9416 EOF
9417
9418 cat >> confdefs.h <<\EOF
9419 #define HAVE_LOG10F 1
9420 EOF
9421
9422 cat >> confdefs.h <<\EOF
9423 #define HAVE_LOGF 1
9424 EOF
9425
9426 cat >> confdefs.h <<\EOF
9427 #define HAVE_MODFF 1
9428 EOF
9429
9430 cat >> confdefs.h <<\EOF
9431 #define HAVE_POWF 1
9432 EOF
9433
9434 cat >> confdefs.h <<\EOF
9435 #define HAVE_SINF 1
9436 EOF
9437
9438 cat >> confdefs.h <<\EOF
9439 #define HAVE_SINHF 1
9440 EOF
9441
9442 cat >> confdefs.h <<\EOF
9443 #define HAVE_SQRTF 1
9444 EOF
9445
9446 cat >> confdefs.h <<\EOF
9447 #define HAVE_TANF 1
9448 EOF
9449
9450 cat >> confdefs.h <<\EOF
9451 #define HAVE_TANHF 1
9452 EOF
9453
9454 ;;
9455 *-qnx6.[12]*)
9456 os_include_dir="os/qnx/qnx6.1"
9457 SECTION_FLAGS='-ffunction-sections -fdata-sections'
9458
9459
9460 # If we're not using GNU ld, then there's no point in even trying these
9461 # tests. Check for that first. We should have already tested for gld
9462 # by now (in libtool), but require it now just to be safe...
9463 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9464 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9465
9466
9467 # The name set by libtool depends on the version of libtool. Shame on us
9468 # for depending on an impl detail, but c'est la vie. Older versions used
9469 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9470 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9471 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9472 # set (hence we're using an older libtool), then set it.
9473 if test x${with_gnu_ld+set} != xset; then
9474 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9475 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9476 with_gnu_ld=no
9477 else
9478 with_gnu_ld=$ac_cv_prog_gnu_ld
9479 fi
9480 fi
9481
9482 # Start by getting the version number. I think the libtool test already
9483 # does some of this, but throws away the result.
9484
9485 ldver=`$LD --version 2>/dev/null | head -1 | \
9486 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9487
9488 glibcpp_gnu_ld_version=`echo $ldver | \
9489 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9490
9491 # Set --gc-sections.
9492 if test "$with_gnu_ld" = "notbroken"; then
9493 # GNU ld it is! Joy and bunny rabbits!
9494
9495 # All these tests are for C++; save the language and the compiler flags.
9496 # Need to do this so that g++ won't try to link in libstdc++
9497 ac_test_CFLAGS="${CFLAGS+set}"
9498 ac_save_CFLAGS="$CFLAGS"
9499 CFLAGS='-x c++ -Wl,--gc-sections'
9500
9501 # Check for -Wl,--gc-sections
9502 # XXX This test is broken at the moment, as symbols required for
9503 # linking are now in libsupc++ (not built yet.....). In addition,
9504 # this test has cored on solaris in the past. In addition,
9505 # --gc-sections doesn't really work at the moment (keeps on discarding
9506 # used sections, first .eh_frame and now some of the glibc sections for
9507 # iconv). Bzzzzt. Thanks for playing, maybe next time.
9508 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9509 echo "configure:9510: checking for ld that supports -Wl,--gc-sections" >&5
9510 if test "$cross_compiling" = yes; then
9511 ac_sectionLDflags=yes
9512 else
9513 cat > conftest.$ac_ext <<EOF
9514 #line 9515 "configure"
9515 #include "confdefs.h"
9516
9517 int main(void)
9518 {
9519 try { throw 1; }
9520 catch (...) { };
9521 return 0;
9522 }
9523
9524 EOF
9525 if { (eval echo configure:9526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9526 then
9527 ac_sectionLDflags=yes
9528 else
9529 echo "configure: failed program was:" >&5
9530 cat conftest.$ac_ext >&5
9531 rm -fr conftest*
9532 ac_sectionLDflags=no
9533 fi
9534 rm -fr conftest*
9535 fi
9536
9537 if test "$ac_test_CFLAGS" = set; then
9538 CFLAGS="$ac_save_CFLAGS"
9539 else
9540 # this is the suspicious part
9541 CFLAGS=''
9542 fi
9543 if test "$ac_sectionLDflags" = "yes"; then
9544 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9545 fi
9546 echo "$ac_t""$ac_sectionLDflags" 1>&6
9547 fi
9548
9549 # Set linker optimization flags.
9550 if test x"$with_gnu_ld" = x"yes"; then
9551 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9552 fi
9553
9554
9555
9556
9557
9558 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9559 echo "configure:9560: checking for main in -lm" >&5
9560 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9561 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9562 echo $ac_n "(cached) $ac_c" 1>&6
9563 else
9564 ac_save_LIBS="$LIBS"
9565 LIBS="-lm $LIBS"
9566 cat > conftest.$ac_ext <<EOF
9567 #line 9568 "configure"
9568 #include "confdefs.h"
9569
9570 int main() {
9571 main()
9572 ; return 0; }
9573 EOF
9574 if { (eval echo configure:9575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9575 rm -rf conftest*
9576 eval "ac_cv_lib_$ac_lib_var=yes"
9577 else
9578 echo "configure: failed program was:" >&5
9579 cat conftest.$ac_ext >&5
9580 rm -rf conftest*
9581 eval "ac_cv_lib_$ac_lib_var=no"
9582 fi
9583 rm -f conftest*
9584 LIBS="$ac_save_LIBS"
9585
9586 fi
9587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9588 echo "$ac_t""yes" 1>&6
9589 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9590 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9591 cat >> confdefs.h <<EOF
9592 #define $ac_tr_lib 1
9593 EOF
9594
9595 LIBS="-lm $LIBS"
9596
9597 else
9598 echo "$ac_t""no" 1>&6
9599 fi
9600
9601 for ac_func in nan copysignf
9602 do
9603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9604 echo "configure:9605: checking for $ac_func" >&5
9605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9606 echo $ac_n "(cached) $ac_c" 1>&6
9607 else
9608 cat > conftest.$ac_ext <<EOF
9609 #line 9610 "configure"
9610 #include "confdefs.h"
9611 /* System header to define __stub macros and hopefully few prototypes,
9612 which can conflict with char $ac_func(); below. */
9613 #include <assert.h>
9614 /* Override any gcc2 internal prototype to avoid an error. */
9615 /* We use char because int might match the return type of a gcc2
9616 builtin and then its argument prototype would still apply. */
9617 char $ac_func();
9618
9619 int main() {
9620
9621 /* The GNU C library defines this for functions which it implements
9622 to always fail with ENOSYS. Some functions are actually named
9623 something starting with __ and the normal name is an alias. */
9624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9625 choke me
9626 #else
9627 $ac_func();
9628 #endif
9629
9630 ; return 0; }
9631 EOF
9632 if { (eval echo configure:9633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9633 rm -rf conftest*
9634 eval "ac_cv_func_$ac_func=yes"
9635 else
9636 echo "configure: failed program was:" >&5
9637 cat conftest.$ac_ext >&5
9638 rm -rf conftest*
9639 eval "ac_cv_func_$ac_func=no"
9640 fi
9641 rm -f conftest*
9642 fi
9643
9644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9645 echo "$ac_t""yes" 1>&6
9646 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9647 cat >> confdefs.h <<EOF
9648 #define $ac_tr_func 1
9649 EOF
9650
9651 else
9652 echo "$ac_t""no" 1>&6
9653 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9654 fi
9655 done
9656
9657
9658 for ac_func in __signbit
9659 do
9660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9661 echo "configure:9662: checking for $ac_func" >&5
9662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9663 echo $ac_n "(cached) $ac_c" 1>&6
9664 else
9665 cat > conftest.$ac_ext <<EOF
9666 #line 9667 "configure"
9667 #include "confdefs.h"
9668 /* System header to define __stub macros and hopefully few prototypes,
9669 which can conflict with char $ac_func(); below. */
9670 #include <assert.h>
9671 /* Override any gcc2 internal prototype to avoid an error. */
9672 /* We use char because int might match the return type of a gcc2
9673 builtin and then its argument prototype would still apply. */
9674 char $ac_func();
9675
9676 int main() {
9677
9678 /* The GNU C library defines this for functions which it implements
9679 to always fail with ENOSYS. Some functions are actually named
9680 something starting with __ and the normal name is an alias. */
9681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9682 choke me
9683 #else
9684 $ac_func();
9685 #endif
9686
9687 ; return 0; }
9688 EOF
9689 if { (eval echo configure:9690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9690 rm -rf conftest*
9691 eval "ac_cv_func_$ac_func=yes"
9692 else
9693 echo "configure: failed program was:" >&5
9694 cat conftest.$ac_ext >&5
9695 rm -rf conftest*
9696 eval "ac_cv_func_$ac_func=no"
9697 fi
9698 rm -f conftest*
9699 fi
9700
9701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9702 echo "$ac_t""yes" 1>&6
9703 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9704 cat >> confdefs.h <<EOF
9705 #define $ac_tr_func 1
9706 EOF
9707
9708 else
9709 echo "$ac_t""no" 1>&6
9710 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9711 fi
9712 done
9713
9714 for ac_func in __signbitf
9715 do
9716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9717 echo "configure:9718: checking for $ac_func" >&5
9718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9719 echo $ac_n "(cached) $ac_c" 1>&6
9720 else
9721 cat > conftest.$ac_ext <<EOF
9722 #line 9723 "configure"
9723 #include "confdefs.h"
9724 /* System header to define __stub macros and hopefully few prototypes,
9725 which can conflict with char $ac_func(); below. */
9726 #include <assert.h>
9727 /* Override any gcc2 internal prototype to avoid an error. */
9728 /* We use char because int might match the return type of a gcc2
9729 builtin and then its argument prototype would still apply. */
9730 char $ac_func();
9731
9732 int main() {
9733
9734 /* The GNU C library defines this for functions which it implements
9735 to always fail with ENOSYS. Some functions are actually named
9736 something starting with __ and the normal name is an alias. */
9737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9738 choke me
9739 #else
9740 $ac_func();
9741 #endif
9742
9743 ; return 0; }
9744 EOF
9745 if { (eval echo configure:9746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9746 rm -rf conftest*
9747 eval "ac_cv_func_$ac_func=yes"
9748 else
9749 echo "configure: failed program was:" >&5
9750 cat conftest.$ac_ext >&5
9751 rm -rf conftest*
9752 eval "ac_cv_func_$ac_func=no"
9753 fi
9754 rm -f conftest*
9755 fi
9756
9757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9758 echo "$ac_t""yes" 1>&6
9759 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9760 cat >> confdefs.h <<EOF
9761 #define $ac_tr_func 1
9762 EOF
9763
9764 else
9765 echo "$ac_t""no" 1>&6
9766 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9767 fi
9768 done
9769
9770
9771 if test x$ac_cv_func_copysignl = x"yes"; then
9772 for ac_func in __signbitl
9773 do
9774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9775 echo "configure:9776: checking for $ac_func" >&5
9776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9777 echo $ac_n "(cached) $ac_c" 1>&6
9778 else
9779 cat > conftest.$ac_ext <<EOF
9780 #line 9781 "configure"
9781 #include "confdefs.h"
9782 /* System header to define __stub macros and hopefully few prototypes,
9783 which can conflict with char $ac_func(); below. */
9784 #include <assert.h>
9785 /* Override any gcc2 internal prototype to avoid an error. */
9786 /* We use char because int might match the return type of a gcc2
9787 builtin and then its argument prototype would still apply. */
9788 char $ac_func();
9789
9790 int main() {
9791
9792 /* The GNU C library defines this for functions which it implements
9793 to always fail with ENOSYS. Some functions are actually named
9794 something starting with __ and the normal name is an alias. */
9795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9796 choke me
9797 #else
9798 $ac_func();
9799 #endif
9800
9801 ; return 0; }
9802 EOF
9803 if { (eval echo configure:9804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9804 rm -rf conftest*
9805 eval "ac_cv_func_$ac_func=yes"
9806 else
9807 echo "configure: failed program was:" >&5
9808 cat conftest.$ac_ext >&5
9809 rm -rf conftest*
9810 eval "ac_cv_func_$ac_func=no"
9811 fi
9812 rm -f conftest*
9813 fi
9814
9815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9816 echo "$ac_t""yes" 1>&6
9817 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9818 cat >> confdefs.h <<EOF
9819 #define $ac_tr_func 1
9820 EOF
9821
9822 else
9823 echo "$ac_t""no" 1>&6
9824 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9825 fi
9826 done
9827
9828 fi
9829
9830 if test -n "$LIBMATHOBJS"; then
9831 need_libmath=yes
9832 fi
9833
9834
9835
9836 if test "$need_libmath" = yes; then
9837 GLIBCPP_BUILD_LIBMATH_TRUE=
9838 GLIBCPP_BUILD_LIBMATH_FALSE='#'
9839 else
9840 GLIBCPP_BUILD_LIBMATH_TRUE='#'
9841 GLIBCPP_BUILD_LIBMATH_FALSE=
9842 fi
9843
9844
9845 enable_wchar_t=no
9846
9847 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9848 echo "configure:9849: checking for mbstate_t" >&5
9849 cat > conftest.$ac_ext <<EOF
9850 #line 9851 "configure"
9851 #include "confdefs.h"
9852 #include <wchar.h>
9853 int main() {
9854 mbstate_t teststate;
9855 ; return 0; }
9856 EOF
9857 if { (eval echo configure:9858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9858 rm -rf conftest*
9859 have_mbstate_t=yes
9860 else
9861 echo "configure: failed program was:" >&5
9862 cat conftest.$ac_ext >&5
9863 rm -rf conftest*
9864 have_mbstate_t=no
9865 fi
9866 rm -f conftest*
9867 echo "$ac_t""$have_mbstate_t" 1>&6
9868 if test x"$have_mbstate_t" = xyes; then
9869 cat >> confdefs.h <<\EOF
9870 #define HAVE_MBSTATE_T 1
9871 EOF
9872
9873 fi
9874
9875 for ac_hdr in wchar.h
9876 do
9877 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9878 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9879 echo "configure:9880: checking for $ac_hdr" >&5
9880 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9881 echo $ac_n "(cached) $ac_c" 1>&6
9882 else
9883 cat > conftest.$ac_ext <<EOF
9884 #line 9885 "configure"
9885 #include "confdefs.h"
9886 #include <$ac_hdr>
9887 EOF
9888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9889 { (eval echo configure:9890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9891 if test -z "$ac_err"; then
9892 rm -rf conftest*
9893 eval "ac_cv_header_$ac_safe=yes"
9894 else
9895 echo "$ac_err" >&5
9896 echo "configure: failed program was:" >&5
9897 cat conftest.$ac_ext >&5
9898 rm -rf conftest*
9899 eval "ac_cv_header_$ac_safe=no"
9900 fi
9901 rm -f conftest*
9902 fi
9903 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9904 echo "$ac_t""yes" 1>&6
9905 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9906 cat >> confdefs.h <<EOF
9907 #define $ac_tr_hdr 1
9908 EOF
9909 ac_has_wchar_h=yes
9910 else
9911 echo "$ac_t""no" 1>&6
9912 ac_has_wchar_h=no
9913 fi
9914 done
9915
9916 for ac_hdr in wctype.h
9917 do
9918 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9919 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9920 echo "configure:9921: checking for $ac_hdr" >&5
9921 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9922 echo $ac_n "(cached) $ac_c" 1>&6
9923 else
9924 cat > conftest.$ac_ext <<EOF
9925 #line 9926 "configure"
9926 #include "confdefs.h"
9927 #include <$ac_hdr>
9928 EOF
9929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9930 { (eval echo configure:9931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9931 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9932 if test -z "$ac_err"; then
9933 rm -rf conftest*
9934 eval "ac_cv_header_$ac_safe=yes"
9935 else
9936 echo "$ac_err" >&5
9937 echo "configure: failed program was:" >&5
9938 cat conftest.$ac_ext >&5
9939 rm -rf conftest*
9940 eval "ac_cv_header_$ac_safe=no"
9941 fi
9942 rm -f conftest*
9943 fi
9944 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9945 echo "$ac_t""yes" 1>&6
9946 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9947 cat >> confdefs.h <<EOF
9948 #define $ac_tr_hdr 1
9949 EOF
9950 ac_has_wctype_h=yes
9951 else
9952 echo "$ac_t""no" 1>&6
9953 ac_has_wctype_h=no
9954 fi
9955 done
9956
9957
9958 if test x"$ac_has_wchar_h" = xyes &&
9959 test x"$ac_has_wctype_h" = xyes &&
9960 test x"$enable_c_mbchar" != xno; then
9961
9962 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9963 echo "configure:9964: checking for WCHAR_MIN and WCHAR_MAX" >&5
9964 cat > conftest.$ac_ext <<EOF
9965 #line 9966 "configure"
9966 #include "confdefs.h"
9967 #include <wchar.h>
9968 int main() {
9969 int i = WCHAR_MIN; int j = WCHAR_MAX;
9970 ; return 0; }
9971 EOF
9972 if { (eval echo configure:9973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9973 rm -rf conftest*
9974 has_wchar_minmax=yes
9975 else
9976 echo "configure: failed program was:" >&5
9977 cat conftest.$ac_ext >&5
9978 rm -rf conftest*
9979 has_wchar_minmax=no
9980 fi
9981 rm -f conftest*
9982 echo "$ac_t""$has_wchar_minmax" 1>&6
9983
9984 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9985 echo "configure:9986: checking for WEOF" >&5
9986 cat > conftest.$ac_ext <<EOF
9987 #line 9988 "configure"
9988 #include "confdefs.h"
9989
9990 #include <wchar.h>
9991 #include <stddef.h>
9992 int main() {
9993 wint_t i = WEOF;
9994 ; return 0; }
9995 EOF
9996 if { (eval echo configure:9997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9997 rm -rf conftest*
9998 has_weof=yes
9999 else
10000 echo "configure: failed program was:" >&5
10001 cat conftest.$ac_ext >&5
10002 rm -rf conftest*
10003 has_weof=no
10004 fi
10005 rm -f conftest*
10006 echo "$ac_t""$has_weof" 1>&6
10007
10008 ac_wfuncs=yes
10009 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
10010 do
10011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10012 echo "configure:10013: checking for $ac_func" >&5
10013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10014 echo $ac_n "(cached) $ac_c" 1>&6
10015 else
10016 cat > conftest.$ac_ext <<EOF
10017 #line 10018 "configure"
10018 #include "confdefs.h"
10019 /* System header to define __stub macros and hopefully few prototypes,
10020 which can conflict with char $ac_func(); below. */
10021 #include <assert.h>
10022 /* Override any gcc2 internal prototype to avoid an error. */
10023 /* We use char because int might match the return type of a gcc2
10024 builtin and then its argument prototype would still apply. */
10025 char $ac_func();
10026
10027 int main() {
10028
10029 /* The GNU C library defines this for functions which it implements
10030 to always fail with ENOSYS. Some functions are actually named
10031 something starting with __ and the normal name is an alias. */
10032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10033 choke me
10034 #else
10035 $ac_func();
10036 #endif
10037
10038 ; return 0; }
10039 EOF
10040 if { (eval echo configure:10041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10041 rm -rf conftest*
10042 eval "ac_cv_func_$ac_func=yes"
10043 else
10044 echo "configure: failed program was:" >&5
10045 cat conftest.$ac_ext >&5
10046 rm -rf conftest*
10047 eval "ac_cv_func_$ac_func=no"
10048 fi
10049 rm -f conftest*
10050 fi
10051
10052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10053 echo "$ac_t""yes" 1>&6
10054 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10055 cat >> confdefs.h <<EOF
10056 #define $ac_tr_func 1
10057 EOF
10058
10059 else
10060 echo "$ac_t""no" 1>&6
10061 \
10062 ac_wfuncs=no
10063 fi
10064 done
10065
10066
10067 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
10068 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
10069 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
10070 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
10071 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
10072 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
10073 do
10074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10075 echo "configure:10076: checking for $ac_func" >&5
10076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10077 echo $ac_n "(cached) $ac_c" 1>&6
10078 else
10079 cat > conftest.$ac_ext <<EOF
10080 #line 10081 "configure"
10081 #include "confdefs.h"
10082 /* System header to define __stub macros and hopefully few prototypes,
10083 which can conflict with char $ac_func(); below. */
10084 #include <assert.h>
10085 /* Override any gcc2 internal prototype to avoid an error. */
10086 /* We use char because int might match the return type of a gcc2
10087 builtin and then its argument prototype would still apply. */
10088 char $ac_func();
10089
10090 int main() {
10091
10092 /* The GNU C library defines this for functions which it implements
10093 to always fail with ENOSYS. Some functions are actually named
10094 something starting with __ and the normal name is an alias. */
10095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10096 choke me
10097 #else
10098 $ac_func();
10099 #endif
10100
10101 ; return 0; }
10102 EOF
10103 if { (eval echo configure:10104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10104 rm -rf conftest*
10105 eval "ac_cv_func_$ac_func=yes"
10106 else
10107 echo "configure: failed program was:" >&5
10108 cat conftest.$ac_ext >&5
10109 rm -rf conftest*
10110 eval "ac_cv_func_$ac_func=no"
10111 fi
10112 rm -f conftest*
10113 fi
10114
10115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10116 echo "$ac_t""yes" 1>&6
10117 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10118 cat >> confdefs.h <<EOF
10119 #define $ac_tr_func 1
10120 EOF
10121
10122 else
10123 echo "$ac_t""no" 1>&6
10124 \
10125 ac_wfuncs=no
10126 fi
10127 done
10128
10129
10130 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
10131 echo "configure:10132: checking for ISO C99 wchar_t support" >&5
10132 if test x"$has_weof" = xyes &&
10133 test x"$has_wchar_minmax" = xyes &&
10134 test x"$ac_wfuncs" = xyes; then
10135 ac_isoC99_wchar_t=yes
10136 else
10137 ac_isoC99_wchar_t=no
10138 fi
10139 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
10140
10141 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
10142 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
10143 echo "configure:10144: checking for iconv.h" >&5
10144 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10145 echo $ac_n "(cached) $ac_c" 1>&6
10146 else
10147 cat > conftest.$ac_ext <<EOF
10148 #line 10149 "configure"
10149 #include "confdefs.h"
10150 #include <iconv.h>
10151 EOF
10152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10153 { (eval echo configure:10154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10155 if test -z "$ac_err"; then
10156 rm -rf conftest*
10157 eval "ac_cv_header_$ac_safe=yes"
10158 else
10159 echo "$ac_err" >&5
10160 echo "configure: failed program was:" >&5
10161 cat conftest.$ac_ext >&5
10162 rm -rf conftest*
10163 eval "ac_cv_header_$ac_safe=no"
10164 fi
10165 rm -f conftest*
10166 fi
10167 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10168 echo "$ac_t""yes" 1>&6
10169 ac_has_iconv_h=yes
10170 else
10171 echo "$ac_t""no" 1>&6
10172 ac_has_iconv_h=no
10173 fi
10174
10175 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
10176 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
10177 echo "configure:10178: checking for langinfo.h" >&5
10178 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10179 echo $ac_n "(cached) $ac_c" 1>&6
10180 else
10181 cat > conftest.$ac_ext <<EOF
10182 #line 10183 "configure"
10183 #include "confdefs.h"
10184 #include <langinfo.h>
10185 EOF
10186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10187 { (eval echo configure:10188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10189 if test -z "$ac_err"; then
10190 rm -rf conftest*
10191 eval "ac_cv_header_$ac_safe=yes"
10192 else
10193 echo "$ac_err" >&5
10194 echo "configure: failed program was:" >&5
10195 cat conftest.$ac_ext >&5
10196 rm -rf conftest*
10197 eval "ac_cv_header_$ac_safe=no"
10198 fi
10199 rm -f conftest*
10200 fi
10201 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10202 echo "$ac_t""yes" 1>&6
10203 ac_has_langinfo_h=yes
10204 else
10205 echo "$ac_t""no" 1>&6
10206 ac_has_langinfo_h=no
10207 fi
10208
10209
10210 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
10211 echo "configure:10212: checking for iconv in -liconv" >&5
10212 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
10213 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10214 echo $ac_n "(cached) $ac_c" 1>&6
10215 else
10216 ac_save_LIBS="$LIBS"
10217 LIBS="-liconv $LIBS"
10218 cat > conftest.$ac_ext <<EOF
10219 #line 10220 "configure"
10220 #include "confdefs.h"
10221 /* Override any gcc2 internal prototype to avoid an error. */
10222 /* We use char because int might match the return type of a gcc2
10223 builtin and then its argument prototype would still apply. */
10224 char iconv();
10225
10226 int main() {
10227 iconv()
10228 ; return 0; }
10229 EOF
10230 if { (eval echo configure:10231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10231 rm -rf conftest*
10232 eval "ac_cv_lib_$ac_lib_var=yes"
10233 else
10234 echo "configure: failed program was:" >&5
10235 cat conftest.$ac_ext >&5
10236 rm -rf conftest*
10237 eval "ac_cv_lib_$ac_lib_var=no"
10238 fi
10239 rm -f conftest*
10240 LIBS="$ac_save_LIBS"
10241
10242 fi
10243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10244 echo "$ac_t""yes" 1>&6
10245 libiconv="-liconv"
10246 else
10247 echo "$ac_t""no" 1>&6
10248 fi
10249
10250 ac_save_LIBS="$LIBS"
10251 LIBS="$LIBS $libiconv"
10252
10253 for ac_func in iconv_open iconv_close iconv nl_langinfo
10254 do
10255 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10256 echo "configure:10257: checking for $ac_func" >&5
10257 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10258 echo $ac_n "(cached) $ac_c" 1>&6
10259 else
10260 cat > conftest.$ac_ext <<EOF
10261 #line 10262 "configure"
10262 #include "confdefs.h"
10263 /* System header to define __stub macros and hopefully few prototypes,
10264 which can conflict with char $ac_func(); below. */
10265 #include <assert.h>
10266 /* Override any gcc2 internal prototype to avoid an error. */
10267 /* We use char because int might match the return type of a gcc2
10268 builtin and then its argument prototype would still apply. */
10269 char $ac_func();
10270
10271 int main() {
10272
10273 /* The GNU C library defines this for functions which it implements
10274 to always fail with ENOSYS. Some functions are actually named
10275 something starting with __ and the normal name is an alias. */
10276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10277 choke me
10278 #else
10279 $ac_func();
10280 #endif
10281
10282 ; return 0; }
10283 EOF
10284 if { (eval echo configure:10285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10285 rm -rf conftest*
10286 eval "ac_cv_func_$ac_func=yes"
10287 else
10288 echo "configure: failed program was:" >&5
10289 cat conftest.$ac_ext >&5
10290 rm -rf conftest*
10291 eval "ac_cv_func_$ac_func=no"
10292 fi
10293 rm -f conftest*
10294 fi
10295
10296 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10297 echo "$ac_t""yes" 1>&6
10298 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10299 cat >> confdefs.h <<EOF
10300 #define $ac_tr_func 1
10301 EOF
10302 \
10303 ac_XPG2funcs=yes
10304 else
10305 echo "$ac_t""no" 1>&6
10306 ac_XPG2funcs=no
10307 fi
10308 done
10309
10310
10311 LIBS="$ac_save_LIBS"
10312
10313 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
10314 echo "configure:10315: checking for XPG2 wchar_t support" >&5
10315 if test x"$ac_has_iconv_h" = xyes &&
10316 test x"$ac_has_langinfo_h" = xyes &&
10317 test x"$ac_XPG2funcs" = xyes; then
10318 ac_XPG2_wchar_t=yes
10319 else
10320 ac_XPG2_wchar_t=no
10321 fi
10322 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
10323
10324 if test x"$ac_isoC99_wchar_t" = xyes &&
10325 test x"$ac_XPG2_wchar_t" = xyes; then
10326 cat >> confdefs.h <<\EOF
10327 #define _GLIBCPP_USE_WCHAR_T 1
10328 EOF
10329
10330 enable_wchar_t=yes
10331 fi
10332 fi
10333 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
10334 echo "configure:10335: checking for enabled wchar_t specializations" >&5
10335 echo "$ac_t""$enable_wchar_t" 1>&6
10336
10337
10338 if test "$enable_wchar_t" = yes; then
10339 GLIBCPP_TEST_WCHAR_T_TRUE=
10340 GLIBCPP_TEST_WCHAR_T_FALSE='#'
10341 else
10342 GLIBCPP_TEST_WCHAR_T_TRUE='#'
10343 GLIBCPP_TEST_WCHAR_T_FALSE=
10344 fi
10345
10346 cat >> confdefs.h <<\EOF
10347 #define HAVE_COSF 1
10348 EOF
10349
10350 cat >> confdefs.h <<\EOF
10351 #define HAVE_COSL 1
10352 EOF
10353
10354 cat >> confdefs.h <<\EOF
10355 #define HAVE_COSHF 1
10356 EOF
10357
10358 cat >> confdefs.h <<\EOF
10359 #define HAVE_COSHL 1
10360 EOF
10361
10362 cat >> confdefs.h <<\EOF
10363 #define HAVE_LOGF 1
10364 EOF
10365
10366 cat >> confdefs.h <<\EOF
10367 #define HAVE_LOGL 1
10368 EOF
10369
10370 cat >> confdefs.h <<\EOF
10371 #define HAVE_LOG10F 1
10372 EOF
10373
10374 cat >> confdefs.h <<\EOF
10375 #define HAVE_LOG10L 1
10376 EOF
10377
10378 cat >> confdefs.h <<\EOF
10379 #define HAVE_SINF 1
10380 EOF
10381
10382 cat >> confdefs.h <<\EOF
10383 #define HAVE_SINL 1
10384 EOF
10385
10386 cat >> confdefs.h <<\EOF
10387 #define HAVE_SINHF 1
10388 EOF
10389
10390 cat >> confdefs.h <<\EOF
10391 #define HAVE_SINHL 1
10392 EOF
10393
10394 ;;
10395 *-solaris*)
10396 case "$target" in
10397 *-solaris2.5)
10398 os_include_dir="os/solaris/solaris2.5"
10399 ;;
10400 *-solaris2.6)
10401 os_include_dir="os/solaris/solaris2.6"
10402 ;;
10403 *-solaris2.[789] | *-solaris2.8 | *-solaris2.9)
10404 os_include_dir="os/solaris/solaris2.7"
10405 ;;
10406 esac
10407 cat >> confdefs.h <<\EOF
10408 #define HAVE_STRTOF 1
10409 EOF
10410
10411 cat >> confdefs.h <<\EOF
10412 #define HAVE_STRTOLD 1
10413 EOF
10414
10415 cat >> confdefs.h <<\EOF
10416 #define HAVE_MMAP 1
10417 EOF
10418
10419 cat >> confdefs.h <<\EOF
10420 #define HAVE_COPYSIGN 1
10421 EOF
10422
10423 cat >> confdefs.h <<\EOF
10424 #define HAVE_ISNAN 1
10425 EOF
10426
10427 cat >> confdefs.h <<\EOF
10428 #define HAVE_ISNANF 1
10429 EOF
10430
10431 cat >> confdefs.h <<\EOF
10432 #define HAVE_MODFF 1
10433 EOF
10434
10435 cat >> confdefs.h <<\EOF
10436 #define HAVE_HYPOT 1
10437 EOF
10438
10439 ;;
10440 *)
10441 os_include_dir="os/newlib"
10442 cat >> confdefs.h <<\EOF
10443 #define HAVE_HYPOT 1
10444 EOF
10445
10446
10447 # GLIBCPP_CHECK_STDLIB_SUPPORT
10448 cat >> confdefs.h <<\EOF
10449 #define HAVE_STRTOF 1
10450 EOF
10451
10452 cat >> confdefs.h <<\EOF
10453 #define HAVE_STRTOLD 1
10454 EOF
10455
10456 # AC_FUNC_MMAP
10457 cat >> confdefs.h <<\EOF
10458 #define HAVE_MMAP 1
10459 EOF
10460
10461
10462 cat >> confdefs.h <<\EOF
10463 #define HAVE_ACOSF 1
10464 EOF
10465
10466 cat >> confdefs.h <<\EOF
10467 #define HAVE_ASINF 1
10468 EOF
10469
10470 cat >> confdefs.h <<\EOF
10471 #define HAVE_ATAN2F 1
10472 EOF
10473
10474 cat >> confdefs.h <<\EOF
10475 #define HAVE_ATANF 1
10476 EOF
10477
10478 cat >> confdefs.h <<\EOF
10479 #define HAVE_CEILF 1
10480 EOF
10481
10482 cat >> confdefs.h <<\EOF
10483 #define HAVE_COPYSIGN 1
10484 EOF
10485
10486 cat >> confdefs.h <<\EOF
10487 #define HAVE_COPYSIGNF 1
10488 EOF
10489
10490 cat >> confdefs.h <<\EOF
10491 #define HAVE_COSF 1
10492 EOF
10493
10494 cat >> confdefs.h <<\EOF
10495 #define HAVE_COSHF 1
10496 EOF
10497
10498 cat >> confdefs.h <<\EOF
10499 #define HAVE_EXPF 1
10500 EOF
10501
10502 cat >> confdefs.h <<\EOF
10503 #define HAVE_FABSF 1
10504 EOF
10505
10506 cat >> confdefs.h <<\EOF
10507 #define HAVE_FLOORF 1
10508 EOF
10509
10510 cat >> confdefs.h <<\EOF
10511 #define HAVE_FMODF 1
10512 EOF
10513
10514 cat >> confdefs.h <<\EOF
10515 #define HAVE_FREXPF 1
10516 EOF
10517
10518 cat >> confdefs.h <<\EOF
10519 #define HAVE_LDEXPF 1
10520 EOF
10521
10522 cat >> confdefs.h <<\EOF
10523 #define HAVE_LOG10F 1
10524 EOF
10525
10526 cat >> confdefs.h <<\EOF
10527 #define HAVE_LOGF 1
10528 EOF
10529
10530 cat >> confdefs.h <<\EOF
10531 #define HAVE_MODFF 1
10532 EOF
10533
10534 cat >> confdefs.h <<\EOF
10535 #define HAVE_POWF 1
10536 EOF
10537
10538 cat >> confdefs.h <<\EOF
10539 #define HAVE_SINF 1
10540 EOF
10541
10542 cat >> confdefs.h <<\EOF
10543 #define HAVE_SINHF 1
10544 EOF
10545
10546 cat >> confdefs.h <<\EOF
10547 #define HAVE_SQRTF 1
10548 EOF
10549
10550 cat >> confdefs.h <<\EOF
10551 #define HAVE_TANF 1
10552 EOF
10553
10554 cat >> confdefs.h <<\EOF
10555 #define HAVE_TANHF 1
10556 EOF
10557
10558 ;;
10559 esac
10560
10561 # At some point, we should differentiate between architectures
10562 # like x86, which have long double versions, and alpha/powerpc/etc.,
10563 # which don't. For the time being, punt.
10564 if test x"long_double_math_on_this_cpu" = x"yes"; then
10565 cat >> confdefs.h <<\EOF
10566 #define HAVE_ACOSL 1
10567 EOF
10568
10569 cat >> confdefs.h <<\EOF
10570 #define HAVE_ASINL 1
10571 EOF
10572
10573 cat >> confdefs.h <<\EOF
10574 #define HAVE_ATAN2L 1
10575 EOF
10576
10577 cat >> confdefs.h <<\EOF
10578 #define HAVE_ATANL 1
10579 EOF
10580
10581 cat >> confdefs.h <<\EOF
10582 #define HAVE_CEILL 1
10583 EOF
10584
10585 cat >> confdefs.h <<\EOF
10586 #define HAVE_COPYSIGNL 1
10587 EOF
10588
10589 cat >> confdefs.h <<\EOF
10590 #define HAVE_COSL 1
10591 EOF
10592
10593 cat >> confdefs.h <<\EOF
10594 #define HAVE_COSHL 1
10595 EOF
10596
10597 cat >> confdefs.h <<\EOF
10598 #define HAVE_EXPL 1
10599 EOF
10600
10601 cat >> confdefs.h <<\EOF
10602 #define HAVE_FABSL 1
10603 EOF
10604
10605 cat >> confdefs.h <<\EOF
10606 #define HAVE_FLOORL 1
10607 EOF
10608
10609 cat >> confdefs.h <<\EOF
10610 #define HAVE_FMODL 1
10611 EOF
10612
10613 cat >> confdefs.h <<\EOF
10614 #define HAVE_FREXPL 1
10615 EOF
10616
10617 cat >> confdefs.h <<\EOF
10618 #define HAVE_LDEXPL 1
10619 EOF
10620
10621 cat >> confdefs.h <<\EOF
10622 #define HAVE_LOG10L 1
10623 EOF
10624
10625 cat >> confdefs.h <<\EOF
10626 #define HAVE_LOGL 1
10627 EOF
10628
10629 cat >> confdefs.h <<\EOF
10630 #define HAVE_MODFL 1
10631 EOF
10632
10633 cat >> confdefs.h <<\EOF
10634 #define HAVE_POWL 1
10635 EOF
10636
10637 cat >> confdefs.h <<\EOF
10638 #define HAVE_SINCOSL 1
10639 EOF
10640
10641 cat >> confdefs.h <<\EOF
10642 #define HAVE_SINL 1
10643 EOF
10644
10645 cat >> confdefs.h <<\EOF
10646 #define HAVE_SINHL 1
10647 EOF
10648
10649 cat >> confdefs.h <<\EOF
10650 #define HAVE_SQRTL 1
10651 EOF
10652
10653 cat >> confdefs.h <<\EOF
10654 #define HAVE_TANL 1
10655 EOF
10656
10657 cat >> confdefs.h <<\EOF
10658 #define HAVE_TANHL 1
10659 EOF
10660
10661 fi
10662
10663 else
10664
10665 # We are being configured natively. We can do more elaborate tests
10666 # that include AC_TRY_COMPILE now, as the linker is assumed to be
10667 # working.
10668 GLIBCPP_IS_CROSS_COMPILING=0
10669 CANADIAN=no
10670
10671 # Check for available headers.
10672 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10673 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
10674 sys/types.h
10675 do
10676 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10677 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10678 echo "configure:10679: checking for $ac_hdr" >&5
10679 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10680 echo $ac_n "(cached) $ac_c" 1>&6
10681 else
10682 cat > conftest.$ac_ext <<EOF
10683 #line 10684 "configure"
10684 #include "confdefs.h"
10685 #include <$ac_hdr>
10686 EOF
10687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10688 { (eval echo configure:10689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10690 if test -z "$ac_err"; then
10691 rm -rf conftest*
10692 eval "ac_cv_header_$ac_safe=yes"
10693 else
10694 echo "$ac_err" >&5
10695 echo "configure: failed program was:" >&5
10696 cat conftest.$ac_ext >&5
10697 rm -rf conftest*
10698 eval "ac_cv_header_$ac_safe=no"
10699 fi
10700 rm -f conftest*
10701 fi
10702 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10703 echo "$ac_t""yes" 1>&6
10704 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10705 cat >> confdefs.h <<EOF
10706 #define $ac_tr_hdr 1
10707 EOF
10708
10709 else
10710 echo "$ac_t""no" 1>&6
10711 fi
10712 done
10713
10714
10715
10716 # All these tests are for C++; save the language and the compiler flags.
10717 # The CXXFLAGS thing is suspicious, but based on similar bits previously
10718 # found in GLIBCPP_CONFIGURE.
10719
10720 ac_ext=C
10721 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10722 ac_cpp='$CXXCPP $CPPFLAGS'
10723 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10724 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10725 cross_compiling=$ac_cv_prog_cxx_cross
10726
10727 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10728 ac_save_CXXFLAGS="$CXXFLAGS"
10729
10730 # Check for maintainer-mode bits.
10731 if test x"$USE_MAINTAINER_MODE" = xno; then
10732 WERROR=''
10733 else
10734 WERROR='-Werror'
10735 fi
10736
10737 # Check for -ffunction-sections -fdata-sections
10738 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10739 echo "configure:10740: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10740 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10741 cat > conftest.$ac_ext <<EOF
10742 #line 10743 "configure"
10743 #include "confdefs.h"
10744
10745 int main() {
10746 int foo;
10747
10748 ; return 0; }
10749 EOF
10750 if { (eval echo configure:10751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10751 rm -rf conftest*
10752 ac_fdsections=yes
10753 else
10754 echo "configure: failed program was:" >&5
10755 cat conftest.$ac_ext >&5
10756 rm -rf conftest*
10757 ac_fdsections=no
10758 fi
10759 rm -f conftest*
10760 if test "$ac_test_CXXFLAGS" = set; then
10761 CXXFLAGS="$ac_save_CXXFLAGS"
10762 else
10763 # this is the suspicious part
10764 CXXFLAGS=''
10765 fi
10766 if test x"$ac_fdsections" = x"yes"; then
10767 SECTION_FLAGS='-ffunction-sections -fdata-sections'
10768 fi
10769 echo "$ac_t""$ac_fdsections" 1>&6
10770
10771 ac_ext=c
10772 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10773 ac_cpp='$CPP $CPPFLAGS'
10774 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10775 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10776 cross_compiling=$ac_cv_prog_cc_cross
10777
10778
10779
10780
10781
10782 # If we're not using GNU ld, then there's no point in even trying these
10783 # tests. Check for that first. We should have already tested for gld
10784 # by now (in libtool), but require it now just to be safe...
10785 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10786 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10787
10788
10789 # The name set by libtool depends on the version of libtool. Shame on us
10790 # for depending on an impl detail, but c'est la vie. Older versions used
10791 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10792 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10793 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
10794 # set (hence we're using an older libtool), then set it.
10795 if test x${with_gnu_ld+set} != xset; then
10796 if test x${ac_cv_prog_gnu_ld+set} != xset; then
10797 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
10798 with_gnu_ld=no
10799 else
10800 with_gnu_ld=$ac_cv_prog_gnu_ld
10801 fi
10802 fi
10803
10804 # Start by getting the version number. I think the libtool test already
10805 # does some of this, but throws away the result.
10806
10807 ldver=`$LD --version 2>/dev/null | head -1 | \
10808 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10809
10810 glibcpp_gnu_ld_version=`echo $ldver | \
10811 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10812
10813 # Set --gc-sections.
10814 if test "$with_gnu_ld" = "notbroken"; then
10815 # GNU ld it is! Joy and bunny rabbits!
10816
10817 # All these tests are for C++; save the language and the compiler flags.
10818 # Need to do this so that g++ won't try to link in libstdc++
10819 ac_test_CFLAGS="${CFLAGS+set}"
10820 ac_save_CFLAGS="$CFLAGS"
10821 CFLAGS='-x c++ -Wl,--gc-sections'
10822
10823 # Check for -Wl,--gc-sections
10824 # XXX This test is broken at the moment, as symbols required for
10825 # linking are now in libsupc++ (not built yet.....). In addition,
10826 # this test has cored on solaris in the past. In addition,
10827 # --gc-sections doesn't really work at the moment (keeps on discarding
10828 # used sections, first .eh_frame and now some of the glibc sections for
10829 # iconv). Bzzzzt. Thanks for playing, maybe next time.
10830 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10831 echo "configure:10832: checking for ld that supports -Wl,--gc-sections" >&5
10832 if test "$cross_compiling" = yes; then
10833 ac_sectionLDflags=yes
10834 else
10835 cat > conftest.$ac_ext <<EOF
10836 #line 10837 "configure"
10837 #include "confdefs.h"
10838
10839 int main(void)
10840 {
10841 try { throw 1; }
10842 catch (...) { };
10843 return 0;
10844 }
10845
10846 EOF
10847 if { (eval echo configure:10848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10848 then
10849 ac_sectionLDflags=yes
10850 else
10851 echo "configure: failed program was:" >&5
10852 cat conftest.$ac_ext >&5
10853 rm -fr conftest*
10854 ac_sectionLDflags=no
10855 fi
10856 rm -fr conftest*
10857 fi
10858
10859 if test "$ac_test_CFLAGS" = set; then
10860 CFLAGS="$ac_save_CFLAGS"
10861 else
10862 # this is the suspicious part
10863 CFLAGS=''
10864 fi
10865 if test "$ac_sectionLDflags" = "yes"; then
10866 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10867 fi
10868 echo "$ac_t""$ac_sectionLDflags" 1>&6
10869 fi
10870
10871 # Set linker optimization flags.
10872 if test x"$with_gnu_ld" = x"yes"; then
10873 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10874 fi
10875
10876
10877
10878
10879
10880 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10881 ac_save_CXXFLAGS="$CXXFLAGS"
10882 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10883
10884 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10885 echo "configure:10886: checking for sin in -lm" >&5
10886 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10887 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10888 echo $ac_n "(cached) $ac_c" 1>&6
10889 else
10890 ac_save_LIBS="$LIBS"
10891 LIBS="-lm $LIBS"
10892 cat > conftest.$ac_ext <<EOF
10893 #line 10894 "configure"
10894 #include "confdefs.h"
10895 /* Override any gcc2 internal prototype to avoid an error. */
10896 /* We use char because int might match the return type of a gcc2
10897 builtin and then its argument prototype would still apply. */
10898 char sin();
10899
10900 int main() {
10901 sin()
10902 ; return 0; }
10903 EOF
10904 if { (eval echo configure:10905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10905 rm -rf conftest*
10906 eval "ac_cv_lib_$ac_lib_var=yes"
10907 else
10908 echo "configure: failed program was:" >&5
10909 cat conftest.$ac_ext >&5
10910 rm -rf conftest*
10911 eval "ac_cv_lib_$ac_lib_var=no"
10912 fi
10913 rm -f conftest*
10914 LIBS="$ac_save_LIBS"
10915
10916 fi
10917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10918 echo "$ac_t""yes" 1>&6
10919 libm="-lm"
10920 else
10921 echo "$ac_t""no" 1>&6
10922 fi
10923
10924 ac_save_LIBS="$LIBS"
10925 LIBS="$LIBS $libm"
10926
10927
10928
10929 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10930 echo "configure:10931: checking for isinf declaration" >&5
10931 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10932 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10933 echo $ac_n "(cached) $ac_c" 1>&6
10934 else
10935
10936
10937 ac_ext=C
10938 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10939 ac_cpp='$CXXCPP $CPPFLAGS'
10940 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10941 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10942 cross_compiling=$ac_cv_prog_cxx_cross
10943
10944 cat > conftest.$ac_ext <<EOF
10945 #line 10946 "configure"
10946 #include "confdefs.h"
10947 #include <math.h>
10948 #ifdef HAVE_IEEEFP_H
10949 #include <ieeefp.h>
10950 #endif
10951
10952 int main() {
10953 isinf(0);
10954 ; return 0; }
10955 EOF
10956 if { (eval echo configure:10957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10957 rm -rf conftest*
10958 glibcpp_cv_func_isinf_use=yes
10959 else
10960 echo "configure: failed program was:" >&5
10961 cat conftest.$ac_ext >&5
10962 rm -rf conftest*
10963 glibcpp_cv_func_isinf_use=no
10964 fi
10965 rm -f conftest*
10966 ac_ext=c
10967 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10968 ac_cpp='$CPP $CPPFLAGS'
10969 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10970 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10971 cross_compiling=$ac_cv_prog_cc_cross
10972
10973
10974 fi
10975
10976 fi
10977 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10978
10979 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10980 for ac_func in isinf
10981 do
10982 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10983 echo "configure:10984: checking for $ac_func" >&5
10984 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10985 echo $ac_n "(cached) $ac_c" 1>&6
10986 else
10987 cat > conftest.$ac_ext <<EOF
10988 #line 10989 "configure"
10989 #include "confdefs.h"
10990 /* System header to define __stub macros and hopefully few prototypes,
10991 which can conflict with char $ac_func(); below. */
10992 #include <assert.h>
10993 /* Override any gcc2 internal prototype to avoid an error. */
10994 /* We use char because int might match the return type of a gcc2
10995 builtin and then its argument prototype would still apply. */
10996 char $ac_func();
10997
10998 int main() {
10999
11000 /* The GNU C library defines this for functions which it implements
11001 to always fail with ENOSYS. Some functions are actually named
11002 something starting with __ and the normal name is an alias. */
11003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11004 choke me
11005 #else
11006 $ac_func();
11007 #endif
11008
11009 ; return 0; }
11010 EOF
11011 if { (eval echo configure:11012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11012 rm -rf conftest*
11013 eval "ac_cv_func_$ac_func=yes"
11014 else
11015 echo "configure: failed program was:" >&5
11016 cat conftest.$ac_ext >&5
11017 rm -rf conftest*
11018 eval "ac_cv_func_$ac_func=no"
11019 fi
11020 rm -f conftest*
11021 fi
11022
11023 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11024 echo "$ac_t""yes" 1>&6
11025 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11026 cat >> confdefs.h <<EOF
11027 #define $ac_tr_func 1
11028 EOF
11029
11030 else
11031 echo "$ac_t""no" 1>&6
11032 fi
11033 done
11034
11035 else
11036
11037 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
11038 echo "configure:11039: checking for _isinf declaration" >&5
11039 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
11040 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
11041 echo $ac_n "(cached) $ac_c" 1>&6
11042 else
11043
11044
11045 ac_ext=C
11046 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11047 ac_cpp='$CXXCPP $CPPFLAGS'
11048 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11049 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11050 cross_compiling=$ac_cv_prog_cxx_cross
11051
11052 cat > conftest.$ac_ext <<EOF
11053 #line 11054 "configure"
11054 #include "confdefs.h"
11055 #include <math.h>
11056 #ifdef HAVE_IEEEFP_H
11057 #include <ieeefp.h>
11058 #endif
11059
11060 int main() {
11061 _isinf(0);
11062 ; return 0; }
11063 EOF
11064 if { (eval echo configure:11065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11065 rm -rf conftest*
11066 glibcpp_cv_func__isinf_use=yes
11067 else
11068 echo "configure: failed program was:" >&5
11069 cat conftest.$ac_ext >&5
11070 rm -rf conftest*
11071 glibcpp_cv_func__isinf_use=no
11072 fi
11073 rm -f conftest*
11074 ac_ext=c
11075 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11076 ac_cpp='$CPP $CPPFLAGS'
11077 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11078 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11079 cross_compiling=$ac_cv_prog_cc_cross
11080
11081
11082 fi
11083
11084 fi
11085 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
11086
11087 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
11088 for ac_func in _isinf
11089 do
11090 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11091 echo "configure:11092: checking for $ac_func" >&5
11092 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11093 echo $ac_n "(cached) $ac_c" 1>&6
11094 else
11095 cat > conftest.$ac_ext <<EOF
11096 #line 11097 "configure"
11097 #include "confdefs.h"
11098 /* System header to define __stub macros and hopefully few prototypes,
11099 which can conflict with char $ac_func(); below. */
11100 #include <assert.h>
11101 /* Override any gcc2 internal prototype to avoid an error. */
11102 /* We use char because int might match the return type of a gcc2
11103 builtin and then its argument prototype would still apply. */
11104 char $ac_func();
11105
11106 int main() {
11107
11108 /* The GNU C library defines this for functions which it implements
11109 to always fail with ENOSYS. Some functions are actually named
11110 something starting with __ and the normal name is an alias. */
11111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11112 choke me
11113 #else
11114 $ac_func();
11115 #endif
11116
11117 ; return 0; }
11118 EOF
11119 if { (eval echo configure:11120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11120 rm -rf conftest*
11121 eval "ac_cv_func_$ac_func=yes"
11122 else
11123 echo "configure: failed program was:" >&5
11124 cat conftest.$ac_ext >&5
11125 rm -rf conftest*
11126 eval "ac_cv_func_$ac_func=no"
11127 fi
11128 rm -f conftest*
11129 fi
11130
11131 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11132 echo "$ac_t""yes" 1>&6
11133 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11134 cat >> confdefs.h <<EOF
11135 #define $ac_tr_func 1
11136 EOF
11137
11138 else
11139 echo "$ac_t""no" 1>&6
11140 fi
11141 done
11142
11143 fi
11144 fi
11145
11146
11147
11148 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
11149 echo "configure:11150: checking for isnan declaration" >&5
11150 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
11151 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
11152 echo $ac_n "(cached) $ac_c" 1>&6
11153 else
11154
11155
11156 ac_ext=C
11157 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11158 ac_cpp='$CXXCPP $CPPFLAGS'
11159 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11160 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11161 cross_compiling=$ac_cv_prog_cxx_cross
11162
11163 cat > conftest.$ac_ext <<EOF
11164 #line 11165 "configure"
11165 #include "confdefs.h"
11166 #include <math.h>
11167 #ifdef HAVE_IEEEFP_H
11168 #include <ieeefp.h>
11169 #endif
11170
11171 int main() {
11172 isnan(0);
11173 ; return 0; }
11174 EOF
11175 if { (eval echo configure:11176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11176 rm -rf conftest*
11177 glibcpp_cv_func_isnan_use=yes
11178 else
11179 echo "configure: failed program was:" >&5
11180 cat conftest.$ac_ext >&5
11181 rm -rf conftest*
11182 glibcpp_cv_func_isnan_use=no
11183 fi
11184 rm -f conftest*
11185 ac_ext=c
11186 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11187 ac_cpp='$CPP $CPPFLAGS'
11188 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11189 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11190 cross_compiling=$ac_cv_prog_cc_cross
11191
11192
11193 fi
11194
11195 fi
11196 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
11197
11198 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
11199 for ac_func in isnan
11200 do
11201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11202 echo "configure:11203: checking for $ac_func" >&5
11203 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11204 echo $ac_n "(cached) $ac_c" 1>&6
11205 else
11206 cat > conftest.$ac_ext <<EOF
11207 #line 11208 "configure"
11208 #include "confdefs.h"
11209 /* System header to define __stub macros and hopefully few prototypes,
11210 which can conflict with char $ac_func(); below. */
11211 #include <assert.h>
11212 /* Override any gcc2 internal prototype to avoid an error. */
11213 /* We use char because int might match the return type of a gcc2
11214 builtin and then its argument prototype would still apply. */
11215 char $ac_func();
11216
11217 int main() {
11218
11219 /* The GNU C library defines this for functions which it implements
11220 to always fail with ENOSYS. Some functions are actually named
11221 something starting with __ and the normal name is an alias. */
11222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11223 choke me
11224 #else
11225 $ac_func();
11226 #endif
11227
11228 ; return 0; }
11229 EOF
11230 if { (eval echo configure:11231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11231 rm -rf conftest*
11232 eval "ac_cv_func_$ac_func=yes"
11233 else
11234 echo "configure: failed program was:" >&5
11235 cat conftest.$ac_ext >&5
11236 rm -rf conftest*
11237 eval "ac_cv_func_$ac_func=no"
11238 fi
11239 rm -f conftest*
11240 fi
11241
11242 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11243 echo "$ac_t""yes" 1>&6
11244 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11245 cat >> confdefs.h <<EOF
11246 #define $ac_tr_func 1
11247 EOF
11248
11249 else
11250 echo "$ac_t""no" 1>&6
11251 fi
11252 done
11253
11254 else
11255
11256 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11257 echo "configure:11258: checking for _isnan declaration" >&5
11258 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11259 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11260 echo $ac_n "(cached) $ac_c" 1>&6
11261 else
11262
11263
11264 ac_ext=C
11265 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11266 ac_cpp='$CXXCPP $CPPFLAGS'
11267 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11268 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11269 cross_compiling=$ac_cv_prog_cxx_cross
11270
11271 cat > conftest.$ac_ext <<EOF
11272 #line 11273 "configure"
11273 #include "confdefs.h"
11274 #include <math.h>
11275 #ifdef HAVE_IEEEFP_H
11276 #include <ieeefp.h>
11277 #endif
11278
11279 int main() {
11280 _isnan(0);
11281 ; return 0; }
11282 EOF
11283 if { (eval echo configure:11284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11284 rm -rf conftest*
11285 glibcpp_cv_func__isnan_use=yes
11286 else
11287 echo "configure: failed program was:" >&5
11288 cat conftest.$ac_ext >&5
11289 rm -rf conftest*
11290 glibcpp_cv_func__isnan_use=no
11291 fi
11292 rm -f conftest*
11293 ac_ext=c
11294 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11295 ac_cpp='$CPP $CPPFLAGS'
11296 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11297 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11298 cross_compiling=$ac_cv_prog_cc_cross
11299
11300
11301 fi
11302
11303 fi
11304 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11305
11306 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11307 for ac_func in _isnan
11308 do
11309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11310 echo "configure:11311: checking for $ac_func" >&5
11311 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11312 echo $ac_n "(cached) $ac_c" 1>&6
11313 else
11314 cat > conftest.$ac_ext <<EOF
11315 #line 11316 "configure"
11316 #include "confdefs.h"
11317 /* System header to define __stub macros and hopefully few prototypes,
11318 which can conflict with char $ac_func(); below. */
11319 #include <assert.h>
11320 /* Override any gcc2 internal prototype to avoid an error. */
11321 /* We use char because int might match the return type of a gcc2
11322 builtin and then its argument prototype would still apply. */
11323 char $ac_func();
11324
11325 int main() {
11326
11327 /* The GNU C library defines this for functions which it implements
11328 to always fail with ENOSYS. Some functions are actually named
11329 something starting with __ and the normal name is an alias. */
11330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11331 choke me
11332 #else
11333 $ac_func();
11334 #endif
11335
11336 ; return 0; }
11337 EOF
11338 if { (eval echo configure:11339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11339 rm -rf conftest*
11340 eval "ac_cv_func_$ac_func=yes"
11341 else
11342 echo "configure: failed program was:" >&5
11343 cat conftest.$ac_ext >&5
11344 rm -rf conftest*
11345 eval "ac_cv_func_$ac_func=no"
11346 fi
11347 rm -f conftest*
11348 fi
11349
11350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11351 echo "$ac_t""yes" 1>&6
11352 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11353 cat >> confdefs.h <<EOF
11354 #define $ac_tr_func 1
11355 EOF
11356
11357 else
11358 echo "$ac_t""no" 1>&6
11359 fi
11360 done
11361
11362 fi
11363 fi
11364
11365
11366
11367 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11368 echo "configure:11369: checking for finite declaration" >&5
11369 if test x${glibcpp_cv_func_finite_use+set} != xset; then
11370 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11371 echo $ac_n "(cached) $ac_c" 1>&6
11372 else
11373
11374
11375 ac_ext=C
11376 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11377 ac_cpp='$CXXCPP $CPPFLAGS'
11378 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11379 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11380 cross_compiling=$ac_cv_prog_cxx_cross
11381
11382 cat > conftest.$ac_ext <<EOF
11383 #line 11384 "configure"
11384 #include "confdefs.h"
11385 #include <math.h>
11386 #ifdef HAVE_IEEEFP_H
11387 #include <ieeefp.h>
11388 #endif
11389
11390 int main() {
11391 finite(0);
11392 ; return 0; }
11393 EOF
11394 if { (eval echo configure:11395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11395 rm -rf conftest*
11396 glibcpp_cv_func_finite_use=yes
11397 else
11398 echo "configure: failed program was:" >&5
11399 cat conftest.$ac_ext >&5
11400 rm -rf conftest*
11401 glibcpp_cv_func_finite_use=no
11402 fi
11403 rm -f conftest*
11404 ac_ext=c
11405 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11406 ac_cpp='$CPP $CPPFLAGS'
11407 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11408 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11409 cross_compiling=$ac_cv_prog_cc_cross
11410
11411
11412 fi
11413
11414 fi
11415 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11416
11417 if test x$glibcpp_cv_func_finite_use = x"yes"; then
11418 for ac_func in finite
11419 do
11420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11421 echo "configure:11422: checking for $ac_func" >&5
11422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11423 echo $ac_n "(cached) $ac_c" 1>&6
11424 else
11425 cat > conftest.$ac_ext <<EOF
11426 #line 11427 "configure"
11427 #include "confdefs.h"
11428 /* System header to define __stub macros and hopefully few prototypes,
11429 which can conflict with char $ac_func(); below. */
11430 #include <assert.h>
11431 /* Override any gcc2 internal prototype to avoid an error. */
11432 /* We use char because int might match the return type of a gcc2
11433 builtin and then its argument prototype would still apply. */
11434 char $ac_func();
11435
11436 int main() {
11437
11438 /* The GNU C library defines this for functions which it implements
11439 to always fail with ENOSYS. Some functions are actually named
11440 something starting with __ and the normal name is an alias. */
11441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11442 choke me
11443 #else
11444 $ac_func();
11445 #endif
11446
11447 ; return 0; }
11448 EOF
11449 if { (eval echo configure:11450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11450 rm -rf conftest*
11451 eval "ac_cv_func_$ac_func=yes"
11452 else
11453 echo "configure: failed program was:" >&5
11454 cat conftest.$ac_ext >&5
11455 rm -rf conftest*
11456 eval "ac_cv_func_$ac_func=no"
11457 fi
11458 rm -f conftest*
11459 fi
11460
11461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11462 echo "$ac_t""yes" 1>&6
11463 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11464 cat >> confdefs.h <<EOF
11465 #define $ac_tr_func 1
11466 EOF
11467
11468 else
11469 echo "$ac_t""no" 1>&6
11470 fi
11471 done
11472
11473 else
11474
11475 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11476 echo "configure:11477: checking for _finite declaration" >&5
11477 if test x${glibcpp_cv_func__finite_use+set} != xset; then
11478 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11479 echo $ac_n "(cached) $ac_c" 1>&6
11480 else
11481
11482
11483 ac_ext=C
11484 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11485 ac_cpp='$CXXCPP $CPPFLAGS'
11486 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11487 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11488 cross_compiling=$ac_cv_prog_cxx_cross
11489
11490 cat > conftest.$ac_ext <<EOF
11491 #line 11492 "configure"
11492 #include "confdefs.h"
11493 #include <math.h>
11494 #ifdef HAVE_IEEEFP_H
11495 #include <ieeefp.h>
11496 #endif
11497
11498 int main() {
11499 _finite(0);
11500 ; return 0; }
11501 EOF
11502 if { (eval echo configure:11503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11503 rm -rf conftest*
11504 glibcpp_cv_func__finite_use=yes
11505 else
11506 echo "configure: failed program was:" >&5
11507 cat conftest.$ac_ext >&5
11508 rm -rf conftest*
11509 glibcpp_cv_func__finite_use=no
11510 fi
11511 rm -f conftest*
11512 ac_ext=c
11513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11514 ac_cpp='$CPP $CPPFLAGS'
11515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11517 cross_compiling=$ac_cv_prog_cc_cross
11518
11519
11520 fi
11521
11522 fi
11523 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11524
11525 if test x$glibcpp_cv_func__finite_use = x"yes"; then
11526 for ac_func in _finite
11527 do
11528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11529 echo "configure:11530: checking for $ac_func" >&5
11530 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11531 echo $ac_n "(cached) $ac_c" 1>&6
11532 else
11533 cat > conftest.$ac_ext <<EOF
11534 #line 11535 "configure"
11535 #include "confdefs.h"
11536 /* System header to define __stub macros and hopefully few prototypes,
11537 which can conflict with char $ac_func(); below. */
11538 #include <assert.h>
11539 /* Override any gcc2 internal prototype to avoid an error. */
11540 /* We use char because int might match the return type of a gcc2
11541 builtin and then its argument prototype would still apply. */
11542 char $ac_func();
11543
11544 int main() {
11545
11546 /* The GNU C library defines this for functions which it implements
11547 to always fail with ENOSYS. Some functions are actually named
11548 something starting with __ and the normal name is an alias. */
11549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11550 choke me
11551 #else
11552 $ac_func();
11553 #endif
11554
11555 ; return 0; }
11556 EOF
11557 if { (eval echo configure:11558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11558 rm -rf conftest*
11559 eval "ac_cv_func_$ac_func=yes"
11560 else
11561 echo "configure: failed program was:" >&5
11562 cat conftest.$ac_ext >&5
11563 rm -rf conftest*
11564 eval "ac_cv_func_$ac_func=no"
11565 fi
11566 rm -f conftest*
11567 fi
11568
11569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11570 echo "$ac_t""yes" 1>&6
11571 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11572 cat >> confdefs.h <<EOF
11573 #define $ac_tr_func 1
11574 EOF
11575
11576 else
11577 echo "$ac_t""no" 1>&6
11578 fi
11579 done
11580
11581 fi
11582 fi
11583
11584
11585
11586 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11587 echo "configure:11588: checking for copysign declaration" >&5
11588 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11589 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11590 echo $ac_n "(cached) $ac_c" 1>&6
11591 else
11592
11593
11594 ac_ext=C
11595 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11596 ac_cpp='$CXXCPP $CPPFLAGS'
11597 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11598 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11599 cross_compiling=$ac_cv_prog_cxx_cross
11600
11601 cat > conftest.$ac_ext <<EOF
11602 #line 11603 "configure"
11603 #include "confdefs.h"
11604 #include <math.h>
11605 int main() {
11606 copysign(0, 0);
11607 ; return 0; }
11608 EOF
11609 if { (eval echo configure:11610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11610 rm -rf conftest*
11611 glibcpp_cv_func_copysign_use=yes
11612 else
11613 echo "configure: failed program was:" >&5
11614 cat conftest.$ac_ext >&5
11615 rm -rf conftest*
11616 glibcpp_cv_func_copysign_use=no
11617 fi
11618 rm -f conftest*
11619 ac_ext=c
11620 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11621 ac_cpp='$CPP $CPPFLAGS'
11622 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11623 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11624 cross_compiling=$ac_cv_prog_cc_cross
11625
11626
11627 fi
11628
11629 fi
11630 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11631
11632 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11633 for ac_func in copysign
11634 do
11635 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11636 echo "configure:11637: checking for $ac_func" >&5
11637 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11638 echo $ac_n "(cached) $ac_c" 1>&6
11639 else
11640 cat > conftest.$ac_ext <<EOF
11641 #line 11642 "configure"
11642 #include "confdefs.h"
11643 /* System header to define __stub macros and hopefully few prototypes,
11644 which can conflict with char $ac_func(); below. */
11645 #include <assert.h>
11646 /* Override any gcc2 internal prototype to avoid an error. */
11647 /* We use char because int might match the return type of a gcc2
11648 builtin and then its argument prototype would still apply. */
11649 char $ac_func();
11650
11651 int main() {
11652
11653 /* The GNU C library defines this for functions which it implements
11654 to always fail with ENOSYS. Some functions are actually named
11655 something starting with __ and the normal name is an alias. */
11656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11657 choke me
11658 #else
11659 $ac_func();
11660 #endif
11661
11662 ; return 0; }
11663 EOF
11664 if { (eval echo configure:11665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11665 rm -rf conftest*
11666 eval "ac_cv_func_$ac_func=yes"
11667 else
11668 echo "configure: failed program was:" >&5
11669 cat conftest.$ac_ext >&5
11670 rm -rf conftest*
11671 eval "ac_cv_func_$ac_func=no"
11672 fi
11673 rm -f conftest*
11674 fi
11675
11676 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11677 echo "$ac_t""yes" 1>&6
11678 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11679 cat >> confdefs.h <<EOF
11680 #define $ac_tr_func 1
11681 EOF
11682
11683 else
11684 echo "$ac_t""no" 1>&6
11685 fi
11686 done
11687
11688 else
11689
11690 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11691 echo "configure:11692: checking for _copysign declaration" >&5
11692 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11693 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11694 echo $ac_n "(cached) $ac_c" 1>&6
11695 else
11696
11697
11698 ac_ext=C
11699 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11700 ac_cpp='$CXXCPP $CPPFLAGS'
11701 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11702 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11703 cross_compiling=$ac_cv_prog_cxx_cross
11704
11705 cat > conftest.$ac_ext <<EOF
11706 #line 11707 "configure"
11707 #include "confdefs.h"
11708 #include <math.h>
11709 int main() {
11710 _copysign(0, 0);
11711 ; return 0; }
11712 EOF
11713 if { (eval echo configure:11714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11714 rm -rf conftest*
11715 glibcpp_cv_func__copysign_use=yes
11716 else
11717 echo "configure: failed program was:" >&5
11718 cat conftest.$ac_ext >&5
11719 rm -rf conftest*
11720 glibcpp_cv_func__copysign_use=no
11721 fi
11722 rm -f conftest*
11723 ac_ext=c
11724 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11725 ac_cpp='$CPP $CPPFLAGS'
11726 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11727 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11728 cross_compiling=$ac_cv_prog_cc_cross
11729
11730
11731 fi
11732
11733 fi
11734 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11735
11736 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11737 for ac_func in _copysign
11738 do
11739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11740 echo "configure:11741: checking for $ac_func" >&5
11741 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11742 echo $ac_n "(cached) $ac_c" 1>&6
11743 else
11744 cat > conftest.$ac_ext <<EOF
11745 #line 11746 "configure"
11746 #include "confdefs.h"
11747 /* System header to define __stub macros and hopefully few prototypes,
11748 which can conflict with char $ac_func(); below. */
11749 #include <assert.h>
11750 /* Override any gcc2 internal prototype to avoid an error. */
11751 /* We use char because int might match the return type of a gcc2
11752 builtin and then its argument prototype would still apply. */
11753 char $ac_func();
11754
11755 int main() {
11756
11757 /* The GNU C library defines this for functions which it implements
11758 to always fail with ENOSYS. Some functions are actually named
11759 something starting with __ and the normal name is an alias. */
11760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11761 choke me
11762 #else
11763 $ac_func();
11764 #endif
11765
11766 ; return 0; }
11767 EOF
11768 if { (eval echo configure:11769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11769 rm -rf conftest*
11770 eval "ac_cv_func_$ac_func=yes"
11771 else
11772 echo "configure: failed program was:" >&5
11773 cat conftest.$ac_ext >&5
11774 rm -rf conftest*
11775 eval "ac_cv_func_$ac_func=no"
11776 fi
11777 rm -f conftest*
11778 fi
11779
11780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11781 echo "$ac_t""yes" 1>&6
11782 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11783 cat >> confdefs.h <<EOF
11784 #define $ac_tr_func 1
11785 EOF
11786
11787 else
11788 echo "$ac_t""no" 1>&6
11789 fi
11790 done
11791
11792 fi
11793 fi
11794
11795
11796
11797 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11798 echo "configure:11799: checking for sincos declaration" >&5
11799 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11800 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11801 echo $ac_n "(cached) $ac_c" 1>&6
11802 else
11803
11804
11805 ac_ext=C
11806 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11807 ac_cpp='$CXXCPP $CPPFLAGS'
11808 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11809 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11810 cross_compiling=$ac_cv_prog_cxx_cross
11811
11812 cat > conftest.$ac_ext <<EOF
11813 #line 11814 "configure"
11814 #include "confdefs.h"
11815 #include <math.h>
11816 int main() {
11817 sincos(0, 0, 0);
11818 ; return 0; }
11819 EOF
11820 if { (eval echo configure:11821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11821 rm -rf conftest*
11822 glibcpp_cv_func_sincos_use=yes
11823 else
11824 echo "configure: failed program was:" >&5
11825 cat conftest.$ac_ext >&5
11826 rm -rf conftest*
11827 glibcpp_cv_func_sincos_use=no
11828 fi
11829 rm -f conftest*
11830 ac_ext=c
11831 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11832 ac_cpp='$CPP $CPPFLAGS'
11833 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11834 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11835 cross_compiling=$ac_cv_prog_cc_cross
11836
11837
11838 fi
11839
11840 fi
11841 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11842
11843 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11844 for ac_func in sincos
11845 do
11846 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11847 echo "configure:11848: checking for $ac_func" >&5
11848 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11849 echo $ac_n "(cached) $ac_c" 1>&6
11850 else
11851 cat > conftest.$ac_ext <<EOF
11852 #line 11853 "configure"
11853 #include "confdefs.h"
11854 /* System header to define __stub macros and hopefully few prototypes,
11855 which can conflict with char $ac_func(); below. */
11856 #include <assert.h>
11857 /* Override any gcc2 internal prototype to avoid an error. */
11858 /* We use char because int might match the return type of a gcc2
11859 builtin and then its argument prototype would still apply. */
11860 char $ac_func();
11861
11862 int main() {
11863
11864 /* The GNU C library defines this for functions which it implements
11865 to always fail with ENOSYS. Some functions are actually named
11866 something starting with __ and the normal name is an alias. */
11867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11868 choke me
11869 #else
11870 $ac_func();
11871 #endif
11872
11873 ; return 0; }
11874 EOF
11875 if { (eval echo configure:11876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11876 rm -rf conftest*
11877 eval "ac_cv_func_$ac_func=yes"
11878 else
11879 echo "configure: failed program was:" >&5
11880 cat conftest.$ac_ext >&5
11881 rm -rf conftest*
11882 eval "ac_cv_func_$ac_func=no"
11883 fi
11884 rm -f conftest*
11885 fi
11886
11887 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11888 echo "$ac_t""yes" 1>&6
11889 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11890 cat >> confdefs.h <<EOF
11891 #define $ac_tr_func 1
11892 EOF
11893
11894 else
11895 echo "$ac_t""no" 1>&6
11896 fi
11897 done
11898
11899 else
11900
11901 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11902 echo "configure:11903: checking for _sincos declaration" >&5
11903 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11904 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11905 echo $ac_n "(cached) $ac_c" 1>&6
11906 else
11907
11908
11909 ac_ext=C
11910 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11911 ac_cpp='$CXXCPP $CPPFLAGS'
11912 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11913 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11914 cross_compiling=$ac_cv_prog_cxx_cross
11915
11916 cat > conftest.$ac_ext <<EOF
11917 #line 11918 "configure"
11918 #include "confdefs.h"
11919 #include <math.h>
11920 int main() {
11921 _sincos(0, 0, 0);
11922 ; return 0; }
11923 EOF
11924 if { (eval echo configure:11925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11925 rm -rf conftest*
11926 glibcpp_cv_func__sincos_use=yes
11927 else
11928 echo "configure: failed program was:" >&5
11929 cat conftest.$ac_ext >&5
11930 rm -rf conftest*
11931 glibcpp_cv_func__sincos_use=no
11932 fi
11933 rm -f conftest*
11934 ac_ext=c
11935 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11936 ac_cpp='$CPP $CPPFLAGS'
11937 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11938 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11939 cross_compiling=$ac_cv_prog_cc_cross
11940
11941
11942 fi
11943
11944 fi
11945 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11946
11947 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11948 for ac_func in _sincos
11949 do
11950 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11951 echo "configure:11952: checking for $ac_func" >&5
11952 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11953 echo $ac_n "(cached) $ac_c" 1>&6
11954 else
11955 cat > conftest.$ac_ext <<EOF
11956 #line 11957 "configure"
11957 #include "confdefs.h"
11958 /* System header to define __stub macros and hopefully few prototypes,
11959 which can conflict with char $ac_func(); below. */
11960 #include <assert.h>
11961 /* Override any gcc2 internal prototype to avoid an error. */
11962 /* We use char because int might match the return type of a gcc2
11963 builtin and then its argument prototype would still apply. */
11964 char $ac_func();
11965
11966 int main() {
11967
11968 /* The GNU C library defines this for functions which it implements
11969 to always fail with ENOSYS. Some functions are actually named
11970 something starting with __ and the normal name is an alias. */
11971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11972 choke me
11973 #else
11974 $ac_func();
11975 #endif
11976
11977 ; return 0; }
11978 EOF
11979 if { (eval echo configure:11980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11980 rm -rf conftest*
11981 eval "ac_cv_func_$ac_func=yes"
11982 else
11983 echo "configure: failed program was:" >&5
11984 cat conftest.$ac_ext >&5
11985 rm -rf conftest*
11986 eval "ac_cv_func_$ac_func=no"
11987 fi
11988 rm -f conftest*
11989 fi
11990
11991 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11992 echo "$ac_t""yes" 1>&6
11993 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11994 cat >> confdefs.h <<EOF
11995 #define $ac_tr_func 1
11996 EOF
11997
11998 else
11999 echo "$ac_t""no" 1>&6
12000 fi
12001 done
12002
12003 fi
12004 fi
12005
12006
12007
12008 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
12009 echo "configure:12010: checking for fpclass declaration" >&5
12010 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
12011 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
12012 echo $ac_n "(cached) $ac_c" 1>&6
12013 else
12014
12015
12016 ac_ext=C
12017 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12018 ac_cpp='$CXXCPP $CPPFLAGS'
12019 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12020 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12021 cross_compiling=$ac_cv_prog_cxx_cross
12022
12023 cat > conftest.$ac_ext <<EOF
12024 #line 12025 "configure"
12025 #include "confdefs.h"
12026 #include <math.h>
12027 #ifdef HAVE_IEEEFP_H
12028 #include <ieeefp.h>
12029 #endif
12030
12031 int main() {
12032 fpclass(0);
12033 ; return 0; }
12034 EOF
12035 if { (eval echo configure:12036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12036 rm -rf conftest*
12037 glibcpp_cv_func_fpclass_use=yes
12038 else
12039 echo "configure: failed program was:" >&5
12040 cat conftest.$ac_ext >&5
12041 rm -rf conftest*
12042 glibcpp_cv_func_fpclass_use=no
12043 fi
12044 rm -f conftest*
12045 ac_ext=c
12046 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12047 ac_cpp='$CPP $CPPFLAGS'
12048 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12049 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12050 cross_compiling=$ac_cv_prog_cc_cross
12051
12052
12053 fi
12054
12055 fi
12056 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
12057
12058 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
12059 for ac_func in fpclass
12060 do
12061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12062 echo "configure:12063: checking for $ac_func" >&5
12063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12064 echo $ac_n "(cached) $ac_c" 1>&6
12065 else
12066 cat > conftest.$ac_ext <<EOF
12067 #line 12068 "configure"
12068 #include "confdefs.h"
12069 /* System header to define __stub macros and hopefully few prototypes,
12070 which can conflict with char $ac_func(); below. */
12071 #include <assert.h>
12072 /* Override any gcc2 internal prototype to avoid an error. */
12073 /* We use char because int might match the return type of a gcc2
12074 builtin and then its argument prototype would still apply. */
12075 char $ac_func();
12076
12077 int main() {
12078
12079 /* The GNU C library defines this for functions which it implements
12080 to always fail with ENOSYS. Some functions are actually named
12081 something starting with __ and the normal name is an alias. */
12082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12083 choke me
12084 #else
12085 $ac_func();
12086 #endif
12087
12088 ; return 0; }
12089 EOF
12090 if { (eval echo configure:12091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12091 rm -rf conftest*
12092 eval "ac_cv_func_$ac_func=yes"
12093 else
12094 echo "configure: failed program was:" >&5
12095 cat conftest.$ac_ext >&5
12096 rm -rf conftest*
12097 eval "ac_cv_func_$ac_func=no"
12098 fi
12099 rm -f conftest*
12100 fi
12101
12102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12103 echo "$ac_t""yes" 1>&6
12104 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12105 cat >> confdefs.h <<EOF
12106 #define $ac_tr_func 1
12107 EOF
12108
12109 else
12110 echo "$ac_t""no" 1>&6
12111 fi
12112 done
12113
12114 else
12115
12116 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
12117 echo "configure:12118: checking for _fpclass declaration" >&5
12118 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
12119 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
12120 echo $ac_n "(cached) $ac_c" 1>&6
12121 else
12122
12123
12124 ac_ext=C
12125 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12126 ac_cpp='$CXXCPP $CPPFLAGS'
12127 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12128 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12129 cross_compiling=$ac_cv_prog_cxx_cross
12130
12131 cat > conftest.$ac_ext <<EOF
12132 #line 12133 "configure"
12133 #include "confdefs.h"
12134 #include <math.h>
12135 #ifdef HAVE_IEEEFP_H
12136 #include <ieeefp.h>
12137 #endif
12138
12139 int main() {
12140 _fpclass(0);
12141 ; return 0; }
12142 EOF
12143 if { (eval echo configure:12144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12144 rm -rf conftest*
12145 glibcpp_cv_func__fpclass_use=yes
12146 else
12147 echo "configure: failed program was:" >&5
12148 cat conftest.$ac_ext >&5
12149 rm -rf conftest*
12150 glibcpp_cv_func__fpclass_use=no
12151 fi
12152 rm -f conftest*
12153 ac_ext=c
12154 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12155 ac_cpp='$CPP $CPPFLAGS'
12156 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12157 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12158 cross_compiling=$ac_cv_prog_cc_cross
12159
12160
12161 fi
12162
12163 fi
12164 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
12165
12166 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
12167 for ac_func in _fpclass
12168 do
12169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12170 echo "configure:12171: checking for $ac_func" >&5
12171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12172 echo $ac_n "(cached) $ac_c" 1>&6
12173 else
12174 cat > conftest.$ac_ext <<EOF
12175 #line 12176 "configure"
12176 #include "confdefs.h"
12177 /* System header to define __stub macros and hopefully few prototypes,
12178 which can conflict with char $ac_func(); below. */
12179 #include <assert.h>
12180 /* Override any gcc2 internal prototype to avoid an error. */
12181 /* We use char because int might match the return type of a gcc2
12182 builtin and then its argument prototype would still apply. */
12183 char $ac_func();
12184
12185 int main() {
12186
12187 /* The GNU C library defines this for functions which it implements
12188 to always fail with ENOSYS. Some functions are actually named
12189 something starting with __ and the normal name is an alias. */
12190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12191 choke me
12192 #else
12193 $ac_func();
12194 #endif
12195
12196 ; return 0; }
12197 EOF
12198 if { (eval echo configure:12199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12199 rm -rf conftest*
12200 eval "ac_cv_func_$ac_func=yes"
12201 else
12202 echo "configure: failed program was:" >&5
12203 cat conftest.$ac_ext >&5
12204 rm -rf conftest*
12205 eval "ac_cv_func_$ac_func=no"
12206 fi
12207 rm -f conftest*
12208 fi
12209
12210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12211 echo "$ac_t""yes" 1>&6
12212 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12213 cat >> confdefs.h <<EOF
12214 #define $ac_tr_func 1
12215 EOF
12216
12217 else
12218 echo "$ac_t""no" 1>&6
12219 fi
12220 done
12221
12222 fi
12223 fi
12224
12225
12226
12227 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
12228 echo "configure:12229: checking for qfpclass declaration" >&5
12229 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
12230 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
12231 echo $ac_n "(cached) $ac_c" 1>&6
12232 else
12233
12234
12235 ac_ext=C
12236 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12237 ac_cpp='$CXXCPP $CPPFLAGS'
12238 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12239 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12240 cross_compiling=$ac_cv_prog_cxx_cross
12241
12242 cat > conftest.$ac_ext <<EOF
12243 #line 12244 "configure"
12244 #include "confdefs.h"
12245 #include <math.h>
12246 #ifdef HAVE_IEEEFP_H
12247 #include <ieeefp.h>
12248 #endif
12249
12250 int main() {
12251 qfpclass(0);
12252 ; return 0; }
12253 EOF
12254 if { (eval echo configure:12255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12255 rm -rf conftest*
12256 glibcpp_cv_func_qfpclass_use=yes
12257 else
12258 echo "configure: failed program was:" >&5
12259 cat conftest.$ac_ext >&5
12260 rm -rf conftest*
12261 glibcpp_cv_func_qfpclass_use=no
12262 fi
12263 rm -f conftest*
12264 ac_ext=c
12265 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12266 ac_cpp='$CPP $CPPFLAGS'
12267 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12268 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12269 cross_compiling=$ac_cv_prog_cc_cross
12270
12271
12272 fi
12273
12274 fi
12275 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12276
12277 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12278 for ac_func in qfpclass
12279 do
12280 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12281 echo "configure:12282: checking for $ac_func" >&5
12282 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12283 echo $ac_n "(cached) $ac_c" 1>&6
12284 else
12285 cat > conftest.$ac_ext <<EOF
12286 #line 12287 "configure"
12287 #include "confdefs.h"
12288 /* System header to define __stub macros and hopefully few prototypes,
12289 which can conflict with char $ac_func(); below. */
12290 #include <assert.h>
12291 /* Override any gcc2 internal prototype to avoid an error. */
12292 /* We use char because int might match the return type of a gcc2
12293 builtin and then its argument prototype would still apply. */
12294 char $ac_func();
12295
12296 int main() {
12297
12298 /* The GNU C library defines this for functions which it implements
12299 to always fail with ENOSYS. Some functions are actually named
12300 something starting with __ and the normal name is an alias. */
12301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12302 choke me
12303 #else
12304 $ac_func();
12305 #endif
12306
12307 ; return 0; }
12308 EOF
12309 if { (eval echo configure:12310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12310 rm -rf conftest*
12311 eval "ac_cv_func_$ac_func=yes"
12312 else
12313 echo "configure: failed program was:" >&5
12314 cat conftest.$ac_ext >&5
12315 rm -rf conftest*
12316 eval "ac_cv_func_$ac_func=no"
12317 fi
12318 rm -f conftest*
12319 fi
12320
12321 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12322 echo "$ac_t""yes" 1>&6
12323 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12324 cat >> confdefs.h <<EOF
12325 #define $ac_tr_func 1
12326 EOF
12327
12328 else
12329 echo "$ac_t""no" 1>&6
12330 fi
12331 done
12332
12333 else
12334
12335 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12336 echo "configure:12337: checking for _qfpclass declaration" >&5
12337 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12338 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12339 echo $ac_n "(cached) $ac_c" 1>&6
12340 else
12341
12342
12343 ac_ext=C
12344 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12345 ac_cpp='$CXXCPP $CPPFLAGS'
12346 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12347 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12348 cross_compiling=$ac_cv_prog_cxx_cross
12349
12350 cat > conftest.$ac_ext <<EOF
12351 #line 12352 "configure"
12352 #include "confdefs.h"
12353 #include <math.h>
12354 #ifdef HAVE_IEEEFP_H
12355 #include <ieeefp.h>
12356 #endif
12357
12358 int main() {
12359 _qfpclass(0);
12360 ; return 0; }
12361 EOF
12362 if { (eval echo configure:12363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12363 rm -rf conftest*
12364 glibcpp_cv_func__qfpclass_use=yes
12365 else
12366 echo "configure: failed program was:" >&5
12367 cat conftest.$ac_ext >&5
12368 rm -rf conftest*
12369 glibcpp_cv_func__qfpclass_use=no
12370 fi
12371 rm -f conftest*
12372 ac_ext=c
12373 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12374 ac_cpp='$CPP $CPPFLAGS'
12375 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12376 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12377 cross_compiling=$ac_cv_prog_cc_cross
12378
12379
12380 fi
12381
12382 fi
12383 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12384
12385 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12386 for ac_func in _qfpclass
12387 do
12388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12389 echo "configure:12390: checking for $ac_func" >&5
12390 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12391 echo $ac_n "(cached) $ac_c" 1>&6
12392 else
12393 cat > conftest.$ac_ext <<EOF
12394 #line 12395 "configure"
12395 #include "confdefs.h"
12396 /* System header to define __stub macros and hopefully few prototypes,
12397 which can conflict with char $ac_func(); below. */
12398 #include <assert.h>
12399 /* Override any gcc2 internal prototype to avoid an error. */
12400 /* We use char because int might match the return type of a gcc2
12401 builtin and then its argument prototype would still apply. */
12402 char $ac_func();
12403
12404 int main() {
12405
12406 /* The GNU C library defines this for functions which it implements
12407 to always fail with ENOSYS. Some functions are actually named
12408 something starting with __ and the normal name is an alias. */
12409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12410 choke me
12411 #else
12412 $ac_func();
12413 #endif
12414
12415 ; return 0; }
12416 EOF
12417 if { (eval echo configure:12418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12418 rm -rf conftest*
12419 eval "ac_cv_func_$ac_func=yes"
12420 else
12421 echo "configure: failed program was:" >&5
12422 cat conftest.$ac_ext >&5
12423 rm -rf conftest*
12424 eval "ac_cv_func_$ac_func=no"
12425 fi
12426 rm -f conftest*
12427 fi
12428
12429 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12430 echo "$ac_t""yes" 1>&6
12431 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12432 cat >> confdefs.h <<EOF
12433 #define $ac_tr_func 1
12434 EOF
12435
12436 else
12437 echo "$ac_t""no" 1>&6
12438 fi
12439 done
12440
12441 fi
12442 fi
12443
12444
12445
12446 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12447 echo "configure:12448: checking for hypot declaration" >&5
12448 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12449 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12450 echo $ac_n "(cached) $ac_c" 1>&6
12451 else
12452
12453
12454 ac_ext=C
12455 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12456 ac_cpp='$CXXCPP $CPPFLAGS'
12457 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12458 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12459 cross_compiling=$ac_cv_prog_cxx_cross
12460
12461 cat > conftest.$ac_ext <<EOF
12462 #line 12463 "configure"
12463 #include "confdefs.h"
12464 #include <math.h>
12465 int main() {
12466 hypot(0, 0);
12467 ; return 0; }
12468 EOF
12469 if { (eval echo configure:12470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12470 rm -rf conftest*
12471 glibcpp_cv_func_hypot_use=yes
12472 else
12473 echo "configure: failed program was:" >&5
12474 cat conftest.$ac_ext >&5
12475 rm -rf conftest*
12476 glibcpp_cv_func_hypot_use=no
12477 fi
12478 rm -f conftest*
12479 ac_ext=c
12480 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12481 ac_cpp='$CPP $CPPFLAGS'
12482 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12483 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12484 cross_compiling=$ac_cv_prog_cc_cross
12485
12486
12487 fi
12488
12489 fi
12490 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12491
12492 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12493 for ac_func in hypot
12494 do
12495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12496 echo "configure:12497: checking for $ac_func" >&5
12497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12498 echo $ac_n "(cached) $ac_c" 1>&6
12499 else
12500 cat > conftest.$ac_ext <<EOF
12501 #line 12502 "configure"
12502 #include "confdefs.h"
12503 /* System header to define __stub macros and hopefully few prototypes,
12504 which can conflict with char $ac_func(); below. */
12505 #include <assert.h>
12506 /* Override any gcc2 internal prototype to avoid an error. */
12507 /* We use char because int might match the return type of a gcc2
12508 builtin and then its argument prototype would still apply. */
12509 char $ac_func();
12510
12511 int main() {
12512
12513 /* The GNU C library defines this for functions which it implements
12514 to always fail with ENOSYS. Some functions are actually named
12515 something starting with __ and the normal name is an alias. */
12516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12517 choke me
12518 #else
12519 $ac_func();
12520 #endif
12521
12522 ; return 0; }
12523 EOF
12524 if { (eval echo configure:12525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12525 rm -rf conftest*
12526 eval "ac_cv_func_$ac_func=yes"
12527 else
12528 echo "configure: failed program was:" >&5
12529 cat conftest.$ac_ext >&5
12530 rm -rf conftest*
12531 eval "ac_cv_func_$ac_func=no"
12532 fi
12533 rm -f conftest*
12534 fi
12535
12536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12537 echo "$ac_t""yes" 1>&6
12538 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12539 cat >> confdefs.h <<EOF
12540 #define $ac_tr_func 1
12541 EOF
12542
12543 else
12544 echo "$ac_t""no" 1>&6
12545 fi
12546 done
12547
12548 else
12549
12550 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12551 echo "configure:12552: checking for _hypot declaration" >&5
12552 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12553 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12554 echo $ac_n "(cached) $ac_c" 1>&6
12555 else
12556
12557
12558 ac_ext=C
12559 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12560 ac_cpp='$CXXCPP $CPPFLAGS'
12561 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12562 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12563 cross_compiling=$ac_cv_prog_cxx_cross
12564
12565 cat > conftest.$ac_ext <<EOF
12566 #line 12567 "configure"
12567 #include "confdefs.h"
12568 #include <math.h>
12569 int main() {
12570 _hypot(0, 0);
12571 ; return 0; }
12572 EOF
12573 if { (eval echo configure:12574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12574 rm -rf conftest*
12575 glibcpp_cv_func__hypot_use=yes
12576 else
12577 echo "configure: failed program was:" >&5
12578 cat conftest.$ac_ext >&5
12579 rm -rf conftest*
12580 glibcpp_cv_func__hypot_use=no
12581 fi
12582 rm -f conftest*
12583 ac_ext=c
12584 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12585 ac_cpp='$CPP $CPPFLAGS'
12586 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12587 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12588 cross_compiling=$ac_cv_prog_cc_cross
12589
12590
12591 fi
12592
12593 fi
12594 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12595
12596 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12597 for ac_func in _hypot
12598 do
12599 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12600 echo "configure:12601: checking for $ac_func" >&5
12601 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12602 echo $ac_n "(cached) $ac_c" 1>&6
12603 else
12604 cat > conftest.$ac_ext <<EOF
12605 #line 12606 "configure"
12606 #include "confdefs.h"
12607 /* System header to define __stub macros and hopefully few prototypes,
12608 which can conflict with char $ac_func(); below. */
12609 #include <assert.h>
12610 /* Override any gcc2 internal prototype to avoid an error. */
12611 /* We use char because int might match the return type of a gcc2
12612 builtin and then its argument prototype would still apply. */
12613 char $ac_func();
12614
12615 int main() {
12616
12617 /* The GNU C library defines this for functions which it implements
12618 to always fail with ENOSYS. Some functions are actually named
12619 something starting with __ and the normal name is an alias. */
12620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12621 choke me
12622 #else
12623 $ac_func();
12624 #endif
12625
12626 ; return 0; }
12627 EOF
12628 if { (eval echo configure:12629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12629 rm -rf conftest*
12630 eval "ac_cv_func_$ac_func=yes"
12631 else
12632 echo "configure: failed program was:" >&5
12633 cat conftest.$ac_ext >&5
12634 rm -rf conftest*
12635 eval "ac_cv_func_$ac_func=no"
12636 fi
12637 rm -f conftest*
12638 fi
12639
12640 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12641 echo "$ac_t""yes" 1>&6
12642 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12643 cat >> confdefs.h <<EOF
12644 #define $ac_tr_func 1
12645 EOF
12646
12647 else
12648 echo "$ac_t""no" 1>&6
12649 fi
12650 done
12651
12652 fi
12653 fi
12654
12655
12656
12657 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12658 echo "configure:12659: checking for float trig functions" >&5
12659 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12660 echo $ac_n "(cached) $ac_c" 1>&6
12661 else
12662
12663
12664 ac_ext=C
12665 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12666 ac_cpp='$CXXCPP $CPPFLAGS'
12667 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12668 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12669 cross_compiling=$ac_cv_prog_cxx_cross
12670
12671 cat > conftest.$ac_ext <<EOF
12672 #line 12673 "configure"
12673 #include "confdefs.h"
12674 #include <math.h>
12675 int main() {
12676 `for x in acosf asinf atanf \
12677 cosf sinf tanf \
12678 coshf sinhf tanhf; do echo "$x (0);"; done`
12679 ; return 0; }
12680 EOF
12681 if { (eval echo configure:12682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12682 rm -rf conftest*
12683 glibcpp_cv_func_float_trig_use=yes
12684 else
12685 echo "configure: failed program was:" >&5
12686 cat conftest.$ac_ext >&5
12687 rm -rf conftest*
12688 glibcpp_cv_func_float_trig_use=no
12689 fi
12690 rm -f conftest*
12691 ac_ext=c
12692 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12693 ac_cpp='$CPP $CPPFLAGS'
12694 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12695 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12696 cross_compiling=$ac_cv_prog_cc_cross
12697
12698 fi
12699
12700 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12701 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12702 for ac_func in acosf asinf atanf \
12703 cosf sinf tanf \
12704 coshf sinhf tanhf
12705 do
12706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12707 echo "configure:12708: checking for $ac_func" >&5
12708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12709 echo $ac_n "(cached) $ac_c" 1>&6
12710 else
12711 cat > conftest.$ac_ext <<EOF
12712 #line 12713 "configure"
12713 #include "confdefs.h"
12714 /* System header to define __stub macros and hopefully few prototypes,
12715 which can conflict with char $ac_func(); below. */
12716 #include <assert.h>
12717 /* Override any gcc2 internal prototype to avoid an error. */
12718 /* We use char because int might match the return type of a gcc2
12719 builtin and then its argument prototype would still apply. */
12720 char $ac_func();
12721
12722 int main() {
12723
12724 /* The GNU C library defines this for functions which it implements
12725 to always fail with ENOSYS. Some functions are actually named
12726 something starting with __ and the normal name is an alias. */
12727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12728 choke me
12729 #else
12730 $ac_func();
12731 #endif
12732
12733 ; return 0; }
12734 EOF
12735 if { (eval echo configure:12736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12736 rm -rf conftest*
12737 eval "ac_cv_func_$ac_func=yes"
12738 else
12739 echo "configure: failed program was:" >&5
12740 cat conftest.$ac_ext >&5
12741 rm -rf conftest*
12742 eval "ac_cv_func_$ac_func=no"
12743 fi
12744 rm -f conftest*
12745 fi
12746
12747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12748 echo "$ac_t""yes" 1>&6
12749 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12750 cat >> confdefs.h <<EOF
12751 #define $ac_tr_func 1
12752 EOF
12753
12754 else
12755 echo "$ac_t""no" 1>&6
12756 fi
12757 done
12758
12759 fi
12760
12761
12762 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12763 echo "configure:12764: checking for float round functions" >&5
12764 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12765 echo $ac_n "(cached) $ac_c" 1>&6
12766 else
12767
12768
12769 ac_ext=C
12770 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12771 ac_cpp='$CXXCPP $CPPFLAGS'
12772 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12773 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12774 cross_compiling=$ac_cv_prog_cxx_cross
12775
12776 cat > conftest.$ac_ext <<EOF
12777 #line 12778 "configure"
12778 #include "confdefs.h"
12779 #include <math.h>
12780 int main() {
12781 `for x in ceilf floorf; do echo "$x (0);"; done`
12782 ; return 0; }
12783 EOF
12784 if { (eval echo configure:12785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12785 rm -rf conftest*
12786 glibcpp_cv_func_float_round_use=yes
12787 else
12788 echo "configure: failed program was:" >&5
12789 cat conftest.$ac_ext >&5
12790 rm -rf conftest*
12791 glibcpp_cv_func_float_round_use=no
12792 fi
12793 rm -f conftest*
12794 ac_ext=c
12795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12796 ac_cpp='$CPP $CPPFLAGS'
12797 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12798 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12799 cross_compiling=$ac_cv_prog_cc_cross
12800
12801 fi
12802
12803 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12804 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12805 for ac_func in ceilf floorf
12806 do
12807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12808 echo "configure:12809: checking for $ac_func" >&5
12809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12810 echo $ac_n "(cached) $ac_c" 1>&6
12811 else
12812 cat > conftest.$ac_ext <<EOF
12813 #line 12814 "configure"
12814 #include "confdefs.h"
12815 /* System header to define __stub macros and hopefully few prototypes,
12816 which can conflict with char $ac_func(); below. */
12817 #include <assert.h>
12818 /* Override any gcc2 internal prototype to avoid an error. */
12819 /* We use char because int might match the return type of a gcc2
12820 builtin and then its argument prototype would still apply. */
12821 char $ac_func();
12822
12823 int main() {
12824
12825 /* The GNU C library defines this for functions which it implements
12826 to always fail with ENOSYS. Some functions are actually named
12827 something starting with __ and the normal name is an alias. */
12828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12829 choke me
12830 #else
12831 $ac_func();
12832 #endif
12833
12834 ; return 0; }
12835 EOF
12836 if { (eval echo configure:12837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12837 rm -rf conftest*
12838 eval "ac_cv_func_$ac_func=yes"
12839 else
12840 echo "configure: failed program was:" >&5
12841 cat conftest.$ac_ext >&5
12842 rm -rf conftest*
12843 eval "ac_cv_func_$ac_func=no"
12844 fi
12845 rm -f conftest*
12846 fi
12847
12848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12849 echo "$ac_t""yes" 1>&6
12850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12851 cat >> confdefs.h <<EOF
12852 #define $ac_tr_func 1
12853 EOF
12854
12855 else
12856 echo "$ac_t""no" 1>&6
12857 fi
12858 done
12859
12860 fi
12861
12862
12863
12864 echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12865 echo "configure:12866: checking for expf declaration" >&5
12866 if test x${glibcpp_cv_func_expf_use+set} != xset; then
12867 if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12868 echo $ac_n "(cached) $ac_c" 1>&6
12869 else
12870
12871
12872 ac_ext=C
12873 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12874 ac_cpp='$CXXCPP $CPPFLAGS'
12875 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12876 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12877 cross_compiling=$ac_cv_prog_cxx_cross
12878
12879 cat > conftest.$ac_ext <<EOF
12880 #line 12881 "configure"
12881 #include "confdefs.h"
12882 #include <math.h>
12883 #ifdef HAVE_IEEEFP_H
12884 #include <ieeefp.h>
12885 #endif
12886
12887 int main() {
12888 expf(0);
12889 ; return 0; }
12890 EOF
12891 if { (eval echo configure:12892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12892 rm -rf conftest*
12893 glibcpp_cv_func_expf_use=yes
12894 else
12895 echo "configure: failed program was:" >&5
12896 cat conftest.$ac_ext >&5
12897 rm -rf conftest*
12898 glibcpp_cv_func_expf_use=no
12899 fi
12900 rm -f conftest*
12901 ac_ext=c
12902 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12903 ac_cpp='$CPP $CPPFLAGS'
12904 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12905 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12906 cross_compiling=$ac_cv_prog_cc_cross
12907
12908
12909 fi
12910
12911 fi
12912 echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12913
12914 if test x$glibcpp_cv_func_expf_use = x"yes"; then
12915 for ac_func in expf
12916 do
12917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12918 echo "configure:12919: checking for $ac_func" >&5
12919 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12920 echo $ac_n "(cached) $ac_c" 1>&6
12921 else
12922 cat > conftest.$ac_ext <<EOF
12923 #line 12924 "configure"
12924 #include "confdefs.h"
12925 /* System header to define __stub macros and hopefully few prototypes,
12926 which can conflict with char $ac_func(); below. */
12927 #include <assert.h>
12928 /* Override any gcc2 internal prototype to avoid an error. */
12929 /* We use char because int might match the return type of a gcc2
12930 builtin and then its argument prototype would still apply. */
12931 char $ac_func();
12932
12933 int main() {
12934
12935 /* The GNU C library defines this for functions which it implements
12936 to always fail with ENOSYS. Some functions are actually named
12937 something starting with __ and the normal name is an alias. */
12938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12939 choke me
12940 #else
12941 $ac_func();
12942 #endif
12943
12944 ; return 0; }
12945 EOF
12946 if { (eval echo configure:12947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12947 rm -rf conftest*
12948 eval "ac_cv_func_$ac_func=yes"
12949 else
12950 echo "configure: failed program was:" >&5
12951 cat conftest.$ac_ext >&5
12952 rm -rf conftest*
12953 eval "ac_cv_func_$ac_func=no"
12954 fi
12955 rm -f conftest*
12956 fi
12957
12958 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12959 echo "$ac_t""yes" 1>&6
12960 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12961 cat >> confdefs.h <<EOF
12962 #define $ac_tr_func 1
12963 EOF
12964
12965 else
12966 echo "$ac_t""no" 1>&6
12967 fi
12968 done
12969
12970 else
12971
12972 echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12973 echo "configure:12974: checking for _expf declaration" >&5
12974 if test x${glibcpp_cv_func__expf_use+set} != xset; then
12975 if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12976 echo $ac_n "(cached) $ac_c" 1>&6
12977 else
12978
12979
12980 ac_ext=C
12981 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12982 ac_cpp='$CXXCPP $CPPFLAGS'
12983 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12984 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12985 cross_compiling=$ac_cv_prog_cxx_cross
12986
12987 cat > conftest.$ac_ext <<EOF
12988 #line 12989 "configure"
12989 #include "confdefs.h"
12990 #include <math.h>
12991 #ifdef HAVE_IEEEFP_H
12992 #include <ieeefp.h>
12993 #endif
12994
12995 int main() {
12996 _expf(0);
12997 ; return 0; }
12998 EOF
12999 if { (eval echo configure:13000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13000 rm -rf conftest*
13001 glibcpp_cv_func__expf_use=yes
13002 else
13003 echo "configure: failed program was:" >&5
13004 cat conftest.$ac_ext >&5
13005 rm -rf conftest*
13006 glibcpp_cv_func__expf_use=no
13007 fi
13008 rm -f conftest*
13009 ac_ext=c
13010 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13011 ac_cpp='$CPP $CPPFLAGS'
13012 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13013 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13014 cross_compiling=$ac_cv_prog_cc_cross
13015
13016
13017 fi
13018
13019 fi
13020 echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
13021
13022 if test x$glibcpp_cv_func__expf_use = x"yes"; then
13023 for ac_func in _expf
13024 do
13025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13026 echo "configure:13027: checking for $ac_func" >&5
13027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13028 echo $ac_n "(cached) $ac_c" 1>&6
13029 else
13030 cat > conftest.$ac_ext <<EOF
13031 #line 13032 "configure"
13032 #include "confdefs.h"
13033 /* System header to define __stub macros and hopefully few prototypes,
13034 which can conflict with char $ac_func(); below. */
13035 #include <assert.h>
13036 /* Override any gcc2 internal prototype to avoid an error. */
13037 /* We use char because int might match the return type of a gcc2
13038 builtin and then its argument prototype would still apply. */
13039 char $ac_func();
13040
13041 int main() {
13042
13043 /* The GNU C library defines this for functions which it implements
13044 to always fail with ENOSYS. Some functions are actually named
13045 something starting with __ and the normal name is an alias. */
13046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13047 choke me
13048 #else
13049 $ac_func();
13050 #endif
13051
13052 ; return 0; }
13053 EOF
13054 if { (eval echo configure:13055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13055 rm -rf conftest*
13056 eval "ac_cv_func_$ac_func=yes"
13057 else
13058 echo "configure: failed program was:" >&5
13059 cat conftest.$ac_ext >&5
13060 rm -rf conftest*
13061 eval "ac_cv_func_$ac_func=no"
13062 fi
13063 rm -f conftest*
13064 fi
13065
13066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13067 echo "$ac_t""yes" 1>&6
13068 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13069 cat >> confdefs.h <<EOF
13070 #define $ac_tr_func 1
13071 EOF
13072
13073 else
13074 echo "$ac_t""no" 1>&6
13075 fi
13076 done
13077
13078 fi
13079 fi
13080
13081
13082
13083 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
13084 echo "configure:13085: checking for isnanf declaration" >&5
13085 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
13086 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
13087 echo $ac_n "(cached) $ac_c" 1>&6
13088 else
13089
13090
13091 ac_ext=C
13092 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13093 ac_cpp='$CXXCPP $CPPFLAGS'
13094 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13095 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13096 cross_compiling=$ac_cv_prog_cxx_cross
13097
13098 cat > conftest.$ac_ext <<EOF
13099 #line 13100 "configure"
13100 #include "confdefs.h"
13101 #include <math.h>
13102 #ifdef HAVE_IEEEFP_H
13103 #include <ieeefp.h>
13104 #endif
13105
13106 int main() {
13107 isnanf(0);
13108 ; return 0; }
13109 EOF
13110 if { (eval echo configure:13111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13111 rm -rf conftest*
13112 glibcpp_cv_func_isnanf_use=yes
13113 else
13114 echo "configure: failed program was:" >&5
13115 cat conftest.$ac_ext >&5
13116 rm -rf conftest*
13117 glibcpp_cv_func_isnanf_use=no
13118 fi
13119 rm -f conftest*
13120 ac_ext=c
13121 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13122 ac_cpp='$CPP $CPPFLAGS'
13123 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13124 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13125 cross_compiling=$ac_cv_prog_cc_cross
13126
13127
13128 fi
13129
13130 fi
13131 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
13132
13133 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
13134 for ac_func in isnanf
13135 do
13136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13137 echo "configure:13138: checking for $ac_func" >&5
13138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13139 echo $ac_n "(cached) $ac_c" 1>&6
13140 else
13141 cat > conftest.$ac_ext <<EOF
13142 #line 13143 "configure"
13143 #include "confdefs.h"
13144 /* System header to define __stub macros and hopefully few prototypes,
13145 which can conflict with char $ac_func(); below. */
13146 #include <assert.h>
13147 /* Override any gcc2 internal prototype to avoid an error. */
13148 /* We use char because int might match the return type of a gcc2
13149 builtin and then its argument prototype would still apply. */
13150 char $ac_func();
13151
13152 int main() {
13153
13154 /* The GNU C library defines this for functions which it implements
13155 to always fail with ENOSYS. Some functions are actually named
13156 something starting with __ and the normal name is an alias. */
13157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13158 choke me
13159 #else
13160 $ac_func();
13161 #endif
13162
13163 ; return 0; }
13164 EOF
13165 if { (eval echo configure:13166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13166 rm -rf conftest*
13167 eval "ac_cv_func_$ac_func=yes"
13168 else
13169 echo "configure: failed program was:" >&5
13170 cat conftest.$ac_ext >&5
13171 rm -rf conftest*
13172 eval "ac_cv_func_$ac_func=no"
13173 fi
13174 rm -f conftest*
13175 fi
13176
13177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13178 echo "$ac_t""yes" 1>&6
13179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13180 cat >> confdefs.h <<EOF
13181 #define $ac_tr_func 1
13182 EOF
13183
13184 else
13185 echo "$ac_t""no" 1>&6
13186 fi
13187 done
13188
13189 else
13190
13191 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
13192 echo "configure:13193: checking for _isnanf declaration" >&5
13193 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
13194 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
13195 echo $ac_n "(cached) $ac_c" 1>&6
13196 else
13197
13198
13199 ac_ext=C
13200 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13201 ac_cpp='$CXXCPP $CPPFLAGS'
13202 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13203 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13204 cross_compiling=$ac_cv_prog_cxx_cross
13205
13206 cat > conftest.$ac_ext <<EOF
13207 #line 13208 "configure"
13208 #include "confdefs.h"
13209 #include <math.h>
13210 #ifdef HAVE_IEEEFP_H
13211 #include <ieeefp.h>
13212 #endif
13213
13214 int main() {
13215 _isnanf(0);
13216 ; return 0; }
13217 EOF
13218 if { (eval echo configure:13219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13219 rm -rf conftest*
13220 glibcpp_cv_func__isnanf_use=yes
13221 else
13222 echo "configure: failed program was:" >&5
13223 cat conftest.$ac_ext >&5
13224 rm -rf conftest*
13225 glibcpp_cv_func__isnanf_use=no
13226 fi
13227 rm -f conftest*
13228 ac_ext=c
13229 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13230 ac_cpp='$CPP $CPPFLAGS'
13231 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13232 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13233 cross_compiling=$ac_cv_prog_cc_cross
13234
13235
13236 fi
13237
13238 fi
13239 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
13240
13241 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13242 for ac_func in _isnanf
13243 do
13244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13245 echo "configure:13246: checking for $ac_func" >&5
13246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13247 echo $ac_n "(cached) $ac_c" 1>&6
13248 else
13249 cat > conftest.$ac_ext <<EOF
13250 #line 13251 "configure"
13251 #include "confdefs.h"
13252 /* System header to define __stub macros and hopefully few prototypes,
13253 which can conflict with char $ac_func(); below. */
13254 #include <assert.h>
13255 /* Override any gcc2 internal prototype to avoid an error. */
13256 /* We use char because int might match the return type of a gcc2
13257 builtin and then its argument prototype would still apply. */
13258 char $ac_func();
13259
13260 int main() {
13261
13262 /* The GNU C library defines this for functions which it implements
13263 to always fail with ENOSYS. Some functions are actually named
13264 something starting with __ and the normal name is an alias. */
13265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13266 choke me
13267 #else
13268 $ac_func();
13269 #endif
13270
13271 ; return 0; }
13272 EOF
13273 if { (eval echo configure:13274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13274 rm -rf conftest*
13275 eval "ac_cv_func_$ac_func=yes"
13276 else
13277 echo "configure: failed program was:" >&5
13278 cat conftest.$ac_ext >&5
13279 rm -rf conftest*
13280 eval "ac_cv_func_$ac_func=no"
13281 fi
13282 rm -f conftest*
13283 fi
13284
13285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13286 echo "$ac_t""yes" 1>&6
13287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13288 cat >> confdefs.h <<EOF
13289 #define $ac_tr_func 1
13290 EOF
13291
13292 else
13293 echo "$ac_t""no" 1>&6
13294 fi
13295 done
13296
13297 fi
13298 fi
13299
13300
13301
13302 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13303 echo "configure:13304: checking for isinff declaration" >&5
13304 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13305 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13306 echo $ac_n "(cached) $ac_c" 1>&6
13307 else
13308
13309
13310 ac_ext=C
13311 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13312 ac_cpp='$CXXCPP $CPPFLAGS'
13313 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13314 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13315 cross_compiling=$ac_cv_prog_cxx_cross
13316
13317 cat > conftest.$ac_ext <<EOF
13318 #line 13319 "configure"
13319 #include "confdefs.h"
13320 #include <math.h>
13321 #ifdef HAVE_IEEEFP_H
13322 #include <ieeefp.h>
13323 #endif
13324
13325 int main() {
13326 isinff(0);
13327 ; return 0; }
13328 EOF
13329 if { (eval echo configure:13330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13330 rm -rf conftest*
13331 glibcpp_cv_func_isinff_use=yes
13332 else
13333 echo "configure: failed program was:" >&5
13334 cat conftest.$ac_ext >&5
13335 rm -rf conftest*
13336 glibcpp_cv_func_isinff_use=no
13337 fi
13338 rm -f conftest*
13339 ac_ext=c
13340 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13341 ac_cpp='$CPP $CPPFLAGS'
13342 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13343 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13344 cross_compiling=$ac_cv_prog_cc_cross
13345
13346
13347 fi
13348
13349 fi
13350 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13351
13352 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13353 for ac_func in isinff
13354 do
13355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13356 echo "configure:13357: checking for $ac_func" >&5
13357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13358 echo $ac_n "(cached) $ac_c" 1>&6
13359 else
13360 cat > conftest.$ac_ext <<EOF
13361 #line 13362 "configure"
13362 #include "confdefs.h"
13363 /* System header to define __stub macros and hopefully few prototypes,
13364 which can conflict with char $ac_func(); below. */
13365 #include <assert.h>
13366 /* Override any gcc2 internal prototype to avoid an error. */
13367 /* We use char because int might match the return type of a gcc2
13368 builtin and then its argument prototype would still apply. */
13369 char $ac_func();
13370
13371 int main() {
13372
13373 /* The GNU C library defines this for functions which it implements
13374 to always fail with ENOSYS. Some functions are actually named
13375 something starting with __ and the normal name is an alias. */
13376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13377 choke me
13378 #else
13379 $ac_func();
13380 #endif
13381
13382 ; return 0; }
13383 EOF
13384 if { (eval echo configure:13385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13385 rm -rf conftest*
13386 eval "ac_cv_func_$ac_func=yes"
13387 else
13388 echo "configure: failed program was:" >&5
13389 cat conftest.$ac_ext >&5
13390 rm -rf conftest*
13391 eval "ac_cv_func_$ac_func=no"
13392 fi
13393 rm -f conftest*
13394 fi
13395
13396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13397 echo "$ac_t""yes" 1>&6
13398 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13399 cat >> confdefs.h <<EOF
13400 #define $ac_tr_func 1
13401 EOF
13402
13403 else
13404 echo "$ac_t""no" 1>&6
13405 fi
13406 done
13407
13408 else
13409
13410 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13411 echo "configure:13412: checking for _isinff declaration" >&5
13412 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13413 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13414 echo $ac_n "(cached) $ac_c" 1>&6
13415 else
13416
13417
13418 ac_ext=C
13419 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13420 ac_cpp='$CXXCPP $CPPFLAGS'
13421 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13422 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13423 cross_compiling=$ac_cv_prog_cxx_cross
13424
13425 cat > conftest.$ac_ext <<EOF
13426 #line 13427 "configure"
13427 #include "confdefs.h"
13428 #include <math.h>
13429 #ifdef HAVE_IEEEFP_H
13430 #include <ieeefp.h>
13431 #endif
13432
13433 int main() {
13434 _isinff(0);
13435 ; return 0; }
13436 EOF
13437 if { (eval echo configure:13438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13438 rm -rf conftest*
13439 glibcpp_cv_func__isinff_use=yes
13440 else
13441 echo "configure: failed program was:" >&5
13442 cat conftest.$ac_ext >&5
13443 rm -rf conftest*
13444 glibcpp_cv_func__isinff_use=no
13445 fi
13446 rm -f conftest*
13447 ac_ext=c
13448 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13449 ac_cpp='$CPP $CPPFLAGS'
13450 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13451 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13452 cross_compiling=$ac_cv_prog_cc_cross
13453
13454
13455 fi
13456
13457 fi
13458 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13459
13460 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13461 for ac_func in _isinff
13462 do
13463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13464 echo "configure:13465: checking for $ac_func" >&5
13465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13466 echo $ac_n "(cached) $ac_c" 1>&6
13467 else
13468 cat > conftest.$ac_ext <<EOF
13469 #line 13470 "configure"
13470 #include "confdefs.h"
13471 /* System header to define __stub macros and hopefully few prototypes,
13472 which can conflict with char $ac_func(); below. */
13473 #include <assert.h>
13474 /* Override any gcc2 internal prototype to avoid an error. */
13475 /* We use char because int might match the return type of a gcc2
13476 builtin and then its argument prototype would still apply. */
13477 char $ac_func();
13478
13479 int main() {
13480
13481 /* The GNU C library defines this for functions which it implements
13482 to always fail with ENOSYS. Some functions are actually named
13483 something starting with __ and the normal name is an alias. */
13484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13485 choke me
13486 #else
13487 $ac_func();
13488 #endif
13489
13490 ; return 0; }
13491 EOF
13492 if { (eval echo configure:13493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13493 rm -rf conftest*
13494 eval "ac_cv_func_$ac_func=yes"
13495 else
13496 echo "configure: failed program was:" >&5
13497 cat conftest.$ac_ext >&5
13498 rm -rf conftest*
13499 eval "ac_cv_func_$ac_func=no"
13500 fi
13501 rm -f conftest*
13502 fi
13503
13504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13505 echo "$ac_t""yes" 1>&6
13506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13507 cat >> confdefs.h <<EOF
13508 #define $ac_tr_func 1
13509 EOF
13510
13511 else
13512 echo "$ac_t""no" 1>&6
13513 fi
13514 done
13515
13516 fi
13517 fi
13518
13519
13520
13521 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13522 echo "configure:13523: checking for atan2f declaration" >&5
13523 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13524 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13525 echo $ac_n "(cached) $ac_c" 1>&6
13526 else
13527
13528
13529 ac_ext=C
13530 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13531 ac_cpp='$CXXCPP $CPPFLAGS'
13532 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13533 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13534 cross_compiling=$ac_cv_prog_cxx_cross
13535
13536 cat > conftest.$ac_ext <<EOF
13537 #line 13538 "configure"
13538 #include "confdefs.h"
13539 #include <math.h>
13540 int main() {
13541 atan2f(0, 0);
13542 ; return 0; }
13543 EOF
13544 if { (eval echo configure:13545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13545 rm -rf conftest*
13546 glibcpp_cv_func_atan2f_use=yes
13547 else
13548 echo "configure: failed program was:" >&5
13549 cat conftest.$ac_ext >&5
13550 rm -rf conftest*
13551 glibcpp_cv_func_atan2f_use=no
13552 fi
13553 rm -f conftest*
13554 ac_ext=c
13555 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13556 ac_cpp='$CPP $CPPFLAGS'
13557 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13558 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13559 cross_compiling=$ac_cv_prog_cc_cross
13560
13561
13562 fi
13563
13564 fi
13565 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13566
13567 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13568 for ac_func in atan2f
13569 do
13570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13571 echo "configure:13572: checking for $ac_func" >&5
13572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13573 echo $ac_n "(cached) $ac_c" 1>&6
13574 else
13575 cat > conftest.$ac_ext <<EOF
13576 #line 13577 "configure"
13577 #include "confdefs.h"
13578 /* System header to define __stub macros and hopefully few prototypes,
13579 which can conflict with char $ac_func(); below. */
13580 #include <assert.h>
13581 /* Override any gcc2 internal prototype to avoid an error. */
13582 /* We use char because int might match the return type of a gcc2
13583 builtin and then its argument prototype would still apply. */
13584 char $ac_func();
13585
13586 int main() {
13587
13588 /* The GNU C library defines this for functions which it implements
13589 to always fail with ENOSYS. Some functions are actually named
13590 something starting with __ and the normal name is an alias. */
13591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13592 choke me
13593 #else
13594 $ac_func();
13595 #endif
13596
13597 ; return 0; }
13598 EOF
13599 if { (eval echo configure:13600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13600 rm -rf conftest*
13601 eval "ac_cv_func_$ac_func=yes"
13602 else
13603 echo "configure: failed program was:" >&5
13604 cat conftest.$ac_ext >&5
13605 rm -rf conftest*
13606 eval "ac_cv_func_$ac_func=no"
13607 fi
13608 rm -f conftest*
13609 fi
13610
13611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13612 echo "$ac_t""yes" 1>&6
13613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13614 cat >> confdefs.h <<EOF
13615 #define $ac_tr_func 1
13616 EOF
13617
13618 else
13619 echo "$ac_t""no" 1>&6
13620 fi
13621 done
13622
13623 else
13624
13625 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13626 echo "configure:13627: checking for _atan2f declaration" >&5
13627 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13628 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13629 echo $ac_n "(cached) $ac_c" 1>&6
13630 else
13631
13632
13633 ac_ext=C
13634 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13635 ac_cpp='$CXXCPP $CPPFLAGS'
13636 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13637 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13638 cross_compiling=$ac_cv_prog_cxx_cross
13639
13640 cat > conftest.$ac_ext <<EOF
13641 #line 13642 "configure"
13642 #include "confdefs.h"
13643 #include <math.h>
13644 int main() {
13645 _atan2f(0, 0);
13646 ; return 0; }
13647 EOF
13648 if { (eval echo configure:13649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13649 rm -rf conftest*
13650 glibcpp_cv_func__atan2f_use=yes
13651 else
13652 echo "configure: failed program was:" >&5
13653 cat conftest.$ac_ext >&5
13654 rm -rf conftest*
13655 glibcpp_cv_func__atan2f_use=no
13656 fi
13657 rm -f conftest*
13658 ac_ext=c
13659 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13660 ac_cpp='$CPP $CPPFLAGS'
13661 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13662 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13663 cross_compiling=$ac_cv_prog_cc_cross
13664
13665
13666 fi
13667
13668 fi
13669 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13670
13671 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13672 for ac_func in _atan2f
13673 do
13674 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13675 echo "configure:13676: checking for $ac_func" >&5
13676 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13677 echo $ac_n "(cached) $ac_c" 1>&6
13678 else
13679 cat > conftest.$ac_ext <<EOF
13680 #line 13681 "configure"
13681 #include "confdefs.h"
13682 /* System header to define __stub macros and hopefully few prototypes,
13683 which can conflict with char $ac_func(); below. */
13684 #include <assert.h>
13685 /* Override any gcc2 internal prototype to avoid an error. */
13686 /* We use char because int might match the return type of a gcc2
13687 builtin and then its argument prototype would still apply. */
13688 char $ac_func();
13689
13690 int main() {
13691
13692 /* The GNU C library defines this for functions which it implements
13693 to always fail with ENOSYS. Some functions are actually named
13694 something starting with __ and the normal name is an alias. */
13695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13696 choke me
13697 #else
13698 $ac_func();
13699 #endif
13700
13701 ; return 0; }
13702 EOF
13703 if { (eval echo configure:13704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13704 rm -rf conftest*
13705 eval "ac_cv_func_$ac_func=yes"
13706 else
13707 echo "configure: failed program was:" >&5
13708 cat conftest.$ac_ext >&5
13709 rm -rf conftest*
13710 eval "ac_cv_func_$ac_func=no"
13711 fi
13712 rm -f conftest*
13713 fi
13714
13715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13716 echo "$ac_t""yes" 1>&6
13717 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13718 cat >> confdefs.h <<EOF
13719 #define $ac_tr_func 1
13720 EOF
13721
13722 else
13723 echo "$ac_t""no" 1>&6
13724 fi
13725 done
13726
13727 fi
13728 fi
13729
13730
13731
13732 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13733 echo "configure:13734: checking for fabsf declaration" >&5
13734 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13735 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13736 echo $ac_n "(cached) $ac_c" 1>&6
13737 else
13738
13739
13740 ac_ext=C
13741 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13742 ac_cpp='$CXXCPP $CPPFLAGS'
13743 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13744 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13745 cross_compiling=$ac_cv_prog_cxx_cross
13746
13747 cat > conftest.$ac_ext <<EOF
13748 #line 13749 "configure"
13749 #include "confdefs.h"
13750 #include <math.h>
13751 #ifdef HAVE_IEEEFP_H
13752 #include <ieeefp.h>
13753 #endif
13754
13755 int main() {
13756 fabsf(0);
13757 ; return 0; }
13758 EOF
13759 if { (eval echo configure:13760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13760 rm -rf conftest*
13761 glibcpp_cv_func_fabsf_use=yes
13762 else
13763 echo "configure: failed program was:" >&5
13764 cat conftest.$ac_ext >&5
13765 rm -rf conftest*
13766 glibcpp_cv_func_fabsf_use=no
13767 fi
13768 rm -f conftest*
13769 ac_ext=c
13770 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13771 ac_cpp='$CPP $CPPFLAGS'
13772 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13773 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13774 cross_compiling=$ac_cv_prog_cc_cross
13775
13776
13777 fi
13778
13779 fi
13780 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13781
13782 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13783 for ac_func in fabsf
13784 do
13785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13786 echo "configure:13787: checking for $ac_func" >&5
13787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13788 echo $ac_n "(cached) $ac_c" 1>&6
13789 else
13790 cat > conftest.$ac_ext <<EOF
13791 #line 13792 "configure"
13792 #include "confdefs.h"
13793 /* System header to define __stub macros and hopefully few prototypes,
13794 which can conflict with char $ac_func(); below. */
13795 #include <assert.h>
13796 /* Override any gcc2 internal prototype to avoid an error. */
13797 /* We use char because int might match the return type of a gcc2
13798 builtin and then its argument prototype would still apply. */
13799 char $ac_func();
13800
13801 int main() {
13802
13803 /* The GNU C library defines this for functions which it implements
13804 to always fail with ENOSYS. Some functions are actually named
13805 something starting with __ and the normal name is an alias. */
13806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13807 choke me
13808 #else
13809 $ac_func();
13810 #endif
13811
13812 ; return 0; }
13813 EOF
13814 if { (eval echo configure:13815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13815 rm -rf conftest*
13816 eval "ac_cv_func_$ac_func=yes"
13817 else
13818 echo "configure: failed program was:" >&5
13819 cat conftest.$ac_ext >&5
13820 rm -rf conftest*
13821 eval "ac_cv_func_$ac_func=no"
13822 fi
13823 rm -f conftest*
13824 fi
13825
13826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13827 echo "$ac_t""yes" 1>&6
13828 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13829 cat >> confdefs.h <<EOF
13830 #define $ac_tr_func 1
13831 EOF
13832
13833 else
13834 echo "$ac_t""no" 1>&6
13835 fi
13836 done
13837
13838 else
13839
13840 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13841 echo "configure:13842: checking for _fabsf declaration" >&5
13842 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13843 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13844 echo $ac_n "(cached) $ac_c" 1>&6
13845 else
13846
13847
13848 ac_ext=C
13849 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13850 ac_cpp='$CXXCPP $CPPFLAGS'
13851 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13852 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13853 cross_compiling=$ac_cv_prog_cxx_cross
13854
13855 cat > conftest.$ac_ext <<EOF
13856 #line 13857 "configure"
13857 #include "confdefs.h"
13858 #include <math.h>
13859 #ifdef HAVE_IEEEFP_H
13860 #include <ieeefp.h>
13861 #endif
13862
13863 int main() {
13864 _fabsf(0);
13865 ; return 0; }
13866 EOF
13867 if { (eval echo configure:13868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13868 rm -rf conftest*
13869 glibcpp_cv_func__fabsf_use=yes
13870 else
13871 echo "configure: failed program was:" >&5
13872 cat conftest.$ac_ext >&5
13873 rm -rf conftest*
13874 glibcpp_cv_func__fabsf_use=no
13875 fi
13876 rm -f conftest*
13877 ac_ext=c
13878 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13879 ac_cpp='$CPP $CPPFLAGS'
13880 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13881 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13882 cross_compiling=$ac_cv_prog_cc_cross
13883
13884
13885 fi
13886
13887 fi
13888 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13889
13890 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13891 for ac_func in _fabsf
13892 do
13893 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13894 echo "configure:13895: checking for $ac_func" >&5
13895 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13896 echo $ac_n "(cached) $ac_c" 1>&6
13897 else
13898 cat > conftest.$ac_ext <<EOF
13899 #line 13900 "configure"
13900 #include "confdefs.h"
13901 /* System header to define __stub macros and hopefully few prototypes,
13902 which can conflict with char $ac_func(); below. */
13903 #include <assert.h>
13904 /* Override any gcc2 internal prototype to avoid an error. */
13905 /* We use char because int might match the return type of a gcc2
13906 builtin and then its argument prototype would still apply. */
13907 char $ac_func();
13908
13909 int main() {
13910
13911 /* The GNU C library defines this for functions which it implements
13912 to always fail with ENOSYS. Some functions are actually named
13913 something starting with __ and the normal name is an alias. */
13914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13915 choke me
13916 #else
13917 $ac_func();
13918 #endif
13919
13920 ; return 0; }
13921 EOF
13922 if { (eval echo configure:13923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13923 rm -rf conftest*
13924 eval "ac_cv_func_$ac_func=yes"
13925 else
13926 echo "configure: failed program was:" >&5
13927 cat conftest.$ac_ext >&5
13928 rm -rf conftest*
13929 eval "ac_cv_func_$ac_func=no"
13930 fi
13931 rm -f conftest*
13932 fi
13933
13934 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13935 echo "$ac_t""yes" 1>&6
13936 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13937 cat >> confdefs.h <<EOF
13938 #define $ac_tr_func 1
13939 EOF
13940
13941 else
13942 echo "$ac_t""no" 1>&6
13943 fi
13944 done
13945
13946 fi
13947 fi
13948
13949
13950
13951 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13952 echo "configure:13953: checking for fmodf declaration" >&5
13953 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13954 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13955 echo $ac_n "(cached) $ac_c" 1>&6
13956 else
13957
13958
13959 ac_ext=C
13960 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13961 ac_cpp='$CXXCPP $CPPFLAGS'
13962 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13963 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13964 cross_compiling=$ac_cv_prog_cxx_cross
13965
13966 cat > conftest.$ac_ext <<EOF
13967 #line 13968 "configure"
13968 #include "confdefs.h"
13969 #include <math.h>
13970 int main() {
13971 fmodf(0, 0);
13972 ; return 0; }
13973 EOF
13974 if { (eval echo configure:13975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13975 rm -rf conftest*
13976 glibcpp_cv_func_fmodf_use=yes
13977 else
13978 echo "configure: failed program was:" >&5
13979 cat conftest.$ac_ext >&5
13980 rm -rf conftest*
13981 glibcpp_cv_func_fmodf_use=no
13982 fi
13983 rm -f conftest*
13984 ac_ext=c
13985 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13986 ac_cpp='$CPP $CPPFLAGS'
13987 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13988 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13989 cross_compiling=$ac_cv_prog_cc_cross
13990
13991
13992 fi
13993
13994 fi
13995 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13996
13997 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13998 for ac_func in fmodf
13999 do
14000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14001 echo "configure:14002: checking for $ac_func" >&5
14002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14003 echo $ac_n "(cached) $ac_c" 1>&6
14004 else
14005 cat > conftest.$ac_ext <<EOF
14006 #line 14007 "configure"
14007 #include "confdefs.h"
14008 /* System header to define __stub macros and hopefully few prototypes,
14009 which can conflict with char $ac_func(); below. */
14010 #include <assert.h>
14011 /* Override any gcc2 internal prototype to avoid an error. */
14012 /* We use char because int might match the return type of a gcc2
14013 builtin and then its argument prototype would still apply. */
14014 char $ac_func();
14015
14016 int main() {
14017
14018 /* The GNU C library defines this for functions which it implements
14019 to always fail with ENOSYS. Some functions are actually named
14020 something starting with __ and the normal name is an alias. */
14021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14022 choke me
14023 #else
14024 $ac_func();
14025 #endif
14026
14027 ; return 0; }
14028 EOF
14029 if { (eval echo configure:14030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14030 rm -rf conftest*
14031 eval "ac_cv_func_$ac_func=yes"
14032 else
14033 echo "configure: failed program was:" >&5
14034 cat conftest.$ac_ext >&5
14035 rm -rf conftest*
14036 eval "ac_cv_func_$ac_func=no"
14037 fi
14038 rm -f conftest*
14039 fi
14040
14041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14042 echo "$ac_t""yes" 1>&6
14043 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14044 cat >> confdefs.h <<EOF
14045 #define $ac_tr_func 1
14046 EOF
14047
14048 else
14049 echo "$ac_t""no" 1>&6
14050 fi
14051 done
14052
14053 else
14054
14055 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
14056 echo "configure:14057: checking for _fmodf declaration" >&5
14057 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
14058 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
14059 echo $ac_n "(cached) $ac_c" 1>&6
14060 else
14061
14062
14063 ac_ext=C
14064 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14065 ac_cpp='$CXXCPP $CPPFLAGS'
14066 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14067 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14068 cross_compiling=$ac_cv_prog_cxx_cross
14069
14070 cat > conftest.$ac_ext <<EOF
14071 #line 14072 "configure"
14072 #include "confdefs.h"
14073 #include <math.h>
14074 int main() {
14075 _fmodf(0, 0);
14076 ; return 0; }
14077 EOF
14078 if { (eval echo configure:14079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14079 rm -rf conftest*
14080 glibcpp_cv_func__fmodf_use=yes
14081 else
14082 echo "configure: failed program was:" >&5
14083 cat conftest.$ac_ext >&5
14084 rm -rf conftest*
14085 glibcpp_cv_func__fmodf_use=no
14086 fi
14087 rm -f conftest*
14088 ac_ext=c
14089 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14090 ac_cpp='$CPP $CPPFLAGS'
14091 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14092 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14093 cross_compiling=$ac_cv_prog_cc_cross
14094
14095
14096 fi
14097
14098 fi
14099 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
14100
14101 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
14102 for ac_func in _fmodf
14103 do
14104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14105 echo "configure:14106: checking for $ac_func" >&5
14106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14107 echo $ac_n "(cached) $ac_c" 1>&6
14108 else
14109 cat > conftest.$ac_ext <<EOF
14110 #line 14111 "configure"
14111 #include "confdefs.h"
14112 /* System header to define __stub macros and hopefully few prototypes,
14113 which can conflict with char $ac_func(); below. */
14114 #include <assert.h>
14115 /* Override any gcc2 internal prototype to avoid an error. */
14116 /* We use char because int might match the return type of a gcc2
14117 builtin and then its argument prototype would still apply. */
14118 char $ac_func();
14119
14120 int main() {
14121
14122 /* The GNU C library defines this for functions which it implements
14123 to always fail with ENOSYS. Some functions are actually named
14124 something starting with __ and the normal name is an alias. */
14125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14126 choke me
14127 #else
14128 $ac_func();
14129 #endif
14130
14131 ; return 0; }
14132 EOF
14133 if { (eval echo configure:14134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14134 rm -rf conftest*
14135 eval "ac_cv_func_$ac_func=yes"
14136 else
14137 echo "configure: failed program was:" >&5
14138 cat conftest.$ac_ext >&5
14139 rm -rf conftest*
14140 eval "ac_cv_func_$ac_func=no"
14141 fi
14142 rm -f conftest*
14143 fi
14144
14145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14146 echo "$ac_t""yes" 1>&6
14147 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14148 cat >> confdefs.h <<EOF
14149 #define $ac_tr_func 1
14150 EOF
14151
14152 else
14153 echo "$ac_t""no" 1>&6
14154 fi
14155 done
14156
14157 fi
14158 fi
14159
14160
14161
14162 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
14163 echo "configure:14164: checking for frexpf declaration" >&5
14164 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
14165 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
14166 echo $ac_n "(cached) $ac_c" 1>&6
14167 else
14168
14169
14170 ac_ext=C
14171 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14172 ac_cpp='$CXXCPP $CPPFLAGS'
14173 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14174 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14175 cross_compiling=$ac_cv_prog_cxx_cross
14176
14177 cat > conftest.$ac_ext <<EOF
14178 #line 14179 "configure"
14179 #include "confdefs.h"
14180 #include <math.h>
14181 int main() {
14182 frexpf(0, 0);
14183 ; return 0; }
14184 EOF
14185 if { (eval echo configure:14186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14186 rm -rf conftest*
14187 glibcpp_cv_func_frexpf_use=yes
14188 else
14189 echo "configure: failed program was:" >&5
14190 cat conftest.$ac_ext >&5
14191 rm -rf conftest*
14192 glibcpp_cv_func_frexpf_use=no
14193 fi
14194 rm -f conftest*
14195 ac_ext=c
14196 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14197 ac_cpp='$CPP $CPPFLAGS'
14198 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14199 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14200 cross_compiling=$ac_cv_prog_cc_cross
14201
14202
14203 fi
14204
14205 fi
14206 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
14207
14208 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
14209 for ac_func in frexpf
14210 do
14211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14212 echo "configure:14213: checking for $ac_func" >&5
14213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14214 echo $ac_n "(cached) $ac_c" 1>&6
14215 else
14216 cat > conftest.$ac_ext <<EOF
14217 #line 14218 "configure"
14218 #include "confdefs.h"
14219 /* System header to define __stub macros and hopefully few prototypes,
14220 which can conflict with char $ac_func(); below. */
14221 #include <assert.h>
14222 /* Override any gcc2 internal prototype to avoid an error. */
14223 /* We use char because int might match the return type of a gcc2
14224 builtin and then its argument prototype would still apply. */
14225 char $ac_func();
14226
14227 int main() {
14228
14229 /* The GNU C library defines this for functions which it implements
14230 to always fail with ENOSYS. Some functions are actually named
14231 something starting with __ and the normal name is an alias. */
14232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14233 choke me
14234 #else
14235 $ac_func();
14236 #endif
14237
14238 ; return 0; }
14239 EOF
14240 if { (eval echo configure:14241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14241 rm -rf conftest*
14242 eval "ac_cv_func_$ac_func=yes"
14243 else
14244 echo "configure: failed program was:" >&5
14245 cat conftest.$ac_ext >&5
14246 rm -rf conftest*
14247 eval "ac_cv_func_$ac_func=no"
14248 fi
14249 rm -f conftest*
14250 fi
14251
14252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14253 echo "$ac_t""yes" 1>&6
14254 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14255 cat >> confdefs.h <<EOF
14256 #define $ac_tr_func 1
14257 EOF
14258
14259 else
14260 echo "$ac_t""no" 1>&6
14261 fi
14262 done
14263
14264 else
14265
14266 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14267 echo "configure:14268: checking for _frexpf declaration" >&5
14268 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14269 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14270 echo $ac_n "(cached) $ac_c" 1>&6
14271 else
14272
14273
14274 ac_ext=C
14275 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14276 ac_cpp='$CXXCPP $CPPFLAGS'
14277 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14278 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14279 cross_compiling=$ac_cv_prog_cxx_cross
14280
14281 cat > conftest.$ac_ext <<EOF
14282 #line 14283 "configure"
14283 #include "confdefs.h"
14284 #include <math.h>
14285 int main() {
14286 _frexpf(0, 0);
14287 ; return 0; }
14288 EOF
14289 if { (eval echo configure:14290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14290 rm -rf conftest*
14291 glibcpp_cv_func__frexpf_use=yes
14292 else
14293 echo "configure: failed program was:" >&5
14294 cat conftest.$ac_ext >&5
14295 rm -rf conftest*
14296 glibcpp_cv_func__frexpf_use=no
14297 fi
14298 rm -f conftest*
14299 ac_ext=c
14300 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14301 ac_cpp='$CPP $CPPFLAGS'
14302 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14303 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14304 cross_compiling=$ac_cv_prog_cc_cross
14305
14306
14307 fi
14308
14309 fi
14310 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14311
14312 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14313 for ac_func in _frexpf
14314 do
14315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14316 echo "configure:14317: checking for $ac_func" >&5
14317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14318 echo $ac_n "(cached) $ac_c" 1>&6
14319 else
14320 cat > conftest.$ac_ext <<EOF
14321 #line 14322 "configure"
14322 #include "confdefs.h"
14323 /* System header to define __stub macros and hopefully few prototypes,
14324 which can conflict with char $ac_func(); below. */
14325 #include <assert.h>
14326 /* Override any gcc2 internal prototype to avoid an error. */
14327 /* We use char because int might match the return type of a gcc2
14328 builtin and then its argument prototype would still apply. */
14329 char $ac_func();
14330
14331 int main() {
14332
14333 /* The GNU C library defines this for functions which it implements
14334 to always fail with ENOSYS. Some functions are actually named
14335 something starting with __ and the normal name is an alias. */
14336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14337 choke me
14338 #else
14339 $ac_func();
14340 #endif
14341
14342 ; return 0; }
14343 EOF
14344 if { (eval echo configure:14345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14345 rm -rf conftest*
14346 eval "ac_cv_func_$ac_func=yes"
14347 else
14348 echo "configure: failed program was:" >&5
14349 cat conftest.$ac_ext >&5
14350 rm -rf conftest*
14351 eval "ac_cv_func_$ac_func=no"
14352 fi
14353 rm -f conftest*
14354 fi
14355
14356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14357 echo "$ac_t""yes" 1>&6
14358 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14359 cat >> confdefs.h <<EOF
14360 #define $ac_tr_func 1
14361 EOF
14362
14363 else
14364 echo "$ac_t""no" 1>&6
14365 fi
14366 done
14367
14368 fi
14369 fi
14370
14371
14372
14373 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14374 echo "configure:14375: checking for hypotf declaration" >&5
14375 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14376 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14377 echo $ac_n "(cached) $ac_c" 1>&6
14378 else
14379
14380
14381 ac_ext=C
14382 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14383 ac_cpp='$CXXCPP $CPPFLAGS'
14384 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14385 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14386 cross_compiling=$ac_cv_prog_cxx_cross
14387
14388 cat > conftest.$ac_ext <<EOF
14389 #line 14390 "configure"
14390 #include "confdefs.h"
14391 #include <math.h>
14392 int main() {
14393 hypotf(0, 0);
14394 ; return 0; }
14395 EOF
14396 if { (eval echo configure:14397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14397 rm -rf conftest*
14398 glibcpp_cv_func_hypotf_use=yes
14399 else
14400 echo "configure: failed program was:" >&5
14401 cat conftest.$ac_ext >&5
14402 rm -rf conftest*
14403 glibcpp_cv_func_hypotf_use=no
14404 fi
14405 rm -f conftest*
14406 ac_ext=c
14407 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14408 ac_cpp='$CPP $CPPFLAGS'
14409 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14410 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14411 cross_compiling=$ac_cv_prog_cc_cross
14412
14413
14414 fi
14415
14416 fi
14417 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14418
14419 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14420 for ac_func in hypotf
14421 do
14422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14423 echo "configure:14424: checking for $ac_func" >&5
14424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14425 echo $ac_n "(cached) $ac_c" 1>&6
14426 else
14427 cat > conftest.$ac_ext <<EOF
14428 #line 14429 "configure"
14429 #include "confdefs.h"
14430 /* System header to define __stub macros and hopefully few prototypes,
14431 which can conflict with char $ac_func(); below. */
14432 #include <assert.h>
14433 /* Override any gcc2 internal prototype to avoid an error. */
14434 /* We use char because int might match the return type of a gcc2
14435 builtin and then its argument prototype would still apply. */
14436 char $ac_func();
14437
14438 int main() {
14439
14440 /* The GNU C library defines this for functions which it implements
14441 to always fail with ENOSYS. Some functions are actually named
14442 something starting with __ and the normal name is an alias. */
14443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14444 choke me
14445 #else
14446 $ac_func();
14447 #endif
14448
14449 ; return 0; }
14450 EOF
14451 if { (eval echo configure:14452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14452 rm -rf conftest*
14453 eval "ac_cv_func_$ac_func=yes"
14454 else
14455 echo "configure: failed program was:" >&5
14456 cat conftest.$ac_ext >&5
14457 rm -rf conftest*
14458 eval "ac_cv_func_$ac_func=no"
14459 fi
14460 rm -f conftest*
14461 fi
14462
14463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14464 echo "$ac_t""yes" 1>&6
14465 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14466 cat >> confdefs.h <<EOF
14467 #define $ac_tr_func 1
14468 EOF
14469
14470 else
14471 echo "$ac_t""no" 1>&6
14472 fi
14473 done
14474
14475 else
14476
14477 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14478 echo "configure:14479: checking for _hypotf declaration" >&5
14479 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14480 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14481 echo $ac_n "(cached) $ac_c" 1>&6
14482 else
14483
14484
14485 ac_ext=C
14486 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14487 ac_cpp='$CXXCPP $CPPFLAGS'
14488 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14489 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14490 cross_compiling=$ac_cv_prog_cxx_cross
14491
14492 cat > conftest.$ac_ext <<EOF
14493 #line 14494 "configure"
14494 #include "confdefs.h"
14495 #include <math.h>
14496 int main() {
14497 _hypotf(0, 0);
14498 ; return 0; }
14499 EOF
14500 if { (eval echo configure:14501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14501 rm -rf conftest*
14502 glibcpp_cv_func__hypotf_use=yes
14503 else
14504 echo "configure: failed program was:" >&5
14505 cat conftest.$ac_ext >&5
14506 rm -rf conftest*
14507 glibcpp_cv_func__hypotf_use=no
14508 fi
14509 rm -f conftest*
14510 ac_ext=c
14511 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14512 ac_cpp='$CPP $CPPFLAGS'
14513 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14514 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14515 cross_compiling=$ac_cv_prog_cc_cross
14516
14517
14518 fi
14519
14520 fi
14521 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14522
14523 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14524 for ac_func in _hypotf
14525 do
14526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14527 echo "configure:14528: checking for $ac_func" >&5
14528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14529 echo $ac_n "(cached) $ac_c" 1>&6
14530 else
14531 cat > conftest.$ac_ext <<EOF
14532 #line 14533 "configure"
14533 #include "confdefs.h"
14534 /* System header to define __stub macros and hopefully few prototypes,
14535 which can conflict with char $ac_func(); below. */
14536 #include <assert.h>
14537 /* Override any gcc2 internal prototype to avoid an error. */
14538 /* We use char because int might match the return type of a gcc2
14539 builtin and then its argument prototype would still apply. */
14540 char $ac_func();
14541
14542 int main() {
14543
14544 /* The GNU C library defines this for functions which it implements
14545 to always fail with ENOSYS. Some functions are actually named
14546 something starting with __ and the normal name is an alias. */
14547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14548 choke me
14549 #else
14550 $ac_func();
14551 #endif
14552
14553 ; return 0; }
14554 EOF
14555 if { (eval echo configure:14556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14556 rm -rf conftest*
14557 eval "ac_cv_func_$ac_func=yes"
14558 else
14559 echo "configure: failed program was:" >&5
14560 cat conftest.$ac_ext >&5
14561 rm -rf conftest*
14562 eval "ac_cv_func_$ac_func=no"
14563 fi
14564 rm -f conftest*
14565 fi
14566
14567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14568 echo "$ac_t""yes" 1>&6
14569 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14570 cat >> confdefs.h <<EOF
14571 #define $ac_tr_func 1
14572 EOF
14573
14574 else
14575 echo "$ac_t""no" 1>&6
14576 fi
14577 done
14578
14579 fi
14580 fi
14581
14582
14583
14584 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14585 echo "configure:14586: checking for ldexpf declaration" >&5
14586 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14587 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14588 echo $ac_n "(cached) $ac_c" 1>&6
14589 else
14590
14591
14592 ac_ext=C
14593 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14594 ac_cpp='$CXXCPP $CPPFLAGS'
14595 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14596 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14597 cross_compiling=$ac_cv_prog_cxx_cross
14598
14599 cat > conftest.$ac_ext <<EOF
14600 #line 14601 "configure"
14601 #include "confdefs.h"
14602 #include <math.h>
14603 int main() {
14604 ldexpf(0, 0);
14605 ; return 0; }
14606 EOF
14607 if { (eval echo configure:14608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14608 rm -rf conftest*
14609 glibcpp_cv_func_ldexpf_use=yes
14610 else
14611 echo "configure: failed program was:" >&5
14612 cat conftest.$ac_ext >&5
14613 rm -rf conftest*
14614 glibcpp_cv_func_ldexpf_use=no
14615 fi
14616 rm -f conftest*
14617 ac_ext=c
14618 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14619 ac_cpp='$CPP $CPPFLAGS'
14620 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14621 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14622 cross_compiling=$ac_cv_prog_cc_cross
14623
14624
14625 fi
14626
14627 fi
14628 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14629
14630 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14631 for ac_func in ldexpf
14632 do
14633 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14634 echo "configure:14635: checking for $ac_func" >&5
14635 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14636 echo $ac_n "(cached) $ac_c" 1>&6
14637 else
14638 cat > conftest.$ac_ext <<EOF
14639 #line 14640 "configure"
14640 #include "confdefs.h"
14641 /* System header to define __stub macros and hopefully few prototypes,
14642 which can conflict with char $ac_func(); below. */
14643 #include <assert.h>
14644 /* Override any gcc2 internal prototype to avoid an error. */
14645 /* We use char because int might match the return type of a gcc2
14646 builtin and then its argument prototype would still apply. */
14647 char $ac_func();
14648
14649 int main() {
14650
14651 /* The GNU C library defines this for functions which it implements
14652 to always fail with ENOSYS. Some functions are actually named
14653 something starting with __ and the normal name is an alias. */
14654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14655 choke me
14656 #else
14657 $ac_func();
14658 #endif
14659
14660 ; return 0; }
14661 EOF
14662 if { (eval echo configure:14663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14663 rm -rf conftest*
14664 eval "ac_cv_func_$ac_func=yes"
14665 else
14666 echo "configure: failed program was:" >&5
14667 cat conftest.$ac_ext >&5
14668 rm -rf conftest*
14669 eval "ac_cv_func_$ac_func=no"
14670 fi
14671 rm -f conftest*
14672 fi
14673
14674 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14675 echo "$ac_t""yes" 1>&6
14676 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14677 cat >> confdefs.h <<EOF
14678 #define $ac_tr_func 1
14679 EOF
14680
14681 else
14682 echo "$ac_t""no" 1>&6
14683 fi
14684 done
14685
14686 else
14687
14688 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14689 echo "configure:14690: checking for _ldexpf declaration" >&5
14690 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14691 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14692 echo $ac_n "(cached) $ac_c" 1>&6
14693 else
14694
14695
14696 ac_ext=C
14697 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14698 ac_cpp='$CXXCPP $CPPFLAGS'
14699 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14700 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14701 cross_compiling=$ac_cv_prog_cxx_cross
14702
14703 cat > conftest.$ac_ext <<EOF
14704 #line 14705 "configure"
14705 #include "confdefs.h"
14706 #include <math.h>
14707 int main() {
14708 _ldexpf(0, 0);
14709 ; return 0; }
14710 EOF
14711 if { (eval echo configure:14712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14712 rm -rf conftest*
14713 glibcpp_cv_func__ldexpf_use=yes
14714 else
14715 echo "configure: failed program was:" >&5
14716 cat conftest.$ac_ext >&5
14717 rm -rf conftest*
14718 glibcpp_cv_func__ldexpf_use=no
14719 fi
14720 rm -f conftest*
14721 ac_ext=c
14722 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14723 ac_cpp='$CPP $CPPFLAGS'
14724 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14725 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14726 cross_compiling=$ac_cv_prog_cc_cross
14727
14728
14729 fi
14730
14731 fi
14732 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14733
14734 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14735 for ac_func in _ldexpf
14736 do
14737 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14738 echo "configure:14739: checking for $ac_func" >&5
14739 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14740 echo $ac_n "(cached) $ac_c" 1>&6
14741 else
14742 cat > conftest.$ac_ext <<EOF
14743 #line 14744 "configure"
14744 #include "confdefs.h"
14745 /* System header to define __stub macros and hopefully few prototypes,
14746 which can conflict with char $ac_func(); below. */
14747 #include <assert.h>
14748 /* Override any gcc2 internal prototype to avoid an error. */
14749 /* We use char because int might match the return type of a gcc2
14750 builtin and then its argument prototype would still apply. */
14751 char $ac_func();
14752
14753 int main() {
14754
14755 /* The GNU C library defines this for functions which it implements
14756 to always fail with ENOSYS. Some functions are actually named
14757 something starting with __ and the normal name is an alias. */
14758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14759 choke me
14760 #else
14761 $ac_func();
14762 #endif
14763
14764 ; return 0; }
14765 EOF
14766 if { (eval echo configure:14767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14767 rm -rf conftest*
14768 eval "ac_cv_func_$ac_func=yes"
14769 else
14770 echo "configure: failed program was:" >&5
14771 cat conftest.$ac_ext >&5
14772 rm -rf conftest*
14773 eval "ac_cv_func_$ac_func=no"
14774 fi
14775 rm -f conftest*
14776 fi
14777
14778 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14779 echo "$ac_t""yes" 1>&6
14780 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14781 cat >> confdefs.h <<EOF
14782 #define $ac_tr_func 1
14783 EOF
14784
14785 else
14786 echo "$ac_t""no" 1>&6
14787 fi
14788 done
14789
14790 fi
14791 fi
14792
14793
14794
14795 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14796 echo "configure:14797: checking for logf declaration" >&5
14797 if test x${glibcpp_cv_func_logf_use+set} != xset; then
14798 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14799 echo $ac_n "(cached) $ac_c" 1>&6
14800 else
14801
14802
14803 ac_ext=C
14804 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14805 ac_cpp='$CXXCPP $CPPFLAGS'
14806 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14807 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14808 cross_compiling=$ac_cv_prog_cxx_cross
14809
14810 cat > conftest.$ac_ext <<EOF
14811 #line 14812 "configure"
14812 #include "confdefs.h"
14813 #include <math.h>
14814 #ifdef HAVE_IEEEFP_H
14815 #include <ieeefp.h>
14816 #endif
14817
14818 int main() {
14819 logf(0);
14820 ; return 0; }
14821 EOF
14822 if { (eval echo configure:14823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14823 rm -rf conftest*
14824 glibcpp_cv_func_logf_use=yes
14825 else
14826 echo "configure: failed program was:" >&5
14827 cat conftest.$ac_ext >&5
14828 rm -rf conftest*
14829 glibcpp_cv_func_logf_use=no
14830 fi
14831 rm -f conftest*
14832 ac_ext=c
14833 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14834 ac_cpp='$CPP $CPPFLAGS'
14835 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14836 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14837 cross_compiling=$ac_cv_prog_cc_cross
14838
14839
14840 fi
14841
14842 fi
14843 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14844
14845 if test x$glibcpp_cv_func_logf_use = x"yes"; then
14846 for ac_func in logf
14847 do
14848 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14849 echo "configure:14850: checking for $ac_func" >&5
14850 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14851 echo $ac_n "(cached) $ac_c" 1>&6
14852 else
14853 cat > conftest.$ac_ext <<EOF
14854 #line 14855 "configure"
14855 #include "confdefs.h"
14856 /* System header to define __stub macros and hopefully few prototypes,
14857 which can conflict with char $ac_func(); below. */
14858 #include <assert.h>
14859 /* Override any gcc2 internal prototype to avoid an error. */
14860 /* We use char because int might match the return type of a gcc2
14861 builtin and then its argument prototype would still apply. */
14862 char $ac_func();
14863
14864 int main() {
14865
14866 /* The GNU C library defines this for functions which it implements
14867 to always fail with ENOSYS. Some functions are actually named
14868 something starting with __ and the normal name is an alias. */
14869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14870 choke me
14871 #else
14872 $ac_func();
14873 #endif
14874
14875 ; return 0; }
14876 EOF
14877 if { (eval echo configure:14878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14878 rm -rf conftest*
14879 eval "ac_cv_func_$ac_func=yes"
14880 else
14881 echo "configure: failed program was:" >&5
14882 cat conftest.$ac_ext >&5
14883 rm -rf conftest*
14884 eval "ac_cv_func_$ac_func=no"
14885 fi
14886 rm -f conftest*
14887 fi
14888
14889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14890 echo "$ac_t""yes" 1>&6
14891 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14892 cat >> confdefs.h <<EOF
14893 #define $ac_tr_func 1
14894 EOF
14895
14896 else
14897 echo "$ac_t""no" 1>&6
14898 fi
14899 done
14900
14901 else
14902
14903 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14904 echo "configure:14905: checking for _logf declaration" >&5
14905 if test x${glibcpp_cv_func__logf_use+set} != xset; then
14906 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14907 echo $ac_n "(cached) $ac_c" 1>&6
14908 else
14909
14910
14911 ac_ext=C
14912 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14913 ac_cpp='$CXXCPP $CPPFLAGS'
14914 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14915 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14916 cross_compiling=$ac_cv_prog_cxx_cross
14917
14918 cat > conftest.$ac_ext <<EOF
14919 #line 14920 "configure"
14920 #include "confdefs.h"
14921 #include <math.h>
14922 #ifdef HAVE_IEEEFP_H
14923 #include <ieeefp.h>
14924 #endif
14925
14926 int main() {
14927 _logf(0);
14928 ; return 0; }
14929 EOF
14930 if { (eval echo configure:14931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14931 rm -rf conftest*
14932 glibcpp_cv_func__logf_use=yes
14933 else
14934 echo "configure: failed program was:" >&5
14935 cat conftest.$ac_ext >&5
14936 rm -rf conftest*
14937 glibcpp_cv_func__logf_use=no
14938 fi
14939 rm -f conftest*
14940 ac_ext=c
14941 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14942 ac_cpp='$CPP $CPPFLAGS'
14943 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14944 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14945 cross_compiling=$ac_cv_prog_cc_cross
14946
14947
14948 fi
14949
14950 fi
14951 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14952
14953 if test x$glibcpp_cv_func__logf_use = x"yes"; then
14954 for ac_func in _logf
14955 do
14956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14957 echo "configure:14958: checking for $ac_func" >&5
14958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14959 echo $ac_n "(cached) $ac_c" 1>&6
14960 else
14961 cat > conftest.$ac_ext <<EOF
14962 #line 14963 "configure"
14963 #include "confdefs.h"
14964 /* System header to define __stub macros and hopefully few prototypes,
14965 which can conflict with char $ac_func(); below. */
14966 #include <assert.h>
14967 /* Override any gcc2 internal prototype to avoid an error. */
14968 /* We use char because int might match the return type of a gcc2
14969 builtin and then its argument prototype would still apply. */
14970 char $ac_func();
14971
14972 int main() {
14973
14974 /* The GNU C library defines this for functions which it implements
14975 to always fail with ENOSYS. Some functions are actually named
14976 something starting with __ and the normal name is an alias. */
14977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14978 choke me
14979 #else
14980 $ac_func();
14981 #endif
14982
14983 ; return 0; }
14984 EOF
14985 if { (eval echo configure:14986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14986 rm -rf conftest*
14987 eval "ac_cv_func_$ac_func=yes"
14988 else
14989 echo "configure: failed program was:" >&5
14990 cat conftest.$ac_ext >&5
14991 rm -rf conftest*
14992 eval "ac_cv_func_$ac_func=no"
14993 fi
14994 rm -f conftest*
14995 fi
14996
14997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14998 echo "$ac_t""yes" 1>&6
14999 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15000 cat >> confdefs.h <<EOF
15001 #define $ac_tr_func 1
15002 EOF
15003
15004 else
15005 echo "$ac_t""no" 1>&6
15006 fi
15007 done
15008
15009 fi
15010 fi
15011
15012
15013
15014 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
15015 echo "configure:15016: checking for log10f declaration" >&5
15016 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
15017 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
15018 echo $ac_n "(cached) $ac_c" 1>&6
15019 else
15020
15021
15022 ac_ext=C
15023 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15024 ac_cpp='$CXXCPP $CPPFLAGS'
15025 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15026 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15027 cross_compiling=$ac_cv_prog_cxx_cross
15028
15029 cat > conftest.$ac_ext <<EOF
15030 #line 15031 "configure"
15031 #include "confdefs.h"
15032 #include <math.h>
15033 #ifdef HAVE_IEEEFP_H
15034 #include <ieeefp.h>
15035 #endif
15036
15037 int main() {
15038 log10f(0);
15039 ; return 0; }
15040 EOF
15041 if { (eval echo configure:15042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15042 rm -rf conftest*
15043 glibcpp_cv_func_log10f_use=yes
15044 else
15045 echo "configure: failed program was:" >&5
15046 cat conftest.$ac_ext >&5
15047 rm -rf conftest*
15048 glibcpp_cv_func_log10f_use=no
15049 fi
15050 rm -f conftest*
15051 ac_ext=c
15052 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15053 ac_cpp='$CPP $CPPFLAGS'
15054 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15055 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15056 cross_compiling=$ac_cv_prog_cc_cross
15057
15058
15059 fi
15060
15061 fi
15062 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
15063
15064 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
15065 for ac_func in log10f
15066 do
15067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15068 echo "configure:15069: checking for $ac_func" >&5
15069 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15070 echo $ac_n "(cached) $ac_c" 1>&6
15071 else
15072 cat > conftest.$ac_ext <<EOF
15073 #line 15074 "configure"
15074 #include "confdefs.h"
15075 /* System header to define __stub macros and hopefully few prototypes,
15076 which can conflict with char $ac_func(); below. */
15077 #include <assert.h>
15078 /* Override any gcc2 internal prototype to avoid an error. */
15079 /* We use char because int might match the return type of a gcc2
15080 builtin and then its argument prototype would still apply. */
15081 char $ac_func();
15082
15083 int main() {
15084
15085 /* The GNU C library defines this for functions which it implements
15086 to always fail with ENOSYS. Some functions are actually named
15087 something starting with __ and the normal name is an alias. */
15088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15089 choke me
15090 #else
15091 $ac_func();
15092 #endif
15093
15094 ; return 0; }
15095 EOF
15096 if { (eval echo configure:15097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15097 rm -rf conftest*
15098 eval "ac_cv_func_$ac_func=yes"
15099 else
15100 echo "configure: failed program was:" >&5
15101 cat conftest.$ac_ext >&5
15102 rm -rf conftest*
15103 eval "ac_cv_func_$ac_func=no"
15104 fi
15105 rm -f conftest*
15106 fi
15107
15108 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15109 echo "$ac_t""yes" 1>&6
15110 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15111 cat >> confdefs.h <<EOF
15112 #define $ac_tr_func 1
15113 EOF
15114
15115 else
15116 echo "$ac_t""no" 1>&6
15117 fi
15118 done
15119
15120 else
15121
15122 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
15123 echo "configure:15124: checking for _log10f declaration" >&5
15124 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
15125 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
15126 echo $ac_n "(cached) $ac_c" 1>&6
15127 else
15128
15129
15130 ac_ext=C
15131 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15132 ac_cpp='$CXXCPP $CPPFLAGS'
15133 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15134 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15135 cross_compiling=$ac_cv_prog_cxx_cross
15136
15137 cat > conftest.$ac_ext <<EOF
15138 #line 15139 "configure"
15139 #include "confdefs.h"
15140 #include <math.h>
15141 #ifdef HAVE_IEEEFP_H
15142 #include <ieeefp.h>
15143 #endif
15144
15145 int main() {
15146 _log10f(0);
15147 ; return 0; }
15148 EOF
15149 if { (eval echo configure:15150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15150 rm -rf conftest*
15151 glibcpp_cv_func__log10f_use=yes
15152 else
15153 echo "configure: failed program was:" >&5
15154 cat conftest.$ac_ext >&5
15155 rm -rf conftest*
15156 glibcpp_cv_func__log10f_use=no
15157 fi
15158 rm -f conftest*
15159 ac_ext=c
15160 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15161 ac_cpp='$CPP $CPPFLAGS'
15162 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15163 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15164 cross_compiling=$ac_cv_prog_cc_cross
15165
15166
15167 fi
15168
15169 fi
15170 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
15171
15172 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
15173 for ac_func in _log10f
15174 do
15175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15176 echo "configure:15177: checking for $ac_func" >&5
15177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15178 echo $ac_n "(cached) $ac_c" 1>&6
15179 else
15180 cat > conftest.$ac_ext <<EOF
15181 #line 15182 "configure"
15182 #include "confdefs.h"
15183 /* System header to define __stub macros and hopefully few prototypes,
15184 which can conflict with char $ac_func(); below. */
15185 #include <assert.h>
15186 /* Override any gcc2 internal prototype to avoid an error. */
15187 /* We use char because int might match the return type of a gcc2
15188 builtin and then its argument prototype would still apply. */
15189 char $ac_func();
15190
15191 int main() {
15192
15193 /* The GNU C library defines this for functions which it implements
15194 to always fail with ENOSYS. Some functions are actually named
15195 something starting with __ and the normal name is an alias. */
15196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15197 choke me
15198 #else
15199 $ac_func();
15200 #endif
15201
15202 ; return 0; }
15203 EOF
15204 if { (eval echo configure:15205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15205 rm -rf conftest*
15206 eval "ac_cv_func_$ac_func=yes"
15207 else
15208 echo "configure: failed program was:" >&5
15209 cat conftest.$ac_ext >&5
15210 rm -rf conftest*
15211 eval "ac_cv_func_$ac_func=no"
15212 fi
15213 rm -f conftest*
15214 fi
15215
15216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15217 echo "$ac_t""yes" 1>&6
15218 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15219 cat >> confdefs.h <<EOF
15220 #define $ac_tr_func 1
15221 EOF
15222
15223 else
15224 echo "$ac_t""no" 1>&6
15225 fi
15226 done
15227
15228 fi
15229 fi
15230
15231
15232
15233 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15234 echo "configure:15235: checking for modff declaration" >&5
15235 if test x${glibcpp_cv_func_modff_use+set} != xset; then
15236 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
15237 echo $ac_n "(cached) $ac_c" 1>&6
15238 else
15239
15240
15241 ac_ext=C
15242 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15243 ac_cpp='$CXXCPP $CPPFLAGS'
15244 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15245 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15246 cross_compiling=$ac_cv_prog_cxx_cross
15247
15248 cat > conftest.$ac_ext <<EOF
15249 #line 15250 "configure"
15250 #include "confdefs.h"
15251 #include <math.h>
15252 int main() {
15253 modff(0, 0);
15254 ; return 0; }
15255 EOF
15256 if { (eval echo configure:15257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15257 rm -rf conftest*
15258 glibcpp_cv_func_modff_use=yes
15259 else
15260 echo "configure: failed program was:" >&5
15261 cat conftest.$ac_ext >&5
15262 rm -rf conftest*
15263 glibcpp_cv_func_modff_use=no
15264 fi
15265 rm -f conftest*
15266 ac_ext=c
15267 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15268 ac_cpp='$CPP $CPPFLAGS'
15269 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15270 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15271 cross_compiling=$ac_cv_prog_cc_cross
15272
15273
15274 fi
15275
15276 fi
15277 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15278
15279 if test x$glibcpp_cv_func_modff_use = x"yes"; then
15280 for ac_func in modff
15281 do
15282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15283 echo "configure:15284: checking for $ac_func" >&5
15284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15285 echo $ac_n "(cached) $ac_c" 1>&6
15286 else
15287 cat > conftest.$ac_ext <<EOF
15288 #line 15289 "configure"
15289 #include "confdefs.h"
15290 /* System header to define __stub macros and hopefully few prototypes,
15291 which can conflict with char $ac_func(); below. */
15292 #include <assert.h>
15293 /* Override any gcc2 internal prototype to avoid an error. */
15294 /* We use char because int might match the return type of a gcc2
15295 builtin and then its argument prototype would still apply. */
15296 char $ac_func();
15297
15298 int main() {
15299
15300 /* The GNU C library defines this for functions which it implements
15301 to always fail with ENOSYS. Some functions are actually named
15302 something starting with __ and the normal name is an alias. */
15303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15304 choke me
15305 #else
15306 $ac_func();
15307 #endif
15308
15309 ; return 0; }
15310 EOF
15311 if { (eval echo configure:15312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15312 rm -rf conftest*
15313 eval "ac_cv_func_$ac_func=yes"
15314 else
15315 echo "configure: failed program was:" >&5
15316 cat conftest.$ac_ext >&5
15317 rm -rf conftest*
15318 eval "ac_cv_func_$ac_func=no"
15319 fi
15320 rm -f conftest*
15321 fi
15322
15323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15324 echo "$ac_t""yes" 1>&6
15325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15326 cat >> confdefs.h <<EOF
15327 #define $ac_tr_func 1
15328 EOF
15329
15330 else
15331 echo "$ac_t""no" 1>&6
15332 fi
15333 done
15334
15335 else
15336
15337 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15338 echo "configure:15339: checking for _modff declaration" >&5
15339 if test x${glibcpp_cv_func__modff_use+set} != xset; then
15340 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15341 echo $ac_n "(cached) $ac_c" 1>&6
15342 else
15343
15344
15345 ac_ext=C
15346 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15347 ac_cpp='$CXXCPP $CPPFLAGS'
15348 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15349 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15350 cross_compiling=$ac_cv_prog_cxx_cross
15351
15352 cat > conftest.$ac_ext <<EOF
15353 #line 15354 "configure"
15354 #include "confdefs.h"
15355 #include <math.h>
15356 int main() {
15357 _modff(0, 0);
15358 ; return 0; }
15359 EOF
15360 if { (eval echo configure:15361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15361 rm -rf conftest*
15362 glibcpp_cv_func__modff_use=yes
15363 else
15364 echo "configure: failed program was:" >&5
15365 cat conftest.$ac_ext >&5
15366 rm -rf conftest*
15367 glibcpp_cv_func__modff_use=no
15368 fi
15369 rm -f conftest*
15370 ac_ext=c
15371 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15372 ac_cpp='$CPP $CPPFLAGS'
15373 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15374 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15375 cross_compiling=$ac_cv_prog_cc_cross
15376
15377
15378 fi
15379
15380 fi
15381 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15382
15383 if test x$glibcpp_cv_func__modff_use = x"yes"; then
15384 for ac_func in _modff
15385 do
15386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15387 echo "configure:15388: checking for $ac_func" >&5
15388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15389 echo $ac_n "(cached) $ac_c" 1>&6
15390 else
15391 cat > conftest.$ac_ext <<EOF
15392 #line 15393 "configure"
15393 #include "confdefs.h"
15394 /* System header to define __stub macros and hopefully few prototypes,
15395 which can conflict with char $ac_func(); below. */
15396 #include <assert.h>
15397 /* Override any gcc2 internal prototype to avoid an error. */
15398 /* We use char because int might match the return type of a gcc2
15399 builtin and then its argument prototype would still apply. */
15400 char $ac_func();
15401
15402 int main() {
15403
15404 /* The GNU C library defines this for functions which it implements
15405 to always fail with ENOSYS. Some functions are actually named
15406 something starting with __ and the normal name is an alias. */
15407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15408 choke me
15409 #else
15410 $ac_func();
15411 #endif
15412
15413 ; return 0; }
15414 EOF
15415 if { (eval echo configure:15416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15416 rm -rf conftest*
15417 eval "ac_cv_func_$ac_func=yes"
15418 else
15419 echo "configure: failed program was:" >&5
15420 cat conftest.$ac_ext >&5
15421 rm -rf conftest*
15422 eval "ac_cv_func_$ac_func=no"
15423 fi
15424 rm -f conftest*
15425 fi
15426
15427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15428 echo "$ac_t""yes" 1>&6
15429 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15430 cat >> confdefs.h <<EOF
15431 #define $ac_tr_func 1
15432 EOF
15433
15434 else
15435 echo "$ac_t""no" 1>&6
15436 fi
15437 done
15438
15439 fi
15440 fi
15441
15442
15443
15444 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15445 echo "configure:15446: checking for powf declaration" >&5
15446 if test x${glibcpp_cv_func_powf_use+set} != xset; then
15447 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15448 echo $ac_n "(cached) $ac_c" 1>&6
15449 else
15450
15451
15452 ac_ext=C
15453 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15454 ac_cpp='$CXXCPP $CPPFLAGS'
15455 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15456 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15457 cross_compiling=$ac_cv_prog_cxx_cross
15458
15459 cat > conftest.$ac_ext <<EOF
15460 #line 15461 "configure"
15461 #include "confdefs.h"
15462 #include <math.h>
15463 int main() {
15464 powf(0, 0);
15465 ; return 0; }
15466 EOF
15467 if { (eval echo configure:15468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15468 rm -rf conftest*
15469 glibcpp_cv_func_powf_use=yes
15470 else
15471 echo "configure: failed program was:" >&5
15472 cat conftest.$ac_ext >&5
15473 rm -rf conftest*
15474 glibcpp_cv_func_powf_use=no
15475 fi
15476 rm -f conftest*
15477 ac_ext=c
15478 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15479 ac_cpp='$CPP $CPPFLAGS'
15480 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15481 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15482 cross_compiling=$ac_cv_prog_cc_cross
15483
15484
15485 fi
15486
15487 fi
15488 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15489
15490 if test x$glibcpp_cv_func_powf_use = x"yes"; then
15491 for ac_func in powf
15492 do
15493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15494 echo "configure:15495: checking for $ac_func" >&5
15495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15496 echo $ac_n "(cached) $ac_c" 1>&6
15497 else
15498 cat > conftest.$ac_ext <<EOF
15499 #line 15500 "configure"
15500 #include "confdefs.h"
15501 /* System header to define __stub macros and hopefully few prototypes,
15502 which can conflict with char $ac_func(); below. */
15503 #include <assert.h>
15504 /* Override any gcc2 internal prototype to avoid an error. */
15505 /* We use char because int might match the return type of a gcc2
15506 builtin and then its argument prototype would still apply. */
15507 char $ac_func();
15508
15509 int main() {
15510
15511 /* The GNU C library defines this for functions which it implements
15512 to always fail with ENOSYS. Some functions are actually named
15513 something starting with __ and the normal name is an alias. */
15514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15515 choke me
15516 #else
15517 $ac_func();
15518 #endif
15519
15520 ; return 0; }
15521 EOF
15522 if { (eval echo configure:15523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15523 rm -rf conftest*
15524 eval "ac_cv_func_$ac_func=yes"
15525 else
15526 echo "configure: failed program was:" >&5
15527 cat conftest.$ac_ext >&5
15528 rm -rf conftest*
15529 eval "ac_cv_func_$ac_func=no"
15530 fi
15531 rm -f conftest*
15532 fi
15533
15534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15535 echo "$ac_t""yes" 1>&6
15536 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15537 cat >> confdefs.h <<EOF
15538 #define $ac_tr_func 1
15539 EOF
15540
15541 else
15542 echo "$ac_t""no" 1>&6
15543 fi
15544 done
15545
15546 else
15547
15548 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15549 echo "configure:15550: checking for _powf declaration" >&5
15550 if test x${glibcpp_cv_func__powf_use+set} != xset; then
15551 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15552 echo $ac_n "(cached) $ac_c" 1>&6
15553 else
15554
15555
15556 ac_ext=C
15557 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15558 ac_cpp='$CXXCPP $CPPFLAGS'
15559 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15560 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15561 cross_compiling=$ac_cv_prog_cxx_cross
15562
15563 cat > conftest.$ac_ext <<EOF
15564 #line 15565 "configure"
15565 #include "confdefs.h"
15566 #include <math.h>
15567 int main() {
15568 _powf(0, 0);
15569 ; return 0; }
15570 EOF
15571 if { (eval echo configure:15572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15572 rm -rf conftest*
15573 glibcpp_cv_func__powf_use=yes
15574 else
15575 echo "configure: failed program was:" >&5
15576 cat conftest.$ac_ext >&5
15577 rm -rf conftest*
15578 glibcpp_cv_func__powf_use=no
15579 fi
15580 rm -f conftest*
15581 ac_ext=c
15582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15583 ac_cpp='$CPP $CPPFLAGS'
15584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15586 cross_compiling=$ac_cv_prog_cc_cross
15587
15588
15589 fi
15590
15591 fi
15592 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15593
15594 if test x$glibcpp_cv_func__powf_use = x"yes"; then
15595 for ac_func in _powf
15596 do
15597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15598 echo "configure:15599: checking for $ac_func" >&5
15599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15600 echo $ac_n "(cached) $ac_c" 1>&6
15601 else
15602 cat > conftest.$ac_ext <<EOF
15603 #line 15604 "configure"
15604 #include "confdefs.h"
15605 /* System header to define __stub macros and hopefully few prototypes,
15606 which can conflict with char $ac_func(); below. */
15607 #include <assert.h>
15608 /* Override any gcc2 internal prototype to avoid an error. */
15609 /* We use char because int might match the return type of a gcc2
15610 builtin and then its argument prototype would still apply. */
15611 char $ac_func();
15612
15613 int main() {
15614
15615 /* The GNU C library defines this for functions which it implements
15616 to always fail with ENOSYS. Some functions are actually named
15617 something starting with __ and the normal name is an alias. */
15618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15619 choke me
15620 #else
15621 $ac_func();
15622 #endif
15623
15624 ; return 0; }
15625 EOF
15626 if { (eval echo configure:15627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15627 rm -rf conftest*
15628 eval "ac_cv_func_$ac_func=yes"
15629 else
15630 echo "configure: failed program was:" >&5
15631 cat conftest.$ac_ext >&5
15632 rm -rf conftest*
15633 eval "ac_cv_func_$ac_func=no"
15634 fi
15635 rm -f conftest*
15636 fi
15637
15638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15639 echo "$ac_t""yes" 1>&6
15640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15641 cat >> confdefs.h <<EOF
15642 #define $ac_tr_func 1
15643 EOF
15644
15645 else
15646 echo "$ac_t""no" 1>&6
15647 fi
15648 done
15649
15650 fi
15651 fi
15652
15653
15654
15655 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15656 echo "configure:15657: checking for sqrtf declaration" >&5
15657 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15658 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15659 echo $ac_n "(cached) $ac_c" 1>&6
15660 else
15661
15662
15663 ac_ext=C
15664 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15665 ac_cpp='$CXXCPP $CPPFLAGS'
15666 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15667 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15668 cross_compiling=$ac_cv_prog_cxx_cross
15669
15670 cat > conftest.$ac_ext <<EOF
15671 #line 15672 "configure"
15672 #include "confdefs.h"
15673 #include <math.h>
15674 #ifdef HAVE_IEEEFP_H
15675 #include <ieeefp.h>
15676 #endif
15677
15678 int main() {
15679 sqrtf(0);
15680 ; return 0; }
15681 EOF
15682 if { (eval echo configure:15683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15683 rm -rf conftest*
15684 glibcpp_cv_func_sqrtf_use=yes
15685 else
15686 echo "configure: failed program was:" >&5
15687 cat conftest.$ac_ext >&5
15688 rm -rf conftest*
15689 glibcpp_cv_func_sqrtf_use=no
15690 fi
15691 rm -f conftest*
15692 ac_ext=c
15693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15694 ac_cpp='$CPP $CPPFLAGS'
15695 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15696 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15697 cross_compiling=$ac_cv_prog_cc_cross
15698
15699
15700 fi
15701
15702 fi
15703 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15704
15705 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15706 for ac_func in sqrtf
15707 do
15708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15709 echo "configure:15710: checking for $ac_func" >&5
15710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15711 echo $ac_n "(cached) $ac_c" 1>&6
15712 else
15713 cat > conftest.$ac_ext <<EOF
15714 #line 15715 "configure"
15715 #include "confdefs.h"
15716 /* System header to define __stub macros and hopefully few prototypes,
15717 which can conflict with char $ac_func(); below. */
15718 #include <assert.h>
15719 /* Override any gcc2 internal prototype to avoid an error. */
15720 /* We use char because int might match the return type of a gcc2
15721 builtin and then its argument prototype would still apply. */
15722 char $ac_func();
15723
15724 int main() {
15725
15726 /* The GNU C library defines this for functions which it implements
15727 to always fail with ENOSYS. Some functions are actually named
15728 something starting with __ and the normal name is an alias. */
15729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15730 choke me
15731 #else
15732 $ac_func();
15733 #endif
15734
15735 ; return 0; }
15736 EOF
15737 if { (eval echo configure:15738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15738 rm -rf conftest*
15739 eval "ac_cv_func_$ac_func=yes"
15740 else
15741 echo "configure: failed program was:" >&5
15742 cat conftest.$ac_ext >&5
15743 rm -rf conftest*
15744 eval "ac_cv_func_$ac_func=no"
15745 fi
15746 rm -f conftest*
15747 fi
15748
15749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15750 echo "$ac_t""yes" 1>&6
15751 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15752 cat >> confdefs.h <<EOF
15753 #define $ac_tr_func 1
15754 EOF
15755
15756 else
15757 echo "$ac_t""no" 1>&6
15758 fi
15759 done
15760
15761 else
15762
15763 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15764 echo "configure:15765: checking for _sqrtf declaration" >&5
15765 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15766 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15767 echo $ac_n "(cached) $ac_c" 1>&6
15768 else
15769
15770
15771 ac_ext=C
15772 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15773 ac_cpp='$CXXCPP $CPPFLAGS'
15774 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15775 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15776 cross_compiling=$ac_cv_prog_cxx_cross
15777
15778 cat > conftest.$ac_ext <<EOF
15779 #line 15780 "configure"
15780 #include "confdefs.h"
15781 #include <math.h>
15782 #ifdef HAVE_IEEEFP_H
15783 #include <ieeefp.h>
15784 #endif
15785
15786 int main() {
15787 _sqrtf(0);
15788 ; return 0; }
15789 EOF
15790 if { (eval echo configure:15791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15791 rm -rf conftest*
15792 glibcpp_cv_func__sqrtf_use=yes
15793 else
15794 echo "configure: failed program was:" >&5
15795 cat conftest.$ac_ext >&5
15796 rm -rf conftest*
15797 glibcpp_cv_func__sqrtf_use=no
15798 fi
15799 rm -f conftest*
15800 ac_ext=c
15801 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15802 ac_cpp='$CPP $CPPFLAGS'
15803 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15804 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15805 cross_compiling=$ac_cv_prog_cc_cross
15806
15807
15808 fi
15809
15810 fi
15811 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15812
15813 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15814 for ac_func in _sqrtf
15815 do
15816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15817 echo "configure:15818: checking for $ac_func" >&5
15818 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15819 echo $ac_n "(cached) $ac_c" 1>&6
15820 else
15821 cat > conftest.$ac_ext <<EOF
15822 #line 15823 "configure"
15823 #include "confdefs.h"
15824 /* System header to define __stub macros and hopefully few prototypes,
15825 which can conflict with char $ac_func(); below. */
15826 #include <assert.h>
15827 /* Override any gcc2 internal prototype to avoid an error. */
15828 /* We use char because int might match the return type of a gcc2
15829 builtin and then its argument prototype would still apply. */
15830 char $ac_func();
15831
15832 int main() {
15833
15834 /* The GNU C library defines this for functions which it implements
15835 to always fail with ENOSYS. Some functions are actually named
15836 something starting with __ and the normal name is an alias. */
15837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15838 choke me
15839 #else
15840 $ac_func();
15841 #endif
15842
15843 ; return 0; }
15844 EOF
15845 if { (eval echo configure:15846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15846 rm -rf conftest*
15847 eval "ac_cv_func_$ac_func=yes"
15848 else
15849 echo "configure: failed program was:" >&5
15850 cat conftest.$ac_ext >&5
15851 rm -rf conftest*
15852 eval "ac_cv_func_$ac_func=no"
15853 fi
15854 rm -f conftest*
15855 fi
15856
15857 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15858 echo "$ac_t""yes" 1>&6
15859 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15860 cat >> confdefs.h <<EOF
15861 #define $ac_tr_func 1
15862 EOF
15863
15864 else
15865 echo "$ac_t""no" 1>&6
15866 fi
15867 done
15868
15869 fi
15870 fi
15871
15872
15873
15874 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15875 echo "configure:15876: checking for sincosf declaration" >&5
15876 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15877 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15878 echo $ac_n "(cached) $ac_c" 1>&6
15879 else
15880
15881
15882 ac_ext=C
15883 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15884 ac_cpp='$CXXCPP $CPPFLAGS'
15885 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15886 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15887 cross_compiling=$ac_cv_prog_cxx_cross
15888
15889 cat > conftest.$ac_ext <<EOF
15890 #line 15891 "configure"
15891 #include "confdefs.h"
15892 #include <math.h>
15893 int main() {
15894 sincosf(0, 0, 0);
15895 ; return 0; }
15896 EOF
15897 if { (eval echo configure:15898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15898 rm -rf conftest*
15899 glibcpp_cv_func_sincosf_use=yes
15900 else
15901 echo "configure: failed program was:" >&5
15902 cat conftest.$ac_ext >&5
15903 rm -rf conftest*
15904 glibcpp_cv_func_sincosf_use=no
15905 fi
15906 rm -f conftest*
15907 ac_ext=c
15908 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15909 ac_cpp='$CPP $CPPFLAGS'
15910 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15911 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15912 cross_compiling=$ac_cv_prog_cc_cross
15913
15914
15915 fi
15916
15917 fi
15918 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15919
15920 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15921 for ac_func in sincosf
15922 do
15923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15924 echo "configure:15925: checking for $ac_func" >&5
15925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15926 echo $ac_n "(cached) $ac_c" 1>&6
15927 else
15928 cat > conftest.$ac_ext <<EOF
15929 #line 15930 "configure"
15930 #include "confdefs.h"
15931 /* System header to define __stub macros and hopefully few prototypes,
15932 which can conflict with char $ac_func(); below. */
15933 #include <assert.h>
15934 /* Override any gcc2 internal prototype to avoid an error. */
15935 /* We use char because int might match the return type of a gcc2
15936 builtin and then its argument prototype would still apply. */
15937 char $ac_func();
15938
15939 int main() {
15940
15941 /* The GNU C library defines this for functions which it implements
15942 to always fail with ENOSYS. Some functions are actually named
15943 something starting with __ and the normal name is an alias. */
15944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15945 choke me
15946 #else
15947 $ac_func();
15948 #endif
15949
15950 ; return 0; }
15951 EOF
15952 if { (eval echo configure:15953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15953 rm -rf conftest*
15954 eval "ac_cv_func_$ac_func=yes"
15955 else
15956 echo "configure: failed program was:" >&5
15957 cat conftest.$ac_ext >&5
15958 rm -rf conftest*
15959 eval "ac_cv_func_$ac_func=no"
15960 fi
15961 rm -f conftest*
15962 fi
15963
15964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15965 echo "$ac_t""yes" 1>&6
15966 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15967 cat >> confdefs.h <<EOF
15968 #define $ac_tr_func 1
15969 EOF
15970
15971 else
15972 echo "$ac_t""no" 1>&6
15973 fi
15974 done
15975
15976 else
15977
15978 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15979 echo "configure:15980: checking for _sincosf declaration" >&5
15980 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15981 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15982 echo $ac_n "(cached) $ac_c" 1>&6
15983 else
15984
15985
15986 ac_ext=C
15987 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15988 ac_cpp='$CXXCPP $CPPFLAGS'
15989 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15990 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15991 cross_compiling=$ac_cv_prog_cxx_cross
15992
15993 cat > conftest.$ac_ext <<EOF
15994 #line 15995 "configure"
15995 #include "confdefs.h"
15996 #include <math.h>
15997 int main() {
15998 _sincosf(0, 0, 0);
15999 ; return 0; }
16000 EOF
16001 if { (eval echo configure:16002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16002 rm -rf conftest*
16003 glibcpp_cv_func__sincosf_use=yes
16004 else
16005 echo "configure: failed program was:" >&5
16006 cat conftest.$ac_ext >&5
16007 rm -rf conftest*
16008 glibcpp_cv_func__sincosf_use=no
16009 fi
16010 rm -f conftest*
16011 ac_ext=c
16012 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16013 ac_cpp='$CPP $CPPFLAGS'
16014 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16015 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16016 cross_compiling=$ac_cv_prog_cc_cross
16017
16018
16019 fi
16020
16021 fi
16022 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
16023
16024 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
16025 for ac_func in _sincosf
16026 do
16027 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16028 echo "configure:16029: checking for $ac_func" >&5
16029 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16030 echo $ac_n "(cached) $ac_c" 1>&6
16031 else
16032 cat > conftest.$ac_ext <<EOF
16033 #line 16034 "configure"
16034 #include "confdefs.h"
16035 /* System header to define __stub macros and hopefully few prototypes,
16036 which can conflict with char $ac_func(); below. */
16037 #include <assert.h>
16038 /* Override any gcc2 internal prototype to avoid an error. */
16039 /* We use char because int might match the return type of a gcc2
16040 builtin and then its argument prototype would still apply. */
16041 char $ac_func();
16042
16043 int main() {
16044
16045 /* The GNU C library defines this for functions which it implements
16046 to always fail with ENOSYS. Some functions are actually named
16047 something starting with __ and the normal name is an alias. */
16048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16049 choke me
16050 #else
16051 $ac_func();
16052 #endif
16053
16054 ; return 0; }
16055 EOF
16056 if { (eval echo configure:16057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16057 rm -rf conftest*
16058 eval "ac_cv_func_$ac_func=yes"
16059 else
16060 echo "configure: failed program was:" >&5
16061 cat conftest.$ac_ext >&5
16062 rm -rf conftest*
16063 eval "ac_cv_func_$ac_func=no"
16064 fi
16065 rm -f conftest*
16066 fi
16067
16068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16069 echo "$ac_t""yes" 1>&6
16070 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16071 cat >> confdefs.h <<EOF
16072 #define $ac_tr_func 1
16073 EOF
16074
16075 else
16076 echo "$ac_t""no" 1>&6
16077 fi
16078 done
16079
16080 fi
16081 fi
16082
16083
16084
16085 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
16086 echo "configure:16087: checking for finitef declaration" >&5
16087 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
16088 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
16089 echo $ac_n "(cached) $ac_c" 1>&6
16090 else
16091
16092
16093 ac_ext=C
16094 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16095 ac_cpp='$CXXCPP $CPPFLAGS'
16096 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16097 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16098 cross_compiling=$ac_cv_prog_cxx_cross
16099
16100 cat > conftest.$ac_ext <<EOF
16101 #line 16102 "configure"
16102 #include "confdefs.h"
16103 #include <math.h>
16104 #ifdef HAVE_IEEEFP_H
16105 #include <ieeefp.h>
16106 #endif
16107
16108 int main() {
16109 finitef(0);
16110 ; return 0; }
16111 EOF
16112 if { (eval echo configure:16113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16113 rm -rf conftest*
16114 glibcpp_cv_func_finitef_use=yes
16115 else
16116 echo "configure: failed program was:" >&5
16117 cat conftest.$ac_ext >&5
16118 rm -rf conftest*
16119 glibcpp_cv_func_finitef_use=no
16120 fi
16121 rm -f conftest*
16122 ac_ext=c
16123 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16124 ac_cpp='$CPP $CPPFLAGS'
16125 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16126 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16127 cross_compiling=$ac_cv_prog_cc_cross
16128
16129
16130 fi
16131
16132 fi
16133 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
16134
16135 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
16136 for ac_func in finitef
16137 do
16138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16139 echo "configure:16140: checking for $ac_func" >&5
16140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16141 echo $ac_n "(cached) $ac_c" 1>&6
16142 else
16143 cat > conftest.$ac_ext <<EOF
16144 #line 16145 "configure"
16145 #include "confdefs.h"
16146 /* System header to define __stub macros and hopefully few prototypes,
16147 which can conflict with char $ac_func(); below. */
16148 #include <assert.h>
16149 /* Override any gcc2 internal prototype to avoid an error. */
16150 /* We use char because int might match the return type of a gcc2
16151 builtin and then its argument prototype would still apply. */
16152 char $ac_func();
16153
16154 int main() {
16155
16156 /* The GNU C library defines this for functions which it implements
16157 to always fail with ENOSYS. Some functions are actually named
16158 something starting with __ and the normal name is an alias. */
16159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16160 choke me
16161 #else
16162 $ac_func();
16163 #endif
16164
16165 ; return 0; }
16166 EOF
16167 if { (eval echo configure:16168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16168 rm -rf conftest*
16169 eval "ac_cv_func_$ac_func=yes"
16170 else
16171 echo "configure: failed program was:" >&5
16172 cat conftest.$ac_ext >&5
16173 rm -rf conftest*
16174 eval "ac_cv_func_$ac_func=no"
16175 fi
16176 rm -f conftest*
16177 fi
16178
16179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16180 echo "$ac_t""yes" 1>&6
16181 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16182 cat >> confdefs.h <<EOF
16183 #define $ac_tr_func 1
16184 EOF
16185
16186 else
16187 echo "$ac_t""no" 1>&6
16188 fi
16189 done
16190
16191 else
16192
16193 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
16194 echo "configure:16195: checking for _finitef declaration" >&5
16195 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
16196 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
16197 echo $ac_n "(cached) $ac_c" 1>&6
16198 else
16199
16200
16201 ac_ext=C
16202 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16203 ac_cpp='$CXXCPP $CPPFLAGS'
16204 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16205 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16206 cross_compiling=$ac_cv_prog_cxx_cross
16207
16208 cat > conftest.$ac_ext <<EOF
16209 #line 16210 "configure"
16210 #include "confdefs.h"
16211 #include <math.h>
16212 #ifdef HAVE_IEEEFP_H
16213 #include <ieeefp.h>
16214 #endif
16215
16216 int main() {
16217 _finitef(0);
16218 ; return 0; }
16219 EOF
16220 if { (eval echo configure:16221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16221 rm -rf conftest*
16222 glibcpp_cv_func__finitef_use=yes
16223 else
16224 echo "configure: failed program was:" >&5
16225 cat conftest.$ac_ext >&5
16226 rm -rf conftest*
16227 glibcpp_cv_func__finitef_use=no
16228 fi
16229 rm -f conftest*
16230 ac_ext=c
16231 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16232 ac_cpp='$CPP $CPPFLAGS'
16233 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16234 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16235 cross_compiling=$ac_cv_prog_cc_cross
16236
16237
16238 fi
16239
16240 fi
16241 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16242
16243 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16244 for ac_func in _finitef
16245 do
16246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16247 echo "configure:16248: checking for $ac_func" >&5
16248 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16249 echo $ac_n "(cached) $ac_c" 1>&6
16250 else
16251 cat > conftest.$ac_ext <<EOF
16252 #line 16253 "configure"
16253 #include "confdefs.h"
16254 /* System header to define __stub macros and hopefully few prototypes,
16255 which can conflict with char $ac_func(); below. */
16256 #include <assert.h>
16257 /* Override any gcc2 internal prototype to avoid an error. */
16258 /* We use char because int might match the return type of a gcc2
16259 builtin and then its argument prototype would still apply. */
16260 char $ac_func();
16261
16262 int main() {
16263
16264 /* The GNU C library defines this for functions which it implements
16265 to always fail with ENOSYS. Some functions are actually named
16266 something starting with __ and the normal name is an alias. */
16267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16268 choke me
16269 #else
16270 $ac_func();
16271 #endif
16272
16273 ; return 0; }
16274 EOF
16275 if { (eval echo configure:16276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16276 rm -rf conftest*
16277 eval "ac_cv_func_$ac_func=yes"
16278 else
16279 echo "configure: failed program was:" >&5
16280 cat conftest.$ac_ext >&5
16281 rm -rf conftest*
16282 eval "ac_cv_func_$ac_func=no"
16283 fi
16284 rm -f conftest*
16285 fi
16286
16287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16288 echo "$ac_t""yes" 1>&6
16289 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16290 cat >> confdefs.h <<EOF
16291 #define $ac_tr_func 1
16292 EOF
16293
16294 else
16295 echo "$ac_t""no" 1>&6
16296 fi
16297 done
16298
16299 fi
16300 fi
16301
16302
16303
16304 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16305 echo "configure:16306: checking for long double trig functions" >&5
16306 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16307 echo $ac_n "(cached) $ac_c" 1>&6
16308 else
16309
16310
16311 ac_ext=C
16312 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16313 ac_cpp='$CXXCPP $CPPFLAGS'
16314 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16315 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16316 cross_compiling=$ac_cv_prog_cxx_cross
16317
16318 cat > conftest.$ac_ext <<EOF
16319 #line 16320 "configure"
16320 #include "confdefs.h"
16321 #include <math.h>
16322 int main() {
16323 `for x in acosl asinl atanl \
16324 cosl sinl tanl \
16325 coshl sinhl tanhl; do echo "$x (0);"; done`
16326 ; return 0; }
16327 EOF
16328 if { (eval echo configure:16329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16329 rm -rf conftest*
16330 glibcpp_cv_func_long_double_trig_use=yes
16331 else
16332 echo "configure: failed program was:" >&5
16333 cat conftest.$ac_ext >&5
16334 rm -rf conftest*
16335 glibcpp_cv_func_long_double_trig_use=no
16336 fi
16337 rm -f conftest*
16338 ac_ext=c
16339 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16340 ac_cpp='$CPP $CPPFLAGS'
16341 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16342 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16343 cross_compiling=$ac_cv_prog_cc_cross
16344
16345 fi
16346
16347 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16348 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16349 for ac_func in acosl asinl atanl \
16350 cosl sinl tanl \
16351 coshl sinhl tanhl
16352 do
16353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16354 echo "configure:16355: checking for $ac_func" >&5
16355 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16356 echo $ac_n "(cached) $ac_c" 1>&6
16357 else
16358 cat > conftest.$ac_ext <<EOF
16359 #line 16360 "configure"
16360 #include "confdefs.h"
16361 /* System header to define __stub macros and hopefully few prototypes,
16362 which can conflict with char $ac_func(); below. */
16363 #include <assert.h>
16364 /* Override any gcc2 internal prototype to avoid an error. */
16365 /* We use char because int might match the return type of a gcc2
16366 builtin and then its argument prototype would still apply. */
16367 char $ac_func();
16368
16369 int main() {
16370
16371 /* The GNU C library defines this for functions which it implements
16372 to always fail with ENOSYS. Some functions are actually named
16373 something starting with __ and the normal name is an alias. */
16374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16375 choke me
16376 #else
16377 $ac_func();
16378 #endif
16379
16380 ; return 0; }
16381 EOF
16382 if { (eval echo configure:16383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16383 rm -rf conftest*
16384 eval "ac_cv_func_$ac_func=yes"
16385 else
16386 echo "configure: failed program was:" >&5
16387 cat conftest.$ac_ext >&5
16388 rm -rf conftest*
16389 eval "ac_cv_func_$ac_func=no"
16390 fi
16391 rm -f conftest*
16392 fi
16393
16394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16395 echo "$ac_t""yes" 1>&6
16396 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16397 cat >> confdefs.h <<EOF
16398 #define $ac_tr_func 1
16399 EOF
16400
16401 else
16402 echo "$ac_t""no" 1>&6
16403 fi
16404 done
16405
16406 fi
16407
16408
16409 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16410 echo "configure:16411: checking for long double round functions" >&5
16411 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16412 echo $ac_n "(cached) $ac_c" 1>&6
16413 else
16414
16415
16416 ac_ext=C
16417 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16418 ac_cpp='$CXXCPP $CPPFLAGS'
16419 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16420 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16421 cross_compiling=$ac_cv_prog_cxx_cross
16422
16423 cat > conftest.$ac_ext <<EOF
16424 #line 16425 "configure"
16425 #include "confdefs.h"
16426 #include <math.h>
16427 int main() {
16428 `for x in ceill floorl; do echo "$x (0);"; done`
16429 ; return 0; }
16430 EOF
16431 if { (eval echo configure:16432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16432 rm -rf conftest*
16433 glibcpp_cv_func_long_double_round_use=yes
16434 else
16435 echo "configure: failed program was:" >&5
16436 cat conftest.$ac_ext >&5
16437 rm -rf conftest*
16438 glibcpp_cv_func_long_double_round_use=no
16439 fi
16440 rm -f conftest*
16441 ac_ext=c
16442 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16443 ac_cpp='$CPP $CPPFLAGS'
16444 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16445 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16446 cross_compiling=$ac_cv_prog_cc_cross
16447
16448 fi
16449
16450 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16451 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16452 for ac_func in ceill floorl
16453 do
16454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16455 echo "configure:16456: checking for $ac_func" >&5
16456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16457 echo $ac_n "(cached) $ac_c" 1>&6
16458 else
16459 cat > conftest.$ac_ext <<EOF
16460 #line 16461 "configure"
16461 #include "confdefs.h"
16462 /* System header to define __stub macros and hopefully few prototypes,
16463 which can conflict with char $ac_func(); below. */
16464 #include <assert.h>
16465 /* Override any gcc2 internal prototype to avoid an error. */
16466 /* We use char because int might match the return type of a gcc2
16467 builtin and then its argument prototype would still apply. */
16468 char $ac_func();
16469
16470 int main() {
16471
16472 /* The GNU C library defines this for functions which it implements
16473 to always fail with ENOSYS. Some functions are actually named
16474 something starting with __ and the normal name is an alias. */
16475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16476 choke me
16477 #else
16478 $ac_func();
16479 #endif
16480
16481 ; return 0; }
16482 EOF
16483 if { (eval echo configure:16484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16484 rm -rf conftest*
16485 eval "ac_cv_func_$ac_func=yes"
16486 else
16487 echo "configure: failed program was:" >&5
16488 cat conftest.$ac_ext >&5
16489 rm -rf conftest*
16490 eval "ac_cv_func_$ac_func=no"
16491 fi
16492 rm -f conftest*
16493 fi
16494
16495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16496 echo "$ac_t""yes" 1>&6
16497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16498 cat >> confdefs.h <<EOF
16499 #define $ac_tr_func 1
16500 EOF
16501
16502 else
16503 echo "$ac_t""no" 1>&6
16504 fi
16505 done
16506
16507 fi
16508
16509
16510
16511 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16512 echo "configure:16513: checking for isnanl declaration" >&5
16513 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16514 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16515 echo $ac_n "(cached) $ac_c" 1>&6
16516 else
16517
16518
16519 ac_ext=C
16520 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16521 ac_cpp='$CXXCPP $CPPFLAGS'
16522 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16523 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16524 cross_compiling=$ac_cv_prog_cxx_cross
16525
16526 cat > conftest.$ac_ext <<EOF
16527 #line 16528 "configure"
16528 #include "confdefs.h"
16529 #include <math.h>
16530 #ifdef HAVE_IEEEFP_H
16531 #include <ieeefp.h>
16532 #endif
16533
16534 int main() {
16535 isnanl(0);
16536 ; return 0; }
16537 EOF
16538 if { (eval echo configure:16539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16539 rm -rf conftest*
16540 glibcpp_cv_func_isnanl_use=yes
16541 else
16542 echo "configure: failed program was:" >&5
16543 cat conftest.$ac_ext >&5
16544 rm -rf conftest*
16545 glibcpp_cv_func_isnanl_use=no
16546 fi
16547 rm -f conftest*
16548 ac_ext=c
16549 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16550 ac_cpp='$CPP $CPPFLAGS'
16551 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16552 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16553 cross_compiling=$ac_cv_prog_cc_cross
16554
16555
16556 fi
16557
16558 fi
16559 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16560
16561 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16562 for ac_func in isnanl
16563 do
16564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16565 echo "configure:16566: checking for $ac_func" >&5
16566 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16567 echo $ac_n "(cached) $ac_c" 1>&6
16568 else
16569 cat > conftest.$ac_ext <<EOF
16570 #line 16571 "configure"
16571 #include "confdefs.h"
16572 /* System header to define __stub macros and hopefully few prototypes,
16573 which can conflict with char $ac_func(); below. */
16574 #include <assert.h>
16575 /* Override any gcc2 internal prototype to avoid an error. */
16576 /* We use char because int might match the return type of a gcc2
16577 builtin and then its argument prototype would still apply. */
16578 char $ac_func();
16579
16580 int main() {
16581
16582 /* The GNU C library defines this for functions which it implements
16583 to always fail with ENOSYS. Some functions are actually named
16584 something starting with __ and the normal name is an alias. */
16585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16586 choke me
16587 #else
16588 $ac_func();
16589 #endif
16590
16591 ; return 0; }
16592 EOF
16593 if { (eval echo configure:16594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16594 rm -rf conftest*
16595 eval "ac_cv_func_$ac_func=yes"
16596 else
16597 echo "configure: failed program was:" >&5
16598 cat conftest.$ac_ext >&5
16599 rm -rf conftest*
16600 eval "ac_cv_func_$ac_func=no"
16601 fi
16602 rm -f conftest*
16603 fi
16604
16605 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16606 echo "$ac_t""yes" 1>&6
16607 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16608 cat >> confdefs.h <<EOF
16609 #define $ac_tr_func 1
16610 EOF
16611
16612 else
16613 echo "$ac_t""no" 1>&6
16614 fi
16615 done
16616
16617 else
16618
16619 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16620 echo "configure:16621: checking for _isnanl declaration" >&5
16621 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16622 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16623 echo $ac_n "(cached) $ac_c" 1>&6
16624 else
16625
16626
16627 ac_ext=C
16628 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16629 ac_cpp='$CXXCPP $CPPFLAGS'
16630 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16631 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16632 cross_compiling=$ac_cv_prog_cxx_cross
16633
16634 cat > conftest.$ac_ext <<EOF
16635 #line 16636 "configure"
16636 #include "confdefs.h"
16637 #include <math.h>
16638 #ifdef HAVE_IEEEFP_H
16639 #include <ieeefp.h>
16640 #endif
16641
16642 int main() {
16643 _isnanl(0);
16644 ; return 0; }
16645 EOF
16646 if { (eval echo configure:16647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16647 rm -rf conftest*
16648 glibcpp_cv_func__isnanl_use=yes
16649 else
16650 echo "configure: failed program was:" >&5
16651 cat conftest.$ac_ext >&5
16652 rm -rf conftest*
16653 glibcpp_cv_func__isnanl_use=no
16654 fi
16655 rm -f conftest*
16656 ac_ext=c
16657 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16658 ac_cpp='$CPP $CPPFLAGS'
16659 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16660 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16661 cross_compiling=$ac_cv_prog_cc_cross
16662
16663
16664 fi
16665
16666 fi
16667 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16668
16669 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16670 for ac_func in _isnanl
16671 do
16672 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16673 echo "configure:16674: checking for $ac_func" >&5
16674 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16675 echo $ac_n "(cached) $ac_c" 1>&6
16676 else
16677 cat > conftest.$ac_ext <<EOF
16678 #line 16679 "configure"
16679 #include "confdefs.h"
16680 /* System header to define __stub macros and hopefully few prototypes,
16681 which can conflict with char $ac_func(); below. */
16682 #include <assert.h>
16683 /* Override any gcc2 internal prototype to avoid an error. */
16684 /* We use char because int might match the return type of a gcc2
16685 builtin and then its argument prototype would still apply. */
16686 char $ac_func();
16687
16688 int main() {
16689
16690 /* The GNU C library defines this for functions which it implements
16691 to always fail with ENOSYS. Some functions are actually named
16692 something starting with __ and the normal name is an alias. */
16693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16694 choke me
16695 #else
16696 $ac_func();
16697 #endif
16698
16699 ; return 0; }
16700 EOF
16701 if { (eval echo configure:16702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16702 rm -rf conftest*
16703 eval "ac_cv_func_$ac_func=yes"
16704 else
16705 echo "configure: failed program was:" >&5
16706 cat conftest.$ac_ext >&5
16707 rm -rf conftest*
16708 eval "ac_cv_func_$ac_func=no"
16709 fi
16710 rm -f conftest*
16711 fi
16712
16713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16714 echo "$ac_t""yes" 1>&6
16715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16716 cat >> confdefs.h <<EOF
16717 #define $ac_tr_func 1
16718 EOF
16719
16720 else
16721 echo "$ac_t""no" 1>&6
16722 fi
16723 done
16724
16725 fi
16726 fi
16727
16728
16729
16730 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16731 echo "configure:16732: checking for isinfl declaration" >&5
16732 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16733 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16734 echo $ac_n "(cached) $ac_c" 1>&6
16735 else
16736
16737
16738 ac_ext=C
16739 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16740 ac_cpp='$CXXCPP $CPPFLAGS'
16741 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16742 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16743 cross_compiling=$ac_cv_prog_cxx_cross
16744
16745 cat > conftest.$ac_ext <<EOF
16746 #line 16747 "configure"
16747 #include "confdefs.h"
16748 #include <math.h>
16749 #ifdef HAVE_IEEEFP_H
16750 #include <ieeefp.h>
16751 #endif
16752
16753 int main() {
16754 isinfl(0);
16755 ; return 0; }
16756 EOF
16757 if { (eval echo configure:16758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16758 rm -rf conftest*
16759 glibcpp_cv_func_isinfl_use=yes
16760 else
16761 echo "configure: failed program was:" >&5
16762 cat conftest.$ac_ext >&5
16763 rm -rf conftest*
16764 glibcpp_cv_func_isinfl_use=no
16765 fi
16766 rm -f conftest*
16767 ac_ext=c
16768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16769 ac_cpp='$CPP $CPPFLAGS'
16770 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16771 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16772 cross_compiling=$ac_cv_prog_cc_cross
16773
16774
16775 fi
16776
16777 fi
16778 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16779
16780 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16781 for ac_func in isinfl
16782 do
16783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16784 echo "configure:16785: checking for $ac_func" >&5
16785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16786 echo $ac_n "(cached) $ac_c" 1>&6
16787 else
16788 cat > conftest.$ac_ext <<EOF
16789 #line 16790 "configure"
16790 #include "confdefs.h"
16791 /* System header to define __stub macros and hopefully few prototypes,
16792 which can conflict with char $ac_func(); below. */
16793 #include <assert.h>
16794 /* Override any gcc2 internal prototype to avoid an error. */
16795 /* We use char because int might match the return type of a gcc2
16796 builtin and then its argument prototype would still apply. */
16797 char $ac_func();
16798
16799 int main() {
16800
16801 /* The GNU C library defines this for functions which it implements
16802 to always fail with ENOSYS. Some functions are actually named
16803 something starting with __ and the normal name is an alias. */
16804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16805 choke me
16806 #else
16807 $ac_func();
16808 #endif
16809
16810 ; return 0; }
16811 EOF
16812 if { (eval echo configure:16813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16813 rm -rf conftest*
16814 eval "ac_cv_func_$ac_func=yes"
16815 else
16816 echo "configure: failed program was:" >&5
16817 cat conftest.$ac_ext >&5
16818 rm -rf conftest*
16819 eval "ac_cv_func_$ac_func=no"
16820 fi
16821 rm -f conftest*
16822 fi
16823
16824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16825 echo "$ac_t""yes" 1>&6
16826 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16827 cat >> confdefs.h <<EOF
16828 #define $ac_tr_func 1
16829 EOF
16830
16831 else
16832 echo "$ac_t""no" 1>&6
16833 fi
16834 done
16835
16836 else
16837
16838 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16839 echo "configure:16840: checking for _isinfl declaration" >&5
16840 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16841 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16842 echo $ac_n "(cached) $ac_c" 1>&6
16843 else
16844
16845
16846 ac_ext=C
16847 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16848 ac_cpp='$CXXCPP $CPPFLAGS'
16849 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16850 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16851 cross_compiling=$ac_cv_prog_cxx_cross
16852
16853 cat > conftest.$ac_ext <<EOF
16854 #line 16855 "configure"
16855 #include "confdefs.h"
16856 #include <math.h>
16857 #ifdef HAVE_IEEEFP_H
16858 #include <ieeefp.h>
16859 #endif
16860
16861 int main() {
16862 _isinfl(0);
16863 ; return 0; }
16864 EOF
16865 if { (eval echo configure:16866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16866 rm -rf conftest*
16867 glibcpp_cv_func__isinfl_use=yes
16868 else
16869 echo "configure: failed program was:" >&5
16870 cat conftest.$ac_ext >&5
16871 rm -rf conftest*
16872 glibcpp_cv_func__isinfl_use=no
16873 fi
16874 rm -f conftest*
16875 ac_ext=c
16876 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16877 ac_cpp='$CPP $CPPFLAGS'
16878 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16879 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16880 cross_compiling=$ac_cv_prog_cc_cross
16881
16882
16883 fi
16884
16885 fi
16886 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16887
16888 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16889 for ac_func in _isinfl
16890 do
16891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16892 echo "configure:16893: checking for $ac_func" >&5
16893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16894 echo $ac_n "(cached) $ac_c" 1>&6
16895 else
16896 cat > conftest.$ac_ext <<EOF
16897 #line 16898 "configure"
16898 #include "confdefs.h"
16899 /* System header to define __stub macros and hopefully few prototypes,
16900 which can conflict with char $ac_func(); below. */
16901 #include <assert.h>
16902 /* Override any gcc2 internal prototype to avoid an error. */
16903 /* We use char because int might match the return type of a gcc2
16904 builtin and then its argument prototype would still apply. */
16905 char $ac_func();
16906
16907 int main() {
16908
16909 /* The GNU C library defines this for functions which it implements
16910 to always fail with ENOSYS. Some functions are actually named
16911 something starting with __ and the normal name is an alias. */
16912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16913 choke me
16914 #else
16915 $ac_func();
16916 #endif
16917
16918 ; return 0; }
16919 EOF
16920 if { (eval echo configure:16921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16921 rm -rf conftest*
16922 eval "ac_cv_func_$ac_func=yes"
16923 else
16924 echo "configure: failed program was:" >&5
16925 cat conftest.$ac_ext >&5
16926 rm -rf conftest*
16927 eval "ac_cv_func_$ac_func=no"
16928 fi
16929 rm -f conftest*
16930 fi
16931
16932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16933 echo "$ac_t""yes" 1>&6
16934 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16935 cat >> confdefs.h <<EOF
16936 #define $ac_tr_func 1
16937 EOF
16938
16939 else
16940 echo "$ac_t""no" 1>&6
16941 fi
16942 done
16943
16944 fi
16945 fi
16946
16947
16948
16949 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16950 echo "configure:16951: checking for copysignl declaration" >&5
16951 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16952 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16953 echo $ac_n "(cached) $ac_c" 1>&6
16954 else
16955
16956
16957 ac_ext=C
16958 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16959 ac_cpp='$CXXCPP $CPPFLAGS'
16960 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16961 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16962 cross_compiling=$ac_cv_prog_cxx_cross
16963
16964 cat > conftest.$ac_ext <<EOF
16965 #line 16966 "configure"
16966 #include "confdefs.h"
16967 #include <math.h>
16968 int main() {
16969 copysignl(0, 0);
16970 ; return 0; }
16971 EOF
16972 if { (eval echo configure:16973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16973 rm -rf conftest*
16974 glibcpp_cv_func_copysignl_use=yes
16975 else
16976 echo "configure: failed program was:" >&5
16977 cat conftest.$ac_ext >&5
16978 rm -rf conftest*
16979 glibcpp_cv_func_copysignl_use=no
16980 fi
16981 rm -f conftest*
16982 ac_ext=c
16983 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16984 ac_cpp='$CPP $CPPFLAGS'
16985 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16986 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16987 cross_compiling=$ac_cv_prog_cc_cross
16988
16989
16990 fi
16991
16992 fi
16993 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16994
16995 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16996 for ac_func in copysignl
16997 do
16998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16999 echo "configure:17000: checking for $ac_func" >&5
17000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17001 echo $ac_n "(cached) $ac_c" 1>&6
17002 else
17003 cat > conftest.$ac_ext <<EOF
17004 #line 17005 "configure"
17005 #include "confdefs.h"
17006 /* System header to define __stub macros and hopefully few prototypes,
17007 which can conflict with char $ac_func(); below. */
17008 #include <assert.h>
17009 /* Override any gcc2 internal prototype to avoid an error. */
17010 /* We use char because int might match the return type of a gcc2
17011 builtin and then its argument prototype would still apply. */
17012 char $ac_func();
17013
17014 int main() {
17015
17016 /* The GNU C library defines this for functions which it implements
17017 to always fail with ENOSYS. Some functions are actually named
17018 something starting with __ and the normal name is an alias. */
17019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17020 choke me
17021 #else
17022 $ac_func();
17023 #endif
17024
17025 ; return 0; }
17026 EOF
17027 if { (eval echo configure:17028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17028 rm -rf conftest*
17029 eval "ac_cv_func_$ac_func=yes"
17030 else
17031 echo "configure: failed program was:" >&5
17032 cat conftest.$ac_ext >&5
17033 rm -rf conftest*
17034 eval "ac_cv_func_$ac_func=no"
17035 fi
17036 rm -f conftest*
17037 fi
17038
17039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17040 echo "$ac_t""yes" 1>&6
17041 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17042 cat >> confdefs.h <<EOF
17043 #define $ac_tr_func 1
17044 EOF
17045
17046 else
17047 echo "$ac_t""no" 1>&6
17048 fi
17049 done
17050
17051 else
17052
17053 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
17054 echo "configure:17055: checking for _copysignl declaration" >&5
17055 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
17056 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
17057 echo $ac_n "(cached) $ac_c" 1>&6
17058 else
17059
17060
17061 ac_ext=C
17062 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17063 ac_cpp='$CXXCPP $CPPFLAGS'
17064 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17065 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17066 cross_compiling=$ac_cv_prog_cxx_cross
17067
17068 cat > conftest.$ac_ext <<EOF
17069 #line 17070 "configure"
17070 #include "confdefs.h"
17071 #include <math.h>
17072 int main() {
17073 _copysignl(0, 0);
17074 ; return 0; }
17075 EOF
17076 if { (eval echo configure:17077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17077 rm -rf conftest*
17078 glibcpp_cv_func__copysignl_use=yes
17079 else
17080 echo "configure: failed program was:" >&5
17081 cat conftest.$ac_ext >&5
17082 rm -rf conftest*
17083 glibcpp_cv_func__copysignl_use=no
17084 fi
17085 rm -f conftest*
17086 ac_ext=c
17087 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17088 ac_cpp='$CPP $CPPFLAGS'
17089 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17090 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17091 cross_compiling=$ac_cv_prog_cc_cross
17092
17093
17094 fi
17095
17096 fi
17097 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
17098
17099 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
17100 for ac_func in _copysignl
17101 do
17102 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17103 echo "configure:17104: checking for $ac_func" >&5
17104 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17105 echo $ac_n "(cached) $ac_c" 1>&6
17106 else
17107 cat > conftest.$ac_ext <<EOF
17108 #line 17109 "configure"
17109 #include "confdefs.h"
17110 /* System header to define __stub macros and hopefully few prototypes,
17111 which can conflict with char $ac_func(); below. */
17112 #include <assert.h>
17113 /* Override any gcc2 internal prototype to avoid an error. */
17114 /* We use char because int might match the return type of a gcc2
17115 builtin and then its argument prototype would still apply. */
17116 char $ac_func();
17117
17118 int main() {
17119
17120 /* The GNU C library defines this for functions which it implements
17121 to always fail with ENOSYS. Some functions are actually named
17122 something starting with __ and the normal name is an alias. */
17123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17124 choke me
17125 #else
17126 $ac_func();
17127 #endif
17128
17129 ; return 0; }
17130 EOF
17131 if { (eval echo configure:17132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17132 rm -rf conftest*
17133 eval "ac_cv_func_$ac_func=yes"
17134 else
17135 echo "configure: failed program was:" >&5
17136 cat conftest.$ac_ext >&5
17137 rm -rf conftest*
17138 eval "ac_cv_func_$ac_func=no"
17139 fi
17140 rm -f conftest*
17141 fi
17142
17143 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17144 echo "$ac_t""yes" 1>&6
17145 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17146 cat >> confdefs.h <<EOF
17147 #define $ac_tr_func 1
17148 EOF
17149
17150 else
17151 echo "$ac_t""no" 1>&6
17152 fi
17153 done
17154
17155 fi
17156 fi
17157
17158
17159
17160 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
17161 echo "configure:17162: checking for atan2l declaration" >&5
17162 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
17163 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
17164 echo $ac_n "(cached) $ac_c" 1>&6
17165 else
17166
17167
17168 ac_ext=C
17169 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17170 ac_cpp='$CXXCPP $CPPFLAGS'
17171 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17172 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17173 cross_compiling=$ac_cv_prog_cxx_cross
17174
17175 cat > conftest.$ac_ext <<EOF
17176 #line 17177 "configure"
17177 #include "confdefs.h"
17178 #include <math.h>
17179 int main() {
17180 atan2l(0, 0);
17181 ; return 0; }
17182 EOF
17183 if { (eval echo configure:17184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17184 rm -rf conftest*
17185 glibcpp_cv_func_atan2l_use=yes
17186 else
17187 echo "configure: failed program was:" >&5
17188 cat conftest.$ac_ext >&5
17189 rm -rf conftest*
17190 glibcpp_cv_func_atan2l_use=no
17191 fi
17192 rm -f conftest*
17193 ac_ext=c
17194 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17195 ac_cpp='$CPP $CPPFLAGS'
17196 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17197 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17198 cross_compiling=$ac_cv_prog_cc_cross
17199
17200
17201 fi
17202
17203 fi
17204 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
17205
17206 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
17207 for ac_func in atan2l
17208 do
17209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17210 echo "configure:17211: checking for $ac_func" >&5
17211 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17212 echo $ac_n "(cached) $ac_c" 1>&6
17213 else
17214 cat > conftest.$ac_ext <<EOF
17215 #line 17216 "configure"
17216 #include "confdefs.h"
17217 /* System header to define __stub macros and hopefully few prototypes,
17218 which can conflict with char $ac_func(); below. */
17219 #include <assert.h>
17220 /* Override any gcc2 internal prototype to avoid an error. */
17221 /* We use char because int might match the return type of a gcc2
17222 builtin and then its argument prototype would still apply. */
17223 char $ac_func();
17224
17225 int main() {
17226
17227 /* The GNU C library defines this for functions which it implements
17228 to always fail with ENOSYS. Some functions are actually named
17229 something starting with __ and the normal name is an alias. */
17230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17231 choke me
17232 #else
17233 $ac_func();
17234 #endif
17235
17236 ; return 0; }
17237 EOF
17238 if { (eval echo configure:17239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17239 rm -rf conftest*
17240 eval "ac_cv_func_$ac_func=yes"
17241 else
17242 echo "configure: failed program was:" >&5
17243 cat conftest.$ac_ext >&5
17244 rm -rf conftest*
17245 eval "ac_cv_func_$ac_func=no"
17246 fi
17247 rm -f conftest*
17248 fi
17249
17250 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17251 echo "$ac_t""yes" 1>&6
17252 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17253 cat >> confdefs.h <<EOF
17254 #define $ac_tr_func 1
17255 EOF
17256
17257 else
17258 echo "$ac_t""no" 1>&6
17259 fi
17260 done
17261
17262 else
17263
17264 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17265 echo "configure:17266: checking for _atan2l declaration" >&5
17266 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17267 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17268 echo $ac_n "(cached) $ac_c" 1>&6
17269 else
17270
17271
17272 ac_ext=C
17273 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17274 ac_cpp='$CXXCPP $CPPFLAGS'
17275 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17276 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17277 cross_compiling=$ac_cv_prog_cxx_cross
17278
17279 cat > conftest.$ac_ext <<EOF
17280 #line 17281 "configure"
17281 #include "confdefs.h"
17282 #include <math.h>
17283 int main() {
17284 _atan2l(0, 0);
17285 ; return 0; }
17286 EOF
17287 if { (eval echo configure:17288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17288 rm -rf conftest*
17289 glibcpp_cv_func__atan2l_use=yes
17290 else
17291 echo "configure: failed program was:" >&5
17292 cat conftest.$ac_ext >&5
17293 rm -rf conftest*
17294 glibcpp_cv_func__atan2l_use=no
17295 fi
17296 rm -f conftest*
17297 ac_ext=c
17298 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17299 ac_cpp='$CPP $CPPFLAGS'
17300 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17301 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17302 cross_compiling=$ac_cv_prog_cc_cross
17303
17304
17305 fi
17306
17307 fi
17308 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17309
17310 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17311 for ac_func in _atan2l
17312 do
17313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17314 echo "configure:17315: checking for $ac_func" >&5
17315 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17316 echo $ac_n "(cached) $ac_c" 1>&6
17317 else
17318 cat > conftest.$ac_ext <<EOF
17319 #line 17320 "configure"
17320 #include "confdefs.h"
17321 /* System header to define __stub macros and hopefully few prototypes,
17322 which can conflict with char $ac_func(); below. */
17323 #include <assert.h>
17324 /* Override any gcc2 internal prototype to avoid an error. */
17325 /* We use char because int might match the return type of a gcc2
17326 builtin and then its argument prototype would still apply. */
17327 char $ac_func();
17328
17329 int main() {
17330
17331 /* The GNU C library defines this for functions which it implements
17332 to always fail with ENOSYS. Some functions are actually named
17333 something starting with __ and the normal name is an alias. */
17334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17335 choke me
17336 #else
17337 $ac_func();
17338 #endif
17339
17340 ; return 0; }
17341 EOF
17342 if { (eval echo configure:17343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17343 rm -rf conftest*
17344 eval "ac_cv_func_$ac_func=yes"
17345 else
17346 echo "configure: failed program was:" >&5
17347 cat conftest.$ac_ext >&5
17348 rm -rf conftest*
17349 eval "ac_cv_func_$ac_func=no"
17350 fi
17351 rm -f conftest*
17352 fi
17353
17354 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17355 echo "$ac_t""yes" 1>&6
17356 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17357 cat >> confdefs.h <<EOF
17358 #define $ac_tr_func 1
17359 EOF
17360
17361 else
17362 echo "$ac_t""no" 1>&6
17363 fi
17364 done
17365
17366 fi
17367 fi
17368
17369
17370
17371 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17372 echo "configure:17373: checking for expl declaration" >&5
17373 if test x${glibcpp_cv_func_expl_use+set} != xset; then
17374 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17375 echo $ac_n "(cached) $ac_c" 1>&6
17376 else
17377
17378
17379 ac_ext=C
17380 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17381 ac_cpp='$CXXCPP $CPPFLAGS'
17382 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17383 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17384 cross_compiling=$ac_cv_prog_cxx_cross
17385
17386 cat > conftest.$ac_ext <<EOF
17387 #line 17388 "configure"
17388 #include "confdefs.h"
17389 #include <math.h>
17390 #ifdef HAVE_IEEEFP_H
17391 #include <ieeefp.h>
17392 #endif
17393
17394 int main() {
17395 expl(0);
17396 ; return 0; }
17397 EOF
17398 if { (eval echo configure:17399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17399 rm -rf conftest*
17400 glibcpp_cv_func_expl_use=yes
17401 else
17402 echo "configure: failed program was:" >&5
17403 cat conftest.$ac_ext >&5
17404 rm -rf conftest*
17405 glibcpp_cv_func_expl_use=no
17406 fi
17407 rm -f conftest*
17408 ac_ext=c
17409 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17410 ac_cpp='$CPP $CPPFLAGS'
17411 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17412 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17413 cross_compiling=$ac_cv_prog_cc_cross
17414
17415
17416 fi
17417
17418 fi
17419 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17420
17421 if test x$glibcpp_cv_func_expl_use = x"yes"; then
17422 for ac_func in expl
17423 do
17424 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17425 echo "configure:17426: checking for $ac_func" >&5
17426 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17427 echo $ac_n "(cached) $ac_c" 1>&6
17428 else
17429 cat > conftest.$ac_ext <<EOF
17430 #line 17431 "configure"
17431 #include "confdefs.h"
17432 /* System header to define __stub macros and hopefully few prototypes,
17433 which can conflict with char $ac_func(); below. */
17434 #include <assert.h>
17435 /* Override any gcc2 internal prototype to avoid an error. */
17436 /* We use char because int might match the return type of a gcc2
17437 builtin and then its argument prototype would still apply. */
17438 char $ac_func();
17439
17440 int main() {
17441
17442 /* The GNU C library defines this for functions which it implements
17443 to always fail with ENOSYS. Some functions are actually named
17444 something starting with __ and the normal name is an alias. */
17445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17446 choke me
17447 #else
17448 $ac_func();
17449 #endif
17450
17451 ; return 0; }
17452 EOF
17453 if { (eval echo configure:17454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17454 rm -rf conftest*
17455 eval "ac_cv_func_$ac_func=yes"
17456 else
17457 echo "configure: failed program was:" >&5
17458 cat conftest.$ac_ext >&5
17459 rm -rf conftest*
17460 eval "ac_cv_func_$ac_func=no"
17461 fi
17462 rm -f conftest*
17463 fi
17464
17465 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17466 echo "$ac_t""yes" 1>&6
17467 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17468 cat >> confdefs.h <<EOF
17469 #define $ac_tr_func 1
17470 EOF
17471
17472 else
17473 echo "$ac_t""no" 1>&6
17474 fi
17475 done
17476
17477 else
17478
17479 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17480 echo "configure:17481: checking for _expl declaration" >&5
17481 if test x${glibcpp_cv_func__expl_use+set} != xset; then
17482 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17483 echo $ac_n "(cached) $ac_c" 1>&6
17484 else
17485
17486
17487 ac_ext=C
17488 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17489 ac_cpp='$CXXCPP $CPPFLAGS'
17490 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17491 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17492 cross_compiling=$ac_cv_prog_cxx_cross
17493
17494 cat > conftest.$ac_ext <<EOF
17495 #line 17496 "configure"
17496 #include "confdefs.h"
17497 #include <math.h>
17498 #ifdef HAVE_IEEEFP_H
17499 #include <ieeefp.h>
17500 #endif
17501
17502 int main() {
17503 _expl(0);
17504 ; return 0; }
17505 EOF
17506 if { (eval echo configure:17507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17507 rm -rf conftest*
17508 glibcpp_cv_func__expl_use=yes
17509 else
17510 echo "configure: failed program was:" >&5
17511 cat conftest.$ac_ext >&5
17512 rm -rf conftest*
17513 glibcpp_cv_func__expl_use=no
17514 fi
17515 rm -f conftest*
17516 ac_ext=c
17517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17518 ac_cpp='$CPP $CPPFLAGS'
17519 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17520 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17521 cross_compiling=$ac_cv_prog_cc_cross
17522
17523
17524 fi
17525
17526 fi
17527 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17528
17529 if test x$glibcpp_cv_func__expl_use = x"yes"; then
17530 for ac_func in _expl
17531 do
17532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17533 echo "configure:17534: checking for $ac_func" >&5
17534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17535 echo $ac_n "(cached) $ac_c" 1>&6
17536 else
17537 cat > conftest.$ac_ext <<EOF
17538 #line 17539 "configure"
17539 #include "confdefs.h"
17540 /* System header to define __stub macros and hopefully few prototypes,
17541 which can conflict with char $ac_func(); below. */
17542 #include <assert.h>
17543 /* Override any gcc2 internal prototype to avoid an error. */
17544 /* We use char because int might match the return type of a gcc2
17545 builtin and then its argument prototype would still apply. */
17546 char $ac_func();
17547
17548 int main() {
17549
17550 /* The GNU C library defines this for functions which it implements
17551 to always fail with ENOSYS. Some functions are actually named
17552 something starting with __ and the normal name is an alias. */
17553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17554 choke me
17555 #else
17556 $ac_func();
17557 #endif
17558
17559 ; return 0; }
17560 EOF
17561 if { (eval echo configure:17562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17562 rm -rf conftest*
17563 eval "ac_cv_func_$ac_func=yes"
17564 else
17565 echo "configure: failed program was:" >&5
17566 cat conftest.$ac_ext >&5
17567 rm -rf conftest*
17568 eval "ac_cv_func_$ac_func=no"
17569 fi
17570 rm -f conftest*
17571 fi
17572
17573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17574 echo "$ac_t""yes" 1>&6
17575 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17576 cat >> confdefs.h <<EOF
17577 #define $ac_tr_func 1
17578 EOF
17579
17580 else
17581 echo "$ac_t""no" 1>&6
17582 fi
17583 done
17584
17585 fi
17586 fi
17587
17588
17589
17590 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17591 echo "configure:17592: checking for fabsl declaration" >&5
17592 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17593 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17594 echo $ac_n "(cached) $ac_c" 1>&6
17595 else
17596
17597
17598 ac_ext=C
17599 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17600 ac_cpp='$CXXCPP $CPPFLAGS'
17601 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17602 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17603 cross_compiling=$ac_cv_prog_cxx_cross
17604
17605 cat > conftest.$ac_ext <<EOF
17606 #line 17607 "configure"
17607 #include "confdefs.h"
17608 #include <math.h>
17609 #ifdef HAVE_IEEEFP_H
17610 #include <ieeefp.h>
17611 #endif
17612
17613 int main() {
17614 fabsl(0);
17615 ; return 0; }
17616 EOF
17617 if { (eval echo configure:17618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17618 rm -rf conftest*
17619 glibcpp_cv_func_fabsl_use=yes
17620 else
17621 echo "configure: failed program was:" >&5
17622 cat conftest.$ac_ext >&5
17623 rm -rf conftest*
17624 glibcpp_cv_func_fabsl_use=no
17625 fi
17626 rm -f conftest*
17627 ac_ext=c
17628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17629 ac_cpp='$CPP $CPPFLAGS'
17630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17632 cross_compiling=$ac_cv_prog_cc_cross
17633
17634
17635 fi
17636
17637 fi
17638 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17639
17640 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17641 for ac_func in fabsl
17642 do
17643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17644 echo "configure:17645: checking for $ac_func" >&5
17645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17646 echo $ac_n "(cached) $ac_c" 1>&6
17647 else
17648 cat > conftest.$ac_ext <<EOF
17649 #line 17650 "configure"
17650 #include "confdefs.h"
17651 /* System header to define __stub macros and hopefully few prototypes,
17652 which can conflict with char $ac_func(); below. */
17653 #include <assert.h>
17654 /* Override any gcc2 internal prototype to avoid an error. */
17655 /* We use char because int might match the return type of a gcc2
17656 builtin and then its argument prototype would still apply. */
17657 char $ac_func();
17658
17659 int main() {
17660
17661 /* The GNU C library defines this for functions which it implements
17662 to always fail with ENOSYS. Some functions are actually named
17663 something starting with __ and the normal name is an alias. */
17664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17665 choke me
17666 #else
17667 $ac_func();
17668 #endif
17669
17670 ; return 0; }
17671 EOF
17672 if { (eval echo configure:17673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17673 rm -rf conftest*
17674 eval "ac_cv_func_$ac_func=yes"
17675 else
17676 echo "configure: failed program was:" >&5
17677 cat conftest.$ac_ext >&5
17678 rm -rf conftest*
17679 eval "ac_cv_func_$ac_func=no"
17680 fi
17681 rm -f conftest*
17682 fi
17683
17684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17685 echo "$ac_t""yes" 1>&6
17686 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17687 cat >> confdefs.h <<EOF
17688 #define $ac_tr_func 1
17689 EOF
17690
17691 else
17692 echo "$ac_t""no" 1>&6
17693 fi
17694 done
17695
17696 else
17697
17698 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17699 echo "configure:17700: checking for _fabsl declaration" >&5
17700 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17701 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17702 echo $ac_n "(cached) $ac_c" 1>&6
17703 else
17704
17705
17706 ac_ext=C
17707 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17708 ac_cpp='$CXXCPP $CPPFLAGS'
17709 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17710 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17711 cross_compiling=$ac_cv_prog_cxx_cross
17712
17713 cat > conftest.$ac_ext <<EOF
17714 #line 17715 "configure"
17715 #include "confdefs.h"
17716 #include <math.h>
17717 #ifdef HAVE_IEEEFP_H
17718 #include <ieeefp.h>
17719 #endif
17720
17721 int main() {
17722 _fabsl(0);
17723 ; return 0; }
17724 EOF
17725 if { (eval echo configure:17726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17726 rm -rf conftest*
17727 glibcpp_cv_func__fabsl_use=yes
17728 else
17729 echo "configure: failed program was:" >&5
17730 cat conftest.$ac_ext >&5
17731 rm -rf conftest*
17732 glibcpp_cv_func__fabsl_use=no
17733 fi
17734 rm -f conftest*
17735 ac_ext=c
17736 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17737 ac_cpp='$CPP $CPPFLAGS'
17738 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17739 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17740 cross_compiling=$ac_cv_prog_cc_cross
17741
17742
17743 fi
17744
17745 fi
17746 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17747
17748 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17749 for ac_func in _fabsl
17750 do
17751 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17752 echo "configure:17753: checking for $ac_func" >&5
17753 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17754 echo $ac_n "(cached) $ac_c" 1>&6
17755 else
17756 cat > conftest.$ac_ext <<EOF
17757 #line 17758 "configure"
17758 #include "confdefs.h"
17759 /* System header to define __stub macros and hopefully few prototypes,
17760 which can conflict with char $ac_func(); below. */
17761 #include <assert.h>
17762 /* Override any gcc2 internal prototype to avoid an error. */
17763 /* We use char because int might match the return type of a gcc2
17764 builtin and then its argument prototype would still apply. */
17765 char $ac_func();
17766
17767 int main() {
17768
17769 /* The GNU C library defines this for functions which it implements
17770 to always fail with ENOSYS. Some functions are actually named
17771 something starting with __ and the normal name is an alias. */
17772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17773 choke me
17774 #else
17775 $ac_func();
17776 #endif
17777
17778 ; return 0; }
17779 EOF
17780 if { (eval echo configure:17781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17781 rm -rf conftest*
17782 eval "ac_cv_func_$ac_func=yes"
17783 else
17784 echo "configure: failed program was:" >&5
17785 cat conftest.$ac_ext >&5
17786 rm -rf conftest*
17787 eval "ac_cv_func_$ac_func=no"
17788 fi
17789 rm -f conftest*
17790 fi
17791
17792 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17793 echo "$ac_t""yes" 1>&6
17794 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17795 cat >> confdefs.h <<EOF
17796 #define $ac_tr_func 1
17797 EOF
17798
17799 else
17800 echo "$ac_t""no" 1>&6
17801 fi
17802 done
17803
17804 fi
17805 fi
17806
17807
17808
17809 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17810 echo "configure:17811: checking for fmodl declaration" >&5
17811 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17812 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17813 echo $ac_n "(cached) $ac_c" 1>&6
17814 else
17815
17816
17817 ac_ext=C
17818 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17819 ac_cpp='$CXXCPP $CPPFLAGS'
17820 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17821 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17822 cross_compiling=$ac_cv_prog_cxx_cross
17823
17824 cat > conftest.$ac_ext <<EOF
17825 #line 17826 "configure"
17826 #include "confdefs.h"
17827 #include <math.h>
17828 int main() {
17829 fmodl(0, 0);
17830 ; return 0; }
17831 EOF
17832 if { (eval echo configure:17833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17833 rm -rf conftest*
17834 glibcpp_cv_func_fmodl_use=yes
17835 else
17836 echo "configure: failed program was:" >&5
17837 cat conftest.$ac_ext >&5
17838 rm -rf conftest*
17839 glibcpp_cv_func_fmodl_use=no
17840 fi
17841 rm -f conftest*
17842 ac_ext=c
17843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17844 ac_cpp='$CPP $CPPFLAGS'
17845 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17846 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17847 cross_compiling=$ac_cv_prog_cc_cross
17848
17849
17850 fi
17851
17852 fi
17853 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17854
17855 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17856 for ac_func in fmodl
17857 do
17858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17859 echo "configure:17860: checking for $ac_func" >&5
17860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17861 echo $ac_n "(cached) $ac_c" 1>&6
17862 else
17863 cat > conftest.$ac_ext <<EOF
17864 #line 17865 "configure"
17865 #include "confdefs.h"
17866 /* System header to define __stub macros and hopefully few prototypes,
17867 which can conflict with char $ac_func(); below. */
17868 #include <assert.h>
17869 /* Override any gcc2 internal prototype to avoid an error. */
17870 /* We use char because int might match the return type of a gcc2
17871 builtin and then its argument prototype would still apply. */
17872 char $ac_func();
17873
17874 int main() {
17875
17876 /* The GNU C library defines this for functions which it implements
17877 to always fail with ENOSYS. Some functions are actually named
17878 something starting with __ and the normal name is an alias. */
17879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17880 choke me
17881 #else
17882 $ac_func();
17883 #endif
17884
17885 ; return 0; }
17886 EOF
17887 if { (eval echo configure:17888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17888 rm -rf conftest*
17889 eval "ac_cv_func_$ac_func=yes"
17890 else
17891 echo "configure: failed program was:" >&5
17892 cat conftest.$ac_ext >&5
17893 rm -rf conftest*
17894 eval "ac_cv_func_$ac_func=no"
17895 fi
17896 rm -f conftest*
17897 fi
17898
17899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17900 echo "$ac_t""yes" 1>&6
17901 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17902 cat >> confdefs.h <<EOF
17903 #define $ac_tr_func 1
17904 EOF
17905
17906 else
17907 echo "$ac_t""no" 1>&6
17908 fi
17909 done
17910
17911 else
17912
17913 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17914 echo "configure:17915: checking for _fmodl declaration" >&5
17915 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17916 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17917 echo $ac_n "(cached) $ac_c" 1>&6
17918 else
17919
17920
17921 ac_ext=C
17922 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17923 ac_cpp='$CXXCPP $CPPFLAGS'
17924 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17925 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17926 cross_compiling=$ac_cv_prog_cxx_cross
17927
17928 cat > conftest.$ac_ext <<EOF
17929 #line 17930 "configure"
17930 #include "confdefs.h"
17931 #include <math.h>
17932 int main() {
17933 _fmodl(0, 0);
17934 ; return 0; }
17935 EOF
17936 if { (eval echo configure:17937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17937 rm -rf conftest*
17938 glibcpp_cv_func__fmodl_use=yes
17939 else
17940 echo "configure: failed program was:" >&5
17941 cat conftest.$ac_ext >&5
17942 rm -rf conftest*
17943 glibcpp_cv_func__fmodl_use=no
17944 fi
17945 rm -f conftest*
17946 ac_ext=c
17947 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17948 ac_cpp='$CPP $CPPFLAGS'
17949 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17950 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17951 cross_compiling=$ac_cv_prog_cc_cross
17952
17953
17954 fi
17955
17956 fi
17957 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17958
17959 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17960 for ac_func in _fmodl
17961 do
17962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17963 echo "configure:17964: checking for $ac_func" >&5
17964 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17965 echo $ac_n "(cached) $ac_c" 1>&6
17966 else
17967 cat > conftest.$ac_ext <<EOF
17968 #line 17969 "configure"
17969 #include "confdefs.h"
17970 /* System header to define __stub macros and hopefully few prototypes,
17971 which can conflict with char $ac_func(); below. */
17972 #include <assert.h>
17973 /* Override any gcc2 internal prototype to avoid an error. */
17974 /* We use char because int might match the return type of a gcc2
17975 builtin and then its argument prototype would still apply. */
17976 char $ac_func();
17977
17978 int main() {
17979
17980 /* The GNU C library defines this for functions which it implements
17981 to always fail with ENOSYS. Some functions are actually named
17982 something starting with __ and the normal name is an alias. */
17983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17984 choke me
17985 #else
17986 $ac_func();
17987 #endif
17988
17989 ; return 0; }
17990 EOF
17991 if { (eval echo configure:17992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17992 rm -rf conftest*
17993 eval "ac_cv_func_$ac_func=yes"
17994 else
17995 echo "configure: failed program was:" >&5
17996 cat conftest.$ac_ext >&5
17997 rm -rf conftest*
17998 eval "ac_cv_func_$ac_func=no"
17999 fi
18000 rm -f conftest*
18001 fi
18002
18003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18004 echo "$ac_t""yes" 1>&6
18005 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18006 cat >> confdefs.h <<EOF
18007 #define $ac_tr_func 1
18008 EOF
18009
18010 else
18011 echo "$ac_t""no" 1>&6
18012 fi
18013 done
18014
18015 fi
18016 fi
18017
18018
18019
18020 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
18021 echo "configure:18022: checking for frexpl declaration" >&5
18022 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
18023 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
18024 echo $ac_n "(cached) $ac_c" 1>&6
18025 else
18026
18027
18028 ac_ext=C
18029 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18030 ac_cpp='$CXXCPP $CPPFLAGS'
18031 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18032 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18033 cross_compiling=$ac_cv_prog_cxx_cross
18034
18035 cat > conftest.$ac_ext <<EOF
18036 #line 18037 "configure"
18037 #include "confdefs.h"
18038 #include <math.h>
18039 int main() {
18040 frexpl(0, 0);
18041 ; return 0; }
18042 EOF
18043 if { (eval echo configure:18044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18044 rm -rf conftest*
18045 glibcpp_cv_func_frexpl_use=yes
18046 else
18047 echo "configure: failed program was:" >&5
18048 cat conftest.$ac_ext >&5
18049 rm -rf conftest*
18050 glibcpp_cv_func_frexpl_use=no
18051 fi
18052 rm -f conftest*
18053 ac_ext=c
18054 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18055 ac_cpp='$CPP $CPPFLAGS'
18056 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18057 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18058 cross_compiling=$ac_cv_prog_cc_cross
18059
18060
18061 fi
18062
18063 fi
18064 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
18065
18066 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
18067 for ac_func in frexpl
18068 do
18069 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18070 echo "configure:18071: checking for $ac_func" >&5
18071 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18072 echo $ac_n "(cached) $ac_c" 1>&6
18073 else
18074 cat > conftest.$ac_ext <<EOF
18075 #line 18076 "configure"
18076 #include "confdefs.h"
18077 /* System header to define __stub macros and hopefully few prototypes,
18078 which can conflict with char $ac_func(); below. */
18079 #include <assert.h>
18080 /* Override any gcc2 internal prototype to avoid an error. */
18081 /* We use char because int might match the return type of a gcc2
18082 builtin and then its argument prototype would still apply. */
18083 char $ac_func();
18084
18085 int main() {
18086
18087 /* The GNU C library defines this for functions which it implements
18088 to always fail with ENOSYS. Some functions are actually named
18089 something starting with __ and the normal name is an alias. */
18090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18091 choke me
18092 #else
18093 $ac_func();
18094 #endif
18095
18096 ; return 0; }
18097 EOF
18098 if { (eval echo configure:18099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18099 rm -rf conftest*
18100 eval "ac_cv_func_$ac_func=yes"
18101 else
18102 echo "configure: failed program was:" >&5
18103 cat conftest.$ac_ext >&5
18104 rm -rf conftest*
18105 eval "ac_cv_func_$ac_func=no"
18106 fi
18107 rm -f conftest*
18108 fi
18109
18110 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18111 echo "$ac_t""yes" 1>&6
18112 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18113 cat >> confdefs.h <<EOF
18114 #define $ac_tr_func 1
18115 EOF
18116
18117 else
18118 echo "$ac_t""no" 1>&6
18119 fi
18120 done
18121
18122 else
18123
18124 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
18125 echo "configure:18126: checking for _frexpl declaration" >&5
18126 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
18127 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
18128 echo $ac_n "(cached) $ac_c" 1>&6
18129 else
18130
18131
18132 ac_ext=C
18133 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18134 ac_cpp='$CXXCPP $CPPFLAGS'
18135 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18136 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18137 cross_compiling=$ac_cv_prog_cxx_cross
18138
18139 cat > conftest.$ac_ext <<EOF
18140 #line 18141 "configure"
18141 #include "confdefs.h"
18142 #include <math.h>
18143 int main() {
18144 _frexpl(0, 0);
18145 ; return 0; }
18146 EOF
18147 if { (eval echo configure:18148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18148 rm -rf conftest*
18149 glibcpp_cv_func__frexpl_use=yes
18150 else
18151 echo "configure: failed program was:" >&5
18152 cat conftest.$ac_ext >&5
18153 rm -rf conftest*
18154 glibcpp_cv_func__frexpl_use=no
18155 fi
18156 rm -f conftest*
18157 ac_ext=c
18158 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18159 ac_cpp='$CPP $CPPFLAGS'
18160 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18161 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18162 cross_compiling=$ac_cv_prog_cc_cross
18163
18164
18165 fi
18166
18167 fi
18168 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
18169
18170 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
18171 for ac_func in _frexpl
18172 do
18173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18174 echo "configure:18175: checking for $ac_func" >&5
18175 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18176 echo $ac_n "(cached) $ac_c" 1>&6
18177 else
18178 cat > conftest.$ac_ext <<EOF
18179 #line 18180 "configure"
18180 #include "confdefs.h"
18181 /* System header to define __stub macros and hopefully few prototypes,
18182 which can conflict with char $ac_func(); below. */
18183 #include <assert.h>
18184 /* Override any gcc2 internal prototype to avoid an error. */
18185 /* We use char because int might match the return type of a gcc2
18186 builtin and then its argument prototype would still apply. */
18187 char $ac_func();
18188
18189 int main() {
18190
18191 /* The GNU C library defines this for functions which it implements
18192 to always fail with ENOSYS. Some functions are actually named
18193 something starting with __ and the normal name is an alias. */
18194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18195 choke me
18196 #else
18197 $ac_func();
18198 #endif
18199
18200 ; return 0; }
18201 EOF
18202 if { (eval echo configure:18203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18203 rm -rf conftest*
18204 eval "ac_cv_func_$ac_func=yes"
18205 else
18206 echo "configure: failed program was:" >&5
18207 cat conftest.$ac_ext >&5
18208 rm -rf conftest*
18209 eval "ac_cv_func_$ac_func=no"
18210 fi
18211 rm -f conftest*
18212 fi
18213
18214 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18215 echo "$ac_t""yes" 1>&6
18216 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18217 cat >> confdefs.h <<EOF
18218 #define $ac_tr_func 1
18219 EOF
18220
18221 else
18222 echo "$ac_t""no" 1>&6
18223 fi
18224 done
18225
18226 fi
18227 fi
18228
18229
18230
18231 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18232 echo "configure:18233: checking for hypotl declaration" >&5
18233 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
18234 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
18235 echo $ac_n "(cached) $ac_c" 1>&6
18236 else
18237
18238
18239 ac_ext=C
18240 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18241 ac_cpp='$CXXCPP $CPPFLAGS'
18242 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18243 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18244 cross_compiling=$ac_cv_prog_cxx_cross
18245
18246 cat > conftest.$ac_ext <<EOF
18247 #line 18248 "configure"
18248 #include "confdefs.h"
18249 #include <math.h>
18250 int main() {
18251 hypotl(0, 0);
18252 ; return 0; }
18253 EOF
18254 if { (eval echo configure:18255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18255 rm -rf conftest*
18256 glibcpp_cv_func_hypotl_use=yes
18257 else
18258 echo "configure: failed program was:" >&5
18259 cat conftest.$ac_ext >&5
18260 rm -rf conftest*
18261 glibcpp_cv_func_hypotl_use=no
18262 fi
18263 rm -f conftest*
18264 ac_ext=c
18265 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18266 ac_cpp='$CPP $CPPFLAGS'
18267 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18268 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18269 cross_compiling=$ac_cv_prog_cc_cross
18270
18271
18272 fi
18273
18274 fi
18275 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18276
18277 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18278 for ac_func in hypotl
18279 do
18280 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18281 echo "configure:18282: checking for $ac_func" >&5
18282 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18283 echo $ac_n "(cached) $ac_c" 1>&6
18284 else
18285 cat > conftest.$ac_ext <<EOF
18286 #line 18287 "configure"
18287 #include "confdefs.h"
18288 /* System header to define __stub macros and hopefully few prototypes,
18289 which can conflict with char $ac_func(); below. */
18290 #include <assert.h>
18291 /* Override any gcc2 internal prototype to avoid an error. */
18292 /* We use char because int might match the return type of a gcc2
18293 builtin and then its argument prototype would still apply. */
18294 char $ac_func();
18295
18296 int main() {
18297
18298 /* The GNU C library defines this for functions which it implements
18299 to always fail with ENOSYS. Some functions are actually named
18300 something starting with __ and the normal name is an alias. */
18301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18302 choke me
18303 #else
18304 $ac_func();
18305 #endif
18306
18307 ; return 0; }
18308 EOF
18309 if { (eval echo configure:18310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18310 rm -rf conftest*
18311 eval "ac_cv_func_$ac_func=yes"
18312 else
18313 echo "configure: failed program was:" >&5
18314 cat conftest.$ac_ext >&5
18315 rm -rf conftest*
18316 eval "ac_cv_func_$ac_func=no"
18317 fi
18318 rm -f conftest*
18319 fi
18320
18321 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18322 echo "$ac_t""yes" 1>&6
18323 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18324 cat >> confdefs.h <<EOF
18325 #define $ac_tr_func 1
18326 EOF
18327
18328 else
18329 echo "$ac_t""no" 1>&6
18330 fi
18331 done
18332
18333 else
18334
18335 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18336 echo "configure:18337: checking for _hypotl declaration" >&5
18337 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18338 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18339 echo $ac_n "(cached) $ac_c" 1>&6
18340 else
18341
18342
18343 ac_ext=C
18344 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18345 ac_cpp='$CXXCPP $CPPFLAGS'
18346 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18347 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18348 cross_compiling=$ac_cv_prog_cxx_cross
18349
18350 cat > conftest.$ac_ext <<EOF
18351 #line 18352 "configure"
18352 #include "confdefs.h"
18353 #include <math.h>
18354 int main() {
18355 _hypotl(0, 0);
18356 ; return 0; }
18357 EOF
18358 if { (eval echo configure:18359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18359 rm -rf conftest*
18360 glibcpp_cv_func__hypotl_use=yes
18361 else
18362 echo "configure: failed program was:" >&5
18363 cat conftest.$ac_ext >&5
18364 rm -rf conftest*
18365 glibcpp_cv_func__hypotl_use=no
18366 fi
18367 rm -f conftest*
18368 ac_ext=c
18369 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18370 ac_cpp='$CPP $CPPFLAGS'
18371 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18372 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18373 cross_compiling=$ac_cv_prog_cc_cross
18374
18375
18376 fi
18377
18378 fi
18379 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18380
18381 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18382 for ac_func in _hypotl
18383 do
18384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18385 echo "configure:18386: checking for $ac_func" >&5
18386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18387 echo $ac_n "(cached) $ac_c" 1>&6
18388 else
18389 cat > conftest.$ac_ext <<EOF
18390 #line 18391 "configure"
18391 #include "confdefs.h"
18392 /* System header to define __stub macros and hopefully few prototypes,
18393 which can conflict with char $ac_func(); below. */
18394 #include <assert.h>
18395 /* Override any gcc2 internal prototype to avoid an error. */
18396 /* We use char because int might match the return type of a gcc2
18397 builtin and then its argument prototype would still apply. */
18398 char $ac_func();
18399
18400 int main() {
18401
18402 /* The GNU C library defines this for functions which it implements
18403 to always fail with ENOSYS. Some functions are actually named
18404 something starting with __ and the normal name is an alias. */
18405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18406 choke me
18407 #else
18408 $ac_func();
18409 #endif
18410
18411 ; return 0; }
18412 EOF
18413 if { (eval echo configure:18414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18414 rm -rf conftest*
18415 eval "ac_cv_func_$ac_func=yes"
18416 else
18417 echo "configure: failed program was:" >&5
18418 cat conftest.$ac_ext >&5
18419 rm -rf conftest*
18420 eval "ac_cv_func_$ac_func=no"
18421 fi
18422 rm -f conftest*
18423 fi
18424
18425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18426 echo "$ac_t""yes" 1>&6
18427 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18428 cat >> confdefs.h <<EOF
18429 #define $ac_tr_func 1
18430 EOF
18431
18432 else
18433 echo "$ac_t""no" 1>&6
18434 fi
18435 done
18436
18437 fi
18438 fi
18439
18440
18441
18442 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18443 echo "configure:18444: checking for ldexpl declaration" >&5
18444 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18445 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18446 echo $ac_n "(cached) $ac_c" 1>&6
18447 else
18448
18449
18450 ac_ext=C
18451 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18452 ac_cpp='$CXXCPP $CPPFLAGS'
18453 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18454 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18455 cross_compiling=$ac_cv_prog_cxx_cross
18456
18457 cat > conftest.$ac_ext <<EOF
18458 #line 18459 "configure"
18459 #include "confdefs.h"
18460 #include <math.h>
18461 int main() {
18462 ldexpl(0, 0);
18463 ; return 0; }
18464 EOF
18465 if { (eval echo configure:18466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18466 rm -rf conftest*
18467 glibcpp_cv_func_ldexpl_use=yes
18468 else
18469 echo "configure: failed program was:" >&5
18470 cat conftest.$ac_ext >&5
18471 rm -rf conftest*
18472 glibcpp_cv_func_ldexpl_use=no
18473 fi
18474 rm -f conftest*
18475 ac_ext=c
18476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18477 ac_cpp='$CPP $CPPFLAGS'
18478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18480 cross_compiling=$ac_cv_prog_cc_cross
18481
18482
18483 fi
18484
18485 fi
18486 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18487
18488 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18489 for ac_func in ldexpl
18490 do
18491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18492 echo "configure:18493: checking for $ac_func" >&5
18493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18494 echo $ac_n "(cached) $ac_c" 1>&6
18495 else
18496 cat > conftest.$ac_ext <<EOF
18497 #line 18498 "configure"
18498 #include "confdefs.h"
18499 /* System header to define __stub macros and hopefully few prototypes,
18500 which can conflict with char $ac_func(); below. */
18501 #include <assert.h>
18502 /* Override any gcc2 internal prototype to avoid an error. */
18503 /* We use char because int might match the return type of a gcc2
18504 builtin and then its argument prototype would still apply. */
18505 char $ac_func();
18506
18507 int main() {
18508
18509 /* The GNU C library defines this for functions which it implements
18510 to always fail with ENOSYS. Some functions are actually named
18511 something starting with __ and the normal name is an alias. */
18512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18513 choke me
18514 #else
18515 $ac_func();
18516 #endif
18517
18518 ; return 0; }
18519 EOF
18520 if { (eval echo configure:18521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18521 rm -rf conftest*
18522 eval "ac_cv_func_$ac_func=yes"
18523 else
18524 echo "configure: failed program was:" >&5
18525 cat conftest.$ac_ext >&5
18526 rm -rf conftest*
18527 eval "ac_cv_func_$ac_func=no"
18528 fi
18529 rm -f conftest*
18530 fi
18531
18532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18533 echo "$ac_t""yes" 1>&6
18534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18535 cat >> confdefs.h <<EOF
18536 #define $ac_tr_func 1
18537 EOF
18538
18539 else
18540 echo "$ac_t""no" 1>&6
18541 fi
18542 done
18543
18544 else
18545
18546 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18547 echo "configure:18548: checking for _ldexpl declaration" >&5
18548 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18549 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18550 echo $ac_n "(cached) $ac_c" 1>&6
18551 else
18552
18553
18554 ac_ext=C
18555 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18556 ac_cpp='$CXXCPP $CPPFLAGS'
18557 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18558 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18559 cross_compiling=$ac_cv_prog_cxx_cross
18560
18561 cat > conftest.$ac_ext <<EOF
18562 #line 18563 "configure"
18563 #include "confdefs.h"
18564 #include <math.h>
18565 int main() {
18566 _ldexpl(0, 0);
18567 ; return 0; }
18568 EOF
18569 if { (eval echo configure:18570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18570 rm -rf conftest*
18571 glibcpp_cv_func__ldexpl_use=yes
18572 else
18573 echo "configure: failed program was:" >&5
18574 cat conftest.$ac_ext >&5
18575 rm -rf conftest*
18576 glibcpp_cv_func__ldexpl_use=no
18577 fi
18578 rm -f conftest*
18579 ac_ext=c
18580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18581 ac_cpp='$CPP $CPPFLAGS'
18582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18583 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18584 cross_compiling=$ac_cv_prog_cc_cross
18585
18586
18587 fi
18588
18589 fi
18590 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18591
18592 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18593 for ac_func in _ldexpl
18594 do
18595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18596 echo "configure:18597: checking for $ac_func" >&5
18597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18598 echo $ac_n "(cached) $ac_c" 1>&6
18599 else
18600 cat > conftest.$ac_ext <<EOF
18601 #line 18602 "configure"
18602 #include "confdefs.h"
18603 /* System header to define __stub macros and hopefully few prototypes,
18604 which can conflict with char $ac_func(); below. */
18605 #include <assert.h>
18606 /* Override any gcc2 internal prototype to avoid an error. */
18607 /* We use char because int might match the return type of a gcc2
18608 builtin and then its argument prototype would still apply. */
18609 char $ac_func();
18610
18611 int main() {
18612
18613 /* The GNU C library defines this for functions which it implements
18614 to always fail with ENOSYS. Some functions are actually named
18615 something starting with __ and the normal name is an alias. */
18616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18617 choke me
18618 #else
18619 $ac_func();
18620 #endif
18621
18622 ; return 0; }
18623 EOF
18624 if { (eval echo configure:18625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18625 rm -rf conftest*
18626 eval "ac_cv_func_$ac_func=yes"
18627 else
18628 echo "configure: failed program was:" >&5
18629 cat conftest.$ac_ext >&5
18630 rm -rf conftest*
18631 eval "ac_cv_func_$ac_func=no"
18632 fi
18633 rm -f conftest*
18634 fi
18635
18636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18637 echo "$ac_t""yes" 1>&6
18638 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18639 cat >> confdefs.h <<EOF
18640 #define $ac_tr_func 1
18641 EOF
18642
18643 else
18644 echo "$ac_t""no" 1>&6
18645 fi
18646 done
18647
18648 fi
18649 fi
18650
18651
18652
18653 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18654 echo "configure:18655: checking for logl declaration" >&5
18655 if test x${glibcpp_cv_func_logl_use+set} != xset; then
18656 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18657 echo $ac_n "(cached) $ac_c" 1>&6
18658 else
18659
18660
18661 ac_ext=C
18662 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18663 ac_cpp='$CXXCPP $CPPFLAGS'
18664 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18665 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18666 cross_compiling=$ac_cv_prog_cxx_cross
18667
18668 cat > conftest.$ac_ext <<EOF
18669 #line 18670 "configure"
18670 #include "confdefs.h"
18671 #include <math.h>
18672 #ifdef HAVE_IEEEFP_H
18673 #include <ieeefp.h>
18674 #endif
18675
18676 int main() {
18677 logl(0);
18678 ; return 0; }
18679 EOF
18680 if { (eval echo configure:18681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18681 rm -rf conftest*
18682 glibcpp_cv_func_logl_use=yes
18683 else
18684 echo "configure: failed program was:" >&5
18685 cat conftest.$ac_ext >&5
18686 rm -rf conftest*
18687 glibcpp_cv_func_logl_use=no
18688 fi
18689 rm -f conftest*
18690 ac_ext=c
18691 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18692 ac_cpp='$CPP $CPPFLAGS'
18693 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18694 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18695 cross_compiling=$ac_cv_prog_cc_cross
18696
18697
18698 fi
18699
18700 fi
18701 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18702
18703 if test x$glibcpp_cv_func_logl_use = x"yes"; then
18704 for ac_func in logl
18705 do
18706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18707 echo "configure:18708: checking for $ac_func" >&5
18708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18709 echo $ac_n "(cached) $ac_c" 1>&6
18710 else
18711 cat > conftest.$ac_ext <<EOF
18712 #line 18713 "configure"
18713 #include "confdefs.h"
18714 /* System header to define __stub macros and hopefully few prototypes,
18715 which can conflict with char $ac_func(); below. */
18716 #include <assert.h>
18717 /* Override any gcc2 internal prototype to avoid an error. */
18718 /* We use char because int might match the return type of a gcc2
18719 builtin and then its argument prototype would still apply. */
18720 char $ac_func();
18721
18722 int main() {
18723
18724 /* The GNU C library defines this for functions which it implements
18725 to always fail with ENOSYS. Some functions are actually named
18726 something starting with __ and the normal name is an alias. */
18727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18728 choke me
18729 #else
18730 $ac_func();
18731 #endif
18732
18733 ; return 0; }
18734 EOF
18735 if { (eval echo configure:18736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18736 rm -rf conftest*
18737 eval "ac_cv_func_$ac_func=yes"
18738 else
18739 echo "configure: failed program was:" >&5
18740 cat conftest.$ac_ext >&5
18741 rm -rf conftest*
18742 eval "ac_cv_func_$ac_func=no"
18743 fi
18744 rm -f conftest*
18745 fi
18746
18747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18748 echo "$ac_t""yes" 1>&6
18749 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18750 cat >> confdefs.h <<EOF
18751 #define $ac_tr_func 1
18752 EOF
18753
18754 else
18755 echo "$ac_t""no" 1>&6
18756 fi
18757 done
18758
18759 else
18760
18761 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18762 echo "configure:18763: checking for _logl declaration" >&5
18763 if test x${glibcpp_cv_func__logl_use+set} != xset; then
18764 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18765 echo $ac_n "(cached) $ac_c" 1>&6
18766 else
18767
18768
18769 ac_ext=C
18770 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18771 ac_cpp='$CXXCPP $CPPFLAGS'
18772 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18773 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18774 cross_compiling=$ac_cv_prog_cxx_cross
18775
18776 cat > conftest.$ac_ext <<EOF
18777 #line 18778 "configure"
18778 #include "confdefs.h"
18779 #include <math.h>
18780 #ifdef HAVE_IEEEFP_H
18781 #include <ieeefp.h>
18782 #endif
18783
18784 int main() {
18785 _logl(0);
18786 ; return 0; }
18787 EOF
18788 if { (eval echo configure:18789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18789 rm -rf conftest*
18790 glibcpp_cv_func__logl_use=yes
18791 else
18792 echo "configure: failed program was:" >&5
18793 cat conftest.$ac_ext >&5
18794 rm -rf conftest*
18795 glibcpp_cv_func__logl_use=no
18796 fi
18797 rm -f conftest*
18798 ac_ext=c
18799 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18800 ac_cpp='$CPP $CPPFLAGS'
18801 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18802 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18803 cross_compiling=$ac_cv_prog_cc_cross
18804
18805
18806 fi
18807
18808 fi
18809 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18810
18811 if test x$glibcpp_cv_func__logl_use = x"yes"; then
18812 for ac_func in _logl
18813 do
18814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18815 echo "configure:18816: checking for $ac_func" >&5
18816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18817 echo $ac_n "(cached) $ac_c" 1>&6
18818 else
18819 cat > conftest.$ac_ext <<EOF
18820 #line 18821 "configure"
18821 #include "confdefs.h"
18822 /* System header to define __stub macros and hopefully few prototypes,
18823 which can conflict with char $ac_func(); below. */
18824 #include <assert.h>
18825 /* Override any gcc2 internal prototype to avoid an error. */
18826 /* We use char because int might match the return type of a gcc2
18827 builtin and then its argument prototype would still apply. */
18828 char $ac_func();
18829
18830 int main() {
18831
18832 /* The GNU C library defines this for functions which it implements
18833 to always fail with ENOSYS. Some functions are actually named
18834 something starting with __ and the normal name is an alias. */
18835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18836 choke me
18837 #else
18838 $ac_func();
18839 #endif
18840
18841 ; return 0; }
18842 EOF
18843 if { (eval echo configure:18844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18844 rm -rf conftest*
18845 eval "ac_cv_func_$ac_func=yes"
18846 else
18847 echo "configure: failed program was:" >&5
18848 cat conftest.$ac_ext >&5
18849 rm -rf conftest*
18850 eval "ac_cv_func_$ac_func=no"
18851 fi
18852 rm -f conftest*
18853 fi
18854
18855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18856 echo "$ac_t""yes" 1>&6
18857 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18858 cat >> confdefs.h <<EOF
18859 #define $ac_tr_func 1
18860 EOF
18861
18862 else
18863 echo "$ac_t""no" 1>&6
18864 fi
18865 done
18866
18867 fi
18868 fi
18869
18870
18871
18872 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18873 echo "configure:18874: checking for log10l declaration" >&5
18874 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18875 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18876 echo $ac_n "(cached) $ac_c" 1>&6
18877 else
18878
18879
18880 ac_ext=C
18881 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18882 ac_cpp='$CXXCPP $CPPFLAGS'
18883 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18884 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18885 cross_compiling=$ac_cv_prog_cxx_cross
18886
18887 cat > conftest.$ac_ext <<EOF
18888 #line 18889 "configure"
18889 #include "confdefs.h"
18890 #include <math.h>
18891 #ifdef HAVE_IEEEFP_H
18892 #include <ieeefp.h>
18893 #endif
18894
18895 int main() {
18896 log10l(0);
18897 ; return 0; }
18898 EOF
18899 if { (eval echo configure:18900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18900 rm -rf conftest*
18901 glibcpp_cv_func_log10l_use=yes
18902 else
18903 echo "configure: failed program was:" >&5
18904 cat conftest.$ac_ext >&5
18905 rm -rf conftest*
18906 glibcpp_cv_func_log10l_use=no
18907 fi
18908 rm -f conftest*
18909 ac_ext=c
18910 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18911 ac_cpp='$CPP $CPPFLAGS'
18912 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18913 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18914 cross_compiling=$ac_cv_prog_cc_cross
18915
18916
18917 fi
18918
18919 fi
18920 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18921
18922 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18923 for ac_func in log10l
18924 do
18925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18926 echo "configure:18927: checking for $ac_func" >&5
18927 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18928 echo $ac_n "(cached) $ac_c" 1>&6
18929 else
18930 cat > conftest.$ac_ext <<EOF
18931 #line 18932 "configure"
18932 #include "confdefs.h"
18933 /* System header to define __stub macros and hopefully few prototypes,
18934 which can conflict with char $ac_func(); below. */
18935 #include <assert.h>
18936 /* Override any gcc2 internal prototype to avoid an error. */
18937 /* We use char because int might match the return type of a gcc2
18938 builtin and then its argument prototype would still apply. */
18939 char $ac_func();
18940
18941 int main() {
18942
18943 /* The GNU C library defines this for functions which it implements
18944 to always fail with ENOSYS. Some functions are actually named
18945 something starting with __ and the normal name is an alias. */
18946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18947 choke me
18948 #else
18949 $ac_func();
18950 #endif
18951
18952 ; return 0; }
18953 EOF
18954 if { (eval echo configure:18955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18955 rm -rf conftest*
18956 eval "ac_cv_func_$ac_func=yes"
18957 else
18958 echo "configure: failed program was:" >&5
18959 cat conftest.$ac_ext >&5
18960 rm -rf conftest*
18961 eval "ac_cv_func_$ac_func=no"
18962 fi
18963 rm -f conftest*
18964 fi
18965
18966 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18967 echo "$ac_t""yes" 1>&6
18968 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18969 cat >> confdefs.h <<EOF
18970 #define $ac_tr_func 1
18971 EOF
18972
18973 else
18974 echo "$ac_t""no" 1>&6
18975 fi
18976 done
18977
18978 else
18979
18980 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18981 echo "configure:18982: checking for _log10l declaration" >&5
18982 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18983 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18984 echo $ac_n "(cached) $ac_c" 1>&6
18985 else
18986
18987
18988 ac_ext=C
18989 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18990 ac_cpp='$CXXCPP $CPPFLAGS'
18991 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18992 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18993 cross_compiling=$ac_cv_prog_cxx_cross
18994
18995 cat > conftest.$ac_ext <<EOF
18996 #line 18997 "configure"
18997 #include "confdefs.h"
18998 #include <math.h>
18999 #ifdef HAVE_IEEEFP_H
19000 #include <ieeefp.h>
19001 #endif
19002
19003 int main() {
19004 _log10l(0);
19005 ; return 0; }
19006 EOF
19007 if { (eval echo configure:19008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19008 rm -rf conftest*
19009 glibcpp_cv_func__log10l_use=yes
19010 else
19011 echo "configure: failed program was:" >&5
19012 cat conftest.$ac_ext >&5
19013 rm -rf conftest*
19014 glibcpp_cv_func__log10l_use=no
19015 fi
19016 rm -f conftest*
19017 ac_ext=c
19018 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19019 ac_cpp='$CPP $CPPFLAGS'
19020 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19021 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19022 cross_compiling=$ac_cv_prog_cc_cross
19023
19024
19025 fi
19026
19027 fi
19028 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
19029
19030 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
19031 for ac_func in _log10l
19032 do
19033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19034 echo "configure:19035: checking for $ac_func" >&5
19035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19036 echo $ac_n "(cached) $ac_c" 1>&6
19037 else
19038 cat > conftest.$ac_ext <<EOF
19039 #line 19040 "configure"
19040 #include "confdefs.h"
19041 /* System header to define __stub macros and hopefully few prototypes,
19042 which can conflict with char $ac_func(); below. */
19043 #include <assert.h>
19044 /* Override any gcc2 internal prototype to avoid an error. */
19045 /* We use char because int might match the return type of a gcc2
19046 builtin and then its argument prototype would still apply. */
19047 char $ac_func();
19048
19049 int main() {
19050
19051 /* The GNU C library defines this for functions which it implements
19052 to always fail with ENOSYS. Some functions are actually named
19053 something starting with __ and the normal name is an alias. */
19054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19055 choke me
19056 #else
19057 $ac_func();
19058 #endif
19059
19060 ; return 0; }
19061 EOF
19062 if { (eval echo configure:19063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19063 rm -rf conftest*
19064 eval "ac_cv_func_$ac_func=yes"
19065 else
19066 echo "configure: failed program was:" >&5
19067 cat conftest.$ac_ext >&5
19068 rm -rf conftest*
19069 eval "ac_cv_func_$ac_func=no"
19070 fi
19071 rm -f conftest*
19072 fi
19073
19074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19075 echo "$ac_t""yes" 1>&6
19076 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19077 cat >> confdefs.h <<EOF
19078 #define $ac_tr_func 1
19079 EOF
19080
19081 else
19082 echo "$ac_t""no" 1>&6
19083 fi
19084 done
19085
19086 fi
19087 fi
19088
19089
19090
19091 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
19092 echo "configure:19093: checking for modfl declaration" >&5
19093 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
19094 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
19095 echo $ac_n "(cached) $ac_c" 1>&6
19096 else
19097
19098
19099 ac_ext=C
19100 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19101 ac_cpp='$CXXCPP $CPPFLAGS'
19102 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19103 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19104 cross_compiling=$ac_cv_prog_cxx_cross
19105
19106 cat > conftest.$ac_ext <<EOF
19107 #line 19108 "configure"
19108 #include "confdefs.h"
19109 #include <math.h>
19110 int main() {
19111 modfl(0, 0);
19112 ; return 0; }
19113 EOF
19114 if { (eval echo configure:19115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19115 rm -rf conftest*
19116 glibcpp_cv_func_modfl_use=yes
19117 else
19118 echo "configure: failed program was:" >&5
19119 cat conftest.$ac_ext >&5
19120 rm -rf conftest*
19121 glibcpp_cv_func_modfl_use=no
19122 fi
19123 rm -f conftest*
19124 ac_ext=c
19125 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19126 ac_cpp='$CPP $CPPFLAGS'
19127 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19128 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19129 cross_compiling=$ac_cv_prog_cc_cross
19130
19131
19132 fi
19133
19134 fi
19135 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
19136
19137 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
19138 for ac_func in modfl
19139 do
19140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19141 echo "configure:19142: checking for $ac_func" >&5
19142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19143 echo $ac_n "(cached) $ac_c" 1>&6
19144 else
19145 cat > conftest.$ac_ext <<EOF
19146 #line 19147 "configure"
19147 #include "confdefs.h"
19148 /* System header to define __stub macros and hopefully few prototypes,
19149 which can conflict with char $ac_func(); below. */
19150 #include <assert.h>
19151 /* Override any gcc2 internal prototype to avoid an error. */
19152 /* We use char because int might match the return type of a gcc2
19153 builtin and then its argument prototype would still apply. */
19154 char $ac_func();
19155
19156 int main() {
19157
19158 /* The GNU C library defines this for functions which it implements
19159 to always fail with ENOSYS. Some functions are actually named
19160 something starting with __ and the normal name is an alias. */
19161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19162 choke me
19163 #else
19164 $ac_func();
19165 #endif
19166
19167 ; return 0; }
19168 EOF
19169 if { (eval echo configure:19170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19170 rm -rf conftest*
19171 eval "ac_cv_func_$ac_func=yes"
19172 else
19173 echo "configure: failed program was:" >&5
19174 cat conftest.$ac_ext >&5
19175 rm -rf conftest*
19176 eval "ac_cv_func_$ac_func=no"
19177 fi
19178 rm -f conftest*
19179 fi
19180
19181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19182 echo "$ac_t""yes" 1>&6
19183 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19184 cat >> confdefs.h <<EOF
19185 #define $ac_tr_func 1
19186 EOF
19187
19188 else
19189 echo "$ac_t""no" 1>&6
19190 fi
19191 done
19192
19193 else
19194
19195 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
19196 echo "configure:19197: checking for _modfl declaration" >&5
19197 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
19198 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
19199 echo $ac_n "(cached) $ac_c" 1>&6
19200 else
19201
19202
19203 ac_ext=C
19204 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19205 ac_cpp='$CXXCPP $CPPFLAGS'
19206 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19207 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19208 cross_compiling=$ac_cv_prog_cxx_cross
19209
19210 cat > conftest.$ac_ext <<EOF
19211 #line 19212 "configure"
19212 #include "confdefs.h"
19213 #include <math.h>
19214 int main() {
19215 _modfl(0, 0);
19216 ; return 0; }
19217 EOF
19218 if { (eval echo configure:19219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19219 rm -rf conftest*
19220 glibcpp_cv_func__modfl_use=yes
19221 else
19222 echo "configure: failed program was:" >&5
19223 cat conftest.$ac_ext >&5
19224 rm -rf conftest*
19225 glibcpp_cv_func__modfl_use=no
19226 fi
19227 rm -f conftest*
19228 ac_ext=c
19229 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19230 ac_cpp='$CPP $CPPFLAGS'
19231 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19232 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19233 cross_compiling=$ac_cv_prog_cc_cross
19234
19235
19236 fi
19237
19238 fi
19239 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
19240
19241 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19242 for ac_func in _modfl
19243 do
19244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19245 echo "configure:19246: checking for $ac_func" >&5
19246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19247 echo $ac_n "(cached) $ac_c" 1>&6
19248 else
19249 cat > conftest.$ac_ext <<EOF
19250 #line 19251 "configure"
19251 #include "confdefs.h"
19252 /* System header to define __stub macros and hopefully few prototypes,
19253 which can conflict with char $ac_func(); below. */
19254 #include <assert.h>
19255 /* Override any gcc2 internal prototype to avoid an error. */
19256 /* We use char because int might match the return type of a gcc2
19257 builtin and then its argument prototype would still apply. */
19258 char $ac_func();
19259
19260 int main() {
19261
19262 /* The GNU C library defines this for functions which it implements
19263 to always fail with ENOSYS. Some functions are actually named
19264 something starting with __ and the normal name is an alias. */
19265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19266 choke me
19267 #else
19268 $ac_func();
19269 #endif
19270
19271 ; return 0; }
19272 EOF
19273 if { (eval echo configure:19274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19274 rm -rf conftest*
19275 eval "ac_cv_func_$ac_func=yes"
19276 else
19277 echo "configure: failed program was:" >&5
19278 cat conftest.$ac_ext >&5
19279 rm -rf conftest*
19280 eval "ac_cv_func_$ac_func=no"
19281 fi
19282 rm -f conftest*
19283 fi
19284
19285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19286 echo "$ac_t""yes" 1>&6
19287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19288 cat >> confdefs.h <<EOF
19289 #define $ac_tr_func 1
19290 EOF
19291
19292 else
19293 echo "$ac_t""no" 1>&6
19294 fi
19295 done
19296
19297 fi
19298 fi
19299
19300
19301
19302 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19303 echo "configure:19304: checking for powl declaration" >&5
19304 if test x${glibcpp_cv_func_powl_use+set} != xset; then
19305 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19306 echo $ac_n "(cached) $ac_c" 1>&6
19307 else
19308
19309
19310 ac_ext=C
19311 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19312 ac_cpp='$CXXCPP $CPPFLAGS'
19313 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19314 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19315 cross_compiling=$ac_cv_prog_cxx_cross
19316
19317 cat > conftest.$ac_ext <<EOF
19318 #line 19319 "configure"
19319 #include "confdefs.h"
19320 #include <math.h>
19321 int main() {
19322 powl(0, 0);
19323 ; return 0; }
19324 EOF
19325 if { (eval echo configure:19326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19326 rm -rf conftest*
19327 glibcpp_cv_func_powl_use=yes
19328 else
19329 echo "configure: failed program was:" >&5
19330 cat conftest.$ac_ext >&5
19331 rm -rf conftest*
19332 glibcpp_cv_func_powl_use=no
19333 fi
19334 rm -f conftest*
19335 ac_ext=c
19336 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19337 ac_cpp='$CPP $CPPFLAGS'
19338 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19339 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19340 cross_compiling=$ac_cv_prog_cc_cross
19341
19342
19343 fi
19344
19345 fi
19346 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19347
19348 if test x$glibcpp_cv_func_powl_use = x"yes"; then
19349 for ac_func in powl
19350 do
19351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19352 echo "configure:19353: checking for $ac_func" >&5
19353 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19354 echo $ac_n "(cached) $ac_c" 1>&6
19355 else
19356 cat > conftest.$ac_ext <<EOF
19357 #line 19358 "configure"
19358 #include "confdefs.h"
19359 /* System header to define __stub macros and hopefully few prototypes,
19360 which can conflict with char $ac_func(); below. */
19361 #include <assert.h>
19362 /* Override any gcc2 internal prototype to avoid an error. */
19363 /* We use char because int might match the return type of a gcc2
19364 builtin and then its argument prototype would still apply. */
19365 char $ac_func();
19366
19367 int main() {
19368
19369 /* The GNU C library defines this for functions which it implements
19370 to always fail with ENOSYS. Some functions are actually named
19371 something starting with __ and the normal name is an alias. */
19372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19373 choke me
19374 #else
19375 $ac_func();
19376 #endif
19377
19378 ; return 0; }
19379 EOF
19380 if { (eval echo configure:19381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19381 rm -rf conftest*
19382 eval "ac_cv_func_$ac_func=yes"
19383 else
19384 echo "configure: failed program was:" >&5
19385 cat conftest.$ac_ext >&5
19386 rm -rf conftest*
19387 eval "ac_cv_func_$ac_func=no"
19388 fi
19389 rm -f conftest*
19390 fi
19391
19392 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19393 echo "$ac_t""yes" 1>&6
19394 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19395 cat >> confdefs.h <<EOF
19396 #define $ac_tr_func 1
19397 EOF
19398
19399 else
19400 echo "$ac_t""no" 1>&6
19401 fi
19402 done
19403
19404 else
19405
19406 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19407 echo "configure:19408: checking for _powl declaration" >&5
19408 if test x${glibcpp_cv_func__powl_use+set} != xset; then
19409 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19410 echo $ac_n "(cached) $ac_c" 1>&6
19411 else
19412
19413
19414 ac_ext=C
19415 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19416 ac_cpp='$CXXCPP $CPPFLAGS'
19417 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19418 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19419 cross_compiling=$ac_cv_prog_cxx_cross
19420
19421 cat > conftest.$ac_ext <<EOF
19422 #line 19423 "configure"
19423 #include "confdefs.h"
19424 #include <math.h>
19425 int main() {
19426 _powl(0, 0);
19427 ; return 0; }
19428 EOF
19429 if { (eval echo configure:19430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19430 rm -rf conftest*
19431 glibcpp_cv_func__powl_use=yes
19432 else
19433 echo "configure: failed program was:" >&5
19434 cat conftest.$ac_ext >&5
19435 rm -rf conftest*
19436 glibcpp_cv_func__powl_use=no
19437 fi
19438 rm -f conftest*
19439 ac_ext=c
19440 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19441 ac_cpp='$CPP $CPPFLAGS'
19442 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19443 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19444 cross_compiling=$ac_cv_prog_cc_cross
19445
19446
19447 fi
19448
19449 fi
19450 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19451
19452 if test x$glibcpp_cv_func__powl_use = x"yes"; then
19453 for ac_func in _powl
19454 do
19455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19456 echo "configure:19457: checking for $ac_func" >&5
19457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19458 echo $ac_n "(cached) $ac_c" 1>&6
19459 else
19460 cat > conftest.$ac_ext <<EOF
19461 #line 19462 "configure"
19462 #include "confdefs.h"
19463 /* System header to define __stub macros and hopefully few prototypes,
19464 which can conflict with char $ac_func(); below. */
19465 #include <assert.h>
19466 /* Override any gcc2 internal prototype to avoid an error. */
19467 /* We use char because int might match the return type of a gcc2
19468 builtin and then its argument prototype would still apply. */
19469 char $ac_func();
19470
19471 int main() {
19472
19473 /* The GNU C library defines this for functions which it implements
19474 to always fail with ENOSYS. Some functions are actually named
19475 something starting with __ and the normal name is an alias. */
19476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19477 choke me
19478 #else
19479 $ac_func();
19480 #endif
19481
19482 ; return 0; }
19483 EOF
19484 if { (eval echo configure:19485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19485 rm -rf conftest*
19486 eval "ac_cv_func_$ac_func=yes"
19487 else
19488 echo "configure: failed program was:" >&5
19489 cat conftest.$ac_ext >&5
19490 rm -rf conftest*
19491 eval "ac_cv_func_$ac_func=no"
19492 fi
19493 rm -f conftest*
19494 fi
19495
19496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19497 echo "$ac_t""yes" 1>&6
19498 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19499 cat >> confdefs.h <<EOF
19500 #define $ac_tr_func 1
19501 EOF
19502
19503 else
19504 echo "$ac_t""no" 1>&6
19505 fi
19506 done
19507
19508 fi
19509 fi
19510
19511
19512
19513 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19514 echo "configure:19515: checking for sqrtl declaration" >&5
19515 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19516 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19517 echo $ac_n "(cached) $ac_c" 1>&6
19518 else
19519
19520
19521 ac_ext=C
19522 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19523 ac_cpp='$CXXCPP $CPPFLAGS'
19524 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19525 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19526 cross_compiling=$ac_cv_prog_cxx_cross
19527
19528 cat > conftest.$ac_ext <<EOF
19529 #line 19530 "configure"
19530 #include "confdefs.h"
19531 #include <math.h>
19532 #ifdef HAVE_IEEEFP_H
19533 #include <ieeefp.h>
19534 #endif
19535
19536 int main() {
19537 sqrtl(0);
19538 ; return 0; }
19539 EOF
19540 if { (eval echo configure:19541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19541 rm -rf conftest*
19542 glibcpp_cv_func_sqrtl_use=yes
19543 else
19544 echo "configure: failed program was:" >&5
19545 cat conftest.$ac_ext >&5
19546 rm -rf conftest*
19547 glibcpp_cv_func_sqrtl_use=no
19548 fi
19549 rm -f conftest*
19550 ac_ext=c
19551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19552 ac_cpp='$CPP $CPPFLAGS'
19553 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19554 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19555 cross_compiling=$ac_cv_prog_cc_cross
19556
19557
19558 fi
19559
19560 fi
19561 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19562
19563 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19564 for ac_func in sqrtl
19565 do
19566 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19567 echo "configure:19568: checking for $ac_func" >&5
19568 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19569 echo $ac_n "(cached) $ac_c" 1>&6
19570 else
19571 cat > conftest.$ac_ext <<EOF
19572 #line 19573 "configure"
19573 #include "confdefs.h"
19574 /* System header to define __stub macros and hopefully few prototypes,
19575 which can conflict with char $ac_func(); below. */
19576 #include <assert.h>
19577 /* Override any gcc2 internal prototype to avoid an error. */
19578 /* We use char because int might match the return type of a gcc2
19579 builtin and then its argument prototype would still apply. */
19580 char $ac_func();
19581
19582 int main() {
19583
19584 /* The GNU C library defines this for functions which it implements
19585 to always fail with ENOSYS. Some functions are actually named
19586 something starting with __ and the normal name is an alias. */
19587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19588 choke me
19589 #else
19590 $ac_func();
19591 #endif
19592
19593 ; return 0; }
19594 EOF
19595 if { (eval echo configure:19596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19596 rm -rf conftest*
19597 eval "ac_cv_func_$ac_func=yes"
19598 else
19599 echo "configure: failed program was:" >&5
19600 cat conftest.$ac_ext >&5
19601 rm -rf conftest*
19602 eval "ac_cv_func_$ac_func=no"
19603 fi
19604 rm -f conftest*
19605 fi
19606
19607 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19608 echo "$ac_t""yes" 1>&6
19609 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19610 cat >> confdefs.h <<EOF
19611 #define $ac_tr_func 1
19612 EOF
19613
19614 else
19615 echo "$ac_t""no" 1>&6
19616 fi
19617 done
19618
19619 else
19620
19621 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19622 echo "configure:19623: checking for _sqrtl declaration" >&5
19623 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19624 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19625 echo $ac_n "(cached) $ac_c" 1>&6
19626 else
19627
19628
19629 ac_ext=C
19630 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19631 ac_cpp='$CXXCPP $CPPFLAGS'
19632 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19633 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19634 cross_compiling=$ac_cv_prog_cxx_cross
19635
19636 cat > conftest.$ac_ext <<EOF
19637 #line 19638 "configure"
19638 #include "confdefs.h"
19639 #include <math.h>
19640 #ifdef HAVE_IEEEFP_H
19641 #include <ieeefp.h>
19642 #endif
19643
19644 int main() {
19645 _sqrtl(0);
19646 ; return 0; }
19647 EOF
19648 if { (eval echo configure:19649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19649 rm -rf conftest*
19650 glibcpp_cv_func__sqrtl_use=yes
19651 else
19652 echo "configure: failed program was:" >&5
19653 cat conftest.$ac_ext >&5
19654 rm -rf conftest*
19655 glibcpp_cv_func__sqrtl_use=no
19656 fi
19657 rm -f conftest*
19658 ac_ext=c
19659 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19660 ac_cpp='$CPP $CPPFLAGS'
19661 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19662 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19663 cross_compiling=$ac_cv_prog_cc_cross
19664
19665
19666 fi
19667
19668 fi
19669 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19670
19671 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19672 for ac_func in _sqrtl
19673 do
19674 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19675 echo "configure:19676: checking for $ac_func" >&5
19676 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19677 echo $ac_n "(cached) $ac_c" 1>&6
19678 else
19679 cat > conftest.$ac_ext <<EOF
19680 #line 19681 "configure"
19681 #include "confdefs.h"
19682 /* System header to define __stub macros and hopefully few prototypes,
19683 which can conflict with char $ac_func(); below. */
19684 #include <assert.h>
19685 /* Override any gcc2 internal prototype to avoid an error. */
19686 /* We use char because int might match the return type of a gcc2
19687 builtin and then its argument prototype would still apply. */
19688 char $ac_func();
19689
19690 int main() {
19691
19692 /* The GNU C library defines this for functions which it implements
19693 to always fail with ENOSYS. Some functions are actually named
19694 something starting with __ and the normal name is an alias. */
19695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19696 choke me
19697 #else
19698 $ac_func();
19699 #endif
19700
19701 ; return 0; }
19702 EOF
19703 if { (eval echo configure:19704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19704 rm -rf conftest*
19705 eval "ac_cv_func_$ac_func=yes"
19706 else
19707 echo "configure: failed program was:" >&5
19708 cat conftest.$ac_ext >&5
19709 rm -rf conftest*
19710 eval "ac_cv_func_$ac_func=no"
19711 fi
19712 rm -f conftest*
19713 fi
19714
19715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19716 echo "$ac_t""yes" 1>&6
19717 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19718 cat >> confdefs.h <<EOF
19719 #define $ac_tr_func 1
19720 EOF
19721
19722 else
19723 echo "$ac_t""no" 1>&6
19724 fi
19725 done
19726
19727 fi
19728 fi
19729
19730
19731
19732 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19733 echo "configure:19734: checking for sincosl declaration" >&5
19734 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19735 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19736 echo $ac_n "(cached) $ac_c" 1>&6
19737 else
19738
19739
19740 ac_ext=C
19741 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19742 ac_cpp='$CXXCPP $CPPFLAGS'
19743 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19744 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19745 cross_compiling=$ac_cv_prog_cxx_cross
19746
19747 cat > conftest.$ac_ext <<EOF
19748 #line 19749 "configure"
19749 #include "confdefs.h"
19750 #include <math.h>
19751 int main() {
19752 sincosl(0, 0, 0);
19753 ; return 0; }
19754 EOF
19755 if { (eval echo configure:19756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19756 rm -rf conftest*
19757 glibcpp_cv_func_sincosl_use=yes
19758 else
19759 echo "configure: failed program was:" >&5
19760 cat conftest.$ac_ext >&5
19761 rm -rf conftest*
19762 glibcpp_cv_func_sincosl_use=no
19763 fi
19764 rm -f conftest*
19765 ac_ext=c
19766 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19767 ac_cpp='$CPP $CPPFLAGS'
19768 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19769 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19770 cross_compiling=$ac_cv_prog_cc_cross
19771
19772
19773 fi
19774
19775 fi
19776 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19777
19778 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19779 for ac_func in sincosl
19780 do
19781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19782 echo "configure:19783: checking for $ac_func" >&5
19783 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19784 echo $ac_n "(cached) $ac_c" 1>&6
19785 else
19786 cat > conftest.$ac_ext <<EOF
19787 #line 19788 "configure"
19788 #include "confdefs.h"
19789 /* System header to define __stub macros and hopefully few prototypes,
19790 which can conflict with char $ac_func(); below. */
19791 #include <assert.h>
19792 /* Override any gcc2 internal prototype to avoid an error. */
19793 /* We use char because int might match the return type of a gcc2
19794 builtin and then its argument prototype would still apply. */
19795 char $ac_func();
19796
19797 int main() {
19798
19799 /* The GNU C library defines this for functions which it implements
19800 to always fail with ENOSYS. Some functions are actually named
19801 something starting with __ and the normal name is an alias. */
19802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19803 choke me
19804 #else
19805 $ac_func();
19806 #endif
19807
19808 ; return 0; }
19809 EOF
19810 if { (eval echo configure:19811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19811 rm -rf conftest*
19812 eval "ac_cv_func_$ac_func=yes"
19813 else
19814 echo "configure: failed program was:" >&5
19815 cat conftest.$ac_ext >&5
19816 rm -rf conftest*
19817 eval "ac_cv_func_$ac_func=no"
19818 fi
19819 rm -f conftest*
19820 fi
19821
19822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19823 echo "$ac_t""yes" 1>&6
19824 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19825 cat >> confdefs.h <<EOF
19826 #define $ac_tr_func 1
19827 EOF
19828
19829 else
19830 echo "$ac_t""no" 1>&6
19831 fi
19832 done
19833
19834 else
19835
19836 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19837 echo "configure:19838: checking for _sincosl declaration" >&5
19838 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19839 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19840 echo $ac_n "(cached) $ac_c" 1>&6
19841 else
19842
19843
19844 ac_ext=C
19845 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19846 ac_cpp='$CXXCPP $CPPFLAGS'
19847 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19848 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19849 cross_compiling=$ac_cv_prog_cxx_cross
19850
19851 cat > conftest.$ac_ext <<EOF
19852 #line 19853 "configure"
19853 #include "confdefs.h"
19854 #include <math.h>
19855 int main() {
19856 _sincosl(0, 0, 0);
19857 ; return 0; }
19858 EOF
19859 if { (eval echo configure:19860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19860 rm -rf conftest*
19861 glibcpp_cv_func__sincosl_use=yes
19862 else
19863 echo "configure: failed program was:" >&5
19864 cat conftest.$ac_ext >&5
19865 rm -rf conftest*
19866 glibcpp_cv_func__sincosl_use=no
19867 fi
19868 rm -f conftest*
19869 ac_ext=c
19870 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19871 ac_cpp='$CPP $CPPFLAGS'
19872 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19873 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19874 cross_compiling=$ac_cv_prog_cc_cross
19875
19876
19877 fi
19878
19879 fi
19880 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19881
19882 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19883 for ac_func in _sincosl
19884 do
19885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19886 echo "configure:19887: checking for $ac_func" >&5
19887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19888 echo $ac_n "(cached) $ac_c" 1>&6
19889 else
19890 cat > conftest.$ac_ext <<EOF
19891 #line 19892 "configure"
19892 #include "confdefs.h"
19893 /* System header to define __stub macros and hopefully few prototypes,
19894 which can conflict with char $ac_func(); below. */
19895 #include <assert.h>
19896 /* Override any gcc2 internal prototype to avoid an error. */
19897 /* We use char because int might match the return type of a gcc2
19898 builtin and then its argument prototype would still apply. */
19899 char $ac_func();
19900
19901 int main() {
19902
19903 /* The GNU C library defines this for functions which it implements
19904 to always fail with ENOSYS. Some functions are actually named
19905 something starting with __ and the normal name is an alias. */
19906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19907 choke me
19908 #else
19909 $ac_func();
19910 #endif
19911
19912 ; return 0; }
19913 EOF
19914 if { (eval echo configure:19915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19915 rm -rf conftest*
19916 eval "ac_cv_func_$ac_func=yes"
19917 else
19918 echo "configure: failed program was:" >&5
19919 cat conftest.$ac_ext >&5
19920 rm -rf conftest*
19921 eval "ac_cv_func_$ac_func=no"
19922 fi
19923 rm -f conftest*
19924 fi
19925
19926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19927 echo "$ac_t""yes" 1>&6
19928 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19929 cat >> confdefs.h <<EOF
19930 #define $ac_tr_func 1
19931 EOF
19932
19933 else
19934 echo "$ac_t""no" 1>&6
19935 fi
19936 done
19937
19938 fi
19939 fi
19940
19941
19942
19943 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19944 echo "configure:19945: checking for finitel declaration" >&5
19945 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19946 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19947 echo $ac_n "(cached) $ac_c" 1>&6
19948 else
19949
19950
19951 ac_ext=C
19952 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19953 ac_cpp='$CXXCPP $CPPFLAGS'
19954 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19955 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19956 cross_compiling=$ac_cv_prog_cxx_cross
19957
19958 cat > conftest.$ac_ext <<EOF
19959 #line 19960 "configure"
19960 #include "confdefs.h"
19961 #include <math.h>
19962 #ifdef HAVE_IEEEFP_H
19963 #include <ieeefp.h>
19964 #endif
19965
19966 int main() {
19967 finitel(0);
19968 ; return 0; }
19969 EOF
19970 if { (eval echo configure:19971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19971 rm -rf conftest*
19972 glibcpp_cv_func_finitel_use=yes
19973 else
19974 echo "configure: failed program was:" >&5
19975 cat conftest.$ac_ext >&5
19976 rm -rf conftest*
19977 glibcpp_cv_func_finitel_use=no
19978 fi
19979 rm -f conftest*
19980 ac_ext=c
19981 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19982 ac_cpp='$CPP $CPPFLAGS'
19983 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19984 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19985 cross_compiling=$ac_cv_prog_cc_cross
19986
19987
19988 fi
19989
19990 fi
19991 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19992
19993 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19994 for ac_func in finitel
19995 do
19996 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19997 echo "configure:19998: checking for $ac_func" >&5
19998 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19999 echo $ac_n "(cached) $ac_c" 1>&6
20000 else
20001 cat > conftest.$ac_ext <<EOF
20002 #line 20003 "configure"
20003 #include "confdefs.h"
20004 /* System header to define __stub macros and hopefully few prototypes,
20005 which can conflict with char $ac_func(); below. */
20006 #include <assert.h>
20007 /* Override any gcc2 internal prototype to avoid an error. */
20008 /* We use char because int might match the return type of a gcc2
20009 builtin and then its argument prototype would still apply. */
20010 char $ac_func();
20011
20012 int main() {
20013
20014 /* The GNU C library defines this for functions which it implements
20015 to always fail with ENOSYS. Some functions are actually named
20016 something starting with __ and the normal name is an alias. */
20017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20018 choke me
20019 #else
20020 $ac_func();
20021 #endif
20022
20023 ; return 0; }
20024 EOF
20025 if { (eval echo configure:20026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20026 rm -rf conftest*
20027 eval "ac_cv_func_$ac_func=yes"
20028 else
20029 echo "configure: failed program was:" >&5
20030 cat conftest.$ac_ext >&5
20031 rm -rf conftest*
20032 eval "ac_cv_func_$ac_func=no"
20033 fi
20034 rm -f conftest*
20035 fi
20036
20037 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20038 echo "$ac_t""yes" 1>&6
20039 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20040 cat >> confdefs.h <<EOF
20041 #define $ac_tr_func 1
20042 EOF
20043
20044 else
20045 echo "$ac_t""no" 1>&6
20046 fi
20047 done
20048
20049 else
20050
20051 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
20052 echo "configure:20053: checking for _finitel declaration" >&5
20053 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
20054 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
20055 echo $ac_n "(cached) $ac_c" 1>&6
20056 else
20057
20058
20059 ac_ext=C
20060 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20061 ac_cpp='$CXXCPP $CPPFLAGS'
20062 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20063 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20064 cross_compiling=$ac_cv_prog_cxx_cross
20065
20066 cat > conftest.$ac_ext <<EOF
20067 #line 20068 "configure"
20068 #include "confdefs.h"
20069 #include <math.h>
20070 #ifdef HAVE_IEEEFP_H
20071 #include <ieeefp.h>
20072 #endif
20073
20074 int main() {
20075 _finitel(0);
20076 ; return 0; }
20077 EOF
20078 if { (eval echo configure:20079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20079 rm -rf conftest*
20080 glibcpp_cv_func__finitel_use=yes
20081 else
20082 echo "configure: failed program was:" >&5
20083 cat conftest.$ac_ext >&5
20084 rm -rf conftest*
20085 glibcpp_cv_func__finitel_use=no
20086 fi
20087 rm -f conftest*
20088 ac_ext=c
20089 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20090 ac_cpp='$CPP $CPPFLAGS'
20091 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20092 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20093 cross_compiling=$ac_cv_prog_cc_cross
20094
20095
20096 fi
20097
20098 fi
20099 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
20100
20101 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
20102 for ac_func in _finitel
20103 do
20104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20105 echo "configure:20106: checking for $ac_func" >&5
20106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20107 echo $ac_n "(cached) $ac_c" 1>&6
20108 else
20109 cat > conftest.$ac_ext <<EOF
20110 #line 20111 "configure"
20111 #include "confdefs.h"
20112 /* System header to define __stub macros and hopefully few prototypes,
20113 which can conflict with char $ac_func(); below. */
20114 #include <assert.h>
20115 /* Override any gcc2 internal prototype to avoid an error. */
20116 /* We use char because int might match the return type of a gcc2
20117 builtin and then its argument prototype would still apply. */
20118 char $ac_func();
20119
20120 int main() {
20121
20122 /* The GNU C library defines this for functions which it implements
20123 to always fail with ENOSYS. Some functions are actually named
20124 something starting with __ and the normal name is an alias. */
20125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20126 choke me
20127 #else
20128 $ac_func();
20129 #endif
20130
20131 ; return 0; }
20132 EOF
20133 if { (eval echo configure:20134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20134 rm -rf conftest*
20135 eval "ac_cv_func_$ac_func=yes"
20136 else
20137 echo "configure: failed program was:" >&5
20138 cat conftest.$ac_ext >&5
20139 rm -rf conftest*
20140 eval "ac_cv_func_$ac_func=no"
20141 fi
20142 rm -f conftest*
20143 fi
20144
20145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20146 echo "$ac_t""yes" 1>&6
20147 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20148 cat >> confdefs.h <<EOF
20149 #define $ac_tr_func 1
20150 EOF
20151
20152 else
20153 echo "$ac_t""no" 1>&6
20154 fi
20155 done
20156
20157 fi
20158 fi
20159
20160
20161
20162
20163 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
20164 echo "configure:20165: checking for _float trig functions" >&5
20165 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
20166 echo $ac_n "(cached) $ac_c" 1>&6
20167 else
20168
20169
20170 ac_ext=C
20171 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20172 ac_cpp='$CXXCPP $CPPFLAGS'
20173 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20174 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20175 cross_compiling=$ac_cv_prog_cxx_cross
20176
20177 cat > conftest.$ac_ext <<EOF
20178 #line 20179 "configure"
20179 #include "confdefs.h"
20180 #include <math.h>
20181 int main() {
20182 `for x in _acosf _asinf _atanf \
20183 _cosf _sinf _tanf \
20184 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
20185 ; return 0; }
20186 EOF
20187 if { (eval echo configure:20188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20188 rm -rf conftest*
20189 glibcpp_cv_func__float_trig_use=yes
20190 else
20191 echo "configure: failed program was:" >&5
20192 cat conftest.$ac_ext >&5
20193 rm -rf conftest*
20194 glibcpp_cv_func__float_trig_use=no
20195 fi
20196 rm -f conftest*
20197 ac_ext=c
20198 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20199 ac_cpp='$CPP $CPPFLAGS'
20200 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20201 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20202 cross_compiling=$ac_cv_prog_cc_cross
20203
20204 fi
20205
20206 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
20207 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
20208 for ac_func in _acosf _asinf _atanf \
20209 _cosf _sinf _tanf \
20210 _coshf _sinhf _tanhf
20211 do
20212 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20213 echo "configure:20214: checking for $ac_func" >&5
20214 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20215 echo $ac_n "(cached) $ac_c" 1>&6
20216 else
20217 cat > conftest.$ac_ext <<EOF
20218 #line 20219 "configure"
20219 #include "confdefs.h"
20220 /* System header to define __stub macros and hopefully few prototypes,
20221 which can conflict with char $ac_func(); below. */
20222 #include <assert.h>
20223 /* Override any gcc2 internal prototype to avoid an error. */
20224 /* We use char because int might match the return type of a gcc2
20225 builtin and then its argument prototype would still apply. */
20226 char $ac_func();
20227
20228 int main() {
20229
20230 /* The GNU C library defines this for functions which it implements
20231 to always fail with ENOSYS. Some functions are actually named
20232 something starting with __ and the normal name is an alias. */
20233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20234 choke me
20235 #else
20236 $ac_func();
20237 #endif
20238
20239 ; return 0; }
20240 EOF
20241 if { (eval echo configure:20242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20242 rm -rf conftest*
20243 eval "ac_cv_func_$ac_func=yes"
20244 else
20245 echo "configure: failed program was:" >&5
20246 cat conftest.$ac_ext >&5
20247 rm -rf conftest*
20248 eval "ac_cv_func_$ac_func=no"
20249 fi
20250 rm -f conftest*
20251 fi
20252
20253 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20254 echo "$ac_t""yes" 1>&6
20255 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20256 cat >> confdefs.h <<EOF
20257 #define $ac_tr_func 1
20258 EOF
20259
20260 else
20261 echo "$ac_t""no" 1>&6
20262 fi
20263 done
20264
20265 fi
20266
20267
20268 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20269 echo "configure:20270: checking for _float round functions" >&5
20270 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20271 echo $ac_n "(cached) $ac_c" 1>&6
20272 else
20273
20274
20275 ac_ext=C
20276 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20277 ac_cpp='$CXXCPP $CPPFLAGS'
20278 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20279 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20280 cross_compiling=$ac_cv_prog_cxx_cross
20281
20282 cat > conftest.$ac_ext <<EOF
20283 #line 20284 "configure"
20284 #include "confdefs.h"
20285 #include <math.h>
20286 int main() {
20287 `for x in _ceilf _floorf; do echo "$x (0);"; done`
20288 ; return 0; }
20289 EOF
20290 if { (eval echo configure:20291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20291 rm -rf conftest*
20292 glibcpp_cv_func__float_round_use=yes
20293 else
20294 echo "configure: failed program was:" >&5
20295 cat conftest.$ac_ext >&5
20296 rm -rf conftest*
20297 glibcpp_cv_func__float_round_use=no
20298 fi
20299 rm -f conftest*
20300 ac_ext=c
20301 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20302 ac_cpp='$CPP $CPPFLAGS'
20303 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20304 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20305 cross_compiling=$ac_cv_prog_cc_cross
20306
20307 fi
20308
20309 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20310 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20311 for ac_func in _ceilf _floorf
20312 do
20313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20314 echo "configure:20315: checking for $ac_func" >&5
20315 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20316 echo $ac_n "(cached) $ac_c" 1>&6
20317 else
20318 cat > conftest.$ac_ext <<EOF
20319 #line 20320 "configure"
20320 #include "confdefs.h"
20321 /* System header to define __stub macros and hopefully few prototypes,
20322 which can conflict with char $ac_func(); below. */
20323 #include <assert.h>
20324 /* Override any gcc2 internal prototype to avoid an error. */
20325 /* We use char because int might match the return type of a gcc2
20326 builtin and then its argument prototype would still apply. */
20327 char $ac_func();
20328
20329 int main() {
20330
20331 /* The GNU C library defines this for functions which it implements
20332 to always fail with ENOSYS. Some functions are actually named
20333 something starting with __ and the normal name is an alias. */
20334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20335 choke me
20336 #else
20337 $ac_func();
20338 #endif
20339
20340 ; return 0; }
20341 EOF
20342 if { (eval echo configure:20343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20343 rm -rf conftest*
20344 eval "ac_cv_func_$ac_func=yes"
20345 else
20346 echo "configure: failed program was:" >&5
20347 cat conftest.$ac_ext >&5
20348 rm -rf conftest*
20349 eval "ac_cv_func_$ac_func=no"
20350 fi
20351 rm -f conftest*
20352 fi
20353
20354 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20355 echo "$ac_t""yes" 1>&6
20356 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20357 cat >> confdefs.h <<EOF
20358 #define $ac_tr_func 1
20359 EOF
20360
20361 else
20362 echo "$ac_t""no" 1>&6
20363 fi
20364 done
20365
20366 fi
20367
20368
20369
20370 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20371 echo "configure:20372: checking for _long double trig functions" >&5
20372 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20373 echo $ac_n "(cached) $ac_c" 1>&6
20374 else
20375
20376
20377 ac_ext=C
20378 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20379 ac_cpp='$CXXCPP $CPPFLAGS'
20380 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20381 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20382 cross_compiling=$ac_cv_prog_cxx_cross
20383
20384 cat > conftest.$ac_ext <<EOF
20385 #line 20386 "configure"
20386 #include "confdefs.h"
20387 #include <math.h>
20388 int main() {
20389 `for x in _acosl _asinl _atanl \
20390 _cosl _sinl _tanl \
20391 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
20392 ; return 0; }
20393 EOF
20394 if { (eval echo configure:20395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20395 rm -rf conftest*
20396 glibcpp_cv_func__long_double_trig_use=yes
20397 else
20398 echo "configure: failed program was:" >&5
20399 cat conftest.$ac_ext >&5
20400 rm -rf conftest*
20401 glibcpp_cv_func__long_double_trig_use=no
20402 fi
20403 rm -f conftest*
20404 ac_ext=c
20405 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20406 ac_cpp='$CPP $CPPFLAGS'
20407 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20408 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20409 cross_compiling=$ac_cv_prog_cc_cross
20410
20411 fi
20412
20413 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20414 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20415 for ac_func in _acosl _asinl _atanl \
20416 _cosl _sinl _tanl \
20417 _coshl _sinhl _tanhl
20418 do
20419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20420 echo "configure:20421: checking for $ac_func" >&5
20421 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20422 echo $ac_n "(cached) $ac_c" 1>&6
20423 else
20424 cat > conftest.$ac_ext <<EOF
20425 #line 20426 "configure"
20426 #include "confdefs.h"
20427 /* System header to define __stub macros and hopefully few prototypes,
20428 which can conflict with char $ac_func(); below. */
20429 #include <assert.h>
20430 /* Override any gcc2 internal prototype to avoid an error. */
20431 /* We use char because int might match the return type of a gcc2
20432 builtin and then its argument prototype would still apply. */
20433 char $ac_func();
20434
20435 int main() {
20436
20437 /* The GNU C library defines this for functions which it implements
20438 to always fail with ENOSYS. Some functions are actually named
20439 something starting with __ and the normal name is an alias. */
20440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20441 choke me
20442 #else
20443 $ac_func();
20444 #endif
20445
20446 ; return 0; }
20447 EOF
20448 if { (eval echo configure:20449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20449 rm -rf conftest*
20450 eval "ac_cv_func_$ac_func=yes"
20451 else
20452 echo "configure: failed program was:" >&5
20453 cat conftest.$ac_ext >&5
20454 rm -rf conftest*
20455 eval "ac_cv_func_$ac_func=no"
20456 fi
20457 rm -f conftest*
20458 fi
20459
20460 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20461 echo "$ac_t""yes" 1>&6
20462 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20463 cat >> confdefs.h <<EOF
20464 #define $ac_tr_func 1
20465 EOF
20466
20467 else
20468 echo "$ac_t""no" 1>&6
20469 fi
20470 done
20471
20472 fi
20473
20474
20475 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20476 echo "configure:20477: checking for _long double round functions" >&5
20477 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20478 echo $ac_n "(cached) $ac_c" 1>&6
20479 else
20480
20481
20482 ac_ext=C
20483 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20484 ac_cpp='$CXXCPP $CPPFLAGS'
20485 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20486 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20487 cross_compiling=$ac_cv_prog_cxx_cross
20488
20489 cat > conftest.$ac_ext <<EOF
20490 #line 20491 "configure"
20491 #include "confdefs.h"
20492 #include <math.h>
20493 int main() {
20494 `for x in _ceill _floorl; do echo "$x (0);"; done`
20495 ; return 0; }
20496 EOF
20497 if { (eval echo configure:20498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20498 rm -rf conftest*
20499 glibcpp_cv_func__long_double_round_use=yes
20500 else
20501 echo "configure: failed program was:" >&5
20502 cat conftest.$ac_ext >&5
20503 rm -rf conftest*
20504 glibcpp_cv_func__long_double_round_use=no
20505 fi
20506 rm -f conftest*
20507 ac_ext=c
20508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20509 ac_cpp='$CPP $CPPFLAGS'
20510 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20511 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20512 cross_compiling=$ac_cv_prog_cc_cross
20513
20514 fi
20515
20516 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20517 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20518 for ac_func in _ceill _floorl
20519 do
20520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20521 echo "configure:20522: checking for $ac_func" >&5
20522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20523 echo $ac_n "(cached) $ac_c" 1>&6
20524 else
20525 cat > conftest.$ac_ext <<EOF
20526 #line 20527 "configure"
20527 #include "confdefs.h"
20528 /* System header to define __stub macros and hopefully few prototypes,
20529 which can conflict with char $ac_func(); below. */
20530 #include <assert.h>
20531 /* Override any gcc2 internal prototype to avoid an error. */
20532 /* We use char because int might match the return type of a gcc2
20533 builtin and then its argument prototype would still apply. */
20534 char $ac_func();
20535
20536 int main() {
20537
20538 /* The GNU C library defines this for functions which it implements
20539 to always fail with ENOSYS. Some functions are actually named
20540 something starting with __ and the normal name is an alias. */
20541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20542 choke me
20543 #else
20544 $ac_func();
20545 #endif
20546
20547 ; return 0; }
20548 EOF
20549 if { (eval echo configure:20550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20550 rm -rf conftest*
20551 eval "ac_cv_func_$ac_func=yes"
20552 else
20553 echo "configure: failed program was:" >&5
20554 cat conftest.$ac_ext >&5
20555 rm -rf conftest*
20556 eval "ac_cv_func_$ac_func=no"
20557 fi
20558 rm -f conftest*
20559 fi
20560
20561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20562 echo "$ac_t""yes" 1>&6
20563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20564 cat >> confdefs.h <<EOF
20565 #define $ac_tr_func 1
20566 EOF
20567
20568 else
20569 echo "$ac_t""no" 1>&6
20570 fi
20571 done
20572
20573 fi
20574
20575
20576 LIBS="$ac_save_LIBS"
20577 CXXFLAGS="$ac_save_CXXFLAGS"
20578
20579
20580
20581 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
20582 echo "configure:20583: checking for __builtin_abs declaration" >&5
20583 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
20584 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
20585 echo $ac_n "(cached) $ac_c" 1>&6
20586 else
20587
20588
20589 ac_ext=C
20590 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20591 ac_cpp='$CXXCPP $CPPFLAGS'
20592 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20593 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20594 cross_compiling=$ac_cv_prog_cxx_cross
20595
20596 cat > conftest.$ac_ext <<EOF
20597 #line 20598 "configure"
20598 #include "confdefs.h"
20599 #include <math.h>
20600 int main() {
20601 __builtin_abs(0);
20602 ; return 0; }
20603 EOF
20604 if { (eval echo configure:20605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20605 rm -rf conftest*
20606 glibcpp_cv_func___builtin_abs_use=yes
20607 else
20608 echo "configure: failed program was:" >&5
20609 cat conftest.$ac_ext >&5
20610 rm -rf conftest*
20611 glibcpp_cv_func___builtin_abs_use=no
20612 fi
20613 rm -f conftest*
20614 ac_ext=c
20615 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20616 ac_cpp='$CPP $CPPFLAGS'
20617 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20618 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20619 cross_compiling=$ac_cv_prog_cc_cross
20620
20621
20622 fi
20623
20624 fi
20625 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
20626 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
20627 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
20628 echo "configure:20629: checking for __builtin_abs linkage" >&5
20629 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
20630 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
20631 echo $ac_n "(cached) $ac_c" 1>&6
20632 else
20633
20634 cat > conftest.$ac_ext <<EOF
20635 #line 20636 "configure"
20636 #include "confdefs.h"
20637 #include <math.h>
20638 int main() {
20639 __builtin_abs(0);
20640 ; return 0; }
20641 EOF
20642 if { (eval echo configure:20643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20643 rm -rf conftest*
20644 glibcpp_cv_func___builtin_abs_link=yes
20645 else
20646 echo "configure: failed program was:" >&5
20647 cat conftest.$ac_ext >&5
20648 rm -rf conftest*
20649 glibcpp_cv_func___builtin_abs_link=no
20650 fi
20651 rm -f conftest*
20652
20653 fi
20654
20655 fi
20656 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
20657 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
20658 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20659 cat >> confdefs.h <<EOF
20660 #define ${ac_tr_func} 1
20661 EOF
20662
20663 fi
20664 fi
20665
20666
20667 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
20668 echo "configure:20669: checking for __builtin_fabsf declaration" >&5
20669 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
20670 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
20671 echo $ac_n "(cached) $ac_c" 1>&6
20672 else
20673
20674
20675 ac_ext=C
20676 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20677 ac_cpp='$CXXCPP $CPPFLAGS'
20678 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20679 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20680 cross_compiling=$ac_cv_prog_cxx_cross
20681
20682 cat > conftest.$ac_ext <<EOF
20683 #line 20684 "configure"
20684 #include "confdefs.h"
20685 #include <math.h>
20686 int main() {
20687 __builtin_fabsf(0);
20688 ; return 0; }
20689 EOF
20690 if { (eval echo configure:20691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20691 rm -rf conftest*
20692 glibcpp_cv_func___builtin_fabsf_use=yes
20693 else
20694 echo "configure: failed program was:" >&5
20695 cat conftest.$ac_ext >&5
20696 rm -rf conftest*
20697 glibcpp_cv_func___builtin_fabsf_use=no
20698 fi
20699 rm -f conftest*
20700 ac_ext=c
20701 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20702 ac_cpp='$CPP $CPPFLAGS'
20703 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20704 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20705 cross_compiling=$ac_cv_prog_cc_cross
20706
20707
20708 fi
20709
20710 fi
20711 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
20712 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
20713 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
20714 echo "configure:20715: checking for __builtin_fabsf linkage" >&5
20715 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
20716 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
20717 echo $ac_n "(cached) $ac_c" 1>&6
20718 else
20719
20720 cat > conftest.$ac_ext <<EOF
20721 #line 20722 "configure"
20722 #include "confdefs.h"
20723 #include <math.h>
20724 int main() {
20725 __builtin_fabsf(0);
20726 ; return 0; }
20727 EOF
20728 if { (eval echo configure:20729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20729 rm -rf conftest*
20730 glibcpp_cv_func___builtin_fabsf_link=yes
20731 else
20732 echo "configure: failed program was:" >&5
20733 cat conftest.$ac_ext >&5
20734 rm -rf conftest*
20735 glibcpp_cv_func___builtin_fabsf_link=no
20736 fi
20737 rm -f conftest*
20738
20739 fi
20740
20741 fi
20742 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
20743 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
20744 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20745 cat >> confdefs.h <<EOF
20746 #define ${ac_tr_func} 1
20747 EOF
20748
20749 fi
20750 fi
20751
20752
20753 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
20754 echo "configure:20755: checking for __builtin_fabs declaration" >&5
20755 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
20756 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
20757 echo $ac_n "(cached) $ac_c" 1>&6
20758 else
20759
20760
20761 ac_ext=C
20762 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20763 ac_cpp='$CXXCPP $CPPFLAGS'
20764 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20765 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20766 cross_compiling=$ac_cv_prog_cxx_cross
20767
20768 cat > conftest.$ac_ext <<EOF
20769 #line 20770 "configure"
20770 #include "confdefs.h"
20771 #include <math.h>
20772 int main() {
20773 __builtin_fabs(0);
20774 ; return 0; }
20775 EOF
20776 if { (eval echo configure:20777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20777 rm -rf conftest*
20778 glibcpp_cv_func___builtin_fabs_use=yes
20779 else
20780 echo "configure: failed program was:" >&5
20781 cat conftest.$ac_ext >&5
20782 rm -rf conftest*
20783 glibcpp_cv_func___builtin_fabs_use=no
20784 fi
20785 rm -f conftest*
20786 ac_ext=c
20787 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20788 ac_cpp='$CPP $CPPFLAGS'
20789 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20790 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20791 cross_compiling=$ac_cv_prog_cc_cross
20792
20793
20794 fi
20795
20796 fi
20797 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
20798 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
20799 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
20800 echo "configure:20801: checking for __builtin_fabs linkage" >&5
20801 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
20802 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
20803 echo $ac_n "(cached) $ac_c" 1>&6
20804 else
20805
20806 cat > conftest.$ac_ext <<EOF
20807 #line 20808 "configure"
20808 #include "confdefs.h"
20809 #include <math.h>
20810 int main() {
20811 __builtin_fabs(0);
20812 ; return 0; }
20813 EOF
20814 if { (eval echo configure:20815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20815 rm -rf conftest*
20816 glibcpp_cv_func___builtin_fabs_link=yes
20817 else
20818 echo "configure: failed program was:" >&5
20819 cat conftest.$ac_ext >&5
20820 rm -rf conftest*
20821 glibcpp_cv_func___builtin_fabs_link=no
20822 fi
20823 rm -f conftest*
20824
20825 fi
20826
20827 fi
20828 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
20829 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
20830 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20831 cat >> confdefs.h <<EOF
20832 #define ${ac_tr_func} 1
20833 EOF
20834
20835 fi
20836 fi
20837
20838
20839 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
20840 echo "configure:20841: checking for __builtin_fabsl declaration" >&5
20841 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
20842 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
20843 echo $ac_n "(cached) $ac_c" 1>&6
20844 else
20845
20846
20847 ac_ext=C
20848 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20849 ac_cpp='$CXXCPP $CPPFLAGS'
20850 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20851 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20852 cross_compiling=$ac_cv_prog_cxx_cross
20853
20854 cat > conftest.$ac_ext <<EOF
20855 #line 20856 "configure"
20856 #include "confdefs.h"
20857 #include <math.h>
20858 int main() {
20859 __builtin_fabsl(0);
20860 ; return 0; }
20861 EOF
20862 if { (eval echo configure:20863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20863 rm -rf conftest*
20864 glibcpp_cv_func___builtin_fabsl_use=yes
20865 else
20866 echo "configure: failed program was:" >&5
20867 cat conftest.$ac_ext >&5
20868 rm -rf conftest*
20869 glibcpp_cv_func___builtin_fabsl_use=no
20870 fi
20871 rm -f conftest*
20872 ac_ext=c
20873 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20874 ac_cpp='$CPP $CPPFLAGS'
20875 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20876 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20877 cross_compiling=$ac_cv_prog_cc_cross
20878
20879
20880 fi
20881
20882 fi
20883 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
20884 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
20885 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
20886 echo "configure:20887: checking for __builtin_fabsl linkage" >&5
20887 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
20888 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
20889 echo $ac_n "(cached) $ac_c" 1>&6
20890 else
20891
20892 cat > conftest.$ac_ext <<EOF
20893 #line 20894 "configure"
20894 #include "confdefs.h"
20895 #include <math.h>
20896 int main() {
20897 __builtin_fabsl(0);
20898 ; return 0; }
20899 EOF
20900 if { (eval echo configure:20901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20901 rm -rf conftest*
20902 glibcpp_cv_func___builtin_fabsl_link=yes
20903 else
20904 echo "configure: failed program was:" >&5
20905 cat conftest.$ac_ext >&5
20906 rm -rf conftest*
20907 glibcpp_cv_func___builtin_fabsl_link=no
20908 fi
20909 rm -f conftest*
20910
20911 fi
20912
20913 fi
20914 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
20915 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
20916 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20917 cat >> confdefs.h <<EOF
20918 #define ${ac_tr_func} 1
20919 EOF
20920
20921 fi
20922 fi
20923
20924
20925 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
20926 echo "configure:20927: checking for __builtin_labs declaration" >&5
20927 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
20928 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
20929 echo $ac_n "(cached) $ac_c" 1>&6
20930 else
20931
20932
20933 ac_ext=C
20934 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20935 ac_cpp='$CXXCPP $CPPFLAGS'
20936 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20937 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20938 cross_compiling=$ac_cv_prog_cxx_cross
20939
20940 cat > conftest.$ac_ext <<EOF
20941 #line 20942 "configure"
20942 #include "confdefs.h"
20943 #include <math.h>
20944 int main() {
20945 __builtin_labs(0);
20946 ; return 0; }
20947 EOF
20948 if { (eval echo configure:20949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20949 rm -rf conftest*
20950 glibcpp_cv_func___builtin_labs_use=yes
20951 else
20952 echo "configure: failed program was:" >&5
20953 cat conftest.$ac_ext >&5
20954 rm -rf conftest*
20955 glibcpp_cv_func___builtin_labs_use=no
20956 fi
20957 rm -f conftest*
20958 ac_ext=c
20959 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20960 ac_cpp='$CPP $CPPFLAGS'
20961 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20962 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20963 cross_compiling=$ac_cv_prog_cc_cross
20964
20965
20966 fi
20967
20968 fi
20969 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
20970 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
20971 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
20972 echo "configure:20973: checking for __builtin_labs linkage" >&5
20973 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
20974 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
20975 echo $ac_n "(cached) $ac_c" 1>&6
20976 else
20977
20978 cat > conftest.$ac_ext <<EOF
20979 #line 20980 "configure"
20980 #include "confdefs.h"
20981 #include <math.h>
20982 int main() {
20983 __builtin_labs(0);
20984 ; return 0; }
20985 EOF
20986 if { (eval echo configure:20987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20987 rm -rf conftest*
20988 glibcpp_cv_func___builtin_labs_link=yes
20989 else
20990 echo "configure: failed program was:" >&5
20991 cat conftest.$ac_ext >&5
20992 rm -rf conftest*
20993 glibcpp_cv_func___builtin_labs_link=no
20994 fi
20995 rm -f conftest*
20996
20997 fi
20998
20999 fi
21000 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
21001 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
21002 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21003 cat >> confdefs.h <<EOF
21004 #define ${ac_tr_func} 1
21005 EOF
21006
21007 fi
21008 fi
21009
21010
21011
21012 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
21013 echo "configure:21014: checking for __builtin_sqrtf declaration" >&5
21014 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
21015 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
21016 echo $ac_n "(cached) $ac_c" 1>&6
21017 else
21018
21019
21020 ac_ext=C
21021 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21022 ac_cpp='$CXXCPP $CPPFLAGS'
21023 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21024 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21025 cross_compiling=$ac_cv_prog_cxx_cross
21026
21027 cat > conftest.$ac_ext <<EOF
21028 #line 21029 "configure"
21029 #include "confdefs.h"
21030 #include <math.h>
21031 int main() {
21032 __builtin_sqrtf(0);
21033 ; return 0; }
21034 EOF
21035 if { (eval echo configure:21036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21036 rm -rf conftest*
21037 glibcpp_cv_func___builtin_sqrtf_use=yes
21038 else
21039 echo "configure: failed program was:" >&5
21040 cat conftest.$ac_ext >&5
21041 rm -rf conftest*
21042 glibcpp_cv_func___builtin_sqrtf_use=no
21043 fi
21044 rm -f conftest*
21045 ac_ext=c
21046 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21047 ac_cpp='$CPP $CPPFLAGS'
21048 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21049 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21050 cross_compiling=$ac_cv_prog_cc_cross
21051
21052
21053 fi
21054
21055 fi
21056 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
21057 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
21058 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
21059 echo "configure:21060: checking for __builtin_sqrtf linkage" >&5
21060 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
21061 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
21062 echo $ac_n "(cached) $ac_c" 1>&6
21063 else
21064
21065 cat > conftest.$ac_ext <<EOF
21066 #line 21067 "configure"
21067 #include "confdefs.h"
21068 #include <math.h>
21069 int main() {
21070 __builtin_sqrtf(0);
21071 ; return 0; }
21072 EOF
21073 if { (eval echo configure:21074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21074 rm -rf conftest*
21075 glibcpp_cv_func___builtin_sqrtf_link=yes
21076 else
21077 echo "configure: failed program was:" >&5
21078 cat conftest.$ac_ext >&5
21079 rm -rf conftest*
21080 glibcpp_cv_func___builtin_sqrtf_link=no
21081 fi
21082 rm -f conftest*
21083
21084 fi
21085
21086 fi
21087 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
21088 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
21089 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21090 cat >> confdefs.h <<EOF
21091 #define ${ac_tr_func} 1
21092 EOF
21093
21094 fi
21095 fi
21096
21097
21098 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
21099 echo "configure:21100: checking for __builtin_sqrt declaration" >&5
21100 if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
21101 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
21102 echo $ac_n "(cached) $ac_c" 1>&6
21103 else
21104
21105
21106 ac_ext=C
21107 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21108 ac_cpp='$CXXCPP $CPPFLAGS'
21109 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21110 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21111 cross_compiling=$ac_cv_prog_cxx_cross
21112
21113 cat > conftest.$ac_ext <<EOF
21114 #line 21115 "configure"
21115 #include "confdefs.h"
21116 #include <math.h>
21117 int main() {
21118 __builtin_sqrt(0);
21119 ; return 0; }
21120 EOF
21121 if { (eval echo configure:21122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21122 rm -rf conftest*
21123 glibcpp_cv_func___builtin_sqrt_use=yes
21124 else
21125 echo "configure: failed program was:" >&5
21126 cat conftest.$ac_ext >&5
21127 rm -rf conftest*
21128 glibcpp_cv_func___builtin_sqrt_use=no
21129 fi
21130 rm -f conftest*
21131 ac_ext=c
21132 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21133 ac_cpp='$CPP $CPPFLAGS'
21134 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21135 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21136 cross_compiling=$ac_cv_prog_cc_cross
21137
21138
21139 fi
21140
21141 fi
21142 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
21143 if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
21144 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
21145 echo "configure:21146: checking for __builtin_sqrt linkage" >&5
21146 if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
21147 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
21148 echo $ac_n "(cached) $ac_c" 1>&6
21149 else
21150
21151 cat > conftest.$ac_ext <<EOF
21152 #line 21153 "configure"
21153 #include "confdefs.h"
21154 #include <math.h>
21155 int main() {
21156 __builtin_sqrt(0);
21157 ; return 0; }
21158 EOF
21159 if { (eval echo configure:21160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21160 rm -rf conftest*
21161 glibcpp_cv_func___builtin_sqrt_link=yes
21162 else
21163 echo "configure: failed program was:" >&5
21164 cat conftest.$ac_ext >&5
21165 rm -rf conftest*
21166 glibcpp_cv_func___builtin_sqrt_link=no
21167 fi
21168 rm -f conftest*
21169
21170 fi
21171
21172 fi
21173 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
21174 if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
21175 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21176 cat >> confdefs.h <<EOF
21177 #define ${ac_tr_func} 1
21178 EOF
21179
21180 fi
21181 fi
21182
21183
21184 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
21185 echo "configure:21186: checking for __builtin_sqrtl declaration" >&5
21186 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
21187 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
21188 echo $ac_n "(cached) $ac_c" 1>&6
21189 else
21190
21191
21192 ac_ext=C
21193 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21194 ac_cpp='$CXXCPP $CPPFLAGS'
21195 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21196 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21197 cross_compiling=$ac_cv_prog_cxx_cross
21198
21199 cat > conftest.$ac_ext <<EOF
21200 #line 21201 "configure"
21201 #include "confdefs.h"
21202 #include <math.h>
21203 int main() {
21204 __builtin_sqrtl(0);
21205 ; return 0; }
21206 EOF
21207 if { (eval echo configure:21208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21208 rm -rf conftest*
21209 glibcpp_cv_func___builtin_sqrtl_use=yes
21210 else
21211 echo "configure: failed program was:" >&5
21212 cat conftest.$ac_ext >&5
21213 rm -rf conftest*
21214 glibcpp_cv_func___builtin_sqrtl_use=no
21215 fi
21216 rm -f conftest*
21217 ac_ext=c
21218 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21219 ac_cpp='$CPP $CPPFLAGS'
21220 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21221 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21222 cross_compiling=$ac_cv_prog_cc_cross
21223
21224
21225 fi
21226
21227 fi
21228 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
21229 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
21230 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
21231 echo "configure:21232: checking for __builtin_sqrtl linkage" >&5
21232 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
21233 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
21234 echo $ac_n "(cached) $ac_c" 1>&6
21235 else
21236
21237 cat > conftest.$ac_ext <<EOF
21238 #line 21239 "configure"
21239 #include "confdefs.h"
21240 #include <math.h>
21241 int main() {
21242 __builtin_sqrtl(0);
21243 ; return 0; }
21244 EOF
21245 if { (eval echo configure:21246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21246 rm -rf conftest*
21247 glibcpp_cv_func___builtin_sqrtl_link=yes
21248 else
21249 echo "configure: failed program was:" >&5
21250 cat conftest.$ac_ext >&5
21251 rm -rf conftest*
21252 glibcpp_cv_func___builtin_sqrtl_link=no
21253 fi
21254 rm -f conftest*
21255
21256 fi
21257
21258 fi
21259 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
21260 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
21261 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21262 cat >> confdefs.h <<EOF
21263 #define ${ac_tr_func} 1
21264 EOF
21265
21266 fi
21267 fi
21268
21269
21270
21271 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
21272 echo "configure:21273: checking for __builtin_sinf declaration" >&5
21273 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
21274 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
21275 echo $ac_n "(cached) $ac_c" 1>&6
21276 else
21277
21278
21279 ac_ext=C
21280 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21281 ac_cpp='$CXXCPP $CPPFLAGS'
21282 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21283 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21284 cross_compiling=$ac_cv_prog_cxx_cross
21285
21286 cat > conftest.$ac_ext <<EOF
21287 #line 21288 "configure"
21288 #include "confdefs.h"
21289 #include <math.h>
21290 int main() {
21291 __builtin_sinf(0);
21292 ; return 0; }
21293 EOF
21294 if { (eval echo configure:21295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21295 rm -rf conftest*
21296 glibcpp_cv_func___builtin_sinf_use=yes
21297 else
21298 echo "configure: failed program was:" >&5
21299 cat conftest.$ac_ext >&5
21300 rm -rf conftest*
21301 glibcpp_cv_func___builtin_sinf_use=no
21302 fi
21303 rm -f conftest*
21304 ac_ext=c
21305 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21306 ac_cpp='$CPP $CPPFLAGS'
21307 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21308 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21309 cross_compiling=$ac_cv_prog_cc_cross
21310
21311
21312 fi
21313
21314 fi
21315 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
21316 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
21317 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
21318 echo "configure:21319: checking for __builtin_sinf linkage" >&5
21319 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
21320 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
21321 echo $ac_n "(cached) $ac_c" 1>&6
21322 else
21323
21324 cat > conftest.$ac_ext <<EOF
21325 #line 21326 "configure"
21326 #include "confdefs.h"
21327 #include <math.h>
21328 int main() {
21329 __builtin_sinf(0);
21330 ; return 0; }
21331 EOF
21332 if { (eval echo configure:21333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21333 rm -rf conftest*
21334 glibcpp_cv_func___builtin_sinf_link=yes
21335 else
21336 echo "configure: failed program was:" >&5
21337 cat conftest.$ac_ext >&5
21338 rm -rf conftest*
21339 glibcpp_cv_func___builtin_sinf_link=no
21340 fi
21341 rm -f conftest*
21342
21343 fi
21344
21345 fi
21346 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
21347 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
21348 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21349 cat >> confdefs.h <<EOF
21350 #define ${ac_tr_func} 1
21351 EOF
21352
21353 fi
21354 fi
21355
21356
21357 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
21358 echo "configure:21359: checking for __builtin_sin declaration" >&5
21359 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
21360 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
21361 echo $ac_n "(cached) $ac_c" 1>&6
21362 else
21363
21364
21365 ac_ext=C
21366 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21367 ac_cpp='$CXXCPP $CPPFLAGS'
21368 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21369 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21370 cross_compiling=$ac_cv_prog_cxx_cross
21371
21372 cat > conftest.$ac_ext <<EOF
21373 #line 21374 "configure"
21374 #include "confdefs.h"
21375 #include <math.h>
21376 int main() {
21377 __builtin_sin(0);
21378 ; return 0; }
21379 EOF
21380 if { (eval echo configure:21381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21381 rm -rf conftest*
21382 glibcpp_cv_func___builtin_sin_use=yes
21383 else
21384 echo "configure: failed program was:" >&5
21385 cat conftest.$ac_ext >&5
21386 rm -rf conftest*
21387 glibcpp_cv_func___builtin_sin_use=no
21388 fi
21389 rm -f conftest*
21390 ac_ext=c
21391 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21392 ac_cpp='$CPP $CPPFLAGS'
21393 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21394 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21395 cross_compiling=$ac_cv_prog_cc_cross
21396
21397
21398 fi
21399
21400 fi
21401 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
21402 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
21403 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
21404 echo "configure:21405: checking for __builtin_sin linkage" >&5
21405 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
21406 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
21407 echo $ac_n "(cached) $ac_c" 1>&6
21408 else
21409
21410 cat > conftest.$ac_ext <<EOF
21411 #line 21412 "configure"
21412 #include "confdefs.h"
21413 #include <math.h>
21414 int main() {
21415 __builtin_sin(0);
21416 ; return 0; }
21417 EOF
21418 if { (eval echo configure:21419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21419 rm -rf conftest*
21420 glibcpp_cv_func___builtin_sin_link=yes
21421 else
21422 echo "configure: failed program was:" >&5
21423 cat conftest.$ac_ext >&5
21424 rm -rf conftest*
21425 glibcpp_cv_func___builtin_sin_link=no
21426 fi
21427 rm -f conftest*
21428
21429 fi
21430
21431 fi
21432 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
21433 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
21434 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21435 cat >> confdefs.h <<EOF
21436 #define ${ac_tr_func} 1
21437 EOF
21438
21439 fi
21440 fi
21441
21442
21443 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
21444 echo "configure:21445: checking for __builtin_sinl declaration" >&5
21445 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
21446 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
21447 echo $ac_n "(cached) $ac_c" 1>&6
21448 else
21449
21450
21451 ac_ext=C
21452 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21453 ac_cpp='$CXXCPP $CPPFLAGS'
21454 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21455 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21456 cross_compiling=$ac_cv_prog_cxx_cross
21457
21458 cat > conftest.$ac_ext <<EOF
21459 #line 21460 "configure"
21460 #include "confdefs.h"
21461 #include <math.h>
21462 int main() {
21463 __builtin_sinl(0);
21464 ; return 0; }
21465 EOF
21466 if { (eval echo configure:21467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21467 rm -rf conftest*
21468 glibcpp_cv_func___builtin_sinl_use=yes
21469 else
21470 echo "configure: failed program was:" >&5
21471 cat conftest.$ac_ext >&5
21472 rm -rf conftest*
21473 glibcpp_cv_func___builtin_sinl_use=no
21474 fi
21475 rm -f conftest*
21476 ac_ext=c
21477 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21478 ac_cpp='$CPP $CPPFLAGS'
21479 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21480 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21481 cross_compiling=$ac_cv_prog_cc_cross
21482
21483
21484 fi
21485
21486 fi
21487 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
21488 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
21489 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
21490 echo "configure:21491: checking for __builtin_sinl linkage" >&5
21491 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
21492 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
21493 echo $ac_n "(cached) $ac_c" 1>&6
21494 else
21495
21496 cat > conftest.$ac_ext <<EOF
21497 #line 21498 "configure"
21498 #include "confdefs.h"
21499 #include <math.h>
21500 int main() {
21501 __builtin_sinl(0);
21502 ; return 0; }
21503 EOF
21504 if { (eval echo configure:21505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21505 rm -rf conftest*
21506 glibcpp_cv_func___builtin_sinl_link=yes
21507 else
21508 echo "configure: failed program was:" >&5
21509 cat conftest.$ac_ext >&5
21510 rm -rf conftest*
21511 glibcpp_cv_func___builtin_sinl_link=no
21512 fi
21513 rm -f conftest*
21514
21515 fi
21516
21517 fi
21518 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
21519 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
21520 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21521 cat >> confdefs.h <<EOF
21522 #define ${ac_tr_func} 1
21523 EOF
21524
21525 fi
21526 fi
21527
21528
21529
21530 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
21531 echo "configure:21532: checking for __builtin_cosf declaration" >&5
21532 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
21533 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
21534 echo $ac_n "(cached) $ac_c" 1>&6
21535 else
21536
21537
21538 ac_ext=C
21539 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21540 ac_cpp='$CXXCPP $CPPFLAGS'
21541 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21542 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21543 cross_compiling=$ac_cv_prog_cxx_cross
21544
21545 cat > conftest.$ac_ext <<EOF
21546 #line 21547 "configure"
21547 #include "confdefs.h"
21548 #include <math.h>
21549 int main() {
21550 __builtin_cosf(0);
21551 ; return 0; }
21552 EOF
21553 if { (eval echo configure:21554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21554 rm -rf conftest*
21555 glibcpp_cv_func___builtin_cosf_use=yes
21556 else
21557 echo "configure: failed program was:" >&5
21558 cat conftest.$ac_ext >&5
21559 rm -rf conftest*
21560 glibcpp_cv_func___builtin_cosf_use=no
21561 fi
21562 rm -f conftest*
21563 ac_ext=c
21564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21565 ac_cpp='$CPP $CPPFLAGS'
21566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21568 cross_compiling=$ac_cv_prog_cc_cross
21569
21570
21571 fi
21572
21573 fi
21574 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
21575 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
21576 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
21577 echo "configure:21578: checking for __builtin_cosf linkage" >&5
21578 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
21579 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
21580 echo $ac_n "(cached) $ac_c" 1>&6
21581 else
21582
21583 cat > conftest.$ac_ext <<EOF
21584 #line 21585 "configure"
21585 #include "confdefs.h"
21586 #include <math.h>
21587 int main() {
21588 __builtin_cosf(0);
21589 ; return 0; }
21590 EOF
21591 if { (eval echo configure:21592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21592 rm -rf conftest*
21593 glibcpp_cv_func___builtin_cosf_link=yes
21594 else
21595 echo "configure: failed program was:" >&5
21596 cat conftest.$ac_ext >&5
21597 rm -rf conftest*
21598 glibcpp_cv_func___builtin_cosf_link=no
21599 fi
21600 rm -f conftest*
21601
21602 fi
21603
21604 fi
21605 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
21606 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
21607 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21608 cat >> confdefs.h <<EOF
21609 #define ${ac_tr_func} 1
21610 EOF
21611
21612 fi
21613 fi
21614
21615
21616 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
21617 echo "configure:21618: checking for __builtin_cos declaration" >&5
21618 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
21619 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
21620 echo $ac_n "(cached) $ac_c" 1>&6
21621 else
21622
21623
21624 ac_ext=C
21625 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21626 ac_cpp='$CXXCPP $CPPFLAGS'
21627 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21628 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21629 cross_compiling=$ac_cv_prog_cxx_cross
21630
21631 cat > conftest.$ac_ext <<EOF
21632 #line 21633 "configure"
21633 #include "confdefs.h"
21634 #include <math.h>
21635 int main() {
21636 __builtin_cos(0);
21637 ; return 0; }
21638 EOF
21639 if { (eval echo configure:21640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21640 rm -rf conftest*
21641 glibcpp_cv_func___builtin_cos_use=yes
21642 else
21643 echo "configure: failed program was:" >&5
21644 cat conftest.$ac_ext >&5
21645 rm -rf conftest*
21646 glibcpp_cv_func___builtin_cos_use=no
21647 fi
21648 rm -f conftest*
21649 ac_ext=c
21650 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21651 ac_cpp='$CPP $CPPFLAGS'
21652 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21653 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21654 cross_compiling=$ac_cv_prog_cc_cross
21655
21656
21657 fi
21658
21659 fi
21660 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
21661 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
21662 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
21663 echo "configure:21664: checking for __builtin_cos linkage" >&5
21664 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
21665 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
21666 echo $ac_n "(cached) $ac_c" 1>&6
21667 else
21668
21669 cat > conftest.$ac_ext <<EOF
21670 #line 21671 "configure"
21671 #include "confdefs.h"
21672 #include <math.h>
21673 int main() {
21674 __builtin_cos(0);
21675 ; return 0; }
21676 EOF
21677 if { (eval echo configure:21678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21678 rm -rf conftest*
21679 glibcpp_cv_func___builtin_cos_link=yes
21680 else
21681 echo "configure: failed program was:" >&5
21682 cat conftest.$ac_ext >&5
21683 rm -rf conftest*
21684 glibcpp_cv_func___builtin_cos_link=no
21685 fi
21686 rm -f conftest*
21687
21688 fi
21689
21690 fi
21691 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
21692 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
21693 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21694 cat >> confdefs.h <<EOF
21695 #define ${ac_tr_func} 1
21696 EOF
21697
21698 fi
21699 fi
21700
21701
21702 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
21703 echo "configure:21704: checking for __builtin_cosl declaration" >&5
21704 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
21705 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
21706 echo $ac_n "(cached) $ac_c" 1>&6
21707 else
21708
21709
21710 ac_ext=C
21711 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21712 ac_cpp='$CXXCPP $CPPFLAGS'
21713 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21714 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21715 cross_compiling=$ac_cv_prog_cxx_cross
21716
21717 cat > conftest.$ac_ext <<EOF
21718 #line 21719 "configure"
21719 #include "confdefs.h"
21720 #include <math.h>
21721 int main() {
21722 __builtin_cosl(0);
21723 ; return 0; }
21724 EOF
21725 if { (eval echo configure:21726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21726 rm -rf conftest*
21727 glibcpp_cv_func___builtin_cosl_use=yes
21728 else
21729 echo "configure: failed program was:" >&5
21730 cat conftest.$ac_ext >&5
21731 rm -rf conftest*
21732 glibcpp_cv_func___builtin_cosl_use=no
21733 fi
21734 rm -f conftest*
21735 ac_ext=c
21736 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21737 ac_cpp='$CPP $CPPFLAGS'
21738 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21739 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21740 cross_compiling=$ac_cv_prog_cc_cross
21741
21742
21743 fi
21744
21745 fi
21746 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
21747 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
21748 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
21749 echo "configure:21750: checking for __builtin_cosl linkage" >&5
21750 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
21751 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
21752 echo $ac_n "(cached) $ac_c" 1>&6
21753 else
21754
21755 cat > conftest.$ac_ext <<EOF
21756 #line 21757 "configure"
21757 #include "confdefs.h"
21758 #include <math.h>
21759 int main() {
21760 __builtin_cosl(0);
21761 ; return 0; }
21762 EOF
21763 if { (eval echo configure:21764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21764 rm -rf conftest*
21765 glibcpp_cv_func___builtin_cosl_link=yes
21766 else
21767 echo "configure: failed program was:" >&5
21768 cat conftest.$ac_ext >&5
21769 rm -rf conftest*
21770 glibcpp_cv_func___builtin_cosl_link=no
21771 fi
21772 rm -f conftest*
21773
21774 fi
21775
21776 fi
21777 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
21778 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
21779 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21780 cat >> confdefs.h <<EOF
21781 #define ${ac_tr_func} 1
21782 EOF
21783
21784 fi
21785 fi
21786
21787
21788 dummyvar=no
21789 if test x$dummyvar = x"yes"; then
21790 cat >> confdefs.h <<\EOF
21791 #define HAVE___BUILTIN_ABS 1
21792 EOF
21793
21794 cat >> confdefs.h <<\EOF
21795 #define HAVE___BUILTIN_LABS 1
21796 EOF
21797
21798 cat >> confdefs.h <<\EOF
21799 #define HAVE___BUILTIN_COS 1
21800 EOF
21801
21802 cat >> confdefs.h <<\EOF
21803 #define HAVE___BUILTIN_COSF 1
21804 EOF
21805
21806 cat >> confdefs.h <<\EOF
21807 #define HAVE___BUILTIN_COSL 1
21808 EOF
21809
21810 cat >> confdefs.h <<\EOF
21811 #define HAVE___BUILTIN_FABS 1
21812 EOF
21813
21814 cat >> confdefs.h <<\EOF
21815 #define HAVE___BUILTIN_FABSF 1
21816 EOF
21817
21818 cat >> confdefs.h <<\EOF
21819 #define HAVE___BUILTIN_FABSL 1
21820 EOF
21821
21822 cat >> confdefs.h <<\EOF
21823 #define HAVE___BUILTIN_SIN 1
21824 EOF
21825
21826 cat >> confdefs.h <<\EOF
21827 #define HAVE___BUILTIN_SINF 1
21828 EOF
21829
21830 cat >> confdefs.h <<\EOF
21831 #define HAVE___BUILTIN_SINL 1
21832 EOF
21833
21834 cat >> confdefs.h <<\EOF
21835 #define HAVE___BUILTIN_SQRT 1
21836 EOF
21837
21838 cat >> confdefs.h <<\EOF
21839 #define HAVE___BUILTIN_SQRTF 1
21840 EOF
21841
21842 cat >> confdefs.h <<\EOF
21843 #define HAVE___BUILTIN_SQRTL 1
21844 EOF
21845
21846 fi
21847
21848
21849 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21850 echo "configure:21851: checking for main in -lm" >&5
21851 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21852 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21853 echo $ac_n "(cached) $ac_c" 1>&6
21854 else
21855 ac_save_LIBS="$LIBS"
21856 LIBS="-lm $LIBS"
21857 cat > conftest.$ac_ext <<EOF
21858 #line 21859 "configure"
21859 #include "confdefs.h"
21860
21861 int main() {
21862 main()
21863 ; return 0; }
21864 EOF
21865 if { (eval echo configure:21866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21866 rm -rf conftest*
21867 eval "ac_cv_lib_$ac_lib_var=yes"
21868 else
21869 echo "configure: failed program was:" >&5
21870 cat conftest.$ac_ext >&5
21871 rm -rf conftest*
21872 eval "ac_cv_lib_$ac_lib_var=no"
21873 fi
21874 rm -f conftest*
21875 LIBS="$ac_save_LIBS"
21876
21877 fi
21878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21879 echo "$ac_t""yes" 1>&6
21880 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21881 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21882 cat >> confdefs.h <<EOF
21883 #define $ac_tr_lib 1
21884 EOF
21885
21886 LIBS="-lm $LIBS"
21887
21888 else
21889 echo "$ac_t""no" 1>&6
21890 fi
21891
21892 for ac_func in nan copysignf
21893 do
21894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21895 echo "configure:21896: checking for $ac_func" >&5
21896 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21897 echo $ac_n "(cached) $ac_c" 1>&6
21898 else
21899 cat > conftest.$ac_ext <<EOF
21900 #line 21901 "configure"
21901 #include "confdefs.h"
21902 /* System header to define __stub macros and hopefully few prototypes,
21903 which can conflict with char $ac_func(); below. */
21904 #include <assert.h>
21905 /* Override any gcc2 internal prototype to avoid an error. */
21906 /* We use char because int might match the return type of a gcc2
21907 builtin and then its argument prototype would still apply. */
21908 char $ac_func();
21909
21910 int main() {
21911
21912 /* The GNU C library defines this for functions which it implements
21913 to always fail with ENOSYS. Some functions are actually named
21914 something starting with __ and the normal name is an alias. */
21915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21916 choke me
21917 #else
21918 $ac_func();
21919 #endif
21920
21921 ; return 0; }
21922 EOF
21923 if { (eval echo configure:21924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21924 rm -rf conftest*
21925 eval "ac_cv_func_$ac_func=yes"
21926 else
21927 echo "configure: failed program was:" >&5
21928 cat conftest.$ac_ext >&5
21929 rm -rf conftest*
21930 eval "ac_cv_func_$ac_func=no"
21931 fi
21932 rm -f conftest*
21933 fi
21934
21935 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21936 echo "$ac_t""yes" 1>&6
21937 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21938 cat >> confdefs.h <<EOF
21939 #define $ac_tr_func 1
21940 EOF
21941
21942 else
21943 echo "$ac_t""no" 1>&6
21944 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21945 fi
21946 done
21947
21948
21949 for ac_func in __signbit
21950 do
21951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21952 echo "configure:21953: checking for $ac_func" >&5
21953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21954 echo $ac_n "(cached) $ac_c" 1>&6
21955 else
21956 cat > conftest.$ac_ext <<EOF
21957 #line 21958 "configure"
21958 #include "confdefs.h"
21959 /* System header to define __stub macros and hopefully few prototypes,
21960 which can conflict with char $ac_func(); below. */
21961 #include <assert.h>
21962 /* Override any gcc2 internal prototype to avoid an error. */
21963 /* We use char because int might match the return type of a gcc2
21964 builtin and then its argument prototype would still apply. */
21965 char $ac_func();
21966
21967 int main() {
21968
21969 /* The GNU C library defines this for functions which it implements
21970 to always fail with ENOSYS. Some functions are actually named
21971 something starting with __ and the normal name is an alias. */
21972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21973 choke me
21974 #else
21975 $ac_func();
21976 #endif
21977
21978 ; return 0; }
21979 EOF
21980 if { (eval echo configure:21981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21981 rm -rf conftest*
21982 eval "ac_cv_func_$ac_func=yes"
21983 else
21984 echo "configure: failed program was:" >&5
21985 cat conftest.$ac_ext >&5
21986 rm -rf conftest*
21987 eval "ac_cv_func_$ac_func=no"
21988 fi
21989 rm -f conftest*
21990 fi
21991
21992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21993 echo "$ac_t""yes" 1>&6
21994 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21995 cat >> confdefs.h <<EOF
21996 #define $ac_tr_func 1
21997 EOF
21998
21999 else
22000 echo "$ac_t""no" 1>&6
22001 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
22002 fi
22003 done
22004
22005 for ac_func in __signbitf
22006 do
22007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22008 echo "configure:22009: checking for $ac_func" >&5
22009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22010 echo $ac_n "(cached) $ac_c" 1>&6
22011 else
22012 cat > conftest.$ac_ext <<EOF
22013 #line 22014 "configure"
22014 #include "confdefs.h"
22015 /* System header to define __stub macros and hopefully few prototypes,
22016 which can conflict with char $ac_func(); below. */
22017 #include <assert.h>
22018 /* Override any gcc2 internal prototype to avoid an error. */
22019 /* We use char because int might match the return type of a gcc2
22020 builtin and then its argument prototype would still apply. */
22021 char $ac_func();
22022
22023 int main() {
22024
22025 /* The GNU C library defines this for functions which it implements
22026 to always fail with ENOSYS. Some functions are actually named
22027 something starting with __ and the normal name is an alias. */
22028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22029 choke me
22030 #else
22031 $ac_func();
22032 #endif
22033
22034 ; return 0; }
22035 EOF
22036 if { (eval echo configure:22037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22037 rm -rf conftest*
22038 eval "ac_cv_func_$ac_func=yes"
22039 else
22040 echo "configure: failed program was:" >&5
22041 cat conftest.$ac_ext >&5
22042 rm -rf conftest*
22043 eval "ac_cv_func_$ac_func=no"
22044 fi
22045 rm -f conftest*
22046 fi
22047
22048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22049 echo "$ac_t""yes" 1>&6
22050 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22051 cat >> confdefs.h <<EOF
22052 #define $ac_tr_func 1
22053 EOF
22054
22055 else
22056 echo "$ac_t""no" 1>&6
22057 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
22058 fi
22059 done
22060
22061
22062 if test x$ac_cv_func_copysignl = x"yes"; then
22063 for ac_func in __signbitl
22064 do
22065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22066 echo "configure:22067: checking for $ac_func" >&5
22067 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22068 echo $ac_n "(cached) $ac_c" 1>&6
22069 else
22070 cat > conftest.$ac_ext <<EOF
22071 #line 22072 "configure"
22072 #include "confdefs.h"
22073 /* System header to define __stub macros and hopefully few prototypes,
22074 which can conflict with char $ac_func(); below. */
22075 #include <assert.h>
22076 /* Override any gcc2 internal prototype to avoid an error. */
22077 /* We use char because int might match the return type of a gcc2
22078 builtin and then its argument prototype would still apply. */
22079 char $ac_func();
22080
22081 int main() {
22082
22083 /* The GNU C library defines this for functions which it implements
22084 to always fail with ENOSYS. Some functions are actually named
22085 something starting with __ and the normal name is an alias. */
22086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22087 choke me
22088 #else
22089 $ac_func();
22090 #endif
22091
22092 ; return 0; }
22093 EOF
22094 if { (eval echo configure:22095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22095 rm -rf conftest*
22096 eval "ac_cv_func_$ac_func=yes"
22097 else
22098 echo "configure: failed program was:" >&5
22099 cat conftest.$ac_ext >&5
22100 rm -rf conftest*
22101 eval "ac_cv_func_$ac_func=no"
22102 fi
22103 rm -f conftest*
22104 fi
22105
22106 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22107 echo "$ac_t""yes" 1>&6
22108 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22109 cat >> confdefs.h <<EOF
22110 #define $ac_tr_func 1
22111 EOF
22112
22113 else
22114 echo "$ac_t""no" 1>&6
22115 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
22116 fi
22117 done
22118
22119 fi
22120
22121 if test -n "$LIBMATHOBJS"; then
22122 need_libmath=yes
22123 fi
22124
22125
22126
22127 if test "$need_libmath" = yes; then
22128 GLIBCPP_BUILD_LIBMATH_TRUE=
22129 GLIBCPP_BUILD_LIBMATH_FALSE='#'
22130 else
22131 GLIBCPP_BUILD_LIBMATH_TRUE='#'
22132 GLIBCPP_BUILD_LIBMATH_FALSE=
22133 fi
22134
22135
22136 enable_wchar_t=no
22137
22138 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
22139 echo "configure:22140: checking for mbstate_t" >&5
22140 cat > conftest.$ac_ext <<EOF
22141 #line 22142 "configure"
22142 #include "confdefs.h"
22143 #include <wchar.h>
22144 int main() {
22145 mbstate_t teststate;
22146 ; return 0; }
22147 EOF
22148 if { (eval echo configure:22149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22149 rm -rf conftest*
22150 have_mbstate_t=yes
22151 else
22152 echo "configure: failed program was:" >&5
22153 cat conftest.$ac_ext >&5
22154 rm -rf conftest*
22155 have_mbstate_t=no
22156 fi
22157 rm -f conftest*
22158 echo "$ac_t""$have_mbstate_t" 1>&6
22159 if test x"$have_mbstate_t" = xyes; then
22160 cat >> confdefs.h <<\EOF
22161 #define HAVE_MBSTATE_T 1
22162 EOF
22163
22164 fi
22165
22166 for ac_hdr in wchar.h
22167 do
22168 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22169 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22170 echo "configure:22171: checking for $ac_hdr" >&5
22171 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22172 echo $ac_n "(cached) $ac_c" 1>&6
22173 else
22174 cat > conftest.$ac_ext <<EOF
22175 #line 22176 "configure"
22176 #include "confdefs.h"
22177 #include <$ac_hdr>
22178 EOF
22179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22180 { (eval echo configure:22181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22182 if test -z "$ac_err"; then
22183 rm -rf conftest*
22184 eval "ac_cv_header_$ac_safe=yes"
22185 else
22186 echo "$ac_err" >&5
22187 echo "configure: failed program was:" >&5
22188 cat conftest.$ac_ext >&5
22189 rm -rf conftest*
22190 eval "ac_cv_header_$ac_safe=no"
22191 fi
22192 rm -f conftest*
22193 fi
22194 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22195 echo "$ac_t""yes" 1>&6
22196 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22197 cat >> confdefs.h <<EOF
22198 #define $ac_tr_hdr 1
22199 EOF
22200 ac_has_wchar_h=yes
22201 else
22202 echo "$ac_t""no" 1>&6
22203 ac_has_wchar_h=no
22204 fi
22205 done
22206
22207 for ac_hdr in wctype.h
22208 do
22209 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22210 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22211 echo "configure:22212: checking for $ac_hdr" >&5
22212 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22213 echo $ac_n "(cached) $ac_c" 1>&6
22214 else
22215 cat > conftest.$ac_ext <<EOF
22216 #line 22217 "configure"
22217 #include "confdefs.h"
22218 #include <$ac_hdr>
22219 EOF
22220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22221 { (eval echo configure:22222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22223 if test -z "$ac_err"; then
22224 rm -rf conftest*
22225 eval "ac_cv_header_$ac_safe=yes"
22226 else
22227 echo "$ac_err" >&5
22228 echo "configure: failed program was:" >&5
22229 cat conftest.$ac_ext >&5
22230 rm -rf conftest*
22231 eval "ac_cv_header_$ac_safe=no"
22232 fi
22233 rm -f conftest*
22234 fi
22235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22236 echo "$ac_t""yes" 1>&6
22237 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22238 cat >> confdefs.h <<EOF
22239 #define $ac_tr_hdr 1
22240 EOF
22241 ac_has_wctype_h=yes
22242 else
22243 echo "$ac_t""no" 1>&6
22244 ac_has_wctype_h=no
22245 fi
22246 done
22247
22248
22249 if test x"$ac_has_wchar_h" = xyes &&
22250 test x"$ac_has_wctype_h" = xyes &&
22251 test x"$enable_c_mbchar" != xno; then
22252
22253 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
22254 echo "configure:22255: checking for WCHAR_MIN and WCHAR_MAX" >&5
22255 cat > conftest.$ac_ext <<EOF
22256 #line 22257 "configure"
22257 #include "confdefs.h"
22258 #include <wchar.h>
22259 int main() {
22260 int i = WCHAR_MIN; int j = WCHAR_MAX;
22261 ; return 0; }
22262 EOF
22263 if { (eval echo configure:22264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22264 rm -rf conftest*
22265 has_wchar_minmax=yes
22266 else
22267 echo "configure: failed program was:" >&5
22268 cat conftest.$ac_ext >&5
22269 rm -rf conftest*
22270 has_wchar_minmax=no
22271 fi
22272 rm -f conftest*
22273 echo "$ac_t""$has_wchar_minmax" 1>&6
22274
22275 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
22276 echo "configure:22277: checking for WEOF" >&5
22277 cat > conftest.$ac_ext <<EOF
22278 #line 22279 "configure"
22279 #include "confdefs.h"
22280
22281 #include <wchar.h>
22282 #include <stddef.h>
22283 int main() {
22284 wint_t i = WEOF;
22285 ; return 0; }
22286 EOF
22287 if { (eval echo configure:22288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22288 rm -rf conftest*
22289 has_weof=yes
22290 else
22291 echo "configure: failed program was:" >&5
22292 cat conftest.$ac_ext >&5
22293 rm -rf conftest*
22294 has_weof=no
22295 fi
22296 rm -f conftest*
22297 echo "$ac_t""$has_weof" 1>&6
22298
22299 ac_wfuncs=yes
22300 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
22301 do
22302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22303 echo "configure:22304: checking for $ac_func" >&5
22304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22305 echo $ac_n "(cached) $ac_c" 1>&6
22306 else
22307 cat > conftest.$ac_ext <<EOF
22308 #line 22309 "configure"
22309 #include "confdefs.h"
22310 /* System header to define __stub macros and hopefully few prototypes,
22311 which can conflict with char $ac_func(); below. */
22312 #include <assert.h>
22313 /* Override any gcc2 internal prototype to avoid an error. */
22314 /* We use char because int might match the return type of a gcc2
22315 builtin and then its argument prototype would still apply. */
22316 char $ac_func();
22317
22318 int main() {
22319
22320 /* The GNU C library defines this for functions which it implements
22321 to always fail with ENOSYS. Some functions are actually named
22322 something starting with __ and the normal name is an alias. */
22323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22324 choke me
22325 #else
22326 $ac_func();
22327 #endif
22328
22329 ; return 0; }
22330 EOF
22331 if { (eval echo configure:22332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22332 rm -rf conftest*
22333 eval "ac_cv_func_$ac_func=yes"
22334 else
22335 echo "configure: failed program was:" >&5
22336 cat conftest.$ac_ext >&5
22337 rm -rf conftest*
22338 eval "ac_cv_func_$ac_func=no"
22339 fi
22340 rm -f conftest*
22341 fi
22342
22343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22344 echo "$ac_t""yes" 1>&6
22345 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22346 cat >> confdefs.h <<EOF
22347 #define $ac_tr_func 1
22348 EOF
22349
22350 else
22351 echo "$ac_t""no" 1>&6
22352 \
22353 ac_wfuncs=no
22354 fi
22355 done
22356
22357
22358 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
22359 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
22360 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
22361 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
22362 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
22363 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
22364 do
22365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22366 echo "configure:22367: checking for $ac_func" >&5
22367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22368 echo $ac_n "(cached) $ac_c" 1>&6
22369 else
22370 cat > conftest.$ac_ext <<EOF
22371 #line 22372 "configure"
22372 #include "confdefs.h"
22373 /* System header to define __stub macros and hopefully few prototypes,
22374 which can conflict with char $ac_func(); below. */
22375 #include <assert.h>
22376 /* Override any gcc2 internal prototype to avoid an error. */
22377 /* We use char because int might match the return type of a gcc2
22378 builtin and then its argument prototype would still apply. */
22379 char $ac_func();
22380
22381 int main() {
22382
22383 /* The GNU C library defines this for functions which it implements
22384 to always fail with ENOSYS. Some functions are actually named
22385 something starting with __ and the normal name is an alias. */
22386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22387 choke me
22388 #else
22389 $ac_func();
22390 #endif
22391
22392 ; return 0; }
22393 EOF
22394 if { (eval echo configure:22395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22395 rm -rf conftest*
22396 eval "ac_cv_func_$ac_func=yes"
22397 else
22398 echo "configure: failed program was:" >&5
22399 cat conftest.$ac_ext >&5
22400 rm -rf conftest*
22401 eval "ac_cv_func_$ac_func=no"
22402 fi
22403 rm -f conftest*
22404 fi
22405
22406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22407 echo "$ac_t""yes" 1>&6
22408 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22409 cat >> confdefs.h <<EOF
22410 #define $ac_tr_func 1
22411 EOF
22412
22413 else
22414 echo "$ac_t""no" 1>&6
22415 \
22416 ac_wfuncs=no
22417 fi
22418 done
22419
22420
22421 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22422 echo "configure:22423: checking for ISO C99 wchar_t support" >&5
22423 if test x"$has_weof" = xyes &&
22424 test x"$has_wchar_minmax" = xyes &&
22425 test x"$ac_wfuncs" = xyes; then
22426 ac_isoC99_wchar_t=yes
22427 else
22428 ac_isoC99_wchar_t=no
22429 fi
22430 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22431
22432 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22433 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22434 echo "configure:22435: checking for iconv.h" >&5
22435 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22436 echo $ac_n "(cached) $ac_c" 1>&6
22437 else
22438 cat > conftest.$ac_ext <<EOF
22439 #line 22440 "configure"
22440 #include "confdefs.h"
22441 #include <iconv.h>
22442 EOF
22443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22444 { (eval echo configure:22445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22446 if test -z "$ac_err"; then
22447 rm -rf conftest*
22448 eval "ac_cv_header_$ac_safe=yes"
22449 else
22450 echo "$ac_err" >&5
22451 echo "configure: failed program was:" >&5
22452 cat conftest.$ac_ext >&5
22453 rm -rf conftest*
22454 eval "ac_cv_header_$ac_safe=no"
22455 fi
22456 rm -f conftest*
22457 fi
22458 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22459 echo "$ac_t""yes" 1>&6
22460 ac_has_iconv_h=yes
22461 else
22462 echo "$ac_t""no" 1>&6
22463 ac_has_iconv_h=no
22464 fi
22465
22466 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22467 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22468 echo "configure:22469: checking for langinfo.h" >&5
22469 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22470 echo $ac_n "(cached) $ac_c" 1>&6
22471 else
22472 cat > conftest.$ac_ext <<EOF
22473 #line 22474 "configure"
22474 #include "confdefs.h"
22475 #include <langinfo.h>
22476 EOF
22477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22478 { (eval echo configure:22479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22480 if test -z "$ac_err"; then
22481 rm -rf conftest*
22482 eval "ac_cv_header_$ac_safe=yes"
22483 else
22484 echo "$ac_err" >&5
22485 echo "configure: failed program was:" >&5
22486 cat conftest.$ac_ext >&5
22487 rm -rf conftest*
22488 eval "ac_cv_header_$ac_safe=no"
22489 fi
22490 rm -f conftest*
22491 fi
22492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22493 echo "$ac_t""yes" 1>&6
22494 ac_has_langinfo_h=yes
22495 else
22496 echo "$ac_t""no" 1>&6
22497 ac_has_langinfo_h=no
22498 fi
22499
22500
22501 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22502 echo "configure:22503: checking for iconv in -liconv" >&5
22503 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22504 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22505 echo $ac_n "(cached) $ac_c" 1>&6
22506 else
22507 ac_save_LIBS="$LIBS"
22508 LIBS="-liconv $LIBS"
22509 cat > conftest.$ac_ext <<EOF
22510 #line 22511 "configure"
22511 #include "confdefs.h"
22512 /* Override any gcc2 internal prototype to avoid an error. */
22513 /* We use char because int might match the return type of a gcc2
22514 builtin and then its argument prototype would still apply. */
22515 char iconv();
22516
22517 int main() {
22518 iconv()
22519 ; return 0; }
22520 EOF
22521 if { (eval echo configure:22522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22522 rm -rf conftest*
22523 eval "ac_cv_lib_$ac_lib_var=yes"
22524 else
22525 echo "configure: failed program was:" >&5
22526 cat conftest.$ac_ext >&5
22527 rm -rf conftest*
22528 eval "ac_cv_lib_$ac_lib_var=no"
22529 fi
22530 rm -f conftest*
22531 LIBS="$ac_save_LIBS"
22532
22533 fi
22534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22535 echo "$ac_t""yes" 1>&6
22536 libiconv="-liconv"
22537 else
22538 echo "$ac_t""no" 1>&6
22539 fi
22540
22541 ac_save_LIBS="$LIBS"
22542 LIBS="$LIBS $libiconv"
22543
22544 for ac_func in iconv_open iconv_close iconv nl_langinfo
22545 do
22546 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22547 echo "configure:22548: checking for $ac_func" >&5
22548 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22549 echo $ac_n "(cached) $ac_c" 1>&6
22550 else
22551 cat > conftest.$ac_ext <<EOF
22552 #line 22553 "configure"
22553 #include "confdefs.h"
22554 /* System header to define __stub macros and hopefully few prototypes,
22555 which can conflict with char $ac_func(); below. */
22556 #include <assert.h>
22557 /* Override any gcc2 internal prototype to avoid an error. */
22558 /* We use char because int might match the return type of a gcc2
22559 builtin and then its argument prototype would still apply. */
22560 char $ac_func();
22561
22562 int main() {
22563
22564 /* The GNU C library defines this for functions which it implements
22565 to always fail with ENOSYS. Some functions are actually named
22566 something starting with __ and the normal name is an alias. */
22567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22568 choke me
22569 #else
22570 $ac_func();
22571 #endif
22572
22573 ; return 0; }
22574 EOF
22575 if { (eval echo configure:22576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22576 rm -rf conftest*
22577 eval "ac_cv_func_$ac_func=yes"
22578 else
22579 echo "configure: failed program was:" >&5
22580 cat conftest.$ac_ext >&5
22581 rm -rf conftest*
22582 eval "ac_cv_func_$ac_func=no"
22583 fi
22584 rm -f conftest*
22585 fi
22586
22587 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22588 echo "$ac_t""yes" 1>&6
22589 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22590 cat >> confdefs.h <<EOF
22591 #define $ac_tr_func 1
22592 EOF
22593 \
22594 ac_XPG2funcs=yes
22595 else
22596 echo "$ac_t""no" 1>&6
22597 ac_XPG2funcs=no
22598 fi
22599 done
22600
22601
22602 LIBS="$ac_save_LIBS"
22603
22604 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22605 echo "configure:22606: checking for XPG2 wchar_t support" >&5
22606 if test x"$ac_has_iconv_h" = xyes &&
22607 test x"$ac_has_langinfo_h" = xyes &&
22608 test x"$ac_XPG2funcs" = xyes; then
22609 ac_XPG2_wchar_t=yes
22610 else
22611 ac_XPG2_wchar_t=no
22612 fi
22613 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22614
22615 if test x"$ac_isoC99_wchar_t" = xyes &&
22616 test x"$ac_XPG2_wchar_t" = xyes; then
22617 cat >> confdefs.h <<\EOF
22618 #define _GLIBCPP_USE_WCHAR_T 1
22619 EOF
22620
22621 enable_wchar_t=yes
22622 fi
22623 fi
22624 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22625 echo "configure:22626: checking for enabled wchar_t specializations" >&5
22626 echo "$ac_t""$enable_wchar_t" 1>&6
22627
22628
22629 if test "$enable_wchar_t" = yes; then
22630 GLIBCPP_TEST_WCHAR_T_TRUE=
22631 GLIBCPP_TEST_WCHAR_T_FALSE='#'
22632 else
22633 GLIBCPP_TEST_WCHAR_T_TRUE='#'
22634 GLIBCPP_TEST_WCHAR_T_FALSE=
22635 fi
22636
22637
22638 ac_test_CXXFLAGS="${CXXFLAGS+set}"
22639 ac_save_CXXFLAGS="$CXXFLAGS"
22640 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22641
22642
22643 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22644 echo "configure:22645: checking for strtold declaration" >&5
22645 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
22646 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
22647 echo $ac_n "(cached) $ac_c" 1>&6
22648 else
22649
22650
22651 ac_ext=C
22652 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22653 ac_cpp='$CXXCPP $CPPFLAGS'
22654 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22655 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22656 cross_compiling=$ac_cv_prog_cxx_cross
22657
22658 cat > conftest.$ac_ext <<EOF
22659 #line 22660 "configure"
22660 #include "confdefs.h"
22661 #include <stdlib.h>
22662 int main() {
22663 strtold(0, 0);
22664 ; return 0; }
22665 EOF
22666 if { (eval echo configure:22667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22667 rm -rf conftest*
22668 glibcpp_cv_func_strtold_use=yes
22669 else
22670 echo "configure: failed program was:" >&5
22671 cat conftest.$ac_ext >&5
22672 rm -rf conftest*
22673 glibcpp_cv_func_strtold_use=no
22674 fi
22675 rm -f conftest*
22676 ac_ext=c
22677 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22678 ac_cpp='$CPP $CPPFLAGS'
22679 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22680 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22681 cross_compiling=$ac_cv_prog_cc_cross
22682
22683
22684 fi
22685
22686 fi
22687 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
22688 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
22689 for ac_func in strtold
22690 do
22691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22692 echo "configure:22693: checking for $ac_func" >&5
22693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22694 echo $ac_n "(cached) $ac_c" 1>&6
22695 else
22696 cat > conftest.$ac_ext <<EOF
22697 #line 22698 "configure"
22698 #include "confdefs.h"
22699 /* System header to define __stub macros and hopefully few prototypes,
22700 which can conflict with char $ac_func(); below. */
22701 #include <assert.h>
22702 /* Override any gcc2 internal prototype to avoid an error. */
22703 /* We use char because int might match the return type of a gcc2
22704 builtin and then its argument prototype would still apply. */
22705 char $ac_func();
22706
22707 int main() {
22708
22709 /* The GNU C library defines this for functions which it implements
22710 to always fail with ENOSYS. Some functions are actually named
22711 something starting with __ and the normal name is an alias. */
22712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22713 choke me
22714 #else
22715 $ac_func();
22716 #endif
22717
22718 ; return 0; }
22719 EOF
22720 if { (eval echo configure:22721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22721 rm -rf conftest*
22722 eval "ac_cv_func_$ac_func=yes"
22723 else
22724 echo "configure: failed program was:" >&5
22725 cat conftest.$ac_ext >&5
22726 rm -rf conftest*
22727 eval "ac_cv_func_$ac_func=no"
22728 fi
22729 rm -f conftest*
22730 fi
22731
22732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22733 echo "$ac_t""yes" 1>&6
22734 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22735 cat >> confdefs.h <<EOF
22736 #define $ac_tr_func 1
22737 EOF
22738
22739 else
22740 echo "$ac_t""no" 1>&6
22741 fi
22742 done
22743
22744 fi
22745
22746
22747 echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22748 echo "configure:22749: checking for strtof declaration" >&5
22749 if test x${glibcpp_cv_func_strtof_use+set} != xset; then
22750 if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
22751 echo $ac_n "(cached) $ac_c" 1>&6
22752 else
22753
22754
22755 ac_ext=C
22756 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22757 ac_cpp='$CXXCPP $CPPFLAGS'
22758 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22759 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22760 cross_compiling=$ac_cv_prog_cxx_cross
22761
22762 cat > conftest.$ac_ext <<EOF
22763 #line 22764 "configure"
22764 #include "confdefs.h"
22765 #include <stdlib.h>
22766 int main() {
22767 strtof(0, 0);
22768 ; return 0; }
22769 EOF
22770 if { (eval echo configure:22771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22771 rm -rf conftest*
22772 glibcpp_cv_func_strtof_use=yes
22773 else
22774 echo "configure: failed program was:" >&5
22775 cat conftest.$ac_ext >&5
22776 rm -rf conftest*
22777 glibcpp_cv_func_strtof_use=no
22778 fi
22779 rm -f conftest*
22780 ac_ext=c
22781 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22782 ac_cpp='$CPP $CPPFLAGS'
22783 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22784 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22785 cross_compiling=$ac_cv_prog_cc_cross
22786
22787
22788 fi
22789
22790 fi
22791 echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
22792 if test x$glibcpp_cv_func_strtof_use = x"yes"; then
22793 for ac_func in strtof
22794 do
22795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22796 echo "configure:22797: checking for $ac_func" >&5
22797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22798 echo $ac_n "(cached) $ac_c" 1>&6
22799 else
22800 cat > conftest.$ac_ext <<EOF
22801 #line 22802 "configure"
22802 #include "confdefs.h"
22803 /* System header to define __stub macros and hopefully few prototypes,
22804 which can conflict with char $ac_func(); below. */
22805 #include <assert.h>
22806 /* Override any gcc2 internal prototype to avoid an error. */
22807 /* We use char because int might match the return type of a gcc2
22808 builtin and then its argument prototype would still apply. */
22809 char $ac_func();
22810
22811 int main() {
22812
22813 /* The GNU C library defines this for functions which it implements
22814 to always fail with ENOSYS. Some functions are actually named
22815 something starting with __ and the normal name is an alias. */
22816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22817 choke me
22818 #else
22819 $ac_func();
22820 #endif
22821
22822 ; return 0; }
22823 EOF
22824 if { (eval echo configure:22825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22825 rm -rf conftest*
22826 eval "ac_cv_func_$ac_func=yes"
22827 else
22828 echo "configure: failed program was:" >&5
22829 cat conftest.$ac_ext >&5
22830 rm -rf conftest*
22831 eval "ac_cv_func_$ac_func=no"
22832 fi
22833 rm -f conftest*
22834 fi
22835
22836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22837 echo "$ac_t""yes" 1>&6
22838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22839 cat >> confdefs.h <<EOF
22840 #define $ac_tr_func 1
22841 EOF
22842
22843 else
22844 echo "$ac_t""no" 1>&6
22845 fi
22846 done
22847
22848 fi
22849
22850 for ac_func in drand48
22851 do
22852 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22853 echo "configure:22854: checking for $ac_func" >&5
22854 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22855 echo $ac_n "(cached) $ac_c" 1>&6
22856 else
22857 cat > conftest.$ac_ext <<EOF
22858 #line 22859 "configure"
22859 #include "confdefs.h"
22860 /* System header to define __stub macros and hopefully few prototypes,
22861 which can conflict with char $ac_func(); below. */
22862 #include <assert.h>
22863 /* Override any gcc2 internal prototype to avoid an error. */
22864 /* We use char because int might match the return type of a gcc2
22865 builtin and then its argument prototype would still apply. */
22866 char $ac_func();
22867
22868 int main() {
22869
22870 /* The GNU C library defines this for functions which it implements
22871 to always fail with ENOSYS. Some functions are actually named
22872 something starting with __ and the normal name is an alias. */
22873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22874 choke me
22875 #else
22876 $ac_func();
22877 #endif
22878
22879 ; return 0; }
22880 EOF
22881 if { (eval echo configure:22882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22882 rm -rf conftest*
22883 eval "ac_cv_func_$ac_func=yes"
22884 else
22885 echo "configure: failed program was:" >&5
22886 cat conftest.$ac_ext >&5
22887 rm -rf conftest*
22888 eval "ac_cv_func_$ac_func=no"
22889 fi
22890 rm -f conftest*
22891 fi
22892
22893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22894 echo "$ac_t""yes" 1>&6
22895 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22896 cat >> confdefs.h <<EOF
22897 #define $ac_tr_func 1
22898 EOF
22899
22900 else
22901 echo "$ac_t""no" 1>&6
22902 fi
22903 done
22904
22905
22906 CXXFLAGS="$ac_save_CXXFLAGS"
22907
22908
22909 # For showmanyc_helper().
22910 for ac_hdr in sys/ioctl.h sys/filio.h
22911 do
22912 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22913 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22914 echo "configure:22915: checking for $ac_hdr" >&5
22915 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22916 echo $ac_n "(cached) $ac_c" 1>&6
22917 else
22918 cat > conftest.$ac_ext <<EOF
22919 #line 22920 "configure"
22920 #include "confdefs.h"
22921 #include <$ac_hdr>
22922 EOF
22923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22924 { (eval echo configure:22925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22926 if test -z "$ac_err"; then
22927 rm -rf conftest*
22928 eval "ac_cv_header_$ac_safe=yes"
22929 else
22930 echo "$ac_err" >&5
22931 echo "configure: failed program was:" >&5
22932 cat conftest.$ac_ext >&5
22933 rm -rf conftest*
22934 eval "ac_cv_header_$ac_safe=no"
22935 fi
22936 rm -f conftest*
22937 fi
22938 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22939 echo "$ac_t""yes" 1>&6
22940 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22941 cat >> confdefs.h <<EOF
22942 #define $ac_tr_hdr 1
22943 EOF
22944
22945 else
22946 echo "$ac_t""no" 1>&6
22947 fi
22948 done
22949
22950
22951 if eval "test \"`echo '$''{'glibcpp_cv_POLL'+set}'`\" = set"; then
22952 echo $ac_n "(cached) $ac_c" 1>&6
22953 else
22954
22955 cat > conftest.$ac_ext <<EOF
22956 #line 22957 "configure"
22957 #include "confdefs.h"
22958 #include <poll.h>
22959 int main() {
22960 struct pollfd pfd[1]; pfd[0].events = POLLIN; poll(pfd, 1, 0);
22961 ; return 0; }
22962 EOF
22963 if { (eval echo configure:22964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22964 rm -rf conftest*
22965 glibcpp_cv_POLL=yes
22966 else
22967 echo "configure: failed program was:" >&5
22968 cat conftest.$ac_ext >&5
22969 rm -rf conftest*
22970 glibcpp_cv_POLL=no
22971 fi
22972 rm -f conftest*
22973
22974 fi
22975
22976 if test x$glibcpp_cv_POLL = xyes; then
22977 cat >> confdefs.h <<\EOF
22978 #define HAVE_POLL 1
22979 EOF
22980
22981 fi
22982
22983
22984 if eval "test \"`echo '$''{'glibcpp_cv_S_ISREG'+set}'`\" = set"; then
22985 echo $ac_n "(cached) $ac_c" 1>&6
22986 else
22987
22988 cat > conftest.$ac_ext <<EOF
22989 #line 22990 "configure"
22990 #include "confdefs.h"
22991 #include <sys/stat.h>
22992 int main() {
22993 struct stat buffer; fstat(0, &buffer); S_ISREG(buffer.st_mode);
22994 ; return 0; }
22995 EOF
22996 if { (eval echo configure:22997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22997 rm -rf conftest*
22998 glibcpp_cv_S_ISREG=yes
22999 else
23000 echo "configure: failed program was:" >&5
23001 cat conftest.$ac_ext >&5
23002 rm -rf conftest*
23003 glibcpp_cv_S_ISREG=no
23004 fi
23005 rm -f conftest*
23006
23007 fi
23008
23009 if eval "test \"`echo '$''{'glibcpp_cv_S_IFREG'+set}'`\" = set"; then
23010 echo $ac_n "(cached) $ac_c" 1>&6
23011 else
23012
23013 cat > conftest.$ac_ext <<EOF
23014 #line 23015 "configure"
23015 #include "confdefs.h"
23016 #include <sys/stat.h>
23017 int main() {
23018 struct stat buffer; fstat(0, &buffer); S_IFREG & buffer.st_mode;
23019 ; return 0; }
23020 EOF
23021 if { (eval echo configure:23022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23022 rm -rf conftest*
23023 glibcpp_cv_S_IFREG=yes
23024 else
23025 echo "configure: failed program was:" >&5
23026 cat conftest.$ac_ext >&5
23027 rm -rf conftest*
23028 glibcpp_cv_S_IFREG=no
23029 fi
23030 rm -f conftest*
23031
23032 fi
23033
23034 if test x$glibcpp_cv_S_ISREG = xyes; then
23035 cat >> confdefs.h <<\EOF
23036 #define HAVE_S_ISREG 1
23037 EOF
23038
23039 elif test x$glibcpp_cv_S_IFREG = xyes; then
23040 cat >> confdefs.h <<\EOF
23041 #define HAVE_S_IFREG 1
23042 EOF
23043
23044 fi
23045
23046
23047
23048 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
23049 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
23050 echo "configure:23051: checking for locale.h" >&5
23051 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23052 echo $ac_n "(cached) $ac_c" 1>&6
23053 else
23054 cat > conftest.$ac_ext <<EOF
23055 #line 23056 "configure"
23056 #include "confdefs.h"
23057 #include <locale.h>
23058 EOF
23059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23060 { (eval echo configure:23061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23062 if test -z "$ac_err"; then
23063 rm -rf conftest*
23064 eval "ac_cv_header_$ac_safe=yes"
23065 else
23066 echo "$ac_err" >&5
23067 echo "configure: failed program was:" >&5
23068 cat conftest.$ac_ext >&5
23069 rm -rf conftest*
23070 eval "ac_cv_header_$ac_safe=no"
23071 fi
23072 rm -f conftest*
23073 fi
23074 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23075 echo "$ac_t""yes" 1>&6
23076
23077 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
23078 echo "configure:23079: checking for LC_MESSAGES" >&5
23079 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
23080 echo $ac_n "(cached) $ac_c" 1>&6
23081 else
23082 cat > conftest.$ac_ext <<EOF
23083 #line 23084 "configure"
23084 #include "confdefs.h"
23085 #include <locale.h>
23086 int main() {
23087 return LC_MESSAGES
23088 ; return 0; }
23089 EOF
23090 if { (eval echo configure:23091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23091 rm -rf conftest*
23092 ac_cv_val_LC_MESSAGES=yes
23093 else
23094 echo "configure: failed program was:" >&5
23095 cat conftest.$ac_ext >&5
23096 rm -rf conftest*
23097 ac_cv_val_LC_MESSAGES=no
23098 fi
23099 rm -f conftest*
23100 fi
23101
23102 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
23103 if test $ac_cv_val_LC_MESSAGES = yes; then
23104 cat >> confdefs.h <<\EOF
23105 #define HAVE_LC_MESSAGES 1
23106 EOF
23107
23108 fi
23109
23110 else
23111 echo "$ac_t""no" 1>&6
23112 fi
23113
23114
23115
23116 cat > conftest.$ac_ext <<EOF
23117 #line 23118 "configure"
23118 #include "confdefs.h"
23119
23120 #include <setjmp.h>
23121
23122 int main() {
23123 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
23124 ; return 0; }
23125 EOF
23126 if { (eval echo configure:23127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23127 rm -rf conftest*
23128 cat >> confdefs.h <<\EOF
23129 #define HAVE_SIGSETJMP 1
23130 EOF
23131
23132
23133 else
23134 echo "configure: failed program was:" >&5
23135 cat conftest.$ac_ext >&5
23136 fi
23137 rm -f conftest*
23138
23139 for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
23140 do
23141 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23142 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23143 echo "configure:23144: checking for $ac_hdr" >&5
23144 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23145 echo $ac_n "(cached) $ac_c" 1>&6
23146 else
23147 cat > conftest.$ac_ext <<EOF
23148 #line 23149 "configure"
23149 #include "confdefs.h"
23150 #include <$ac_hdr>
23151 EOF
23152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23153 { (eval echo configure:23154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23155 if test -z "$ac_err"; then
23156 rm -rf conftest*
23157 eval "ac_cv_header_$ac_safe=yes"
23158 else
23159 echo "$ac_err" >&5
23160 echo "configure: failed program was:" >&5
23161 cat conftest.$ac_ext >&5
23162 rm -rf conftest*
23163 eval "ac_cv_header_$ac_safe=no"
23164 fi
23165 rm -f conftest*
23166 fi
23167 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23168 echo "$ac_t""yes" 1>&6
23169 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23170 cat >> confdefs.h <<EOF
23171 #define $ac_tr_hdr 1
23172 EOF
23173
23174 else
23175 echo "$ac_t""no" 1>&6
23176 fi
23177 done
23178
23179 for ac_func in getpagesize
23180 do
23181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23182 echo "configure:23183: checking for $ac_func" >&5
23183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23184 echo $ac_n "(cached) $ac_c" 1>&6
23185 else
23186 cat > conftest.$ac_ext <<EOF
23187 #line 23188 "configure"
23188 #include "confdefs.h"
23189 /* System header to define __stub macros and hopefully few prototypes,
23190 which can conflict with char $ac_func(); below. */
23191 #include <assert.h>
23192 /* Override any gcc2 internal prototype to avoid an error. */
23193 /* We use char because int might match the return type of a gcc2
23194 builtin and then its argument prototype would still apply. */
23195 char $ac_func();
23196
23197 int main() {
23198
23199 /* The GNU C library defines this for functions which it implements
23200 to always fail with ENOSYS. Some functions are actually named
23201 something starting with __ and the normal name is an alias. */
23202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23203 choke me
23204 #else
23205 $ac_func();
23206 #endif
23207
23208 ; return 0; }
23209 EOF
23210 if { (eval echo configure:23211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23211 rm -rf conftest*
23212 eval "ac_cv_func_$ac_func=yes"
23213 else
23214 echo "configure: failed program was:" >&5
23215 cat conftest.$ac_ext >&5
23216 rm -rf conftest*
23217 eval "ac_cv_func_$ac_func=no"
23218 fi
23219 rm -f conftest*
23220 fi
23221
23222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23223 echo "$ac_t""yes" 1>&6
23224 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23225 cat >> confdefs.h <<EOF
23226 #define $ac_tr_func 1
23227 EOF
23228
23229 else
23230 echo "$ac_t""no" 1>&6
23231 fi
23232 done
23233
23234 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
23235 echo "configure:23236: checking for working mmap" >&5
23236 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
23237 echo $ac_n "(cached) $ac_c" 1>&6
23238 else
23239 if test "$cross_compiling" = yes; then
23240 ac_cv_func_mmap_fixed_mapped=no
23241 else
23242 cat > conftest.$ac_ext <<EOF
23243 #line 23244 "configure"
23244 #include "confdefs.h"
23245
23246 /* Thanks to Mike Haertel and Jim Avera for this test.
23247 Here is a matrix of mmap possibilities:
23248 mmap private not fixed
23249 mmap private fixed at somewhere currently unmapped
23250 mmap private fixed at somewhere already mapped
23251 mmap shared not fixed
23252 mmap shared fixed at somewhere currently unmapped
23253 mmap shared fixed at somewhere already mapped
23254 For private mappings, we should verify that changes cannot be read()
23255 back from the file, nor mmap's back from the file at a different
23256 address. (There have been systems where private was not correctly
23257 implemented like the infamous i386 svr4.0, and systems where the
23258 VM page cache was not coherent with the filesystem buffer cache
23259 like early versions of FreeBSD and possibly contemporary NetBSD.)
23260 For shared mappings, we should conversely verify that changes get
23261 propogated back to all the places they're supposed to be.
23262
23263 Grep wants private fixed already mapped.
23264 The main things grep needs to know about mmap are:
23265 * does it exist and is it safe to write into the mmap'd area
23266 * how to use it (BSD variants) */
23267 #include <sys/types.h>
23268 #include <fcntl.h>
23269 #include <sys/mman.h>
23270
23271 #if HAVE_SYS_TYPES_H
23272 # include <sys/types.h>
23273 #endif
23274
23275 #if HAVE_STDLIB_H
23276 # include <stdlib.h>
23277 #endif
23278
23279 #if HAVE_SYS_STAT_H
23280 # include <sys/stat.h>
23281 #endif
23282
23283 #if HAVE_UNISTD_H
23284 # include <unistd.h>
23285 #endif
23286
23287 /* This mess was copied from the GNU getpagesize.h. */
23288 #ifndef HAVE_GETPAGESIZE
23289
23290 /* Assume that all systems that can run configure have sys/param.h. */
23291 # ifndef HAVE_SYS_PARAM_H
23292 # define HAVE_SYS_PARAM_H 1
23293 # endif
23294
23295 # ifdef _SC_PAGESIZE
23296 # define getpagesize() sysconf(_SC_PAGESIZE)
23297 # else /* no _SC_PAGESIZE */
23298 # ifdef HAVE_SYS_PARAM_H
23299 # include <sys/param.h>
23300 # ifdef EXEC_PAGESIZE
23301 # define getpagesize() EXEC_PAGESIZE
23302 # else /* no EXEC_PAGESIZE */
23303 # ifdef NBPG
23304 # define getpagesize() NBPG * CLSIZE
23305 # ifndef CLSIZE
23306 # define CLSIZE 1
23307 # endif /* no CLSIZE */
23308 # else /* no NBPG */
23309 # ifdef NBPC
23310 # define getpagesize() NBPC
23311 # else /* no NBPC */
23312 # ifdef PAGESIZE
23313 # define getpagesize() PAGESIZE
23314 # endif /* PAGESIZE */
23315 # endif /* no NBPC */
23316 # endif /* no NBPG */
23317 # endif /* no EXEC_PAGESIZE */
23318 # else /* no HAVE_SYS_PARAM_H */
23319 # define getpagesize() 8192 /* punt totally */
23320 # endif /* no HAVE_SYS_PARAM_H */
23321 # endif /* no _SC_PAGESIZE */
23322
23323 #endif /* no HAVE_GETPAGESIZE */
23324
23325 #ifdef __cplusplus
23326 extern "C" { void *malloc(unsigned); }
23327 #else
23328 char *malloc();
23329 #endif
23330
23331 int
23332 main()
23333 {
23334 char *data, *data2, *data3;
23335 int i, pagesize;
23336 int fd;
23337
23338 pagesize = getpagesize();
23339
23340 /*
23341 * First, make a file with some known garbage in it.
23342 */
23343 data = malloc(pagesize);
23344 if (!data)
23345 exit(1);
23346 for (i = 0; i < pagesize; ++i)
23347 *(data + i) = rand();
23348 umask(0);
23349 fd = creat("conftestmmap", 0600);
23350 if (fd < 0)
23351 exit(1);
23352 if (write(fd, data, pagesize) != pagesize)
23353 exit(1);
23354 close(fd);
23355
23356 /*
23357 * Next, try to mmap the file at a fixed address which
23358 * already has something else allocated at it. If we can,
23359 * also make sure that we see the same garbage.
23360 */
23361 fd = open("conftestmmap", O_RDWR);
23362 if (fd < 0)
23363 exit(1);
23364 data2 = malloc(2 * pagesize);
23365 if (!data2)
23366 exit(1);
23367 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
23368 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
23369 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23370 exit(1);
23371 for (i = 0; i < pagesize; ++i)
23372 if (*(data + i) != *(data2 + i))
23373 exit(1);
23374
23375 /*
23376 * Finally, make sure that changes to the mapped area
23377 * do not percolate back to the file as seen by read().
23378 * (This is a bug on some variants of i386 svr4.0.)
23379 */
23380 for (i = 0; i < pagesize; ++i)
23381 *(data2 + i) = *(data2 + i) + 1;
23382 data3 = malloc(pagesize);
23383 if (!data3)
23384 exit(1);
23385 if (read(fd, data3, pagesize) != pagesize)
23386 exit(1);
23387 for (i = 0; i < pagesize; ++i)
23388 if (*(data + i) != *(data3 + i))
23389 exit(1);
23390 close(fd);
23391 unlink("conftestmmap");
23392 exit(0);
23393 }
23394
23395 EOF
23396 if { (eval echo configure:23397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23397 then
23398 ac_cv_func_mmap_fixed_mapped=yes
23399 else
23400 echo "configure: failed program was:" >&5
23401 cat conftest.$ac_ext >&5
23402 rm -fr conftest*
23403 ac_cv_func_mmap_fixed_mapped=no
23404 fi
23405 rm -fr conftest*
23406 fi
23407
23408 fi
23409
23410 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
23411 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23412 cat >> confdefs.h <<\EOF
23413 #define HAVE_MMAP 1
23414 EOF
23415
23416 fi
23417
23418
23419 # Establish limits on memory usage during 'make check'
23420
23421
23422 setrlimit_have_headers=yes
23423 for ac_hdr in unistd.h sys/time.h sys/resource.h
23424 do
23425 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23426 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23427 echo "configure:23428: checking for $ac_hdr" >&5
23428 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23429 echo $ac_n "(cached) $ac_c" 1>&6
23430 else
23431 cat > conftest.$ac_ext <<EOF
23432 #line 23433 "configure"
23433 #include "confdefs.h"
23434 #include <$ac_hdr>
23435 EOF
23436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23437 { (eval echo configure:23438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23438 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23439 if test -z "$ac_err"; then
23440 rm -rf conftest*
23441 eval "ac_cv_header_$ac_safe=yes"
23442 else
23443 echo "$ac_err" >&5
23444 echo "configure: failed program was:" >&5
23445 cat conftest.$ac_ext >&5
23446 rm -rf conftest*
23447 eval "ac_cv_header_$ac_safe=no"
23448 fi
23449 rm -f conftest*
23450 fi
23451 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23452 echo "$ac_t""yes" 1>&6
23453 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23454 cat >> confdefs.h <<EOF
23455 #define $ac_tr_hdr 1
23456 EOF
23457
23458 else
23459 echo "$ac_t""no" 1>&6
23460 setrlimit_have_headers=no
23461 fi
23462 done
23463
23464 # If don't have the headers, then we can't run the tests now, and we
23465 # won't be seeing any of these during testsuite compilation.
23466 if test $setrlimit_have_headers = yes; then
23467 # Can't do these in a loop, else the resulting syntax is wrong.
23468
23469 cat > conftest.$ac_ext <<EOF
23470 #line 23471 "configure"
23471 #include "confdefs.h"
23472 #include <unistd.h>
23473 #include <sys/time.h>
23474 #include <sys/resource.h>
23475
23476 int main() {
23477 int f = RLIMIT_DATA ;
23478 ; return 0; }
23479 EOF
23480 if { (eval echo configure:23481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23481 rm -rf conftest*
23482 glibcpp_mresult=1
23483 else
23484 echo "configure: failed program was:" >&5
23485 cat conftest.$ac_ext >&5
23486 rm -rf conftest*
23487 glibcpp_mresult=0
23488 fi
23489 rm -f conftest*
23490 cat >> confdefs.h <<EOF
23491 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
23492 EOF
23493
23494
23495
23496 cat > conftest.$ac_ext <<EOF
23497 #line 23498 "configure"
23498 #include "confdefs.h"
23499 #include <unistd.h>
23500 #include <sys/time.h>
23501 #include <sys/resource.h>
23502
23503 int main() {
23504 int f = RLIMIT_RSS ;
23505 ; return 0; }
23506 EOF
23507 if { (eval echo configure:23508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23508 rm -rf conftest*
23509 glibcpp_mresult=1
23510 else
23511 echo "configure: failed program was:" >&5
23512 cat conftest.$ac_ext >&5
23513 rm -rf conftest*
23514 glibcpp_mresult=0
23515 fi
23516 rm -f conftest*
23517 cat >> confdefs.h <<EOF
23518 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
23519 EOF
23520
23521
23522
23523 cat > conftest.$ac_ext <<EOF
23524 #line 23525 "configure"
23525 #include "confdefs.h"
23526 #include <unistd.h>
23527 #include <sys/time.h>
23528 #include <sys/resource.h>
23529
23530 int main() {
23531 int f = RLIMIT_VMEM ;
23532 ; return 0; }
23533 EOF
23534 if { (eval echo configure:23535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23535 rm -rf conftest*
23536 glibcpp_mresult=1
23537 else
23538 echo "configure: failed program was:" >&5
23539 cat conftest.$ac_ext >&5
23540 rm -rf conftest*
23541 glibcpp_mresult=0
23542 fi
23543 rm -f conftest*
23544 cat >> confdefs.h <<EOF
23545 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
23546 EOF
23547
23548
23549
23550 cat > conftest.$ac_ext <<EOF
23551 #line 23552 "configure"
23552 #include "confdefs.h"
23553 #include <unistd.h>
23554 #include <sys/time.h>
23555 #include <sys/resource.h>
23556
23557 int main() {
23558 int f = RLIMIT_AS ;
23559 ; return 0; }
23560 EOF
23561 if { (eval echo configure:23562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23562 rm -rf conftest*
23563 glibcpp_mresult=1
23564 else
23565 echo "configure: failed program was:" >&5
23566 cat conftest.$ac_ext >&5
23567 rm -rf conftest*
23568 glibcpp_mresult=0
23569 fi
23570 rm -f conftest*
23571 cat >> confdefs.h <<EOF
23572 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
23573 EOF
23574
23575
23576
23577 # Check for rlimit, setrlimit.
23578 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23579 echo $ac_n "(cached) $ac_c" 1>&6
23580 else
23581
23582 cat > conftest.$ac_ext <<EOF
23583 #line 23584 "configure"
23584 #include "confdefs.h"
23585 #include <unistd.h>
23586 #include <sys/time.h>
23587 #include <sys/resource.h>
23588
23589 int main() {
23590 struct rlimit r; setrlimit(0, &r);
23591 ; return 0; }
23592 EOF
23593 if { (eval echo configure:23594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23594 rm -rf conftest*
23595 ac_setrlimit=yes
23596 else
23597 echo "configure: failed program was:" >&5
23598 cat conftest.$ac_ext >&5
23599 rm -rf conftest*
23600 ac_setrlimit=no
23601 fi
23602 rm -f conftest*
23603
23604 fi
23605
23606 fi
23607
23608 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23609 echo "configure:23610: checking for testsuite memory limit support" >&5
23610 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23611 ac_mem_limits=yes
23612 cat >> confdefs.h <<\EOF
23613 #define _GLIBCPP_MEM_LIMITS 1
23614 EOF
23615
23616 else
23617 ac_mem_limits=no
23618 fi
23619 echo "$ac_t""$ac_mem_limits" 1>&6
23620
23621
23622 # Look for setenv, so that extended locale tests can be performed.
23623
23624 echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23625 echo "configure:23626: checking for setenv declaration" >&5
23626 if test x${glibcpp_cv_func_setenv_use+set} != xset; then
23627 if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
23628 echo $ac_n "(cached) $ac_c" 1>&6
23629 else
23630
23631
23632 ac_ext=C
23633 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23634 ac_cpp='$CXXCPP $CPPFLAGS'
23635 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23636 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23637 cross_compiling=$ac_cv_prog_cxx_cross
23638
23639 cat > conftest.$ac_ext <<EOF
23640 #line 23641 "configure"
23641 #include "confdefs.h"
23642 #include <stdlib.h>
23643 int main() {
23644 setenv(0, 0, 0);
23645 ; return 0; }
23646 EOF
23647 if { (eval echo configure:23648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23648 rm -rf conftest*
23649 glibcpp_cv_func_setenv_use=yes
23650 else
23651 echo "configure: failed program was:" >&5
23652 cat conftest.$ac_ext >&5
23653 rm -rf conftest*
23654 glibcpp_cv_func_setenv_use=no
23655 fi
23656 rm -f conftest*
23657 ac_ext=c
23658 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23659 ac_cpp='$CPP $CPPFLAGS'
23660 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23661 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23662 cross_compiling=$ac_cv_prog_cc_cross
23663
23664
23665 fi
23666
23667 fi
23668 echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
23669 if test x$glibcpp_cv_func_setenv_use = x"yes"; then
23670 for ac_func in setenv
23671 do
23672 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23673 echo "configure:23674: checking for $ac_func" >&5
23674 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23675 echo $ac_n "(cached) $ac_c" 1>&6
23676 else
23677 cat > conftest.$ac_ext <<EOF
23678 #line 23679 "configure"
23679 #include "confdefs.h"
23680 /* System header to define __stub macros and hopefully few prototypes,
23681 which can conflict with char $ac_func(); below. */
23682 #include <assert.h>
23683 /* Override any gcc2 internal prototype to avoid an error. */
23684 /* We use char because int might match the return type of a gcc2
23685 builtin and then its argument prototype would still apply. */
23686 char $ac_func();
23687
23688 int main() {
23689
23690 /* The GNU C library defines this for functions which it implements
23691 to always fail with ENOSYS. Some functions are actually named
23692 something starting with __ and the normal name is an alias. */
23693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23694 choke me
23695 #else
23696 $ac_func();
23697 #endif
23698
23699 ; return 0; }
23700 EOF
23701 if { (eval echo configure:23702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23702 rm -rf conftest*
23703 eval "ac_cv_func_$ac_func=yes"
23704 else
23705 echo "configure: failed program was:" >&5
23706 cat conftest.$ac_ext >&5
23707 rm -rf conftest*
23708 eval "ac_cv_func_$ac_func=no"
23709 fi
23710 rm -f conftest*
23711 fi
23712
23713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23714 echo "$ac_t""yes" 1>&6
23715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23716 cat >> confdefs.h <<EOF
23717 #define $ac_tr_func 1
23718 EOF
23719
23720 else
23721 echo "$ac_t""no" 1>&6
23722 fi
23723 done
23724
23725 fi
23726
23727
23728 # Export file names for ABI checking.
23729 baseline_file="${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}/baseline_symbols.txt"
23730
23731
23732 case "$target" in
23733 *-*-cygwin* ) enable_abi_check=no ;;
23734 * ) enable_abi_check=yes ;;
23735 esac
23736
23737 # Don't do ABI checking unless native.
23738
23739
23740 if test x"$build" = x"$host" && test -z "$with_cross_host" \
23741 && test "$enable_abi_check" = yes ; then
23742 GLIBCPP_BUILD_ABI_CHECK_TRUE=
23743 GLIBCPP_BUILD_ABI_CHECK_FALSE='#'
23744 else
23745 GLIBCPP_BUILD_ABI_CHECK_TRUE='#'
23746 GLIBCPP_BUILD_ABI_CHECK_FALSE=
23747 fi
23748
23749 fi
23750
23751 # This depends on the possibly-skipped linker test above.
23752 # Check whether --enable-symvers or --disable-symvers was given.
23753 if test "${enable_symvers+set}" = set; then
23754 enableval="$enable_symvers"
23755 case "$enableval" in
23756 yes) enable_symvers=yes ;;
23757 no) enable_symvers=no ;;
23758 # other names here, just as sanity checks
23759 #gnu|sun|etcetera) enable_symvers=$enableval ;;
23760 gnu) enable_symvers=$enableval ;;
23761 *) { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23762 esac
23763 else
23764 enable_symvers=yes
23765 fi
23766
23767 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
23768 # don't know enough about $LD to do tricks...
23769 if test x$enable_shared = xno ||
23770 test "x$LD" = x ||
23771 test x$glibcpp_gnu_ld_version = x; then
23772 enable_symvers=no
23773 fi
23774
23775 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23776 if test $enable_symvers != no; then
23777 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23778 echo "configure:23779: checking for shared libgcc" >&5
23779 ac_save_CFLAGS="$CFLAGS"
23780 CFLAGS=' -lgcc_s'
23781 cat > conftest.$ac_ext <<EOF
23782 #line 23783 "configure"
23783 #include "confdefs.h"
23784
23785 int main() {
23786 return 0
23787 ; return 0; }
23788 EOF
23789 if { (eval echo configure:23790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23790 rm -rf conftest*
23791 glibcpp_shared_libgcc=yes
23792 else
23793 echo "configure: failed program was:" >&5
23794 cat conftest.$ac_ext >&5
23795 rm -rf conftest*
23796 glibcpp_shared_libgcc=no
23797 fi
23798 rm -f conftest*
23799 CFLAGS="$ac_save_CFLAGS"
23800 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
23801 fi
23802
23803 # For GNU ld, we need at least this version. It's 2.12 in the same format
23804 # as the tested-for version. See GLIBCPP_CHECK_LINKER_FEATURES for more.
23805 glibcpp_min_gnu_ld_version=21200
23806
23807 # Check to see if unspecified "yes" value can win, given results
23808 # above.
23809 if test $enable_symvers = yes ; then
23810 if test $with_gnu_ld = yes &&
23811 test $glibcpp_shared_libgcc = yes ;
23812 then
23813 if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
23814 enable_symvers=gnu
23815 else
23816 ac_test_CFLAGS="${CFLAGS+set}"
23817 ac_save_CFLAGS="$CFLAGS"
23818 CFLAGS='-shared -Wl,--version-script,conftest.map'
23819 enable_symvers=no
23820
23821 echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
23822
23823 cat > conftest.$ac_ext <<EOF
23824 #line 23825 "configure"
23825 #include "confdefs.h"
23826 int foo;
23827 int main() {
23828
23829 ; return 0; }
23830 EOF
23831 if { (eval echo configure:23832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23832 rm -rf conftest*
23833 enable_symvers=gnu
23834 else
23835 echo "configure: failed program was:" >&5
23836 cat conftest.$ac_ext >&5
23837 fi
23838 rm -f conftest*
23839 if test "$ac_test_CFLAGS" = set; then
23840 CFLAGS="$ac_save_CFLAGS"
23841 else
23842 # this is the suspicious part
23843 CFLAGS=''
23844 fi
23845 rm -f conftest.map
23846 fi
23847 else
23848 # just fail for now
23849 enable_symvers=no
23850 fi
23851 fi
23852
23853 case $enable_symvers in
23854 no)
23855 SYMVER_MAP=config/linker-map.dummy
23856 ;;
23857 gnu)
23858 SYMVER_MAP=config/linker-map.gnu
23859 cat >> confdefs.h <<\EOF
23860 #define _GLIBCPP_SYMVER 1
23861 EOF
23862
23863 ;;
23864 esac
23865
23866
23867
23868
23869 if test $enable_symvers != no; then
23870 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
23871 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
23872 else
23873 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
23874 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
23875 fi
23876 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23877 echo "configure:23878: checking versioning on shared library symbols" >&5
23878 echo "$ac_t""$enable_symvers" 1>&6
23879
23880
23881 # Propagate the target-specific source directories through the build chain.
23882 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH
23883 # uses it, and it only gets used in this file.)
23884 OS_INC_SRCDIR=config/${os_include_dir}
23885 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23886
23887
23888
23889 # Set up cross-compile flags
23890
23891
23892 if test "$CANADIAN" = yes; then
23893 CANADIAN_TRUE=
23894 CANADIAN_FALSE='#'
23895 else
23896 CANADIAN_TRUE='#'
23897 CANADIAN_FALSE=
23898 fi
23899
23900 cat > confcache <<\EOF
23901 # This file is a shell script that caches the results of configure
23902 # tests run on this system so they can be shared between configure
23903 # scripts and configure runs. It is not useful on other systems.
23904 # If it contains results you don't want to keep, you may remove or edit it.
23905 #
23906 # By default, configure uses ./config.cache as the cache file,
23907 # creating it if it does not exist already. You can give configure
23908 # the --cache-file=FILE option to use a different cache file; that is
23909 # what configure does when it calls configure scripts in
23910 # subdirectories, so they share the cache.
23911 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23912 # config.status only pays attention to the cache file if you give it the
23913 # --recheck option to rerun configure.
23914 #
23915 EOF
23916 # The following way of writing the cache mishandles newlines in values,
23917 # but we know of no workaround that is simple, portable, and efficient.
23918 # So, don't put newlines in cache variables' values.
23919 # Ultrix sh set writes to stderr and can't be redirected directly,
23920 # and sets the high bit in the cache file unless we assign to the vars.
23921 (set) 2>&1 |
23922 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23923 *ac_space=\ *)
23924 # `set' does not quote correctly, so add quotes (double-quote substitution
23925 # turns \\\\ into \\, and sed turns \\ into \).
23926 sed -n \
23927 -e "s/'/'\\\\''/g" \
23928 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23929 ;;
23930 *)
23931 # `set' quotes correctly as required by POSIX, so do not add quotes.
23932 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23933 ;;
23934 esac >> confcache
23935 if cmp -s $cache_file confcache; then
23936 :
23937 else
23938 if test -w $cache_file; then
23939 echo "updating cache $cache_file"
23940 cat confcache > $cache_file
23941 else
23942 echo "not updating unwritable cache $cache_file"
23943 fi
23944 fi
23945 rm -f confcache
23946
23947
23948 if test "${multilib}" = "yes"; then
23949 multilib_arg="--enable-multilib"
23950 else
23951 multilib_arg=
23952 fi
23953
23954 # Export all the install information
23955
23956 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
23957 # exported correctly in GLIBCPP_CONFIGURE.
23958 glibcpp_toolexecdir=no
23959 glibcpp_toolexeclibdir=no
23960 glibcpp_prefixdir=${prefix}
23961
23962 # Process the option --with-gxx-include-dir=<path to include-files directory>
23963 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
23964 echo "configure:23965: checking for --with-gxx-include-dir" >&5
23965 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
23966 if test "${with_gxx_include_dir+set}" = set; then
23967 withval="$with_gxx_include_dir"
23968 case "${withval}" in
23969 yes)
23970 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
23971 gxx_include_dir=no
23972 ;;
23973 no)
23974 gxx_include_dir=no
23975 ;;
23976 *)
23977 gxx_include_dir=${withval}
23978 ;;
23979 esac
23980 else
23981 gxx_include_dir=no
23982 fi
23983
23984 echo "$ac_t""$gxx_include_dir" 1>&6
23985
23986 # Process the option "--enable-version-specific-runtime-libs"
23987 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
23988 echo "configure:23989: checking for --enable-version-specific-runtime-libs" >&5
23989 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23990 if test "${enable_version_specific_runtime_libs+set}" = set; then
23991 enableval="$enable_version_specific_runtime_libs"
23992 case "$enableval" in
23993 yes) version_specific_libs=yes ;;
23994 no) version_specific_libs=no ;;
23995 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
23996 esac
23997 else
23998 version_specific_libs=no
23999 fi
24000 # Option set, now we can test it.
24001 echo "$ac_t""$version_specific_libs" 1>&6
24002
24003 # Default case for install directory for include files.
24004 if test $version_specific_libs = no && test $gxx_include_dir = no; then
24005 gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
24006 fi
24007
24008 # Version-specific runtime libs processing.
24009 if test $version_specific_libs = yes; then
24010 # Need the gcc compiler version to know where to install libraries
24011 # and header files if --enable-version-specific-runtime-libs option
24012 # is selected.
24013 if test x"$gxx_include_dir" = x"no"; then
24014 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
24015 fi
24016 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
24017 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
24018 fi
24019
24020 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
24021 # Install a library built with a cross compiler in tooldir, not libdir.
24022 if test x"$glibcpp_toolexecdir" = x"no"; then
24023 if test -n "$with_cross_host" &&
24024 test x"$with_cross_host" != x"no"; then
24025 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
24026 glibcpp_toolexeclibdir='$(toolexecdir)/lib'
24027 else
24028 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
24029 glibcpp_toolexeclibdir='$(libdir)'
24030 fi
24031 multi_os_directory=`$CC -print-multi-os-directory`
24032 case $multi_os_directory in
24033 .) ;; # Avoid trailing /.
24034 *) glibcpp_toolexeclibdir=$glibcpp_toolexeclibdir/$multi_os_directory ;;
24035 esac
24036 fi
24037
24038 echo $ac_n "checking for install location""... $ac_c" 1>&6
24039 echo "configure:24040: checking for install location" >&5
24040 echo "$ac_t""$gxx_include_dir" 1>&6
24041
24042
24043
24044
24045
24046
24047
24048 # Export all the include and flag information to Makefiles.
24049
24050 # Root level of the build directory include sources.
24051 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
24052
24053 # Passed down for canadian crosses.
24054 if test x"$CANADIAN" = xyes; then
24055 TOPLEVEL_INCLUDES='-I$(includedir)'
24056 fi
24057
24058 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
24059
24060 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
24061
24062 if test x"$need_libio" = xyes; then
24063 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
24064
24065 fi
24066
24067 # Now, export this to all the little Makefiles....
24068
24069
24070
24071
24072
24073
24074 # Optimization flags that are probably a good idea for thrill-seekers. Just
24075 # uncomment the lines below and make, everything else is ready to go...
24076 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
24077 OPTIMIZE_CXXFLAGS=
24078
24079
24080 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings'
24081
24082
24083
24084 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
24085 grep "enable shared" > /dev/null; then
24086 LIBSUPCXX_PICFLAGS=-prefer-pic
24087 else
24088 LIBSUPCXX_PICFLAGS=
24089 fi
24090
24091
24092 # Generate the various Makefiles, include files, and scripts.
24093 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
24094 # and libsupc++/Makefile.am so that multilib installs will end up
24095 # installed in the correct place. To work around this not being passed
24096 # down from config-ml.in -> top_srcdir/Makefile.am ->
24097 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
24098 trap '' 1 2 15
24099 cat > confcache <<\EOF
24100 # This file is a shell script that caches the results of configure
24101 # tests run on this system so they can be shared between configure
24102 # scripts and configure runs. It is not useful on other systems.
24103 # If it contains results you don't want to keep, you may remove or edit it.
24104 #
24105 # By default, configure uses ./config.cache as the cache file,
24106 # creating it if it does not exist already. You can give configure
24107 # the --cache-file=FILE option to use a different cache file; that is
24108 # what configure does when it calls configure scripts in
24109 # subdirectories, so they share the cache.
24110 # Giving --cache-file=/dev/null disables caching, for debugging configure.
24111 # config.status only pays attention to the cache file if you give it the
24112 # --recheck option to rerun configure.
24113 #
24114 EOF
24115 # The following way of writing the cache mishandles newlines in values,
24116 # but we know of no workaround that is simple, portable, and efficient.
24117 # So, don't put newlines in cache variables' values.
24118 # Ultrix sh set writes to stderr and can't be redirected directly,
24119 # and sets the high bit in the cache file unless we assign to the vars.
24120 (set) 2>&1 |
24121 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24122 *ac_space=\ *)
24123 # `set' does not quote correctly, so add quotes (double-quote substitution
24124 # turns \\\\ into \\, and sed turns \\ into \).
24125 sed -n \
24126 -e "s/'/'\\\\''/g" \
24127 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
24128 ;;
24129 *)
24130 # `set' quotes correctly as required by POSIX, so do not add quotes.
24131 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
24132 ;;
24133 esac >> confcache
24134 if cmp -s $cache_file confcache; then
24135 :
24136 else
24137 if test -w $cache_file; then
24138 echo "updating cache $cache_file"
24139 cat confcache > $cache_file
24140 else
24141 echo "not updating unwritable cache $cache_file"
24142 fi
24143 fi
24144 rm -f confcache
24145
24146 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
24147
24148 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24149 # Let make expand exec_prefix.
24150 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24151
24152 # Any assignment to VPATH causes Sun make to only execute
24153 # the first set of double-colon rules, so remove it if not needed.
24154 # If there is a colon in the path, we need to keep it.
24155 if test "x$srcdir" = x.; then
24156 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
24157 fi
24158
24159 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
24160
24161 DEFS=-DHAVE_CONFIG_H
24162
24163 # Without the "./", some shells look in PATH for config.status.
24164 : ${CONFIG_STATUS=./config.status}
24165
24166 echo creating $CONFIG_STATUS
24167 rm -f $CONFIG_STATUS
24168 cat > $CONFIG_STATUS <<EOF
24169 #! /bin/sh
24170 # Generated automatically by configure.
24171 # Run this file to recreate the current configuration.
24172 # This directory was configured as follows,
24173 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24174 #
24175 # $0 $ac_configure_args
24176 #
24177 # Compiler output produced by configure, useful for debugging
24178 # configure, is in ./config.log if it exists.
24179
24180 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
24181 for ac_option
24182 do
24183 case "\$ac_option" in
24184 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24185 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
24186 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
24187 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
24188 echo "$CONFIG_STATUS generated by autoconf version 2.13"
24189 exit 0 ;;
24190 -help | --help | --hel | --he | --h)
24191 echo "\$ac_cs_usage"; exit 0 ;;
24192 *) echo "\$ac_cs_usage"; exit 1 ;;
24193 esac
24194 done
24195
24196 ac_given_srcdir=$srcdir
24197 ac_given_INSTALL="$INSTALL"
24198
24199 trap 'rm -fr `echo "Makefile \
24200 include/Makefile src/Makefile \
24201 libmath/Makefile libio/Makefile libsupc++/Makefile \
24202 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24203 EOF
24204 cat >> $CONFIG_STATUS <<EOF
24205
24206 # Protect against being on the right side of a sed subst in config.status.
24207 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24208 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24209 $ac_vpsub
24210 $extrasub
24211 s%@SHELL@%$SHELL%g
24212 s%@CFLAGS@%$CFLAGS%g
24213 s%@CPPFLAGS@%$CPPFLAGS%g
24214 s%@CXXFLAGS@%$CXXFLAGS%g
24215 s%@FFLAGS@%$FFLAGS%g
24216 s%@DEFS@%$DEFS%g
24217 s%@LDFLAGS@%$LDFLAGS%g
24218 s%@LIBS@%$LIBS%g
24219 s%@exec_prefix@%$exec_prefix%g
24220 s%@prefix@%$prefix%g
24221 s%@program_transform_name@%$program_transform_name%g
24222 s%@bindir@%$bindir%g
24223 s%@sbindir@%$sbindir%g
24224 s%@libexecdir@%$libexecdir%g
24225 s%@datadir@%$datadir%g
24226 s%@sysconfdir@%$sysconfdir%g
24227 s%@sharedstatedir@%$sharedstatedir%g
24228 s%@localstatedir@%$localstatedir%g
24229 s%@libdir@%$libdir%g
24230 s%@includedir@%$includedir%g
24231 s%@oldincludedir@%$oldincludedir%g
24232 s%@infodir@%$infodir%g
24233 s%@mandir@%$mandir%g
24234 s%@PACKAGE@%$PACKAGE%g
24235 s%@libtool_VERSION@%$libtool_VERSION%g
24236 s%@toplevel_srcdir@%$toplevel_srcdir%g
24237 s%@host@%$host%g
24238 s%@host_alias@%$host_alias%g
24239 s%@host_cpu@%$host_cpu%g
24240 s%@host_vendor@%$host_vendor%g
24241 s%@host_os@%$host_os%g
24242 s%@target@%$target%g
24243 s%@target_alias@%$target_alias%g
24244 s%@target_cpu@%$target_cpu%g
24245 s%@target_vendor@%$target_vendor%g
24246 s%@target_os@%$target_os%g
24247 s%@build@%$build%g
24248 s%@build_alias@%$build_alias%g
24249 s%@build_cpu@%$build_cpu%g
24250 s%@build_vendor@%$build_vendor%g
24251 s%@build_os@%$build_os%g
24252 s%@glibcpp_builddir@%$glibcpp_builddir%g
24253 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
24254 s%@AWK@%$AWK%g
24255 s%@LN_S@%$LN_S%g
24256 s%@glibcpp_basedir@%$glibcpp_basedir%g
24257 s%@CC@%$CC%g
24258 s%@glibcpp_CXX@%$glibcpp_CXX%g
24259 s%@AS@%$AS%g
24260 s%@AR@%$AR%g
24261 s%@RANLIB@%$RANLIB%g
24262 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24263 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24264 s%@INSTALL_DATA@%$INSTALL_DATA%g
24265 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
24266 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
24267 s%@MAINT@%$MAINT%g
24268 s%@EXEEXT@%$EXEEXT%g
24269 s%@VERSION@%$VERSION%g
24270 s%@ACLOCAL@%$ACLOCAL%g
24271 s%@AUTOCONF@%$AUTOCONF%g
24272 s%@AUTOMAKE@%$AUTOMAKE%g
24273 s%@AUTOHEADER@%$AUTOHEADER%g
24274 s%@MAKEINFO@%$MAKEINFO%g
24275 s%@SET_MAKE@%$SET_MAKE%g
24276 s%@OBJEXT@%$OBJEXT%g
24277 s%@STRIP@%$STRIP%g
24278 s%@LIBTOOL@%$LIBTOOL%g
24279 s%@CXXCPP@%$CXXCPP%g
24280 s%@enable_shared@%$enable_shared%g
24281 s%@enable_static@%$enable_static%g
24282 s%@ifGNUmake@%$ifGNUmake%g
24283 s%@GLIBCPP_BUILD_PCH_TRUE@%$GLIBCPP_BUILD_PCH_TRUE%g
24284 s%@GLIBCPP_BUILD_PCH_FALSE@%$GLIBCPP_BUILD_PCH_FALSE%g
24285 s%@CPP@%$CPP%g
24286 s%@CSTDIO_H@%$CSTDIO_H%g
24287 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
24288 s%@BASIC_FILE_CC@%$BASIC_FILE_CC%g
24289 s%@CCODECVT_C@%$CCODECVT_C%g
24290 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
24291 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
24292 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
24293 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
24294 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
24295 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
24296 s%@libio_la@%$libio_la%g
24297 s%@check_msgfmt@%$check_msgfmt%g
24298 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
24299 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
24300 s%@glibcpp_localedir@%$glibcpp_localedir%g
24301 s%@USE_NLS@%$USE_NLS%g
24302 s%@CLOCALE_H@%$CLOCALE_H%g
24303 s%@CCODECVT_H@%$CCODECVT_H%g
24304 s%@CMESSAGES_H@%$CMESSAGES_H%g
24305 s%@CCODECVT_CC@%$CCODECVT_CC%g
24306 s%@CCOLLATE_CC@%$CCOLLATE_CC%g
24307 s%@CCTYPE_CC@%$CCTYPE_CC%g
24308 s%@CMESSAGES_CC@%$CMESSAGES_CC%g
24309 s%@CMONEY_CC@%$CMONEY_CC%g
24310 s%@CNUMERIC_CC@%$CNUMERIC_CC%g
24311 s%@CTIME_H@%$CTIME_H%g
24312 s%@CTIME_CC@%$CTIME_CC%g
24313 s%@CLOCALE_CC@%$CLOCALE_CC%g
24314 s%@CLOCALE_INTERNAL_H@%$CLOCALE_INTERNAL_H%g
24315 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
24316 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
24317 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
24318 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
24319 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
24320 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
24321 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
24322 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
24323 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
24324 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
24325 s%@GLIBCPP_BUILD_DEBUG_TRUE@%$GLIBCPP_BUILD_DEBUG_TRUE%g
24326 s%@GLIBCPP_BUILD_DEBUG_FALSE@%$GLIBCPP_BUILD_DEBUG_FALSE%g
24327 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
24328 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
24329 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
24330 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
24331 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
24332 s%@GLIBCPP_BUILD_LIBMATH_TRUE@%$GLIBCPP_BUILD_LIBMATH_TRUE%g
24333 s%@GLIBCPP_BUILD_LIBMATH_FALSE@%$GLIBCPP_BUILD_LIBMATH_FALSE%g
24334 s%@GLIBCPP_TEST_WCHAR_T_TRUE@%$GLIBCPP_TEST_WCHAR_T_TRUE%g
24335 s%@GLIBCPP_TEST_WCHAR_T_FALSE@%$GLIBCPP_TEST_WCHAR_T_FALSE%g
24336 s%@WERROR@%$WERROR%g
24337 s%@baseline_file@%$baseline_file%g
24338 s%@GLIBCPP_BUILD_ABI_CHECK_TRUE@%$GLIBCPP_BUILD_ABI_CHECK_TRUE%g
24339 s%@GLIBCPP_BUILD_ABI_CHECK_FALSE@%$GLIBCPP_BUILD_ABI_CHECK_FALSE%g
24340 s%@SYMVER_MAP@%$SYMVER_MAP%g
24341 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
24342 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
24343 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
24344 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
24345 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
24346 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
24347 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
24348 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
24349 s%@gxx_include_dir@%$gxx_include_dir%g
24350 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
24351 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
24352 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
24353 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
24354 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
24355 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
24356 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
24357 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
24358 s%@WARN_FLAGS@%$WARN_FLAGS%g
24359 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
24360
24361 CEOF
24362 EOF
24363
24364 cat >> $CONFIG_STATUS <<\EOF
24365
24366 # Split the substitutions into bite-sized pieces for seds with
24367 # small command number limits, like on Digital OSF/1 and HP-UX.
24368 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24369 ac_file=1 # Number of current file.
24370 ac_beg=1 # First line for current file.
24371 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24372 ac_more_lines=:
24373 ac_sed_cmds=""
24374 while $ac_more_lines; do
24375 if test $ac_beg -gt 1; then
24376 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24377 else
24378 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24379 fi
24380 if test ! -s conftest.s$ac_file; then
24381 ac_more_lines=false
24382 rm -f conftest.s$ac_file
24383 else
24384 if test -z "$ac_sed_cmds"; then
24385 ac_sed_cmds="sed -f conftest.s$ac_file"
24386 else
24387 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24388 fi
24389 ac_file=`expr $ac_file + 1`
24390 ac_beg=$ac_end
24391 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24392 fi
24393 done
24394 if test -z "$ac_sed_cmds"; then
24395 ac_sed_cmds=cat
24396 fi
24397 EOF
24398
24399 cat >> $CONFIG_STATUS <<EOF
24400
24401 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
24402 include/Makefile src/Makefile \
24403 libmath/Makefile libio/Makefile libsupc++/Makefile \
24404 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
24405 EOF
24406 cat >> $CONFIG_STATUS <<\EOF
24407 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24408 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24409 case "$ac_file" in
24410 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24411 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24412 *) ac_file_in="${ac_file}.in" ;;
24413 esac
24414
24415 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24416
24417 # Remove last slash and all that follows it. Not all systems have dirname.
24418 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24419 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24420 # The file is in a subdirectory.
24421 test ! -d "$ac_dir" && mkdir "$ac_dir"
24422 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24423 # A "../" for each directory in $ac_dir_suffix.
24424 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24425 else
24426 ac_dir_suffix= ac_dots=
24427 fi
24428
24429 case "$ac_given_srcdir" in
24430 .) srcdir=.
24431 if test -z "$ac_dots"; then top_srcdir=.
24432 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24433 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24434 *) # Relative path.
24435 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24436 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24437 esac
24438
24439 case "$ac_given_INSTALL" in
24440 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24441 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24442 esac
24443
24444 echo creating "$ac_file"
24445 rm -f "$ac_file"
24446 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24447 case "$ac_file" in
24448 *Makefile*) ac_comsub="1i\\
24449 # $configure_input" ;;
24450 *) ac_comsub= ;;
24451 esac
24452
24453 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24454 sed -e "$ac_comsub
24455 s%@configure_input@%$configure_input%g
24456 s%@srcdir@%$srcdir%g
24457 s%@top_srcdir@%$top_srcdir%g
24458 s%@INSTALL@%$INSTALL%g
24459 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24460 fi; done
24461 rm -f conftest.s*
24462
24463 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24464 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24465 #
24466 # ac_d sets the value in "#define NAME VALUE" lines.
24467 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24468 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24469 ac_dC='\3'
24470 ac_dD='%g'
24471 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24472 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24473 ac_uB='\([ ]\)%\1#\2define\3'
24474 ac_uC=' '
24475 ac_uD='\4%g'
24476 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24477 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24478 ac_eB='$%\1#\2define\3'
24479 ac_eC=' '
24480 ac_eD='%g'
24481
24482 if test "${CONFIG_HEADERS+set}" != set; then
24483 EOF
24484 cat >> $CONFIG_STATUS <<EOF
24485 CONFIG_HEADERS="config.h"
24486 EOF
24487 cat >> $CONFIG_STATUS <<\EOF
24488 fi
24489 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24490 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24491 case "$ac_file" in
24492 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24493 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24494 *) ac_file_in="${ac_file}.in" ;;
24495 esac
24496
24497 echo creating $ac_file
24498
24499 rm -f conftest.frag conftest.in conftest.out
24500 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24501 cat $ac_file_inputs > conftest.in
24502
24503 EOF
24504
24505 # Transform confdefs.h into a sed script conftest.vals that substitutes
24506 # the proper values into config.h.in to produce config.h. And first:
24507 # Protect against being on the right side of a sed subst in config.status.
24508 # Protect against being in an unquoted here document in config.status.
24509 rm -f conftest.vals
24510 cat > conftest.hdr <<\EOF
24511 s/[\\&%]/\\&/g
24512 s%[\\$`]%\\&%g
24513 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24514 s%ac_d%ac_u%gp
24515 s%ac_u%ac_e%gp
24516 EOF
24517 sed -n -f conftest.hdr confdefs.h > conftest.vals
24518 rm -f conftest.hdr
24519
24520 # This sed command replaces #undef with comments. This is necessary, for
24521 # example, in the case of _POSIX_SOURCE, which is predefined and required
24522 # on some systems where configure will not decide to define it.
24523 cat >> conftest.vals <<\EOF
24524 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24525 EOF
24526
24527 # Break up conftest.vals because some shells have a limit on
24528 # the size of here documents, and old seds have small limits too.
24529
24530 rm -f conftest.tail
24531 while :
24532 do
24533 ac_lines=`grep -c . conftest.vals`
24534 # grep -c gives empty output for an empty file on some AIX systems.
24535 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24536 # Write a limited-size here document to conftest.frag.
24537 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24538 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24539 echo 'CEOF
24540 sed -f conftest.frag conftest.in > conftest.out
24541 rm -f conftest.in
24542 mv conftest.out conftest.in
24543 ' >> $CONFIG_STATUS
24544 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24545 rm -f conftest.vals
24546 mv conftest.tail conftest.vals
24547 done
24548 rm -f conftest.vals
24549
24550 cat >> $CONFIG_STATUS <<\EOF
24551 rm -f conftest.frag conftest.h
24552 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24553 cat conftest.in >> conftest.h
24554 rm -f conftest.in
24555 if cmp -s $ac_file conftest.h 2>/dev/null; then
24556 echo "$ac_file is unchanged"
24557 rm -f conftest.h
24558 else
24559 # Remove last slash and all that follows it. Not all systems have dirname.
24560 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24561 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24562 # The file is in a subdirectory.
24563 test ! -d "$ac_dir" && mkdir "$ac_dir"
24564 fi
24565 rm -f $ac_file
24566 mv conftest.h $ac_file
24567 fi
24568 fi; done
24569
24570 EOF
24571 cat >> $CONFIG_STATUS <<EOF
24572
24573 srcdir=${srcdir}
24574 host=${host}
24575 target=${target}
24576 with_target_subdir=${with_target_subdir}
24577 with_build_subdir=${with_build_subdir}
24578 with_multisubdir=${with_multisubdir}
24579 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24580 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24581 glibcpp_basedir=${glibcpp_basedir}
24582 CC="${CC}"
24583 CXX="${CXX}"
24584 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
24585
24586 EOF
24587 cat >> $CONFIG_STATUS <<\EOF
24588 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24589 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24590 if test -n "$CONFIG_FILES"; then
24591 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
24592 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24593 # Ony modify Makefiles that are just being created.
24594 case " $CONFIG_FILES" in
24595 *" Makefile"*)
24596 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
24597 ;;
24598 esac
24599 case $CONFIG_FILES in
24600 *src/Makefile*)
24601 grep '^MULTISUBDIR =' Makefile >> src/Makefile
24602 ;;
24603 esac
24604 case $CONFIG_FILES in
24605 *libsupc++/Makefile*)
24606 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24607 ;;
24608 esac
24609 fi
24610 fi
24611 chmod +x mkcheck
24612 chmod +x testsuite_flags
24613 exit 0
24614 EOF
24615 chmod +x $CONFIG_STATUS
24616 rm -fr confdefs* $ac_clean_files
24617 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24618
24619
24620
24621 # Sanity checking & User-visible messages.
24622 # Checks down here, otherwise they get scrolled off before
24623 # the user will notice.
24624
24625 # Trying to get more people to read documentation. Possibly remove
24626 # check and warn all the time. There is no "informational" AC_MSG_
24627 # macro, so these are going to be printed even when --quiet/--silent
24628 # is given.
24629 if test ! -f stamp-sanity-warned; then
24630 touch stamp-sanity-warned
24631 echo ""
24632 echo "Please make certain that you read the installation information here:"
24633 echo " faster => ${srcdir}/docs/html/install.html"
24634 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24635 echo ""
24636 echo "and the configuration information here:"
24637 echo " faster => ${srcdir}/docs/html/configopts.html"
24638 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24639 echo ""
24640 echo "before proceeding with ${_cv_gnu_make_command}."
24641 echo ""
24642 fi