std_sstream.h (basic_istringstream): Adjust initialization.
[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 mawk gawk 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* | 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 #GLIBCPP_CHECK_COMPILER_VERSION
2696 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2697 echo "configure:2698: checking for GNU make" >&5
2698 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2699 echo $ac_n "(cached) $ac_c" 1>&6
2700 else
2701 _cv_gnu_make_command='' ;
2702 for a in "${MAKE-make}" make gmake gnumake ; do
2703 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2704 then
2705 _cv_gnu_make_command=$a ;
2706 break;
2707 fi
2708 done ;
2709
2710 fi
2711
2712 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2713 if test "x$_cv_gnu_make_command" != "x" ; then
2714 ifGNUmake='' ;
2715 else
2716 ifGNUmake='#' ;
2717 fi
2718
2719
2720
2721 # Enable all the variable C++ stuff. C_MBCHAR must come early.
2722 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2723 echo "configure:2724: checking how to run the C preprocessor" >&5
2724 # On Suns, sometimes $CPP names a directory.
2725 if test -n "$CPP" && test -d "$CPP"; then
2726 CPP=
2727 fi
2728 if test -z "$CPP"; then
2729 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2730 echo $ac_n "(cached) $ac_c" 1>&6
2731 else
2732 # This must be in double quotes, not single quotes, because CPP may get
2733 # substituted into the Makefile and "${CC-cc}" will confuse make.
2734 CPP="${CC-cc} -E"
2735 # On the NeXT, cc -E runs the code through the compiler's parser,
2736 # not just through cpp.
2737 cat > conftest.$ac_ext <<EOF
2738 #line 2739 "configure"
2739 #include "confdefs.h"
2740 #include <assert.h>
2741 Syntax Error
2742 EOF
2743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2744 { (eval echo configure:2745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2745 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2746 if test -z "$ac_err"; then
2747 :
2748 else
2749 echo "$ac_err" >&5
2750 echo "configure: failed program was:" >&5
2751 cat conftest.$ac_ext >&5
2752 rm -rf conftest*
2753 CPP="${CC-cc} -E -traditional-cpp"
2754 cat > conftest.$ac_ext <<EOF
2755 #line 2756 "configure"
2756 #include "confdefs.h"
2757 #include <assert.h>
2758 Syntax Error
2759 EOF
2760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2761 { (eval echo configure:2762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2763 if test -z "$ac_err"; then
2764 :
2765 else
2766 echo "$ac_err" >&5
2767 echo "configure: failed program was:" >&5
2768 cat conftest.$ac_ext >&5
2769 rm -rf conftest*
2770 CPP="${CC-cc} -nologo -E"
2771 cat > conftest.$ac_ext <<EOF
2772 #line 2773 "configure"
2773 #include "confdefs.h"
2774 #include <assert.h>
2775 Syntax Error
2776 EOF
2777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2778 { (eval echo configure:2779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2779 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2780 if test -z "$ac_err"; then
2781 :
2782 else
2783 echo "$ac_err" >&5
2784 echo "configure: failed program was:" >&5
2785 cat conftest.$ac_ext >&5
2786 rm -rf conftest*
2787 CPP=/lib/cpp
2788 fi
2789 rm -f conftest*
2790 fi
2791 rm -f conftest*
2792 fi
2793 rm -f conftest*
2794 ac_cv_prog_CPP="$CPP"
2795 fi
2796 CPP="$ac_cv_prog_CPP"
2797 else
2798 ac_cv_prog_CPP="$CPP"
2799 fi
2800 echo "$ac_t""$CPP" 1>&6
2801
2802
2803 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2804 echo "configure:2805: checking for cstdio to use" >&5
2805 # Check whether --enable-cstdio or --disable-cstdio was given.
2806 if test "${enable_cstdio+set}" = set; then
2807 enableval="$enable_cstdio"
2808 if test x$enable_cstdio = xno; then
2809 enable_cstdio=stdio
2810 fi
2811 else
2812 enable_cstdio=stdio
2813 fi
2814
2815
2816 enable_cstdio_flag=$enable_cstdio
2817
2818 case x${enable_cstdio_flag} in
2819 xlibio)
2820 CSTDIO_H=config/io/c_io_libio.h
2821 BASIC_FILE_H=config/io/basic_file_libio.h
2822 BASIC_FILE_CC=config/io/basic_file_libio.cc
2823 echo "$ac_t""libio" 1>&6
2824
2825 # see if we are on a system with libio native (ie, linux)
2826 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2827 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2828 echo "configure:2829: checking for libio.h" >&5
2829 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2830 echo $ac_n "(cached) $ac_c" 1>&6
2831 else
2832 cat > conftest.$ac_ext <<EOF
2833 #line 2834 "configure"
2834 #include "confdefs.h"
2835 #include <libio.h>
2836 EOF
2837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2838 { (eval echo configure:2839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2840 if test -z "$ac_err"; then
2841 rm -rf conftest*
2842 eval "ac_cv_header_$ac_safe=yes"
2843 else
2844 echo "$ac_err" >&5
2845 echo "configure: failed program was:" >&5
2846 cat conftest.$ac_ext >&5
2847 rm -rf conftest*
2848 eval "ac_cv_header_$ac_safe=no"
2849 fi
2850 rm -f conftest*
2851 fi
2852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2853 echo "$ac_t""yes" 1>&6
2854 has_libio=yes
2855 else
2856 echo "$ac_t""no" 1>&6
2857 has_libio=no
2858 fi
2859
2860
2861 # Need to check and see what version of glibc is being used. If
2862 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2863 # compile most of libio for linux systems.
2864 if test x$has_libio = x"yes"; then
2865 case "$target" in
2866 *-*-linux*)
2867 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2868 echo "configure:2869: checking for glibc version >= 2.2" >&5
2869 cat > conftest.$ac_ext <<EOF
2870 #line 2871 "configure"
2871 #include "confdefs.h"
2872
2873 #include <features.h>
2874 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2875 ok
2876 #endif
2877
2878 EOF
2879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2880 egrep "ok" >/dev/null 2>&1; then
2881 rm -rf conftest*
2882 glibc_satisfactory=yes
2883 else
2884 rm -rf conftest*
2885 glibc_satisfactory=no
2886 fi
2887 rm -f conftest*
2888
2889 echo "$ac_t""$glibc_satisfactory" 1>&6
2890 ;;
2891 esac
2892
2893 # XXX at the moment, admit defeat and force the recompilation
2894 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2895 glibc_satisfactory=no
2896
2897 if test x$glibc_satisfactory = x"yes"; then
2898 need_libio=no
2899 need_wlibio=no
2900 else
2901 need_libio=yes
2902 # bkoz XXX need to add checks to enable this
2903 # pme XXX here's a first pass at such a check
2904 if test x$enable_c_mbchar != xno; then
2905 need_wlibio=yes
2906 else
2907 need_wlibio=no
2908 fi
2909 fi
2910
2911 else
2912 # Using libio, but <libio.h> doesn't exist on the target system. . .
2913 need_libio=yes
2914 # bkoz XXX need to add checks to enable this
2915 # pme XXX here's a first pass at such a check
2916 if test x$enable_c_mbchar != xno; then
2917 need_wlibio=yes
2918 else
2919 need_wlibio=no
2920 fi
2921 fi
2922 ;;
2923 xstdio | x | xno | xnone | xyes)
2924 # default
2925 CSTDIO_H=config/io/c_io_stdio.h
2926 BASIC_FILE_H=config/io/basic_file_stdio.h
2927 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2928 echo "$ac_t""stdio" 1>&6
2929
2930 # We're not using stdio.
2931 need_libio=no
2932 need_wlibio=no
2933 ;;
2934 *)
2935 echo "$enable_cstdio is an unknown io package" 1>&2
2936 exit 1
2937 ;;
2938 esac
2939
2940
2941
2942
2943 # 2000-08-04 bkoz hack
2944 CCODECVT_C=config/io/c_io_libio_codecvt.c
2945
2946 # 2000-08-04 bkoz hack
2947
2948
2949
2950 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2951 GLIBCPP_BUILD_LIBIO_TRUE=
2952 GLIBCPP_BUILD_LIBIO_FALSE='#'
2953 else
2954 GLIBCPP_BUILD_LIBIO_TRUE='#'
2955 GLIBCPP_BUILD_LIBIO_FALSE=
2956 fi
2957
2958
2959 if test "$need_libio" = yes; then
2960 GLIBCPP_NEED_LIBIO_TRUE=
2961 GLIBCPP_NEED_LIBIO_FALSE='#'
2962 else
2963 GLIBCPP_NEED_LIBIO_TRUE='#'
2964 GLIBCPP_NEED_LIBIO_FALSE=
2965 fi
2966
2967
2968 if test "$need_wlibio" = yes; then
2969 GLIBCPP_NEED_WLIBIO_TRUE=
2970 GLIBCPP_NEED_WLIBIO_FALSE='#'
2971 else
2972 GLIBCPP_NEED_WLIBIO_TRUE='#'
2973 GLIBCPP_NEED_WLIBIO_FALSE=
2974 fi
2975 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2976 libio_la=../libio/libio.la
2977 else
2978 libio_la=
2979 fi
2980
2981
2982
2983 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2984 echo "configure:2985: checking for clocale to use" >&5
2985 # Check whether --enable-clocale or --disable-clocale was given.
2986 if test "${enable_clocale+set}" = set; then
2987 enableval="$enable_clocale"
2988 if test x$enable_clocale = xno; then
2989 enable_clocale=no
2990 fi
2991 else
2992 enable_clocale=no
2993 fi
2994
2995
2996 enable_clocale_flag=$enable_clocale
2997
2998 if test x$enable_clocale_flag = xno; then
2999 case x${target_os} in
3000 xlinux* | xgnu*)
3001 cat > conftest.$ac_ext <<EOF
3002 #line 3003 "configure"
3003 #include "confdefs.h"
3004
3005 #include <features.h>
3006 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
3007 _GLIBCPP_ok
3008 #endif
3009
3010 EOF
3011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3012 egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3013 rm -rf conftest*
3014 enable_clocale_flag=gnu
3015 else
3016 rm -rf conftest*
3017 enable_clocale_flag=generic
3018 fi
3019 rm -f conftest*
3020
3021
3022 # Test for bugs early in glibc-2.2.x series
3023 if test x$enable_clocale_flag = xgnu; then
3024 if test "$cross_compiling" = yes; then
3025 enable_clocale_flag=generic
3026 else
3027 cat > conftest.$ac_ext <<EOF
3028 #line 3029 "configure"
3029 #include "confdefs.h"
3030
3031 #define _GNU_SOURCE 1
3032 #include <locale.h>
3033 #include <string.h>
3034 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
3035 extern __typeof(newlocale) __newlocale;
3036 extern __typeof(duplocale) __duplocale;
3037 extern __typeof(strcoll_l) __strcoll_l;
3038 #endif
3039 int main()
3040 {
3041 const char __one[] = "Äuglein Augmen";
3042 const char __two[] = "Äuglein";
3043 int i;
3044 int j;
3045 __locale_t loc;
3046 __locale_t loc_dup;
3047 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3048 loc_dup = __duplocale(loc);
3049 i = __strcoll_l(__one, __two, loc);
3050 j = __strcoll_l(__one, __two, loc_dup);
3051 return 0;
3052 }
3053
3054 EOF
3055 if { (eval echo configure:3056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3056 then
3057 enable_clocale_flag=gnu
3058 else
3059 echo "configure: failed program was:" >&5
3060 cat conftest.$ac_ext >&5
3061 rm -fr conftest*
3062 enable_clocale_flag=generic
3063 fi
3064 rm -fr conftest*
3065 fi
3066
3067 fi
3068
3069 # ... at some point put __strxfrm_l tests in as well.
3070 ;;
3071 *)
3072 enable_clocale_flag=generic
3073 ;;
3074 esac
3075 fi
3076
3077 # Check whether --enable-nls or --disable-nls was given.
3078 if test "${enable_nls+set}" = set; then
3079 enableval="$enable_nls"
3080 :
3081 else
3082 enable_nls=yes
3083 fi
3084
3085 USE_NLS=no
3086
3087 case x${enable_clocale_flag} in
3088 xgeneric)
3089 echo "$ac_t""generic" 1>&6
3090
3091 CLOCALE_H=config/locale/generic/c_locale.h
3092 CLOCALE_CC=config/locale/generic/c_locale.cc
3093 CCODECVT_H=config/locale/generic/codecvt_specializations.h
3094 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3095 CCOLLATE_CC=config/locale/generic/collate_members.cc
3096 CCTYPE_CC=config/locale/generic/ctype_members.cc
3097 CMESSAGES_H=config/locale/generic/messages_members.h
3098 CMESSAGES_CC=config/locale/generic/messages_members.cc
3099 CMONEY_CC=config/locale/generic/monetary_members.cc
3100 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3101 CTIME_H=config/locale/generic/time_members.h
3102 CTIME_CC=config/locale/generic/time_members.cc
3103 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3104 ;;
3105 xgnu)
3106 echo "$ac_t""gnu" 1>&6
3107
3108 # Declare intention to use gettext, and add support for specific
3109 # languages.
3110 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3111 ALL_LINGUAS="de fr"
3112
3113 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3114 # Extract the first word of "msgfmt", so it can be a program name with args.
3115 set dummy msgfmt; ac_word=$2
3116 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3117 echo "configure:3118: checking for $ac_word" >&5
3118 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3119 echo $ac_n "(cached) $ac_c" 1>&6
3120 else
3121 if test -n "$check_msgfmt"; then
3122 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3123 else
3124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3125 ac_dummy="$PATH"
3126 for ac_dir in $ac_dummy; do
3127 test -z "$ac_dir" && ac_dir=.
3128 if test -f $ac_dir/$ac_word; then
3129 ac_cv_prog_check_msgfmt="yes"
3130 break
3131 fi
3132 done
3133 IFS="$ac_save_ifs"
3134 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3135 fi
3136 fi
3137 check_msgfmt="$ac_cv_prog_check_msgfmt"
3138 if test -n "$check_msgfmt"; then
3139 echo "$ac_t""$check_msgfmt" 1>&6
3140 else
3141 echo "$ac_t""no" 1>&6
3142 fi
3143
3144 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3145 USE_NLS=yes
3146 fi
3147 # Export the build objects.
3148 for ling in $ALL_LINGUAS; do \
3149 glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3150 glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3151 done
3152
3153
3154
3155 CLOCALE_H=config/locale/gnu/c_locale.h
3156 CLOCALE_CC=config/locale/gnu/c_locale.cc
3157 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3158 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3159 CCOLLATE_CC=config/locale/gnu/collate_members.cc
3160 CCTYPE_CC=config/locale/gnu/ctype_members.cc
3161 CMESSAGES_H=config/locale/gnu/messages_members.h
3162 CMESSAGES_CC=config/locale/gnu/messages_members.cc
3163 CMONEY_CC=config/locale/gnu/monetary_members.cc
3164 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3165 CTIME_H=config/locale/gnu/time_members.h
3166 CTIME_CC=config/locale/gnu/time_members.cc
3167 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3168 ;;
3169 xieee_1003.1-2001)
3170 echo "$ac_t""generic" 1>&6
3171
3172 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3173 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3174 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3175 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3176 CCOLLATE_CC=config/locale/generic/collate_members.cc
3177 CCTYPE_CC=config/locale/generic/ctype_members.cc
3178 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3179 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3180 CMONEY_CC=config/locale/generic/monetary_members.cc
3181 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3182 CTIME_H=config/locale/generic/time_members.h
3183 CTIME_CC=config/locale/generic/time_members.cc
3184 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3185 ;;
3186 *)
3187 echo "$enable_clocale is an unknown locale package" 1>&2
3188 exit 1
3189 ;;
3190 esac
3191
3192 # This is where the testsuite looks for locale catalogs, using the
3193 # -DLOCALEDIR define during testsuite compilation.
3194 glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3213 echo "configure:3214: checking for c header strategy to use" >&5
3214 # Check whether --enable-cheaders or --disable-cheaders was given.
3215 if test "${enable_cheaders+set}" = set; then
3216 enableval="$enable_cheaders"
3217
3218 case "$enableval" in
3219 c)
3220 enable_cheaders=c
3221 ;;
3222 c_std)
3223 enable_cheaders=c_std
3224 ;;
3225 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3226 ;;
3227 esac
3228 else
3229 enable_cheaders=c_std
3230 fi
3231
3232 echo "$ac_t""$enable_cheaders" 1>&6
3233
3234 case "$enable_cheaders" in
3235 c_std)
3236 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3237 ;;
3238 c)
3239 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3240 ;;
3241 esac
3242
3243
3244
3245
3246 if test "$enable_cheaders" = c; then
3247 GLIBCPP_C_HEADERS_C_TRUE=
3248 GLIBCPP_C_HEADERS_C_FALSE='#'
3249 else
3250 GLIBCPP_C_HEADERS_C_TRUE='#'
3251 GLIBCPP_C_HEADERS_C_FALSE=
3252 fi
3253
3254
3255 if test "$enable_cheaders" = c_std; then
3256 GLIBCPP_C_HEADERS_C_STD_TRUE=
3257 GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3258 else
3259 GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3260 GLIBCPP_C_HEADERS_C_STD_FALSE=
3261 fi
3262
3263
3264 if test "$c_compatibility" = yes; then
3265 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3266 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3267 else
3268 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3269 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3270 fi
3271
3272 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3273 if test "${enable_c_mbchar+set}" = set; then
3274 enableval="$enable_c_mbchar"
3275 case "$enableval" in
3276 yes) enable_c_mbchar=yes ;;
3277 no) enable_c_mbchar=no ;;
3278 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3279 esac
3280 else
3281 enable_c_mbchar=yes
3282 fi
3283
3284
3285 # Check whether --enable-c99 or --disable-c99 was given.
3286 if test "${enable_c99+set}" = set; then
3287 enableval="$enable_c99"
3288 case "$enableval" in
3289 yes) enable_c99=yes ;;
3290 no) enable_c99=no ;;
3291 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3292 esac
3293 else
3294 enable_c99=yes
3295 fi
3296
3297
3298 ac_ext=C
3299 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3300 ac_cpp='$CXXCPP $CPPFLAGS'
3301 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3302 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3303 cross_compiling=$ac_cv_prog_cxx_cross
3304
3305
3306 # Check for the existence of <math.h> functions used if C99 is enabled.
3307 ac_c99_math=yes;
3308 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3309 echo "configure:3310: checking for ISO C99 support in <math.h>" >&5
3310 cat > conftest.$ac_ext <<EOF
3311 #line 3312 "configure"
3312 #include "confdefs.h"
3313 #include <math.h>
3314 int main() {
3315 fpclassify(0.0);
3316 ; return 0; }
3317 EOF
3318 if { (eval echo configure:3319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3319 :
3320 else
3321 echo "configure: failed program was:" >&5
3322 cat conftest.$ac_ext >&5
3323 rm -rf conftest*
3324 ac_c99_math=no
3325 fi
3326 rm -f conftest*
3327 cat > conftest.$ac_ext <<EOF
3328 #line 3329 "configure"
3329 #include "confdefs.h"
3330 #include <math.h>
3331 int main() {
3332 isfinite(0.0);
3333 ; return 0; }
3334 EOF
3335 if { (eval echo configure:3336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3336 :
3337 else
3338 echo "configure: failed program was:" >&5
3339 cat conftest.$ac_ext >&5
3340 rm -rf conftest*
3341 ac_c99_math=no
3342 fi
3343 rm -f conftest*
3344 cat > conftest.$ac_ext <<EOF
3345 #line 3346 "configure"
3346 #include "confdefs.h"
3347 #include <math.h>
3348 int main() {
3349 isinf(0.0);
3350 ; return 0; }
3351 EOF
3352 if { (eval echo configure:3353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3353 :
3354 else
3355 echo "configure: failed program was:" >&5
3356 cat conftest.$ac_ext >&5
3357 rm -rf conftest*
3358 ac_c99_math=no
3359 fi
3360 rm -f conftest*
3361 cat > conftest.$ac_ext <<EOF
3362 #line 3363 "configure"
3363 #include "confdefs.h"
3364 #include <math.h>
3365 int main() {
3366 isnan(0.0);
3367 ; return 0; }
3368 EOF
3369 if { (eval echo configure:3370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3370 :
3371 else
3372 echo "configure: failed program was:" >&5
3373 cat conftest.$ac_ext >&5
3374 rm -rf conftest*
3375 ac_c99_math=no
3376 fi
3377 rm -f conftest*
3378 cat > conftest.$ac_ext <<EOF
3379 #line 3380 "configure"
3380 #include "confdefs.h"
3381 #include <math.h>
3382 int main() {
3383 isnormal(0.0);
3384 ; return 0; }
3385 EOF
3386 if { (eval echo configure:3387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3387 :
3388 else
3389 echo "configure: failed program was:" >&5
3390 cat conftest.$ac_ext >&5
3391 rm -rf conftest*
3392 ac_c99_math=no
3393 fi
3394 rm -f conftest*
3395 cat > conftest.$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3398 #include <math.h>
3399 int main() {
3400 signbit(0.0);
3401 ; return 0; }
3402 EOF
3403 if { (eval echo configure:3404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3404 :
3405 else
3406 echo "configure: failed program was:" >&5
3407 cat conftest.$ac_ext >&5
3408 rm -rf conftest*
3409 ac_c99_math=no
3410 fi
3411 rm -f conftest*
3412 cat > conftest.$ac_ext <<EOF
3413 #line 3414 "configure"
3414 #include "confdefs.h"
3415 #include <math.h>
3416 int main() {
3417 isgreater(0.0,0.0);
3418 ; return 0; }
3419 EOF
3420 if { (eval echo configure:3421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3421 :
3422 else
3423 echo "configure: failed program was:" >&5
3424 cat conftest.$ac_ext >&5
3425 rm -rf conftest*
3426 ac_c99_math=no
3427 fi
3428 rm -f conftest*
3429 cat > conftest.$ac_ext <<EOF
3430 #line 3431 "configure"
3431 #include "confdefs.h"
3432 #include <math.h>
3433 int main() {
3434 isgreaterequal(0.0,0.0);
3435 ; return 0; }
3436 EOF
3437 if { (eval echo configure:3438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3438 :
3439 else
3440 echo "configure: failed program was:" >&5
3441 cat conftest.$ac_ext >&5
3442 rm -rf conftest*
3443 ac_c99_math=no
3444 fi
3445 rm -f conftest*
3446 cat > conftest.$ac_ext <<EOF
3447 #line 3448 "configure"
3448 #include "confdefs.h"
3449 #include <math.h>
3450 int main() {
3451 isless(0.0,0.0);
3452 ; return 0; }
3453 EOF
3454 if { (eval echo configure:3455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3455 :
3456 else
3457 echo "configure: failed program was:" >&5
3458 cat conftest.$ac_ext >&5
3459 rm -rf conftest*
3460 ac_c99_math=no
3461 fi
3462 rm -f conftest*
3463 cat > conftest.$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3466 #include <math.h>
3467 int main() {
3468 islessequal(0.0,0.0);
3469 ; return 0; }
3470 EOF
3471 if { (eval echo configure:3472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3472 :
3473 else
3474 echo "configure: failed program was:" >&5
3475 cat conftest.$ac_ext >&5
3476 rm -rf conftest*
3477 ac_c99_math=no
3478 fi
3479 rm -f conftest*
3480 cat > conftest.$ac_ext <<EOF
3481 #line 3482 "configure"
3482 #include "confdefs.h"
3483 #include <math.h>
3484 int main() {
3485 islessgreater(0.0,0.0);
3486 ; return 0; }
3487 EOF
3488 if { (eval echo configure:3489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3489 :
3490 else
3491 echo "configure: failed program was:" >&5
3492 cat conftest.$ac_ext >&5
3493 rm -rf conftest*
3494 ac_c99_math=no
3495 fi
3496 rm -f conftest*
3497 cat > conftest.$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3500 #include <math.h>
3501 int main() {
3502 isunordered(0.0,0.0);
3503 ; return 0; }
3504 EOF
3505 if { (eval echo configure:3506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3506 :
3507 else
3508 echo "configure: failed program was:" >&5
3509 cat conftest.$ac_ext >&5
3510 rm -rf conftest*
3511 ac_c99_math=no
3512 fi
3513 rm -f conftest*
3514 echo "$ac_t""$ac_c99_math" 1>&6
3515
3516 # Check for the existence in <stdio.h> of vscanf, et. al.
3517 ac_c99_stdio=yes;
3518 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3519 echo "configure:3520: checking for ISO C99 support in <stdio.h>" >&5
3520 cat > conftest.$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3523 #include <stdio.h>
3524 int main() {
3525 snprintf("12", 0, "%i");
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_stdio=no
3535 fi
3536 rm -f conftest*
3537 cat > conftest.$ac_ext <<EOF
3538 #line 3539 "configure"
3539 #include "confdefs.h"
3540 #include <stdio.h>
3541 #include <stdarg.h>
3542 void foo(char* fmt, ...)
3543 {va_list args; va_start(args, fmt);
3544 vfscanf(stderr, "%i", args);}
3545 int main() {
3546
3547 ; return 0; }
3548 EOF
3549 if { (eval echo configure:3550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3550 :
3551 else
3552 echo "configure: failed program was:" >&5
3553 cat conftest.$ac_ext >&5
3554 rm -rf conftest*
3555 ac_c99_stdio=no
3556 fi
3557 rm -f conftest*
3558 cat > conftest.$ac_ext <<EOF
3559 #line 3560 "configure"
3560 #include "confdefs.h"
3561 #include <stdio.h>
3562 #include <stdarg.h>
3563 void foo(char* fmt, ...)
3564 {va_list args; va_start(args, fmt);
3565 vscanf("%i", args);}
3566 int main() {
3567
3568 ; return 0; }
3569 EOF
3570 if { (eval echo configure:3571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3571 :
3572 else
3573 echo "configure: failed program was:" >&5
3574 cat conftest.$ac_ext >&5
3575 rm -rf conftest*
3576 ac_c99_stdio=no
3577 fi
3578 rm -f conftest*
3579 cat > conftest.$ac_ext <<EOF
3580 #line 3581 "configure"
3581 #include "confdefs.h"
3582 #include <stdio.h>
3583 #include <stdarg.h>
3584 void foo(char* fmt, ...)
3585 {va_list args; va_start(args, fmt);
3586 vsnprintf(fmt, 0, "%i", args);}
3587 int main() {
3588
3589 ; return 0; }
3590 EOF
3591 if { (eval echo configure:3592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3592 :
3593 else
3594 echo "configure: failed program was:" >&5
3595 cat conftest.$ac_ext >&5
3596 rm -rf conftest*
3597 ac_c99_stdio=no
3598 fi
3599 rm -f conftest*
3600 cat > conftest.$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3603 #include <stdio.h>
3604 #include <stdarg.h>
3605 void foo(char* fmt, ...)
3606 {va_list args; va_start(args, fmt);
3607 vsscanf(fmt, "%i", args);}
3608 int main() {
3609
3610 ; return 0; }
3611 EOF
3612 if { (eval echo configure:3613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3613 :
3614 else
3615 echo "configure: failed program was:" >&5
3616 cat conftest.$ac_ext >&5
3617 rm -rf conftest*
3618 ac_c99_stdio=no
3619 fi
3620 rm -f conftest*
3621 echo "$ac_t""$ac_c99_stdio" 1>&6
3622
3623 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3624 ac_c99_stdlib=yes;
3625 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3626 echo "configure:3627: checking for lldiv_t declaration" >&5
3627 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3629 else
3630
3631 cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 #include <stdlib.h>
3635 int main() {
3636 lldiv_t mydivt;
3637 ; return 0; }
3638 EOF
3639 if { (eval echo configure:3640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3640 rm -rf conftest*
3641 ac_c99_lldiv_t=yes
3642 else
3643 echo "configure: failed program was:" >&5
3644 cat conftest.$ac_ext >&5
3645 rm -rf conftest*
3646 ac_c99_lldiv_t=no
3647 fi
3648 rm -f conftest*
3649
3650 fi
3651
3652 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3653
3654 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3655 echo "configure:3656: checking for ISO C99 support in <stdlib.h>" >&5
3656 cat > conftest.$ac_ext <<EOF
3657 #line 3658 "configure"
3658 #include "confdefs.h"
3659 #include <stdlib.h>
3660 int main() {
3661 char* tmp; strtof("gnu", &tmp);
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_stdlib=no
3671 fi
3672 rm -f conftest*
3673 cat > conftest.$ac_ext <<EOF
3674 #line 3675 "configure"
3675 #include "confdefs.h"
3676 #include <stdlib.h>
3677 int main() {
3678 char* tmp; strtold("gnu", &tmp);
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_stdlib=no
3688 fi
3689 rm -f conftest*
3690 cat > conftest.$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3693 #include <stdlib.h>
3694 int main() {
3695 llabs(10);
3696 ; return 0; }
3697 EOF
3698 if { (eval echo configure:3699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3699 :
3700 else
3701 echo "configure: failed program was:" >&5
3702 cat conftest.$ac_ext >&5
3703 rm -rf conftest*
3704 ac_c99_stdlib=no
3705 fi
3706 rm -f conftest*
3707 cat > conftest.$ac_ext <<EOF
3708 #line 3709 "configure"
3709 #include "confdefs.h"
3710 #include <stdlib.h>
3711 int main() {
3712 lldiv(10,1);
3713 ; return 0; }
3714 EOF
3715 if { (eval echo configure:3716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3716 :
3717 else
3718 echo "configure: failed program was:" >&5
3719 cat conftest.$ac_ext >&5
3720 rm -rf conftest*
3721 ac_c99_stdlib=no
3722 fi
3723 rm -f conftest*
3724 cat > conftest.$ac_ext <<EOF
3725 #line 3726 "configure"
3726 #include "confdefs.h"
3727 #include <stdlib.h>
3728 int main() {
3729 atoll("10");
3730 ; return 0; }
3731 EOF
3732 if { (eval echo configure:3733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3733 :
3734 else
3735 echo "configure: failed program was:" >&5
3736 cat conftest.$ac_ext >&5
3737 rm -rf conftest*
3738 ac_c99_stdlib=no
3739 fi
3740 rm -f conftest*
3741 cat > conftest.$ac_ext <<EOF
3742 #line 3743 "configure"
3743 #include "confdefs.h"
3744 #include <stdlib.h>
3745 int main() {
3746 _Exit(0);
3747 ; return 0; }
3748 EOF
3749 if { (eval echo configure:3750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3750 :
3751 else
3752 echo "configure: failed program was:" >&5
3753 cat conftest.$ac_ext >&5
3754 rm -rf conftest*
3755 ac_c99_stdlib=no
3756 fi
3757 rm -f conftest*
3758 if test x"$ac_c99_lldiv_t" = x"no"; then
3759 ac_c99_stdlib=no;
3760 fi;
3761 echo "$ac_t""$ac_c99_stdlib" 1>&6
3762
3763 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3764 # XXX the wchar.h checks should be rolled into the general C99 bits.
3765 ac_c99_wchar=yes;
3766 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3767 echo "configure:3768: checking for additional ISO C99 support in <wchar.h>" >&5
3768 cat > conftest.$ac_ext <<EOF
3769 #line 3770 "configure"
3770 #include "confdefs.h"
3771 #include <wchar.h>
3772 int main() {
3773 wcstold(L"10.0", NULL);
3774 ; return 0; }
3775 EOF
3776 if { (eval echo configure:3777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3777 :
3778 else
3779 echo "configure: failed program was:" >&5
3780 cat conftest.$ac_ext >&5
3781 rm -rf conftest*
3782 ac_c99_wchar=no
3783 fi
3784 rm -f conftest*
3785 cat > conftest.$ac_ext <<EOF
3786 #line 3787 "configure"
3787 #include "confdefs.h"
3788 #include <wchar.h>
3789 int main() {
3790 wcstoll(L"10", NULL, 10);
3791 ; return 0; }
3792 EOF
3793 if { (eval echo configure:3794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3794 :
3795 else
3796 echo "configure: failed program was:" >&5
3797 cat conftest.$ac_ext >&5
3798 rm -rf conftest*
3799 ac_c99_wchar=no
3800 fi
3801 rm -f conftest*
3802 cat > conftest.$ac_ext <<EOF
3803 #line 3804 "configure"
3804 #include "confdefs.h"
3805 #include <wchar.h>
3806 int main() {
3807 wcstoull(L"10", NULL, 10);
3808 ; return 0; }
3809 EOF
3810 if { (eval echo configure:3811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3811 :
3812 else
3813 echo "configure: failed program was:" >&5
3814 cat conftest.$ac_ext >&5
3815 rm -rf conftest*
3816 ac_c99_wchar=no
3817 fi
3818 rm -f conftest*
3819 echo "$ac_t""$ac_c99_wchar" 1>&6
3820
3821 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3822 echo "configure:3823: checking for enabled ISO C99 support" >&5
3823 if test x"$ac_c99_math" = x"no" ||
3824 test x"$ac_c99_stdio" = x"no" ||
3825 test x"$ac_c99_stdlib" = x"no" ||
3826 test x"$ac_c99_wchar" = x"no"; then
3827 enable_c99=no;
3828 fi;
3829 echo "$ac_t""$enable_c99" 1>&6
3830
3831 # Option parsed, now set things appropriately
3832 if test x"$enable_c99" = x"yes"; then
3833 cat >> confdefs.h <<\EOF
3834 #define _GLIBCPP_USE_C99 1
3835 EOF
3836
3837 fi
3838
3839 ac_ext=c
3840 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3841 ac_cpp='$CPP $CPPFLAGS'
3842 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3843 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3844 cross_compiling=$ac_cv_prog_cc_cross
3845
3846
3847
3848 # Check whether --enable-long-long or --disable-long-long was given.
3849 if test "${enable_long_long+set}" = set; then
3850 enableval="$enable_long_long"
3851 case "$enableval" in
3852 yes) enable_long_long=yes ;;
3853 no) enable_long_long=no ;;
3854 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3855 esac
3856 else
3857 enable_long_long=yes
3858 fi
3859
3860
3861 ac_ext=C
3862 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3863 ac_cpp='$CXXCPP $CPPFLAGS'
3864 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3865 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3866 cross_compiling=$ac_cv_prog_cxx_cross
3867
3868
3869 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3870 echo "configure:3871: checking for enabled long long I/O support" >&5
3871 # iostreams require strtoll, strtoull to compile
3872 cat > conftest.$ac_ext <<EOF
3873 #line 3874 "configure"
3874 #include "confdefs.h"
3875 #include <stdlib.h>
3876 int main() {
3877 char* tmp; strtoll("gnu", &tmp, 10);
3878 ; return 0; }
3879 EOF
3880 if { (eval echo configure:3881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3881 :
3882 else
3883 echo "configure: failed program was:" >&5
3884 cat conftest.$ac_ext >&5
3885 rm -rf conftest*
3886 enable_long_long=no
3887 fi
3888 rm -f conftest*
3889 cat > conftest.$ac_ext <<EOF
3890 #line 3891 "configure"
3891 #include "confdefs.h"
3892 #include <stdlib.h>
3893 int main() {
3894 char* tmp; strtoull("gnu", &tmp, 10);
3895 ; return 0; }
3896 EOF
3897 if { (eval echo configure:3898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3898 :
3899 else
3900 echo "configure: failed program was:" >&5
3901 cat conftest.$ac_ext >&5
3902 rm -rf conftest*
3903 enable_long_long=no
3904 fi
3905 rm -f conftest*
3906
3907 # Option parsed, now set things appropriately
3908 if test x"$enable_long_long" = xyes; then
3909 cat >> confdefs.h <<\EOF
3910 #define _GLIBCPP_USE_LONG_LONG 1
3911 EOF
3912
3913 fi
3914 echo "$ac_t""$enable_long_long" 1>&6
3915
3916 ac_ext=c
3917 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3918 ac_cpp='$CPP $CPPFLAGS'
3919 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3920 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3921 cross_compiling=$ac_cv_prog_cc_cross
3922
3923
3924
3925 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3926 echo "configure:3927: checking for thread model used by GCC" >&5
3927 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3928 echo "$ac_t""$target_thread_file" 1>&6
3929
3930 if test $target_thread_file != single; then
3931 cat >> confdefs.h <<\EOF
3932 #define HAVE_GTHR_DEFAULT 1
3933 EOF
3934
3935 cat >> confdefs.h <<\EOF
3936 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3937 EOF
3938
3939 fi
3940
3941 glibcpp_thread_h=gthr-$target_thread_file.h
3942
3943
3944
3945 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3946 echo "configure:3947: checking for exception model to use" >&5
3947
3948 ac_ext=C
3949 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3950 ac_cpp='$CXXCPP $CPPFLAGS'
3951 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3952 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3953 cross_compiling=$ac_cv_prog_cxx_cross
3954
3955 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3956 if test "${enable_sjlj_exceptions+set}" = set; then
3957 enableval="$enable_sjlj_exceptions"
3958 :
3959 else
3960 cat > conftest.$ac_ext << EOF
3961 #line 3962 "configure"
3962 struct S { ~S(); };
3963 void bar();
3964 void foo()
3965 {
3966 S s;
3967 bar();
3968 }
3969 EOF
3970 old_CXXFLAGS="$CXXFLAGS"
3971 CXXFLAGS=-S
3972 if { (eval echo configure:3973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3973 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3974 enable_sjlj_exceptions=yes
3975 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3976 enable_sjlj_exceptions=no
3977 fi
3978 fi
3979 CXXFLAGS="$old_CXXFLAGS"
3980 rm -f conftest*
3981 fi
3982
3983 if test x$enable_sjlj_exceptions = xyes; then
3984 cat >> confdefs.h <<\EOF
3985 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3986 EOF
3987
3988 ac_exception_model_name=sjlj
3989 elif test x$enable_sjlj_exceptions = xno; then
3990 ac_exception_model_name="call frame"
3991 else
3992 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3993 fi
3994 ac_ext=c
3995 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3996 ac_cpp='$CPP $CPPFLAGS'
3997 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3998 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3999 cross_compiling=$ac_cv_prog_cc_cross
4000
4001 echo "$ac_t""$ac_exception_model_name" 1>&6
4002
4003
4004 echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4005 echo "configure:4006: checking for use of libunwind" >&5
4006 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4007 if test "${enable_libunwind_exceptions+set}" = set; then
4008 enableval="$enable_libunwind_exceptions"
4009 use_libunwind_exceptions=$enableval
4010 else
4011 use_libunwind_exceptions=no
4012 fi
4013
4014 echo "$ac_t""$use_libunwind_exceptions" 1>&6
4015 if test x"$use_libunwind_exceptions" = xyes; then
4016 LIBUNWIND_FLAG="-lunwind"
4017 else
4018 LIBUNWIND_FLAG=""
4019 fi
4020
4021
4022 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4023 if test "${enable_concept_checks+set}" = set; then
4024 enableval="$enable_concept_checks"
4025 case "$enableval" in
4026 yes) enable_concept_checks=yes ;;
4027 no) enable_concept_checks=no ;;
4028 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4029 esac
4030 else
4031 enable_concept_checks=no
4032 fi
4033 if test x"$enable_concept_checks" = xyes; then
4034 cat >> confdefs.h <<\EOF
4035 #define _GLIBCPP_CONCEPT_CHECKS 1
4036 EOF
4037
4038 fi
4039
4040 echo $ac_n "checking for extra compiler flags for building""... $ac_c" 1>&6
4041 echo "configure:4042: checking for extra compiler flags for building" >&5
4042 # Check whether --enable-cxx_flags or --disable-cxx_flags was given.
4043 if test "${enable_cxx_flags+set}" = set; then
4044 enableval="$enable_cxx_flags"
4045 case "x$enable_cxx_flags" in
4046 xyes)
4047 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
4048 xno | xnone | x)
4049 enable_cxx_flags='' ;;
4050 *)
4051 enable_cxx_flags="$enableval" ;;
4052 esac
4053 else
4054 enable_cxx_flags=
4055 fi
4056
4057
4058 if test -n "$enable_cxx_flags"; then
4059 for f in $enable_cxx_flags; do
4060 case "$f" in
4061 -fhonor-std) ;;
4062 -*) ;;
4063 *) # and we're trying to pass /what/ exactly?
4064 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
4065 esac
4066 done
4067 fi
4068 EXTRA_CXX_FLAGS="$enable_cxx_flags"
4069 echo "$ac_t""$EXTRA_CXX_FLAGS" 1>&6
4070
4071
4072 # Check whether --enable-debug or --disable-debug was given.
4073 if test "${enable_debug+set}" = set; then
4074 enableval="$enable_debug"
4075 case "${enableval}" in
4076 yes) enable_debug=yes ;;
4077 no) enable_debug=no ;;
4078 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
4079 esac
4080 else
4081 enable_debug=no
4082 fi
4083 echo $ac_n "checking for additional debug build""... $ac_c" 1>&6
4084 echo "configure:4085: checking for additional debug build" >&5
4085 echo "$ac_t""$enable_debug" 1>&6
4086
4087
4088 if test "$enable_debug" = yes; then
4089 GLIBCPP_BUILD_DEBUG_TRUE=
4090 GLIBCPP_BUILD_DEBUG_FALSE='#'
4091 else
4092 GLIBCPP_BUILD_DEBUG_TRUE='#'
4093 GLIBCPP_BUILD_DEBUG_FALSE=
4094 fi
4095
4096 # Check whether --enable-debug_flags or --disable-debug_flags was given.
4097 if test "${enable_debug_flags+set}" = set; then
4098 enableval="$enable_debug_flags"
4099 case "${enableval}" in
4100 none) ;;
4101 -*) enable_debug_flags="${enableval}" ;;
4102 *) { echo "configure: error: Unknown argument to extra debugging flags" 1>&2; exit 1; } ;;
4103 esac
4104 else
4105 enable_debug_flags=none
4106 fi
4107
4108 case x"$enable_debug" in
4109 xyes)
4110 case "$enable_debug_flags" in
4111 none)
4112 DEBUG_FLAGS="-g3 -O0";;
4113 -*) #valid input
4114 DEBUG_FLAGS="${enableval}"
4115 esac
4116 ;;
4117 xno)
4118 DEBUG_FLAGS=""
4119 ;;
4120 esac
4121
4122
4123 echo $ac_n "checking for debug build flags""... $ac_c" 1>&6
4124 echo "configure:4125: checking for debug build flags" >&5
4125 echo "$ac_t""$DEBUG_FLAGS" 1>&6
4126
4127
4128 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4129 for ac_hdr in string.h stdlib.h
4130 do
4131 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4132 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4133 echo "configure:4134: checking for $ac_hdr" >&5
4134 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4136 else
4137 cat > conftest.$ac_ext <<EOF
4138 #line 4139 "configure"
4139 #include "confdefs.h"
4140 #include <$ac_hdr>
4141 EOF
4142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4143 { (eval echo configure:4144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4145 if test -z "$ac_err"; then
4146 rm -rf conftest*
4147 eval "ac_cv_header_$ac_safe=yes"
4148 else
4149 echo "$ac_err" >&5
4150 echo "configure: failed program was:" >&5
4151 cat conftest.$ac_ext >&5
4152 rm -rf conftest*
4153 eval "ac_cv_header_$ac_safe=no"
4154 fi
4155 rm -f conftest*
4156 fi
4157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4158 echo "$ac_t""yes" 1>&6
4159 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4160 cat >> confdefs.h <<EOF
4161 #define $ac_tr_hdr 1
4162 EOF
4163
4164 else
4165 echo "$ac_t""no" 1>&6
4166 fi
4167 done
4168
4169
4170 # No surprises, no surprises...
4171 if test $ATOMICITYH = cpu/generic ; then
4172 echo "configure: warning: No native atomic operations are provided yet for this platform." 1>&2
4173 if test $target_thread_file = single; then
4174 echo "configure: warning: They cannot be faked when thread support is disabled." 1>&2
4175 echo "configure: warning: Thread-safety of certain classes is not guaranteed." 1>&2
4176 else
4177 echo "configure: warning: They will be faked using a mutex." 1>&2
4178 echo "configure: warning: Performance of certain classes will degrade as a result." 1>&2
4179 fi
4180 fi
4181
4182
4183 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4184
4185 # We are being configured with some form of cross compiler.
4186 GLIBCPP_IS_CROSS_COMPILING=1
4187
4188 # This lets us hard-code the functionality we know we'll have in the cross
4189 # target environment. "Let" is a sugar-coated word placed on an especially
4190 # dull and tedious hack, actually.
4191 #
4192 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4193 # that involve linking, can't be used:
4194 # "cannot open sim-crt0.o"
4195 # "cannot open crt0.o"
4196 # etc. All this is because there currently exists no unified, consistent
4197 # way for top level CC information to be passed down to target directories:
4198 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4199 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4200 # crosses can be removed.
4201
4202 # If Canadian cross, then don't pick up tools from the build directory.
4203 # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4204 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4205 CANADIAN=yes
4206 else
4207 CANADIAN=no
4208 fi
4209
4210 # Construct crosses by hand, eliminating bits that need ld...
4211 # GLIBCPP_CHECK_COMPILER_FEATURES
4212 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4213 # GLIBCPP_CHECK_MATH_SUPPORT
4214
4215 case "$target" in
4216 *-linux*)
4217 os_include_dir="os/gnu-linux"
4218 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4219 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4220 fp.h locale.h float.h inttypes.h
4221 do
4222 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4223 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4224 echo "configure:4225: checking for $ac_hdr" >&5
4225 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4227 else
4228 cat > conftest.$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4231 #include <$ac_hdr>
4232 EOF
4233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4234 { (eval echo configure:4235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4236 if test -z "$ac_err"; then
4237 rm -rf conftest*
4238 eval "ac_cv_header_$ac_safe=yes"
4239 else
4240 echo "$ac_err" >&5
4241 echo "configure: failed program was:" >&5
4242 cat conftest.$ac_ext >&5
4243 rm -rf conftest*
4244 eval "ac_cv_header_$ac_safe=no"
4245 fi
4246 rm -f conftest*
4247 fi
4248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4249 echo "$ac_t""yes" 1>&6
4250 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4251 cat >> confdefs.h <<EOF
4252 #define $ac_tr_hdr 1
4253 EOF
4254
4255 else
4256 echo "$ac_t""no" 1>&6
4257 fi
4258 done
4259
4260 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4261
4262
4263 # If we're not using GNU ld, then there's no point in even trying these
4264 # tests. Check for that first. We should have already tested for gld
4265 # by now (in libtool), but require it now just to be safe...
4266 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4267 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4268
4269
4270 # The name set by libtool depends on the version of libtool. Shame on us
4271 # for depending on an impl detail, but c'est la vie. Older versions used
4272 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4273 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4274 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
4275 # set (hence we're using an older libtool), then set it.
4276 if test x${with_gnu_ld+set} != xset; then
4277 if test x${ac_cv_prog_gnu_ld+set} != xset; then
4278 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
4279 with_gnu_ld=no
4280 else
4281 with_gnu_ld=$ac_cv_prog_gnu_ld
4282 fi
4283 fi
4284
4285 # Start by getting the version number. I think the libtool test already
4286 # does some of this, but throws away the result.
4287
4288 ldver=`$LD --version 2>/dev/null | head -1 | \
4289 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4290
4291 glibcpp_gnu_ld_version=`echo $ldver | \
4292 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4293
4294 # Set --gc-sections.
4295 if test "$with_gnu_ld" = "notbroken"; then
4296 # GNU ld it is! Joy and bunny rabbits!
4297
4298 # All these tests are for C++; save the language and the compiler flags.
4299 # Need to do this so that g++ won't try to link in libstdc++
4300 ac_test_CFLAGS="${CFLAGS+set}"
4301 ac_save_CFLAGS="$CFLAGS"
4302 CFLAGS='-x c++ -Wl,--gc-sections'
4303
4304 # Check for -Wl,--gc-sections
4305 # XXX This test is broken at the moment, as symbols required for
4306 # linking are now in libsupc++ (not built yet.....). In addition,
4307 # this test has cored on solaris in the past. In addition,
4308 # --gc-sections doesn't really work at the moment (keeps on discarding
4309 # used sections, first .eh_frame and now some of the glibc sections for
4310 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4311 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4312 echo "configure:4313: checking for ld that supports -Wl,--gc-sections" >&5
4313 if test "$cross_compiling" = yes; then
4314 ac_sectionLDflags=yes
4315 else
4316 cat > conftest.$ac_ext <<EOF
4317 #line 4318 "configure"
4318 #include "confdefs.h"
4319
4320 int main(void)
4321 {
4322 try { throw 1; }
4323 catch (...) { };
4324 return 0;
4325 }
4326
4327 EOF
4328 if { (eval echo configure:4329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4329 then
4330 ac_sectionLDflags=yes
4331 else
4332 echo "configure: failed program was:" >&5
4333 cat conftest.$ac_ext >&5
4334 rm -fr conftest*
4335 ac_sectionLDflags=no
4336 fi
4337 rm -fr conftest*
4338 fi
4339
4340 if test "$ac_test_CFLAGS" = set; then
4341 CFLAGS="$ac_save_CFLAGS"
4342 else
4343 # this is the suspicious part
4344 CFLAGS=''
4345 fi
4346 if test "$ac_sectionLDflags" = "yes"; then
4347 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4348 fi
4349 echo "$ac_t""$ac_sectionLDflags" 1>&6
4350 fi
4351
4352 # Set linker optimization flags.
4353 if test x"$with_gnu_ld" = x"yes"; then
4354 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4355 fi
4356
4357
4358
4359
4360
4361 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4362 echo "configure:4363: checking for main in -lm" >&5
4363 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4364 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4365 echo $ac_n "(cached) $ac_c" 1>&6
4366 else
4367 ac_save_LIBS="$LIBS"
4368 LIBS="-lm $LIBS"
4369 cat > conftest.$ac_ext <<EOF
4370 #line 4371 "configure"
4371 #include "confdefs.h"
4372
4373 int main() {
4374 main()
4375 ; return 0; }
4376 EOF
4377 if { (eval echo configure:4378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4378 rm -rf conftest*
4379 eval "ac_cv_lib_$ac_lib_var=yes"
4380 else
4381 echo "configure: failed program was:" >&5
4382 cat conftest.$ac_ext >&5
4383 rm -rf conftest*
4384 eval "ac_cv_lib_$ac_lib_var=no"
4385 fi
4386 rm -f conftest*
4387 LIBS="$ac_save_LIBS"
4388
4389 fi
4390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4391 echo "$ac_t""yes" 1>&6
4392 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4393 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4394 cat >> confdefs.h <<EOF
4395 #define $ac_tr_lib 1
4396 EOF
4397
4398 LIBS="-lm $LIBS"
4399
4400 else
4401 echo "$ac_t""no" 1>&6
4402 fi
4403
4404 for ac_func in nan copysignf
4405 do
4406 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4407 echo "configure:4408: checking for $ac_func" >&5
4408 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4409 echo $ac_n "(cached) $ac_c" 1>&6
4410 else
4411 cat > conftest.$ac_ext <<EOF
4412 #line 4413 "configure"
4413 #include "confdefs.h"
4414 /* System header to define __stub macros and hopefully few prototypes,
4415 which can conflict with char $ac_func(); below. */
4416 #include <assert.h>
4417 /* Override any gcc2 internal prototype to avoid an error. */
4418 /* We use char because int might match the return type of a gcc2
4419 builtin and then its argument prototype would still apply. */
4420 char $ac_func();
4421
4422 int main() {
4423
4424 /* The GNU C library defines this for functions which it implements
4425 to always fail with ENOSYS. Some functions are actually named
4426 something starting with __ and the normal name is an alias. */
4427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4428 choke me
4429 #else
4430 $ac_func();
4431 #endif
4432
4433 ; return 0; }
4434 EOF
4435 if { (eval echo configure:4436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4436 rm -rf conftest*
4437 eval "ac_cv_func_$ac_func=yes"
4438 else
4439 echo "configure: failed program was:" >&5
4440 cat conftest.$ac_ext >&5
4441 rm -rf conftest*
4442 eval "ac_cv_func_$ac_func=no"
4443 fi
4444 rm -f conftest*
4445 fi
4446
4447 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4448 echo "$ac_t""yes" 1>&6
4449 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4450 cat >> confdefs.h <<EOF
4451 #define $ac_tr_func 1
4452 EOF
4453
4454 else
4455 echo "$ac_t""no" 1>&6
4456 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4457 fi
4458 done
4459
4460
4461 for ac_func in __signbit
4462 do
4463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4464 echo "configure:4465: checking for $ac_func" >&5
4465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4466 echo $ac_n "(cached) $ac_c" 1>&6
4467 else
4468 cat > conftest.$ac_ext <<EOF
4469 #line 4470 "configure"
4470 #include "confdefs.h"
4471 /* System header to define __stub macros and hopefully few prototypes,
4472 which can conflict with char $ac_func(); below. */
4473 #include <assert.h>
4474 /* Override any gcc2 internal prototype to avoid an error. */
4475 /* We use char because int might match the return type of a gcc2
4476 builtin and then its argument prototype would still apply. */
4477 char $ac_func();
4478
4479 int main() {
4480
4481 /* The GNU C library defines this for functions which it implements
4482 to always fail with ENOSYS. Some functions are actually named
4483 something starting with __ and the normal name is an alias. */
4484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4485 choke me
4486 #else
4487 $ac_func();
4488 #endif
4489
4490 ; return 0; }
4491 EOF
4492 if { (eval echo configure:4493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4493 rm -rf conftest*
4494 eval "ac_cv_func_$ac_func=yes"
4495 else
4496 echo "configure: failed program was:" >&5
4497 cat conftest.$ac_ext >&5
4498 rm -rf conftest*
4499 eval "ac_cv_func_$ac_func=no"
4500 fi
4501 rm -f conftest*
4502 fi
4503
4504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4505 echo "$ac_t""yes" 1>&6
4506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4507 cat >> confdefs.h <<EOF
4508 #define $ac_tr_func 1
4509 EOF
4510
4511 else
4512 echo "$ac_t""no" 1>&6
4513 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4514 fi
4515 done
4516
4517 for ac_func in __signbitf
4518 do
4519 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4520 echo "configure:4521: checking for $ac_func" >&5
4521 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4522 echo $ac_n "(cached) $ac_c" 1>&6
4523 else
4524 cat > conftest.$ac_ext <<EOF
4525 #line 4526 "configure"
4526 #include "confdefs.h"
4527 /* System header to define __stub macros and hopefully few prototypes,
4528 which can conflict with char $ac_func(); below. */
4529 #include <assert.h>
4530 /* Override any gcc2 internal prototype to avoid an error. */
4531 /* We use char because int might match the return type of a gcc2
4532 builtin and then its argument prototype would still apply. */
4533 char $ac_func();
4534
4535 int main() {
4536
4537 /* The GNU C library defines this for functions which it implements
4538 to always fail with ENOSYS. Some functions are actually named
4539 something starting with __ and the normal name is an alias. */
4540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4541 choke me
4542 #else
4543 $ac_func();
4544 #endif
4545
4546 ; return 0; }
4547 EOF
4548 if { (eval echo configure:4549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4549 rm -rf conftest*
4550 eval "ac_cv_func_$ac_func=yes"
4551 else
4552 echo "configure: failed program was:" >&5
4553 cat conftest.$ac_ext >&5
4554 rm -rf conftest*
4555 eval "ac_cv_func_$ac_func=no"
4556 fi
4557 rm -f conftest*
4558 fi
4559
4560 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4561 echo "$ac_t""yes" 1>&6
4562 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4563 cat >> confdefs.h <<EOF
4564 #define $ac_tr_func 1
4565 EOF
4566
4567 else
4568 echo "$ac_t""no" 1>&6
4569 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4570 fi
4571 done
4572
4573
4574 if test x$ac_cv_func_copysignl = x"yes"; then
4575 for ac_func in __signbitl
4576 do
4577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4578 echo "configure:4579: checking for $ac_func" >&5
4579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4580 echo $ac_n "(cached) $ac_c" 1>&6
4581 else
4582 cat > conftest.$ac_ext <<EOF
4583 #line 4584 "configure"
4584 #include "confdefs.h"
4585 /* System header to define __stub macros and hopefully few prototypes,
4586 which can conflict with char $ac_func(); below. */
4587 #include <assert.h>
4588 /* Override any gcc2 internal prototype to avoid an error. */
4589 /* We use char because int might match the return type of a gcc2
4590 builtin and then its argument prototype would still apply. */
4591 char $ac_func();
4592
4593 int main() {
4594
4595 /* The GNU C library defines this for functions which it implements
4596 to always fail with ENOSYS. Some functions are actually named
4597 something starting with __ and the normal name is an alias. */
4598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4599 choke me
4600 #else
4601 $ac_func();
4602 #endif
4603
4604 ; return 0; }
4605 EOF
4606 if { (eval echo configure:4607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4607 rm -rf conftest*
4608 eval "ac_cv_func_$ac_func=yes"
4609 else
4610 echo "configure: failed program was:" >&5
4611 cat conftest.$ac_ext >&5
4612 rm -rf conftest*
4613 eval "ac_cv_func_$ac_func=no"
4614 fi
4615 rm -f conftest*
4616 fi
4617
4618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4619 echo "$ac_t""yes" 1>&6
4620 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4621 cat >> confdefs.h <<EOF
4622 #define $ac_tr_func 1
4623 EOF
4624
4625 else
4626 echo "$ac_t""no" 1>&6
4627 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4628 fi
4629 done
4630
4631 fi
4632
4633 if test -n "$LIBMATHOBJS"; then
4634 need_libmath=yes
4635 fi
4636
4637
4638
4639 if test "$need_libmath" = yes; then
4640 GLIBCPP_BUILD_LIBMATH_TRUE=
4641 GLIBCPP_BUILD_LIBMATH_FALSE='#'
4642 else
4643 GLIBCPP_BUILD_LIBMATH_TRUE='#'
4644 GLIBCPP_BUILD_LIBMATH_FALSE=
4645 fi
4646
4647
4648 enable_wchar_t=no
4649
4650 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4651 echo "configure:4652: checking for mbstate_t" >&5
4652 cat > conftest.$ac_ext <<EOF
4653 #line 4654 "configure"
4654 #include "confdefs.h"
4655 #include <wchar.h>
4656 int main() {
4657 mbstate_t teststate;
4658 ; return 0; }
4659 EOF
4660 if { (eval echo configure:4661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4661 rm -rf conftest*
4662 have_mbstate_t=yes
4663 else
4664 echo "configure: failed program was:" >&5
4665 cat conftest.$ac_ext >&5
4666 rm -rf conftest*
4667 have_mbstate_t=no
4668 fi
4669 rm -f conftest*
4670 echo "$ac_t""$have_mbstate_t" 1>&6
4671 if test x"$have_mbstate_t" = xyes; then
4672 cat >> confdefs.h <<\EOF
4673 #define HAVE_MBSTATE_T 1
4674 EOF
4675
4676 fi
4677
4678 for ac_hdr in wchar.h
4679 do
4680 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4681 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4682 echo "configure:4683: checking for $ac_hdr" >&5
4683 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4684 echo $ac_n "(cached) $ac_c" 1>&6
4685 else
4686 cat > conftest.$ac_ext <<EOF
4687 #line 4688 "configure"
4688 #include "confdefs.h"
4689 #include <$ac_hdr>
4690 EOF
4691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4692 { (eval echo configure:4693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4693 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4694 if test -z "$ac_err"; then
4695 rm -rf conftest*
4696 eval "ac_cv_header_$ac_safe=yes"
4697 else
4698 echo "$ac_err" >&5
4699 echo "configure: failed program was:" >&5
4700 cat conftest.$ac_ext >&5
4701 rm -rf conftest*
4702 eval "ac_cv_header_$ac_safe=no"
4703 fi
4704 rm -f conftest*
4705 fi
4706 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4707 echo "$ac_t""yes" 1>&6
4708 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4709 cat >> confdefs.h <<EOF
4710 #define $ac_tr_hdr 1
4711 EOF
4712 ac_has_wchar_h=yes
4713 else
4714 echo "$ac_t""no" 1>&6
4715 ac_has_wchar_h=no
4716 fi
4717 done
4718
4719 for ac_hdr in wctype.h
4720 do
4721 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4722 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4723 echo "configure:4724: checking for $ac_hdr" >&5
4724 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4725 echo $ac_n "(cached) $ac_c" 1>&6
4726 else
4727 cat > conftest.$ac_ext <<EOF
4728 #line 4729 "configure"
4729 #include "confdefs.h"
4730 #include <$ac_hdr>
4731 EOF
4732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4733 { (eval echo configure:4734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4735 if test -z "$ac_err"; then
4736 rm -rf conftest*
4737 eval "ac_cv_header_$ac_safe=yes"
4738 else
4739 echo "$ac_err" >&5
4740 echo "configure: failed program was:" >&5
4741 cat conftest.$ac_ext >&5
4742 rm -rf conftest*
4743 eval "ac_cv_header_$ac_safe=no"
4744 fi
4745 rm -f conftest*
4746 fi
4747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4748 echo "$ac_t""yes" 1>&6
4749 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4750 cat >> confdefs.h <<EOF
4751 #define $ac_tr_hdr 1
4752 EOF
4753 ac_has_wctype_h=yes
4754 else
4755 echo "$ac_t""no" 1>&6
4756 ac_has_wctype_h=no
4757 fi
4758 done
4759
4760
4761 if test x"$ac_has_wchar_h" = xyes &&
4762 test x"$ac_has_wctype_h" = xyes &&
4763 test x"$enable_c_mbchar" != xno; then
4764
4765 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4766 echo "configure:4767: checking for WCHAR_MIN and WCHAR_MAX" >&5
4767 cat > conftest.$ac_ext <<EOF
4768 #line 4769 "configure"
4769 #include "confdefs.h"
4770 #include <wchar.h>
4771 int main() {
4772 int i = WCHAR_MIN; int j = WCHAR_MAX;
4773 ; return 0; }
4774 EOF
4775 if { (eval echo configure:4776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4776 rm -rf conftest*
4777 has_wchar_minmax=yes
4778 else
4779 echo "configure: failed program was:" >&5
4780 cat conftest.$ac_ext >&5
4781 rm -rf conftest*
4782 has_wchar_minmax=no
4783 fi
4784 rm -f conftest*
4785 echo "$ac_t""$has_wchar_minmax" 1>&6
4786
4787 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4788 echo "configure:4789: checking for WEOF" >&5
4789 cat > conftest.$ac_ext <<EOF
4790 #line 4791 "configure"
4791 #include "confdefs.h"
4792
4793 #include <wchar.h>
4794 #include <stddef.h>
4795 int main() {
4796 wint_t i = WEOF;
4797 ; return 0; }
4798 EOF
4799 if { (eval echo configure:4800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4800 rm -rf conftest*
4801 has_weof=yes
4802 else
4803 echo "configure: failed program was:" >&5
4804 cat conftest.$ac_ext >&5
4805 rm -rf conftest*
4806 has_weof=no
4807 fi
4808 rm -f conftest*
4809 echo "$ac_t""$has_weof" 1>&6
4810
4811 ac_wfuncs=yes
4812 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4813 do
4814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4815 echo "configure:4816: checking for $ac_func" >&5
4816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4817 echo $ac_n "(cached) $ac_c" 1>&6
4818 else
4819 cat > conftest.$ac_ext <<EOF
4820 #line 4821 "configure"
4821 #include "confdefs.h"
4822 /* System header to define __stub macros and hopefully few prototypes,
4823 which can conflict with char $ac_func(); below. */
4824 #include <assert.h>
4825 /* Override any gcc2 internal prototype to avoid an error. */
4826 /* We use char because int might match the return type of a gcc2
4827 builtin and then its argument prototype would still apply. */
4828 char $ac_func();
4829
4830 int main() {
4831
4832 /* The GNU C library defines this for functions which it implements
4833 to always fail with ENOSYS. Some functions are actually named
4834 something starting with __ and the normal name is an alias. */
4835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4836 choke me
4837 #else
4838 $ac_func();
4839 #endif
4840
4841 ; return 0; }
4842 EOF
4843 if { (eval echo configure:4844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4844 rm -rf conftest*
4845 eval "ac_cv_func_$ac_func=yes"
4846 else
4847 echo "configure: failed program was:" >&5
4848 cat conftest.$ac_ext >&5
4849 rm -rf conftest*
4850 eval "ac_cv_func_$ac_func=no"
4851 fi
4852 rm -f conftest*
4853 fi
4854
4855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4856 echo "$ac_t""yes" 1>&6
4857 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4858 cat >> confdefs.h <<EOF
4859 #define $ac_tr_func 1
4860 EOF
4861
4862 else
4863 echo "$ac_t""no" 1>&6
4864 \
4865 ac_wfuncs=no
4866 fi
4867 done
4868
4869
4870 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
4871 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4872 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4873 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4874 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4875 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4876 do
4877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4878 echo "configure:4879: checking for $ac_func" >&5
4879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4880 echo $ac_n "(cached) $ac_c" 1>&6
4881 else
4882 cat > conftest.$ac_ext <<EOF
4883 #line 4884 "configure"
4884 #include "confdefs.h"
4885 /* System header to define __stub macros and hopefully few prototypes,
4886 which can conflict with char $ac_func(); below. */
4887 #include <assert.h>
4888 /* Override any gcc2 internal prototype to avoid an error. */
4889 /* We use char because int might match the return type of a gcc2
4890 builtin and then its argument prototype would still apply. */
4891 char $ac_func();
4892
4893 int main() {
4894
4895 /* The GNU C library defines this for functions which it implements
4896 to always fail with ENOSYS. Some functions are actually named
4897 something starting with __ and the normal name is an alias. */
4898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4899 choke me
4900 #else
4901 $ac_func();
4902 #endif
4903
4904 ; return 0; }
4905 EOF
4906 if { (eval echo configure:4907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4907 rm -rf conftest*
4908 eval "ac_cv_func_$ac_func=yes"
4909 else
4910 echo "configure: failed program was:" >&5
4911 cat conftest.$ac_ext >&5
4912 rm -rf conftest*
4913 eval "ac_cv_func_$ac_func=no"
4914 fi
4915 rm -f conftest*
4916 fi
4917
4918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4919 echo "$ac_t""yes" 1>&6
4920 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4921 cat >> confdefs.h <<EOF
4922 #define $ac_tr_func 1
4923 EOF
4924
4925 else
4926 echo "$ac_t""no" 1>&6
4927 \
4928 ac_wfuncs=no
4929 fi
4930 done
4931
4932
4933 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4934 echo "configure:4935: checking for ISO C99 wchar_t support" >&5
4935 if test x"$has_weof" = xyes &&
4936 test x"$has_wchar_minmax" = xyes &&
4937 test x"$ac_wfuncs" = xyes; then
4938 ac_isoC99_wchar_t=yes
4939 else
4940 ac_isoC99_wchar_t=no
4941 fi
4942 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4943
4944 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4945 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4946 echo "configure:4947: checking for iconv.h" >&5
4947 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4948 echo $ac_n "(cached) $ac_c" 1>&6
4949 else
4950 cat > conftest.$ac_ext <<EOF
4951 #line 4952 "configure"
4952 #include "confdefs.h"
4953 #include <iconv.h>
4954 EOF
4955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4956 { (eval echo configure:4957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4958 if test -z "$ac_err"; then
4959 rm -rf conftest*
4960 eval "ac_cv_header_$ac_safe=yes"
4961 else
4962 echo "$ac_err" >&5
4963 echo "configure: failed program was:" >&5
4964 cat conftest.$ac_ext >&5
4965 rm -rf conftest*
4966 eval "ac_cv_header_$ac_safe=no"
4967 fi
4968 rm -f conftest*
4969 fi
4970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4971 echo "$ac_t""yes" 1>&6
4972 ac_has_iconv_h=yes
4973 else
4974 echo "$ac_t""no" 1>&6
4975 ac_has_iconv_h=no
4976 fi
4977
4978 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4979 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4980 echo "configure:4981: checking for langinfo.h" >&5
4981 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4982 echo $ac_n "(cached) $ac_c" 1>&6
4983 else
4984 cat > conftest.$ac_ext <<EOF
4985 #line 4986 "configure"
4986 #include "confdefs.h"
4987 #include <langinfo.h>
4988 EOF
4989 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4990 { (eval echo configure:4991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4991 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4992 if test -z "$ac_err"; then
4993 rm -rf conftest*
4994 eval "ac_cv_header_$ac_safe=yes"
4995 else
4996 echo "$ac_err" >&5
4997 echo "configure: failed program was:" >&5
4998 cat conftest.$ac_ext >&5
4999 rm -rf conftest*
5000 eval "ac_cv_header_$ac_safe=no"
5001 fi
5002 rm -f conftest*
5003 fi
5004 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5005 echo "$ac_t""yes" 1>&6
5006 ac_has_langinfo_h=yes
5007 else
5008 echo "$ac_t""no" 1>&6
5009 ac_has_langinfo_h=no
5010 fi
5011
5012
5013 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5014 echo "configure:5015: checking for iconv in -liconv" >&5
5015 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5017 echo $ac_n "(cached) $ac_c" 1>&6
5018 else
5019 ac_save_LIBS="$LIBS"
5020 LIBS="-liconv $LIBS"
5021 cat > conftest.$ac_ext <<EOF
5022 #line 5023 "configure"
5023 #include "confdefs.h"
5024 /* Override any gcc2 internal prototype to avoid an error. */
5025 /* We use char because int might match the return type of a gcc2
5026 builtin and then its argument prototype would still apply. */
5027 char iconv();
5028
5029 int main() {
5030 iconv()
5031 ; return 0; }
5032 EOF
5033 if { (eval echo configure:5034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5034 rm -rf conftest*
5035 eval "ac_cv_lib_$ac_lib_var=yes"
5036 else
5037 echo "configure: failed program was:" >&5
5038 cat conftest.$ac_ext >&5
5039 rm -rf conftest*
5040 eval "ac_cv_lib_$ac_lib_var=no"
5041 fi
5042 rm -f conftest*
5043 LIBS="$ac_save_LIBS"
5044
5045 fi
5046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5047 echo "$ac_t""yes" 1>&6
5048 libiconv="-liconv"
5049 else
5050 echo "$ac_t""no" 1>&6
5051 fi
5052
5053 ac_save_LIBS="$LIBS"
5054 LIBS="$LIBS $libiconv"
5055
5056 for ac_func in iconv_open iconv_close iconv nl_langinfo
5057 do
5058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5059 echo "configure:5060: checking for $ac_func" >&5
5060 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5061 echo $ac_n "(cached) $ac_c" 1>&6
5062 else
5063 cat > conftest.$ac_ext <<EOF
5064 #line 5065 "configure"
5065 #include "confdefs.h"
5066 /* System header to define __stub macros and hopefully few prototypes,
5067 which can conflict with char $ac_func(); below. */
5068 #include <assert.h>
5069 /* Override any gcc2 internal prototype to avoid an error. */
5070 /* We use char because int might match the return type of a gcc2
5071 builtin and then its argument prototype would still apply. */
5072 char $ac_func();
5073
5074 int main() {
5075
5076 /* The GNU C library defines this for functions which it implements
5077 to always fail with ENOSYS. Some functions are actually named
5078 something starting with __ and the normal name is an alias. */
5079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5080 choke me
5081 #else
5082 $ac_func();
5083 #endif
5084
5085 ; return 0; }
5086 EOF
5087 if { (eval echo configure:5088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5088 rm -rf conftest*
5089 eval "ac_cv_func_$ac_func=yes"
5090 else
5091 echo "configure: failed program was:" >&5
5092 cat conftest.$ac_ext >&5
5093 rm -rf conftest*
5094 eval "ac_cv_func_$ac_func=no"
5095 fi
5096 rm -f conftest*
5097 fi
5098
5099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5100 echo "$ac_t""yes" 1>&6
5101 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5102 cat >> confdefs.h <<EOF
5103 #define $ac_tr_func 1
5104 EOF
5105 \
5106 ac_XPG2funcs=yes
5107 else
5108 echo "$ac_t""no" 1>&6
5109 ac_XPG2funcs=no
5110 fi
5111 done
5112
5113
5114 LIBS="$ac_save_LIBS"
5115
5116 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5117 echo "configure:5118: checking for XPG2 wchar_t support" >&5
5118 if test x"$ac_has_iconv_h" = xyes &&
5119 test x"$ac_has_langinfo_h" = xyes &&
5120 test x"$ac_XPG2funcs" = xyes; then
5121 ac_XPG2_wchar_t=yes
5122 else
5123 ac_XPG2_wchar_t=no
5124 fi
5125 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5126
5127 if test x"$ac_isoC99_wchar_t" = xyes &&
5128 test x"$ac_XPG2_wchar_t" = xyes; then
5129 cat >> confdefs.h <<\EOF
5130 #define _GLIBCPP_USE_WCHAR_T 1
5131 EOF
5132
5133 enable_wchar_t=yes
5134 fi
5135 fi
5136 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5137 echo "configure:5138: checking for enabled wchar_t specializations" >&5
5138 echo "$ac_t""$enable_wchar_t" 1>&6
5139
5140
5141 if test "$enable_wchar_t" = yes; then
5142 GLIBCPP_TEST_WCHAR_T_TRUE=
5143 GLIBCPP_TEST_WCHAR_T_FALSE='#'
5144 else
5145 GLIBCPP_TEST_WCHAR_T_TRUE='#'
5146 GLIBCPP_TEST_WCHAR_T_FALSE=
5147 fi
5148
5149 cat >> confdefs.h <<\EOF
5150 #define HAVE_COPYSIGN 1
5151 EOF
5152
5153 cat >> confdefs.h <<\EOF
5154 #define HAVE_COPYSIGNF 1
5155 EOF
5156
5157 cat >> confdefs.h <<\EOF
5158 #define HAVE_FINITE 1
5159 EOF
5160
5161 cat >> confdefs.h <<\EOF
5162 #define HAVE_FINITEF 1
5163 EOF
5164
5165 cat >> confdefs.h <<\EOF
5166 #define HAVE_FREXPF 1
5167 EOF
5168
5169 cat >> confdefs.h <<\EOF
5170 #define HAVE_HYPOTF 1
5171 EOF
5172
5173 cat >> confdefs.h <<\EOF
5174 #define HAVE_ISINF 1
5175 EOF
5176
5177 cat >> confdefs.h <<\EOF
5178 #define HAVE_ISINFF 1
5179 EOF
5180
5181 cat >> confdefs.h <<\EOF
5182 #define HAVE_ISNAN 1
5183 EOF
5184
5185 cat >> confdefs.h <<\EOF
5186 #define HAVE_ISNANF 1
5187 EOF
5188
5189 cat >> confdefs.h <<\EOF
5190 #define HAVE_SINCOS 1
5191 EOF
5192
5193 cat >> confdefs.h <<\EOF
5194 #define HAVE_SINCOSF 1
5195 EOF
5196
5197 if test x"long_double_math_on_this_cpu" = x"yes"; then
5198 cat >> confdefs.h <<\EOF
5199 #define HAVE_FINITEL 1
5200 EOF
5201
5202 cat >> confdefs.h <<\EOF
5203 #define HAVE_HYPOTL 1
5204 EOF
5205
5206 cat >> confdefs.h <<\EOF
5207 #define HAVE_ISINFL 1
5208 EOF
5209
5210 cat >> confdefs.h <<\EOF
5211 #define HAVE_ISNANL 1
5212 EOF
5213
5214 fi
5215 ;;
5216 *-hpux*)
5217 # Check for available headers.
5218 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5219 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5220 fp.h locale.h float.h inttypes.h
5221 do
5222 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5223 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5224 echo "configure:5225: checking for $ac_hdr" >&5
5225 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5226 echo $ac_n "(cached) $ac_c" 1>&6
5227 else
5228 cat > conftest.$ac_ext <<EOF
5229 #line 5230 "configure"
5230 #include "confdefs.h"
5231 #include <$ac_hdr>
5232 EOF
5233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5234 { (eval echo configure:5235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5236 if test -z "$ac_err"; then
5237 rm -rf conftest*
5238 eval "ac_cv_header_$ac_safe=yes"
5239 else
5240 echo "$ac_err" >&5
5241 echo "configure: failed program was:" >&5
5242 cat conftest.$ac_ext >&5
5243 rm -rf conftest*
5244 eval "ac_cv_header_$ac_safe=no"
5245 fi
5246 rm -f conftest*
5247 fi
5248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5249 echo "$ac_t""yes" 1>&6
5250 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5251 cat >> confdefs.h <<EOF
5252 #define $ac_tr_hdr 1
5253 EOF
5254
5255 else
5256 echo "$ac_t""no" 1>&6
5257 fi
5258 done
5259
5260 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5261
5262
5263 # If we're not using GNU ld, then there's no point in even trying these
5264 # tests. Check for that first. We should have already tested for gld
5265 # by now (in libtool), but require it now just to be safe...
5266 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5267 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5268
5269
5270 # The name set by libtool depends on the version of libtool. Shame on us
5271 # for depending on an impl detail, but c'est la vie. Older versions used
5272 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5273 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5274 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
5275 # set (hence we're using an older libtool), then set it.
5276 if test x${with_gnu_ld+set} != xset; then
5277 if test x${ac_cv_prog_gnu_ld+set} != xset; then
5278 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
5279 with_gnu_ld=no
5280 else
5281 with_gnu_ld=$ac_cv_prog_gnu_ld
5282 fi
5283 fi
5284
5285 # Start by getting the version number. I think the libtool test already
5286 # does some of this, but throws away the result.
5287
5288 ldver=`$LD --version 2>/dev/null | head -1 | \
5289 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5290
5291 glibcpp_gnu_ld_version=`echo $ldver | \
5292 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5293
5294 # Set --gc-sections.
5295 if test "$with_gnu_ld" = "notbroken"; then
5296 # GNU ld it is! Joy and bunny rabbits!
5297
5298 # All these tests are for C++; save the language and the compiler flags.
5299 # Need to do this so that g++ won't try to link in libstdc++
5300 ac_test_CFLAGS="${CFLAGS+set}"
5301 ac_save_CFLAGS="$CFLAGS"
5302 CFLAGS='-x c++ -Wl,--gc-sections'
5303
5304 # Check for -Wl,--gc-sections
5305 # XXX This test is broken at the moment, as symbols required for
5306 # linking are now in libsupc++ (not built yet.....). In addition,
5307 # this test has cored on solaris in the past. In addition,
5308 # --gc-sections doesn't really work at the moment (keeps on discarding
5309 # used sections, first .eh_frame and now some of the glibc sections for
5310 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5311 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5312 echo "configure:5313: checking for ld that supports -Wl,--gc-sections" >&5
5313 if test "$cross_compiling" = yes; then
5314 ac_sectionLDflags=yes
5315 else
5316 cat > conftest.$ac_ext <<EOF
5317 #line 5318 "configure"
5318 #include "confdefs.h"
5319
5320 int main(void)
5321 {
5322 try { throw 1; }
5323 catch (...) { };
5324 return 0;
5325 }
5326
5327 EOF
5328 if { (eval echo configure:5329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5329 then
5330 ac_sectionLDflags=yes
5331 else
5332 echo "configure: failed program was:" >&5
5333 cat conftest.$ac_ext >&5
5334 rm -fr conftest*
5335 ac_sectionLDflags=no
5336 fi
5337 rm -fr conftest*
5338 fi
5339
5340 if test "$ac_test_CFLAGS" = set; then
5341 CFLAGS="$ac_save_CFLAGS"
5342 else
5343 # this is the suspicious part
5344 CFLAGS=''
5345 fi
5346 if test "$ac_sectionLDflags" = "yes"; then
5347 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5348 fi
5349 echo "$ac_t""$ac_sectionLDflags" 1>&6
5350 fi
5351
5352 # Set linker optimization flags.
5353 if test x"$with_gnu_ld" = x"yes"; then
5354 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5355 fi
5356
5357
5358
5359
5360
5361 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5362 echo "configure:5363: checking for main in -lm" >&5
5363 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5364 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5365 echo $ac_n "(cached) $ac_c" 1>&6
5366 else
5367 ac_save_LIBS="$LIBS"
5368 LIBS="-lm $LIBS"
5369 cat > conftest.$ac_ext <<EOF
5370 #line 5371 "configure"
5371 #include "confdefs.h"
5372
5373 int main() {
5374 main()
5375 ; return 0; }
5376 EOF
5377 if { (eval echo configure:5378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5378 rm -rf conftest*
5379 eval "ac_cv_lib_$ac_lib_var=yes"
5380 else
5381 echo "configure: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5383 rm -rf conftest*
5384 eval "ac_cv_lib_$ac_lib_var=no"
5385 fi
5386 rm -f conftest*
5387 LIBS="$ac_save_LIBS"
5388
5389 fi
5390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5391 echo "$ac_t""yes" 1>&6
5392 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5393 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5394 cat >> confdefs.h <<EOF
5395 #define $ac_tr_lib 1
5396 EOF
5397
5398 LIBS="-lm $LIBS"
5399
5400 else
5401 echo "$ac_t""no" 1>&6
5402 fi
5403
5404 for ac_func in nan copysignf
5405 do
5406 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5407 echo "configure:5408: checking for $ac_func" >&5
5408 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5409 echo $ac_n "(cached) $ac_c" 1>&6
5410 else
5411 cat > conftest.$ac_ext <<EOF
5412 #line 5413 "configure"
5413 #include "confdefs.h"
5414 /* System header to define __stub macros and hopefully few prototypes,
5415 which can conflict with char $ac_func(); below. */
5416 #include <assert.h>
5417 /* Override any gcc2 internal prototype to avoid an error. */
5418 /* We use char because int might match the return type of a gcc2
5419 builtin and then its argument prototype would still apply. */
5420 char $ac_func();
5421
5422 int main() {
5423
5424 /* The GNU C library defines this for functions which it implements
5425 to always fail with ENOSYS. Some functions are actually named
5426 something starting with __ and the normal name is an alias. */
5427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5428 choke me
5429 #else
5430 $ac_func();
5431 #endif
5432
5433 ; return 0; }
5434 EOF
5435 if { (eval echo configure:5436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5436 rm -rf conftest*
5437 eval "ac_cv_func_$ac_func=yes"
5438 else
5439 echo "configure: failed program was:" >&5
5440 cat conftest.$ac_ext >&5
5441 rm -rf conftest*
5442 eval "ac_cv_func_$ac_func=no"
5443 fi
5444 rm -f conftest*
5445 fi
5446
5447 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5448 echo "$ac_t""yes" 1>&6
5449 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5450 cat >> confdefs.h <<EOF
5451 #define $ac_tr_func 1
5452 EOF
5453
5454 else
5455 echo "$ac_t""no" 1>&6
5456 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5457 fi
5458 done
5459
5460
5461 for ac_func in __signbit
5462 do
5463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5464 echo "configure:5465: checking for $ac_func" >&5
5465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5466 echo $ac_n "(cached) $ac_c" 1>&6
5467 else
5468 cat > conftest.$ac_ext <<EOF
5469 #line 5470 "configure"
5470 #include "confdefs.h"
5471 /* System header to define __stub macros and hopefully few prototypes,
5472 which can conflict with char $ac_func(); below. */
5473 #include <assert.h>
5474 /* Override any gcc2 internal prototype to avoid an error. */
5475 /* We use char because int might match the return type of a gcc2
5476 builtin and then its argument prototype would still apply. */
5477 char $ac_func();
5478
5479 int main() {
5480
5481 /* The GNU C library defines this for functions which it implements
5482 to always fail with ENOSYS. Some functions are actually named
5483 something starting with __ and the normal name is an alias. */
5484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5485 choke me
5486 #else
5487 $ac_func();
5488 #endif
5489
5490 ; return 0; }
5491 EOF
5492 if { (eval echo configure:5493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5493 rm -rf conftest*
5494 eval "ac_cv_func_$ac_func=yes"
5495 else
5496 echo "configure: failed program was:" >&5
5497 cat conftest.$ac_ext >&5
5498 rm -rf conftest*
5499 eval "ac_cv_func_$ac_func=no"
5500 fi
5501 rm -f conftest*
5502 fi
5503
5504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5505 echo "$ac_t""yes" 1>&6
5506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5507 cat >> confdefs.h <<EOF
5508 #define $ac_tr_func 1
5509 EOF
5510
5511 else
5512 echo "$ac_t""no" 1>&6
5513 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5514 fi
5515 done
5516
5517 for ac_func in __signbitf
5518 do
5519 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5520 echo "configure:5521: checking for $ac_func" >&5
5521 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5522 echo $ac_n "(cached) $ac_c" 1>&6
5523 else
5524 cat > conftest.$ac_ext <<EOF
5525 #line 5526 "configure"
5526 #include "confdefs.h"
5527 /* System header to define __stub macros and hopefully few prototypes,
5528 which can conflict with char $ac_func(); below. */
5529 #include <assert.h>
5530 /* Override any gcc2 internal prototype to avoid an error. */
5531 /* We use char because int might match the return type of a gcc2
5532 builtin and then its argument prototype would still apply. */
5533 char $ac_func();
5534
5535 int main() {
5536
5537 /* The GNU C library defines this for functions which it implements
5538 to always fail with ENOSYS. Some functions are actually named
5539 something starting with __ and the normal name is an alias. */
5540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5541 choke me
5542 #else
5543 $ac_func();
5544 #endif
5545
5546 ; return 0; }
5547 EOF
5548 if { (eval echo configure:5549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5549 rm -rf conftest*
5550 eval "ac_cv_func_$ac_func=yes"
5551 else
5552 echo "configure: failed program was:" >&5
5553 cat conftest.$ac_ext >&5
5554 rm -rf conftest*
5555 eval "ac_cv_func_$ac_func=no"
5556 fi
5557 rm -f conftest*
5558 fi
5559
5560 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5561 echo "$ac_t""yes" 1>&6
5562 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5563 cat >> confdefs.h <<EOF
5564 #define $ac_tr_func 1
5565 EOF
5566
5567 else
5568 echo "$ac_t""no" 1>&6
5569 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5570 fi
5571 done
5572
5573
5574 if test x$ac_cv_func_copysignl = x"yes"; then
5575 for ac_func in __signbitl
5576 do
5577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5578 echo "configure:5579: checking for $ac_func" >&5
5579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5580 echo $ac_n "(cached) $ac_c" 1>&6
5581 else
5582 cat > conftest.$ac_ext <<EOF
5583 #line 5584 "configure"
5584 #include "confdefs.h"
5585 /* System header to define __stub macros and hopefully few prototypes,
5586 which can conflict with char $ac_func(); below. */
5587 #include <assert.h>
5588 /* Override any gcc2 internal prototype to avoid an error. */
5589 /* We use char because int might match the return type of a gcc2
5590 builtin and then its argument prototype would still apply. */
5591 char $ac_func();
5592
5593 int main() {
5594
5595 /* The GNU C library defines this for functions which it implements
5596 to always fail with ENOSYS. Some functions are actually named
5597 something starting with __ and the normal name is an alias. */
5598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5599 choke me
5600 #else
5601 $ac_func();
5602 #endif
5603
5604 ; return 0; }
5605 EOF
5606 if { (eval echo configure:5607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5607 rm -rf conftest*
5608 eval "ac_cv_func_$ac_func=yes"
5609 else
5610 echo "configure: failed program was:" >&5
5611 cat conftest.$ac_ext >&5
5612 rm -rf conftest*
5613 eval "ac_cv_func_$ac_func=no"
5614 fi
5615 rm -f conftest*
5616 fi
5617
5618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5619 echo "$ac_t""yes" 1>&6
5620 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5621 cat >> confdefs.h <<EOF
5622 #define $ac_tr_func 1
5623 EOF
5624
5625 else
5626 echo "$ac_t""no" 1>&6
5627 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5628 fi
5629 done
5630
5631 fi
5632
5633 if test -n "$LIBMATHOBJS"; then
5634 need_libmath=yes
5635 fi
5636
5637
5638
5639 if test "$need_libmath" = yes; then
5640 GLIBCPP_BUILD_LIBMATH_TRUE=
5641 GLIBCPP_BUILD_LIBMATH_FALSE='#'
5642 else
5643 GLIBCPP_BUILD_LIBMATH_TRUE='#'
5644 GLIBCPP_BUILD_LIBMATH_FALSE=
5645 fi
5646
5647
5648 enable_wchar_t=no
5649
5650 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5651 echo "configure:5652: checking for mbstate_t" >&5
5652 cat > conftest.$ac_ext <<EOF
5653 #line 5654 "configure"
5654 #include "confdefs.h"
5655 #include <wchar.h>
5656 int main() {
5657 mbstate_t teststate;
5658 ; return 0; }
5659 EOF
5660 if { (eval echo configure:5661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5661 rm -rf conftest*
5662 have_mbstate_t=yes
5663 else
5664 echo "configure: failed program was:" >&5
5665 cat conftest.$ac_ext >&5
5666 rm -rf conftest*
5667 have_mbstate_t=no
5668 fi
5669 rm -f conftest*
5670 echo "$ac_t""$have_mbstate_t" 1>&6
5671 if test x"$have_mbstate_t" = xyes; then
5672 cat >> confdefs.h <<\EOF
5673 #define HAVE_MBSTATE_T 1
5674 EOF
5675
5676 fi
5677
5678 for ac_hdr in wchar.h
5679 do
5680 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5681 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5682 echo "configure:5683: checking for $ac_hdr" >&5
5683 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5684 echo $ac_n "(cached) $ac_c" 1>&6
5685 else
5686 cat > conftest.$ac_ext <<EOF
5687 #line 5688 "configure"
5688 #include "confdefs.h"
5689 #include <$ac_hdr>
5690 EOF
5691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5692 { (eval echo configure:5693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5693 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5694 if test -z "$ac_err"; then
5695 rm -rf conftest*
5696 eval "ac_cv_header_$ac_safe=yes"
5697 else
5698 echo "$ac_err" >&5
5699 echo "configure: failed program was:" >&5
5700 cat conftest.$ac_ext >&5
5701 rm -rf conftest*
5702 eval "ac_cv_header_$ac_safe=no"
5703 fi
5704 rm -f conftest*
5705 fi
5706 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5707 echo "$ac_t""yes" 1>&6
5708 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5709 cat >> confdefs.h <<EOF
5710 #define $ac_tr_hdr 1
5711 EOF
5712 ac_has_wchar_h=yes
5713 else
5714 echo "$ac_t""no" 1>&6
5715 ac_has_wchar_h=no
5716 fi
5717 done
5718
5719 for ac_hdr in wctype.h
5720 do
5721 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5722 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5723 echo "configure:5724: checking for $ac_hdr" >&5
5724 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5725 echo $ac_n "(cached) $ac_c" 1>&6
5726 else
5727 cat > conftest.$ac_ext <<EOF
5728 #line 5729 "configure"
5729 #include "confdefs.h"
5730 #include <$ac_hdr>
5731 EOF
5732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5733 { (eval echo configure:5734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5735 if test -z "$ac_err"; then
5736 rm -rf conftest*
5737 eval "ac_cv_header_$ac_safe=yes"
5738 else
5739 echo "$ac_err" >&5
5740 echo "configure: failed program was:" >&5
5741 cat conftest.$ac_ext >&5
5742 rm -rf conftest*
5743 eval "ac_cv_header_$ac_safe=no"
5744 fi
5745 rm -f conftest*
5746 fi
5747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5748 echo "$ac_t""yes" 1>&6
5749 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5750 cat >> confdefs.h <<EOF
5751 #define $ac_tr_hdr 1
5752 EOF
5753 ac_has_wctype_h=yes
5754 else
5755 echo "$ac_t""no" 1>&6
5756 ac_has_wctype_h=no
5757 fi
5758 done
5759
5760
5761 if test x"$ac_has_wchar_h" = xyes &&
5762 test x"$ac_has_wctype_h" = xyes &&
5763 test x"$enable_c_mbchar" != xno; then
5764
5765 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5766 echo "configure:5767: checking for WCHAR_MIN and WCHAR_MAX" >&5
5767 cat > conftest.$ac_ext <<EOF
5768 #line 5769 "configure"
5769 #include "confdefs.h"
5770 #include <wchar.h>
5771 int main() {
5772 int i = WCHAR_MIN; int j = WCHAR_MAX;
5773 ; return 0; }
5774 EOF
5775 if { (eval echo configure:5776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5776 rm -rf conftest*
5777 has_wchar_minmax=yes
5778 else
5779 echo "configure: failed program was:" >&5
5780 cat conftest.$ac_ext >&5
5781 rm -rf conftest*
5782 has_wchar_minmax=no
5783 fi
5784 rm -f conftest*
5785 echo "$ac_t""$has_wchar_minmax" 1>&6
5786
5787 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5788 echo "configure:5789: checking for WEOF" >&5
5789 cat > conftest.$ac_ext <<EOF
5790 #line 5791 "configure"
5791 #include "confdefs.h"
5792
5793 #include <wchar.h>
5794 #include <stddef.h>
5795 int main() {
5796 wint_t i = WEOF;
5797 ; return 0; }
5798 EOF
5799 if { (eval echo configure:5800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5800 rm -rf conftest*
5801 has_weof=yes
5802 else
5803 echo "configure: failed program was:" >&5
5804 cat conftest.$ac_ext >&5
5805 rm -rf conftest*
5806 has_weof=no
5807 fi
5808 rm -f conftest*
5809 echo "$ac_t""$has_weof" 1>&6
5810
5811 ac_wfuncs=yes
5812 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5813 do
5814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5815 echo "configure:5816: checking for $ac_func" >&5
5816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5817 echo $ac_n "(cached) $ac_c" 1>&6
5818 else
5819 cat > conftest.$ac_ext <<EOF
5820 #line 5821 "configure"
5821 #include "confdefs.h"
5822 /* System header to define __stub macros and hopefully few prototypes,
5823 which can conflict with char $ac_func(); below. */
5824 #include <assert.h>
5825 /* Override any gcc2 internal prototype to avoid an error. */
5826 /* We use char because int might match the return type of a gcc2
5827 builtin and then its argument prototype would still apply. */
5828 char $ac_func();
5829
5830 int main() {
5831
5832 /* The GNU C library defines this for functions which it implements
5833 to always fail with ENOSYS. Some functions are actually named
5834 something starting with __ and the normal name is an alias. */
5835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5836 choke me
5837 #else
5838 $ac_func();
5839 #endif
5840
5841 ; return 0; }
5842 EOF
5843 if { (eval echo configure:5844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5844 rm -rf conftest*
5845 eval "ac_cv_func_$ac_func=yes"
5846 else
5847 echo "configure: failed program was:" >&5
5848 cat conftest.$ac_ext >&5
5849 rm -rf conftest*
5850 eval "ac_cv_func_$ac_func=no"
5851 fi
5852 rm -f conftest*
5853 fi
5854
5855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5856 echo "$ac_t""yes" 1>&6
5857 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5858 cat >> confdefs.h <<EOF
5859 #define $ac_tr_func 1
5860 EOF
5861
5862 else
5863 echo "$ac_t""no" 1>&6
5864 \
5865 ac_wfuncs=no
5866 fi
5867 done
5868
5869
5870 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
5871 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5872 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5873 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5874 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5875 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5876 do
5877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5878 echo "configure:5879: checking for $ac_func" >&5
5879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5880 echo $ac_n "(cached) $ac_c" 1>&6
5881 else
5882 cat > conftest.$ac_ext <<EOF
5883 #line 5884 "configure"
5884 #include "confdefs.h"
5885 /* System header to define __stub macros and hopefully few prototypes,
5886 which can conflict with char $ac_func(); below. */
5887 #include <assert.h>
5888 /* Override any gcc2 internal prototype to avoid an error. */
5889 /* We use char because int might match the return type of a gcc2
5890 builtin and then its argument prototype would still apply. */
5891 char $ac_func();
5892
5893 int main() {
5894
5895 /* The GNU C library defines this for functions which it implements
5896 to always fail with ENOSYS. Some functions are actually named
5897 something starting with __ and the normal name is an alias. */
5898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5899 choke me
5900 #else
5901 $ac_func();
5902 #endif
5903
5904 ; return 0; }
5905 EOF
5906 if { (eval echo configure:5907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5907 rm -rf conftest*
5908 eval "ac_cv_func_$ac_func=yes"
5909 else
5910 echo "configure: failed program was:" >&5
5911 cat conftest.$ac_ext >&5
5912 rm -rf conftest*
5913 eval "ac_cv_func_$ac_func=no"
5914 fi
5915 rm -f conftest*
5916 fi
5917
5918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5919 echo "$ac_t""yes" 1>&6
5920 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5921 cat >> confdefs.h <<EOF
5922 #define $ac_tr_func 1
5923 EOF
5924
5925 else
5926 echo "$ac_t""no" 1>&6
5927 \
5928 ac_wfuncs=no
5929 fi
5930 done
5931
5932
5933 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5934 echo "configure:5935: checking for ISO C99 wchar_t support" >&5
5935 if test x"$has_weof" = xyes &&
5936 test x"$has_wchar_minmax" = xyes &&
5937 test x"$ac_wfuncs" = xyes; then
5938 ac_isoC99_wchar_t=yes
5939 else
5940 ac_isoC99_wchar_t=no
5941 fi
5942 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5943
5944 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5945 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5946 echo "configure:5947: checking for iconv.h" >&5
5947 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5948 echo $ac_n "(cached) $ac_c" 1>&6
5949 else
5950 cat > conftest.$ac_ext <<EOF
5951 #line 5952 "configure"
5952 #include "confdefs.h"
5953 #include <iconv.h>
5954 EOF
5955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5956 { (eval echo configure:5957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5958 if test -z "$ac_err"; then
5959 rm -rf conftest*
5960 eval "ac_cv_header_$ac_safe=yes"
5961 else
5962 echo "$ac_err" >&5
5963 echo "configure: failed program was:" >&5
5964 cat conftest.$ac_ext >&5
5965 rm -rf conftest*
5966 eval "ac_cv_header_$ac_safe=no"
5967 fi
5968 rm -f conftest*
5969 fi
5970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5971 echo "$ac_t""yes" 1>&6
5972 ac_has_iconv_h=yes
5973 else
5974 echo "$ac_t""no" 1>&6
5975 ac_has_iconv_h=no
5976 fi
5977
5978 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5979 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5980 echo "configure:5981: checking for langinfo.h" >&5
5981 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5982 echo $ac_n "(cached) $ac_c" 1>&6
5983 else
5984 cat > conftest.$ac_ext <<EOF
5985 #line 5986 "configure"
5986 #include "confdefs.h"
5987 #include <langinfo.h>
5988 EOF
5989 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5990 { (eval echo configure:5991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5991 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5992 if test -z "$ac_err"; then
5993 rm -rf conftest*
5994 eval "ac_cv_header_$ac_safe=yes"
5995 else
5996 echo "$ac_err" >&5
5997 echo "configure: failed program was:" >&5
5998 cat conftest.$ac_ext >&5
5999 rm -rf conftest*
6000 eval "ac_cv_header_$ac_safe=no"
6001 fi
6002 rm -f conftest*
6003 fi
6004 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6005 echo "$ac_t""yes" 1>&6
6006 ac_has_langinfo_h=yes
6007 else
6008 echo "$ac_t""no" 1>&6
6009 ac_has_langinfo_h=no
6010 fi
6011
6012
6013 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6014 echo "configure:6015: checking for iconv in -liconv" >&5
6015 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6017 echo $ac_n "(cached) $ac_c" 1>&6
6018 else
6019 ac_save_LIBS="$LIBS"
6020 LIBS="-liconv $LIBS"
6021 cat > conftest.$ac_ext <<EOF
6022 #line 6023 "configure"
6023 #include "confdefs.h"
6024 /* Override any gcc2 internal prototype to avoid an error. */
6025 /* We use char because int might match the return type of a gcc2
6026 builtin and then its argument prototype would still apply. */
6027 char iconv();
6028
6029 int main() {
6030 iconv()
6031 ; return 0; }
6032 EOF
6033 if { (eval echo configure:6034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6034 rm -rf conftest*
6035 eval "ac_cv_lib_$ac_lib_var=yes"
6036 else
6037 echo "configure: failed program was:" >&5
6038 cat conftest.$ac_ext >&5
6039 rm -rf conftest*
6040 eval "ac_cv_lib_$ac_lib_var=no"
6041 fi
6042 rm -f conftest*
6043 LIBS="$ac_save_LIBS"
6044
6045 fi
6046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6047 echo "$ac_t""yes" 1>&6
6048 libiconv="-liconv"
6049 else
6050 echo "$ac_t""no" 1>&6
6051 fi
6052
6053 ac_save_LIBS="$LIBS"
6054 LIBS="$LIBS $libiconv"
6055
6056 for ac_func in iconv_open iconv_close iconv nl_langinfo
6057 do
6058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6059 echo "configure:6060: checking for $ac_func" >&5
6060 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6061 echo $ac_n "(cached) $ac_c" 1>&6
6062 else
6063 cat > conftest.$ac_ext <<EOF
6064 #line 6065 "configure"
6065 #include "confdefs.h"
6066 /* System header to define __stub macros and hopefully few prototypes,
6067 which can conflict with char $ac_func(); below. */
6068 #include <assert.h>
6069 /* Override any gcc2 internal prototype to avoid an error. */
6070 /* We use char because int might match the return type of a gcc2
6071 builtin and then its argument prototype would still apply. */
6072 char $ac_func();
6073
6074 int main() {
6075
6076 /* The GNU C library defines this for functions which it implements
6077 to always fail with ENOSYS. Some functions are actually named
6078 something starting with __ and the normal name is an alias. */
6079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6080 choke me
6081 #else
6082 $ac_func();
6083 #endif
6084
6085 ; return 0; }
6086 EOF
6087 if { (eval echo configure:6088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6088 rm -rf conftest*
6089 eval "ac_cv_func_$ac_func=yes"
6090 else
6091 echo "configure: failed program was:" >&5
6092 cat conftest.$ac_ext >&5
6093 rm -rf conftest*
6094 eval "ac_cv_func_$ac_func=no"
6095 fi
6096 rm -f conftest*
6097 fi
6098
6099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6100 echo "$ac_t""yes" 1>&6
6101 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6102 cat >> confdefs.h <<EOF
6103 #define $ac_tr_func 1
6104 EOF
6105 \
6106 ac_XPG2funcs=yes
6107 else
6108 echo "$ac_t""no" 1>&6
6109 ac_XPG2funcs=no
6110 fi
6111 done
6112
6113
6114 LIBS="$ac_save_LIBS"
6115
6116 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6117 echo "configure:6118: checking for XPG2 wchar_t support" >&5
6118 if test x"$ac_has_iconv_h" = xyes &&
6119 test x"$ac_has_langinfo_h" = xyes &&
6120 test x"$ac_XPG2funcs" = xyes; then
6121 ac_XPG2_wchar_t=yes
6122 else
6123 ac_XPG2_wchar_t=no
6124 fi
6125 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6126
6127 if test x"$ac_isoC99_wchar_t" = xyes &&
6128 test x"$ac_XPG2_wchar_t" = xyes; then
6129 cat >> confdefs.h <<\EOF
6130 #define _GLIBCPP_USE_WCHAR_T 1
6131 EOF
6132
6133 enable_wchar_t=yes
6134 fi
6135 fi
6136 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6137 echo "configure:6138: checking for enabled wchar_t specializations" >&5
6138 echo "$ac_t""$enable_wchar_t" 1>&6
6139
6140
6141 if test "$enable_wchar_t" = yes; then
6142 GLIBCPP_TEST_WCHAR_T_TRUE=
6143 GLIBCPP_TEST_WCHAR_T_FALSE='#'
6144 else
6145 GLIBCPP_TEST_WCHAR_T_TRUE='#'
6146 GLIBCPP_TEST_WCHAR_T_FALSE=
6147 fi
6148
6149 os_include_dir="os/hpux"
6150 cat >> confdefs.h <<\EOF
6151 #define HAVE_COPYSIGN 1
6152 EOF
6153
6154 cat >> confdefs.h <<\EOF
6155 #define HAVE_COPYSIGNF 1
6156 EOF
6157
6158 cat >> confdefs.h <<\EOF
6159 #define HAVE_FREXPF 1
6160 EOF
6161
6162 cat >> confdefs.h <<\EOF
6163 #define HAVE_HYPOT 1
6164 EOF
6165
6166 case "$target" in
6167 *-hpux10*)
6168 cat >> confdefs.h <<\EOF
6169 #define HAVE_FINITE 1
6170 EOF
6171
6172 cat >> confdefs.h <<\EOF
6173 #define HAVE_FINITEF 1
6174 EOF
6175
6176 cat >> confdefs.h <<\EOF
6177 #define HAVE_ISINF 1
6178 EOF
6179
6180 cat >> confdefs.h <<\EOF
6181 #define HAVE_ISINFF 1
6182 EOF
6183
6184 cat >> confdefs.h <<\EOF
6185 #define HAVE_ISNAN 1
6186 EOF
6187
6188 cat >> confdefs.h <<\EOF
6189 #define HAVE_ISNANF 1
6190 EOF
6191
6192 ;;
6193 esac
6194
6195 ;;
6196 *-netbsd*)
6197 # Check for available headers.
6198 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6199 machine/endian.h machine/param.h sys/machine.h sys/types.h \
6200 fp.h locale.h float.h inttypes.h
6201 do
6202 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6203 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6204 echo "configure:6205: checking for $ac_hdr" >&5
6205 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6206 echo $ac_n "(cached) $ac_c" 1>&6
6207 else
6208 cat > conftest.$ac_ext <<EOF
6209 #line 6210 "configure"
6210 #include "confdefs.h"
6211 #include <$ac_hdr>
6212 EOF
6213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6214 { (eval echo configure:6215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6216 if test -z "$ac_err"; then
6217 rm -rf conftest*
6218 eval "ac_cv_header_$ac_safe=yes"
6219 else
6220 echo "$ac_err" >&5
6221 echo "configure: failed program was:" >&5
6222 cat conftest.$ac_ext >&5
6223 rm -rf conftest*
6224 eval "ac_cv_header_$ac_safe=no"
6225 fi
6226 rm -f conftest*
6227 fi
6228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6229 echo "$ac_t""yes" 1>&6
6230 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6231 cat >> confdefs.h <<EOF
6232 #define $ac_tr_hdr 1
6233 EOF
6234
6235 else
6236 echo "$ac_t""no" 1>&6
6237 fi
6238 done
6239
6240 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6241
6242
6243 # If we're not using GNU ld, then there's no point in even trying these
6244 # tests. Check for that first. We should have already tested for gld
6245 # by now (in libtool), but require it now just to be safe...
6246 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6247 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6248
6249
6250 # The name set by libtool depends on the version of libtool. Shame on us
6251 # for depending on an impl detail, but c'est la vie. Older versions used
6252 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6253 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6254 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6255 # set (hence we're using an older libtool), then set it.
6256 if test x${with_gnu_ld+set} != xset; then
6257 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6258 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6259 with_gnu_ld=no
6260 else
6261 with_gnu_ld=$ac_cv_prog_gnu_ld
6262 fi
6263 fi
6264
6265 # Start by getting the version number. I think the libtool test already
6266 # does some of this, but throws away the result.
6267
6268 ldver=`$LD --version 2>/dev/null | head -1 | \
6269 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6270
6271 glibcpp_gnu_ld_version=`echo $ldver | \
6272 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6273
6274 # Set --gc-sections.
6275 if test "$with_gnu_ld" = "notbroken"; then
6276 # GNU ld it is! Joy and bunny rabbits!
6277
6278 # All these tests are for C++; save the language and the compiler flags.
6279 # Need to do this so that g++ won't try to link in libstdc++
6280 ac_test_CFLAGS="${CFLAGS+set}"
6281 ac_save_CFLAGS="$CFLAGS"
6282 CFLAGS='-x c++ -Wl,--gc-sections'
6283
6284 # Check for -Wl,--gc-sections
6285 # XXX This test is broken at the moment, as symbols required for
6286 # linking are now in libsupc++ (not built yet.....). In addition,
6287 # this test has cored on solaris in the past. In addition,
6288 # --gc-sections doesn't really work at the moment (keeps on discarding
6289 # used sections, first .eh_frame and now some of the glibc sections for
6290 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6291 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6292 echo "configure:6293: checking for ld that supports -Wl,--gc-sections" >&5
6293 if test "$cross_compiling" = yes; then
6294 ac_sectionLDflags=yes
6295 else
6296 cat > conftest.$ac_ext <<EOF
6297 #line 6298 "configure"
6298 #include "confdefs.h"
6299
6300 int main(void)
6301 {
6302 try { throw 1; }
6303 catch (...) { };
6304 return 0;
6305 }
6306
6307 EOF
6308 if { (eval echo configure:6309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6309 then
6310 ac_sectionLDflags=yes
6311 else
6312 echo "configure: failed program was:" >&5
6313 cat conftest.$ac_ext >&5
6314 rm -fr conftest*
6315 ac_sectionLDflags=no
6316 fi
6317 rm -fr conftest*
6318 fi
6319
6320 if test "$ac_test_CFLAGS" = set; then
6321 CFLAGS="$ac_save_CFLAGS"
6322 else
6323 # this is the suspicious part
6324 CFLAGS=''
6325 fi
6326 if test "$ac_sectionLDflags" = "yes"; then
6327 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6328 fi
6329 echo "$ac_t""$ac_sectionLDflags" 1>&6
6330 fi
6331
6332 # Set linker optimization flags.
6333 if test x"$with_gnu_ld" = x"yes"; then
6334 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6335 fi
6336
6337
6338
6339
6340
6341 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6342 echo "configure:6343: checking for main in -lm" >&5
6343 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6344 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6345 echo $ac_n "(cached) $ac_c" 1>&6
6346 else
6347 ac_save_LIBS="$LIBS"
6348 LIBS="-lm $LIBS"
6349 cat > conftest.$ac_ext <<EOF
6350 #line 6351 "configure"
6351 #include "confdefs.h"
6352
6353 int main() {
6354 main()
6355 ; return 0; }
6356 EOF
6357 if { (eval echo configure:6358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6358 rm -rf conftest*
6359 eval "ac_cv_lib_$ac_lib_var=yes"
6360 else
6361 echo "configure: failed program was:" >&5
6362 cat conftest.$ac_ext >&5
6363 rm -rf conftest*
6364 eval "ac_cv_lib_$ac_lib_var=no"
6365 fi
6366 rm -f conftest*
6367 LIBS="$ac_save_LIBS"
6368
6369 fi
6370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6371 echo "$ac_t""yes" 1>&6
6372 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6373 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6374 cat >> confdefs.h <<EOF
6375 #define $ac_tr_lib 1
6376 EOF
6377
6378 LIBS="-lm $LIBS"
6379
6380 else
6381 echo "$ac_t""no" 1>&6
6382 fi
6383
6384 for ac_func in nan copysignf
6385 do
6386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6387 echo "configure:6388: checking for $ac_func" >&5
6388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6389 echo $ac_n "(cached) $ac_c" 1>&6
6390 else
6391 cat > conftest.$ac_ext <<EOF
6392 #line 6393 "configure"
6393 #include "confdefs.h"
6394 /* System header to define __stub macros and hopefully few prototypes,
6395 which can conflict with char $ac_func(); below. */
6396 #include <assert.h>
6397 /* Override any gcc2 internal prototype to avoid an error. */
6398 /* We use char because int might match the return type of a gcc2
6399 builtin and then its argument prototype would still apply. */
6400 char $ac_func();
6401
6402 int main() {
6403
6404 /* The GNU C library defines this for functions which it implements
6405 to always fail with ENOSYS. Some functions are actually named
6406 something starting with __ and the normal name is an alias. */
6407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6408 choke me
6409 #else
6410 $ac_func();
6411 #endif
6412
6413 ; return 0; }
6414 EOF
6415 if { (eval echo configure:6416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6416 rm -rf conftest*
6417 eval "ac_cv_func_$ac_func=yes"
6418 else
6419 echo "configure: failed program was:" >&5
6420 cat conftest.$ac_ext >&5
6421 rm -rf conftest*
6422 eval "ac_cv_func_$ac_func=no"
6423 fi
6424 rm -f conftest*
6425 fi
6426
6427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6428 echo "$ac_t""yes" 1>&6
6429 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6430 cat >> confdefs.h <<EOF
6431 #define $ac_tr_func 1
6432 EOF
6433
6434 else
6435 echo "$ac_t""no" 1>&6
6436 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6437 fi
6438 done
6439
6440
6441 for ac_func in __signbit
6442 do
6443 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6444 echo "configure:6445: checking for $ac_func" >&5
6445 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6446 echo $ac_n "(cached) $ac_c" 1>&6
6447 else
6448 cat > conftest.$ac_ext <<EOF
6449 #line 6450 "configure"
6450 #include "confdefs.h"
6451 /* System header to define __stub macros and hopefully few prototypes,
6452 which can conflict with char $ac_func(); below. */
6453 #include <assert.h>
6454 /* Override any gcc2 internal prototype to avoid an error. */
6455 /* We use char because int might match the return type of a gcc2
6456 builtin and then its argument prototype would still apply. */
6457 char $ac_func();
6458
6459 int main() {
6460
6461 /* The GNU C library defines this for functions which it implements
6462 to always fail with ENOSYS. Some functions are actually named
6463 something starting with __ and the normal name is an alias. */
6464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6465 choke me
6466 #else
6467 $ac_func();
6468 #endif
6469
6470 ; return 0; }
6471 EOF
6472 if { (eval echo configure:6473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6473 rm -rf conftest*
6474 eval "ac_cv_func_$ac_func=yes"
6475 else
6476 echo "configure: failed program was:" >&5
6477 cat conftest.$ac_ext >&5
6478 rm -rf conftest*
6479 eval "ac_cv_func_$ac_func=no"
6480 fi
6481 rm -f conftest*
6482 fi
6483
6484 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6485 echo "$ac_t""yes" 1>&6
6486 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6487 cat >> confdefs.h <<EOF
6488 #define $ac_tr_func 1
6489 EOF
6490
6491 else
6492 echo "$ac_t""no" 1>&6
6493 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6494 fi
6495 done
6496
6497 for ac_func in __signbitf
6498 do
6499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6500 echo "configure:6501: checking for $ac_func" >&5
6501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6502 echo $ac_n "(cached) $ac_c" 1>&6
6503 else
6504 cat > conftest.$ac_ext <<EOF
6505 #line 6506 "configure"
6506 #include "confdefs.h"
6507 /* System header to define __stub macros and hopefully few prototypes,
6508 which can conflict with char $ac_func(); below. */
6509 #include <assert.h>
6510 /* Override any gcc2 internal prototype to avoid an error. */
6511 /* We use char because int might match the return type of a gcc2
6512 builtin and then its argument prototype would still apply. */
6513 char $ac_func();
6514
6515 int main() {
6516
6517 /* The GNU C library defines this for functions which it implements
6518 to always fail with ENOSYS. Some functions are actually named
6519 something starting with __ and the normal name is an alias. */
6520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6521 choke me
6522 #else
6523 $ac_func();
6524 #endif
6525
6526 ; return 0; }
6527 EOF
6528 if { (eval echo configure:6529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6529 rm -rf conftest*
6530 eval "ac_cv_func_$ac_func=yes"
6531 else
6532 echo "configure: failed program was:" >&5
6533 cat conftest.$ac_ext >&5
6534 rm -rf conftest*
6535 eval "ac_cv_func_$ac_func=no"
6536 fi
6537 rm -f conftest*
6538 fi
6539
6540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6541 echo "$ac_t""yes" 1>&6
6542 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6543 cat >> confdefs.h <<EOF
6544 #define $ac_tr_func 1
6545 EOF
6546
6547 else
6548 echo "$ac_t""no" 1>&6
6549 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6550 fi
6551 done
6552
6553
6554 if test x$ac_cv_func_copysignl = x"yes"; then
6555 for ac_func in __signbitl
6556 do
6557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6558 echo "configure:6559: checking for $ac_func" >&5
6559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6560 echo $ac_n "(cached) $ac_c" 1>&6
6561 else
6562 cat > conftest.$ac_ext <<EOF
6563 #line 6564 "configure"
6564 #include "confdefs.h"
6565 /* System header to define __stub macros and hopefully few prototypes,
6566 which can conflict with char $ac_func(); below. */
6567 #include <assert.h>
6568 /* Override any gcc2 internal prototype to avoid an error. */
6569 /* We use char because int might match the return type of a gcc2
6570 builtin and then its argument prototype would still apply. */
6571 char $ac_func();
6572
6573 int main() {
6574
6575 /* The GNU C library defines this for functions which it implements
6576 to always fail with ENOSYS. Some functions are actually named
6577 something starting with __ and the normal name is an alias. */
6578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6579 choke me
6580 #else
6581 $ac_func();
6582 #endif
6583
6584 ; return 0; }
6585 EOF
6586 if { (eval echo configure:6587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6587 rm -rf conftest*
6588 eval "ac_cv_func_$ac_func=yes"
6589 else
6590 echo "configure: failed program was:" >&5
6591 cat conftest.$ac_ext >&5
6592 rm -rf conftest*
6593 eval "ac_cv_func_$ac_func=no"
6594 fi
6595 rm -f conftest*
6596 fi
6597
6598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6599 echo "$ac_t""yes" 1>&6
6600 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6601 cat >> confdefs.h <<EOF
6602 #define $ac_tr_func 1
6603 EOF
6604
6605 else
6606 echo "$ac_t""no" 1>&6
6607 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6608 fi
6609 done
6610
6611 fi
6612
6613 if test -n "$LIBMATHOBJS"; then
6614 need_libmath=yes
6615 fi
6616
6617
6618
6619 if test "$need_libmath" = yes; then
6620 GLIBCPP_BUILD_LIBMATH_TRUE=
6621 GLIBCPP_BUILD_LIBMATH_FALSE='#'
6622 else
6623 GLIBCPP_BUILD_LIBMATH_TRUE='#'
6624 GLIBCPP_BUILD_LIBMATH_FALSE=
6625 fi
6626
6627
6628 enable_wchar_t=no
6629
6630 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6631 echo "configure:6632: checking for mbstate_t" >&5
6632 cat > conftest.$ac_ext <<EOF
6633 #line 6634 "configure"
6634 #include "confdefs.h"
6635 #include <wchar.h>
6636 int main() {
6637 mbstate_t teststate;
6638 ; return 0; }
6639 EOF
6640 if { (eval echo configure:6641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6641 rm -rf conftest*
6642 have_mbstate_t=yes
6643 else
6644 echo "configure: failed program was:" >&5
6645 cat conftest.$ac_ext >&5
6646 rm -rf conftest*
6647 have_mbstate_t=no
6648 fi
6649 rm -f conftest*
6650 echo "$ac_t""$have_mbstate_t" 1>&6
6651 if test x"$have_mbstate_t" = xyes; then
6652 cat >> confdefs.h <<\EOF
6653 #define HAVE_MBSTATE_T 1
6654 EOF
6655
6656 fi
6657
6658 for ac_hdr in wchar.h
6659 do
6660 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6661 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6662 echo "configure:6663: checking for $ac_hdr" >&5
6663 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6664 echo $ac_n "(cached) $ac_c" 1>&6
6665 else
6666 cat > conftest.$ac_ext <<EOF
6667 #line 6668 "configure"
6668 #include "confdefs.h"
6669 #include <$ac_hdr>
6670 EOF
6671 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6672 { (eval echo configure:6673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6673 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6674 if test -z "$ac_err"; then
6675 rm -rf conftest*
6676 eval "ac_cv_header_$ac_safe=yes"
6677 else
6678 echo "$ac_err" >&5
6679 echo "configure: failed program was:" >&5
6680 cat conftest.$ac_ext >&5
6681 rm -rf conftest*
6682 eval "ac_cv_header_$ac_safe=no"
6683 fi
6684 rm -f conftest*
6685 fi
6686 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6687 echo "$ac_t""yes" 1>&6
6688 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6689 cat >> confdefs.h <<EOF
6690 #define $ac_tr_hdr 1
6691 EOF
6692 ac_has_wchar_h=yes
6693 else
6694 echo "$ac_t""no" 1>&6
6695 ac_has_wchar_h=no
6696 fi
6697 done
6698
6699 for ac_hdr in wctype.h
6700 do
6701 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6702 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6703 echo "configure:6704: checking for $ac_hdr" >&5
6704 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6705 echo $ac_n "(cached) $ac_c" 1>&6
6706 else
6707 cat > conftest.$ac_ext <<EOF
6708 #line 6709 "configure"
6709 #include "confdefs.h"
6710 #include <$ac_hdr>
6711 EOF
6712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6713 { (eval echo configure:6714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6715 if test -z "$ac_err"; then
6716 rm -rf conftest*
6717 eval "ac_cv_header_$ac_safe=yes"
6718 else
6719 echo "$ac_err" >&5
6720 echo "configure: failed program was:" >&5
6721 cat conftest.$ac_ext >&5
6722 rm -rf conftest*
6723 eval "ac_cv_header_$ac_safe=no"
6724 fi
6725 rm -f conftest*
6726 fi
6727 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6728 echo "$ac_t""yes" 1>&6
6729 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6730 cat >> confdefs.h <<EOF
6731 #define $ac_tr_hdr 1
6732 EOF
6733 ac_has_wctype_h=yes
6734 else
6735 echo "$ac_t""no" 1>&6
6736 ac_has_wctype_h=no
6737 fi
6738 done
6739
6740
6741 if test x"$ac_has_wchar_h" = xyes &&
6742 test x"$ac_has_wctype_h" = xyes &&
6743 test x"$enable_c_mbchar" != xno; then
6744
6745 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6746 echo "configure:6747: checking for WCHAR_MIN and WCHAR_MAX" >&5
6747 cat > conftest.$ac_ext <<EOF
6748 #line 6749 "configure"
6749 #include "confdefs.h"
6750 #include <wchar.h>
6751 int main() {
6752 int i = WCHAR_MIN; int j = WCHAR_MAX;
6753 ; return 0; }
6754 EOF
6755 if { (eval echo configure:6756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6756 rm -rf conftest*
6757 has_wchar_minmax=yes
6758 else
6759 echo "configure: failed program was:" >&5
6760 cat conftest.$ac_ext >&5
6761 rm -rf conftest*
6762 has_wchar_minmax=no
6763 fi
6764 rm -f conftest*
6765 echo "$ac_t""$has_wchar_minmax" 1>&6
6766
6767 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6768 echo "configure:6769: checking for WEOF" >&5
6769 cat > conftest.$ac_ext <<EOF
6770 #line 6771 "configure"
6771 #include "confdefs.h"
6772
6773 #include <wchar.h>
6774 #include <stddef.h>
6775 int main() {
6776 wint_t i = WEOF;
6777 ; return 0; }
6778 EOF
6779 if { (eval echo configure:6780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6780 rm -rf conftest*
6781 has_weof=yes
6782 else
6783 echo "configure: failed program was:" >&5
6784 cat conftest.$ac_ext >&5
6785 rm -rf conftest*
6786 has_weof=no
6787 fi
6788 rm -f conftest*
6789 echo "$ac_t""$has_weof" 1>&6
6790
6791 ac_wfuncs=yes
6792 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6793 do
6794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6795 echo "configure:6796: checking for $ac_func" >&5
6796 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6797 echo $ac_n "(cached) $ac_c" 1>&6
6798 else
6799 cat > conftest.$ac_ext <<EOF
6800 #line 6801 "configure"
6801 #include "confdefs.h"
6802 /* System header to define __stub macros and hopefully few prototypes,
6803 which can conflict with char $ac_func(); below. */
6804 #include <assert.h>
6805 /* Override any gcc2 internal prototype to avoid an error. */
6806 /* We use char because int might match the return type of a gcc2
6807 builtin and then its argument prototype would still apply. */
6808 char $ac_func();
6809
6810 int main() {
6811
6812 /* The GNU C library defines this for functions which it implements
6813 to always fail with ENOSYS. Some functions are actually named
6814 something starting with __ and the normal name is an alias. */
6815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6816 choke me
6817 #else
6818 $ac_func();
6819 #endif
6820
6821 ; return 0; }
6822 EOF
6823 if { (eval echo configure:6824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6824 rm -rf conftest*
6825 eval "ac_cv_func_$ac_func=yes"
6826 else
6827 echo "configure: failed program was:" >&5
6828 cat conftest.$ac_ext >&5
6829 rm -rf conftest*
6830 eval "ac_cv_func_$ac_func=no"
6831 fi
6832 rm -f conftest*
6833 fi
6834
6835 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6836 echo "$ac_t""yes" 1>&6
6837 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6838 cat >> confdefs.h <<EOF
6839 #define $ac_tr_func 1
6840 EOF
6841
6842 else
6843 echo "$ac_t""no" 1>&6
6844 \
6845 ac_wfuncs=no
6846 fi
6847 done
6848
6849
6850 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6851 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6852 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6853 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6854 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6855 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6856 do
6857 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6858 echo "configure:6859: checking for $ac_func" >&5
6859 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6860 echo $ac_n "(cached) $ac_c" 1>&6
6861 else
6862 cat > conftest.$ac_ext <<EOF
6863 #line 6864 "configure"
6864 #include "confdefs.h"
6865 /* System header to define __stub macros and hopefully few prototypes,
6866 which can conflict with char $ac_func(); below. */
6867 #include <assert.h>
6868 /* Override any gcc2 internal prototype to avoid an error. */
6869 /* We use char because int might match the return type of a gcc2
6870 builtin and then its argument prototype would still apply. */
6871 char $ac_func();
6872
6873 int main() {
6874
6875 /* The GNU C library defines this for functions which it implements
6876 to always fail with ENOSYS. Some functions are actually named
6877 something starting with __ and the normal name is an alias. */
6878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6879 choke me
6880 #else
6881 $ac_func();
6882 #endif
6883
6884 ; return 0; }
6885 EOF
6886 if { (eval echo configure:6887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6887 rm -rf conftest*
6888 eval "ac_cv_func_$ac_func=yes"
6889 else
6890 echo "configure: failed program was:" >&5
6891 cat conftest.$ac_ext >&5
6892 rm -rf conftest*
6893 eval "ac_cv_func_$ac_func=no"
6894 fi
6895 rm -f conftest*
6896 fi
6897
6898 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6899 echo "$ac_t""yes" 1>&6
6900 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6901 cat >> confdefs.h <<EOF
6902 #define $ac_tr_func 1
6903 EOF
6904
6905 else
6906 echo "$ac_t""no" 1>&6
6907 \
6908 ac_wfuncs=no
6909 fi
6910 done
6911
6912
6913 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6914 echo "configure:6915: checking for ISO C99 wchar_t support" >&5
6915 if test x"$has_weof" = xyes &&
6916 test x"$has_wchar_minmax" = xyes &&
6917 test x"$ac_wfuncs" = xyes; then
6918 ac_isoC99_wchar_t=yes
6919 else
6920 ac_isoC99_wchar_t=no
6921 fi
6922 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6923
6924 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6925 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6926 echo "configure:6927: checking for iconv.h" >&5
6927 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6928 echo $ac_n "(cached) $ac_c" 1>&6
6929 else
6930 cat > conftest.$ac_ext <<EOF
6931 #line 6932 "configure"
6932 #include "confdefs.h"
6933 #include <iconv.h>
6934 EOF
6935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6936 { (eval echo configure:6937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6938 if test -z "$ac_err"; then
6939 rm -rf conftest*
6940 eval "ac_cv_header_$ac_safe=yes"
6941 else
6942 echo "$ac_err" >&5
6943 echo "configure: failed program was:" >&5
6944 cat conftest.$ac_ext >&5
6945 rm -rf conftest*
6946 eval "ac_cv_header_$ac_safe=no"
6947 fi
6948 rm -f conftest*
6949 fi
6950 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6951 echo "$ac_t""yes" 1>&6
6952 ac_has_iconv_h=yes
6953 else
6954 echo "$ac_t""no" 1>&6
6955 ac_has_iconv_h=no
6956 fi
6957
6958 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6959 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6960 echo "configure:6961: checking for langinfo.h" >&5
6961 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6962 echo $ac_n "(cached) $ac_c" 1>&6
6963 else
6964 cat > conftest.$ac_ext <<EOF
6965 #line 6966 "configure"
6966 #include "confdefs.h"
6967 #include <langinfo.h>
6968 EOF
6969 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6970 { (eval echo configure:6971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6971 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6972 if test -z "$ac_err"; then
6973 rm -rf conftest*
6974 eval "ac_cv_header_$ac_safe=yes"
6975 else
6976 echo "$ac_err" >&5
6977 echo "configure: failed program was:" >&5
6978 cat conftest.$ac_ext >&5
6979 rm -rf conftest*
6980 eval "ac_cv_header_$ac_safe=no"
6981 fi
6982 rm -f conftest*
6983 fi
6984 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6985 echo "$ac_t""yes" 1>&6
6986 ac_has_langinfo_h=yes
6987 else
6988 echo "$ac_t""no" 1>&6
6989 ac_has_langinfo_h=no
6990 fi
6991
6992
6993 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6994 echo "configure:6995: checking for iconv in -liconv" >&5
6995 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6997 echo $ac_n "(cached) $ac_c" 1>&6
6998 else
6999 ac_save_LIBS="$LIBS"
7000 LIBS="-liconv $LIBS"
7001 cat > conftest.$ac_ext <<EOF
7002 #line 7003 "configure"
7003 #include "confdefs.h"
7004 /* Override any gcc2 internal prototype to avoid an error. */
7005 /* We use char because int might match the return type of a gcc2
7006 builtin and then its argument prototype would still apply. */
7007 char iconv();
7008
7009 int main() {
7010 iconv()
7011 ; return 0; }
7012 EOF
7013 if { (eval echo configure:7014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7014 rm -rf conftest*
7015 eval "ac_cv_lib_$ac_lib_var=yes"
7016 else
7017 echo "configure: failed program was:" >&5
7018 cat conftest.$ac_ext >&5
7019 rm -rf conftest*
7020 eval "ac_cv_lib_$ac_lib_var=no"
7021 fi
7022 rm -f conftest*
7023 LIBS="$ac_save_LIBS"
7024
7025 fi
7026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7027 echo "$ac_t""yes" 1>&6
7028 libiconv="-liconv"
7029 else
7030 echo "$ac_t""no" 1>&6
7031 fi
7032
7033 ac_save_LIBS="$LIBS"
7034 LIBS="$LIBS $libiconv"
7035
7036 for ac_func in iconv_open iconv_close iconv nl_langinfo
7037 do
7038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7039 echo "configure:7040: checking for $ac_func" >&5
7040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7041 echo $ac_n "(cached) $ac_c" 1>&6
7042 else
7043 cat > conftest.$ac_ext <<EOF
7044 #line 7045 "configure"
7045 #include "confdefs.h"
7046 /* System header to define __stub macros and hopefully few prototypes,
7047 which can conflict with char $ac_func(); below. */
7048 #include <assert.h>
7049 /* Override any gcc2 internal prototype to avoid an error. */
7050 /* We use char because int might match the return type of a gcc2
7051 builtin and then its argument prototype would still apply. */
7052 char $ac_func();
7053
7054 int main() {
7055
7056 /* The GNU C library defines this for functions which it implements
7057 to always fail with ENOSYS. Some functions are actually named
7058 something starting with __ and the normal name is an alias. */
7059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7060 choke me
7061 #else
7062 $ac_func();
7063 #endif
7064
7065 ; return 0; }
7066 EOF
7067 if { (eval echo configure:7068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7068 rm -rf conftest*
7069 eval "ac_cv_func_$ac_func=yes"
7070 else
7071 echo "configure: failed program was:" >&5
7072 cat conftest.$ac_ext >&5
7073 rm -rf conftest*
7074 eval "ac_cv_func_$ac_func=no"
7075 fi
7076 rm -f conftest*
7077 fi
7078
7079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7080 echo "$ac_t""yes" 1>&6
7081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7082 cat >> confdefs.h <<EOF
7083 #define $ac_tr_func 1
7084 EOF
7085 \
7086 ac_XPG2funcs=yes
7087 else
7088 echo "$ac_t""no" 1>&6
7089 ac_XPG2funcs=no
7090 fi
7091 done
7092
7093
7094 LIBS="$ac_save_LIBS"
7095
7096 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7097 echo "configure:7098: checking for XPG2 wchar_t support" >&5
7098 if test x"$ac_has_iconv_h" = xyes &&
7099 test x"$ac_has_langinfo_h" = xyes &&
7100 test x"$ac_XPG2funcs" = xyes; then
7101 ac_XPG2_wchar_t=yes
7102 else
7103 ac_XPG2_wchar_t=no
7104 fi
7105 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7106
7107 if test x"$ac_isoC99_wchar_t" = xyes &&
7108 test x"$ac_XPG2_wchar_t" = xyes; then
7109 cat >> confdefs.h <<\EOF
7110 #define _GLIBCPP_USE_WCHAR_T 1
7111 EOF
7112
7113 enable_wchar_t=yes
7114 fi
7115 fi
7116 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7117 echo "configure:7118: checking for enabled wchar_t specializations" >&5
7118 echo "$ac_t""$enable_wchar_t" 1>&6
7119
7120
7121 if test "$enable_wchar_t" = yes; then
7122 GLIBCPP_TEST_WCHAR_T_TRUE=
7123 GLIBCPP_TEST_WCHAR_T_FALSE='#'
7124 else
7125 GLIBCPP_TEST_WCHAR_T_TRUE='#'
7126 GLIBCPP_TEST_WCHAR_T_FALSE=
7127 fi
7128
7129 os_include_dir="os/bsd/netbsd"
7130 cat >> confdefs.h <<\EOF
7131 #define HAVE_COPYSIGN 1
7132 EOF
7133
7134 cat >> confdefs.h <<\EOF
7135 #define HAVE_COPYSIGNF 1
7136 EOF
7137
7138 cat >> confdefs.h <<\EOF
7139 #define HAVE_FINITEF 1
7140 EOF
7141
7142 cat >> confdefs.h <<\EOF
7143 #define HAVE_FINITE 1
7144 EOF
7145
7146 cat >> confdefs.h <<\EOF
7147 #define HAVE_FREXPF 1
7148 EOF
7149
7150 cat >> confdefs.h <<\EOF
7151 #define HAVE_HYPOTF 1
7152 EOF
7153
7154 cat >> confdefs.h <<\EOF
7155 #define HAVE_ISINF 1
7156 EOF
7157
7158 cat >> confdefs.h <<\EOF
7159 #define HAVE_ISINFF 1
7160 EOF
7161
7162 cat >> confdefs.h <<\EOF
7163 #define HAVE_ISNAN 1
7164 EOF
7165
7166 cat >> confdefs.h <<\EOF
7167 #define HAVE_ISNANF 1
7168 EOF
7169
7170 if test x"long_double_math_on_this_cpu" = x"yes"; then
7171 cat >> confdefs.h <<\EOF
7172 #define HAVE_FINITEL 1
7173 EOF
7174
7175 cat >> confdefs.h <<\EOF
7176 #define HAVE_ISINFL 1
7177 EOF
7178
7179 cat >> confdefs.h <<\EOF
7180 #define HAVE_ISNANL 1
7181 EOF
7182
7183 fi
7184 ;;
7185 *-freebsd*)
7186 # Check for available headers.
7187 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
7188 machine/endian.h machine/param.h sys/machine.h sys/types.h \
7189 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
7190 sys/time.h unistd.h
7191 do
7192 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7193 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7194 echo "configure:7195: checking for $ac_hdr" >&5
7195 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7196 echo $ac_n "(cached) $ac_c" 1>&6
7197 else
7198 cat > conftest.$ac_ext <<EOF
7199 #line 7200 "configure"
7200 #include "confdefs.h"
7201 #include <$ac_hdr>
7202 EOF
7203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7204 { (eval echo configure:7205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7206 if test -z "$ac_err"; then
7207 rm -rf conftest*
7208 eval "ac_cv_header_$ac_safe=yes"
7209 else
7210 echo "$ac_err" >&5
7211 echo "configure: failed program was:" >&5
7212 cat conftest.$ac_ext >&5
7213 rm -rf conftest*
7214 eval "ac_cv_header_$ac_safe=no"
7215 fi
7216 rm -f conftest*
7217 fi
7218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7219 echo "$ac_t""yes" 1>&6
7220 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7221 cat >> confdefs.h <<EOF
7222 #define $ac_tr_hdr 1
7223 EOF
7224
7225 else
7226 echo "$ac_t""no" 1>&6
7227 fi
7228 done
7229
7230 SECTION_FLAGS='-ffunction-sections -fdata-sections'
7231
7232
7233 # If we're not using GNU ld, then there's no point in even trying these
7234 # tests. Check for that first. We should have already tested for gld
7235 # by now (in libtool), but require it now just to be safe...
7236 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7237 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7238
7239
7240 # The name set by libtool depends on the version of libtool. Shame on us
7241 # for depending on an impl detail, but c'est la vie. Older versions used
7242 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7243 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7244 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7245 # set (hence we're using an older libtool), then set it.
7246 if test x${with_gnu_ld+set} != xset; then
7247 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7248 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7249 with_gnu_ld=no
7250 else
7251 with_gnu_ld=$ac_cv_prog_gnu_ld
7252 fi
7253 fi
7254
7255 # Start by getting the version number. I think the libtool test already
7256 # does some of this, but throws away the result.
7257
7258 ldver=`$LD --version 2>/dev/null | head -1 | \
7259 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7260
7261 glibcpp_gnu_ld_version=`echo $ldver | \
7262 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7263
7264 # Set --gc-sections.
7265 if test "$with_gnu_ld" = "notbroken"; then
7266 # GNU ld it is! Joy and bunny rabbits!
7267
7268 # All these tests are for C++; save the language and the compiler flags.
7269 # Need to do this so that g++ won't try to link in libstdc++
7270 ac_test_CFLAGS="${CFLAGS+set}"
7271 ac_save_CFLAGS="$CFLAGS"
7272 CFLAGS='-x c++ -Wl,--gc-sections'
7273
7274 # Check for -Wl,--gc-sections
7275 # XXX This test is broken at the moment, as symbols required for
7276 # linking are now in libsupc++ (not built yet.....). In addition,
7277 # this test has cored on solaris in the past. In addition,
7278 # --gc-sections doesn't really work at the moment (keeps on discarding
7279 # used sections, first .eh_frame and now some of the glibc sections for
7280 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7281 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7282 echo "configure:7283: checking for ld that supports -Wl,--gc-sections" >&5
7283 if test "$cross_compiling" = yes; then
7284 ac_sectionLDflags=yes
7285 else
7286 cat > conftest.$ac_ext <<EOF
7287 #line 7288 "configure"
7288 #include "confdefs.h"
7289
7290 int main(void)
7291 {
7292 try { throw 1; }
7293 catch (...) { };
7294 return 0;
7295 }
7296
7297 EOF
7298 if { (eval echo configure:7299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7299 then
7300 ac_sectionLDflags=yes
7301 else
7302 echo "configure: failed program was:" >&5
7303 cat conftest.$ac_ext >&5
7304 rm -fr conftest*
7305 ac_sectionLDflags=no
7306 fi
7307 rm -fr conftest*
7308 fi
7309
7310 if test "$ac_test_CFLAGS" = set; then
7311 CFLAGS="$ac_save_CFLAGS"
7312 else
7313 # this is the suspicious part
7314 CFLAGS=''
7315 fi
7316 if test "$ac_sectionLDflags" = "yes"; then
7317 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7318 fi
7319 echo "$ac_t""$ac_sectionLDflags" 1>&6
7320 fi
7321
7322 # Set linker optimization flags.
7323 if test x"$with_gnu_ld" = x"yes"; then
7324 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7325 fi
7326
7327
7328
7329
7330
7331 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7332 echo "configure:7333: checking for main in -lm" >&5
7333 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7334 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7335 echo $ac_n "(cached) $ac_c" 1>&6
7336 else
7337 ac_save_LIBS="$LIBS"
7338 LIBS="-lm $LIBS"
7339 cat > conftest.$ac_ext <<EOF
7340 #line 7341 "configure"
7341 #include "confdefs.h"
7342
7343 int main() {
7344 main()
7345 ; return 0; }
7346 EOF
7347 if { (eval echo configure:7348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7348 rm -rf conftest*
7349 eval "ac_cv_lib_$ac_lib_var=yes"
7350 else
7351 echo "configure: failed program was:" >&5
7352 cat conftest.$ac_ext >&5
7353 rm -rf conftest*
7354 eval "ac_cv_lib_$ac_lib_var=no"
7355 fi
7356 rm -f conftest*
7357 LIBS="$ac_save_LIBS"
7358
7359 fi
7360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7361 echo "$ac_t""yes" 1>&6
7362 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7363 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7364 cat >> confdefs.h <<EOF
7365 #define $ac_tr_lib 1
7366 EOF
7367
7368 LIBS="-lm $LIBS"
7369
7370 else
7371 echo "$ac_t""no" 1>&6
7372 fi
7373
7374 for ac_func in nan copysignf
7375 do
7376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7377 echo "configure:7378: checking for $ac_func" >&5
7378 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7379 echo $ac_n "(cached) $ac_c" 1>&6
7380 else
7381 cat > conftest.$ac_ext <<EOF
7382 #line 7383 "configure"
7383 #include "confdefs.h"
7384 /* System header to define __stub macros and hopefully few prototypes,
7385 which can conflict with char $ac_func(); below. */
7386 #include <assert.h>
7387 /* Override any gcc2 internal prototype to avoid an error. */
7388 /* We use char because int might match the return type of a gcc2
7389 builtin and then its argument prototype would still apply. */
7390 char $ac_func();
7391
7392 int main() {
7393
7394 /* The GNU C library defines this for functions which it implements
7395 to always fail with ENOSYS. Some functions are actually named
7396 something starting with __ and the normal name is an alias. */
7397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7398 choke me
7399 #else
7400 $ac_func();
7401 #endif
7402
7403 ; return 0; }
7404 EOF
7405 if { (eval echo configure:7406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7406 rm -rf conftest*
7407 eval "ac_cv_func_$ac_func=yes"
7408 else
7409 echo "configure: failed program was:" >&5
7410 cat conftest.$ac_ext >&5
7411 rm -rf conftest*
7412 eval "ac_cv_func_$ac_func=no"
7413 fi
7414 rm -f conftest*
7415 fi
7416
7417 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7418 echo "$ac_t""yes" 1>&6
7419 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7420 cat >> confdefs.h <<EOF
7421 #define $ac_tr_func 1
7422 EOF
7423
7424 else
7425 echo "$ac_t""no" 1>&6
7426 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7427 fi
7428 done
7429
7430
7431 for ac_func in __signbit
7432 do
7433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7434 echo "configure:7435: checking for $ac_func" >&5
7435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7436 echo $ac_n "(cached) $ac_c" 1>&6
7437 else
7438 cat > conftest.$ac_ext <<EOF
7439 #line 7440 "configure"
7440 #include "confdefs.h"
7441 /* System header to define __stub macros and hopefully few prototypes,
7442 which can conflict with char $ac_func(); below. */
7443 #include <assert.h>
7444 /* Override any gcc2 internal prototype to avoid an error. */
7445 /* We use char because int might match the return type of a gcc2
7446 builtin and then its argument prototype would still apply. */
7447 char $ac_func();
7448
7449 int main() {
7450
7451 /* The GNU C library defines this for functions which it implements
7452 to always fail with ENOSYS. Some functions are actually named
7453 something starting with __ and the normal name is an alias. */
7454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7455 choke me
7456 #else
7457 $ac_func();
7458 #endif
7459
7460 ; return 0; }
7461 EOF
7462 if { (eval echo configure:7463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7463 rm -rf conftest*
7464 eval "ac_cv_func_$ac_func=yes"
7465 else
7466 echo "configure: failed program was:" >&5
7467 cat conftest.$ac_ext >&5
7468 rm -rf conftest*
7469 eval "ac_cv_func_$ac_func=no"
7470 fi
7471 rm -f conftest*
7472 fi
7473
7474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7475 echo "$ac_t""yes" 1>&6
7476 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7477 cat >> confdefs.h <<EOF
7478 #define $ac_tr_func 1
7479 EOF
7480
7481 else
7482 echo "$ac_t""no" 1>&6
7483 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7484 fi
7485 done
7486
7487 for ac_func in __signbitf
7488 do
7489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7490 echo "configure:7491: checking for $ac_func" >&5
7491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7492 echo $ac_n "(cached) $ac_c" 1>&6
7493 else
7494 cat > conftest.$ac_ext <<EOF
7495 #line 7496 "configure"
7496 #include "confdefs.h"
7497 /* System header to define __stub macros and hopefully few prototypes,
7498 which can conflict with char $ac_func(); below. */
7499 #include <assert.h>
7500 /* Override any gcc2 internal prototype to avoid an error. */
7501 /* We use char because int might match the return type of a gcc2
7502 builtin and then its argument prototype would still apply. */
7503 char $ac_func();
7504
7505 int main() {
7506
7507 /* The GNU C library defines this for functions which it implements
7508 to always fail with ENOSYS. Some functions are actually named
7509 something starting with __ and the normal name is an alias. */
7510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7511 choke me
7512 #else
7513 $ac_func();
7514 #endif
7515
7516 ; return 0; }
7517 EOF
7518 if { (eval echo configure:7519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7519 rm -rf conftest*
7520 eval "ac_cv_func_$ac_func=yes"
7521 else
7522 echo "configure: failed program was:" >&5
7523 cat conftest.$ac_ext >&5
7524 rm -rf conftest*
7525 eval "ac_cv_func_$ac_func=no"
7526 fi
7527 rm -f conftest*
7528 fi
7529
7530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7531 echo "$ac_t""yes" 1>&6
7532 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7533 cat >> confdefs.h <<EOF
7534 #define $ac_tr_func 1
7535 EOF
7536
7537 else
7538 echo "$ac_t""no" 1>&6
7539 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7540 fi
7541 done
7542
7543
7544 if test x$ac_cv_func_copysignl = x"yes"; then
7545 for ac_func in __signbitl
7546 do
7547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7548 echo "configure:7549: checking for $ac_func" >&5
7549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7550 echo $ac_n "(cached) $ac_c" 1>&6
7551 else
7552 cat > conftest.$ac_ext <<EOF
7553 #line 7554 "configure"
7554 #include "confdefs.h"
7555 /* System header to define __stub macros and hopefully few prototypes,
7556 which can conflict with char $ac_func(); below. */
7557 #include <assert.h>
7558 /* Override any gcc2 internal prototype to avoid an error. */
7559 /* We use char because int might match the return type of a gcc2
7560 builtin and then its argument prototype would still apply. */
7561 char $ac_func();
7562
7563 int main() {
7564
7565 /* The GNU C library defines this for functions which it implements
7566 to always fail with ENOSYS. Some functions are actually named
7567 something starting with __ and the normal name is an alias. */
7568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7569 choke me
7570 #else
7571 $ac_func();
7572 #endif
7573
7574 ; return 0; }
7575 EOF
7576 if { (eval echo configure:7577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7577 rm -rf conftest*
7578 eval "ac_cv_func_$ac_func=yes"
7579 else
7580 echo "configure: failed program was:" >&5
7581 cat conftest.$ac_ext >&5
7582 rm -rf conftest*
7583 eval "ac_cv_func_$ac_func=no"
7584 fi
7585 rm -f conftest*
7586 fi
7587
7588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7589 echo "$ac_t""yes" 1>&6
7590 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7591 cat >> confdefs.h <<EOF
7592 #define $ac_tr_func 1
7593 EOF
7594
7595 else
7596 echo "$ac_t""no" 1>&6
7597 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7598 fi
7599 done
7600
7601 fi
7602
7603 if test -n "$LIBMATHOBJS"; then
7604 need_libmath=yes
7605 fi
7606
7607
7608
7609 if test "$need_libmath" = yes; then
7610 GLIBCPP_BUILD_LIBMATH_TRUE=
7611 GLIBCPP_BUILD_LIBMATH_FALSE='#'
7612 else
7613 GLIBCPP_BUILD_LIBMATH_TRUE='#'
7614 GLIBCPP_BUILD_LIBMATH_FALSE=
7615 fi
7616
7617
7618 enable_wchar_t=no
7619
7620 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7621 echo "configure:7622: checking for mbstate_t" >&5
7622 cat > conftest.$ac_ext <<EOF
7623 #line 7624 "configure"
7624 #include "confdefs.h"
7625 #include <wchar.h>
7626 int main() {
7627 mbstate_t teststate;
7628 ; return 0; }
7629 EOF
7630 if { (eval echo configure:7631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7631 rm -rf conftest*
7632 have_mbstate_t=yes
7633 else
7634 echo "configure: failed program was:" >&5
7635 cat conftest.$ac_ext >&5
7636 rm -rf conftest*
7637 have_mbstate_t=no
7638 fi
7639 rm -f conftest*
7640 echo "$ac_t""$have_mbstate_t" 1>&6
7641 if test x"$have_mbstate_t" = xyes; then
7642 cat >> confdefs.h <<\EOF
7643 #define HAVE_MBSTATE_T 1
7644 EOF
7645
7646 fi
7647
7648 for ac_hdr in wchar.h
7649 do
7650 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7651 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7652 echo "configure:7653: checking for $ac_hdr" >&5
7653 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7654 echo $ac_n "(cached) $ac_c" 1>&6
7655 else
7656 cat > conftest.$ac_ext <<EOF
7657 #line 7658 "configure"
7658 #include "confdefs.h"
7659 #include <$ac_hdr>
7660 EOF
7661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7662 { (eval echo configure:7663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7664 if test -z "$ac_err"; then
7665 rm -rf conftest*
7666 eval "ac_cv_header_$ac_safe=yes"
7667 else
7668 echo "$ac_err" >&5
7669 echo "configure: failed program was:" >&5
7670 cat conftest.$ac_ext >&5
7671 rm -rf conftest*
7672 eval "ac_cv_header_$ac_safe=no"
7673 fi
7674 rm -f conftest*
7675 fi
7676 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7677 echo "$ac_t""yes" 1>&6
7678 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7679 cat >> confdefs.h <<EOF
7680 #define $ac_tr_hdr 1
7681 EOF
7682 ac_has_wchar_h=yes
7683 else
7684 echo "$ac_t""no" 1>&6
7685 ac_has_wchar_h=no
7686 fi
7687 done
7688
7689 for ac_hdr in wctype.h
7690 do
7691 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7692 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7693 echo "configure:7694: checking for $ac_hdr" >&5
7694 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7695 echo $ac_n "(cached) $ac_c" 1>&6
7696 else
7697 cat > conftest.$ac_ext <<EOF
7698 #line 7699 "configure"
7699 #include "confdefs.h"
7700 #include <$ac_hdr>
7701 EOF
7702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7703 { (eval echo configure:7704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7704 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7705 if test -z "$ac_err"; then
7706 rm -rf conftest*
7707 eval "ac_cv_header_$ac_safe=yes"
7708 else
7709 echo "$ac_err" >&5
7710 echo "configure: failed program was:" >&5
7711 cat conftest.$ac_ext >&5
7712 rm -rf conftest*
7713 eval "ac_cv_header_$ac_safe=no"
7714 fi
7715 rm -f conftest*
7716 fi
7717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7718 echo "$ac_t""yes" 1>&6
7719 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7720 cat >> confdefs.h <<EOF
7721 #define $ac_tr_hdr 1
7722 EOF
7723 ac_has_wctype_h=yes
7724 else
7725 echo "$ac_t""no" 1>&6
7726 ac_has_wctype_h=no
7727 fi
7728 done
7729
7730
7731 if test x"$ac_has_wchar_h" = xyes &&
7732 test x"$ac_has_wctype_h" = xyes &&
7733 test x"$enable_c_mbchar" != xno; then
7734
7735 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7736 echo "configure:7737: checking for WCHAR_MIN and WCHAR_MAX" >&5
7737 cat > conftest.$ac_ext <<EOF
7738 #line 7739 "configure"
7739 #include "confdefs.h"
7740 #include <wchar.h>
7741 int main() {
7742 int i = WCHAR_MIN; int j = WCHAR_MAX;
7743 ; return 0; }
7744 EOF
7745 if { (eval echo configure:7746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7746 rm -rf conftest*
7747 has_wchar_minmax=yes
7748 else
7749 echo "configure: failed program was:" >&5
7750 cat conftest.$ac_ext >&5
7751 rm -rf conftest*
7752 has_wchar_minmax=no
7753 fi
7754 rm -f conftest*
7755 echo "$ac_t""$has_wchar_minmax" 1>&6
7756
7757 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7758 echo "configure:7759: checking for WEOF" >&5
7759 cat > conftest.$ac_ext <<EOF
7760 #line 7761 "configure"
7761 #include "confdefs.h"
7762
7763 #include <wchar.h>
7764 #include <stddef.h>
7765 int main() {
7766 wint_t i = WEOF;
7767 ; return 0; }
7768 EOF
7769 if { (eval echo configure:7770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7770 rm -rf conftest*
7771 has_weof=yes
7772 else
7773 echo "configure: failed program was:" >&5
7774 cat conftest.$ac_ext >&5
7775 rm -rf conftest*
7776 has_weof=no
7777 fi
7778 rm -f conftest*
7779 echo "$ac_t""$has_weof" 1>&6
7780
7781 ac_wfuncs=yes
7782 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7783 do
7784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7785 echo "configure:7786: checking for $ac_func" >&5
7786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7787 echo $ac_n "(cached) $ac_c" 1>&6
7788 else
7789 cat > conftest.$ac_ext <<EOF
7790 #line 7791 "configure"
7791 #include "confdefs.h"
7792 /* System header to define __stub macros and hopefully few prototypes,
7793 which can conflict with char $ac_func(); below. */
7794 #include <assert.h>
7795 /* Override any gcc2 internal prototype to avoid an error. */
7796 /* We use char because int might match the return type of a gcc2
7797 builtin and then its argument prototype would still apply. */
7798 char $ac_func();
7799
7800 int main() {
7801
7802 /* The GNU C library defines this for functions which it implements
7803 to always fail with ENOSYS. Some functions are actually named
7804 something starting with __ and the normal name is an alias. */
7805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7806 choke me
7807 #else
7808 $ac_func();
7809 #endif
7810
7811 ; return 0; }
7812 EOF
7813 if { (eval echo configure:7814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7814 rm -rf conftest*
7815 eval "ac_cv_func_$ac_func=yes"
7816 else
7817 echo "configure: failed program was:" >&5
7818 cat conftest.$ac_ext >&5
7819 rm -rf conftest*
7820 eval "ac_cv_func_$ac_func=no"
7821 fi
7822 rm -f conftest*
7823 fi
7824
7825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7826 echo "$ac_t""yes" 1>&6
7827 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7828 cat >> confdefs.h <<EOF
7829 #define $ac_tr_func 1
7830 EOF
7831
7832 else
7833 echo "$ac_t""no" 1>&6
7834 \
7835 ac_wfuncs=no
7836 fi
7837 done
7838
7839
7840 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
7841 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7842 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7843 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7844 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7845 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7846 do
7847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7848 echo "configure:7849: checking for $ac_func" >&5
7849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7850 echo $ac_n "(cached) $ac_c" 1>&6
7851 else
7852 cat > conftest.$ac_ext <<EOF
7853 #line 7854 "configure"
7854 #include "confdefs.h"
7855 /* System header to define __stub macros and hopefully few prototypes,
7856 which can conflict with char $ac_func(); below. */
7857 #include <assert.h>
7858 /* Override any gcc2 internal prototype to avoid an error. */
7859 /* We use char because int might match the return type of a gcc2
7860 builtin and then its argument prototype would still apply. */
7861 char $ac_func();
7862
7863 int main() {
7864
7865 /* The GNU C library defines this for functions which it implements
7866 to always fail with ENOSYS. Some functions are actually named
7867 something starting with __ and the normal name is an alias. */
7868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7869 choke me
7870 #else
7871 $ac_func();
7872 #endif
7873
7874 ; return 0; }
7875 EOF
7876 if { (eval echo configure:7877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7877 rm -rf conftest*
7878 eval "ac_cv_func_$ac_func=yes"
7879 else
7880 echo "configure: failed program was:" >&5
7881 cat conftest.$ac_ext >&5
7882 rm -rf conftest*
7883 eval "ac_cv_func_$ac_func=no"
7884 fi
7885 rm -f conftest*
7886 fi
7887
7888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7889 echo "$ac_t""yes" 1>&6
7890 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7891 cat >> confdefs.h <<EOF
7892 #define $ac_tr_func 1
7893 EOF
7894
7895 else
7896 echo "$ac_t""no" 1>&6
7897 \
7898 ac_wfuncs=no
7899 fi
7900 done
7901
7902
7903 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7904 echo "configure:7905: checking for ISO C99 wchar_t support" >&5
7905 if test x"$has_weof" = xyes &&
7906 test x"$has_wchar_minmax" = xyes &&
7907 test x"$ac_wfuncs" = xyes; then
7908 ac_isoC99_wchar_t=yes
7909 else
7910 ac_isoC99_wchar_t=no
7911 fi
7912 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7913
7914 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7915 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7916 echo "configure:7917: checking for iconv.h" >&5
7917 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 #include <iconv.h>
7924 EOF
7925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7926 { (eval echo configure:7927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7928 if test -z "$ac_err"; then
7929 rm -rf conftest*
7930 eval "ac_cv_header_$ac_safe=yes"
7931 else
7932 echo "$ac_err" >&5
7933 echo "configure: failed program was:" >&5
7934 cat conftest.$ac_ext >&5
7935 rm -rf conftest*
7936 eval "ac_cv_header_$ac_safe=no"
7937 fi
7938 rm -f conftest*
7939 fi
7940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7941 echo "$ac_t""yes" 1>&6
7942 ac_has_iconv_h=yes
7943 else
7944 echo "$ac_t""no" 1>&6
7945 ac_has_iconv_h=no
7946 fi
7947
7948 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7949 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7950 echo "configure:7951: checking for langinfo.h" >&5
7951 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7952 echo $ac_n "(cached) $ac_c" 1>&6
7953 else
7954 cat > conftest.$ac_ext <<EOF
7955 #line 7956 "configure"
7956 #include "confdefs.h"
7957 #include <langinfo.h>
7958 EOF
7959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7960 { (eval echo configure:7961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7962 if test -z "$ac_err"; then
7963 rm -rf conftest*
7964 eval "ac_cv_header_$ac_safe=yes"
7965 else
7966 echo "$ac_err" >&5
7967 echo "configure: failed program was:" >&5
7968 cat conftest.$ac_ext >&5
7969 rm -rf conftest*
7970 eval "ac_cv_header_$ac_safe=no"
7971 fi
7972 rm -f conftest*
7973 fi
7974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7975 echo "$ac_t""yes" 1>&6
7976 ac_has_langinfo_h=yes
7977 else
7978 echo "$ac_t""no" 1>&6
7979 ac_has_langinfo_h=no
7980 fi
7981
7982
7983 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7984 echo "configure:7985: checking for iconv in -liconv" >&5
7985 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7986 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7987 echo $ac_n "(cached) $ac_c" 1>&6
7988 else
7989 ac_save_LIBS="$LIBS"
7990 LIBS="-liconv $LIBS"
7991 cat > conftest.$ac_ext <<EOF
7992 #line 7993 "configure"
7993 #include "confdefs.h"
7994 /* Override any gcc2 internal prototype to avoid an error. */
7995 /* We use char because int might match the return type of a gcc2
7996 builtin and then its argument prototype would still apply. */
7997 char iconv();
7998
7999 int main() {
8000 iconv()
8001 ; return 0; }
8002 EOF
8003 if { (eval echo configure:8004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8004 rm -rf conftest*
8005 eval "ac_cv_lib_$ac_lib_var=yes"
8006 else
8007 echo "configure: failed program was:" >&5
8008 cat conftest.$ac_ext >&5
8009 rm -rf conftest*
8010 eval "ac_cv_lib_$ac_lib_var=no"
8011 fi
8012 rm -f conftest*
8013 LIBS="$ac_save_LIBS"
8014
8015 fi
8016 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8017 echo "$ac_t""yes" 1>&6
8018 libiconv="-liconv"
8019 else
8020 echo "$ac_t""no" 1>&6
8021 fi
8022
8023 ac_save_LIBS="$LIBS"
8024 LIBS="$LIBS $libiconv"
8025
8026 for ac_func in iconv_open iconv_close iconv nl_langinfo
8027 do
8028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8029 echo "configure:8030: checking for $ac_func" >&5
8030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8031 echo $ac_n "(cached) $ac_c" 1>&6
8032 else
8033 cat > conftest.$ac_ext <<EOF
8034 #line 8035 "configure"
8035 #include "confdefs.h"
8036 /* System header to define __stub macros and hopefully few prototypes,
8037 which can conflict with char $ac_func(); below. */
8038 #include <assert.h>
8039 /* Override any gcc2 internal prototype to avoid an error. */
8040 /* We use char because int might match the return type of a gcc2
8041 builtin and then its argument prototype would still apply. */
8042 char $ac_func();
8043
8044 int main() {
8045
8046 /* The GNU C library defines this for functions which it implements
8047 to always fail with ENOSYS. Some functions are actually named
8048 something starting with __ and the normal name is an alias. */
8049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8050 choke me
8051 #else
8052 $ac_func();
8053 #endif
8054
8055 ; return 0; }
8056 EOF
8057 if { (eval echo configure:8058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8058 rm -rf conftest*
8059 eval "ac_cv_func_$ac_func=yes"
8060 else
8061 echo "configure: failed program was:" >&5
8062 cat conftest.$ac_ext >&5
8063 rm -rf conftest*
8064 eval "ac_cv_func_$ac_func=no"
8065 fi
8066 rm -f conftest*
8067 fi
8068
8069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8070 echo "$ac_t""yes" 1>&6
8071 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8072 cat >> confdefs.h <<EOF
8073 #define $ac_tr_func 1
8074 EOF
8075 \
8076 ac_XPG2funcs=yes
8077 else
8078 echo "$ac_t""no" 1>&6
8079 ac_XPG2funcs=no
8080 fi
8081 done
8082
8083
8084 LIBS="$ac_save_LIBS"
8085
8086 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8087 echo "configure:8088: checking for XPG2 wchar_t support" >&5
8088 if test x"$ac_has_iconv_h" = xyes &&
8089 test x"$ac_has_langinfo_h" = xyes &&
8090 test x"$ac_XPG2funcs" = xyes; then
8091 ac_XPG2_wchar_t=yes
8092 else
8093 ac_XPG2_wchar_t=no
8094 fi
8095 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8096
8097 if test x"$ac_isoC99_wchar_t" = xyes &&
8098 test x"$ac_XPG2_wchar_t" = xyes; then
8099 cat >> confdefs.h <<\EOF
8100 #define _GLIBCPP_USE_WCHAR_T 1
8101 EOF
8102
8103 enable_wchar_t=yes
8104 fi
8105 fi
8106 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8107 echo "configure:8108: checking for enabled wchar_t specializations" >&5
8108 echo "$ac_t""$enable_wchar_t" 1>&6
8109
8110
8111 if test "$enable_wchar_t" = yes; then
8112 GLIBCPP_TEST_WCHAR_T_TRUE=
8113 GLIBCPP_TEST_WCHAR_T_FALSE='#'
8114 else
8115 GLIBCPP_TEST_WCHAR_T_TRUE='#'
8116 GLIBCPP_TEST_WCHAR_T_FALSE=
8117 fi
8118
8119 os_include_dir="os/bsd/freebsd"
8120 cat >> confdefs.h <<\EOF
8121 #define HAVE_LC_MESSAGES 1
8122 EOF
8123
8124 cat >> confdefs.h <<\EOF
8125 #define HAVE_DRAND48 1
8126 EOF
8127
8128 cat >> confdefs.h <<\EOF
8129 #define HAVE_GETPAGESIZE 1
8130 EOF
8131
8132 cat >> confdefs.h <<\EOF
8133 #define HAVE_SETENV 1
8134 EOF
8135
8136 cat >> confdefs.h <<\EOF
8137 #define HAVE_SIGSETJMP 1
8138 EOF
8139
8140 cat >> confdefs.h <<\EOF
8141 #define HAVE_COPYSIGN 1
8142 EOF
8143
8144 cat >> confdefs.h <<\EOF
8145 #define HAVE_COPYSIGNF 1
8146 EOF
8147
8148 cat >> confdefs.h <<\EOF
8149 #define HAVE_FINITEF 1
8150 EOF
8151
8152 cat >> confdefs.h <<\EOF
8153 #define HAVE_FINITE 1
8154 EOF
8155
8156 cat >> confdefs.h <<\EOF
8157 #define HAVE_FREXPF 1
8158 EOF
8159
8160 cat >> confdefs.h <<\EOF
8161 #define HAVE_HYPOT 1
8162 EOF
8163
8164 cat >> confdefs.h <<\EOF
8165 #define HAVE_HYPOTF 1
8166 EOF
8167
8168 cat >> confdefs.h <<\EOF
8169 #define HAVE_ISINF 1
8170 EOF
8171
8172 cat >> confdefs.h <<\EOF
8173 #define HAVE_ISNAN 1
8174 EOF
8175
8176 cat >> confdefs.h <<\EOF
8177 #define HAVE_ISNANF 1
8178 EOF
8179
8180 if test x"long_double_math_on_this_cpu" = x"yes"; then
8181 cat >> confdefs.h <<\EOF
8182 #define HAVE_FINITEL 1
8183 EOF
8184
8185 cat >> confdefs.h <<\EOF
8186 #define HAVE_ISINFL 1
8187 EOF
8188
8189 cat >> confdefs.h <<\EOF
8190 #define HAVE_ISNANL 1
8191 EOF
8192
8193 fi
8194 ;;
8195 *-mingw32*)
8196 for ac_hdr in sys/types.h locale.h float.h
8197 do
8198 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8199 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8200 echo "configure:8201: checking for $ac_hdr" >&5
8201 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8202 echo $ac_n "(cached) $ac_c" 1>&6
8203 else
8204 cat > conftest.$ac_ext <<EOF
8205 #line 8206 "configure"
8206 #include "confdefs.h"
8207 #include <$ac_hdr>
8208 EOF
8209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8210 { (eval echo configure:8211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8212 if test -z "$ac_err"; then
8213 rm -rf conftest*
8214 eval "ac_cv_header_$ac_safe=yes"
8215 else
8216 echo "$ac_err" >&5
8217 echo "configure: failed program was:" >&5
8218 cat conftest.$ac_ext >&5
8219 rm -rf conftest*
8220 eval "ac_cv_header_$ac_safe=no"
8221 fi
8222 rm -f conftest*
8223 fi
8224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8225 echo "$ac_t""yes" 1>&6
8226 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8227 cat >> confdefs.h <<EOF
8228 #define $ac_tr_hdr 1
8229 EOF
8230
8231 else
8232 echo "$ac_t""no" 1>&6
8233 fi
8234 done
8235
8236
8237 # If we're not using GNU ld, then there's no point in even trying these
8238 # tests. Check for that first. We should have already tested for gld
8239 # by now (in libtool), but require it now just to be safe...
8240 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8241 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8242
8243
8244 # The name set by libtool depends on the version of libtool. Shame on us
8245 # for depending on an impl detail, but c'est la vie. Older versions used
8246 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8247 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8248 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
8249 # set (hence we're using an older libtool), then set it.
8250 if test x${with_gnu_ld+set} != xset; then
8251 if test x${ac_cv_prog_gnu_ld+set} != xset; then
8252 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
8253 with_gnu_ld=no
8254 else
8255 with_gnu_ld=$ac_cv_prog_gnu_ld
8256 fi
8257 fi
8258
8259 # Start by getting the version number. I think the libtool test already
8260 # does some of this, but throws away the result.
8261
8262 ldver=`$LD --version 2>/dev/null | head -1 | \
8263 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8264
8265 glibcpp_gnu_ld_version=`echo $ldver | \
8266 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8267
8268 # Set --gc-sections.
8269 if test "$with_gnu_ld" = "notbroken"; then
8270 # GNU ld it is! Joy and bunny rabbits!
8271
8272 # All these tests are for C++; save the language and the compiler flags.
8273 # Need to do this so that g++ won't try to link in libstdc++
8274 ac_test_CFLAGS="${CFLAGS+set}"
8275 ac_save_CFLAGS="$CFLAGS"
8276 CFLAGS='-x c++ -Wl,--gc-sections'
8277
8278 # Check for -Wl,--gc-sections
8279 # XXX This test is broken at the moment, as symbols required for
8280 # linking are now in libsupc++ (not built yet.....). In addition,
8281 # this test has cored on solaris in the past. In addition,
8282 # --gc-sections doesn't really work at the moment (keeps on discarding
8283 # used sections, first .eh_frame and now some of the glibc sections for
8284 # iconv). Bzzzzt. Thanks for playing, maybe next time.
8285 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8286 echo "configure:8287: checking for ld that supports -Wl,--gc-sections" >&5
8287 if test "$cross_compiling" = yes; then
8288 ac_sectionLDflags=yes
8289 else
8290 cat > conftest.$ac_ext <<EOF
8291 #line 8292 "configure"
8292 #include "confdefs.h"
8293
8294 int main(void)
8295 {
8296 try { throw 1; }
8297 catch (...) { };
8298 return 0;
8299 }
8300
8301 EOF
8302 if { (eval echo configure:8303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8303 then
8304 ac_sectionLDflags=yes
8305 else
8306 echo "configure: failed program was:" >&5
8307 cat conftest.$ac_ext >&5
8308 rm -fr conftest*
8309 ac_sectionLDflags=no
8310 fi
8311 rm -fr conftest*
8312 fi
8313
8314 if test "$ac_test_CFLAGS" = set; then
8315 CFLAGS="$ac_save_CFLAGS"
8316 else
8317 # this is the suspicious part
8318 CFLAGS=''
8319 fi
8320 if test "$ac_sectionLDflags" = "yes"; then
8321 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8322 fi
8323 echo "$ac_t""$ac_sectionLDflags" 1>&6
8324 fi
8325
8326 # Set linker optimization flags.
8327 if test x"$with_gnu_ld" = x"yes"; then
8328 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8329 fi
8330
8331
8332
8333
8334
8335 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8336 echo "configure:8337: checking for main in -lm" >&5
8337 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8338 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8339 echo $ac_n "(cached) $ac_c" 1>&6
8340 else
8341 ac_save_LIBS="$LIBS"
8342 LIBS="-lm $LIBS"
8343 cat > conftest.$ac_ext <<EOF
8344 #line 8345 "configure"
8345 #include "confdefs.h"
8346
8347 int main() {
8348 main()
8349 ; return 0; }
8350 EOF
8351 if { (eval echo configure:8352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8352 rm -rf conftest*
8353 eval "ac_cv_lib_$ac_lib_var=yes"
8354 else
8355 echo "configure: failed program was:" >&5
8356 cat conftest.$ac_ext >&5
8357 rm -rf conftest*
8358 eval "ac_cv_lib_$ac_lib_var=no"
8359 fi
8360 rm -f conftest*
8361 LIBS="$ac_save_LIBS"
8362
8363 fi
8364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8365 echo "$ac_t""yes" 1>&6
8366 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8367 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8368 cat >> confdefs.h <<EOF
8369 #define $ac_tr_lib 1
8370 EOF
8371
8372 LIBS="-lm $LIBS"
8373
8374 else
8375 echo "$ac_t""no" 1>&6
8376 fi
8377
8378 for ac_func in nan copysignf
8379 do
8380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8381 echo "configure:8382: checking for $ac_func" >&5
8382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8383 echo $ac_n "(cached) $ac_c" 1>&6
8384 else
8385 cat > conftest.$ac_ext <<EOF
8386 #line 8387 "configure"
8387 #include "confdefs.h"
8388 /* System header to define __stub macros and hopefully few prototypes,
8389 which can conflict with char $ac_func(); below. */
8390 #include <assert.h>
8391 /* Override any gcc2 internal prototype to avoid an error. */
8392 /* We use char because int might match the return type of a gcc2
8393 builtin and then its argument prototype would still apply. */
8394 char $ac_func();
8395
8396 int main() {
8397
8398 /* The GNU C library defines this for functions which it implements
8399 to always fail with ENOSYS. Some functions are actually named
8400 something starting with __ and the normal name is an alias. */
8401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8402 choke me
8403 #else
8404 $ac_func();
8405 #endif
8406
8407 ; return 0; }
8408 EOF
8409 if { (eval echo configure:8410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8410 rm -rf conftest*
8411 eval "ac_cv_func_$ac_func=yes"
8412 else
8413 echo "configure: failed program was:" >&5
8414 cat conftest.$ac_ext >&5
8415 rm -rf conftest*
8416 eval "ac_cv_func_$ac_func=no"
8417 fi
8418 rm -f conftest*
8419 fi
8420
8421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8422 echo "$ac_t""yes" 1>&6
8423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8424 cat >> confdefs.h <<EOF
8425 #define $ac_tr_func 1
8426 EOF
8427
8428 else
8429 echo "$ac_t""no" 1>&6
8430 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8431 fi
8432 done
8433
8434
8435 for ac_func in __signbit
8436 do
8437 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8438 echo "configure:8439: checking for $ac_func" >&5
8439 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8440 echo $ac_n "(cached) $ac_c" 1>&6
8441 else
8442 cat > conftest.$ac_ext <<EOF
8443 #line 8444 "configure"
8444 #include "confdefs.h"
8445 /* System header to define __stub macros and hopefully few prototypes,
8446 which can conflict with char $ac_func(); below. */
8447 #include <assert.h>
8448 /* Override any gcc2 internal prototype to avoid an error. */
8449 /* We use char because int might match the return type of a gcc2
8450 builtin and then its argument prototype would still apply. */
8451 char $ac_func();
8452
8453 int main() {
8454
8455 /* The GNU C library defines this for functions which it implements
8456 to always fail with ENOSYS. Some functions are actually named
8457 something starting with __ and the normal name is an alias. */
8458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8459 choke me
8460 #else
8461 $ac_func();
8462 #endif
8463
8464 ; return 0; }
8465 EOF
8466 if { (eval echo configure:8467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8467 rm -rf conftest*
8468 eval "ac_cv_func_$ac_func=yes"
8469 else
8470 echo "configure: failed program was:" >&5
8471 cat conftest.$ac_ext >&5
8472 rm -rf conftest*
8473 eval "ac_cv_func_$ac_func=no"
8474 fi
8475 rm -f conftest*
8476 fi
8477
8478 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8479 echo "$ac_t""yes" 1>&6
8480 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8481 cat >> confdefs.h <<EOF
8482 #define $ac_tr_func 1
8483 EOF
8484
8485 else
8486 echo "$ac_t""no" 1>&6
8487 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8488 fi
8489 done
8490
8491 for ac_func in __signbitf
8492 do
8493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8494 echo "configure:8495: checking for $ac_func" >&5
8495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8496 echo $ac_n "(cached) $ac_c" 1>&6
8497 else
8498 cat > conftest.$ac_ext <<EOF
8499 #line 8500 "configure"
8500 #include "confdefs.h"
8501 /* System header to define __stub macros and hopefully few prototypes,
8502 which can conflict with char $ac_func(); below. */
8503 #include <assert.h>
8504 /* Override any gcc2 internal prototype to avoid an error. */
8505 /* We use char because int might match the return type of a gcc2
8506 builtin and then its argument prototype would still apply. */
8507 char $ac_func();
8508
8509 int main() {
8510
8511 /* The GNU C library defines this for functions which it implements
8512 to always fail with ENOSYS. Some functions are actually named
8513 something starting with __ and the normal name is an alias. */
8514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8515 choke me
8516 #else
8517 $ac_func();
8518 #endif
8519
8520 ; return 0; }
8521 EOF
8522 if { (eval echo configure:8523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8523 rm -rf conftest*
8524 eval "ac_cv_func_$ac_func=yes"
8525 else
8526 echo "configure: failed program was:" >&5
8527 cat conftest.$ac_ext >&5
8528 rm -rf conftest*
8529 eval "ac_cv_func_$ac_func=no"
8530 fi
8531 rm -f conftest*
8532 fi
8533
8534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8535 echo "$ac_t""yes" 1>&6
8536 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8537 cat >> confdefs.h <<EOF
8538 #define $ac_tr_func 1
8539 EOF
8540
8541 else
8542 echo "$ac_t""no" 1>&6
8543 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8544 fi
8545 done
8546
8547
8548 if test x$ac_cv_func_copysignl = x"yes"; then
8549 for ac_func in __signbitl
8550 do
8551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8552 echo "configure:8553: checking for $ac_func" >&5
8553 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8554 echo $ac_n "(cached) $ac_c" 1>&6
8555 else
8556 cat > conftest.$ac_ext <<EOF
8557 #line 8558 "configure"
8558 #include "confdefs.h"
8559 /* System header to define __stub macros and hopefully few prototypes,
8560 which can conflict with char $ac_func(); below. */
8561 #include <assert.h>
8562 /* Override any gcc2 internal prototype to avoid an error. */
8563 /* We use char because int might match the return type of a gcc2
8564 builtin and then its argument prototype would still apply. */
8565 char $ac_func();
8566
8567 int main() {
8568
8569 /* The GNU C library defines this for functions which it implements
8570 to always fail with ENOSYS. Some functions are actually named
8571 something starting with __ and the normal name is an alias. */
8572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8573 choke me
8574 #else
8575 $ac_func();
8576 #endif
8577
8578 ; return 0; }
8579 EOF
8580 if { (eval echo configure:8581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8581 rm -rf conftest*
8582 eval "ac_cv_func_$ac_func=yes"
8583 else
8584 echo "configure: failed program was:" >&5
8585 cat conftest.$ac_ext >&5
8586 rm -rf conftest*
8587 eval "ac_cv_func_$ac_func=no"
8588 fi
8589 rm -f conftest*
8590 fi
8591
8592 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8593 echo "$ac_t""yes" 1>&6
8594 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8595 cat >> confdefs.h <<EOF
8596 #define $ac_tr_func 1
8597 EOF
8598
8599 else
8600 echo "$ac_t""no" 1>&6
8601 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8602 fi
8603 done
8604
8605 fi
8606
8607 if test -n "$LIBMATHOBJS"; then
8608 need_libmath=yes
8609 fi
8610
8611
8612
8613 if test "$need_libmath" = yes; then
8614 GLIBCPP_BUILD_LIBMATH_TRUE=
8615 GLIBCPP_BUILD_LIBMATH_FALSE='#'
8616 else
8617 GLIBCPP_BUILD_LIBMATH_TRUE='#'
8618 GLIBCPP_BUILD_LIBMATH_FALSE=
8619 fi
8620
8621
8622 enable_wchar_t=no
8623
8624 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8625 echo "configure:8626: checking for mbstate_t" >&5
8626 cat > conftest.$ac_ext <<EOF
8627 #line 8628 "configure"
8628 #include "confdefs.h"
8629 #include <wchar.h>
8630 int main() {
8631 mbstate_t teststate;
8632 ; return 0; }
8633 EOF
8634 if { (eval echo configure:8635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8635 rm -rf conftest*
8636 have_mbstate_t=yes
8637 else
8638 echo "configure: failed program was:" >&5
8639 cat conftest.$ac_ext >&5
8640 rm -rf conftest*
8641 have_mbstate_t=no
8642 fi
8643 rm -f conftest*
8644 echo "$ac_t""$have_mbstate_t" 1>&6
8645 if test x"$have_mbstate_t" = xyes; then
8646 cat >> confdefs.h <<\EOF
8647 #define HAVE_MBSTATE_T 1
8648 EOF
8649
8650 fi
8651
8652 for ac_hdr in wchar.h
8653 do
8654 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8656 echo "configure:8657: checking for $ac_hdr" >&5
8657 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8658 echo $ac_n "(cached) $ac_c" 1>&6
8659 else
8660 cat > conftest.$ac_ext <<EOF
8661 #line 8662 "configure"
8662 #include "confdefs.h"
8663 #include <$ac_hdr>
8664 EOF
8665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8666 { (eval echo configure:8667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8668 if test -z "$ac_err"; then
8669 rm -rf conftest*
8670 eval "ac_cv_header_$ac_safe=yes"
8671 else
8672 echo "$ac_err" >&5
8673 echo "configure: failed program was:" >&5
8674 cat conftest.$ac_ext >&5
8675 rm -rf conftest*
8676 eval "ac_cv_header_$ac_safe=no"
8677 fi
8678 rm -f conftest*
8679 fi
8680 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8681 echo "$ac_t""yes" 1>&6
8682 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8683 cat >> confdefs.h <<EOF
8684 #define $ac_tr_hdr 1
8685 EOF
8686 ac_has_wchar_h=yes
8687 else
8688 echo "$ac_t""no" 1>&6
8689 ac_has_wchar_h=no
8690 fi
8691 done
8692
8693 for ac_hdr in wctype.h
8694 do
8695 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8696 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8697 echo "configure:8698: checking for $ac_hdr" >&5
8698 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8699 echo $ac_n "(cached) $ac_c" 1>&6
8700 else
8701 cat > conftest.$ac_ext <<EOF
8702 #line 8703 "configure"
8703 #include "confdefs.h"
8704 #include <$ac_hdr>
8705 EOF
8706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8707 { (eval echo configure:8708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8709 if test -z "$ac_err"; then
8710 rm -rf conftest*
8711 eval "ac_cv_header_$ac_safe=yes"
8712 else
8713 echo "$ac_err" >&5
8714 echo "configure: failed program was:" >&5
8715 cat conftest.$ac_ext >&5
8716 rm -rf conftest*
8717 eval "ac_cv_header_$ac_safe=no"
8718 fi
8719 rm -f conftest*
8720 fi
8721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8722 echo "$ac_t""yes" 1>&6
8723 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8724 cat >> confdefs.h <<EOF
8725 #define $ac_tr_hdr 1
8726 EOF
8727 ac_has_wctype_h=yes
8728 else
8729 echo "$ac_t""no" 1>&6
8730 ac_has_wctype_h=no
8731 fi
8732 done
8733
8734
8735 if test x"$ac_has_wchar_h" = xyes &&
8736 test x"$ac_has_wctype_h" = xyes &&
8737 test x"$enable_c_mbchar" != xno; then
8738
8739 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8740 echo "configure:8741: checking for WCHAR_MIN and WCHAR_MAX" >&5
8741 cat > conftest.$ac_ext <<EOF
8742 #line 8743 "configure"
8743 #include "confdefs.h"
8744 #include <wchar.h>
8745 int main() {
8746 int i = WCHAR_MIN; int j = WCHAR_MAX;
8747 ; return 0; }
8748 EOF
8749 if { (eval echo configure:8750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8750 rm -rf conftest*
8751 has_wchar_minmax=yes
8752 else
8753 echo "configure: failed program was:" >&5
8754 cat conftest.$ac_ext >&5
8755 rm -rf conftest*
8756 has_wchar_minmax=no
8757 fi
8758 rm -f conftest*
8759 echo "$ac_t""$has_wchar_minmax" 1>&6
8760
8761 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8762 echo "configure:8763: checking for WEOF" >&5
8763 cat > conftest.$ac_ext <<EOF
8764 #line 8765 "configure"
8765 #include "confdefs.h"
8766
8767 #include <wchar.h>
8768 #include <stddef.h>
8769 int main() {
8770 wint_t i = WEOF;
8771 ; return 0; }
8772 EOF
8773 if { (eval echo configure:8774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8774 rm -rf conftest*
8775 has_weof=yes
8776 else
8777 echo "configure: failed program was:" >&5
8778 cat conftest.$ac_ext >&5
8779 rm -rf conftest*
8780 has_weof=no
8781 fi
8782 rm -f conftest*
8783 echo "$ac_t""$has_weof" 1>&6
8784
8785 ac_wfuncs=yes
8786 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8787 do
8788 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8789 echo "configure:8790: checking for $ac_func" >&5
8790 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8791 echo $ac_n "(cached) $ac_c" 1>&6
8792 else
8793 cat > conftest.$ac_ext <<EOF
8794 #line 8795 "configure"
8795 #include "confdefs.h"
8796 /* System header to define __stub macros and hopefully few prototypes,
8797 which can conflict with char $ac_func(); below. */
8798 #include <assert.h>
8799 /* Override any gcc2 internal prototype to avoid an error. */
8800 /* We use char because int might match the return type of a gcc2
8801 builtin and then its argument prototype would still apply. */
8802 char $ac_func();
8803
8804 int main() {
8805
8806 /* The GNU C library defines this for functions which it implements
8807 to always fail with ENOSYS. Some functions are actually named
8808 something starting with __ and the normal name is an alias. */
8809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8810 choke me
8811 #else
8812 $ac_func();
8813 #endif
8814
8815 ; return 0; }
8816 EOF
8817 if { (eval echo configure:8818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8818 rm -rf conftest*
8819 eval "ac_cv_func_$ac_func=yes"
8820 else
8821 echo "configure: failed program was:" >&5
8822 cat conftest.$ac_ext >&5
8823 rm -rf conftest*
8824 eval "ac_cv_func_$ac_func=no"
8825 fi
8826 rm -f conftest*
8827 fi
8828
8829 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8830 echo "$ac_t""yes" 1>&6
8831 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8832 cat >> confdefs.h <<EOF
8833 #define $ac_tr_func 1
8834 EOF
8835
8836 else
8837 echo "$ac_t""no" 1>&6
8838 \
8839 ac_wfuncs=no
8840 fi
8841 done
8842
8843
8844 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
8845 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8846 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8847 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8848 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8849 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8850 do
8851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8852 echo "configure:8853: checking for $ac_func" >&5
8853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8854 echo $ac_n "(cached) $ac_c" 1>&6
8855 else
8856 cat > conftest.$ac_ext <<EOF
8857 #line 8858 "configure"
8858 #include "confdefs.h"
8859 /* System header to define __stub macros and hopefully few prototypes,
8860 which can conflict with char $ac_func(); below. */
8861 #include <assert.h>
8862 /* Override any gcc2 internal prototype to avoid an error. */
8863 /* We use char because int might match the return type of a gcc2
8864 builtin and then its argument prototype would still apply. */
8865 char $ac_func();
8866
8867 int main() {
8868
8869 /* The GNU C library defines this for functions which it implements
8870 to always fail with ENOSYS. Some functions are actually named
8871 something starting with __ and the normal name is an alias. */
8872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8873 choke me
8874 #else
8875 $ac_func();
8876 #endif
8877
8878 ; return 0; }
8879 EOF
8880 if { (eval echo configure:8881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8881 rm -rf conftest*
8882 eval "ac_cv_func_$ac_func=yes"
8883 else
8884 echo "configure: failed program was:" >&5
8885 cat conftest.$ac_ext >&5
8886 rm -rf conftest*
8887 eval "ac_cv_func_$ac_func=no"
8888 fi
8889 rm -f conftest*
8890 fi
8891
8892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8893 echo "$ac_t""yes" 1>&6
8894 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8895 cat >> confdefs.h <<EOF
8896 #define $ac_tr_func 1
8897 EOF
8898
8899 else
8900 echo "$ac_t""no" 1>&6
8901 \
8902 ac_wfuncs=no
8903 fi
8904 done
8905
8906
8907 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8908 echo "configure:8909: checking for ISO C99 wchar_t support" >&5
8909 if test x"$has_weof" = xyes &&
8910 test x"$has_wchar_minmax" = xyes &&
8911 test x"$ac_wfuncs" = xyes; then
8912 ac_isoC99_wchar_t=yes
8913 else
8914 ac_isoC99_wchar_t=no
8915 fi
8916 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8917
8918 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8919 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8920 echo "configure:8921: checking for iconv.h" >&5
8921 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8922 echo $ac_n "(cached) $ac_c" 1>&6
8923 else
8924 cat > conftest.$ac_ext <<EOF
8925 #line 8926 "configure"
8926 #include "confdefs.h"
8927 #include <iconv.h>
8928 EOF
8929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8930 { (eval echo configure:8931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8931 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8932 if test -z "$ac_err"; then
8933 rm -rf conftest*
8934 eval "ac_cv_header_$ac_safe=yes"
8935 else
8936 echo "$ac_err" >&5
8937 echo "configure: failed program was:" >&5
8938 cat conftest.$ac_ext >&5
8939 rm -rf conftest*
8940 eval "ac_cv_header_$ac_safe=no"
8941 fi
8942 rm -f conftest*
8943 fi
8944 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8945 echo "$ac_t""yes" 1>&6
8946 ac_has_iconv_h=yes
8947 else
8948 echo "$ac_t""no" 1>&6
8949 ac_has_iconv_h=no
8950 fi
8951
8952 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8953 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8954 echo "configure:8955: checking for langinfo.h" >&5
8955 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8956 echo $ac_n "(cached) $ac_c" 1>&6
8957 else
8958 cat > conftest.$ac_ext <<EOF
8959 #line 8960 "configure"
8960 #include "confdefs.h"
8961 #include <langinfo.h>
8962 EOF
8963 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8964 { (eval echo configure:8965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8965 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8966 if test -z "$ac_err"; then
8967 rm -rf conftest*
8968 eval "ac_cv_header_$ac_safe=yes"
8969 else
8970 echo "$ac_err" >&5
8971 echo "configure: failed program was:" >&5
8972 cat conftest.$ac_ext >&5
8973 rm -rf conftest*
8974 eval "ac_cv_header_$ac_safe=no"
8975 fi
8976 rm -f conftest*
8977 fi
8978 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8979 echo "$ac_t""yes" 1>&6
8980 ac_has_langinfo_h=yes
8981 else
8982 echo "$ac_t""no" 1>&6
8983 ac_has_langinfo_h=no
8984 fi
8985
8986
8987 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8988 echo "configure:8989: checking for iconv in -liconv" >&5
8989 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8990 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8991 echo $ac_n "(cached) $ac_c" 1>&6
8992 else
8993 ac_save_LIBS="$LIBS"
8994 LIBS="-liconv $LIBS"
8995 cat > conftest.$ac_ext <<EOF
8996 #line 8997 "configure"
8997 #include "confdefs.h"
8998 /* Override any gcc2 internal prototype to avoid an error. */
8999 /* We use char because int might match the return type of a gcc2
9000 builtin and then its argument prototype would still apply. */
9001 char iconv();
9002
9003 int main() {
9004 iconv()
9005 ; return 0; }
9006 EOF
9007 if { (eval echo configure:9008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9008 rm -rf conftest*
9009 eval "ac_cv_lib_$ac_lib_var=yes"
9010 else
9011 echo "configure: failed program was:" >&5
9012 cat conftest.$ac_ext >&5
9013 rm -rf conftest*
9014 eval "ac_cv_lib_$ac_lib_var=no"
9015 fi
9016 rm -f conftest*
9017 LIBS="$ac_save_LIBS"
9018
9019 fi
9020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9021 echo "$ac_t""yes" 1>&6
9022 libiconv="-liconv"
9023 else
9024 echo "$ac_t""no" 1>&6
9025 fi
9026
9027 ac_save_LIBS="$LIBS"
9028 LIBS="$LIBS $libiconv"
9029
9030 for ac_func in iconv_open iconv_close iconv nl_langinfo
9031 do
9032 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9033 echo "configure:9034: checking for $ac_func" >&5
9034 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9035 echo $ac_n "(cached) $ac_c" 1>&6
9036 else
9037 cat > conftest.$ac_ext <<EOF
9038 #line 9039 "configure"
9039 #include "confdefs.h"
9040 /* System header to define __stub macros and hopefully few prototypes,
9041 which can conflict with char $ac_func(); below. */
9042 #include <assert.h>
9043 /* Override any gcc2 internal prototype to avoid an error. */
9044 /* We use char because int might match the return type of a gcc2
9045 builtin and then its argument prototype would still apply. */
9046 char $ac_func();
9047
9048 int main() {
9049
9050 /* The GNU C library defines this for functions which it implements
9051 to always fail with ENOSYS. Some functions are actually named
9052 something starting with __ and the normal name is an alias. */
9053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9054 choke me
9055 #else
9056 $ac_func();
9057 #endif
9058
9059 ; return 0; }
9060 EOF
9061 if { (eval echo configure:9062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9062 rm -rf conftest*
9063 eval "ac_cv_func_$ac_func=yes"
9064 else
9065 echo "configure: failed program was:" >&5
9066 cat conftest.$ac_ext >&5
9067 rm -rf conftest*
9068 eval "ac_cv_func_$ac_func=no"
9069 fi
9070 rm -f conftest*
9071 fi
9072
9073 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9074 echo "$ac_t""yes" 1>&6
9075 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9076 cat >> confdefs.h <<EOF
9077 #define $ac_tr_func 1
9078 EOF
9079 \
9080 ac_XPG2funcs=yes
9081 else
9082 echo "$ac_t""no" 1>&6
9083 ac_XPG2funcs=no
9084 fi
9085 done
9086
9087
9088 LIBS="$ac_save_LIBS"
9089
9090 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9091 echo "configure:9092: checking for XPG2 wchar_t support" >&5
9092 if test x"$ac_has_iconv_h" = xyes &&
9093 test x"$ac_has_langinfo_h" = xyes &&
9094 test x"$ac_XPG2funcs" = xyes; then
9095 ac_XPG2_wchar_t=yes
9096 else
9097 ac_XPG2_wchar_t=no
9098 fi
9099 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9100
9101 if test x"$ac_isoC99_wchar_t" = xyes &&
9102 test x"$ac_XPG2_wchar_t" = xyes; then
9103 cat >> confdefs.h <<\EOF
9104 #define _GLIBCPP_USE_WCHAR_T 1
9105 EOF
9106
9107 enable_wchar_t=yes
9108 fi
9109 fi
9110 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9111 echo "configure:9112: checking for enabled wchar_t specializations" >&5
9112 echo "$ac_t""$enable_wchar_t" 1>&6
9113
9114
9115 if test "$enable_wchar_t" = yes; then
9116 GLIBCPP_TEST_WCHAR_T_TRUE=
9117 GLIBCPP_TEST_WCHAR_T_FALSE='#'
9118 else
9119 GLIBCPP_TEST_WCHAR_T_TRUE='#'
9120 GLIBCPP_TEST_WCHAR_T_FALSE=
9121 fi
9122
9123 os_include_dir="os/mingw32"
9124 ;;
9125 *-windiss*)
9126 os_include_dir="os/windiss"
9127 ;;
9128 *-qnx6.[12]*)
9129 SECTION_FLAGS='-ffunction-sections -fdata-sections'
9130
9131
9132 # If we're not using GNU ld, then there's no point in even trying these
9133 # tests. Check for that first. We should have already tested for gld
9134 # by now (in libtool), but require it now just to be safe...
9135 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9136 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9137
9138
9139 # The name set by libtool depends on the version of libtool. Shame on us
9140 # for depending on an impl detail, but c'est la vie. Older versions used
9141 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9142 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9143 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9144 # set (hence we're using an older libtool), then set it.
9145 if test x${with_gnu_ld+set} != xset; then
9146 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9147 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9148 with_gnu_ld=no
9149 else
9150 with_gnu_ld=$ac_cv_prog_gnu_ld
9151 fi
9152 fi
9153
9154 # Start by getting the version number. I think the libtool test already
9155 # does some of this, but throws away the result.
9156
9157 ldver=`$LD --version 2>/dev/null | head -1 | \
9158 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9159
9160 glibcpp_gnu_ld_version=`echo $ldver | \
9161 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9162
9163 # Set --gc-sections.
9164 if test "$with_gnu_ld" = "notbroken"; then
9165 # GNU ld it is! Joy and bunny rabbits!
9166
9167 # All these tests are for C++; save the language and the compiler flags.
9168 # Need to do this so that g++ won't try to link in libstdc++
9169 ac_test_CFLAGS="${CFLAGS+set}"
9170 ac_save_CFLAGS="$CFLAGS"
9171 CFLAGS='-x c++ -Wl,--gc-sections'
9172
9173 # Check for -Wl,--gc-sections
9174 # XXX This test is broken at the moment, as symbols required for
9175 # linking are now in libsupc++ (not built yet.....). In addition,
9176 # this test has cored on solaris in the past. In addition,
9177 # --gc-sections doesn't really work at the moment (keeps on discarding
9178 # used sections, first .eh_frame and now some of the glibc sections for
9179 # iconv). Bzzzzt. Thanks for playing, maybe next time.
9180 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9181 echo "configure:9182: checking for ld that supports -Wl,--gc-sections" >&5
9182 if test "$cross_compiling" = yes; then
9183 ac_sectionLDflags=yes
9184 else
9185 cat > conftest.$ac_ext <<EOF
9186 #line 9187 "configure"
9187 #include "confdefs.h"
9188
9189 int main(void)
9190 {
9191 try { throw 1; }
9192 catch (...) { };
9193 return 0;
9194 }
9195
9196 EOF
9197 if { (eval echo configure:9198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9198 then
9199 ac_sectionLDflags=yes
9200 else
9201 echo "configure: failed program was:" >&5
9202 cat conftest.$ac_ext >&5
9203 rm -fr conftest*
9204 ac_sectionLDflags=no
9205 fi
9206 rm -fr conftest*
9207 fi
9208
9209 if test "$ac_test_CFLAGS" = set; then
9210 CFLAGS="$ac_save_CFLAGS"
9211 else
9212 # this is the suspicious part
9213 CFLAGS=''
9214 fi
9215 if test "$ac_sectionLDflags" = "yes"; then
9216 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9217 fi
9218 echo "$ac_t""$ac_sectionLDflags" 1>&6
9219 fi
9220
9221 # Set linker optimization flags.
9222 if test x"$with_gnu_ld" = x"yes"; then
9223 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9224 fi
9225
9226
9227
9228
9229
9230 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9231 echo "configure:9232: checking for main in -lm" >&5
9232 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9233 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9234 echo $ac_n "(cached) $ac_c" 1>&6
9235 else
9236 ac_save_LIBS="$LIBS"
9237 LIBS="-lm $LIBS"
9238 cat > conftest.$ac_ext <<EOF
9239 #line 9240 "configure"
9240 #include "confdefs.h"
9241
9242 int main() {
9243 main()
9244 ; return 0; }
9245 EOF
9246 if { (eval echo configure:9247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9247 rm -rf conftest*
9248 eval "ac_cv_lib_$ac_lib_var=yes"
9249 else
9250 echo "configure: failed program was:" >&5
9251 cat conftest.$ac_ext >&5
9252 rm -rf conftest*
9253 eval "ac_cv_lib_$ac_lib_var=no"
9254 fi
9255 rm -f conftest*
9256 LIBS="$ac_save_LIBS"
9257
9258 fi
9259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9260 echo "$ac_t""yes" 1>&6
9261 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9262 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9263 cat >> confdefs.h <<EOF
9264 #define $ac_tr_lib 1
9265 EOF
9266
9267 LIBS="-lm $LIBS"
9268
9269 else
9270 echo "$ac_t""no" 1>&6
9271 fi
9272
9273 for ac_func in nan copysignf
9274 do
9275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9276 echo "configure:9277: checking for $ac_func" >&5
9277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9278 echo $ac_n "(cached) $ac_c" 1>&6
9279 else
9280 cat > conftest.$ac_ext <<EOF
9281 #line 9282 "configure"
9282 #include "confdefs.h"
9283 /* System header to define __stub macros and hopefully few prototypes,
9284 which can conflict with char $ac_func(); below. */
9285 #include <assert.h>
9286 /* Override any gcc2 internal prototype to avoid an error. */
9287 /* We use char because int might match the return type of a gcc2
9288 builtin and then its argument prototype would still apply. */
9289 char $ac_func();
9290
9291 int main() {
9292
9293 /* The GNU C library defines this for functions which it implements
9294 to always fail with ENOSYS. Some functions are actually named
9295 something starting with __ and the normal name is an alias. */
9296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9297 choke me
9298 #else
9299 $ac_func();
9300 #endif
9301
9302 ; return 0; }
9303 EOF
9304 if { (eval echo configure:9305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9305 rm -rf conftest*
9306 eval "ac_cv_func_$ac_func=yes"
9307 else
9308 echo "configure: failed program was:" >&5
9309 cat conftest.$ac_ext >&5
9310 rm -rf conftest*
9311 eval "ac_cv_func_$ac_func=no"
9312 fi
9313 rm -f conftest*
9314 fi
9315
9316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9317 echo "$ac_t""yes" 1>&6
9318 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9319 cat >> confdefs.h <<EOF
9320 #define $ac_tr_func 1
9321 EOF
9322
9323 else
9324 echo "$ac_t""no" 1>&6
9325 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9326 fi
9327 done
9328
9329
9330 for ac_func in __signbit
9331 do
9332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9333 echo "configure:9334: checking for $ac_func" >&5
9334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9335 echo $ac_n "(cached) $ac_c" 1>&6
9336 else
9337 cat > conftest.$ac_ext <<EOF
9338 #line 9339 "configure"
9339 #include "confdefs.h"
9340 /* System header to define __stub macros and hopefully few prototypes,
9341 which can conflict with char $ac_func(); below. */
9342 #include <assert.h>
9343 /* Override any gcc2 internal prototype to avoid an error. */
9344 /* We use char because int might match the return type of a gcc2
9345 builtin and then its argument prototype would still apply. */
9346 char $ac_func();
9347
9348 int main() {
9349
9350 /* The GNU C library defines this for functions which it implements
9351 to always fail with ENOSYS. Some functions are actually named
9352 something starting with __ and the normal name is an alias. */
9353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9354 choke me
9355 #else
9356 $ac_func();
9357 #endif
9358
9359 ; return 0; }
9360 EOF
9361 if { (eval echo configure:9362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9362 rm -rf conftest*
9363 eval "ac_cv_func_$ac_func=yes"
9364 else
9365 echo "configure: failed program was:" >&5
9366 cat conftest.$ac_ext >&5
9367 rm -rf conftest*
9368 eval "ac_cv_func_$ac_func=no"
9369 fi
9370 rm -f conftest*
9371 fi
9372
9373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9374 echo "$ac_t""yes" 1>&6
9375 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9376 cat >> confdefs.h <<EOF
9377 #define $ac_tr_func 1
9378 EOF
9379
9380 else
9381 echo "$ac_t""no" 1>&6
9382 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9383 fi
9384 done
9385
9386 for ac_func in __signbitf
9387 do
9388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9389 echo "configure:9390: checking for $ac_func" >&5
9390 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9391 echo $ac_n "(cached) $ac_c" 1>&6
9392 else
9393 cat > conftest.$ac_ext <<EOF
9394 #line 9395 "configure"
9395 #include "confdefs.h"
9396 /* System header to define __stub macros and hopefully few prototypes,
9397 which can conflict with char $ac_func(); below. */
9398 #include <assert.h>
9399 /* Override any gcc2 internal prototype to avoid an error. */
9400 /* We use char because int might match the return type of a gcc2
9401 builtin and then its argument prototype would still apply. */
9402 char $ac_func();
9403
9404 int main() {
9405
9406 /* The GNU C library defines this for functions which it implements
9407 to always fail with ENOSYS. Some functions are actually named
9408 something starting with __ and the normal name is an alias. */
9409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9410 choke me
9411 #else
9412 $ac_func();
9413 #endif
9414
9415 ; return 0; }
9416 EOF
9417 if { (eval echo configure:9418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9418 rm -rf conftest*
9419 eval "ac_cv_func_$ac_func=yes"
9420 else
9421 echo "configure: failed program was:" >&5
9422 cat conftest.$ac_ext >&5
9423 rm -rf conftest*
9424 eval "ac_cv_func_$ac_func=no"
9425 fi
9426 rm -f conftest*
9427 fi
9428
9429 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9430 echo "$ac_t""yes" 1>&6
9431 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9432 cat >> confdefs.h <<EOF
9433 #define $ac_tr_func 1
9434 EOF
9435
9436 else
9437 echo "$ac_t""no" 1>&6
9438 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9439 fi
9440 done
9441
9442
9443 if test x$ac_cv_func_copysignl = x"yes"; then
9444 for ac_func in __signbitl
9445 do
9446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9447 echo "configure:9448: checking for $ac_func" >&5
9448 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9449 echo $ac_n "(cached) $ac_c" 1>&6
9450 else
9451 cat > conftest.$ac_ext <<EOF
9452 #line 9453 "configure"
9453 #include "confdefs.h"
9454 /* System header to define __stub macros and hopefully few prototypes,
9455 which can conflict with char $ac_func(); below. */
9456 #include <assert.h>
9457 /* Override any gcc2 internal prototype to avoid an error. */
9458 /* We use char because int might match the return type of a gcc2
9459 builtin and then its argument prototype would still apply. */
9460 char $ac_func();
9461
9462 int main() {
9463
9464 /* The GNU C library defines this for functions which it implements
9465 to always fail with ENOSYS. Some functions are actually named
9466 something starting with __ and the normal name is an alias. */
9467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9468 choke me
9469 #else
9470 $ac_func();
9471 #endif
9472
9473 ; return 0; }
9474 EOF
9475 if { (eval echo configure:9476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9476 rm -rf conftest*
9477 eval "ac_cv_func_$ac_func=yes"
9478 else
9479 echo "configure: failed program was:" >&5
9480 cat conftest.$ac_ext >&5
9481 rm -rf conftest*
9482 eval "ac_cv_func_$ac_func=no"
9483 fi
9484 rm -f conftest*
9485 fi
9486
9487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9488 echo "$ac_t""yes" 1>&6
9489 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9490 cat >> confdefs.h <<EOF
9491 #define $ac_tr_func 1
9492 EOF
9493
9494 else
9495 echo "$ac_t""no" 1>&6
9496 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9497 fi
9498 done
9499
9500 fi
9501
9502 if test -n "$LIBMATHOBJS"; then
9503 need_libmath=yes
9504 fi
9505
9506
9507
9508 if test "$need_libmath" = yes; then
9509 GLIBCPP_BUILD_LIBMATH_TRUE=
9510 GLIBCPP_BUILD_LIBMATH_FALSE='#'
9511 else
9512 GLIBCPP_BUILD_LIBMATH_TRUE='#'
9513 GLIBCPP_BUILD_LIBMATH_FALSE=
9514 fi
9515
9516
9517 enable_wchar_t=no
9518
9519 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9520 echo "configure:9521: checking for mbstate_t" >&5
9521 cat > conftest.$ac_ext <<EOF
9522 #line 9523 "configure"
9523 #include "confdefs.h"
9524 #include <wchar.h>
9525 int main() {
9526 mbstate_t teststate;
9527 ; return 0; }
9528 EOF
9529 if { (eval echo configure:9530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9530 rm -rf conftest*
9531 have_mbstate_t=yes
9532 else
9533 echo "configure: failed program was:" >&5
9534 cat conftest.$ac_ext >&5
9535 rm -rf conftest*
9536 have_mbstate_t=no
9537 fi
9538 rm -f conftest*
9539 echo "$ac_t""$have_mbstate_t" 1>&6
9540 if test x"$have_mbstate_t" = xyes; then
9541 cat >> confdefs.h <<\EOF
9542 #define HAVE_MBSTATE_T 1
9543 EOF
9544
9545 fi
9546
9547 for ac_hdr in wchar.h
9548 do
9549 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9550 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9551 echo "configure:9552: checking for $ac_hdr" >&5
9552 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9553 echo $ac_n "(cached) $ac_c" 1>&6
9554 else
9555 cat > conftest.$ac_ext <<EOF
9556 #line 9557 "configure"
9557 #include "confdefs.h"
9558 #include <$ac_hdr>
9559 EOF
9560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9561 { (eval echo configure:9562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9562 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9563 if test -z "$ac_err"; then
9564 rm -rf conftest*
9565 eval "ac_cv_header_$ac_safe=yes"
9566 else
9567 echo "$ac_err" >&5
9568 echo "configure: failed program was:" >&5
9569 cat conftest.$ac_ext >&5
9570 rm -rf conftest*
9571 eval "ac_cv_header_$ac_safe=no"
9572 fi
9573 rm -f conftest*
9574 fi
9575 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9576 echo "$ac_t""yes" 1>&6
9577 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9578 cat >> confdefs.h <<EOF
9579 #define $ac_tr_hdr 1
9580 EOF
9581 ac_has_wchar_h=yes
9582 else
9583 echo "$ac_t""no" 1>&6
9584 ac_has_wchar_h=no
9585 fi
9586 done
9587
9588 for ac_hdr in wctype.h
9589 do
9590 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9591 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9592 echo "configure:9593: checking for $ac_hdr" >&5
9593 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9594 echo $ac_n "(cached) $ac_c" 1>&6
9595 else
9596 cat > conftest.$ac_ext <<EOF
9597 #line 9598 "configure"
9598 #include "confdefs.h"
9599 #include <$ac_hdr>
9600 EOF
9601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9602 { (eval echo configure:9603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9604 if test -z "$ac_err"; then
9605 rm -rf conftest*
9606 eval "ac_cv_header_$ac_safe=yes"
9607 else
9608 echo "$ac_err" >&5
9609 echo "configure: failed program was:" >&5
9610 cat conftest.$ac_ext >&5
9611 rm -rf conftest*
9612 eval "ac_cv_header_$ac_safe=no"
9613 fi
9614 rm -f conftest*
9615 fi
9616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9617 echo "$ac_t""yes" 1>&6
9618 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9619 cat >> confdefs.h <<EOF
9620 #define $ac_tr_hdr 1
9621 EOF
9622 ac_has_wctype_h=yes
9623 else
9624 echo "$ac_t""no" 1>&6
9625 ac_has_wctype_h=no
9626 fi
9627 done
9628
9629
9630 if test x"$ac_has_wchar_h" = xyes &&
9631 test x"$ac_has_wctype_h" = xyes &&
9632 test x"$enable_c_mbchar" != xno; then
9633
9634 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9635 echo "configure:9636: checking for WCHAR_MIN and WCHAR_MAX" >&5
9636 cat > conftest.$ac_ext <<EOF
9637 #line 9638 "configure"
9638 #include "confdefs.h"
9639 #include <wchar.h>
9640 int main() {
9641 int i = WCHAR_MIN; int j = WCHAR_MAX;
9642 ; return 0; }
9643 EOF
9644 if { (eval echo configure:9645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9645 rm -rf conftest*
9646 has_wchar_minmax=yes
9647 else
9648 echo "configure: failed program was:" >&5
9649 cat conftest.$ac_ext >&5
9650 rm -rf conftest*
9651 has_wchar_minmax=no
9652 fi
9653 rm -f conftest*
9654 echo "$ac_t""$has_wchar_minmax" 1>&6
9655
9656 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9657 echo "configure:9658: checking for WEOF" >&5
9658 cat > conftest.$ac_ext <<EOF
9659 #line 9660 "configure"
9660 #include "confdefs.h"
9661
9662 #include <wchar.h>
9663 #include <stddef.h>
9664 int main() {
9665 wint_t i = WEOF;
9666 ; return 0; }
9667 EOF
9668 if { (eval echo configure:9669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9669 rm -rf conftest*
9670 has_weof=yes
9671 else
9672 echo "configure: failed program was:" >&5
9673 cat conftest.$ac_ext >&5
9674 rm -rf conftest*
9675 has_weof=no
9676 fi
9677 rm -f conftest*
9678 echo "$ac_t""$has_weof" 1>&6
9679
9680 ac_wfuncs=yes
9681 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9682 do
9683 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9684 echo "configure:9685: checking for $ac_func" >&5
9685 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9686 echo $ac_n "(cached) $ac_c" 1>&6
9687 else
9688 cat > conftest.$ac_ext <<EOF
9689 #line 9690 "configure"
9690 #include "confdefs.h"
9691 /* System header to define __stub macros and hopefully few prototypes,
9692 which can conflict with char $ac_func(); below. */
9693 #include <assert.h>
9694 /* Override any gcc2 internal prototype to avoid an error. */
9695 /* We use char because int might match the return type of a gcc2
9696 builtin and then its argument prototype would still apply. */
9697 char $ac_func();
9698
9699 int main() {
9700
9701 /* The GNU C library defines this for functions which it implements
9702 to always fail with ENOSYS. Some functions are actually named
9703 something starting with __ and the normal name is an alias. */
9704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9705 choke me
9706 #else
9707 $ac_func();
9708 #endif
9709
9710 ; return 0; }
9711 EOF
9712 if { (eval echo configure:9713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9713 rm -rf conftest*
9714 eval "ac_cv_func_$ac_func=yes"
9715 else
9716 echo "configure: failed program was:" >&5
9717 cat conftest.$ac_ext >&5
9718 rm -rf conftest*
9719 eval "ac_cv_func_$ac_func=no"
9720 fi
9721 rm -f conftest*
9722 fi
9723
9724 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9725 echo "$ac_t""yes" 1>&6
9726 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9727 cat >> confdefs.h <<EOF
9728 #define $ac_tr_func 1
9729 EOF
9730
9731 else
9732 echo "$ac_t""no" 1>&6
9733 \
9734 ac_wfuncs=no
9735 fi
9736 done
9737
9738
9739 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
9740 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9741 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9742 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9743 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9744 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9745 do
9746 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9747 echo "configure:9748: checking for $ac_func" >&5
9748 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9749 echo $ac_n "(cached) $ac_c" 1>&6
9750 else
9751 cat > conftest.$ac_ext <<EOF
9752 #line 9753 "configure"
9753 #include "confdefs.h"
9754 /* System header to define __stub macros and hopefully few prototypes,
9755 which can conflict with char $ac_func(); below. */
9756 #include <assert.h>
9757 /* Override any gcc2 internal prototype to avoid an error. */
9758 /* We use char because int might match the return type of a gcc2
9759 builtin and then its argument prototype would still apply. */
9760 char $ac_func();
9761
9762 int main() {
9763
9764 /* The GNU C library defines this for functions which it implements
9765 to always fail with ENOSYS. Some functions are actually named
9766 something starting with __ and the normal name is an alias. */
9767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9768 choke me
9769 #else
9770 $ac_func();
9771 #endif
9772
9773 ; return 0; }
9774 EOF
9775 if { (eval echo configure:9776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9776 rm -rf conftest*
9777 eval "ac_cv_func_$ac_func=yes"
9778 else
9779 echo "configure: failed program was:" >&5
9780 cat conftest.$ac_ext >&5
9781 rm -rf conftest*
9782 eval "ac_cv_func_$ac_func=no"
9783 fi
9784 rm -f conftest*
9785 fi
9786
9787 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9788 echo "$ac_t""yes" 1>&6
9789 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9790 cat >> confdefs.h <<EOF
9791 #define $ac_tr_func 1
9792 EOF
9793
9794 else
9795 echo "$ac_t""no" 1>&6
9796 \
9797 ac_wfuncs=no
9798 fi
9799 done
9800
9801
9802 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9803 echo "configure:9804: checking for ISO C99 wchar_t support" >&5
9804 if test x"$has_weof" = xyes &&
9805 test x"$has_wchar_minmax" = xyes &&
9806 test x"$ac_wfuncs" = xyes; then
9807 ac_isoC99_wchar_t=yes
9808 else
9809 ac_isoC99_wchar_t=no
9810 fi
9811 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9812
9813 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9814 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9815 echo "configure:9816: checking for iconv.h" >&5
9816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9817 echo $ac_n "(cached) $ac_c" 1>&6
9818 else
9819 cat > conftest.$ac_ext <<EOF
9820 #line 9821 "configure"
9821 #include "confdefs.h"
9822 #include <iconv.h>
9823 EOF
9824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9825 { (eval echo configure:9826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9827 if test -z "$ac_err"; then
9828 rm -rf conftest*
9829 eval "ac_cv_header_$ac_safe=yes"
9830 else
9831 echo "$ac_err" >&5
9832 echo "configure: failed program was:" >&5
9833 cat conftest.$ac_ext >&5
9834 rm -rf conftest*
9835 eval "ac_cv_header_$ac_safe=no"
9836 fi
9837 rm -f conftest*
9838 fi
9839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9840 echo "$ac_t""yes" 1>&6
9841 ac_has_iconv_h=yes
9842 else
9843 echo "$ac_t""no" 1>&6
9844 ac_has_iconv_h=no
9845 fi
9846
9847 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9848 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9849 echo "configure:9850: checking for langinfo.h" >&5
9850 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9851 echo $ac_n "(cached) $ac_c" 1>&6
9852 else
9853 cat > conftest.$ac_ext <<EOF
9854 #line 9855 "configure"
9855 #include "confdefs.h"
9856 #include <langinfo.h>
9857 EOF
9858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9859 { (eval echo configure:9860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9861 if test -z "$ac_err"; then
9862 rm -rf conftest*
9863 eval "ac_cv_header_$ac_safe=yes"
9864 else
9865 echo "$ac_err" >&5
9866 echo "configure: failed program was:" >&5
9867 cat conftest.$ac_ext >&5
9868 rm -rf conftest*
9869 eval "ac_cv_header_$ac_safe=no"
9870 fi
9871 rm -f conftest*
9872 fi
9873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9874 echo "$ac_t""yes" 1>&6
9875 ac_has_langinfo_h=yes
9876 else
9877 echo "$ac_t""no" 1>&6
9878 ac_has_langinfo_h=no
9879 fi
9880
9881
9882 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9883 echo "configure:9884: checking for iconv in -liconv" >&5
9884 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9885 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9886 echo $ac_n "(cached) $ac_c" 1>&6
9887 else
9888 ac_save_LIBS="$LIBS"
9889 LIBS="-liconv $LIBS"
9890 cat > conftest.$ac_ext <<EOF
9891 #line 9892 "configure"
9892 #include "confdefs.h"
9893 /* Override any gcc2 internal prototype to avoid an error. */
9894 /* We use char because int might match the return type of a gcc2
9895 builtin and then its argument prototype would still apply. */
9896 char iconv();
9897
9898 int main() {
9899 iconv()
9900 ; return 0; }
9901 EOF
9902 if { (eval echo configure:9903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9903 rm -rf conftest*
9904 eval "ac_cv_lib_$ac_lib_var=yes"
9905 else
9906 echo "configure: failed program was:" >&5
9907 cat conftest.$ac_ext >&5
9908 rm -rf conftest*
9909 eval "ac_cv_lib_$ac_lib_var=no"
9910 fi
9911 rm -f conftest*
9912 LIBS="$ac_save_LIBS"
9913
9914 fi
9915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9916 echo "$ac_t""yes" 1>&6
9917 libiconv="-liconv"
9918 else
9919 echo "$ac_t""no" 1>&6
9920 fi
9921
9922 ac_save_LIBS="$LIBS"
9923 LIBS="$LIBS $libiconv"
9924
9925 for ac_func in iconv_open iconv_close iconv nl_langinfo
9926 do
9927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9928 echo "configure:9929: checking for $ac_func" >&5
9929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9930 echo $ac_n "(cached) $ac_c" 1>&6
9931 else
9932 cat > conftest.$ac_ext <<EOF
9933 #line 9934 "configure"
9934 #include "confdefs.h"
9935 /* System header to define __stub macros and hopefully few prototypes,
9936 which can conflict with char $ac_func(); below. */
9937 #include <assert.h>
9938 /* Override any gcc2 internal prototype to avoid an error. */
9939 /* We use char because int might match the return type of a gcc2
9940 builtin and then its argument prototype would still apply. */
9941 char $ac_func();
9942
9943 int main() {
9944
9945 /* The GNU C library defines this for functions which it implements
9946 to always fail with ENOSYS. Some functions are actually named
9947 something starting with __ and the normal name is an alias. */
9948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9949 choke me
9950 #else
9951 $ac_func();
9952 #endif
9953
9954 ; return 0; }
9955 EOF
9956 if { (eval echo configure:9957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9957 rm -rf conftest*
9958 eval "ac_cv_func_$ac_func=yes"
9959 else
9960 echo "configure: failed program was:" >&5
9961 cat conftest.$ac_ext >&5
9962 rm -rf conftest*
9963 eval "ac_cv_func_$ac_func=no"
9964 fi
9965 rm -f conftest*
9966 fi
9967
9968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9969 echo "$ac_t""yes" 1>&6
9970 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9971 cat >> confdefs.h <<EOF
9972 #define $ac_tr_func 1
9973 EOF
9974 \
9975 ac_XPG2funcs=yes
9976 else
9977 echo "$ac_t""no" 1>&6
9978 ac_XPG2funcs=no
9979 fi
9980 done
9981
9982
9983 LIBS="$ac_save_LIBS"
9984
9985 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9986 echo "configure:9987: checking for XPG2 wchar_t support" >&5
9987 if test x"$ac_has_iconv_h" = xyes &&
9988 test x"$ac_has_langinfo_h" = xyes &&
9989 test x"$ac_XPG2funcs" = xyes; then
9990 ac_XPG2_wchar_t=yes
9991 else
9992 ac_XPG2_wchar_t=no
9993 fi
9994 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9995
9996 if test x"$ac_isoC99_wchar_t" = xyes &&
9997 test x"$ac_XPG2_wchar_t" = xyes; then
9998 cat >> confdefs.h <<\EOF
9999 #define _GLIBCPP_USE_WCHAR_T 1
10000 EOF
10001
10002 enable_wchar_t=yes
10003 fi
10004 fi
10005 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
10006 echo "configure:10007: checking for enabled wchar_t specializations" >&5
10007 echo "$ac_t""$enable_wchar_t" 1>&6
10008
10009
10010 if test "$enable_wchar_t" = yes; then
10011 GLIBCPP_TEST_WCHAR_T_TRUE=
10012 GLIBCPP_TEST_WCHAR_T_FALSE='#'
10013 else
10014 GLIBCPP_TEST_WCHAR_T_TRUE='#'
10015 GLIBCPP_TEST_WCHAR_T_FALSE=
10016 fi
10017
10018 os_include_dir="os/qnx/qnx6.1"
10019 cat >> confdefs.h <<\EOF
10020 #define HAVE_COSF 1
10021 EOF
10022
10023 cat >> confdefs.h <<\EOF
10024 #define HAVE_COSL 1
10025 EOF
10026
10027 cat >> confdefs.h <<\EOF
10028 #define HAVE_COSHF 1
10029 EOF
10030
10031 cat >> confdefs.h <<\EOF
10032 #define HAVE_COSHL 1
10033 EOF
10034
10035 cat >> confdefs.h <<\EOF
10036 #define HAVE_LOGF 1
10037 EOF
10038
10039 cat >> confdefs.h <<\EOF
10040 #define HAVE_LOGL 1
10041 EOF
10042
10043 cat >> confdefs.h <<\EOF
10044 #define HAVE_LOG10F 1
10045 EOF
10046
10047 cat >> confdefs.h <<\EOF
10048 #define HAVE_LOG10L 1
10049 EOF
10050
10051 cat >> confdefs.h <<\EOF
10052 #define HAVE_SINF 1
10053 EOF
10054
10055 cat >> confdefs.h <<\EOF
10056 #define HAVE_SINL 1
10057 EOF
10058
10059 cat >> confdefs.h <<\EOF
10060 #define HAVE_SINHF 1
10061 EOF
10062
10063 cat >> confdefs.h <<\EOF
10064 #define HAVE_SINHL 1
10065 EOF
10066
10067 ;;
10068 *)
10069 os_include_dir="os/newlib"
10070 cat >> confdefs.h <<\EOF
10071 #define HAVE_HYPOT 1
10072 EOF
10073
10074 ;;
10075 esac
10076
10077 case "$target" in
10078 *-mingw32*)
10079 ;;
10080 *-windiss*)
10081 cat >> confdefs.h <<\EOF
10082 #define HAVE_ACOSF 1
10083 EOF
10084
10085 cat >> confdefs.h <<\EOF
10086 #define HAVE_ASINF 1
10087 EOF
10088
10089 cat >> confdefs.h <<\EOF
10090 #define HAVE_ATAN2F 1
10091 EOF
10092
10093 cat >> confdefs.h <<\EOF
10094 #define HAVE_ATANF 1
10095 EOF
10096
10097 cat >> confdefs.h <<\EOF
10098 #define HAVE_CEILF 1
10099 EOF
10100
10101 cat >> confdefs.h <<\EOF
10102 #define HAVE_COPYSIGN 1
10103 EOF
10104
10105 cat >> confdefs.h <<\EOF
10106 #define HAVE_COPYSIGNF 1
10107 EOF
10108
10109 cat >> confdefs.h <<\EOF
10110 #define HAVE_COSF 1
10111 EOF
10112
10113 cat >> confdefs.h <<\EOF
10114 #define HAVE_COSHF 1
10115 EOF
10116
10117 cat >> confdefs.h <<\EOF
10118 #define HAVE_EXPF 1
10119 EOF
10120
10121 cat >> confdefs.h <<\EOF
10122 #define HAVE_FABSF 1
10123 EOF
10124
10125 cat >> confdefs.h <<\EOF
10126 #define HAVE_FLOORF 1
10127 EOF
10128
10129 cat >> confdefs.h <<\EOF
10130 #define HAVE_FMODF 1
10131 EOF
10132
10133 cat >> confdefs.h <<\EOF
10134 #define HAVE_FREXPF 1
10135 EOF
10136
10137 cat >> confdefs.h <<\EOF
10138 #define HAVE_LDEXPF 1
10139 EOF
10140
10141 cat >> confdefs.h <<\EOF
10142 #define HAVE_LOG10F 1
10143 EOF
10144
10145 cat >> confdefs.h <<\EOF
10146 #define HAVE_LOGF 1
10147 EOF
10148
10149 cat >> confdefs.h <<\EOF
10150 #define HAVE_MODFF 1
10151 EOF
10152
10153 cat >> confdefs.h <<\EOF
10154 #define HAVE_POWF 1
10155 EOF
10156
10157 cat >> confdefs.h <<\EOF
10158 #define HAVE_SINF 1
10159 EOF
10160
10161 cat >> confdefs.h <<\EOF
10162 #define HAVE_SINHF 1
10163 EOF
10164
10165 cat >> confdefs.h <<\EOF
10166 #define HAVE_SQRTF 1
10167 EOF
10168
10169 cat >> confdefs.h <<\EOF
10170 #define HAVE_TANF 1
10171 EOF
10172
10173 cat >> confdefs.h <<\EOF
10174 #define HAVE_TANHF 1
10175 EOF
10176
10177 ;;
10178 *-freebsd*)
10179 # Must replicate generic section since we don't have strtof or strtold.
10180 cat >> confdefs.h <<\EOF
10181 #define HAVE_MMAP 1
10182 EOF
10183
10184 cat >> confdefs.h <<\EOF
10185 #define HAVE_ACOSF 1
10186 EOF
10187
10188 cat >> confdefs.h <<\EOF
10189 #define HAVE_ASINF 1
10190 EOF
10191
10192 cat >> confdefs.h <<\EOF
10193 #define HAVE_ATAN2F 1
10194 EOF
10195
10196 cat >> confdefs.h <<\EOF
10197 #define HAVE_ATANF 1
10198 EOF
10199
10200 cat >> confdefs.h <<\EOF
10201 #define HAVE_CEILF 1
10202 EOF
10203
10204 cat >> confdefs.h <<\EOF
10205 #define HAVE_COPYSIGN 1
10206 EOF
10207
10208 cat >> confdefs.h <<\EOF
10209 #define HAVE_COPYSIGNF 1
10210 EOF
10211
10212 cat >> confdefs.h <<\EOF
10213 #define HAVE_COSF 1
10214 EOF
10215
10216 cat >> confdefs.h <<\EOF
10217 #define HAVE_COSHF 1
10218 EOF
10219
10220 cat >> confdefs.h <<\EOF
10221 #define HAVE_EXPF 1
10222 EOF
10223
10224 cat >> confdefs.h <<\EOF
10225 #define HAVE_FABSF 1
10226 EOF
10227
10228 cat >> confdefs.h <<\EOF
10229 #define HAVE_FLOORF 1
10230 EOF
10231
10232 cat >> confdefs.h <<\EOF
10233 #define HAVE_FMODF 1
10234 EOF
10235
10236 cat >> confdefs.h <<\EOF
10237 #define HAVE_FREXPF 1
10238 EOF
10239
10240 cat >> confdefs.h <<\EOF
10241 #define HAVE_LDEXPF 1
10242 EOF
10243
10244 cat >> confdefs.h <<\EOF
10245 #define HAVE_LOG10F 1
10246 EOF
10247
10248 cat >> confdefs.h <<\EOF
10249 #define HAVE_LOGF 1
10250 EOF
10251
10252 cat >> confdefs.h <<\EOF
10253 #define HAVE_MODFF 1
10254 EOF
10255
10256 cat >> confdefs.h <<\EOF
10257 #define HAVE_POWF 1
10258 EOF
10259
10260 cat >> confdefs.h <<\EOF
10261 #define HAVE_SINF 1
10262 EOF
10263
10264 cat >> confdefs.h <<\EOF
10265 #define HAVE_SINHF 1
10266 EOF
10267
10268 cat >> confdefs.h <<\EOF
10269 #define HAVE_SQRTF 1
10270 EOF
10271
10272 cat >> confdefs.h <<\EOF
10273 #define HAVE_TANF 1
10274 EOF
10275
10276 cat >> confdefs.h <<\EOF
10277 #define HAVE_TANHF 1
10278 EOF
10279
10280 ;;
10281 *)
10282 # GLIBCPP_CHECK_STDLIB_SUPPORT
10283 cat >> confdefs.h <<\EOF
10284 #define HAVE_STRTOF 1
10285 EOF
10286
10287 cat >> confdefs.h <<\EOF
10288 #define HAVE_STRTOLD 1
10289 EOF
10290
10291 # AC_FUNC_MMAP
10292 cat >> confdefs.h <<\EOF
10293 #define HAVE_MMAP 1
10294 EOF
10295
10296
10297 cat >> confdefs.h <<\EOF
10298 #define HAVE_ACOSF 1
10299 EOF
10300
10301 cat >> confdefs.h <<\EOF
10302 #define HAVE_ASINF 1
10303 EOF
10304
10305 cat >> confdefs.h <<\EOF
10306 #define HAVE_ATAN2F 1
10307 EOF
10308
10309 cat >> confdefs.h <<\EOF
10310 #define HAVE_ATANF 1
10311 EOF
10312
10313 cat >> confdefs.h <<\EOF
10314 #define HAVE_CEILF 1
10315 EOF
10316
10317 cat >> confdefs.h <<\EOF
10318 #define HAVE_COPYSIGN 1
10319 EOF
10320
10321 cat >> confdefs.h <<\EOF
10322 #define HAVE_COPYSIGNF 1
10323 EOF
10324
10325 cat >> confdefs.h <<\EOF
10326 #define HAVE_COSF 1
10327 EOF
10328
10329 cat >> confdefs.h <<\EOF
10330 #define HAVE_COSHF 1
10331 EOF
10332
10333 cat >> confdefs.h <<\EOF
10334 #define HAVE_EXPF 1
10335 EOF
10336
10337 cat >> confdefs.h <<\EOF
10338 #define HAVE_FABSF 1
10339 EOF
10340
10341 cat >> confdefs.h <<\EOF
10342 #define HAVE_FLOORF 1
10343 EOF
10344
10345 cat >> confdefs.h <<\EOF
10346 #define HAVE_FMODF 1
10347 EOF
10348
10349 cat >> confdefs.h <<\EOF
10350 #define HAVE_FREXPF 1
10351 EOF
10352
10353 cat >> confdefs.h <<\EOF
10354 #define HAVE_LDEXPF 1
10355 EOF
10356
10357 cat >> confdefs.h <<\EOF
10358 #define HAVE_LOG10F 1
10359 EOF
10360
10361 cat >> confdefs.h <<\EOF
10362 #define HAVE_LOGF 1
10363 EOF
10364
10365 cat >> confdefs.h <<\EOF
10366 #define HAVE_MODFF 1
10367 EOF
10368
10369 cat >> confdefs.h <<\EOF
10370 #define HAVE_POWF 1
10371 EOF
10372
10373 cat >> confdefs.h <<\EOF
10374 #define HAVE_SINF 1
10375 EOF
10376
10377 cat >> confdefs.h <<\EOF
10378 #define HAVE_SINHF 1
10379 EOF
10380
10381 cat >> confdefs.h <<\EOF
10382 #define HAVE_SQRTF 1
10383 EOF
10384
10385 cat >> confdefs.h <<\EOF
10386 #define HAVE_TANF 1
10387 EOF
10388
10389 cat >> confdefs.h <<\EOF
10390 #define HAVE_TANHF 1
10391 EOF
10392
10393 ;;
10394 esac
10395
10396 # At some point, we should differentiate between architectures
10397 # like x86, which have long double versions, and alpha/powerpc/etc.,
10398 # which don't. For the time being, punt.
10399 if test x"long_double_math_on_this_cpu" = x"yes"; then
10400 cat >> confdefs.h <<\EOF
10401 #define HAVE_ACOSL 1
10402 EOF
10403
10404 cat >> confdefs.h <<\EOF
10405 #define HAVE_ASINL 1
10406 EOF
10407
10408 cat >> confdefs.h <<\EOF
10409 #define HAVE_ATAN2L 1
10410 EOF
10411
10412 cat >> confdefs.h <<\EOF
10413 #define HAVE_ATANL 1
10414 EOF
10415
10416 cat >> confdefs.h <<\EOF
10417 #define HAVE_CEILL 1
10418 EOF
10419
10420 cat >> confdefs.h <<\EOF
10421 #define HAVE_COPYSIGNL 1
10422 EOF
10423
10424 cat >> confdefs.h <<\EOF
10425 #define HAVE_COSL 1
10426 EOF
10427
10428 cat >> confdefs.h <<\EOF
10429 #define HAVE_COSHL 1
10430 EOF
10431
10432 cat >> confdefs.h <<\EOF
10433 #define HAVE_EXPL 1
10434 EOF
10435
10436 cat >> confdefs.h <<\EOF
10437 #define HAVE_FABSL 1
10438 EOF
10439
10440 cat >> confdefs.h <<\EOF
10441 #define HAVE_FLOORL 1
10442 EOF
10443
10444 cat >> confdefs.h <<\EOF
10445 #define HAVE_FMODL 1
10446 EOF
10447
10448 cat >> confdefs.h <<\EOF
10449 #define HAVE_FREXPL 1
10450 EOF
10451
10452 cat >> confdefs.h <<\EOF
10453 #define HAVE_LDEXPL 1
10454 EOF
10455
10456 cat >> confdefs.h <<\EOF
10457 #define HAVE_LOG10L 1
10458 EOF
10459
10460 cat >> confdefs.h <<\EOF
10461 #define HAVE_LOGL 1
10462 EOF
10463
10464 cat >> confdefs.h <<\EOF
10465 #define HAVE_MODFL 1
10466 EOF
10467
10468 cat >> confdefs.h <<\EOF
10469 #define HAVE_POWL 1
10470 EOF
10471
10472 cat >> confdefs.h <<\EOF
10473 #define HAVE_SINCOSL 1
10474 EOF
10475
10476 cat >> confdefs.h <<\EOF
10477 #define HAVE_SINL 1
10478 EOF
10479
10480 cat >> confdefs.h <<\EOF
10481 #define HAVE_SINHL 1
10482 EOF
10483
10484 cat >> confdefs.h <<\EOF
10485 #define HAVE_SQRTL 1
10486 EOF
10487
10488 cat >> confdefs.h <<\EOF
10489 #define HAVE_TANL 1
10490 EOF
10491
10492 cat >> confdefs.h <<\EOF
10493 #define HAVE_TANHL 1
10494 EOF
10495
10496 fi
10497
10498 else
10499
10500 # We are being configured natively. We can do more elaborate tests
10501 # that include AC_TRY_COMPILE now, as the linker is assumed to be
10502 # working.
10503 GLIBCPP_IS_CROSS_COMPILING=0
10504 CANADIAN=no
10505
10506 # Check for available headers.
10507 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10508 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
10509 do
10510 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10511 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10512 echo "configure:10513: checking for $ac_hdr" >&5
10513 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10514 echo $ac_n "(cached) $ac_c" 1>&6
10515 else
10516 cat > conftest.$ac_ext <<EOF
10517 #line 10518 "configure"
10518 #include "confdefs.h"
10519 #include <$ac_hdr>
10520 EOF
10521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10522 { (eval echo configure:10523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10524 if test -z "$ac_err"; then
10525 rm -rf conftest*
10526 eval "ac_cv_header_$ac_safe=yes"
10527 else
10528 echo "$ac_err" >&5
10529 echo "configure: failed program was:" >&5
10530 cat conftest.$ac_ext >&5
10531 rm -rf conftest*
10532 eval "ac_cv_header_$ac_safe=no"
10533 fi
10534 rm -f conftest*
10535 fi
10536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10537 echo "$ac_t""yes" 1>&6
10538 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10539 cat >> confdefs.h <<EOF
10540 #define $ac_tr_hdr 1
10541 EOF
10542
10543 else
10544 echo "$ac_t""no" 1>&6
10545 fi
10546 done
10547
10548
10549
10550 # All these tests are for C++; save the language and the compiler flags.
10551 # The CXXFLAGS thing is suspicious, but based on similar bits previously
10552 # found in GLIBCPP_CONFIGURE.
10553
10554 ac_ext=C
10555 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10556 ac_cpp='$CXXCPP $CPPFLAGS'
10557 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10558 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10559 cross_compiling=$ac_cv_prog_cxx_cross
10560
10561 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10562 ac_save_CXXFLAGS="$CXXFLAGS"
10563
10564 # Check for maintainer-mode bits.
10565 if test x"$USE_MAINTAINER_MODE" = xno; then
10566 WERROR=''
10567 else
10568 WERROR='-Werror'
10569 fi
10570
10571 # Check for -ffunction-sections -fdata-sections
10572 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10573 echo "configure:10574: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10574 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10575 cat > conftest.$ac_ext <<EOF
10576 #line 10577 "configure"
10577 #include "confdefs.h"
10578
10579 int main() {
10580 int foo;
10581
10582 ; return 0; }
10583 EOF
10584 if { (eval echo configure:10585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10585 rm -rf conftest*
10586 ac_fdsections=yes
10587 else
10588 echo "configure: failed program was:" >&5
10589 cat conftest.$ac_ext >&5
10590 rm -rf conftest*
10591 ac_fdsections=no
10592 fi
10593 rm -f conftest*
10594 if test "$ac_test_CXXFLAGS" = set; then
10595 CXXFLAGS="$ac_save_CXXFLAGS"
10596 else
10597 # this is the suspicious part
10598 CXXFLAGS=''
10599 fi
10600 if test x"$ac_fdsections" = x"yes"; then
10601 SECTION_FLAGS='-ffunction-sections -fdata-sections'
10602 fi
10603 echo "$ac_t""$ac_fdsections" 1>&6
10604
10605 ac_ext=c
10606 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10607 ac_cpp='$CPP $CPPFLAGS'
10608 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10609 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10610 cross_compiling=$ac_cv_prog_cc_cross
10611
10612
10613
10614
10615
10616 # If we're not using GNU ld, then there's no point in even trying these
10617 # tests. Check for that first. We should have already tested for gld
10618 # by now (in libtool), but require it now just to be safe...
10619 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10620 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10621
10622
10623 # The name set by libtool depends on the version of libtool. Shame on us
10624 # for depending on an impl detail, but c'est la vie. Older versions used
10625 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10626 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10627 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
10628 # set (hence we're using an older libtool), then set it.
10629 if test x${with_gnu_ld+set} != xset; then
10630 if test x${ac_cv_prog_gnu_ld+set} != xset; then
10631 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
10632 with_gnu_ld=no
10633 else
10634 with_gnu_ld=$ac_cv_prog_gnu_ld
10635 fi
10636 fi
10637
10638 # Start by getting the version number. I think the libtool test already
10639 # does some of this, but throws away the result.
10640
10641 ldver=`$LD --version 2>/dev/null | head -1 | \
10642 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10643
10644 glibcpp_gnu_ld_version=`echo $ldver | \
10645 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10646
10647 # Set --gc-sections.
10648 if test "$with_gnu_ld" = "notbroken"; then
10649 # GNU ld it is! Joy and bunny rabbits!
10650
10651 # All these tests are for C++; save the language and the compiler flags.
10652 # Need to do this so that g++ won't try to link in libstdc++
10653 ac_test_CFLAGS="${CFLAGS+set}"
10654 ac_save_CFLAGS="$CFLAGS"
10655 CFLAGS='-x c++ -Wl,--gc-sections'
10656
10657 # Check for -Wl,--gc-sections
10658 # XXX This test is broken at the moment, as symbols required for
10659 # linking are now in libsupc++ (not built yet.....). In addition,
10660 # this test has cored on solaris in the past. In addition,
10661 # --gc-sections doesn't really work at the moment (keeps on discarding
10662 # used sections, first .eh_frame and now some of the glibc sections for
10663 # iconv). Bzzzzt. Thanks for playing, maybe next time.
10664 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10665 echo "configure:10666: checking for ld that supports -Wl,--gc-sections" >&5
10666 if test "$cross_compiling" = yes; then
10667 ac_sectionLDflags=yes
10668 else
10669 cat > conftest.$ac_ext <<EOF
10670 #line 10671 "configure"
10671 #include "confdefs.h"
10672
10673 int main(void)
10674 {
10675 try { throw 1; }
10676 catch (...) { };
10677 return 0;
10678 }
10679
10680 EOF
10681 if { (eval echo configure:10682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10682 then
10683 ac_sectionLDflags=yes
10684 else
10685 echo "configure: failed program was:" >&5
10686 cat conftest.$ac_ext >&5
10687 rm -fr conftest*
10688 ac_sectionLDflags=no
10689 fi
10690 rm -fr conftest*
10691 fi
10692
10693 if test "$ac_test_CFLAGS" = set; then
10694 CFLAGS="$ac_save_CFLAGS"
10695 else
10696 # this is the suspicious part
10697 CFLAGS=''
10698 fi
10699 if test "$ac_sectionLDflags" = "yes"; then
10700 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10701 fi
10702 echo "$ac_t""$ac_sectionLDflags" 1>&6
10703 fi
10704
10705 # Set linker optimization flags.
10706 if test x"$with_gnu_ld" = x"yes"; then
10707 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10708 fi
10709
10710
10711
10712
10713
10714
10715 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
10716 echo "configure:10717: checking for __builtin_abs declaration" >&5
10717 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
10718 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
10719 echo $ac_n "(cached) $ac_c" 1>&6
10720 else
10721
10722
10723 ac_ext=C
10724 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10725 ac_cpp='$CXXCPP $CPPFLAGS'
10726 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10727 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10728 cross_compiling=$ac_cv_prog_cxx_cross
10729
10730 cat > conftest.$ac_ext <<EOF
10731 #line 10732 "configure"
10732 #include "confdefs.h"
10733 #include <math.h>
10734 int main() {
10735 __builtin_abs(0);
10736 ; return 0; }
10737 EOF
10738 if { (eval echo configure:10739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10739 rm -rf conftest*
10740 glibcpp_cv_func___builtin_abs_use=yes
10741 else
10742 echo "configure: failed program was:" >&5
10743 cat conftest.$ac_ext >&5
10744 rm -rf conftest*
10745 glibcpp_cv_func___builtin_abs_use=no
10746 fi
10747 rm -f conftest*
10748 ac_ext=c
10749 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10750 ac_cpp='$CPP $CPPFLAGS'
10751 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10752 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10753 cross_compiling=$ac_cv_prog_cc_cross
10754
10755
10756 fi
10757
10758 fi
10759 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
10760 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
10761 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
10762 echo "configure:10763: checking for __builtin_abs linkage" >&5
10763 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
10764 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
10765 echo $ac_n "(cached) $ac_c" 1>&6
10766 else
10767
10768 cat > conftest.$ac_ext <<EOF
10769 #line 10770 "configure"
10770 #include "confdefs.h"
10771 #include <math.h>
10772 int main() {
10773 __builtin_abs(0);
10774 ; return 0; }
10775 EOF
10776 if { (eval echo configure:10777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10777 rm -rf conftest*
10778 glibcpp_cv_func___builtin_abs_link=yes
10779 else
10780 echo "configure: failed program was:" >&5
10781 cat conftest.$ac_ext >&5
10782 rm -rf conftest*
10783 glibcpp_cv_func___builtin_abs_link=no
10784 fi
10785 rm -f conftest*
10786
10787 fi
10788
10789 fi
10790 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
10791 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
10792 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10793 cat >> confdefs.h <<EOF
10794 #define ${ac_tr_func} 1
10795 EOF
10796
10797 fi
10798 fi
10799
10800
10801 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
10802 echo "configure:10803: checking for __builtin_fabsf declaration" >&5
10803 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
10804 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
10805 echo $ac_n "(cached) $ac_c" 1>&6
10806 else
10807
10808
10809 ac_ext=C
10810 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10811 ac_cpp='$CXXCPP $CPPFLAGS'
10812 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10813 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10814 cross_compiling=$ac_cv_prog_cxx_cross
10815
10816 cat > conftest.$ac_ext <<EOF
10817 #line 10818 "configure"
10818 #include "confdefs.h"
10819 #include <math.h>
10820 int main() {
10821 __builtin_fabsf(0);
10822 ; return 0; }
10823 EOF
10824 if { (eval echo configure:10825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10825 rm -rf conftest*
10826 glibcpp_cv_func___builtin_fabsf_use=yes
10827 else
10828 echo "configure: failed program was:" >&5
10829 cat conftest.$ac_ext >&5
10830 rm -rf conftest*
10831 glibcpp_cv_func___builtin_fabsf_use=no
10832 fi
10833 rm -f conftest*
10834 ac_ext=c
10835 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10836 ac_cpp='$CPP $CPPFLAGS'
10837 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10838 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10839 cross_compiling=$ac_cv_prog_cc_cross
10840
10841
10842 fi
10843
10844 fi
10845 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
10846 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
10847 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
10848 echo "configure:10849: checking for __builtin_fabsf linkage" >&5
10849 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
10850 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
10851 echo $ac_n "(cached) $ac_c" 1>&6
10852 else
10853
10854 cat > conftest.$ac_ext <<EOF
10855 #line 10856 "configure"
10856 #include "confdefs.h"
10857 #include <math.h>
10858 int main() {
10859 __builtin_fabsf(0);
10860 ; return 0; }
10861 EOF
10862 if { (eval echo configure:10863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10863 rm -rf conftest*
10864 glibcpp_cv_func___builtin_fabsf_link=yes
10865 else
10866 echo "configure: failed program was:" >&5
10867 cat conftest.$ac_ext >&5
10868 rm -rf conftest*
10869 glibcpp_cv_func___builtin_fabsf_link=no
10870 fi
10871 rm -f conftest*
10872
10873 fi
10874
10875 fi
10876 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
10877 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
10878 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10879 cat >> confdefs.h <<EOF
10880 #define ${ac_tr_func} 1
10881 EOF
10882
10883 fi
10884 fi
10885
10886
10887 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
10888 echo "configure:10889: checking for __builtin_fabs declaration" >&5
10889 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
10890 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
10891 echo $ac_n "(cached) $ac_c" 1>&6
10892 else
10893
10894
10895 ac_ext=C
10896 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10897 ac_cpp='$CXXCPP $CPPFLAGS'
10898 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10899 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10900 cross_compiling=$ac_cv_prog_cxx_cross
10901
10902 cat > conftest.$ac_ext <<EOF
10903 #line 10904 "configure"
10904 #include "confdefs.h"
10905 #include <math.h>
10906 int main() {
10907 __builtin_fabs(0);
10908 ; return 0; }
10909 EOF
10910 if { (eval echo configure:10911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10911 rm -rf conftest*
10912 glibcpp_cv_func___builtin_fabs_use=yes
10913 else
10914 echo "configure: failed program was:" >&5
10915 cat conftest.$ac_ext >&5
10916 rm -rf conftest*
10917 glibcpp_cv_func___builtin_fabs_use=no
10918 fi
10919 rm -f conftest*
10920 ac_ext=c
10921 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10922 ac_cpp='$CPP $CPPFLAGS'
10923 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10924 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10925 cross_compiling=$ac_cv_prog_cc_cross
10926
10927
10928 fi
10929
10930 fi
10931 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
10932 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
10933 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
10934 echo "configure:10935: checking for __builtin_fabs linkage" >&5
10935 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
10936 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
10937 echo $ac_n "(cached) $ac_c" 1>&6
10938 else
10939
10940 cat > conftest.$ac_ext <<EOF
10941 #line 10942 "configure"
10942 #include "confdefs.h"
10943 #include <math.h>
10944 int main() {
10945 __builtin_fabs(0);
10946 ; return 0; }
10947 EOF
10948 if { (eval echo configure:10949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10949 rm -rf conftest*
10950 glibcpp_cv_func___builtin_fabs_link=yes
10951 else
10952 echo "configure: failed program was:" >&5
10953 cat conftest.$ac_ext >&5
10954 rm -rf conftest*
10955 glibcpp_cv_func___builtin_fabs_link=no
10956 fi
10957 rm -f conftest*
10958
10959 fi
10960
10961 fi
10962 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
10963 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
10964 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10965 cat >> confdefs.h <<EOF
10966 #define ${ac_tr_func} 1
10967 EOF
10968
10969 fi
10970 fi
10971
10972
10973 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
10974 echo "configure:10975: checking for __builtin_fabsl declaration" >&5
10975 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
10976 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
10977 echo $ac_n "(cached) $ac_c" 1>&6
10978 else
10979
10980
10981 ac_ext=C
10982 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10983 ac_cpp='$CXXCPP $CPPFLAGS'
10984 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10985 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10986 cross_compiling=$ac_cv_prog_cxx_cross
10987
10988 cat > conftest.$ac_ext <<EOF
10989 #line 10990 "configure"
10990 #include "confdefs.h"
10991 #include <math.h>
10992 int main() {
10993 __builtin_fabsl(0);
10994 ; return 0; }
10995 EOF
10996 if { (eval echo configure:10997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10997 rm -rf conftest*
10998 glibcpp_cv_func___builtin_fabsl_use=yes
10999 else
11000 echo "configure: failed program was:" >&5
11001 cat conftest.$ac_ext >&5
11002 rm -rf conftest*
11003 glibcpp_cv_func___builtin_fabsl_use=no
11004 fi
11005 rm -f conftest*
11006 ac_ext=c
11007 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11008 ac_cpp='$CPP $CPPFLAGS'
11009 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11010 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11011 cross_compiling=$ac_cv_prog_cc_cross
11012
11013
11014 fi
11015
11016 fi
11017 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
11018 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
11019 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
11020 echo "configure:11021: checking for __builtin_fabsl linkage" >&5
11021 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
11022 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
11023 echo $ac_n "(cached) $ac_c" 1>&6
11024 else
11025
11026 cat > conftest.$ac_ext <<EOF
11027 #line 11028 "configure"
11028 #include "confdefs.h"
11029 #include <math.h>
11030 int main() {
11031 __builtin_fabsl(0);
11032 ; return 0; }
11033 EOF
11034 if { (eval echo configure:11035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11035 rm -rf conftest*
11036 glibcpp_cv_func___builtin_fabsl_link=yes
11037 else
11038 echo "configure: failed program was:" >&5
11039 cat conftest.$ac_ext >&5
11040 rm -rf conftest*
11041 glibcpp_cv_func___builtin_fabsl_link=no
11042 fi
11043 rm -f conftest*
11044
11045 fi
11046
11047 fi
11048 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
11049 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
11050 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11051 cat >> confdefs.h <<EOF
11052 #define ${ac_tr_func} 1
11053 EOF
11054
11055 fi
11056 fi
11057
11058
11059 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
11060 echo "configure:11061: checking for __builtin_labs declaration" >&5
11061 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
11062 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
11063 echo $ac_n "(cached) $ac_c" 1>&6
11064 else
11065
11066
11067 ac_ext=C
11068 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11069 ac_cpp='$CXXCPP $CPPFLAGS'
11070 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11071 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11072 cross_compiling=$ac_cv_prog_cxx_cross
11073
11074 cat > conftest.$ac_ext <<EOF
11075 #line 11076 "configure"
11076 #include "confdefs.h"
11077 #include <math.h>
11078 int main() {
11079 __builtin_labs(0);
11080 ; return 0; }
11081 EOF
11082 if { (eval echo configure:11083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11083 rm -rf conftest*
11084 glibcpp_cv_func___builtin_labs_use=yes
11085 else
11086 echo "configure: failed program was:" >&5
11087 cat conftest.$ac_ext >&5
11088 rm -rf conftest*
11089 glibcpp_cv_func___builtin_labs_use=no
11090 fi
11091 rm -f conftest*
11092 ac_ext=c
11093 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11094 ac_cpp='$CPP $CPPFLAGS'
11095 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11096 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11097 cross_compiling=$ac_cv_prog_cc_cross
11098
11099
11100 fi
11101
11102 fi
11103 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
11104 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
11105 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
11106 echo "configure:11107: checking for __builtin_labs linkage" >&5
11107 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
11108 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
11109 echo $ac_n "(cached) $ac_c" 1>&6
11110 else
11111
11112 cat > conftest.$ac_ext <<EOF
11113 #line 11114 "configure"
11114 #include "confdefs.h"
11115 #include <math.h>
11116 int main() {
11117 __builtin_labs(0);
11118 ; return 0; }
11119 EOF
11120 if { (eval echo configure:11121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11121 rm -rf conftest*
11122 glibcpp_cv_func___builtin_labs_link=yes
11123 else
11124 echo "configure: failed program was:" >&5
11125 cat conftest.$ac_ext >&5
11126 rm -rf conftest*
11127 glibcpp_cv_func___builtin_labs_link=no
11128 fi
11129 rm -f conftest*
11130
11131 fi
11132
11133 fi
11134 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
11135 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
11136 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11137 cat >> confdefs.h <<EOF
11138 #define ${ac_tr_func} 1
11139 EOF
11140
11141 fi
11142 fi
11143
11144
11145
11146 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
11147 echo "configure:11148: checking for __builtin_sqrtf declaration" >&5
11148 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
11149 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
11150 echo $ac_n "(cached) $ac_c" 1>&6
11151 else
11152
11153
11154 ac_ext=C
11155 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11156 ac_cpp='$CXXCPP $CPPFLAGS'
11157 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11158 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11159 cross_compiling=$ac_cv_prog_cxx_cross
11160
11161 cat > conftest.$ac_ext <<EOF
11162 #line 11163 "configure"
11163 #include "confdefs.h"
11164 #include <math.h>
11165 int main() {
11166 __builtin_sqrtf(0);
11167 ; return 0; }
11168 EOF
11169 if { (eval echo configure:11170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11170 rm -rf conftest*
11171 glibcpp_cv_func___builtin_sqrtf_use=yes
11172 else
11173 echo "configure: failed program was:" >&5
11174 cat conftest.$ac_ext >&5
11175 rm -rf conftest*
11176 glibcpp_cv_func___builtin_sqrtf_use=no
11177 fi
11178 rm -f conftest*
11179 ac_ext=c
11180 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11181 ac_cpp='$CPP $CPPFLAGS'
11182 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11183 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11184 cross_compiling=$ac_cv_prog_cc_cross
11185
11186
11187 fi
11188
11189 fi
11190 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
11191 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
11192 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
11193 echo "configure:11194: checking for __builtin_sqrtf linkage" >&5
11194 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
11195 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
11196 echo $ac_n "(cached) $ac_c" 1>&6
11197 else
11198
11199 cat > conftest.$ac_ext <<EOF
11200 #line 11201 "configure"
11201 #include "confdefs.h"
11202 #include <math.h>
11203 int main() {
11204 __builtin_sqrtf(0);
11205 ; return 0; }
11206 EOF
11207 if { (eval echo configure:11208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11208 rm -rf conftest*
11209 glibcpp_cv_func___builtin_sqrtf_link=yes
11210 else
11211 echo "configure: failed program was:" >&5
11212 cat conftest.$ac_ext >&5
11213 rm -rf conftest*
11214 glibcpp_cv_func___builtin_sqrtf_link=no
11215 fi
11216 rm -f conftest*
11217
11218 fi
11219
11220 fi
11221 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
11222 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
11223 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11224 cat >> confdefs.h <<EOF
11225 #define ${ac_tr_func} 1
11226 EOF
11227
11228 fi
11229 fi
11230
11231
11232 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
11233 echo "configure:11234: checking for __builtin_sqrt declaration" >&5
11234 if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
11235 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
11236 echo $ac_n "(cached) $ac_c" 1>&6
11237 else
11238
11239
11240 ac_ext=C
11241 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11242 ac_cpp='$CXXCPP $CPPFLAGS'
11243 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11244 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11245 cross_compiling=$ac_cv_prog_cxx_cross
11246
11247 cat > conftest.$ac_ext <<EOF
11248 #line 11249 "configure"
11249 #include "confdefs.h"
11250 #include <math.h>
11251 int main() {
11252 __builtin_sqrt(0);
11253 ; return 0; }
11254 EOF
11255 if { (eval echo configure:11256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11256 rm -rf conftest*
11257 glibcpp_cv_func___builtin_sqrt_use=yes
11258 else
11259 echo "configure: failed program was:" >&5
11260 cat conftest.$ac_ext >&5
11261 rm -rf conftest*
11262 glibcpp_cv_func___builtin_sqrt_use=no
11263 fi
11264 rm -f conftest*
11265 ac_ext=c
11266 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11267 ac_cpp='$CPP $CPPFLAGS'
11268 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11269 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11270 cross_compiling=$ac_cv_prog_cc_cross
11271
11272
11273 fi
11274
11275 fi
11276 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
11277 if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
11278 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
11279 echo "configure:11280: checking for __builtin_sqrt linkage" >&5
11280 if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
11281 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
11282 echo $ac_n "(cached) $ac_c" 1>&6
11283 else
11284
11285 cat > conftest.$ac_ext <<EOF
11286 #line 11287 "configure"
11287 #include "confdefs.h"
11288 #include <math.h>
11289 int main() {
11290 __builtin_sqrt(0);
11291 ; return 0; }
11292 EOF
11293 if { (eval echo configure:11294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11294 rm -rf conftest*
11295 glibcpp_cv_func___builtin_sqrt_link=yes
11296 else
11297 echo "configure: failed program was:" >&5
11298 cat conftest.$ac_ext >&5
11299 rm -rf conftest*
11300 glibcpp_cv_func___builtin_sqrt_link=no
11301 fi
11302 rm -f conftest*
11303
11304 fi
11305
11306 fi
11307 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
11308 if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
11309 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11310 cat >> confdefs.h <<EOF
11311 #define ${ac_tr_func} 1
11312 EOF
11313
11314 fi
11315 fi
11316
11317
11318 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
11319 echo "configure:11320: checking for __builtin_sqrtl declaration" >&5
11320 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
11321 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
11322 echo $ac_n "(cached) $ac_c" 1>&6
11323 else
11324
11325
11326 ac_ext=C
11327 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11328 ac_cpp='$CXXCPP $CPPFLAGS'
11329 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11330 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11331 cross_compiling=$ac_cv_prog_cxx_cross
11332
11333 cat > conftest.$ac_ext <<EOF
11334 #line 11335 "configure"
11335 #include "confdefs.h"
11336 #include <math.h>
11337 int main() {
11338 __builtin_sqrtl(0);
11339 ; return 0; }
11340 EOF
11341 if { (eval echo configure:11342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11342 rm -rf conftest*
11343 glibcpp_cv_func___builtin_sqrtl_use=yes
11344 else
11345 echo "configure: failed program was:" >&5
11346 cat conftest.$ac_ext >&5
11347 rm -rf conftest*
11348 glibcpp_cv_func___builtin_sqrtl_use=no
11349 fi
11350 rm -f conftest*
11351 ac_ext=c
11352 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11353 ac_cpp='$CPP $CPPFLAGS'
11354 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11355 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11356 cross_compiling=$ac_cv_prog_cc_cross
11357
11358
11359 fi
11360
11361 fi
11362 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
11363 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
11364 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
11365 echo "configure:11366: checking for __builtin_sqrtl linkage" >&5
11366 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
11367 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
11368 echo $ac_n "(cached) $ac_c" 1>&6
11369 else
11370
11371 cat > conftest.$ac_ext <<EOF
11372 #line 11373 "configure"
11373 #include "confdefs.h"
11374 #include <math.h>
11375 int main() {
11376 __builtin_sqrtl(0);
11377 ; return 0; }
11378 EOF
11379 if { (eval echo configure:11380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11380 rm -rf conftest*
11381 glibcpp_cv_func___builtin_sqrtl_link=yes
11382 else
11383 echo "configure: failed program was:" >&5
11384 cat conftest.$ac_ext >&5
11385 rm -rf conftest*
11386 glibcpp_cv_func___builtin_sqrtl_link=no
11387 fi
11388 rm -f conftest*
11389
11390 fi
11391
11392 fi
11393 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
11394 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
11395 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11396 cat >> confdefs.h <<EOF
11397 #define ${ac_tr_func} 1
11398 EOF
11399
11400 fi
11401 fi
11402
11403
11404
11405 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
11406 echo "configure:11407: checking for __builtin_sinf declaration" >&5
11407 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
11408 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
11409 echo $ac_n "(cached) $ac_c" 1>&6
11410 else
11411
11412
11413 ac_ext=C
11414 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11415 ac_cpp='$CXXCPP $CPPFLAGS'
11416 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11417 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11418 cross_compiling=$ac_cv_prog_cxx_cross
11419
11420 cat > conftest.$ac_ext <<EOF
11421 #line 11422 "configure"
11422 #include "confdefs.h"
11423 #include <math.h>
11424 int main() {
11425 __builtin_sinf(0);
11426 ; return 0; }
11427 EOF
11428 if { (eval echo configure:11429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11429 rm -rf conftest*
11430 glibcpp_cv_func___builtin_sinf_use=yes
11431 else
11432 echo "configure: failed program was:" >&5
11433 cat conftest.$ac_ext >&5
11434 rm -rf conftest*
11435 glibcpp_cv_func___builtin_sinf_use=no
11436 fi
11437 rm -f conftest*
11438 ac_ext=c
11439 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11440 ac_cpp='$CPP $CPPFLAGS'
11441 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11442 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11443 cross_compiling=$ac_cv_prog_cc_cross
11444
11445
11446 fi
11447
11448 fi
11449 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
11450 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
11451 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
11452 echo "configure:11453: checking for __builtin_sinf linkage" >&5
11453 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
11454 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
11455 echo $ac_n "(cached) $ac_c" 1>&6
11456 else
11457
11458 cat > conftest.$ac_ext <<EOF
11459 #line 11460 "configure"
11460 #include "confdefs.h"
11461 #include <math.h>
11462 int main() {
11463 __builtin_sinf(0);
11464 ; return 0; }
11465 EOF
11466 if { (eval echo configure:11467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11467 rm -rf conftest*
11468 glibcpp_cv_func___builtin_sinf_link=yes
11469 else
11470 echo "configure: failed program was:" >&5
11471 cat conftest.$ac_ext >&5
11472 rm -rf conftest*
11473 glibcpp_cv_func___builtin_sinf_link=no
11474 fi
11475 rm -f conftest*
11476
11477 fi
11478
11479 fi
11480 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
11481 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
11482 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11483 cat >> confdefs.h <<EOF
11484 #define ${ac_tr_func} 1
11485 EOF
11486
11487 fi
11488 fi
11489
11490
11491 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
11492 echo "configure:11493: checking for __builtin_sin declaration" >&5
11493 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
11494 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
11495 echo $ac_n "(cached) $ac_c" 1>&6
11496 else
11497
11498
11499 ac_ext=C
11500 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11501 ac_cpp='$CXXCPP $CPPFLAGS'
11502 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11503 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11504 cross_compiling=$ac_cv_prog_cxx_cross
11505
11506 cat > conftest.$ac_ext <<EOF
11507 #line 11508 "configure"
11508 #include "confdefs.h"
11509 #include <math.h>
11510 int main() {
11511 __builtin_sin(0);
11512 ; return 0; }
11513 EOF
11514 if { (eval echo configure:11515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11515 rm -rf conftest*
11516 glibcpp_cv_func___builtin_sin_use=yes
11517 else
11518 echo "configure: failed program was:" >&5
11519 cat conftest.$ac_ext >&5
11520 rm -rf conftest*
11521 glibcpp_cv_func___builtin_sin_use=no
11522 fi
11523 rm -f conftest*
11524 ac_ext=c
11525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11526 ac_cpp='$CPP $CPPFLAGS'
11527 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11528 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11529 cross_compiling=$ac_cv_prog_cc_cross
11530
11531
11532 fi
11533
11534 fi
11535 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
11536 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
11537 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
11538 echo "configure:11539: checking for __builtin_sin linkage" >&5
11539 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
11540 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
11541 echo $ac_n "(cached) $ac_c" 1>&6
11542 else
11543
11544 cat > conftest.$ac_ext <<EOF
11545 #line 11546 "configure"
11546 #include "confdefs.h"
11547 #include <math.h>
11548 int main() {
11549 __builtin_sin(0);
11550 ; return 0; }
11551 EOF
11552 if { (eval echo configure:11553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11553 rm -rf conftest*
11554 glibcpp_cv_func___builtin_sin_link=yes
11555 else
11556 echo "configure: failed program was:" >&5
11557 cat conftest.$ac_ext >&5
11558 rm -rf conftest*
11559 glibcpp_cv_func___builtin_sin_link=no
11560 fi
11561 rm -f conftest*
11562
11563 fi
11564
11565 fi
11566 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
11567 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
11568 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11569 cat >> confdefs.h <<EOF
11570 #define ${ac_tr_func} 1
11571 EOF
11572
11573 fi
11574 fi
11575
11576
11577 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
11578 echo "configure:11579: checking for __builtin_sinl declaration" >&5
11579 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
11580 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
11581 echo $ac_n "(cached) $ac_c" 1>&6
11582 else
11583
11584
11585 ac_ext=C
11586 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11587 ac_cpp='$CXXCPP $CPPFLAGS'
11588 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11589 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11590 cross_compiling=$ac_cv_prog_cxx_cross
11591
11592 cat > conftest.$ac_ext <<EOF
11593 #line 11594 "configure"
11594 #include "confdefs.h"
11595 #include <math.h>
11596 int main() {
11597 __builtin_sinl(0);
11598 ; return 0; }
11599 EOF
11600 if { (eval echo configure:11601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11601 rm -rf conftest*
11602 glibcpp_cv_func___builtin_sinl_use=yes
11603 else
11604 echo "configure: failed program was:" >&5
11605 cat conftest.$ac_ext >&5
11606 rm -rf conftest*
11607 glibcpp_cv_func___builtin_sinl_use=no
11608 fi
11609 rm -f conftest*
11610 ac_ext=c
11611 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11612 ac_cpp='$CPP $CPPFLAGS'
11613 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11614 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11615 cross_compiling=$ac_cv_prog_cc_cross
11616
11617
11618 fi
11619
11620 fi
11621 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
11622 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
11623 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
11624 echo "configure:11625: checking for __builtin_sinl linkage" >&5
11625 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
11626 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
11627 echo $ac_n "(cached) $ac_c" 1>&6
11628 else
11629
11630 cat > conftest.$ac_ext <<EOF
11631 #line 11632 "configure"
11632 #include "confdefs.h"
11633 #include <math.h>
11634 int main() {
11635 __builtin_sinl(0);
11636 ; return 0; }
11637 EOF
11638 if { (eval echo configure:11639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11639 rm -rf conftest*
11640 glibcpp_cv_func___builtin_sinl_link=yes
11641 else
11642 echo "configure: failed program was:" >&5
11643 cat conftest.$ac_ext >&5
11644 rm -rf conftest*
11645 glibcpp_cv_func___builtin_sinl_link=no
11646 fi
11647 rm -f conftest*
11648
11649 fi
11650
11651 fi
11652 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
11653 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
11654 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11655 cat >> confdefs.h <<EOF
11656 #define ${ac_tr_func} 1
11657 EOF
11658
11659 fi
11660 fi
11661
11662
11663
11664 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
11665 echo "configure:11666: checking for __builtin_cosf declaration" >&5
11666 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
11667 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
11668 echo $ac_n "(cached) $ac_c" 1>&6
11669 else
11670
11671
11672 ac_ext=C
11673 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11674 ac_cpp='$CXXCPP $CPPFLAGS'
11675 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11676 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11677 cross_compiling=$ac_cv_prog_cxx_cross
11678
11679 cat > conftest.$ac_ext <<EOF
11680 #line 11681 "configure"
11681 #include "confdefs.h"
11682 #include <math.h>
11683 int main() {
11684 __builtin_cosf(0);
11685 ; return 0; }
11686 EOF
11687 if { (eval echo configure:11688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11688 rm -rf conftest*
11689 glibcpp_cv_func___builtin_cosf_use=yes
11690 else
11691 echo "configure: failed program was:" >&5
11692 cat conftest.$ac_ext >&5
11693 rm -rf conftest*
11694 glibcpp_cv_func___builtin_cosf_use=no
11695 fi
11696 rm -f conftest*
11697 ac_ext=c
11698 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11699 ac_cpp='$CPP $CPPFLAGS'
11700 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11701 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11702 cross_compiling=$ac_cv_prog_cc_cross
11703
11704
11705 fi
11706
11707 fi
11708 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
11709 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
11710 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
11711 echo "configure:11712: checking for __builtin_cosf linkage" >&5
11712 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
11713 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
11714 echo $ac_n "(cached) $ac_c" 1>&6
11715 else
11716
11717 cat > conftest.$ac_ext <<EOF
11718 #line 11719 "configure"
11719 #include "confdefs.h"
11720 #include <math.h>
11721 int main() {
11722 __builtin_cosf(0);
11723 ; return 0; }
11724 EOF
11725 if { (eval echo configure:11726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11726 rm -rf conftest*
11727 glibcpp_cv_func___builtin_cosf_link=yes
11728 else
11729 echo "configure: failed program was:" >&5
11730 cat conftest.$ac_ext >&5
11731 rm -rf conftest*
11732 glibcpp_cv_func___builtin_cosf_link=no
11733 fi
11734 rm -f conftest*
11735
11736 fi
11737
11738 fi
11739 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
11740 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
11741 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11742 cat >> confdefs.h <<EOF
11743 #define ${ac_tr_func} 1
11744 EOF
11745
11746 fi
11747 fi
11748
11749
11750 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
11751 echo "configure:11752: checking for __builtin_cos declaration" >&5
11752 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
11753 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
11754 echo $ac_n "(cached) $ac_c" 1>&6
11755 else
11756
11757
11758 ac_ext=C
11759 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11760 ac_cpp='$CXXCPP $CPPFLAGS'
11761 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11762 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11763 cross_compiling=$ac_cv_prog_cxx_cross
11764
11765 cat > conftest.$ac_ext <<EOF
11766 #line 11767 "configure"
11767 #include "confdefs.h"
11768 #include <math.h>
11769 int main() {
11770 __builtin_cos(0);
11771 ; return 0; }
11772 EOF
11773 if { (eval echo configure:11774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11774 rm -rf conftest*
11775 glibcpp_cv_func___builtin_cos_use=yes
11776 else
11777 echo "configure: failed program was:" >&5
11778 cat conftest.$ac_ext >&5
11779 rm -rf conftest*
11780 glibcpp_cv_func___builtin_cos_use=no
11781 fi
11782 rm -f conftest*
11783 ac_ext=c
11784 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11785 ac_cpp='$CPP $CPPFLAGS'
11786 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11787 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11788 cross_compiling=$ac_cv_prog_cc_cross
11789
11790
11791 fi
11792
11793 fi
11794 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
11795 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
11796 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
11797 echo "configure:11798: checking for __builtin_cos linkage" >&5
11798 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
11799 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
11800 echo $ac_n "(cached) $ac_c" 1>&6
11801 else
11802
11803 cat > conftest.$ac_ext <<EOF
11804 #line 11805 "configure"
11805 #include "confdefs.h"
11806 #include <math.h>
11807 int main() {
11808 __builtin_cos(0);
11809 ; return 0; }
11810 EOF
11811 if { (eval echo configure:11812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11812 rm -rf conftest*
11813 glibcpp_cv_func___builtin_cos_link=yes
11814 else
11815 echo "configure: failed program was:" >&5
11816 cat conftest.$ac_ext >&5
11817 rm -rf conftest*
11818 glibcpp_cv_func___builtin_cos_link=no
11819 fi
11820 rm -f conftest*
11821
11822 fi
11823
11824 fi
11825 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
11826 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
11827 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11828 cat >> confdefs.h <<EOF
11829 #define ${ac_tr_func} 1
11830 EOF
11831
11832 fi
11833 fi
11834
11835
11836 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
11837 echo "configure:11838: checking for __builtin_cosl declaration" >&5
11838 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
11839 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
11840 echo $ac_n "(cached) $ac_c" 1>&6
11841 else
11842
11843
11844 ac_ext=C
11845 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11846 ac_cpp='$CXXCPP $CPPFLAGS'
11847 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11848 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11849 cross_compiling=$ac_cv_prog_cxx_cross
11850
11851 cat > conftest.$ac_ext <<EOF
11852 #line 11853 "configure"
11853 #include "confdefs.h"
11854 #include <math.h>
11855 int main() {
11856 __builtin_cosl(0);
11857 ; return 0; }
11858 EOF
11859 if { (eval echo configure:11860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11860 rm -rf conftest*
11861 glibcpp_cv_func___builtin_cosl_use=yes
11862 else
11863 echo "configure: failed program was:" >&5
11864 cat conftest.$ac_ext >&5
11865 rm -rf conftest*
11866 glibcpp_cv_func___builtin_cosl_use=no
11867 fi
11868 rm -f conftest*
11869 ac_ext=c
11870 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11871 ac_cpp='$CPP $CPPFLAGS'
11872 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11873 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11874 cross_compiling=$ac_cv_prog_cc_cross
11875
11876
11877 fi
11878
11879 fi
11880 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
11881 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
11882 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
11883 echo "configure:11884: checking for __builtin_cosl linkage" >&5
11884 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
11885 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
11886 echo $ac_n "(cached) $ac_c" 1>&6
11887 else
11888
11889 cat > conftest.$ac_ext <<EOF
11890 #line 11891 "configure"
11891 #include "confdefs.h"
11892 #include <math.h>
11893 int main() {
11894 __builtin_cosl(0);
11895 ; return 0; }
11896 EOF
11897 if { (eval echo configure:11898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11898 rm -rf conftest*
11899 glibcpp_cv_func___builtin_cosl_link=yes
11900 else
11901 echo "configure: failed program was:" >&5
11902 cat conftest.$ac_ext >&5
11903 rm -rf conftest*
11904 glibcpp_cv_func___builtin_cosl_link=no
11905 fi
11906 rm -f conftest*
11907
11908 fi
11909
11910 fi
11911 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
11912 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
11913 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11914 cat >> confdefs.h <<EOF
11915 #define ${ac_tr_func} 1
11916 EOF
11917
11918 fi
11919 fi
11920
11921
11922 dummyvar=no
11923 if test x$dummyvar = x"yes"; then
11924 cat >> confdefs.h <<\EOF
11925 #define HAVE___BUILTIN_ABS 1
11926 EOF
11927
11928 cat >> confdefs.h <<\EOF
11929 #define HAVE___BUILTIN_LABS 1
11930 EOF
11931
11932 cat >> confdefs.h <<\EOF
11933 #define HAVE___BUILTIN_COS 1
11934 EOF
11935
11936 cat >> confdefs.h <<\EOF
11937 #define HAVE___BUILTIN_COSF 1
11938 EOF
11939
11940 cat >> confdefs.h <<\EOF
11941 #define HAVE___BUILTIN_COSL 1
11942 EOF
11943
11944 cat >> confdefs.h <<\EOF
11945 #define HAVE___BUILTIN_FABS 1
11946 EOF
11947
11948 cat >> confdefs.h <<\EOF
11949 #define HAVE___BUILTIN_FABSF 1
11950 EOF
11951
11952 cat >> confdefs.h <<\EOF
11953 #define HAVE___BUILTIN_FABSL 1
11954 EOF
11955
11956 cat >> confdefs.h <<\EOF
11957 #define HAVE___BUILTIN_SIN 1
11958 EOF
11959
11960 cat >> confdefs.h <<\EOF
11961 #define HAVE___BUILTIN_SINF 1
11962 EOF
11963
11964 cat >> confdefs.h <<\EOF
11965 #define HAVE___BUILTIN_SINL 1
11966 EOF
11967
11968 cat >> confdefs.h <<\EOF
11969 #define HAVE___BUILTIN_SQRT 1
11970 EOF
11971
11972 cat >> confdefs.h <<\EOF
11973 #define HAVE___BUILTIN_SQRTF 1
11974 EOF
11975
11976 cat >> confdefs.h <<\EOF
11977 #define HAVE___BUILTIN_SQRTL 1
11978 EOF
11979
11980 fi
11981
11982
11983 ac_test_CXXFLAGS="${CXXFLAGS+set}"
11984 ac_save_CXXFLAGS="$CXXFLAGS"
11985 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
11986
11987 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
11988 echo "configure:11989: checking for sin in -lm" >&5
11989 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
11990 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11991 echo $ac_n "(cached) $ac_c" 1>&6
11992 else
11993 ac_save_LIBS="$LIBS"
11994 LIBS="-lm $LIBS"
11995 cat > conftest.$ac_ext <<EOF
11996 #line 11997 "configure"
11997 #include "confdefs.h"
11998 /* Override any gcc2 internal prototype to avoid an error. */
11999 /* We use char because int might match the return type of a gcc2
12000 builtin and then its argument prototype would still apply. */
12001 char sin();
12002
12003 int main() {
12004 sin()
12005 ; return 0; }
12006 EOF
12007 if { (eval echo configure:12008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12008 rm -rf conftest*
12009 eval "ac_cv_lib_$ac_lib_var=yes"
12010 else
12011 echo "configure: failed program was:" >&5
12012 cat conftest.$ac_ext >&5
12013 rm -rf conftest*
12014 eval "ac_cv_lib_$ac_lib_var=no"
12015 fi
12016 rm -f conftest*
12017 LIBS="$ac_save_LIBS"
12018
12019 fi
12020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12021 echo "$ac_t""yes" 1>&6
12022 libm="-lm"
12023 else
12024 echo "$ac_t""no" 1>&6
12025 fi
12026
12027 ac_save_LIBS="$LIBS"
12028 LIBS="$LIBS $libm"
12029
12030
12031
12032 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
12033 echo "configure:12034: checking for isinf declaration" >&5
12034 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
12035 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
12036 echo $ac_n "(cached) $ac_c" 1>&6
12037 else
12038
12039
12040 ac_ext=C
12041 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12042 ac_cpp='$CXXCPP $CPPFLAGS'
12043 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12044 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12045 cross_compiling=$ac_cv_prog_cxx_cross
12046
12047 cat > conftest.$ac_ext <<EOF
12048 #line 12049 "configure"
12049 #include "confdefs.h"
12050 #include <math.h>
12051 #ifdef HAVE_IEEEFP_H
12052 #include <ieeefp.h>
12053 #endif
12054
12055 int main() {
12056 isinf(0);
12057 ; return 0; }
12058 EOF
12059 if { (eval echo configure:12060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12060 rm -rf conftest*
12061 glibcpp_cv_func_isinf_use=yes
12062 else
12063 echo "configure: failed program was:" >&5
12064 cat conftest.$ac_ext >&5
12065 rm -rf conftest*
12066 glibcpp_cv_func_isinf_use=no
12067 fi
12068 rm -f conftest*
12069 ac_ext=c
12070 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12071 ac_cpp='$CPP $CPPFLAGS'
12072 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12073 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12074 cross_compiling=$ac_cv_prog_cc_cross
12075
12076
12077 fi
12078
12079 fi
12080 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
12081
12082 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
12083 for ac_func in isinf
12084 do
12085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12086 echo "configure:12087: checking for $ac_func" >&5
12087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12088 echo $ac_n "(cached) $ac_c" 1>&6
12089 else
12090 cat > conftest.$ac_ext <<EOF
12091 #line 12092 "configure"
12092 #include "confdefs.h"
12093 /* System header to define __stub macros and hopefully few prototypes,
12094 which can conflict with char $ac_func(); below. */
12095 #include <assert.h>
12096 /* Override any gcc2 internal prototype to avoid an error. */
12097 /* We use char because int might match the return type of a gcc2
12098 builtin and then its argument prototype would still apply. */
12099 char $ac_func();
12100
12101 int main() {
12102
12103 /* The GNU C library defines this for functions which it implements
12104 to always fail with ENOSYS. Some functions are actually named
12105 something starting with __ and the normal name is an alias. */
12106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12107 choke me
12108 #else
12109 $ac_func();
12110 #endif
12111
12112 ; return 0; }
12113 EOF
12114 if { (eval echo configure:12115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12115 rm -rf conftest*
12116 eval "ac_cv_func_$ac_func=yes"
12117 else
12118 echo "configure: failed program was:" >&5
12119 cat conftest.$ac_ext >&5
12120 rm -rf conftest*
12121 eval "ac_cv_func_$ac_func=no"
12122 fi
12123 rm -f conftest*
12124 fi
12125
12126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12127 echo "$ac_t""yes" 1>&6
12128 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12129 cat >> confdefs.h <<EOF
12130 #define $ac_tr_func 1
12131 EOF
12132
12133 else
12134 echo "$ac_t""no" 1>&6
12135 fi
12136 done
12137
12138 else
12139
12140 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
12141 echo "configure:12142: checking for _isinf declaration" >&5
12142 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
12143 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
12144 echo $ac_n "(cached) $ac_c" 1>&6
12145 else
12146
12147
12148 ac_ext=C
12149 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12150 ac_cpp='$CXXCPP $CPPFLAGS'
12151 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12152 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12153 cross_compiling=$ac_cv_prog_cxx_cross
12154
12155 cat > conftest.$ac_ext <<EOF
12156 #line 12157 "configure"
12157 #include "confdefs.h"
12158 #include <math.h>
12159 #ifdef HAVE_IEEEFP_H
12160 #include <ieeefp.h>
12161 #endif
12162
12163 int main() {
12164 _isinf(0);
12165 ; return 0; }
12166 EOF
12167 if { (eval echo configure:12168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12168 rm -rf conftest*
12169 glibcpp_cv_func__isinf_use=yes
12170 else
12171 echo "configure: failed program was:" >&5
12172 cat conftest.$ac_ext >&5
12173 rm -rf conftest*
12174 glibcpp_cv_func__isinf_use=no
12175 fi
12176 rm -f conftest*
12177 ac_ext=c
12178 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12179 ac_cpp='$CPP $CPPFLAGS'
12180 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12181 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12182 cross_compiling=$ac_cv_prog_cc_cross
12183
12184
12185 fi
12186
12187 fi
12188 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
12189
12190 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
12191 for ac_func in _isinf
12192 do
12193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12194 echo "configure:12195: checking for $ac_func" >&5
12195 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12196 echo $ac_n "(cached) $ac_c" 1>&6
12197 else
12198 cat > conftest.$ac_ext <<EOF
12199 #line 12200 "configure"
12200 #include "confdefs.h"
12201 /* System header to define __stub macros and hopefully few prototypes,
12202 which can conflict with char $ac_func(); below. */
12203 #include <assert.h>
12204 /* Override any gcc2 internal prototype to avoid an error. */
12205 /* We use char because int might match the return type of a gcc2
12206 builtin and then its argument prototype would still apply. */
12207 char $ac_func();
12208
12209 int main() {
12210
12211 /* The GNU C library defines this for functions which it implements
12212 to always fail with ENOSYS. Some functions are actually named
12213 something starting with __ and the normal name is an alias. */
12214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12215 choke me
12216 #else
12217 $ac_func();
12218 #endif
12219
12220 ; return 0; }
12221 EOF
12222 if { (eval echo configure:12223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12223 rm -rf conftest*
12224 eval "ac_cv_func_$ac_func=yes"
12225 else
12226 echo "configure: failed program was:" >&5
12227 cat conftest.$ac_ext >&5
12228 rm -rf conftest*
12229 eval "ac_cv_func_$ac_func=no"
12230 fi
12231 rm -f conftest*
12232 fi
12233
12234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12235 echo "$ac_t""yes" 1>&6
12236 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12237 cat >> confdefs.h <<EOF
12238 #define $ac_tr_func 1
12239 EOF
12240
12241 else
12242 echo "$ac_t""no" 1>&6
12243 fi
12244 done
12245
12246 fi
12247 fi
12248
12249
12250
12251 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
12252 echo "configure:12253: checking for isnan declaration" >&5
12253 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
12254 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
12255 echo $ac_n "(cached) $ac_c" 1>&6
12256 else
12257
12258
12259 ac_ext=C
12260 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12261 ac_cpp='$CXXCPP $CPPFLAGS'
12262 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12263 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12264 cross_compiling=$ac_cv_prog_cxx_cross
12265
12266 cat > conftest.$ac_ext <<EOF
12267 #line 12268 "configure"
12268 #include "confdefs.h"
12269 #include <math.h>
12270 #ifdef HAVE_IEEEFP_H
12271 #include <ieeefp.h>
12272 #endif
12273
12274 int main() {
12275 isnan(0);
12276 ; return 0; }
12277 EOF
12278 if { (eval echo configure:12279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12279 rm -rf conftest*
12280 glibcpp_cv_func_isnan_use=yes
12281 else
12282 echo "configure: failed program was:" >&5
12283 cat conftest.$ac_ext >&5
12284 rm -rf conftest*
12285 glibcpp_cv_func_isnan_use=no
12286 fi
12287 rm -f conftest*
12288 ac_ext=c
12289 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12290 ac_cpp='$CPP $CPPFLAGS'
12291 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12292 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12293 cross_compiling=$ac_cv_prog_cc_cross
12294
12295
12296 fi
12297
12298 fi
12299 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
12300
12301 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
12302 for ac_func in isnan
12303 do
12304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12305 echo "configure:12306: checking for $ac_func" >&5
12306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12307 echo $ac_n "(cached) $ac_c" 1>&6
12308 else
12309 cat > conftest.$ac_ext <<EOF
12310 #line 12311 "configure"
12311 #include "confdefs.h"
12312 /* System header to define __stub macros and hopefully few prototypes,
12313 which can conflict with char $ac_func(); below. */
12314 #include <assert.h>
12315 /* Override any gcc2 internal prototype to avoid an error. */
12316 /* We use char because int might match the return type of a gcc2
12317 builtin and then its argument prototype would still apply. */
12318 char $ac_func();
12319
12320 int main() {
12321
12322 /* The GNU C library defines this for functions which it implements
12323 to always fail with ENOSYS. Some functions are actually named
12324 something starting with __ and the normal name is an alias. */
12325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12326 choke me
12327 #else
12328 $ac_func();
12329 #endif
12330
12331 ; return 0; }
12332 EOF
12333 if { (eval echo configure:12334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12334 rm -rf conftest*
12335 eval "ac_cv_func_$ac_func=yes"
12336 else
12337 echo "configure: failed program was:" >&5
12338 cat conftest.$ac_ext >&5
12339 rm -rf conftest*
12340 eval "ac_cv_func_$ac_func=no"
12341 fi
12342 rm -f conftest*
12343 fi
12344
12345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12346 echo "$ac_t""yes" 1>&6
12347 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12348 cat >> confdefs.h <<EOF
12349 #define $ac_tr_func 1
12350 EOF
12351
12352 else
12353 echo "$ac_t""no" 1>&6
12354 fi
12355 done
12356
12357 else
12358
12359 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
12360 echo "configure:12361: checking for _isnan declaration" >&5
12361 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
12362 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
12363 echo $ac_n "(cached) $ac_c" 1>&6
12364 else
12365
12366
12367 ac_ext=C
12368 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12369 ac_cpp='$CXXCPP $CPPFLAGS'
12370 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12371 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12372 cross_compiling=$ac_cv_prog_cxx_cross
12373
12374 cat > conftest.$ac_ext <<EOF
12375 #line 12376 "configure"
12376 #include "confdefs.h"
12377 #include <math.h>
12378 #ifdef HAVE_IEEEFP_H
12379 #include <ieeefp.h>
12380 #endif
12381
12382 int main() {
12383 _isnan(0);
12384 ; return 0; }
12385 EOF
12386 if { (eval echo configure:12387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12387 rm -rf conftest*
12388 glibcpp_cv_func__isnan_use=yes
12389 else
12390 echo "configure: failed program was:" >&5
12391 cat conftest.$ac_ext >&5
12392 rm -rf conftest*
12393 glibcpp_cv_func__isnan_use=no
12394 fi
12395 rm -f conftest*
12396 ac_ext=c
12397 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12398 ac_cpp='$CPP $CPPFLAGS'
12399 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12400 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12401 cross_compiling=$ac_cv_prog_cc_cross
12402
12403
12404 fi
12405
12406 fi
12407 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
12408
12409 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
12410 for ac_func in _isnan
12411 do
12412 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12413 echo "configure:12414: checking for $ac_func" >&5
12414 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12415 echo $ac_n "(cached) $ac_c" 1>&6
12416 else
12417 cat > conftest.$ac_ext <<EOF
12418 #line 12419 "configure"
12419 #include "confdefs.h"
12420 /* System header to define __stub macros and hopefully few prototypes,
12421 which can conflict with char $ac_func(); below. */
12422 #include <assert.h>
12423 /* Override any gcc2 internal prototype to avoid an error. */
12424 /* We use char because int might match the return type of a gcc2
12425 builtin and then its argument prototype would still apply. */
12426 char $ac_func();
12427
12428 int main() {
12429
12430 /* The GNU C library defines this for functions which it implements
12431 to always fail with ENOSYS. Some functions are actually named
12432 something starting with __ and the normal name is an alias. */
12433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12434 choke me
12435 #else
12436 $ac_func();
12437 #endif
12438
12439 ; return 0; }
12440 EOF
12441 if { (eval echo configure:12442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12442 rm -rf conftest*
12443 eval "ac_cv_func_$ac_func=yes"
12444 else
12445 echo "configure: failed program was:" >&5
12446 cat conftest.$ac_ext >&5
12447 rm -rf conftest*
12448 eval "ac_cv_func_$ac_func=no"
12449 fi
12450 rm -f conftest*
12451 fi
12452
12453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12454 echo "$ac_t""yes" 1>&6
12455 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12456 cat >> confdefs.h <<EOF
12457 #define $ac_tr_func 1
12458 EOF
12459
12460 else
12461 echo "$ac_t""no" 1>&6
12462 fi
12463 done
12464
12465 fi
12466 fi
12467
12468
12469
12470 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
12471 echo "configure:12472: checking for finite declaration" >&5
12472 if test x${glibcpp_cv_func_finite_use+set} != xset; then
12473 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
12474 echo $ac_n "(cached) $ac_c" 1>&6
12475 else
12476
12477
12478 ac_ext=C
12479 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12480 ac_cpp='$CXXCPP $CPPFLAGS'
12481 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12482 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12483 cross_compiling=$ac_cv_prog_cxx_cross
12484
12485 cat > conftest.$ac_ext <<EOF
12486 #line 12487 "configure"
12487 #include "confdefs.h"
12488 #include <math.h>
12489 #ifdef HAVE_IEEEFP_H
12490 #include <ieeefp.h>
12491 #endif
12492
12493 int main() {
12494 finite(0);
12495 ; return 0; }
12496 EOF
12497 if { (eval echo configure:12498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12498 rm -rf conftest*
12499 glibcpp_cv_func_finite_use=yes
12500 else
12501 echo "configure: failed program was:" >&5
12502 cat conftest.$ac_ext >&5
12503 rm -rf conftest*
12504 glibcpp_cv_func_finite_use=no
12505 fi
12506 rm -f conftest*
12507 ac_ext=c
12508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12509 ac_cpp='$CPP $CPPFLAGS'
12510 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12511 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12512 cross_compiling=$ac_cv_prog_cc_cross
12513
12514
12515 fi
12516
12517 fi
12518 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
12519
12520 if test x$glibcpp_cv_func_finite_use = x"yes"; then
12521 for ac_func in finite
12522 do
12523 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12524 echo "configure:12525: checking for $ac_func" >&5
12525 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12526 echo $ac_n "(cached) $ac_c" 1>&6
12527 else
12528 cat > conftest.$ac_ext <<EOF
12529 #line 12530 "configure"
12530 #include "confdefs.h"
12531 /* System header to define __stub macros and hopefully few prototypes,
12532 which can conflict with char $ac_func(); below. */
12533 #include <assert.h>
12534 /* Override any gcc2 internal prototype to avoid an error. */
12535 /* We use char because int might match the return type of a gcc2
12536 builtin and then its argument prototype would still apply. */
12537 char $ac_func();
12538
12539 int main() {
12540
12541 /* The GNU C library defines this for functions which it implements
12542 to always fail with ENOSYS. Some functions are actually named
12543 something starting with __ and the normal name is an alias. */
12544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12545 choke me
12546 #else
12547 $ac_func();
12548 #endif
12549
12550 ; return 0; }
12551 EOF
12552 if { (eval echo configure:12553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12553 rm -rf conftest*
12554 eval "ac_cv_func_$ac_func=yes"
12555 else
12556 echo "configure: failed program was:" >&5
12557 cat conftest.$ac_ext >&5
12558 rm -rf conftest*
12559 eval "ac_cv_func_$ac_func=no"
12560 fi
12561 rm -f conftest*
12562 fi
12563
12564 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12565 echo "$ac_t""yes" 1>&6
12566 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12567 cat >> confdefs.h <<EOF
12568 #define $ac_tr_func 1
12569 EOF
12570
12571 else
12572 echo "$ac_t""no" 1>&6
12573 fi
12574 done
12575
12576 else
12577
12578 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
12579 echo "configure:12580: checking for _finite declaration" >&5
12580 if test x${glibcpp_cv_func__finite_use+set} != xset; then
12581 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
12582 echo $ac_n "(cached) $ac_c" 1>&6
12583 else
12584
12585
12586 ac_ext=C
12587 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12588 ac_cpp='$CXXCPP $CPPFLAGS'
12589 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12590 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12591 cross_compiling=$ac_cv_prog_cxx_cross
12592
12593 cat > conftest.$ac_ext <<EOF
12594 #line 12595 "configure"
12595 #include "confdefs.h"
12596 #include <math.h>
12597 #ifdef HAVE_IEEEFP_H
12598 #include <ieeefp.h>
12599 #endif
12600
12601 int main() {
12602 _finite(0);
12603 ; return 0; }
12604 EOF
12605 if { (eval echo configure:12606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12606 rm -rf conftest*
12607 glibcpp_cv_func__finite_use=yes
12608 else
12609 echo "configure: failed program was:" >&5
12610 cat conftest.$ac_ext >&5
12611 rm -rf conftest*
12612 glibcpp_cv_func__finite_use=no
12613 fi
12614 rm -f conftest*
12615 ac_ext=c
12616 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12617 ac_cpp='$CPP $CPPFLAGS'
12618 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12619 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12620 cross_compiling=$ac_cv_prog_cc_cross
12621
12622
12623 fi
12624
12625 fi
12626 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
12627
12628 if test x$glibcpp_cv_func__finite_use = x"yes"; then
12629 for ac_func in _finite
12630 do
12631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12632 echo "configure:12633: checking for $ac_func" >&5
12633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12634 echo $ac_n "(cached) $ac_c" 1>&6
12635 else
12636 cat > conftest.$ac_ext <<EOF
12637 #line 12638 "configure"
12638 #include "confdefs.h"
12639 /* System header to define __stub macros and hopefully few prototypes,
12640 which can conflict with char $ac_func(); below. */
12641 #include <assert.h>
12642 /* Override any gcc2 internal prototype to avoid an error. */
12643 /* We use char because int might match the return type of a gcc2
12644 builtin and then its argument prototype would still apply. */
12645 char $ac_func();
12646
12647 int main() {
12648
12649 /* The GNU C library defines this for functions which it implements
12650 to always fail with ENOSYS. Some functions are actually named
12651 something starting with __ and the normal name is an alias. */
12652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12653 choke me
12654 #else
12655 $ac_func();
12656 #endif
12657
12658 ; return 0; }
12659 EOF
12660 if { (eval echo configure:12661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12661 rm -rf conftest*
12662 eval "ac_cv_func_$ac_func=yes"
12663 else
12664 echo "configure: failed program was:" >&5
12665 cat conftest.$ac_ext >&5
12666 rm -rf conftest*
12667 eval "ac_cv_func_$ac_func=no"
12668 fi
12669 rm -f conftest*
12670 fi
12671
12672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12673 echo "$ac_t""yes" 1>&6
12674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12675 cat >> confdefs.h <<EOF
12676 #define $ac_tr_func 1
12677 EOF
12678
12679 else
12680 echo "$ac_t""no" 1>&6
12681 fi
12682 done
12683
12684 fi
12685 fi
12686
12687
12688
12689 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
12690 echo "configure:12691: checking for copysign declaration" >&5
12691 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
12692 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
12693 echo $ac_n "(cached) $ac_c" 1>&6
12694 else
12695
12696
12697 ac_ext=C
12698 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12699 ac_cpp='$CXXCPP $CPPFLAGS'
12700 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12701 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12702 cross_compiling=$ac_cv_prog_cxx_cross
12703
12704 cat > conftest.$ac_ext <<EOF
12705 #line 12706 "configure"
12706 #include "confdefs.h"
12707 #include <math.h>
12708 int main() {
12709 copysign(0, 0);
12710 ; return 0; }
12711 EOF
12712 if { (eval echo configure:12713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12713 rm -rf conftest*
12714 glibcpp_cv_func_copysign_use=yes
12715 else
12716 echo "configure: failed program was:" >&5
12717 cat conftest.$ac_ext >&5
12718 rm -rf conftest*
12719 glibcpp_cv_func_copysign_use=no
12720 fi
12721 rm -f conftest*
12722 ac_ext=c
12723 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12724 ac_cpp='$CPP $CPPFLAGS'
12725 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12726 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12727 cross_compiling=$ac_cv_prog_cc_cross
12728
12729
12730 fi
12731
12732 fi
12733 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
12734
12735 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
12736 for ac_func in copysign
12737 do
12738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12739 echo "configure:12740: checking for $ac_func" >&5
12740 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12741 echo $ac_n "(cached) $ac_c" 1>&6
12742 else
12743 cat > conftest.$ac_ext <<EOF
12744 #line 12745 "configure"
12745 #include "confdefs.h"
12746 /* System header to define __stub macros and hopefully few prototypes,
12747 which can conflict with char $ac_func(); below. */
12748 #include <assert.h>
12749 /* Override any gcc2 internal prototype to avoid an error. */
12750 /* We use char because int might match the return type of a gcc2
12751 builtin and then its argument prototype would still apply. */
12752 char $ac_func();
12753
12754 int main() {
12755
12756 /* The GNU C library defines this for functions which it implements
12757 to always fail with ENOSYS. Some functions are actually named
12758 something starting with __ and the normal name is an alias. */
12759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12760 choke me
12761 #else
12762 $ac_func();
12763 #endif
12764
12765 ; return 0; }
12766 EOF
12767 if { (eval echo configure:12768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12768 rm -rf conftest*
12769 eval "ac_cv_func_$ac_func=yes"
12770 else
12771 echo "configure: failed program was:" >&5
12772 cat conftest.$ac_ext >&5
12773 rm -rf conftest*
12774 eval "ac_cv_func_$ac_func=no"
12775 fi
12776 rm -f conftest*
12777 fi
12778
12779 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12780 echo "$ac_t""yes" 1>&6
12781 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12782 cat >> confdefs.h <<EOF
12783 #define $ac_tr_func 1
12784 EOF
12785
12786 else
12787 echo "$ac_t""no" 1>&6
12788 fi
12789 done
12790
12791 else
12792
12793 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
12794 echo "configure:12795: checking for _copysign declaration" >&5
12795 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
12796 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
12797 echo $ac_n "(cached) $ac_c" 1>&6
12798 else
12799
12800
12801 ac_ext=C
12802 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12803 ac_cpp='$CXXCPP $CPPFLAGS'
12804 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12805 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12806 cross_compiling=$ac_cv_prog_cxx_cross
12807
12808 cat > conftest.$ac_ext <<EOF
12809 #line 12810 "configure"
12810 #include "confdefs.h"
12811 #include <math.h>
12812 int main() {
12813 _copysign(0, 0);
12814 ; return 0; }
12815 EOF
12816 if { (eval echo configure:12817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12817 rm -rf conftest*
12818 glibcpp_cv_func__copysign_use=yes
12819 else
12820 echo "configure: failed program was:" >&5
12821 cat conftest.$ac_ext >&5
12822 rm -rf conftest*
12823 glibcpp_cv_func__copysign_use=no
12824 fi
12825 rm -f conftest*
12826 ac_ext=c
12827 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12828 ac_cpp='$CPP $CPPFLAGS'
12829 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12830 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12831 cross_compiling=$ac_cv_prog_cc_cross
12832
12833
12834 fi
12835
12836 fi
12837 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
12838
12839 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
12840 for ac_func in _copysign
12841 do
12842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12843 echo "configure:12844: checking for $ac_func" >&5
12844 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12845 echo $ac_n "(cached) $ac_c" 1>&6
12846 else
12847 cat > conftest.$ac_ext <<EOF
12848 #line 12849 "configure"
12849 #include "confdefs.h"
12850 /* System header to define __stub macros and hopefully few prototypes,
12851 which can conflict with char $ac_func(); below. */
12852 #include <assert.h>
12853 /* Override any gcc2 internal prototype to avoid an error. */
12854 /* We use char because int might match the return type of a gcc2
12855 builtin and then its argument prototype would still apply. */
12856 char $ac_func();
12857
12858 int main() {
12859
12860 /* The GNU C library defines this for functions which it implements
12861 to always fail with ENOSYS. Some functions are actually named
12862 something starting with __ and the normal name is an alias. */
12863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12864 choke me
12865 #else
12866 $ac_func();
12867 #endif
12868
12869 ; return 0; }
12870 EOF
12871 if { (eval echo configure:12872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12872 rm -rf conftest*
12873 eval "ac_cv_func_$ac_func=yes"
12874 else
12875 echo "configure: failed program was:" >&5
12876 cat conftest.$ac_ext >&5
12877 rm -rf conftest*
12878 eval "ac_cv_func_$ac_func=no"
12879 fi
12880 rm -f conftest*
12881 fi
12882
12883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12884 echo "$ac_t""yes" 1>&6
12885 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12886 cat >> confdefs.h <<EOF
12887 #define $ac_tr_func 1
12888 EOF
12889
12890 else
12891 echo "$ac_t""no" 1>&6
12892 fi
12893 done
12894
12895 fi
12896 fi
12897
12898
12899
12900 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
12901 echo "configure:12902: checking for sincos declaration" >&5
12902 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
12903 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
12904 echo $ac_n "(cached) $ac_c" 1>&6
12905 else
12906
12907
12908 ac_ext=C
12909 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12910 ac_cpp='$CXXCPP $CPPFLAGS'
12911 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12912 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12913 cross_compiling=$ac_cv_prog_cxx_cross
12914
12915 cat > conftest.$ac_ext <<EOF
12916 #line 12917 "configure"
12917 #include "confdefs.h"
12918 #include <math.h>
12919 int main() {
12920 sincos(0, 0, 0);
12921 ; return 0; }
12922 EOF
12923 if { (eval echo configure:12924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12924 rm -rf conftest*
12925 glibcpp_cv_func_sincos_use=yes
12926 else
12927 echo "configure: failed program was:" >&5
12928 cat conftest.$ac_ext >&5
12929 rm -rf conftest*
12930 glibcpp_cv_func_sincos_use=no
12931 fi
12932 rm -f conftest*
12933 ac_ext=c
12934 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12935 ac_cpp='$CPP $CPPFLAGS'
12936 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12937 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12938 cross_compiling=$ac_cv_prog_cc_cross
12939
12940
12941 fi
12942
12943 fi
12944 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
12945
12946 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
12947 for ac_func in sincos
12948 do
12949 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12950 echo "configure:12951: checking for $ac_func" >&5
12951 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12952 echo $ac_n "(cached) $ac_c" 1>&6
12953 else
12954 cat > conftest.$ac_ext <<EOF
12955 #line 12956 "configure"
12956 #include "confdefs.h"
12957 /* System header to define __stub macros and hopefully few prototypes,
12958 which can conflict with char $ac_func(); below. */
12959 #include <assert.h>
12960 /* Override any gcc2 internal prototype to avoid an error. */
12961 /* We use char because int might match the return type of a gcc2
12962 builtin and then its argument prototype would still apply. */
12963 char $ac_func();
12964
12965 int main() {
12966
12967 /* The GNU C library defines this for functions which it implements
12968 to always fail with ENOSYS. Some functions are actually named
12969 something starting with __ and the normal name is an alias. */
12970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12971 choke me
12972 #else
12973 $ac_func();
12974 #endif
12975
12976 ; return 0; }
12977 EOF
12978 if { (eval echo configure:12979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12979 rm -rf conftest*
12980 eval "ac_cv_func_$ac_func=yes"
12981 else
12982 echo "configure: failed program was:" >&5
12983 cat conftest.$ac_ext >&5
12984 rm -rf conftest*
12985 eval "ac_cv_func_$ac_func=no"
12986 fi
12987 rm -f conftest*
12988 fi
12989
12990 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12991 echo "$ac_t""yes" 1>&6
12992 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12993 cat >> confdefs.h <<EOF
12994 #define $ac_tr_func 1
12995 EOF
12996
12997 else
12998 echo "$ac_t""no" 1>&6
12999 fi
13000 done
13001
13002 else
13003
13004 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
13005 echo "configure:13006: checking for _sincos declaration" >&5
13006 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
13007 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
13008 echo $ac_n "(cached) $ac_c" 1>&6
13009 else
13010
13011
13012 ac_ext=C
13013 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13014 ac_cpp='$CXXCPP $CPPFLAGS'
13015 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13016 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13017 cross_compiling=$ac_cv_prog_cxx_cross
13018
13019 cat > conftest.$ac_ext <<EOF
13020 #line 13021 "configure"
13021 #include "confdefs.h"
13022 #include <math.h>
13023 int main() {
13024 _sincos(0, 0, 0);
13025 ; return 0; }
13026 EOF
13027 if { (eval echo configure:13028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13028 rm -rf conftest*
13029 glibcpp_cv_func__sincos_use=yes
13030 else
13031 echo "configure: failed program was:" >&5
13032 cat conftest.$ac_ext >&5
13033 rm -rf conftest*
13034 glibcpp_cv_func__sincos_use=no
13035 fi
13036 rm -f conftest*
13037 ac_ext=c
13038 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13039 ac_cpp='$CPP $CPPFLAGS'
13040 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13041 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13042 cross_compiling=$ac_cv_prog_cc_cross
13043
13044
13045 fi
13046
13047 fi
13048 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
13049
13050 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
13051 for ac_func in _sincos
13052 do
13053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13054 echo "configure:13055: checking for $ac_func" >&5
13055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13056 echo $ac_n "(cached) $ac_c" 1>&6
13057 else
13058 cat > conftest.$ac_ext <<EOF
13059 #line 13060 "configure"
13060 #include "confdefs.h"
13061 /* System header to define __stub macros and hopefully few prototypes,
13062 which can conflict with char $ac_func(); below. */
13063 #include <assert.h>
13064 /* Override any gcc2 internal prototype to avoid an error. */
13065 /* We use char because int might match the return type of a gcc2
13066 builtin and then its argument prototype would still apply. */
13067 char $ac_func();
13068
13069 int main() {
13070
13071 /* The GNU C library defines this for functions which it implements
13072 to always fail with ENOSYS. Some functions are actually named
13073 something starting with __ and the normal name is an alias. */
13074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13075 choke me
13076 #else
13077 $ac_func();
13078 #endif
13079
13080 ; return 0; }
13081 EOF
13082 if { (eval echo configure:13083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13083 rm -rf conftest*
13084 eval "ac_cv_func_$ac_func=yes"
13085 else
13086 echo "configure: failed program was:" >&5
13087 cat conftest.$ac_ext >&5
13088 rm -rf conftest*
13089 eval "ac_cv_func_$ac_func=no"
13090 fi
13091 rm -f conftest*
13092 fi
13093
13094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13095 echo "$ac_t""yes" 1>&6
13096 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13097 cat >> confdefs.h <<EOF
13098 #define $ac_tr_func 1
13099 EOF
13100
13101 else
13102 echo "$ac_t""no" 1>&6
13103 fi
13104 done
13105
13106 fi
13107 fi
13108
13109
13110
13111 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
13112 echo "configure:13113: checking for fpclass declaration" >&5
13113 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
13114 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
13115 echo $ac_n "(cached) $ac_c" 1>&6
13116 else
13117
13118
13119 ac_ext=C
13120 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13121 ac_cpp='$CXXCPP $CPPFLAGS'
13122 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13123 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13124 cross_compiling=$ac_cv_prog_cxx_cross
13125
13126 cat > conftest.$ac_ext <<EOF
13127 #line 13128 "configure"
13128 #include "confdefs.h"
13129 #include <math.h>
13130 #ifdef HAVE_IEEEFP_H
13131 #include <ieeefp.h>
13132 #endif
13133
13134 int main() {
13135 fpclass(0);
13136 ; return 0; }
13137 EOF
13138 if { (eval echo configure:13139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13139 rm -rf conftest*
13140 glibcpp_cv_func_fpclass_use=yes
13141 else
13142 echo "configure: failed program was:" >&5
13143 cat conftest.$ac_ext >&5
13144 rm -rf conftest*
13145 glibcpp_cv_func_fpclass_use=no
13146 fi
13147 rm -f conftest*
13148 ac_ext=c
13149 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13150 ac_cpp='$CPP $CPPFLAGS'
13151 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13152 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13153 cross_compiling=$ac_cv_prog_cc_cross
13154
13155
13156 fi
13157
13158 fi
13159 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
13160
13161 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
13162 for ac_func in fpclass
13163 do
13164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13165 echo "configure:13166: checking for $ac_func" >&5
13166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13167 echo $ac_n "(cached) $ac_c" 1>&6
13168 else
13169 cat > conftest.$ac_ext <<EOF
13170 #line 13171 "configure"
13171 #include "confdefs.h"
13172 /* System header to define __stub macros and hopefully few prototypes,
13173 which can conflict with char $ac_func(); below. */
13174 #include <assert.h>
13175 /* Override any gcc2 internal prototype to avoid an error. */
13176 /* We use char because int might match the return type of a gcc2
13177 builtin and then its argument prototype would still apply. */
13178 char $ac_func();
13179
13180 int main() {
13181
13182 /* The GNU C library defines this for functions which it implements
13183 to always fail with ENOSYS. Some functions are actually named
13184 something starting with __ and the normal name is an alias. */
13185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13186 choke me
13187 #else
13188 $ac_func();
13189 #endif
13190
13191 ; return 0; }
13192 EOF
13193 if { (eval echo configure:13194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13194 rm -rf conftest*
13195 eval "ac_cv_func_$ac_func=yes"
13196 else
13197 echo "configure: failed program was:" >&5
13198 cat conftest.$ac_ext >&5
13199 rm -rf conftest*
13200 eval "ac_cv_func_$ac_func=no"
13201 fi
13202 rm -f conftest*
13203 fi
13204
13205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13206 echo "$ac_t""yes" 1>&6
13207 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13208 cat >> confdefs.h <<EOF
13209 #define $ac_tr_func 1
13210 EOF
13211
13212 else
13213 echo "$ac_t""no" 1>&6
13214 fi
13215 done
13216
13217 else
13218
13219 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
13220 echo "configure:13221: checking for _fpclass declaration" >&5
13221 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
13222 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
13223 echo $ac_n "(cached) $ac_c" 1>&6
13224 else
13225
13226
13227 ac_ext=C
13228 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13229 ac_cpp='$CXXCPP $CPPFLAGS'
13230 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13231 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13232 cross_compiling=$ac_cv_prog_cxx_cross
13233
13234 cat > conftest.$ac_ext <<EOF
13235 #line 13236 "configure"
13236 #include "confdefs.h"
13237 #include <math.h>
13238 #ifdef HAVE_IEEEFP_H
13239 #include <ieeefp.h>
13240 #endif
13241
13242 int main() {
13243 _fpclass(0);
13244 ; return 0; }
13245 EOF
13246 if { (eval echo configure:13247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13247 rm -rf conftest*
13248 glibcpp_cv_func__fpclass_use=yes
13249 else
13250 echo "configure: failed program was:" >&5
13251 cat conftest.$ac_ext >&5
13252 rm -rf conftest*
13253 glibcpp_cv_func__fpclass_use=no
13254 fi
13255 rm -f conftest*
13256 ac_ext=c
13257 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13258 ac_cpp='$CPP $CPPFLAGS'
13259 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13260 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13261 cross_compiling=$ac_cv_prog_cc_cross
13262
13263
13264 fi
13265
13266 fi
13267 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
13268
13269 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
13270 for ac_func in _fpclass
13271 do
13272 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13273 echo "configure:13274: checking for $ac_func" >&5
13274 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13275 echo $ac_n "(cached) $ac_c" 1>&6
13276 else
13277 cat > conftest.$ac_ext <<EOF
13278 #line 13279 "configure"
13279 #include "confdefs.h"
13280 /* System header to define __stub macros and hopefully few prototypes,
13281 which can conflict with char $ac_func(); below. */
13282 #include <assert.h>
13283 /* Override any gcc2 internal prototype to avoid an error. */
13284 /* We use char because int might match the return type of a gcc2
13285 builtin and then its argument prototype would still apply. */
13286 char $ac_func();
13287
13288 int main() {
13289
13290 /* The GNU C library defines this for functions which it implements
13291 to always fail with ENOSYS. Some functions are actually named
13292 something starting with __ and the normal name is an alias. */
13293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13294 choke me
13295 #else
13296 $ac_func();
13297 #endif
13298
13299 ; return 0; }
13300 EOF
13301 if { (eval echo configure:13302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13302 rm -rf conftest*
13303 eval "ac_cv_func_$ac_func=yes"
13304 else
13305 echo "configure: failed program was:" >&5
13306 cat conftest.$ac_ext >&5
13307 rm -rf conftest*
13308 eval "ac_cv_func_$ac_func=no"
13309 fi
13310 rm -f conftest*
13311 fi
13312
13313 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13314 echo "$ac_t""yes" 1>&6
13315 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13316 cat >> confdefs.h <<EOF
13317 #define $ac_tr_func 1
13318 EOF
13319
13320 else
13321 echo "$ac_t""no" 1>&6
13322 fi
13323 done
13324
13325 fi
13326 fi
13327
13328
13329
13330 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
13331 echo "configure:13332: checking for qfpclass declaration" >&5
13332 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
13333 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
13334 echo $ac_n "(cached) $ac_c" 1>&6
13335 else
13336
13337
13338 ac_ext=C
13339 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13340 ac_cpp='$CXXCPP $CPPFLAGS'
13341 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13342 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13343 cross_compiling=$ac_cv_prog_cxx_cross
13344
13345 cat > conftest.$ac_ext <<EOF
13346 #line 13347 "configure"
13347 #include "confdefs.h"
13348 #include <math.h>
13349 #ifdef HAVE_IEEEFP_H
13350 #include <ieeefp.h>
13351 #endif
13352
13353 int main() {
13354 qfpclass(0);
13355 ; return 0; }
13356 EOF
13357 if { (eval echo configure:13358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13358 rm -rf conftest*
13359 glibcpp_cv_func_qfpclass_use=yes
13360 else
13361 echo "configure: failed program was:" >&5
13362 cat conftest.$ac_ext >&5
13363 rm -rf conftest*
13364 glibcpp_cv_func_qfpclass_use=no
13365 fi
13366 rm -f conftest*
13367 ac_ext=c
13368 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13369 ac_cpp='$CPP $CPPFLAGS'
13370 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13371 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13372 cross_compiling=$ac_cv_prog_cc_cross
13373
13374
13375 fi
13376
13377 fi
13378 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
13379
13380 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
13381 for ac_func in qfpclass
13382 do
13383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13384 echo "configure:13385: checking for $ac_func" >&5
13385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13386 echo $ac_n "(cached) $ac_c" 1>&6
13387 else
13388 cat > conftest.$ac_ext <<EOF
13389 #line 13390 "configure"
13390 #include "confdefs.h"
13391 /* System header to define __stub macros and hopefully few prototypes,
13392 which can conflict with char $ac_func(); below. */
13393 #include <assert.h>
13394 /* Override any gcc2 internal prototype to avoid an error. */
13395 /* We use char because int might match the return type of a gcc2
13396 builtin and then its argument prototype would still apply. */
13397 char $ac_func();
13398
13399 int main() {
13400
13401 /* The GNU C library defines this for functions which it implements
13402 to always fail with ENOSYS. Some functions are actually named
13403 something starting with __ and the normal name is an alias. */
13404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13405 choke me
13406 #else
13407 $ac_func();
13408 #endif
13409
13410 ; return 0; }
13411 EOF
13412 if { (eval echo configure:13413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13413 rm -rf conftest*
13414 eval "ac_cv_func_$ac_func=yes"
13415 else
13416 echo "configure: failed program was:" >&5
13417 cat conftest.$ac_ext >&5
13418 rm -rf conftest*
13419 eval "ac_cv_func_$ac_func=no"
13420 fi
13421 rm -f conftest*
13422 fi
13423
13424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13425 echo "$ac_t""yes" 1>&6
13426 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13427 cat >> confdefs.h <<EOF
13428 #define $ac_tr_func 1
13429 EOF
13430
13431 else
13432 echo "$ac_t""no" 1>&6
13433 fi
13434 done
13435
13436 else
13437
13438 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
13439 echo "configure:13440: checking for _qfpclass declaration" >&5
13440 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
13441 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
13442 echo $ac_n "(cached) $ac_c" 1>&6
13443 else
13444
13445
13446 ac_ext=C
13447 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13448 ac_cpp='$CXXCPP $CPPFLAGS'
13449 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13450 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13451 cross_compiling=$ac_cv_prog_cxx_cross
13452
13453 cat > conftest.$ac_ext <<EOF
13454 #line 13455 "configure"
13455 #include "confdefs.h"
13456 #include <math.h>
13457 #ifdef HAVE_IEEEFP_H
13458 #include <ieeefp.h>
13459 #endif
13460
13461 int main() {
13462 _qfpclass(0);
13463 ; return 0; }
13464 EOF
13465 if { (eval echo configure:13466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13466 rm -rf conftest*
13467 glibcpp_cv_func__qfpclass_use=yes
13468 else
13469 echo "configure: failed program was:" >&5
13470 cat conftest.$ac_ext >&5
13471 rm -rf conftest*
13472 glibcpp_cv_func__qfpclass_use=no
13473 fi
13474 rm -f conftest*
13475 ac_ext=c
13476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13477 ac_cpp='$CPP $CPPFLAGS'
13478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13480 cross_compiling=$ac_cv_prog_cc_cross
13481
13482
13483 fi
13484
13485 fi
13486 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
13487
13488 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
13489 for ac_func in _qfpclass
13490 do
13491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13492 echo "configure:13493: checking for $ac_func" >&5
13493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13494 echo $ac_n "(cached) $ac_c" 1>&6
13495 else
13496 cat > conftest.$ac_ext <<EOF
13497 #line 13498 "configure"
13498 #include "confdefs.h"
13499 /* System header to define __stub macros and hopefully few prototypes,
13500 which can conflict with char $ac_func(); below. */
13501 #include <assert.h>
13502 /* Override any gcc2 internal prototype to avoid an error. */
13503 /* We use char because int might match the return type of a gcc2
13504 builtin and then its argument prototype would still apply. */
13505 char $ac_func();
13506
13507 int main() {
13508
13509 /* The GNU C library defines this for functions which it implements
13510 to always fail with ENOSYS. Some functions are actually named
13511 something starting with __ and the normal name is an alias. */
13512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13513 choke me
13514 #else
13515 $ac_func();
13516 #endif
13517
13518 ; return 0; }
13519 EOF
13520 if { (eval echo configure:13521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13521 rm -rf conftest*
13522 eval "ac_cv_func_$ac_func=yes"
13523 else
13524 echo "configure: failed program was:" >&5
13525 cat conftest.$ac_ext >&5
13526 rm -rf conftest*
13527 eval "ac_cv_func_$ac_func=no"
13528 fi
13529 rm -f conftest*
13530 fi
13531
13532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13533 echo "$ac_t""yes" 1>&6
13534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13535 cat >> confdefs.h <<EOF
13536 #define $ac_tr_func 1
13537 EOF
13538
13539 else
13540 echo "$ac_t""no" 1>&6
13541 fi
13542 done
13543
13544 fi
13545 fi
13546
13547
13548
13549 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
13550 echo "configure:13551: checking for hypot declaration" >&5
13551 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
13552 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
13553 echo $ac_n "(cached) $ac_c" 1>&6
13554 else
13555
13556
13557 ac_ext=C
13558 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13559 ac_cpp='$CXXCPP $CPPFLAGS'
13560 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13561 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13562 cross_compiling=$ac_cv_prog_cxx_cross
13563
13564 cat > conftest.$ac_ext <<EOF
13565 #line 13566 "configure"
13566 #include "confdefs.h"
13567 #include <math.h>
13568 int main() {
13569 hypot(0, 0);
13570 ; return 0; }
13571 EOF
13572 if { (eval echo configure:13573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13573 rm -rf conftest*
13574 glibcpp_cv_func_hypot_use=yes
13575 else
13576 echo "configure: failed program was:" >&5
13577 cat conftest.$ac_ext >&5
13578 rm -rf conftest*
13579 glibcpp_cv_func_hypot_use=no
13580 fi
13581 rm -f conftest*
13582 ac_ext=c
13583 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13584 ac_cpp='$CPP $CPPFLAGS'
13585 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13586 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13587 cross_compiling=$ac_cv_prog_cc_cross
13588
13589
13590 fi
13591
13592 fi
13593 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
13594
13595 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
13596 for ac_func in hypot
13597 do
13598 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13599 echo "configure:13600: checking for $ac_func" >&5
13600 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13601 echo $ac_n "(cached) $ac_c" 1>&6
13602 else
13603 cat > conftest.$ac_ext <<EOF
13604 #line 13605 "configure"
13605 #include "confdefs.h"
13606 /* System header to define __stub macros and hopefully few prototypes,
13607 which can conflict with char $ac_func(); below. */
13608 #include <assert.h>
13609 /* Override any gcc2 internal prototype to avoid an error. */
13610 /* We use char because int might match the return type of a gcc2
13611 builtin and then its argument prototype would still apply. */
13612 char $ac_func();
13613
13614 int main() {
13615
13616 /* The GNU C library defines this for functions which it implements
13617 to always fail with ENOSYS. Some functions are actually named
13618 something starting with __ and the normal name is an alias. */
13619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13620 choke me
13621 #else
13622 $ac_func();
13623 #endif
13624
13625 ; return 0; }
13626 EOF
13627 if { (eval echo configure:13628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13628 rm -rf conftest*
13629 eval "ac_cv_func_$ac_func=yes"
13630 else
13631 echo "configure: failed program was:" >&5
13632 cat conftest.$ac_ext >&5
13633 rm -rf conftest*
13634 eval "ac_cv_func_$ac_func=no"
13635 fi
13636 rm -f conftest*
13637 fi
13638
13639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13640 echo "$ac_t""yes" 1>&6
13641 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13642 cat >> confdefs.h <<EOF
13643 #define $ac_tr_func 1
13644 EOF
13645
13646 else
13647 echo "$ac_t""no" 1>&6
13648 fi
13649 done
13650
13651 else
13652
13653 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
13654 echo "configure:13655: checking for _hypot declaration" >&5
13655 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
13656 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
13657 echo $ac_n "(cached) $ac_c" 1>&6
13658 else
13659
13660
13661 ac_ext=C
13662 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13663 ac_cpp='$CXXCPP $CPPFLAGS'
13664 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13665 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13666 cross_compiling=$ac_cv_prog_cxx_cross
13667
13668 cat > conftest.$ac_ext <<EOF
13669 #line 13670 "configure"
13670 #include "confdefs.h"
13671 #include <math.h>
13672 int main() {
13673 _hypot(0, 0);
13674 ; return 0; }
13675 EOF
13676 if { (eval echo configure:13677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13677 rm -rf conftest*
13678 glibcpp_cv_func__hypot_use=yes
13679 else
13680 echo "configure: failed program was:" >&5
13681 cat conftest.$ac_ext >&5
13682 rm -rf conftest*
13683 glibcpp_cv_func__hypot_use=no
13684 fi
13685 rm -f conftest*
13686 ac_ext=c
13687 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13688 ac_cpp='$CPP $CPPFLAGS'
13689 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13690 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13691 cross_compiling=$ac_cv_prog_cc_cross
13692
13693
13694 fi
13695
13696 fi
13697 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
13698
13699 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
13700 for ac_func in _hypot
13701 do
13702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13703 echo "configure:13704: checking for $ac_func" >&5
13704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13705 echo $ac_n "(cached) $ac_c" 1>&6
13706 else
13707 cat > conftest.$ac_ext <<EOF
13708 #line 13709 "configure"
13709 #include "confdefs.h"
13710 /* System header to define __stub macros and hopefully few prototypes,
13711 which can conflict with char $ac_func(); below. */
13712 #include <assert.h>
13713 /* Override any gcc2 internal prototype to avoid an error. */
13714 /* We use char because int might match the return type of a gcc2
13715 builtin and then its argument prototype would still apply. */
13716 char $ac_func();
13717
13718 int main() {
13719
13720 /* The GNU C library defines this for functions which it implements
13721 to always fail with ENOSYS. Some functions are actually named
13722 something starting with __ and the normal name is an alias. */
13723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13724 choke me
13725 #else
13726 $ac_func();
13727 #endif
13728
13729 ; return 0; }
13730 EOF
13731 if { (eval echo configure:13732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13732 rm -rf conftest*
13733 eval "ac_cv_func_$ac_func=yes"
13734 else
13735 echo "configure: failed program was:" >&5
13736 cat conftest.$ac_ext >&5
13737 rm -rf conftest*
13738 eval "ac_cv_func_$ac_func=no"
13739 fi
13740 rm -f conftest*
13741 fi
13742
13743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13744 echo "$ac_t""yes" 1>&6
13745 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13746 cat >> confdefs.h <<EOF
13747 #define $ac_tr_func 1
13748 EOF
13749
13750 else
13751 echo "$ac_t""no" 1>&6
13752 fi
13753 done
13754
13755 fi
13756 fi
13757
13758
13759
13760 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
13761 echo "configure:13762: checking for float trig functions" >&5
13762 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
13763 echo $ac_n "(cached) $ac_c" 1>&6
13764 else
13765
13766
13767 ac_ext=C
13768 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13769 ac_cpp='$CXXCPP $CPPFLAGS'
13770 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13771 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13772 cross_compiling=$ac_cv_prog_cxx_cross
13773
13774 cat > conftest.$ac_ext <<EOF
13775 #line 13776 "configure"
13776 #include "confdefs.h"
13777 #include <math.h>
13778 int main() {
13779 `for x in acosf asinf atanf \
13780 cosf sinf tanf \
13781 coshf sinhf tanhf; do echo "$x (0);"; done`
13782 ; return 0; }
13783 EOF
13784 if { (eval echo configure:13785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13785 rm -rf conftest*
13786 glibcpp_cv_func_float_trig_use=yes
13787 else
13788 echo "configure: failed program was:" >&5
13789 cat conftest.$ac_ext >&5
13790 rm -rf conftest*
13791 glibcpp_cv_func_float_trig_use=no
13792 fi
13793 rm -f conftest*
13794 ac_ext=c
13795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13796 ac_cpp='$CPP $CPPFLAGS'
13797 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13798 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13799 cross_compiling=$ac_cv_prog_cc_cross
13800
13801 fi
13802
13803 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
13804 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
13805 for ac_func in acosf asinf atanf \
13806 cosf sinf tanf \
13807 coshf sinhf tanhf
13808 do
13809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13810 echo "configure:13811: checking for $ac_func" >&5
13811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13812 echo $ac_n "(cached) $ac_c" 1>&6
13813 else
13814 cat > conftest.$ac_ext <<EOF
13815 #line 13816 "configure"
13816 #include "confdefs.h"
13817 /* System header to define __stub macros and hopefully few prototypes,
13818 which can conflict with char $ac_func(); below. */
13819 #include <assert.h>
13820 /* Override any gcc2 internal prototype to avoid an error. */
13821 /* We use char because int might match the return type of a gcc2
13822 builtin and then its argument prototype would still apply. */
13823 char $ac_func();
13824
13825 int main() {
13826
13827 /* The GNU C library defines this for functions which it implements
13828 to always fail with ENOSYS. Some functions are actually named
13829 something starting with __ and the normal name is an alias. */
13830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13831 choke me
13832 #else
13833 $ac_func();
13834 #endif
13835
13836 ; return 0; }
13837 EOF
13838 if { (eval echo configure:13839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13839 rm -rf conftest*
13840 eval "ac_cv_func_$ac_func=yes"
13841 else
13842 echo "configure: failed program was:" >&5
13843 cat conftest.$ac_ext >&5
13844 rm -rf conftest*
13845 eval "ac_cv_func_$ac_func=no"
13846 fi
13847 rm -f conftest*
13848 fi
13849
13850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13851 echo "$ac_t""yes" 1>&6
13852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13853 cat >> confdefs.h <<EOF
13854 #define $ac_tr_func 1
13855 EOF
13856
13857 else
13858 echo "$ac_t""no" 1>&6
13859 fi
13860 done
13861
13862 fi
13863
13864
13865 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
13866 echo "configure:13867: checking for float round functions" >&5
13867 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
13868 echo $ac_n "(cached) $ac_c" 1>&6
13869 else
13870
13871
13872 ac_ext=C
13873 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13874 ac_cpp='$CXXCPP $CPPFLAGS'
13875 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13876 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13877 cross_compiling=$ac_cv_prog_cxx_cross
13878
13879 cat > conftest.$ac_ext <<EOF
13880 #line 13881 "configure"
13881 #include "confdefs.h"
13882 #include <math.h>
13883 int main() {
13884 `for x in ceilf floorf; do echo "$x (0);"; done`
13885 ; return 0; }
13886 EOF
13887 if { (eval echo configure:13888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13888 rm -rf conftest*
13889 glibcpp_cv_func_float_round_use=yes
13890 else
13891 echo "configure: failed program was:" >&5
13892 cat conftest.$ac_ext >&5
13893 rm -rf conftest*
13894 glibcpp_cv_func_float_round_use=no
13895 fi
13896 rm -f conftest*
13897 ac_ext=c
13898 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13899 ac_cpp='$CPP $CPPFLAGS'
13900 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13901 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13902 cross_compiling=$ac_cv_prog_cc_cross
13903
13904 fi
13905
13906 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
13907 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
13908 for ac_func in ceilf floorf
13909 do
13910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13911 echo "configure:13912: checking for $ac_func" >&5
13912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13913 echo $ac_n "(cached) $ac_c" 1>&6
13914 else
13915 cat > conftest.$ac_ext <<EOF
13916 #line 13917 "configure"
13917 #include "confdefs.h"
13918 /* System header to define __stub macros and hopefully few prototypes,
13919 which can conflict with char $ac_func(); below. */
13920 #include <assert.h>
13921 /* Override any gcc2 internal prototype to avoid an error. */
13922 /* We use char because int might match the return type of a gcc2
13923 builtin and then its argument prototype would still apply. */
13924 char $ac_func();
13925
13926 int main() {
13927
13928 /* The GNU C library defines this for functions which it implements
13929 to always fail with ENOSYS. Some functions are actually named
13930 something starting with __ and the normal name is an alias. */
13931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13932 choke me
13933 #else
13934 $ac_func();
13935 #endif
13936
13937 ; return 0; }
13938 EOF
13939 if { (eval echo configure:13940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13940 rm -rf conftest*
13941 eval "ac_cv_func_$ac_func=yes"
13942 else
13943 echo "configure: failed program was:" >&5
13944 cat conftest.$ac_ext >&5
13945 rm -rf conftest*
13946 eval "ac_cv_func_$ac_func=no"
13947 fi
13948 rm -f conftest*
13949 fi
13950
13951 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13952 echo "$ac_t""yes" 1>&6
13953 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13954 cat >> confdefs.h <<EOF
13955 #define $ac_tr_func 1
13956 EOF
13957
13958 else
13959 echo "$ac_t""no" 1>&6
13960 fi
13961 done
13962
13963 fi
13964
13965
13966
13967 echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
13968 echo "configure:13969: checking for expf declaration" >&5
13969 if test x${glibcpp_cv_func_expf_use+set} != xset; then
13970 if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
13971 echo $ac_n "(cached) $ac_c" 1>&6
13972 else
13973
13974
13975 ac_ext=C
13976 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13977 ac_cpp='$CXXCPP $CPPFLAGS'
13978 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13979 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13980 cross_compiling=$ac_cv_prog_cxx_cross
13981
13982 cat > conftest.$ac_ext <<EOF
13983 #line 13984 "configure"
13984 #include "confdefs.h"
13985 #include <math.h>
13986 #ifdef HAVE_IEEEFP_H
13987 #include <ieeefp.h>
13988 #endif
13989
13990 int main() {
13991 expf(0);
13992 ; return 0; }
13993 EOF
13994 if { (eval echo configure:13995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13995 rm -rf conftest*
13996 glibcpp_cv_func_expf_use=yes
13997 else
13998 echo "configure: failed program was:" >&5
13999 cat conftest.$ac_ext >&5
14000 rm -rf conftest*
14001 glibcpp_cv_func_expf_use=no
14002 fi
14003 rm -f conftest*
14004 ac_ext=c
14005 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14006 ac_cpp='$CPP $CPPFLAGS'
14007 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14008 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14009 cross_compiling=$ac_cv_prog_cc_cross
14010
14011
14012 fi
14013
14014 fi
14015 echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
14016
14017 if test x$glibcpp_cv_func_expf_use = x"yes"; then
14018 for ac_func in expf
14019 do
14020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14021 echo "configure:14022: checking for $ac_func" >&5
14022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14023 echo $ac_n "(cached) $ac_c" 1>&6
14024 else
14025 cat > conftest.$ac_ext <<EOF
14026 #line 14027 "configure"
14027 #include "confdefs.h"
14028 /* System header to define __stub macros and hopefully few prototypes,
14029 which can conflict with char $ac_func(); below. */
14030 #include <assert.h>
14031 /* Override any gcc2 internal prototype to avoid an error. */
14032 /* We use char because int might match the return type of a gcc2
14033 builtin and then its argument prototype would still apply. */
14034 char $ac_func();
14035
14036 int main() {
14037
14038 /* The GNU C library defines this for functions which it implements
14039 to always fail with ENOSYS. Some functions are actually named
14040 something starting with __ and the normal name is an alias. */
14041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14042 choke me
14043 #else
14044 $ac_func();
14045 #endif
14046
14047 ; return 0; }
14048 EOF
14049 if { (eval echo configure:14050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14050 rm -rf conftest*
14051 eval "ac_cv_func_$ac_func=yes"
14052 else
14053 echo "configure: failed program was:" >&5
14054 cat conftest.$ac_ext >&5
14055 rm -rf conftest*
14056 eval "ac_cv_func_$ac_func=no"
14057 fi
14058 rm -f conftest*
14059 fi
14060
14061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14062 echo "$ac_t""yes" 1>&6
14063 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14064 cat >> confdefs.h <<EOF
14065 #define $ac_tr_func 1
14066 EOF
14067
14068 else
14069 echo "$ac_t""no" 1>&6
14070 fi
14071 done
14072
14073 else
14074
14075 echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
14076 echo "configure:14077: checking for _expf declaration" >&5
14077 if test x${glibcpp_cv_func__expf_use+set} != xset; then
14078 if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
14079 echo $ac_n "(cached) $ac_c" 1>&6
14080 else
14081
14082
14083 ac_ext=C
14084 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14085 ac_cpp='$CXXCPP $CPPFLAGS'
14086 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14087 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14088 cross_compiling=$ac_cv_prog_cxx_cross
14089
14090 cat > conftest.$ac_ext <<EOF
14091 #line 14092 "configure"
14092 #include "confdefs.h"
14093 #include <math.h>
14094 #ifdef HAVE_IEEEFP_H
14095 #include <ieeefp.h>
14096 #endif
14097
14098 int main() {
14099 _expf(0);
14100 ; return 0; }
14101 EOF
14102 if { (eval echo configure:14103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14103 rm -rf conftest*
14104 glibcpp_cv_func__expf_use=yes
14105 else
14106 echo "configure: failed program was:" >&5
14107 cat conftest.$ac_ext >&5
14108 rm -rf conftest*
14109 glibcpp_cv_func__expf_use=no
14110 fi
14111 rm -f conftest*
14112 ac_ext=c
14113 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14114 ac_cpp='$CPP $CPPFLAGS'
14115 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14116 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14117 cross_compiling=$ac_cv_prog_cc_cross
14118
14119
14120 fi
14121
14122 fi
14123 echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
14124
14125 if test x$glibcpp_cv_func__expf_use = x"yes"; then
14126 for ac_func in _expf
14127 do
14128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14129 echo "configure:14130: checking for $ac_func" >&5
14130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14131 echo $ac_n "(cached) $ac_c" 1>&6
14132 else
14133 cat > conftest.$ac_ext <<EOF
14134 #line 14135 "configure"
14135 #include "confdefs.h"
14136 /* System header to define __stub macros and hopefully few prototypes,
14137 which can conflict with char $ac_func(); below. */
14138 #include <assert.h>
14139 /* Override any gcc2 internal prototype to avoid an error. */
14140 /* We use char because int might match the return type of a gcc2
14141 builtin and then its argument prototype would still apply. */
14142 char $ac_func();
14143
14144 int main() {
14145
14146 /* The GNU C library defines this for functions which it implements
14147 to always fail with ENOSYS. Some functions are actually named
14148 something starting with __ and the normal name is an alias. */
14149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14150 choke me
14151 #else
14152 $ac_func();
14153 #endif
14154
14155 ; return 0; }
14156 EOF
14157 if { (eval echo configure:14158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14158 rm -rf conftest*
14159 eval "ac_cv_func_$ac_func=yes"
14160 else
14161 echo "configure: failed program was:" >&5
14162 cat conftest.$ac_ext >&5
14163 rm -rf conftest*
14164 eval "ac_cv_func_$ac_func=no"
14165 fi
14166 rm -f conftest*
14167 fi
14168
14169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14170 echo "$ac_t""yes" 1>&6
14171 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14172 cat >> confdefs.h <<EOF
14173 #define $ac_tr_func 1
14174 EOF
14175
14176 else
14177 echo "$ac_t""no" 1>&6
14178 fi
14179 done
14180
14181 fi
14182 fi
14183
14184
14185
14186 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
14187 echo "configure:14188: checking for isnanf declaration" >&5
14188 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
14189 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
14190 echo $ac_n "(cached) $ac_c" 1>&6
14191 else
14192
14193
14194 ac_ext=C
14195 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14196 ac_cpp='$CXXCPP $CPPFLAGS'
14197 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14198 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14199 cross_compiling=$ac_cv_prog_cxx_cross
14200
14201 cat > conftest.$ac_ext <<EOF
14202 #line 14203 "configure"
14203 #include "confdefs.h"
14204 #include <math.h>
14205 #ifdef HAVE_IEEEFP_H
14206 #include <ieeefp.h>
14207 #endif
14208
14209 int main() {
14210 isnanf(0);
14211 ; return 0; }
14212 EOF
14213 if { (eval echo configure:14214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14214 rm -rf conftest*
14215 glibcpp_cv_func_isnanf_use=yes
14216 else
14217 echo "configure: failed program was:" >&5
14218 cat conftest.$ac_ext >&5
14219 rm -rf conftest*
14220 glibcpp_cv_func_isnanf_use=no
14221 fi
14222 rm -f conftest*
14223 ac_ext=c
14224 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14225 ac_cpp='$CPP $CPPFLAGS'
14226 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14227 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14228 cross_compiling=$ac_cv_prog_cc_cross
14229
14230
14231 fi
14232
14233 fi
14234 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
14235
14236 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
14237 for ac_func in isnanf
14238 do
14239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14240 echo "configure:14241: checking for $ac_func" >&5
14241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14242 echo $ac_n "(cached) $ac_c" 1>&6
14243 else
14244 cat > conftest.$ac_ext <<EOF
14245 #line 14246 "configure"
14246 #include "confdefs.h"
14247 /* System header to define __stub macros and hopefully few prototypes,
14248 which can conflict with char $ac_func(); below. */
14249 #include <assert.h>
14250 /* Override any gcc2 internal prototype to avoid an error. */
14251 /* We use char because int might match the return type of a gcc2
14252 builtin and then its argument prototype would still apply. */
14253 char $ac_func();
14254
14255 int main() {
14256
14257 /* The GNU C library defines this for functions which it implements
14258 to always fail with ENOSYS. Some functions are actually named
14259 something starting with __ and the normal name is an alias. */
14260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14261 choke me
14262 #else
14263 $ac_func();
14264 #endif
14265
14266 ; return 0; }
14267 EOF
14268 if { (eval echo configure:14269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14269 rm -rf conftest*
14270 eval "ac_cv_func_$ac_func=yes"
14271 else
14272 echo "configure: failed program was:" >&5
14273 cat conftest.$ac_ext >&5
14274 rm -rf conftest*
14275 eval "ac_cv_func_$ac_func=no"
14276 fi
14277 rm -f conftest*
14278 fi
14279
14280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14281 echo "$ac_t""yes" 1>&6
14282 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14283 cat >> confdefs.h <<EOF
14284 #define $ac_tr_func 1
14285 EOF
14286
14287 else
14288 echo "$ac_t""no" 1>&6
14289 fi
14290 done
14291
14292 else
14293
14294 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
14295 echo "configure:14296: checking for _isnanf declaration" >&5
14296 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
14297 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
14298 echo $ac_n "(cached) $ac_c" 1>&6
14299 else
14300
14301
14302 ac_ext=C
14303 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14304 ac_cpp='$CXXCPP $CPPFLAGS'
14305 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14306 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14307 cross_compiling=$ac_cv_prog_cxx_cross
14308
14309 cat > conftest.$ac_ext <<EOF
14310 #line 14311 "configure"
14311 #include "confdefs.h"
14312 #include <math.h>
14313 #ifdef HAVE_IEEEFP_H
14314 #include <ieeefp.h>
14315 #endif
14316
14317 int main() {
14318 _isnanf(0);
14319 ; return 0; }
14320 EOF
14321 if { (eval echo configure:14322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14322 rm -rf conftest*
14323 glibcpp_cv_func__isnanf_use=yes
14324 else
14325 echo "configure: failed program was:" >&5
14326 cat conftest.$ac_ext >&5
14327 rm -rf conftest*
14328 glibcpp_cv_func__isnanf_use=no
14329 fi
14330 rm -f conftest*
14331 ac_ext=c
14332 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14333 ac_cpp='$CPP $CPPFLAGS'
14334 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14335 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14336 cross_compiling=$ac_cv_prog_cc_cross
14337
14338
14339 fi
14340
14341 fi
14342 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
14343
14344 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
14345 for ac_func in _isnanf
14346 do
14347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14348 echo "configure:14349: checking for $ac_func" >&5
14349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14350 echo $ac_n "(cached) $ac_c" 1>&6
14351 else
14352 cat > conftest.$ac_ext <<EOF
14353 #line 14354 "configure"
14354 #include "confdefs.h"
14355 /* System header to define __stub macros and hopefully few prototypes,
14356 which can conflict with char $ac_func(); below. */
14357 #include <assert.h>
14358 /* Override any gcc2 internal prototype to avoid an error. */
14359 /* We use char because int might match the return type of a gcc2
14360 builtin and then its argument prototype would still apply. */
14361 char $ac_func();
14362
14363 int main() {
14364
14365 /* The GNU C library defines this for functions which it implements
14366 to always fail with ENOSYS. Some functions are actually named
14367 something starting with __ and the normal name is an alias. */
14368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14369 choke me
14370 #else
14371 $ac_func();
14372 #endif
14373
14374 ; return 0; }
14375 EOF
14376 if { (eval echo configure:14377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14377 rm -rf conftest*
14378 eval "ac_cv_func_$ac_func=yes"
14379 else
14380 echo "configure: failed program was:" >&5
14381 cat conftest.$ac_ext >&5
14382 rm -rf conftest*
14383 eval "ac_cv_func_$ac_func=no"
14384 fi
14385 rm -f conftest*
14386 fi
14387
14388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14389 echo "$ac_t""yes" 1>&6
14390 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14391 cat >> confdefs.h <<EOF
14392 #define $ac_tr_func 1
14393 EOF
14394
14395 else
14396 echo "$ac_t""no" 1>&6
14397 fi
14398 done
14399
14400 fi
14401 fi
14402
14403
14404
14405 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
14406 echo "configure:14407: checking for isinff declaration" >&5
14407 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
14408 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
14409 echo $ac_n "(cached) $ac_c" 1>&6
14410 else
14411
14412
14413 ac_ext=C
14414 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14415 ac_cpp='$CXXCPP $CPPFLAGS'
14416 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14417 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14418 cross_compiling=$ac_cv_prog_cxx_cross
14419
14420 cat > conftest.$ac_ext <<EOF
14421 #line 14422 "configure"
14422 #include "confdefs.h"
14423 #include <math.h>
14424 #ifdef HAVE_IEEEFP_H
14425 #include <ieeefp.h>
14426 #endif
14427
14428 int main() {
14429 isinff(0);
14430 ; return 0; }
14431 EOF
14432 if { (eval echo configure:14433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14433 rm -rf conftest*
14434 glibcpp_cv_func_isinff_use=yes
14435 else
14436 echo "configure: failed program was:" >&5
14437 cat conftest.$ac_ext >&5
14438 rm -rf conftest*
14439 glibcpp_cv_func_isinff_use=no
14440 fi
14441 rm -f conftest*
14442 ac_ext=c
14443 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14444 ac_cpp='$CPP $CPPFLAGS'
14445 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14446 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14447 cross_compiling=$ac_cv_prog_cc_cross
14448
14449
14450 fi
14451
14452 fi
14453 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
14454
14455 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
14456 for ac_func in isinff
14457 do
14458 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14459 echo "configure:14460: checking for $ac_func" >&5
14460 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14461 echo $ac_n "(cached) $ac_c" 1>&6
14462 else
14463 cat > conftest.$ac_ext <<EOF
14464 #line 14465 "configure"
14465 #include "confdefs.h"
14466 /* System header to define __stub macros and hopefully few prototypes,
14467 which can conflict with char $ac_func(); below. */
14468 #include <assert.h>
14469 /* Override any gcc2 internal prototype to avoid an error. */
14470 /* We use char because int might match the return type of a gcc2
14471 builtin and then its argument prototype would still apply. */
14472 char $ac_func();
14473
14474 int main() {
14475
14476 /* The GNU C library defines this for functions which it implements
14477 to always fail with ENOSYS. Some functions are actually named
14478 something starting with __ and the normal name is an alias. */
14479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14480 choke me
14481 #else
14482 $ac_func();
14483 #endif
14484
14485 ; return 0; }
14486 EOF
14487 if { (eval echo configure:14488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14488 rm -rf conftest*
14489 eval "ac_cv_func_$ac_func=yes"
14490 else
14491 echo "configure: failed program was:" >&5
14492 cat conftest.$ac_ext >&5
14493 rm -rf conftest*
14494 eval "ac_cv_func_$ac_func=no"
14495 fi
14496 rm -f conftest*
14497 fi
14498
14499 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14500 echo "$ac_t""yes" 1>&6
14501 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14502 cat >> confdefs.h <<EOF
14503 #define $ac_tr_func 1
14504 EOF
14505
14506 else
14507 echo "$ac_t""no" 1>&6
14508 fi
14509 done
14510
14511 else
14512
14513 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
14514 echo "configure:14515: checking for _isinff declaration" >&5
14515 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
14516 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
14517 echo $ac_n "(cached) $ac_c" 1>&6
14518 else
14519
14520
14521 ac_ext=C
14522 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14523 ac_cpp='$CXXCPP $CPPFLAGS'
14524 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14525 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14526 cross_compiling=$ac_cv_prog_cxx_cross
14527
14528 cat > conftest.$ac_ext <<EOF
14529 #line 14530 "configure"
14530 #include "confdefs.h"
14531 #include <math.h>
14532 #ifdef HAVE_IEEEFP_H
14533 #include <ieeefp.h>
14534 #endif
14535
14536 int main() {
14537 _isinff(0);
14538 ; return 0; }
14539 EOF
14540 if { (eval echo configure:14541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14541 rm -rf conftest*
14542 glibcpp_cv_func__isinff_use=yes
14543 else
14544 echo "configure: failed program was:" >&5
14545 cat conftest.$ac_ext >&5
14546 rm -rf conftest*
14547 glibcpp_cv_func__isinff_use=no
14548 fi
14549 rm -f conftest*
14550 ac_ext=c
14551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14552 ac_cpp='$CPP $CPPFLAGS'
14553 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14554 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14555 cross_compiling=$ac_cv_prog_cc_cross
14556
14557
14558 fi
14559
14560 fi
14561 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
14562
14563 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
14564 for ac_func in _isinff
14565 do
14566 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14567 echo "configure:14568: checking for $ac_func" >&5
14568 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14569 echo $ac_n "(cached) $ac_c" 1>&6
14570 else
14571 cat > conftest.$ac_ext <<EOF
14572 #line 14573 "configure"
14573 #include "confdefs.h"
14574 /* System header to define __stub macros and hopefully few prototypes,
14575 which can conflict with char $ac_func(); below. */
14576 #include <assert.h>
14577 /* Override any gcc2 internal prototype to avoid an error. */
14578 /* We use char because int might match the return type of a gcc2
14579 builtin and then its argument prototype would still apply. */
14580 char $ac_func();
14581
14582 int main() {
14583
14584 /* The GNU C library defines this for functions which it implements
14585 to always fail with ENOSYS. Some functions are actually named
14586 something starting with __ and the normal name is an alias. */
14587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14588 choke me
14589 #else
14590 $ac_func();
14591 #endif
14592
14593 ; return 0; }
14594 EOF
14595 if { (eval echo configure:14596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14596 rm -rf conftest*
14597 eval "ac_cv_func_$ac_func=yes"
14598 else
14599 echo "configure: failed program was:" >&5
14600 cat conftest.$ac_ext >&5
14601 rm -rf conftest*
14602 eval "ac_cv_func_$ac_func=no"
14603 fi
14604 rm -f conftest*
14605 fi
14606
14607 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14608 echo "$ac_t""yes" 1>&6
14609 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14610 cat >> confdefs.h <<EOF
14611 #define $ac_tr_func 1
14612 EOF
14613
14614 else
14615 echo "$ac_t""no" 1>&6
14616 fi
14617 done
14618
14619 fi
14620 fi
14621
14622
14623
14624 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
14625 echo "configure:14626: checking for atan2f declaration" >&5
14626 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
14627 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
14628 echo $ac_n "(cached) $ac_c" 1>&6
14629 else
14630
14631
14632 ac_ext=C
14633 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14634 ac_cpp='$CXXCPP $CPPFLAGS'
14635 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14636 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14637 cross_compiling=$ac_cv_prog_cxx_cross
14638
14639 cat > conftest.$ac_ext <<EOF
14640 #line 14641 "configure"
14641 #include "confdefs.h"
14642 #include <math.h>
14643 int main() {
14644 atan2f(0, 0);
14645 ; return 0; }
14646 EOF
14647 if { (eval echo configure:14648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14648 rm -rf conftest*
14649 glibcpp_cv_func_atan2f_use=yes
14650 else
14651 echo "configure: failed program was:" >&5
14652 cat conftest.$ac_ext >&5
14653 rm -rf conftest*
14654 glibcpp_cv_func_atan2f_use=no
14655 fi
14656 rm -f conftest*
14657 ac_ext=c
14658 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14659 ac_cpp='$CPP $CPPFLAGS'
14660 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14661 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14662 cross_compiling=$ac_cv_prog_cc_cross
14663
14664
14665 fi
14666
14667 fi
14668 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
14669
14670 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
14671 for ac_func in atan2f
14672 do
14673 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14674 echo "configure:14675: checking for $ac_func" >&5
14675 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14676 echo $ac_n "(cached) $ac_c" 1>&6
14677 else
14678 cat > conftest.$ac_ext <<EOF
14679 #line 14680 "configure"
14680 #include "confdefs.h"
14681 /* System header to define __stub macros and hopefully few prototypes,
14682 which can conflict with char $ac_func(); below. */
14683 #include <assert.h>
14684 /* Override any gcc2 internal prototype to avoid an error. */
14685 /* We use char because int might match the return type of a gcc2
14686 builtin and then its argument prototype would still apply. */
14687 char $ac_func();
14688
14689 int main() {
14690
14691 /* The GNU C library defines this for functions which it implements
14692 to always fail with ENOSYS. Some functions are actually named
14693 something starting with __ and the normal name is an alias. */
14694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14695 choke me
14696 #else
14697 $ac_func();
14698 #endif
14699
14700 ; return 0; }
14701 EOF
14702 if { (eval echo configure:14703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14703 rm -rf conftest*
14704 eval "ac_cv_func_$ac_func=yes"
14705 else
14706 echo "configure: failed program was:" >&5
14707 cat conftest.$ac_ext >&5
14708 rm -rf conftest*
14709 eval "ac_cv_func_$ac_func=no"
14710 fi
14711 rm -f conftest*
14712 fi
14713
14714 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14715 echo "$ac_t""yes" 1>&6
14716 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14717 cat >> confdefs.h <<EOF
14718 #define $ac_tr_func 1
14719 EOF
14720
14721 else
14722 echo "$ac_t""no" 1>&6
14723 fi
14724 done
14725
14726 else
14727
14728 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
14729 echo "configure:14730: checking for _atan2f declaration" >&5
14730 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
14731 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
14732 echo $ac_n "(cached) $ac_c" 1>&6
14733 else
14734
14735
14736 ac_ext=C
14737 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14738 ac_cpp='$CXXCPP $CPPFLAGS'
14739 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14740 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14741 cross_compiling=$ac_cv_prog_cxx_cross
14742
14743 cat > conftest.$ac_ext <<EOF
14744 #line 14745 "configure"
14745 #include "confdefs.h"
14746 #include <math.h>
14747 int main() {
14748 _atan2f(0, 0);
14749 ; return 0; }
14750 EOF
14751 if { (eval echo configure:14752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14752 rm -rf conftest*
14753 glibcpp_cv_func__atan2f_use=yes
14754 else
14755 echo "configure: failed program was:" >&5
14756 cat conftest.$ac_ext >&5
14757 rm -rf conftest*
14758 glibcpp_cv_func__atan2f_use=no
14759 fi
14760 rm -f conftest*
14761 ac_ext=c
14762 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14763 ac_cpp='$CPP $CPPFLAGS'
14764 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14765 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14766 cross_compiling=$ac_cv_prog_cc_cross
14767
14768
14769 fi
14770
14771 fi
14772 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
14773
14774 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
14775 for ac_func in _atan2f
14776 do
14777 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14778 echo "configure:14779: checking for $ac_func" >&5
14779 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14780 echo $ac_n "(cached) $ac_c" 1>&6
14781 else
14782 cat > conftest.$ac_ext <<EOF
14783 #line 14784 "configure"
14784 #include "confdefs.h"
14785 /* System header to define __stub macros and hopefully few prototypes,
14786 which can conflict with char $ac_func(); below. */
14787 #include <assert.h>
14788 /* Override any gcc2 internal prototype to avoid an error. */
14789 /* We use char because int might match the return type of a gcc2
14790 builtin and then its argument prototype would still apply. */
14791 char $ac_func();
14792
14793 int main() {
14794
14795 /* The GNU C library defines this for functions which it implements
14796 to always fail with ENOSYS. Some functions are actually named
14797 something starting with __ and the normal name is an alias. */
14798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14799 choke me
14800 #else
14801 $ac_func();
14802 #endif
14803
14804 ; return 0; }
14805 EOF
14806 if { (eval echo configure:14807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14807 rm -rf conftest*
14808 eval "ac_cv_func_$ac_func=yes"
14809 else
14810 echo "configure: failed program was:" >&5
14811 cat conftest.$ac_ext >&5
14812 rm -rf conftest*
14813 eval "ac_cv_func_$ac_func=no"
14814 fi
14815 rm -f conftest*
14816 fi
14817
14818 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14819 echo "$ac_t""yes" 1>&6
14820 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14821 cat >> confdefs.h <<EOF
14822 #define $ac_tr_func 1
14823 EOF
14824
14825 else
14826 echo "$ac_t""no" 1>&6
14827 fi
14828 done
14829
14830 fi
14831 fi
14832
14833
14834
14835 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
14836 echo "configure:14837: checking for fabsf declaration" >&5
14837 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
14838 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
14839 echo $ac_n "(cached) $ac_c" 1>&6
14840 else
14841
14842
14843 ac_ext=C
14844 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14845 ac_cpp='$CXXCPP $CPPFLAGS'
14846 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14847 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14848 cross_compiling=$ac_cv_prog_cxx_cross
14849
14850 cat > conftest.$ac_ext <<EOF
14851 #line 14852 "configure"
14852 #include "confdefs.h"
14853 #include <math.h>
14854 #ifdef HAVE_IEEEFP_H
14855 #include <ieeefp.h>
14856 #endif
14857
14858 int main() {
14859 fabsf(0);
14860 ; return 0; }
14861 EOF
14862 if { (eval echo configure:14863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14863 rm -rf conftest*
14864 glibcpp_cv_func_fabsf_use=yes
14865 else
14866 echo "configure: failed program was:" >&5
14867 cat conftest.$ac_ext >&5
14868 rm -rf conftest*
14869 glibcpp_cv_func_fabsf_use=no
14870 fi
14871 rm -f conftest*
14872 ac_ext=c
14873 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14874 ac_cpp='$CPP $CPPFLAGS'
14875 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14876 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14877 cross_compiling=$ac_cv_prog_cc_cross
14878
14879
14880 fi
14881
14882 fi
14883 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
14884
14885 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
14886 for ac_func in fabsf
14887 do
14888 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14889 echo "configure:14890: checking for $ac_func" >&5
14890 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14891 echo $ac_n "(cached) $ac_c" 1>&6
14892 else
14893 cat > conftest.$ac_ext <<EOF
14894 #line 14895 "configure"
14895 #include "confdefs.h"
14896 /* System header to define __stub macros and hopefully few prototypes,
14897 which can conflict with char $ac_func(); below. */
14898 #include <assert.h>
14899 /* Override any gcc2 internal prototype to avoid an error. */
14900 /* We use char because int might match the return type of a gcc2
14901 builtin and then its argument prototype would still apply. */
14902 char $ac_func();
14903
14904 int main() {
14905
14906 /* The GNU C library defines this for functions which it implements
14907 to always fail with ENOSYS. Some functions are actually named
14908 something starting with __ and the normal name is an alias. */
14909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14910 choke me
14911 #else
14912 $ac_func();
14913 #endif
14914
14915 ; return 0; }
14916 EOF
14917 if { (eval echo configure:14918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14918 rm -rf conftest*
14919 eval "ac_cv_func_$ac_func=yes"
14920 else
14921 echo "configure: failed program was:" >&5
14922 cat conftest.$ac_ext >&5
14923 rm -rf conftest*
14924 eval "ac_cv_func_$ac_func=no"
14925 fi
14926 rm -f conftest*
14927 fi
14928
14929 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14930 echo "$ac_t""yes" 1>&6
14931 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14932 cat >> confdefs.h <<EOF
14933 #define $ac_tr_func 1
14934 EOF
14935
14936 else
14937 echo "$ac_t""no" 1>&6
14938 fi
14939 done
14940
14941 else
14942
14943 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
14944 echo "configure:14945: checking for _fabsf declaration" >&5
14945 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
14946 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
14947 echo $ac_n "(cached) $ac_c" 1>&6
14948 else
14949
14950
14951 ac_ext=C
14952 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14953 ac_cpp='$CXXCPP $CPPFLAGS'
14954 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14955 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14956 cross_compiling=$ac_cv_prog_cxx_cross
14957
14958 cat > conftest.$ac_ext <<EOF
14959 #line 14960 "configure"
14960 #include "confdefs.h"
14961 #include <math.h>
14962 #ifdef HAVE_IEEEFP_H
14963 #include <ieeefp.h>
14964 #endif
14965
14966 int main() {
14967 _fabsf(0);
14968 ; return 0; }
14969 EOF
14970 if { (eval echo configure:14971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14971 rm -rf conftest*
14972 glibcpp_cv_func__fabsf_use=yes
14973 else
14974 echo "configure: failed program was:" >&5
14975 cat conftest.$ac_ext >&5
14976 rm -rf conftest*
14977 glibcpp_cv_func__fabsf_use=no
14978 fi
14979 rm -f conftest*
14980 ac_ext=c
14981 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14982 ac_cpp='$CPP $CPPFLAGS'
14983 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14984 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14985 cross_compiling=$ac_cv_prog_cc_cross
14986
14987
14988 fi
14989
14990 fi
14991 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
14992
14993 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
14994 for ac_func in _fabsf
14995 do
14996 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14997 echo "configure:14998: checking for $ac_func" >&5
14998 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14999 echo $ac_n "(cached) $ac_c" 1>&6
15000 else
15001 cat > conftest.$ac_ext <<EOF
15002 #line 15003 "configure"
15003 #include "confdefs.h"
15004 /* System header to define __stub macros and hopefully few prototypes,
15005 which can conflict with char $ac_func(); below. */
15006 #include <assert.h>
15007 /* Override any gcc2 internal prototype to avoid an error. */
15008 /* We use char because int might match the return type of a gcc2
15009 builtin and then its argument prototype would still apply. */
15010 char $ac_func();
15011
15012 int main() {
15013
15014 /* The GNU C library defines this for functions which it implements
15015 to always fail with ENOSYS. Some functions are actually named
15016 something starting with __ and the normal name is an alias. */
15017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15018 choke me
15019 #else
15020 $ac_func();
15021 #endif
15022
15023 ; return 0; }
15024 EOF
15025 if { (eval echo configure:15026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15026 rm -rf conftest*
15027 eval "ac_cv_func_$ac_func=yes"
15028 else
15029 echo "configure: failed program was:" >&5
15030 cat conftest.$ac_ext >&5
15031 rm -rf conftest*
15032 eval "ac_cv_func_$ac_func=no"
15033 fi
15034 rm -f conftest*
15035 fi
15036
15037 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15038 echo "$ac_t""yes" 1>&6
15039 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15040 cat >> confdefs.h <<EOF
15041 #define $ac_tr_func 1
15042 EOF
15043
15044 else
15045 echo "$ac_t""no" 1>&6
15046 fi
15047 done
15048
15049 fi
15050 fi
15051
15052
15053
15054 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
15055 echo "configure:15056: checking for fmodf declaration" >&5
15056 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
15057 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
15058 echo $ac_n "(cached) $ac_c" 1>&6
15059 else
15060
15061
15062 ac_ext=C
15063 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15064 ac_cpp='$CXXCPP $CPPFLAGS'
15065 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15066 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15067 cross_compiling=$ac_cv_prog_cxx_cross
15068
15069 cat > conftest.$ac_ext <<EOF
15070 #line 15071 "configure"
15071 #include "confdefs.h"
15072 #include <math.h>
15073 int main() {
15074 fmodf(0, 0);
15075 ; return 0; }
15076 EOF
15077 if { (eval echo configure:15078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15078 rm -rf conftest*
15079 glibcpp_cv_func_fmodf_use=yes
15080 else
15081 echo "configure: failed program was:" >&5
15082 cat conftest.$ac_ext >&5
15083 rm -rf conftest*
15084 glibcpp_cv_func_fmodf_use=no
15085 fi
15086 rm -f conftest*
15087 ac_ext=c
15088 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15089 ac_cpp='$CPP $CPPFLAGS'
15090 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15091 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15092 cross_compiling=$ac_cv_prog_cc_cross
15093
15094
15095 fi
15096
15097 fi
15098 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
15099
15100 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
15101 for ac_func in fmodf
15102 do
15103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15104 echo "configure:15105: checking for $ac_func" >&5
15105 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15106 echo $ac_n "(cached) $ac_c" 1>&6
15107 else
15108 cat > conftest.$ac_ext <<EOF
15109 #line 15110 "configure"
15110 #include "confdefs.h"
15111 /* System header to define __stub macros and hopefully few prototypes,
15112 which can conflict with char $ac_func(); below. */
15113 #include <assert.h>
15114 /* Override any gcc2 internal prototype to avoid an error. */
15115 /* We use char because int might match the return type of a gcc2
15116 builtin and then its argument prototype would still apply. */
15117 char $ac_func();
15118
15119 int main() {
15120
15121 /* The GNU C library defines this for functions which it implements
15122 to always fail with ENOSYS. Some functions are actually named
15123 something starting with __ and the normal name is an alias. */
15124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15125 choke me
15126 #else
15127 $ac_func();
15128 #endif
15129
15130 ; return 0; }
15131 EOF
15132 if { (eval echo configure:15133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15133 rm -rf conftest*
15134 eval "ac_cv_func_$ac_func=yes"
15135 else
15136 echo "configure: failed program was:" >&5
15137 cat conftest.$ac_ext >&5
15138 rm -rf conftest*
15139 eval "ac_cv_func_$ac_func=no"
15140 fi
15141 rm -f conftest*
15142 fi
15143
15144 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15145 echo "$ac_t""yes" 1>&6
15146 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15147 cat >> confdefs.h <<EOF
15148 #define $ac_tr_func 1
15149 EOF
15150
15151 else
15152 echo "$ac_t""no" 1>&6
15153 fi
15154 done
15155
15156 else
15157
15158 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
15159 echo "configure:15160: checking for _fmodf declaration" >&5
15160 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
15161 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
15162 echo $ac_n "(cached) $ac_c" 1>&6
15163 else
15164
15165
15166 ac_ext=C
15167 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15168 ac_cpp='$CXXCPP $CPPFLAGS'
15169 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15170 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15171 cross_compiling=$ac_cv_prog_cxx_cross
15172
15173 cat > conftest.$ac_ext <<EOF
15174 #line 15175 "configure"
15175 #include "confdefs.h"
15176 #include <math.h>
15177 int main() {
15178 _fmodf(0, 0);
15179 ; return 0; }
15180 EOF
15181 if { (eval echo configure:15182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15182 rm -rf conftest*
15183 glibcpp_cv_func__fmodf_use=yes
15184 else
15185 echo "configure: failed program was:" >&5
15186 cat conftest.$ac_ext >&5
15187 rm -rf conftest*
15188 glibcpp_cv_func__fmodf_use=no
15189 fi
15190 rm -f conftest*
15191 ac_ext=c
15192 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15193 ac_cpp='$CPP $CPPFLAGS'
15194 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15195 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15196 cross_compiling=$ac_cv_prog_cc_cross
15197
15198
15199 fi
15200
15201 fi
15202 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
15203
15204 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
15205 for ac_func in _fmodf
15206 do
15207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15208 echo "configure:15209: checking for $ac_func" >&5
15209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15210 echo $ac_n "(cached) $ac_c" 1>&6
15211 else
15212 cat > conftest.$ac_ext <<EOF
15213 #line 15214 "configure"
15214 #include "confdefs.h"
15215 /* System header to define __stub macros and hopefully few prototypes,
15216 which can conflict with char $ac_func(); below. */
15217 #include <assert.h>
15218 /* Override any gcc2 internal prototype to avoid an error. */
15219 /* We use char because int might match the return type of a gcc2
15220 builtin and then its argument prototype would still apply. */
15221 char $ac_func();
15222
15223 int main() {
15224
15225 /* The GNU C library defines this for functions which it implements
15226 to always fail with ENOSYS. Some functions are actually named
15227 something starting with __ and the normal name is an alias. */
15228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15229 choke me
15230 #else
15231 $ac_func();
15232 #endif
15233
15234 ; return 0; }
15235 EOF
15236 if { (eval echo configure:15237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15237 rm -rf conftest*
15238 eval "ac_cv_func_$ac_func=yes"
15239 else
15240 echo "configure: failed program was:" >&5
15241 cat conftest.$ac_ext >&5
15242 rm -rf conftest*
15243 eval "ac_cv_func_$ac_func=no"
15244 fi
15245 rm -f conftest*
15246 fi
15247
15248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15249 echo "$ac_t""yes" 1>&6
15250 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15251 cat >> confdefs.h <<EOF
15252 #define $ac_tr_func 1
15253 EOF
15254
15255 else
15256 echo "$ac_t""no" 1>&6
15257 fi
15258 done
15259
15260 fi
15261 fi
15262
15263
15264
15265 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
15266 echo "configure:15267: checking for frexpf declaration" >&5
15267 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
15268 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
15269 echo $ac_n "(cached) $ac_c" 1>&6
15270 else
15271
15272
15273 ac_ext=C
15274 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15275 ac_cpp='$CXXCPP $CPPFLAGS'
15276 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15277 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15278 cross_compiling=$ac_cv_prog_cxx_cross
15279
15280 cat > conftest.$ac_ext <<EOF
15281 #line 15282 "configure"
15282 #include "confdefs.h"
15283 #include <math.h>
15284 int main() {
15285 frexpf(0, 0);
15286 ; return 0; }
15287 EOF
15288 if { (eval echo configure:15289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15289 rm -rf conftest*
15290 glibcpp_cv_func_frexpf_use=yes
15291 else
15292 echo "configure: failed program was:" >&5
15293 cat conftest.$ac_ext >&5
15294 rm -rf conftest*
15295 glibcpp_cv_func_frexpf_use=no
15296 fi
15297 rm -f conftest*
15298 ac_ext=c
15299 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15300 ac_cpp='$CPP $CPPFLAGS'
15301 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15302 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15303 cross_compiling=$ac_cv_prog_cc_cross
15304
15305
15306 fi
15307
15308 fi
15309 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
15310
15311 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
15312 for ac_func in frexpf
15313 do
15314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15315 echo "configure:15316: checking for $ac_func" >&5
15316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15317 echo $ac_n "(cached) $ac_c" 1>&6
15318 else
15319 cat > conftest.$ac_ext <<EOF
15320 #line 15321 "configure"
15321 #include "confdefs.h"
15322 /* System header to define __stub macros and hopefully few prototypes,
15323 which can conflict with char $ac_func(); below. */
15324 #include <assert.h>
15325 /* Override any gcc2 internal prototype to avoid an error. */
15326 /* We use char because int might match the return type of a gcc2
15327 builtin and then its argument prototype would still apply. */
15328 char $ac_func();
15329
15330 int main() {
15331
15332 /* The GNU C library defines this for functions which it implements
15333 to always fail with ENOSYS. Some functions are actually named
15334 something starting with __ and the normal name is an alias. */
15335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15336 choke me
15337 #else
15338 $ac_func();
15339 #endif
15340
15341 ; return 0; }
15342 EOF
15343 if { (eval echo configure:15344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15344 rm -rf conftest*
15345 eval "ac_cv_func_$ac_func=yes"
15346 else
15347 echo "configure: failed program was:" >&5
15348 cat conftest.$ac_ext >&5
15349 rm -rf conftest*
15350 eval "ac_cv_func_$ac_func=no"
15351 fi
15352 rm -f conftest*
15353 fi
15354
15355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15356 echo "$ac_t""yes" 1>&6
15357 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15358 cat >> confdefs.h <<EOF
15359 #define $ac_tr_func 1
15360 EOF
15361
15362 else
15363 echo "$ac_t""no" 1>&6
15364 fi
15365 done
15366
15367 else
15368
15369 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
15370 echo "configure:15371: checking for _frexpf declaration" >&5
15371 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
15372 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
15373 echo $ac_n "(cached) $ac_c" 1>&6
15374 else
15375
15376
15377 ac_ext=C
15378 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15379 ac_cpp='$CXXCPP $CPPFLAGS'
15380 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15381 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15382 cross_compiling=$ac_cv_prog_cxx_cross
15383
15384 cat > conftest.$ac_ext <<EOF
15385 #line 15386 "configure"
15386 #include "confdefs.h"
15387 #include <math.h>
15388 int main() {
15389 _frexpf(0, 0);
15390 ; return 0; }
15391 EOF
15392 if { (eval echo configure:15393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15393 rm -rf conftest*
15394 glibcpp_cv_func__frexpf_use=yes
15395 else
15396 echo "configure: failed program was:" >&5
15397 cat conftest.$ac_ext >&5
15398 rm -rf conftest*
15399 glibcpp_cv_func__frexpf_use=no
15400 fi
15401 rm -f conftest*
15402 ac_ext=c
15403 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15404 ac_cpp='$CPP $CPPFLAGS'
15405 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15406 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15407 cross_compiling=$ac_cv_prog_cc_cross
15408
15409
15410 fi
15411
15412 fi
15413 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
15414
15415 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
15416 for ac_func in _frexpf
15417 do
15418 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15419 echo "configure:15420: checking for $ac_func" >&5
15420 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15421 echo $ac_n "(cached) $ac_c" 1>&6
15422 else
15423 cat > conftest.$ac_ext <<EOF
15424 #line 15425 "configure"
15425 #include "confdefs.h"
15426 /* System header to define __stub macros and hopefully few prototypes,
15427 which can conflict with char $ac_func(); below. */
15428 #include <assert.h>
15429 /* Override any gcc2 internal prototype to avoid an error. */
15430 /* We use char because int might match the return type of a gcc2
15431 builtin and then its argument prototype would still apply. */
15432 char $ac_func();
15433
15434 int main() {
15435
15436 /* The GNU C library defines this for functions which it implements
15437 to always fail with ENOSYS. Some functions are actually named
15438 something starting with __ and the normal name is an alias. */
15439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15440 choke me
15441 #else
15442 $ac_func();
15443 #endif
15444
15445 ; return 0; }
15446 EOF
15447 if { (eval echo configure:15448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15448 rm -rf conftest*
15449 eval "ac_cv_func_$ac_func=yes"
15450 else
15451 echo "configure: failed program was:" >&5
15452 cat conftest.$ac_ext >&5
15453 rm -rf conftest*
15454 eval "ac_cv_func_$ac_func=no"
15455 fi
15456 rm -f conftest*
15457 fi
15458
15459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15460 echo "$ac_t""yes" 1>&6
15461 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15462 cat >> confdefs.h <<EOF
15463 #define $ac_tr_func 1
15464 EOF
15465
15466 else
15467 echo "$ac_t""no" 1>&6
15468 fi
15469 done
15470
15471 fi
15472 fi
15473
15474
15475
15476 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
15477 echo "configure:15478: checking for hypotf declaration" >&5
15478 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
15479 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
15480 echo $ac_n "(cached) $ac_c" 1>&6
15481 else
15482
15483
15484 ac_ext=C
15485 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15486 ac_cpp='$CXXCPP $CPPFLAGS'
15487 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15488 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15489 cross_compiling=$ac_cv_prog_cxx_cross
15490
15491 cat > conftest.$ac_ext <<EOF
15492 #line 15493 "configure"
15493 #include "confdefs.h"
15494 #include <math.h>
15495 int main() {
15496 hypotf(0, 0);
15497 ; return 0; }
15498 EOF
15499 if { (eval echo configure:15500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15500 rm -rf conftest*
15501 glibcpp_cv_func_hypotf_use=yes
15502 else
15503 echo "configure: failed program was:" >&5
15504 cat conftest.$ac_ext >&5
15505 rm -rf conftest*
15506 glibcpp_cv_func_hypotf_use=no
15507 fi
15508 rm -f conftest*
15509 ac_ext=c
15510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15511 ac_cpp='$CPP $CPPFLAGS'
15512 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15513 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15514 cross_compiling=$ac_cv_prog_cc_cross
15515
15516
15517 fi
15518
15519 fi
15520 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
15521
15522 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
15523 for ac_func in hypotf
15524 do
15525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15526 echo "configure:15527: checking for $ac_func" >&5
15527 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15528 echo $ac_n "(cached) $ac_c" 1>&6
15529 else
15530 cat > conftest.$ac_ext <<EOF
15531 #line 15532 "configure"
15532 #include "confdefs.h"
15533 /* System header to define __stub macros and hopefully few prototypes,
15534 which can conflict with char $ac_func(); below. */
15535 #include <assert.h>
15536 /* Override any gcc2 internal prototype to avoid an error. */
15537 /* We use char because int might match the return type of a gcc2
15538 builtin and then its argument prototype would still apply. */
15539 char $ac_func();
15540
15541 int main() {
15542
15543 /* The GNU C library defines this for functions which it implements
15544 to always fail with ENOSYS. Some functions are actually named
15545 something starting with __ and the normal name is an alias. */
15546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15547 choke me
15548 #else
15549 $ac_func();
15550 #endif
15551
15552 ; return 0; }
15553 EOF
15554 if { (eval echo configure:15555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15555 rm -rf conftest*
15556 eval "ac_cv_func_$ac_func=yes"
15557 else
15558 echo "configure: failed program was:" >&5
15559 cat conftest.$ac_ext >&5
15560 rm -rf conftest*
15561 eval "ac_cv_func_$ac_func=no"
15562 fi
15563 rm -f conftest*
15564 fi
15565
15566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15567 echo "$ac_t""yes" 1>&6
15568 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15569 cat >> confdefs.h <<EOF
15570 #define $ac_tr_func 1
15571 EOF
15572
15573 else
15574 echo "$ac_t""no" 1>&6
15575 fi
15576 done
15577
15578 else
15579
15580 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
15581 echo "configure:15582: checking for _hypotf declaration" >&5
15582 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
15583 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
15584 echo $ac_n "(cached) $ac_c" 1>&6
15585 else
15586
15587
15588 ac_ext=C
15589 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15590 ac_cpp='$CXXCPP $CPPFLAGS'
15591 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15592 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15593 cross_compiling=$ac_cv_prog_cxx_cross
15594
15595 cat > conftest.$ac_ext <<EOF
15596 #line 15597 "configure"
15597 #include "confdefs.h"
15598 #include <math.h>
15599 int main() {
15600 _hypotf(0, 0);
15601 ; return 0; }
15602 EOF
15603 if { (eval echo configure:15604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15604 rm -rf conftest*
15605 glibcpp_cv_func__hypotf_use=yes
15606 else
15607 echo "configure: failed program was:" >&5
15608 cat conftest.$ac_ext >&5
15609 rm -rf conftest*
15610 glibcpp_cv_func__hypotf_use=no
15611 fi
15612 rm -f conftest*
15613 ac_ext=c
15614 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15615 ac_cpp='$CPP $CPPFLAGS'
15616 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15617 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15618 cross_compiling=$ac_cv_prog_cc_cross
15619
15620
15621 fi
15622
15623 fi
15624 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
15625
15626 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
15627 for ac_func in _hypotf
15628 do
15629 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15630 echo "configure:15631: checking for $ac_func" >&5
15631 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15632 echo $ac_n "(cached) $ac_c" 1>&6
15633 else
15634 cat > conftest.$ac_ext <<EOF
15635 #line 15636 "configure"
15636 #include "confdefs.h"
15637 /* System header to define __stub macros and hopefully few prototypes,
15638 which can conflict with char $ac_func(); below. */
15639 #include <assert.h>
15640 /* Override any gcc2 internal prototype to avoid an error. */
15641 /* We use char because int might match the return type of a gcc2
15642 builtin and then its argument prototype would still apply. */
15643 char $ac_func();
15644
15645 int main() {
15646
15647 /* The GNU C library defines this for functions which it implements
15648 to always fail with ENOSYS. Some functions are actually named
15649 something starting with __ and the normal name is an alias. */
15650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15651 choke me
15652 #else
15653 $ac_func();
15654 #endif
15655
15656 ; return 0; }
15657 EOF
15658 if { (eval echo configure:15659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15659 rm -rf conftest*
15660 eval "ac_cv_func_$ac_func=yes"
15661 else
15662 echo "configure: failed program was:" >&5
15663 cat conftest.$ac_ext >&5
15664 rm -rf conftest*
15665 eval "ac_cv_func_$ac_func=no"
15666 fi
15667 rm -f conftest*
15668 fi
15669
15670 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15671 echo "$ac_t""yes" 1>&6
15672 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15673 cat >> confdefs.h <<EOF
15674 #define $ac_tr_func 1
15675 EOF
15676
15677 else
15678 echo "$ac_t""no" 1>&6
15679 fi
15680 done
15681
15682 fi
15683 fi
15684
15685
15686
15687 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
15688 echo "configure:15689: checking for ldexpf declaration" >&5
15689 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
15690 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
15691 echo $ac_n "(cached) $ac_c" 1>&6
15692 else
15693
15694
15695 ac_ext=C
15696 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15697 ac_cpp='$CXXCPP $CPPFLAGS'
15698 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15699 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15700 cross_compiling=$ac_cv_prog_cxx_cross
15701
15702 cat > conftest.$ac_ext <<EOF
15703 #line 15704 "configure"
15704 #include "confdefs.h"
15705 #include <math.h>
15706 int main() {
15707 ldexpf(0, 0);
15708 ; return 0; }
15709 EOF
15710 if { (eval echo configure:15711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15711 rm -rf conftest*
15712 glibcpp_cv_func_ldexpf_use=yes
15713 else
15714 echo "configure: failed program was:" >&5
15715 cat conftest.$ac_ext >&5
15716 rm -rf conftest*
15717 glibcpp_cv_func_ldexpf_use=no
15718 fi
15719 rm -f conftest*
15720 ac_ext=c
15721 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15722 ac_cpp='$CPP $CPPFLAGS'
15723 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15724 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15725 cross_compiling=$ac_cv_prog_cc_cross
15726
15727
15728 fi
15729
15730 fi
15731 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
15732
15733 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
15734 for ac_func in ldexpf
15735 do
15736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15737 echo "configure:15738: checking for $ac_func" >&5
15738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15739 echo $ac_n "(cached) $ac_c" 1>&6
15740 else
15741 cat > conftest.$ac_ext <<EOF
15742 #line 15743 "configure"
15743 #include "confdefs.h"
15744 /* System header to define __stub macros and hopefully few prototypes,
15745 which can conflict with char $ac_func(); below. */
15746 #include <assert.h>
15747 /* Override any gcc2 internal prototype to avoid an error. */
15748 /* We use char because int might match the return type of a gcc2
15749 builtin and then its argument prototype would still apply. */
15750 char $ac_func();
15751
15752 int main() {
15753
15754 /* The GNU C library defines this for functions which it implements
15755 to always fail with ENOSYS. Some functions are actually named
15756 something starting with __ and the normal name is an alias. */
15757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15758 choke me
15759 #else
15760 $ac_func();
15761 #endif
15762
15763 ; return 0; }
15764 EOF
15765 if { (eval echo configure:15766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15766 rm -rf conftest*
15767 eval "ac_cv_func_$ac_func=yes"
15768 else
15769 echo "configure: failed program was:" >&5
15770 cat conftest.$ac_ext >&5
15771 rm -rf conftest*
15772 eval "ac_cv_func_$ac_func=no"
15773 fi
15774 rm -f conftest*
15775 fi
15776
15777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15778 echo "$ac_t""yes" 1>&6
15779 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15780 cat >> confdefs.h <<EOF
15781 #define $ac_tr_func 1
15782 EOF
15783
15784 else
15785 echo "$ac_t""no" 1>&6
15786 fi
15787 done
15788
15789 else
15790
15791 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
15792 echo "configure:15793: checking for _ldexpf declaration" >&5
15793 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
15794 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
15795 echo $ac_n "(cached) $ac_c" 1>&6
15796 else
15797
15798
15799 ac_ext=C
15800 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15801 ac_cpp='$CXXCPP $CPPFLAGS'
15802 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15803 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15804 cross_compiling=$ac_cv_prog_cxx_cross
15805
15806 cat > conftest.$ac_ext <<EOF
15807 #line 15808 "configure"
15808 #include "confdefs.h"
15809 #include <math.h>
15810 int main() {
15811 _ldexpf(0, 0);
15812 ; return 0; }
15813 EOF
15814 if { (eval echo configure:15815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15815 rm -rf conftest*
15816 glibcpp_cv_func__ldexpf_use=yes
15817 else
15818 echo "configure: failed program was:" >&5
15819 cat conftest.$ac_ext >&5
15820 rm -rf conftest*
15821 glibcpp_cv_func__ldexpf_use=no
15822 fi
15823 rm -f conftest*
15824 ac_ext=c
15825 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15826 ac_cpp='$CPP $CPPFLAGS'
15827 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15828 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15829 cross_compiling=$ac_cv_prog_cc_cross
15830
15831
15832 fi
15833
15834 fi
15835 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
15836
15837 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
15838 for ac_func in _ldexpf
15839 do
15840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15841 echo "configure:15842: checking for $ac_func" >&5
15842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15843 echo $ac_n "(cached) $ac_c" 1>&6
15844 else
15845 cat > conftest.$ac_ext <<EOF
15846 #line 15847 "configure"
15847 #include "confdefs.h"
15848 /* System header to define __stub macros and hopefully few prototypes,
15849 which can conflict with char $ac_func(); below. */
15850 #include <assert.h>
15851 /* Override any gcc2 internal prototype to avoid an error. */
15852 /* We use char because int might match the return type of a gcc2
15853 builtin and then its argument prototype would still apply. */
15854 char $ac_func();
15855
15856 int main() {
15857
15858 /* The GNU C library defines this for functions which it implements
15859 to always fail with ENOSYS. Some functions are actually named
15860 something starting with __ and the normal name is an alias. */
15861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15862 choke me
15863 #else
15864 $ac_func();
15865 #endif
15866
15867 ; return 0; }
15868 EOF
15869 if { (eval echo configure:15870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15870 rm -rf conftest*
15871 eval "ac_cv_func_$ac_func=yes"
15872 else
15873 echo "configure: failed program was:" >&5
15874 cat conftest.$ac_ext >&5
15875 rm -rf conftest*
15876 eval "ac_cv_func_$ac_func=no"
15877 fi
15878 rm -f conftest*
15879 fi
15880
15881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15882 echo "$ac_t""yes" 1>&6
15883 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15884 cat >> confdefs.h <<EOF
15885 #define $ac_tr_func 1
15886 EOF
15887
15888 else
15889 echo "$ac_t""no" 1>&6
15890 fi
15891 done
15892
15893 fi
15894 fi
15895
15896
15897
15898 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
15899 echo "configure:15900: checking for logf declaration" >&5
15900 if test x${glibcpp_cv_func_logf_use+set} != xset; then
15901 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
15902 echo $ac_n "(cached) $ac_c" 1>&6
15903 else
15904
15905
15906 ac_ext=C
15907 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15908 ac_cpp='$CXXCPP $CPPFLAGS'
15909 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15910 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15911 cross_compiling=$ac_cv_prog_cxx_cross
15912
15913 cat > conftest.$ac_ext <<EOF
15914 #line 15915 "configure"
15915 #include "confdefs.h"
15916 #include <math.h>
15917 #ifdef HAVE_IEEEFP_H
15918 #include <ieeefp.h>
15919 #endif
15920
15921 int main() {
15922 logf(0);
15923 ; return 0; }
15924 EOF
15925 if { (eval echo configure:15926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15926 rm -rf conftest*
15927 glibcpp_cv_func_logf_use=yes
15928 else
15929 echo "configure: failed program was:" >&5
15930 cat conftest.$ac_ext >&5
15931 rm -rf conftest*
15932 glibcpp_cv_func_logf_use=no
15933 fi
15934 rm -f conftest*
15935 ac_ext=c
15936 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15937 ac_cpp='$CPP $CPPFLAGS'
15938 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15939 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15940 cross_compiling=$ac_cv_prog_cc_cross
15941
15942
15943 fi
15944
15945 fi
15946 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
15947
15948 if test x$glibcpp_cv_func_logf_use = x"yes"; then
15949 for ac_func in logf
15950 do
15951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15952 echo "configure:15953: checking for $ac_func" >&5
15953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15954 echo $ac_n "(cached) $ac_c" 1>&6
15955 else
15956 cat > conftest.$ac_ext <<EOF
15957 #line 15958 "configure"
15958 #include "confdefs.h"
15959 /* System header to define __stub macros and hopefully few prototypes,
15960 which can conflict with char $ac_func(); below. */
15961 #include <assert.h>
15962 /* Override any gcc2 internal prototype to avoid an error. */
15963 /* We use char because int might match the return type of a gcc2
15964 builtin and then its argument prototype would still apply. */
15965 char $ac_func();
15966
15967 int main() {
15968
15969 /* The GNU C library defines this for functions which it implements
15970 to always fail with ENOSYS. Some functions are actually named
15971 something starting with __ and the normal name is an alias. */
15972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15973 choke me
15974 #else
15975 $ac_func();
15976 #endif
15977
15978 ; return 0; }
15979 EOF
15980 if { (eval echo configure:15981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15981 rm -rf conftest*
15982 eval "ac_cv_func_$ac_func=yes"
15983 else
15984 echo "configure: failed program was:" >&5
15985 cat conftest.$ac_ext >&5
15986 rm -rf conftest*
15987 eval "ac_cv_func_$ac_func=no"
15988 fi
15989 rm -f conftest*
15990 fi
15991
15992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15993 echo "$ac_t""yes" 1>&6
15994 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15995 cat >> confdefs.h <<EOF
15996 #define $ac_tr_func 1
15997 EOF
15998
15999 else
16000 echo "$ac_t""no" 1>&6
16001 fi
16002 done
16003
16004 else
16005
16006 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
16007 echo "configure:16008: checking for _logf declaration" >&5
16008 if test x${glibcpp_cv_func__logf_use+set} != xset; then
16009 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
16010 echo $ac_n "(cached) $ac_c" 1>&6
16011 else
16012
16013
16014 ac_ext=C
16015 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16016 ac_cpp='$CXXCPP $CPPFLAGS'
16017 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16018 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16019 cross_compiling=$ac_cv_prog_cxx_cross
16020
16021 cat > conftest.$ac_ext <<EOF
16022 #line 16023 "configure"
16023 #include "confdefs.h"
16024 #include <math.h>
16025 #ifdef HAVE_IEEEFP_H
16026 #include <ieeefp.h>
16027 #endif
16028
16029 int main() {
16030 _logf(0);
16031 ; return 0; }
16032 EOF
16033 if { (eval echo configure:16034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16034 rm -rf conftest*
16035 glibcpp_cv_func__logf_use=yes
16036 else
16037 echo "configure: failed program was:" >&5
16038 cat conftest.$ac_ext >&5
16039 rm -rf conftest*
16040 glibcpp_cv_func__logf_use=no
16041 fi
16042 rm -f conftest*
16043 ac_ext=c
16044 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16045 ac_cpp='$CPP $CPPFLAGS'
16046 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16047 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16048 cross_compiling=$ac_cv_prog_cc_cross
16049
16050
16051 fi
16052
16053 fi
16054 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
16055
16056 if test x$glibcpp_cv_func__logf_use = x"yes"; then
16057 for ac_func in _logf
16058 do
16059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16060 echo "configure:16061: checking for $ac_func" >&5
16061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16062 echo $ac_n "(cached) $ac_c" 1>&6
16063 else
16064 cat > conftest.$ac_ext <<EOF
16065 #line 16066 "configure"
16066 #include "confdefs.h"
16067 /* System header to define __stub macros and hopefully few prototypes,
16068 which can conflict with char $ac_func(); below. */
16069 #include <assert.h>
16070 /* Override any gcc2 internal prototype to avoid an error. */
16071 /* We use char because int might match the return type of a gcc2
16072 builtin and then its argument prototype would still apply. */
16073 char $ac_func();
16074
16075 int main() {
16076
16077 /* The GNU C library defines this for functions which it implements
16078 to always fail with ENOSYS. Some functions are actually named
16079 something starting with __ and the normal name is an alias. */
16080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16081 choke me
16082 #else
16083 $ac_func();
16084 #endif
16085
16086 ; return 0; }
16087 EOF
16088 if { (eval echo configure:16089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16089 rm -rf conftest*
16090 eval "ac_cv_func_$ac_func=yes"
16091 else
16092 echo "configure: failed program was:" >&5
16093 cat conftest.$ac_ext >&5
16094 rm -rf conftest*
16095 eval "ac_cv_func_$ac_func=no"
16096 fi
16097 rm -f conftest*
16098 fi
16099
16100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16101 echo "$ac_t""yes" 1>&6
16102 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16103 cat >> confdefs.h <<EOF
16104 #define $ac_tr_func 1
16105 EOF
16106
16107 else
16108 echo "$ac_t""no" 1>&6
16109 fi
16110 done
16111
16112 fi
16113 fi
16114
16115
16116
16117 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
16118 echo "configure:16119: checking for log10f declaration" >&5
16119 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
16120 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
16121 echo $ac_n "(cached) $ac_c" 1>&6
16122 else
16123
16124
16125 ac_ext=C
16126 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16127 ac_cpp='$CXXCPP $CPPFLAGS'
16128 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16129 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16130 cross_compiling=$ac_cv_prog_cxx_cross
16131
16132 cat > conftest.$ac_ext <<EOF
16133 #line 16134 "configure"
16134 #include "confdefs.h"
16135 #include <math.h>
16136 #ifdef HAVE_IEEEFP_H
16137 #include <ieeefp.h>
16138 #endif
16139
16140 int main() {
16141 log10f(0);
16142 ; return 0; }
16143 EOF
16144 if { (eval echo configure:16145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16145 rm -rf conftest*
16146 glibcpp_cv_func_log10f_use=yes
16147 else
16148 echo "configure: failed program was:" >&5
16149 cat conftest.$ac_ext >&5
16150 rm -rf conftest*
16151 glibcpp_cv_func_log10f_use=no
16152 fi
16153 rm -f conftest*
16154 ac_ext=c
16155 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16156 ac_cpp='$CPP $CPPFLAGS'
16157 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16158 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16159 cross_compiling=$ac_cv_prog_cc_cross
16160
16161
16162 fi
16163
16164 fi
16165 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
16166
16167 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
16168 for ac_func in log10f
16169 do
16170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16171 echo "configure:16172: checking for $ac_func" >&5
16172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16173 echo $ac_n "(cached) $ac_c" 1>&6
16174 else
16175 cat > conftest.$ac_ext <<EOF
16176 #line 16177 "configure"
16177 #include "confdefs.h"
16178 /* System header to define __stub macros and hopefully few prototypes,
16179 which can conflict with char $ac_func(); below. */
16180 #include <assert.h>
16181 /* Override any gcc2 internal prototype to avoid an error. */
16182 /* We use char because int might match the return type of a gcc2
16183 builtin and then its argument prototype would still apply. */
16184 char $ac_func();
16185
16186 int main() {
16187
16188 /* The GNU C library defines this for functions which it implements
16189 to always fail with ENOSYS. Some functions are actually named
16190 something starting with __ and the normal name is an alias. */
16191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16192 choke me
16193 #else
16194 $ac_func();
16195 #endif
16196
16197 ; return 0; }
16198 EOF
16199 if { (eval echo configure:16200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16200 rm -rf conftest*
16201 eval "ac_cv_func_$ac_func=yes"
16202 else
16203 echo "configure: failed program was:" >&5
16204 cat conftest.$ac_ext >&5
16205 rm -rf conftest*
16206 eval "ac_cv_func_$ac_func=no"
16207 fi
16208 rm -f conftest*
16209 fi
16210
16211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16212 echo "$ac_t""yes" 1>&6
16213 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16214 cat >> confdefs.h <<EOF
16215 #define $ac_tr_func 1
16216 EOF
16217
16218 else
16219 echo "$ac_t""no" 1>&6
16220 fi
16221 done
16222
16223 else
16224
16225 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
16226 echo "configure:16227: checking for _log10f declaration" >&5
16227 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
16228 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
16229 echo $ac_n "(cached) $ac_c" 1>&6
16230 else
16231
16232
16233 ac_ext=C
16234 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16235 ac_cpp='$CXXCPP $CPPFLAGS'
16236 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16237 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16238 cross_compiling=$ac_cv_prog_cxx_cross
16239
16240 cat > conftest.$ac_ext <<EOF
16241 #line 16242 "configure"
16242 #include "confdefs.h"
16243 #include <math.h>
16244 #ifdef HAVE_IEEEFP_H
16245 #include <ieeefp.h>
16246 #endif
16247
16248 int main() {
16249 _log10f(0);
16250 ; return 0; }
16251 EOF
16252 if { (eval echo configure:16253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16253 rm -rf conftest*
16254 glibcpp_cv_func__log10f_use=yes
16255 else
16256 echo "configure: failed program was:" >&5
16257 cat conftest.$ac_ext >&5
16258 rm -rf conftest*
16259 glibcpp_cv_func__log10f_use=no
16260 fi
16261 rm -f conftest*
16262 ac_ext=c
16263 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16264 ac_cpp='$CPP $CPPFLAGS'
16265 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16266 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16267 cross_compiling=$ac_cv_prog_cc_cross
16268
16269
16270 fi
16271
16272 fi
16273 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
16274
16275 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
16276 for ac_func in _log10f
16277 do
16278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16279 echo "configure:16280: checking for $ac_func" >&5
16280 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16281 echo $ac_n "(cached) $ac_c" 1>&6
16282 else
16283 cat > conftest.$ac_ext <<EOF
16284 #line 16285 "configure"
16285 #include "confdefs.h"
16286 /* System header to define __stub macros and hopefully few prototypes,
16287 which can conflict with char $ac_func(); below. */
16288 #include <assert.h>
16289 /* Override any gcc2 internal prototype to avoid an error. */
16290 /* We use char because int might match the return type of a gcc2
16291 builtin and then its argument prototype would still apply. */
16292 char $ac_func();
16293
16294 int main() {
16295
16296 /* The GNU C library defines this for functions which it implements
16297 to always fail with ENOSYS. Some functions are actually named
16298 something starting with __ and the normal name is an alias. */
16299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16300 choke me
16301 #else
16302 $ac_func();
16303 #endif
16304
16305 ; return 0; }
16306 EOF
16307 if { (eval echo configure:16308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16308 rm -rf conftest*
16309 eval "ac_cv_func_$ac_func=yes"
16310 else
16311 echo "configure: failed program was:" >&5
16312 cat conftest.$ac_ext >&5
16313 rm -rf conftest*
16314 eval "ac_cv_func_$ac_func=no"
16315 fi
16316 rm -f conftest*
16317 fi
16318
16319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16320 echo "$ac_t""yes" 1>&6
16321 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16322 cat >> confdefs.h <<EOF
16323 #define $ac_tr_func 1
16324 EOF
16325
16326 else
16327 echo "$ac_t""no" 1>&6
16328 fi
16329 done
16330
16331 fi
16332 fi
16333
16334
16335
16336 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
16337 echo "configure:16338: checking for modff declaration" >&5
16338 if test x${glibcpp_cv_func_modff_use+set} != xset; then
16339 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
16340 echo $ac_n "(cached) $ac_c" 1>&6
16341 else
16342
16343
16344 ac_ext=C
16345 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16346 ac_cpp='$CXXCPP $CPPFLAGS'
16347 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16348 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16349 cross_compiling=$ac_cv_prog_cxx_cross
16350
16351 cat > conftest.$ac_ext <<EOF
16352 #line 16353 "configure"
16353 #include "confdefs.h"
16354 #include <math.h>
16355 int main() {
16356 modff(0, 0);
16357 ; return 0; }
16358 EOF
16359 if { (eval echo configure:16360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16360 rm -rf conftest*
16361 glibcpp_cv_func_modff_use=yes
16362 else
16363 echo "configure: failed program was:" >&5
16364 cat conftest.$ac_ext >&5
16365 rm -rf conftest*
16366 glibcpp_cv_func_modff_use=no
16367 fi
16368 rm -f conftest*
16369 ac_ext=c
16370 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16371 ac_cpp='$CPP $CPPFLAGS'
16372 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16373 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16374 cross_compiling=$ac_cv_prog_cc_cross
16375
16376
16377 fi
16378
16379 fi
16380 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
16381
16382 if test x$glibcpp_cv_func_modff_use = x"yes"; then
16383 for ac_func in modff
16384 do
16385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16386 echo "configure:16387: checking for $ac_func" >&5
16387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16388 echo $ac_n "(cached) $ac_c" 1>&6
16389 else
16390 cat > conftest.$ac_ext <<EOF
16391 #line 16392 "configure"
16392 #include "confdefs.h"
16393 /* System header to define __stub macros and hopefully few prototypes,
16394 which can conflict with char $ac_func(); below. */
16395 #include <assert.h>
16396 /* Override any gcc2 internal prototype to avoid an error. */
16397 /* We use char because int might match the return type of a gcc2
16398 builtin and then its argument prototype would still apply. */
16399 char $ac_func();
16400
16401 int main() {
16402
16403 /* The GNU C library defines this for functions which it implements
16404 to always fail with ENOSYS. Some functions are actually named
16405 something starting with __ and the normal name is an alias. */
16406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16407 choke me
16408 #else
16409 $ac_func();
16410 #endif
16411
16412 ; return 0; }
16413 EOF
16414 if { (eval echo configure:16415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16415 rm -rf conftest*
16416 eval "ac_cv_func_$ac_func=yes"
16417 else
16418 echo "configure: failed program was:" >&5
16419 cat conftest.$ac_ext >&5
16420 rm -rf conftest*
16421 eval "ac_cv_func_$ac_func=no"
16422 fi
16423 rm -f conftest*
16424 fi
16425
16426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16427 echo "$ac_t""yes" 1>&6
16428 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16429 cat >> confdefs.h <<EOF
16430 #define $ac_tr_func 1
16431 EOF
16432
16433 else
16434 echo "$ac_t""no" 1>&6
16435 fi
16436 done
16437
16438 else
16439
16440 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
16441 echo "configure:16442: checking for _modff declaration" >&5
16442 if test x${glibcpp_cv_func__modff_use+set} != xset; then
16443 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
16444 echo $ac_n "(cached) $ac_c" 1>&6
16445 else
16446
16447
16448 ac_ext=C
16449 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16450 ac_cpp='$CXXCPP $CPPFLAGS'
16451 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16452 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16453 cross_compiling=$ac_cv_prog_cxx_cross
16454
16455 cat > conftest.$ac_ext <<EOF
16456 #line 16457 "configure"
16457 #include "confdefs.h"
16458 #include <math.h>
16459 int main() {
16460 _modff(0, 0);
16461 ; return 0; }
16462 EOF
16463 if { (eval echo configure:16464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16464 rm -rf conftest*
16465 glibcpp_cv_func__modff_use=yes
16466 else
16467 echo "configure: failed program was:" >&5
16468 cat conftest.$ac_ext >&5
16469 rm -rf conftest*
16470 glibcpp_cv_func__modff_use=no
16471 fi
16472 rm -f conftest*
16473 ac_ext=c
16474 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16475 ac_cpp='$CPP $CPPFLAGS'
16476 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16477 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16478 cross_compiling=$ac_cv_prog_cc_cross
16479
16480
16481 fi
16482
16483 fi
16484 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
16485
16486 if test x$glibcpp_cv_func__modff_use = x"yes"; then
16487 for ac_func in _modff
16488 do
16489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16490 echo "configure:16491: checking for $ac_func" >&5
16491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16492 echo $ac_n "(cached) $ac_c" 1>&6
16493 else
16494 cat > conftest.$ac_ext <<EOF
16495 #line 16496 "configure"
16496 #include "confdefs.h"
16497 /* System header to define __stub macros and hopefully few prototypes,
16498 which can conflict with char $ac_func(); below. */
16499 #include <assert.h>
16500 /* Override any gcc2 internal prototype to avoid an error. */
16501 /* We use char because int might match the return type of a gcc2
16502 builtin and then its argument prototype would still apply. */
16503 char $ac_func();
16504
16505 int main() {
16506
16507 /* The GNU C library defines this for functions which it implements
16508 to always fail with ENOSYS. Some functions are actually named
16509 something starting with __ and the normal name is an alias. */
16510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16511 choke me
16512 #else
16513 $ac_func();
16514 #endif
16515
16516 ; return 0; }
16517 EOF
16518 if { (eval echo configure:16519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16519 rm -rf conftest*
16520 eval "ac_cv_func_$ac_func=yes"
16521 else
16522 echo "configure: failed program was:" >&5
16523 cat conftest.$ac_ext >&5
16524 rm -rf conftest*
16525 eval "ac_cv_func_$ac_func=no"
16526 fi
16527 rm -f conftest*
16528 fi
16529
16530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16531 echo "$ac_t""yes" 1>&6
16532 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16533 cat >> confdefs.h <<EOF
16534 #define $ac_tr_func 1
16535 EOF
16536
16537 else
16538 echo "$ac_t""no" 1>&6
16539 fi
16540 done
16541
16542 fi
16543 fi
16544
16545
16546
16547 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
16548 echo "configure:16549: checking for powf declaration" >&5
16549 if test x${glibcpp_cv_func_powf_use+set} != xset; then
16550 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
16551 echo $ac_n "(cached) $ac_c" 1>&6
16552 else
16553
16554
16555 ac_ext=C
16556 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16557 ac_cpp='$CXXCPP $CPPFLAGS'
16558 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16559 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16560 cross_compiling=$ac_cv_prog_cxx_cross
16561
16562 cat > conftest.$ac_ext <<EOF
16563 #line 16564 "configure"
16564 #include "confdefs.h"
16565 #include <math.h>
16566 int main() {
16567 powf(0, 0);
16568 ; return 0; }
16569 EOF
16570 if { (eval echo configure:16571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16571 rm -rf conftest*
16572 glibcpp_cv_func_powf_use=yes
16573 else
16574 echo "configure: failed program was:" >&5
16575 cat conftest.$ac_ext >&5
16576 rm -rf conftest*
16577 glibcpp_cv_func_powf_use=no
16578 fi
16579 rm -f conftest*
16580 ac_ext=c
16581 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16582 ac_cpp='$CPP $CPPFLAGS'
16583 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16584 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16585 cross_compiling=$ac_cv_prog_cc_cross
16586
16587
16588 fi
16589
16590 fi
16591 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
16592
16593 if test x$glibcpp_cv_func_powf_use = x"yes"; then
16594 for ac_func in powf
16595 do
16596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16597 echo "configure:16598: checking for $ac_func" >&5
16598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16599 echo $ac_n "(cached) $ac_c" 1>&6
16600 else
16601 cat > conftest.$ac_ext <<EOF
16602 #line 16603 "configure"
16603 #include "confdefs.h"
16604 /* System header to define __stub macros and hopefully few prototypes,
16605 which can conflict with char $ac_func(); below. */
16606 #include <assert.h>
16607 /* Override any gcc2 internal prototype to avoid an error. */
16608 /* We use char because int might match the return type of a gcc2
16609 builtin and then its argument prototype would still apply. */
16610 char $ac_func();
16611
16612 int main() {
16613
16614 /* The GNU C library defines this for functions which it implements
16615 to always fail with ENOSYS. Some functions are actually named
16616 something starting with __ and the normal name is an alias. */
16617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16618 choke me
16619 #else
16620 $ac_func();
16621 #endif
16622
16623 ; return 0; }
16624 EOF
16625 if { (eval echo configure:16626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16626 rm -rf conftest*
16627 eval "ac_cv_func_$ac_func=yes"
16628 else
16629 echo "configure: failed program was:" >&5
16630 cat conftest.$ac_ext >&5
16631 rm -rf conftest*
16632 eval "ac_cv_func_$ac_func=no"
16633 fi
16634 rm -f conftest*
16635 fi
16636
16637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16638 echo "$ac_t""yes" 1>&6
16639 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16640 cat >> confdefs.h <<EOF
16641 #define $ac_tr_func 1
16642 EOF
16643
16644 else
16645 echo "$ac_t""no" 1>&6
16646 fi
16647 done
16648
16649 else
16650
16651 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
16652 echo "configure:16653: checking for _powf declaration" >&5
16653 if test x${glibcpp_cv_func__powf_use+set} != xset; then
16654 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
16655 echo $ac_n "(cached) $ac_c" 1>&6
16656 else
16657
16658
16659 ac_ext=C
16660 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16661 ac_cpp='$CXXCPP $CPPFLAGS'
16662 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16663 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16664 cross_compiling=$ac_cv_prog_cxx_cross
16665
16666 cat > conftest.$ac_ext <<EOF
16667 #line 16668 "configure"
16668 #include "confdefs.h"
16669 #include <math.h>
16670 int main() {
16671 _powf(0, 0);
16672 ; return 0; }
16673 EOF
16674 if { (eval echo configure:16675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16675 rm -rf conftest*
16676 glibcpp_cv_func__powf_use=yes
16677 else
16678 echo "configure: failed program was:" >&5
16679 cat conftest.$ac_ext >&5
16680 rm -rf conftest*
16681 glibcpp_cv_func__powf_use=no
16682 fi
16683 rm -f conftest*
16684 ac_ext=c
16685 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16686 ac_cpp='$CPP $CPPFLAGS'
16687 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16688 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16689 cross_compiling=$ac_cv_prog_cc_cross
16690
16691
16692 fi
16693
16694 fi
16695 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
16696
16697 if test x$glibcpp_cv_func__powf_use = x"yes"; then
16698 for ac_func in _powf
16699 do
16700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16701 echo "configure:16702: checking for $ac_func" >&5
16702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16703 echo $ac_n "(cached) $ac_c" 1>&6
16704 else
16705 cat > conftest.$ac_ext <<EOF
16706 #line 16707 "configure"
16707 #include "confdefs.h"
16708 /* System header to define __stub macros and hopefully few prototypes,
16709 which can conflict with char $ac_func(); below. */
16710 #include <assert.h>
16711 /* Override any gcc2 internal prototype to avoid an error. */
16712 /* We use char because int might match the return type of a gcc2
16713 builtin and then its argument prototype would still apply. */
16714 char $ac_func();
16715
16716 int main() {
16717
16718 /* The GNU C library defines this for functions which it implements
16719 to always fail with ENOSYS. Some functions are actually named
16720 something starting with __ and the normal name is an alias. */
16721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16722 choke me
16723 #else
16724 $ac_func();
16725 #endif
16726
16727 ; return 0; }
16728 EOF
16729 if { (eval echo configure:16730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16730 rm -rf conftest*
16731 eval "ac_cv_func_$ac_func=yes"
16732 else
16733 echo "configure: failed program was:" >&5
16734 cat conftest.$ac_ext >&5
16735 rm -rf conftest*
16736 eval "ac_cv_func_$ac_func=no"
16737 fi
16738 rm -f conftest*
16739 fi
16740
16741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16742 echo "$ac_t""yes" 1>&6
16743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16744 cat >> confdefs.h <<EOF
16745 #define $ac_tr_func 1
16746 EOF
16747
16748 else
16749 echo "$ac_t""no" 1>&6
16750 fi
16751 done
16752
16753 fi
16754 fi
16755
16756
16757
16758 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
16759 echo "configure:16760: checking for sqrtf declaration" >&5
16760 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
16761 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
16762 echo $ac_n "(cached) $ac_c" 1>&6
16763 else
16764
16765
16766 ac_ext=C
16767 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16768 ac_cpp='$CXXCPP $CPPFLAGS'
16769 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16770 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16771 cross_compiling=$ac_cv_prog_cxx_cross
16772
16773 cat > conftest.$ac_ext <<EOF
16774 #line 16775 "configure"
16775 #include "confdefs.h"
16776 #include <math.h>
16777 #ifdef HAVE_IEEEFP_H
16778 #include <ieeefp.h>
16779 #endif
16780
16781 int main() {
16782 sqrtf(0);
16783 ; return 0; }
16784 EOF
16785 if { (eval echo configure:16786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16786 rm -rf conftest*
16787 glibcpp_cv_func_sqrtf_use=yes
16788 else
16789 echo "configure: failed program was:" >&5
16790 cat conftest.$ac_ext >&5
16791 rm -rf conftest*
16792 glibcpp_cv_func_sqrtf_use=no
16793 fi
16794 rm -f conftest*
16795 ac_ext=c
16796 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16797 ac_cpp='$CPP $CPPFLAGS'
16798 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16799 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16800 cross_compiling=$ac_cv_prog_cc_cross
16801
16802
16803 fi
16804
16805 fi
16806 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
16807
16808 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
16809 for ac_func in sqrtf
16810 do
16811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16812 echo "configure:16813: checking for $ac_func" >&5
16813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16814 echo $ac_n "(cached) $ac_c" 1>&6
16815 else
16816 cat > conftest.$ac_ext <<EOF
16817 #line 16818 "configure"
16818 #include "confdefs.h"
16819 /* System header to define __stub macros and hopefully few prototypes,
16820 which can conflict with char $ac_func(); below. */
16821 #include <assert.h>
16822 /* Override any gcc2 internal prototype to avoid an error. */
16823 /* We use char because int might match the return type of a gcc2
16824 builtin and then its argument prototype would still apply. */
16825 char $ac_func();
16826
16827 int main() {
16828
16829 /* The GNU C library defines this for functions which it implements
16830 to always fail with ENOSYS. Some functions are actually named
16831 something starting with __ and the normal name is an alias. */
16832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16833 choke me
16834 #else
16835 $ac_func();
16836 #endif
16837
16838 ; return 0; }
16839 EOF
16840 if { (eval echo configure:16841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16841 rm -rf conftest*
16842 eval "ac_cv_func_$ac_func=yes"
16843 else
16844 echo "configure: failed program was:" >&5
16845 cat conftest.$ac_ext >&5
16846 rm -rf conftest*
16847 eval "ac_cv_func_$ac_func=no"
16848 fi
16849 rm -f conftest*
16850 fi
16851
16852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16853 echo "$ac_t""yes" 1>&6
16854 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16855 cat >> confdefs.h <<EOF
16856 #define $ac_tr_func 1
16857 EOF
16858
16859 else
16860 echo "$ac_t""no" 1>&6
16861 fi
16862 done
16863
16864 else
16865
16866 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
16867 echo "configure:16868: checking for _sqrtf declaration" >&5
16868 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
16869 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
16870 echo $ac_n "(cached) $ac_c" 1>&6
16871 else
16872
16873
16874 ac_ext=C
16875 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16876 ac_cpp='$CXXCPP $CPPFLAGS'
16877 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16878 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16879 cross_compiling=$ac_cv_prog_cxx_cross
16880
16881 cat > conftest.$ac_ext <<EOF
16882 #line 16883 "configure"
16883 #include "confdefs.h"
16884 #include <math.h>
16885 #ifdef HAVE_IEEEFP_H
16886 #include <ieeefp.h>
16887 #endif
16888
16889 int main() {
16890 _sqrtf(0);
16891 ; return 0; }
16892 EOF
16893 if { (eval echo configure:16894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16894 rm -rf conftest*
16895 glibcpp_cv_func__sqrtf_use=yes
16896 else
16897 echo "configure: failed program was:" >&5
16898 cat conftest.$ac_ext >&5
16899 rm -rf conftest*
16900 glibcpp_cv_func__sqrtf_use=no
16901 fi
16902 rm -f conftest*
16903 ac_ext=c
16904 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16905 ac_cpp='$CPP $CPPFLAGS'
16906 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16907 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16908 cross_compiling=$ac_cv_prog_cc_cross
16909
16910
16911 fi
16912
16913 fi
16914 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
16915
16916 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
16917 for ac_func in _sqrtf
16918 do
16919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16920 echo "configure:16921: checking for $ac_func" >&5
16921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16922 echo $ac_n "(cached) $ac_c" 1>&6
16923 else
16924 cat > conftest.$ac_ext <<EOF
16925 #line 16926 "configure"
16926 #include "confdefs.h"
16927 /* System header to define __stub macros and hopefully few prototypes,
16928 which can conflict with char $ac_func(); below. */
16929 #include <assert.h>
16930 /* Override any gcc2 internal prototype to avoid an error. */
16931 /* We use char because int might match the return type of a gcc2
16932 builtin and then its argument prototype would still apply. */
16933 char $ac_func();
16934
16935 int main() {
16936
16937 /* The GNU C library defines this for functions which it implements
16938 to always fail with ENOSYS. Some functions are actually named
16939 something starting with __ and the normal name is an alias. */
16940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16941 choke me
16942 #else
16943 $ac_func();
16944 #endif
16945
16946 ; return 0; }
16947 EOF
16948 if { (eval echo configure:16949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16949 rm -rf conftest*
16950 eval "ac_cv_func_$ac_func=yes"
16951 else
16952 echo "configure: failed program was:" >&5
16953 cat conftest.$ac_ext >&5
16954 rm -rf conftest*
16955 eval "ac_cv_func_$ac_func=no"
16956 fi
16957 rm -f conftest*
16958 fi
16959
16960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16961 echo "$ac_t""yes" 1>&6
16962 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16963 cat >> confdefs.h <<EOF
16964 #define $ac_tr_func 1
16965 EOF
16966
16967 else
16968 echo "$ac_t""no" 1>&6
16969 fi
16970 done
16971
16972 fi
16973 fi
16974
16975
16976
16977 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
16978 echo "configure:16979: checking for sincosf declaration" >&5
16979 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
16980 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
16981 echo $ac_n "(cached) $ac_c" 1>&6
16982 else
16983
16984
16985 ac_ext=C
16986 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16987 ac_cpp='$CXXCPP $CPPFLAGS'
16988 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16989 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16990 cross_compiling=$ac_cv_prog_cxx_cross
16991
16992 cat > conftest.$ac_ext <<EOF
16993 #line 16994 "configure"
16994 #include "confdefs.h"
16995 #include <math.h>
16996 int main() {
16997 sincosf(0, 0, 0);
16998 ; return 0; }
16999 EOF
17000 if { (eval echo configure:17001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17001 rm -rf conftest*
17002 glibcpp_cv_func_sincosf_use=yes
17003 else
17004 echo "configure: failed program was:" >&5
17005 cat conftest.$ac_ext >&5
17006 rm -rf conftest*
17007 glibcpp_cv_func_sincosf_use=no
17008 fi
17009 rm -f conftest*
17010 ac_ext=c
17011 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17012 ac_cpp='$CPP $CPPFLAGS'
17013 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17014 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17015 cross_compiling=$ac_cv_prog_cc_cross
17016
17017
17018 fi
17019
17020 fi
17021 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
17022
17023 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
17024 for ac_func in sincosf
17025 do
17026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17027 echo "configure:17028: checking for $ac_func" >&5
17028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17029 echo $ac_n "(cached) $ac_c" 1>&6
17030 else
17031 cat > conftest.$ac_ext <<EOF
17032 #line 17033 "configure"
17033 #include "confdefs.h"
17034 /* System header to define __stub macros and hopefully few prototypes,
17035 which can conflict with char $ac_func(); below. */
17036 #include <assert.h>
17037 /* Override any gcc2 internal prototype to avoid an error. */
17038 /* We use char because int might match the return type of a gcc2
17039 builtin and then its argument prototype would still apply. */
17040 char $ac_func();
17041
17042 int main() {
17043
17044 /* The GNU C library defines this for functions which it implements
17045 to always fail with ENOSYS. Some functions are actually named
17046 something starting with __ and the normal name is an alias. */
17047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17048 choke me
17049 #else
17050 $ac_func();
17051 #endif
17052
17053 ; return 0; }
17054 EOF
17055 if { (eval echo configure:17056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17056 rm -rf conftest*
17057 eval "ac_cv_func_$ac_func=yes"
17058 else
17059 echo "configure: failed program was:" >&5
17060 cat conftest.$ac_ext >&5
17061 rm -rf conftest*
17062 eval "ac_cv_func_$ac_func=no"
17063 fi
17064 rm -f conftest*
17065 fi
17066
17067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17068 echo "$ac_t""yes" 1>&6
17069 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17070 cat >> confdefs.h <<EOF
17071 #define $ac_tr_func 1
17072 EOF
17073
17074 else
17075 echo "$ac_t""no" 1>&6
17076 fi
17077 done
17078
17079 else
17080
17081 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
17082 echo "configure:17083: checking for _sincosf declaration" >&5
17083 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
17084 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
17085 echo $ac_n "(cached) $ac_c" 1>&6
17086 else
17087
17088
17089 ac_ext=C
17090 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17091 ac_cpp='$CXXCPP $CPPFLAGS'
17092 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17093 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17094 cross_compiling=$ac_cv_prog_cxx_cross
17095
17096 cat > conftest.$ac_ext <<EOF
17097 #line 17098 "configure"
17098 #include "confdefs.h"
17099 #include <math.h>
17100 int main() {
17101 _sincosf(0, 0, 0);
17102 ; return 0; }
17103 EOF
17104 if { (eval echo configure:17105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17105 rm -rf conftest*
17106 glibcpp_cv_func__sincosf_use=yes
17107 else
17108 echo "configure: failed program was:" >&5
17109 cat conftest.$ac_ext >&5
17110 rm -rf conftest*
17111 glibcpp_cv_func__sincosf_use=no
17112 fi
17113 rm -f conftest*
17114 ac_ext=c
17115 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17116 ac_cpp='$CPP $CPPFLAGS'
17117 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17118 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17119 cross_compiling=$ac_cv_prog_cc_cross
17120
17121
17122 fi
17123
17124 fi
17125 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
17126
17127 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
17128 for ac_func in _sincosf
17129 do
17130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17131 echo "configure:17132: checking for $ac_func" >&5
17132 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17133 echo $ac_n "(cached) $ac_c" 1>&6
17134 else
17135 cat > conftest.$ac_ext <<EOF
17136 #line 17137 "configure"
17137 #include "confdefs.h"
17138 /* System header to define __stub macros and hopefully few prototypes,
17139 which can conflict with char $ac_func(); below. */
17140 #include <assert.h>
17141 /* Override any gcc2 internal prototype to avoid an error. */
17142 /* We use char because int might match the return type of a gcc2
17143 builtin and then its argument prototype would still apply. */
17144 char $ac_func();
17145
17146 int main() {
17147
17148 /* The GNU C library defines this for functions which it implements
17149 to always fail with ENOSYS. Some functions are actually named
17150 something starting with __ and the normal name is an alias. */
17151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17152 choke me
17153 #else
17154 $ac_func();
17155 #endif
17156
17157 ; return 0; }
17158 EOF
17159 if { (eval echo configure:17160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17160 rm -rf conftest*
17161 eval "ac_cv_func_$ac_func=yes"
17162 else
17163 echo "configure: failed program was:" >&5
17164 cat conftest.$ac_ext >&5
17165 rm -rf conftest*
17166 eval "ac_cv_func_$ac_func=no"
17167 fi
17168 rm -f conftest*
17169 fi
17170
17171 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17172 echo "$ac_t""yes" 1>&6
17173 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17174 cat >> confdefs.h <<EOF
17175 #define $ac_tr_func 1
17176 EOF
17177
17178 else
17179 echo "$ac_t""no" 1>&6
17180 fi
17181 done
17182
17183 fi
17184 fi
17185
17186
17187
17188 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
17189 echo "configure:17190: checking for finitef declaration" >&5
17190 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
17191 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
17192 echo $ac_n "(cached) $ac_c" 1>&6
17193 else
17194
17195
17196 ac_ext=C
17197 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17198 ac_cpp='$CXXCPP $CPPFLAGS'
17199 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17200 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17201 cross_compiling=$ac_cv_prog_cxx_cross
17202
17203 cat > conftest.$ac_ext <<EOF
17204 #line 17205 "configure"
17205 #include "confdefs.h"
17206 #include <math.h>
17207 #ifdef HAVE_IEEEFP_H
17208 #include <ieeefp.h>
17209 #endif
17210
17211 int main() {
17212 finitef(0);
17213 ; return 0; }
17214 EOF
17215 if { (eval echo configure:17216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17216 rm -rf conftest*
17217 glibcpp_cv_func_finitef_use=yes
17218 else
17219 echo "configure: failed program was:" >&5
17220 cat conftest.$ac_ext >&5
17221 rm -rf conftest*
17222 glibcpp_cv_func_finitef_use=no
17223 fi
17224 rm -f conftest*
17225 ac_ext=c
17226 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17227 ac_cpp='$CPP $CPPFLAGS'
17228 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17229 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17230 cross_compiling=$ac_cv_prog_cc_cross
17231
17232
17233 fi
17234
17235 fi
17236 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
17237
17238 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
17239 for ac_func in finitef
17240 do
17241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17242 echo "configure:17243: checking for $ac_func" >&5
17243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17244 echo $ac_n "(cached) $ac_c" 1>&6
17245 else
17246 cat > conftest.$ac_ext <<EOF
17247 #line 17248 "configure"
17248 #include "confdefs.h"
17249 /* System header to define __stub macros and hopefully few prototypes,
17250 which can conflict with char $ac_func(); below. */
17251 #include <assert.h>
17252 /* Override any gcc2 internal prototype to avoid an error. */
17253 /* We use char because int might match the return type of a gcc2
17254 builtin and then its argument prototype would still apply. */
17255 char $ac_func();
17256
17257 int main() {
17258
17259 /* The GNU C library defines this for functions which it implements
17260 to always fail with ENOSYS. Some functions are actually named
17261 something starting with __ and the normal name is an alias. */
17262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17263 choke me
17264 #else
17265 $ac_func();
17266 #endif
17267
17268 ; return 0; }
17269 EOF
17270 if { (eval echo configure:17271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17271 rm -rf conftest*
17272 eval "ac_cv_func_$ac_func=yes"
17273 else
17274 echo "configure: failed program was:" >&5
17275 cat conftest.$ac_ext >&5
17276 rm -rf conftest*
17277 eval "ac_cv_func_$ac_func=no"
17278 fi
17279 rm -f conftest*
17280 fi
17281
17282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17283 echo "$ac_t""yes" 1>&6
17284 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17285 cat >> confdefs.h <<EOF
17286 #define $ac_tr_func 1
17287 EOF
17288
17289 else
17290 echo "$ac_t""no" 1>&6
17291 fi
17292 done
17293
17294 else
17295
17296 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
17297 echo "configure:17298: checking for _finitef declaration" >&5
17298 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
17299 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
17300 echo $ac_n "(cached) $ac_c" 1>&6
17301 else
17302
17303
17304 ac_ext=C
17305 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17306 ac_cpp='$CXXCPP $CPPFLAGS'
17307 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17308 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17309 cross_compiling=$ac_cv_prog_cxx_cross
17310
17311 cat > conftest.$ac_ext <<EOF
17312 #line 17313 "configure"
17313 #include "confdefs.h"
17314 #include <math.h>
17315 #ifdef HAVE_IEEEFP_H
17316 #include <ieeefp.h>
17317 #endif
17318
17319 int main() {
17320 _finitef(0);
17321 ; return 0; }
17322 EOF
17323 if { (eval echo configure:17324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17324 rm -rf conftest*
17325 glibcpp_cv_func__finitef_use=yes
17326 else
17327 echo "configure: failed program was:" >&5
17328 cat conftest.$ac_ext >&5
17329 rm -rf conftest*
17330 glibcpp_cv_func__finitef_use=no
17331 fi
17332 rm -f conftest*
17333 ac_ext=c
17334 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17335 ac_cpp='$CPP $CPPFLAGS'
17336 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17337 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17338 cross_compiling=$ac_cv_prog_cc_cross
17339
17340
17341 fi
17342
17343 fi
17344 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
17345
17346 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
17347 for ac_func in _finitef
17348 do
17349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17350 echo "configure:17351: checking for $ac_func" >&5
17351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17352 echo $ac_n "(cached) $ac_c" 1>&6
17353 else
17354 cat > conftest.$ac_ext <<EOF
17355 #line 17356 "configure"
17356 #include "confdefs.h"
17357 /* System header to define __stub macros and hopefully few prototypes,
17358 which can conflict with char $ac_func(); below. */
17359 #include <assert.h>
17360 /* Override any gcc2 internal prototype to avoid an error. */
17361 /* We use char because int might match the return type of a gcc2
17362 builtin and then its argument prototype would still apply. */
17363 char $ac_func();
17364
17365 int main() {
17366
17367 /* The GNU C library defines this for functions which it implements
17368 to always fail with ENOSYS. Some functions are actually named
17369 something starting with __ and the normal name is an alias. */
17370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17371 choke me
17372 #else
17373 $ac_func();
17374 #endif
17375
17376 ; return 0; }
17377 EOF
17378 if { (eval echo configure:17379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17379 rm -rf conftest*
17380 eval "ac_cv_func_$ac_func=yes"
17381 else
17382 echo "configure: failed program was:" >&5
17383 cat conftest.$ac_ext >&5
17384 rm -rf conftest*
17385 eval "ac_cv_func_$ac_func=no"
17386 fi
17387 rm -f conftest*
17388 fi
17389
17390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17391 echo "$ac_t""yes" 1>&6
17392 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17393 cat >> confdefs.h <<EOF
17394 #define $ac_tr_func 1
17395 EOF
17396
17397 else
17398 echo "$ac_t""no" 1>&6
17399 fi
17400 done
17401
17402 fi
17403 fi
17404
17405
17406
17407 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
17408 echo "configure:17409: checking for long double trig functions" >&5
17409 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
17410 echo $ac_n "(cached) $ac_c" 1>&6
17411 else
17412
17413
17414 ac_ext=C
17415 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17416 ac_cpp='$CXXCPP $CPPFLAGS'
17417 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17418 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17419 cross_compiling=$ac_cv_prog_cxx_cross
17420
17421 cat > conftest.$ac_ext <<EOF
17422 #line 17423 "configure"
17423 #include "confdefs.h"
17424 #include <math.h>
17425 int main() {
17426 `for x in acosl asinl atanl \
17427 cosl sinl tanl \
17428 coshl sinhl tanhl; do echo "$x (0);"; done`
17429 ; return 0; }
17430 EOF
17431 if { (eval echo configure:17432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17432 rm -rf conftest*
17433 glibcpp_cv_func_long_double_trig_use=yes
17434 else
17435 echo "configure: failed program was:" >&5
17436 cat conftest.$ac_ext >&5
17437 rm -rf conftest*
17438 glibcpp_cv_func_long_double_trig_use=no
17439 fi
17440 rm -f conftest*
17441 ac_ext=c
17442 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17443 ac_cpp='$CPP $CPPFLAGS'
17444 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17445 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17446 cross_compiling=$ac_cv_prog_cc_cross
17447
17448 fi
17449
17450 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
17451 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
17452 for ac_func in acosl asinl atanl \
17453 cosl sinl tanl \
17454 coshl sinhl tanhl
17455 do
17456 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17457 echo "configure:17458: checking for $ac_func" >&5
17458 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17459 echo $ac_n "(cached) $ac_c" 1>&6
17460 else
17461 cat > conftest.$ac_ext <<EOF
17462 #line 17463 "configure"
17463 #include "confdefs.h"
17464 /* System header to define __stub macros and hopefully few prototypes,
17465 which can conflict with char $ac_func(); below. */
17466 #include <assert.h>
17467 /* Override any gcc2 internal prototype to avoid an error. */
17468 /* We use char because int might match the return type of a gcc2
17469 builtin and then its argument prototype would still apply. */
17470 char $ac_func();
17471
17472 int main() {
17473
17474 /* The GNU C library defines this for functions which it implements
17475 to always fail with ENOSYS. Some functions are actually named
17476 something starting with __ and the normal name is an alias. */
17477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17478 choke me
17479 #else
17480 $ac_func();
17481 #endif
17482
17483 ; return 0; }
17484 EOF
17485 if { (eval echo configure:17486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17486 rm -rf conftest*
17487 eval "ac_cv_func_$ac_func=yes"
17488 else
17489 echo "configure: failed program was:" >&5
17490 cat conftest.$ac_ext >&5
17491 rm -rf conftest*
17492 eval "ac_cv_func_$ac_func=no"
17493 fi
17494 rm -f conftest*
17495 fi
17496
17497 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17498 echo "$ac_t""yes" 1>&6
17499 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17500 cat >> confdefs.h <<EOF
17501 #define $ac_tr_func 1
17502 EOF
17503
17504 else
17505 echo "$ac_t""no" 1>&6
17506 fi
17507 done
17508
17509 fi
17510
17511
17512 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
17513 echo "configure:17514: checking for long double round functions" >&5
17514 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
17515 echo $ac_n "(cached) $ac_c" 1>&6
17516 else
17517
17518
17519 ac_ext=C
17520 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17521 ac_cpp='$CXXCPP $CPPFLAGS'
17522 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17523 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17524 cross_compiling=$ac_cv_prog_cxx_cross
17525
17526 cat > conftest.$ac_ext <<EOF
17527 #line 17528 "configure"
17528 #include "confdefs.h"
17529 #include <math.h>
17530 int main() {
17531 `for x in ceill floorl; do echo "$x (0);"; done`
17532 ; return 0; }
17533 EOF
17534 if { (eval echo configure:17535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17535 rm -rf conftest*
17536 glibcpp_cv_func_long_double_round_use=yes
17537 else
17538 echo "configure: failed program was:" >&5
17539 cat conftest.$ac_ext >&5
17540 rm -rf conftest*
17541 glibcpp_cv_func_long_double_round_use=no
17542 fi
17543 rm -f conftest*
17544 ac_ext=c
17545 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17546 ac_cpp='$CPP $CPPFLAGS'
17547 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17548 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17549 cross_compiling=$ac_cv_prog_cc_cross
17550
17551 fi
17552
17553 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
17554 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
17555 for ac_func in ceill floorl
17556 do
17557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17558 echo "configure:17559: checking for $ac_func" >&5
17559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17560 echo $ac_n "(cached) $ac_c" 1>&6
17561 else
17562 cat > conftest.$ac_ext <<EOF
17563 #line 17564 "configure"
17564 #include "confdefs.h"
17565 /* System header to define __stub macros and hopefully few prototypes,
17566 which can conflict with char $ac_func(); below. */
17567 #include <assert.h>
17568 /* Override any gcc2 internal prototype to avoid an error. */
17569 /* We use char because int might match the return type of a gcc2
17570 builtin and then its argument prototype would still apply. */
17571 char $ac_func();
17572
17573 int main() {
17574
17575 /* The GNU C library defines this for functions which it implements
17576 to always fail with ENOSYS. Some functions are actually named
17577 something starting with __ and the normal name is an alias. */
17578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17579 choke me
17580 #else
17581 $ac_func();
17582 #endif
17583
17584 ; return 0; }
17585 EOF
17586 if { (eval echo configure:17587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17587 rm -rf conftest*
17588 eval "ac_cv_func_$ac_func=yes"
17589 else
17590 echo "configure: failed program was:" >&5
17591 cat conftest.$ac_ext >&5
17592 rm -rf conftest*
17593 eval "ac_cv_func_$ac_func=no"
17594 fi
17595 rm -f conftest*
17596 fi
17597
17598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17599 echo "$ac_t""yes" 1>&6
17600 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17601 cat >> confdefs.h <<EOF
17602 #define $ac_tr_func 1
17603 EOF
17604
17605 else
17606 echo "$ac_t""no" 1>&6
17607 fi
17608 done
17609
17610 fi
17611
17612
17613
17614 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
17615 echo "configure:17616: checking for isnanl declaration" >&5
17616 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
17617 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
17618 echo $ac_n "(cached) $ac_c" 1>&6
17619 else
17620
17621
17622 ac_ext=C
17623 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17624 ac_cpp='$CXXCPP $CPPFLAGS'
17625 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17626 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17627 cross_compiling=$ac_cv_prog_cxx_cross
17628
17629 cat > conftest.$ac_ext <<EOF
17630 #line 17631 "configure"
17631 #include "confdefs.h"
17632 #include <math.h>
17633 #ifdef HAVE_IEEEFP_H
17634 #include <ieeefp.h>
17635 #endif
17636
17637 int main() {
17638 isnanl(0);
17639 ; return 0; }
17640 EOF
17641 if { (eval echo configure:17642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17642 rm -rf conftest*
17643 glibcpp_cv_func_isnanl_use=yes
17644 else
17645 echo "configure: failed program was:" >&5
17646 cat conftest.$ac_ext >&5
17647 rm -rf conftest*
17648 glibcpp_cv_func_isnanl_use=no
17649 fi
17650 rm -f conftest*
17651 ac_ext=c
17652 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17653 ac_cpp='$CPP $CPPFLAGS'
17654 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17655 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17656 cross_compiling=$ac_cv_prog_cc_cross
17657
17658
17659 fi
17660
17661 fi
17662 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
17663
17664 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
17665 for ac_func in isnanl
17666 do
17667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17668 echo "configure:17669: checking for $ac_func" >&5
17669 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17670 echo $ac_n "(cached) $ac_c" 1>&6
17671 else
17672 cat > conftest.$ac_ext <<EOF
17673 #line 17674 "configure"
17674 #include "confdefs.h"
17675 /* System header to define __stub macros and hopefully few prototypes,
17676 which can conflict with char $ac_func(); below. */
17677 #include <assert.h>
17678 /* Override any gcc2 internal prototype to avoid an error. */
17679 /* We use char because int might match the return type of a gcc2
17680 builtin and then its argument prototype would still apply. */
17681 char $ac_func();
17682
17683 int main() {
17684
17685 /* The GNU C library defines this for functions which it implements
17686 to always fail with ENOSYS. Some functions are actually named
17687 something starting with __ and the normal name is an alias. */
17688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17689 choke me
17690 #else
17691 $ac_func();
17692 #endif
17693
17694 ; return 0; }
17695 EOF
17696 if { (eval echo configure:17697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17697 rm -rf conftest*
17698 eval "ac_cv_func_$ac_func=yes"
17699 else
17700 echo "configure: failed program was:" >&5
17701 cat conftest.$ac_ext >&5
17702 rm -rf conftest*
17703 eval "ac_cv_func_$ac_func=no"
17704 fi
17705 rm -f conftest*
17706 fi
17707
17708 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17709 echo "$ac_t""yes" 1>&6
17710 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17711 cat >> confdefs.h <<EOF
17712 #define $ac_tr_func 1
17713 EOF
17714
17715 else
17716 echo "$ac_t""no" 1>&6
17717 fi
17718 done
17719
17720 else
17721
17722 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
17723 echo "configure:17724: checking for _isnanl declaration" >&5
17724 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
17725 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
17726 echo $ac_n "(cached) $ac_c" 1>&6
17727 else
17728
17729
17730 ac_ext=C
17731 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17732 ac_cpp='$CXXCPP $CPPFLAGS'
17733 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17734 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17735 cross_compiling=$ac_cv_prog_cxx_cross
17736
17737 cat > conftest.$ac_ext <<EOF
17738 #line 17739 "configure"
17739 #include "confdefs.h"
17740 #include <math.h>
17741 #ifdef HAVE_IEEEFP_H
17742 #include <ieeefp.h>
17743 #endif
17744
17745 int main() {
17746 _isnanl(0);
17747 ; return 0; }
17748 EOF
17749 if { (eval echo configure:17750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17750 rm -rf conftest*
17751 glibcpp_cv_func__isnanl_use=yes
17752 else
17753 echo "configure: failed program was:" >&5
17754 cat conftest.$ac_ext >&5
17755 rm -rf conftest*
17756 glibcpp_cv_func__isnanl_use=no
17757 fi
17758 rm -f conftest*
17759 ac_ext=c
17760 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17761 ac_cpp='$CPP $CPPFLAGS'
17762 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17763 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17764 cross_compiling=$ac_cv_prog_cc_cross
17765
17766
17767 fi
17768
17769 fi
17770 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
17771
17772 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
17773 for ac_func in _isnanl
17774 do
17775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17776 echo "configure:17777: checking for $ac_func" >&5
17777 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17778 echo $ac_n "(cached) $ac_c" 1>&6
17779 else
17780 cat > conftest.$ac_ext <<EOF
17781 #line 17782 "configure"
17782 #include "confdefs.h"
17783 /* System header to define __stub macros and hopefully few prototypes,
17784 which can conflict with char $ac_func(); below. */
17785 #include <assert.h>
17786 /* Override any gcc2 internal prototype to avoid an error. */
17787 /* We use char because int might match the return type of a gcc2
17788 builtin and then its argument prototype would still apply. */
17789 char $ac_func();
17790
17791 int main() {
17792
17793 /* The GNU C library defines this for functions which it implements
17794 to always fail with ENOSYS. Some functions are actually named
17795 something starting with __ and the normal name is an alias. */
17796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17797 choke me
17798 #else
17799 $ac_func();
17800 #endif
17801
17802 ; return 0; }
17803 EOF
17804 if { (eval echo configure:17805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17805 rm -rf conftest*
17806 eval "ac_cv_func_$ac_func=yes"
17807 else
17808 echo "configure: failed program was:" >&5
17809 cat conftest.$ac_ext >&5
17810 rm -rf conftest*
17811 eval "ac_cv_func_$ac_func=no"
17812 fi
17813 rm -f conftest*
17814 fi
17815
17816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17817 echo "$ac_t""yes" 1>&6
17818 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17819 cat >> confdefs.h <<EOF
17820 #define $ac_tr_func 1
17821 EOF
17822
17823 else
17824 echo "$ac_t""no" 1>&6
17825 fi
17826 done
17827
17828 fi
17829 fi
17830
17831
17832
17833 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
17834 echo "configure:17835: checking for isinfl declaration" >&5
17835 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
17836 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
17837 echo $ac_n "(cached) $ac_c" 1>&6
17838 else
17839
17840
17841 ac_ext=C
17842 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17843 ac_cpp='$CXXCPP $CPPFLAGS'
17844 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17845 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17846 cross_compiling=$ac_cv_prog_cxx_cross
17847
17848 cat > conftest.$ac_ext <<EOF
17849 #line 17850 "configure"
17850 #include "confdefs.h"
17851 #include <math.h>
17852 #ifdef HAVE_IEEEFP_H
17853 #include <ieeefp.h>
17854 #endif
17855
17856 int main() {
17857 isinfl(0);
17858 ; return 0; }
17859 EOF
17860 if { (eval echo configure:17861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17861 rm -rf conftest*
17862 glibcpp_cv_func_isinfl_use=yes
17863 else
17864 echo "configure: failed program was:" >&5
17865 cat conftest.$ac_ext >&5
17866 rm -rf conftest*
17867 glibcpp_cv_func_isinfl_use=no
17868 fi
17869 rm -f conftest*
17870 ac_ext=c
17871 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17872 ac_cpp='$CPP $CPPFLAGS'
17873 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17874 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17875 cross_compiling=$ac_cv_prog_cc_cross
17876
17877
17878 fi
17879
17880 fi
17881 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
17882
17883 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
17884 for ac_func in isinfl
17885 do
17886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17887 echo "configure:17888: checking for $ac_func" >&5
17888 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17889 echo $ac_n "(cached) $ac_c" 1>&6
17890 else
17891 cat > conftest.$ac_ext <<EOF
17892 #line 17893 "configure"
17893 #include "confdefs.h"
17894 /* System header to define __stub macros and hopefully few prototypes,
17895 which can conflict with char $ac_func(); below. */
17896 #include <assert.h>
17897 /* Override any gcc2 internal prototype to avoid an error. */
17898 /* We use char because int might match the return type of a gcc2
17899 builtin and then its argument prototype would still apply. */
17900 char $ac_func();
17901
17902 int main() {
17903
17904 /* The GNU C library defines this for functions which it implements
17905 to always fail with ENOSYS. Some functions are actually named
17906 something starting with __ and the normal name is an alias. */
17907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17908 choke me
17909 #else
17910 $ac_func();
17911 #endif
17912
17913 ; return 0; }
17914 EOF
17915 if { (eval echo configure:17916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17916 rm -rf conftest*
17917 eval "ac_cv_func_$ac_func=yes"
17918 else
17919 echo "configure: failed program was:" >&5
17920 cat conftest.$ac_ext >&5
17921 rm -rf conftest*
17922 eval "ac_cv_func_$ac_func=no"
17923 fi
17924 rm -f conftest*
17925 fi
17926
17927 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17928 echo "$ac_t""yes" 1>&6
17929 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17930 cat >> confdefs.h <<EOF
17931 #define $ac_tr_func 1
17932 EOF
17933
17934 else
17935 echo "$ac_t""no" 1>&6
17936 fi
17937 done
17938
17939 else
17940
17941 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
17942 echo "configure:17943: checking for _isinfl declaration" >&5
17943 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
17944 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
17945 echo $ac_n "(cached) $ac_c" 1>&6
17946 else
17947
17948
17949 ac_ext=C
17950 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17951 ac_cpp='$CXXCPP $CPPFLAGS'
17952 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17953 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17954 cross_compiling=$ac_cv_prog_cxx_cross
17955
17956 cat > conftest.$ac_ext <<EOF
17957 #line 17958 "configure"
17958 #include "confdefs.h"
17959 #include <math.h>
17960 #ifdef HAVE_IEEEFP_H
17961 #include <ieeefp.h>
17962 #endif
17963
17964 int main() {
17965 _isinfl(0);
17966 ; return 0; }
17967 EOF
17968 if { (eval echo configure:17969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17969 rm -rf conftest*
17970 glibcpp_cv_func__isinfl_use=yes
17971 else
17972 echo "configure: failed program was:" >&5
17973 cat conftest.$ac_ext >&5
17974 rm -rf conftest*
17975 glibcpp_cv_func__isinfl_use=no
17976 fi
17977 rm -f conftest*
17978 ac_ext=c
17979 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17980 ac_cpp='$CPP $CPPFLAGS'
17981 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17982 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17983 cross_compiling=$ac_cv_prog_cc_cross
17984
17985
17986 fi
17987
17988 fi
17989 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
17990
17991 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
17992 for ac_func in _isinfl
17993 do
17994 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17995 echo "configure:17996: checking for $ac_func" >&5
17996 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17997 echo $ac_n "(cached) $ac_c" 1>&6
17998 else
17999 cat > conftest.$ac_ext <<EOF
18000 #line 18001 "configure"
18001 #include "confdefs.h"
18002 /* System header to define __stub macros and hopefully few prototypes,
18003 which can conflict with char $ac_func(); below. */
18004 #include <assert.h>
18005 /* Override any gcc2 internal prototype to avoid an error. */
18006 /* We use char because int might match the return type of a gcc2
18007 builtin and then its argument prototype would still apply. */
18008 char $ac_func();
18009
18010 int main() {
18011
18012 /* The GNU C library defines this for functions which it implements
18013 to always fail with ENOSYS. Some functions are actually named
18014 something starting with __ and the normal name is an alias. */
18015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18016 choke me
18017 #else
18018 $ac_func();
18019 #endif
18020
18021 ; return 0; }
18022 EOF
18023 if { (eval echo configure:18024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18024 rm -rf conftest*
18025 eval "ac_cv_func_$ac_func=yes"
18026 else
18027 echo "configure: failed program was:" >&5
18028 cat conftest.$ac_ext >&5
18029 rm -rf conftest*
18030 eval "ac_cv_func_$ac_func=no"
18031 fi
18032 rm -f conftest*
18033 fi
18034
18035 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18036 echo "$ac_t""yes" 1>&6
18037 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18038 cat >> confdefs.h <<EOF
18039 #define $ac_tr_func 1
18040 EOF
18041
18042 else
18043 echo "$ac_t""no" 1>&6
18044 fi
18045 done
18046
18047 fi
18048 fi
18049
18050
18051
18052 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
18053 echo "configure:18054: checking for copysignl declaration" >&5
18054 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
18055 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
18056 echo $ac_n "(cached) $ac_c" 1>&6
18057 else
18058
18059
18060 ac_ext=C
18061 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18062 ac_cpp='$CXXCPP $CPPFLAGS'
18063 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18064 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18065 cross_compiling=$ac_cv_prog_cxx_cross
18066
18067 cat > conftest.$ac_ext <<EOF
18068 #line 18069 "configure"
18069 #include "confdefs.h"
18070 #include <math.h>
18071 int main() {
18072 copysignl(0, 0);
18073 ; return 0; }
18074 EOF
18075 if { (eval echo configure:18076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18076 rm -rf conftest*
18077 glibcpp_cv_func_copysignl_use=yes
18078 else
18079 echo "configure: failed program was:" >&5
18080 cat conftest.$ac_ext >&5
18081 rm -rf conftest*
18082 glibcpp_cv_func_copysignl_use=no
18083 fi
18084 rm -f conftest*
18085 ac_ext=c
18086 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18087 ac_cpp='$CPP $CPPFLAGS'
18088 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18089 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18090 cross_compiling=$ac_cv_prog_cc_cross
18091
18092
18093 fi
18094
18095 fi
18096 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
18097
18098 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
18099 for ac_func in copysignl
18100 do
18101 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18102 echo "configure:18103: checking for $ac_func" >&5
18103 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18104 echo $ac_n "(cached) $ac_c" 1>&6
18105 else
18106 cat > conftest.$ac_ext <<EOF
18107 #line 18108 "configure"
18108 #include "confdefs.h"
18109 /* System header to define __stub macros and hopefully few prototypes,
18110 which can conflict with char $ac_func(); below. */
18111 #include <assert.h>
18112 /* Override any gcc2 internal prototype to avoid an error. */
18113 /* We use char because int might match the return type of a gcc2
18114 builtin and then its argument prototype would still apply. */
18115 char $ac_func();
18116
18117 int main() {
18118
18119 /* The GNU C library defines this for functions which it implements
18120 to always fail with ENOSYS. Some functions are actually named
18121 something starting with __ and the normal name is an alias. */
18122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18123 choke me
18124 #else
18125 $ac_func();
18126 #endif
18127
18128 ; return 0; }
18129 EOF
18130 if { (eval echo configure:18131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18131 rm -rf conftest*
18132 eval "ac_cv_func_$ac_func=yes"
18133 else
18134 echo "configure: failed program was:" >&5
18135 cat conftest.$ac_ext >&5
18136 rm -rf conftest*
18137 eval "ac_cv_func_$ac_func=no"
18138 fi
18139 rm -f conftest*
18140 fi
18141
18142 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18143 echo "$ac_t""yes" 1>&6
18144 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18145 cat >> confdefs.h <<EOF
18146 #define $ac_tr_func 1
18147 EOF
18148
18149 else
18150 echo "$ac_t""no" 1>&6
18151 fi
18152 done
18153
18154 else
18155
18156 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
18157 echo "configure:18158: checking for _copysignl declaration" >&5
18158 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
18159 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
18160 echo $ac_n "(cached) $ac_c" 1>&6
18161 else
18162
18163
18164 ac_ext=C
18165 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18166 ac_cpp='$CXXCPP $CPPFLAGS'
18167 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18168 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18169 cross_compiling=$ac_cv_prog_cxx_cross
18170
18171 cat > conftest.$ac_ext <<EOF
18172 #line 18173 "configure"
18173 #include "confdefs.h"
18174 #include <math.h>
18175 int main() {
18176 _copysignl(0, 0);
18177 ; return 0; }
18178 EOF
18179 if { (eval echo configure:18180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18180 rm -rf conftest*
18181 glibcpp_cv_func__copysignl_use=yes
18182 else
18183 echo "configure: failed program was:" >&5
18184 cat conftest.$ac_ext >&5
18185 rm -rf conftest*
18186 glibcpp_cv_func__copysignl_use=no
18187 fi
18188 rm -f conftest*
18189 ac_ext=c
18190 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18191 ac_cpp='$CPP $CPPFLAGS'
18192 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18193 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18194 cross_compiling=$ac_cv_prog_cc_cross
18195
18196
18197 fi
18198
18199 fi
18200 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
18201
18202 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
18203 for ac_func in _copysignl
18204 do
18205 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18206 echo "configure:18207: checking for $ac_func" >&5
18207 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18208 echo $ac_n "(cached) $ac_c" 1>&6
18209 else
18210 cat > conftest.$ac_ext <<EOF
18211 #line 18212 "configure"
18212 #include "confdefs.h"
18213 /* System header to define __stub macros and hopefully few prototypes,
18214 which can conflict with char $ac_func(); below. */
18215 #include <assert.h>
18216 /* Override any gcc2 internal prototype to avoid an error. */
18217 /* We use char because int might match the return type of a gcc2
18218 builtin and then its argument prototype would still apply. */
18219 char $ac_func();
18220
18221 int main() {
18222
18223 /* The GNU C library defines this for functions which it implements
18224 to always fail with ENOSYS. Some functions are actually named
18225 something starting with __ and the normal name is an alias. */
18226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18227 choke me
18228 #else
18229 $ac_func();
18230 #endif
18231
18232 ; return 0; }
18233 EOF
18234 if { (eval echo configure:18235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18235 rm -rf conftest*
18236 eval "ac_cv_func_$ac_func=yes"
18237 else
18238 echo "configure: failed program was:" >&5
18239 cat conftest.$ac_ext >&5
18240 rm -rf conftest*
18241 eval "ac_cv_func_$ac_func=no"
18242 fi
18243 rm -f conftest*
18244 fi
18245
18246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18247 echo "$ac_t""yes" 1>&6
18248 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18249 cat >> confdefs.h <<EOF
18250 #define $ac_tr_func 1
18251 EOF
18252
18253 else
18254 echo "$ac_t""no" 1>&6
18255 fi
18256 done
18257
18258 fi
18259 fi
18260
18261
18262
18263 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
18264 echo "configure:18265: checking for atan2l declaration" >&5
18265 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
18266 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
18267 echo $ac_n "(cached) $ac_c" 1>&6
18268 else
18269
18270
18271 ac_ext=C
18272 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18273 ac_cpp='$CXXCPP $CPPFLAGS'
18274 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18275 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18276 cross_compiling=$ac_cv_prog_cxx_cross
18277
18278 cat > conftest.$ac_ext <<EOF
18279 #line 18280 "configure"
18280 #include "confdefs.h"
18281 #include <math.h>
18282 int main() {
18283 atan2l(0, 0);
18284 ; return 0; }
18285 EOF
18286 if { (eval echo configure:18287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18287 rm -rf conftest*
18288 glibcpp_cv_func_atan2l_use=yes
18289 else
18290 echo "configure: failed program was:" >&5
18291 cat conftest.$ac_ext >&5
18292 rm -rf conftest*
18293 glibcpp_cv_func_atan2l_use=no
18294 fi
18295 rm -f conftest*
18296 ac_ext=c
18297 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18298 ac_cpp='$CPP $CPPFLAGS'
18299 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18300 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18301 cross_compiling=$ac_cv_prog_cc_cross
18302
18303
18304 fi
18305
18306 fi
18307 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
18308
18309 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
18310 for ac_func in atan2l
18311 do
18312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18313 echo "configure:18314: checking for $ac_func" >&5
18314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18315 echo $ac_n "(cached) $ac_c" 1>&6
18316 else
18317 cat > conftest.$ac_ext <<EOF
18318 #line 18319 "configure"
18319 #include "confdefs.h"
18320 /* System header to define __stub macros and hopefully few prototypes,
18321 which can conflict with char $ac_func(); below. */
18322 #include <assert.h>
18323 /* Override any gcc2 internal prototype to avoid an error. */
18324 /* We use char because int might match the return type of a gcc2
18325 builtin and then its argument prototype would still apply. */
18326 char $ac_func();
18327
18328 int main() {
18329
18330 /* The GNU C library defines this for functions which it implements
18331 to always fail with ENOSYS. Some functions are actually named
18332 something starting with __ and the normal name is an alias. */
18333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18334 choke me
18335 #else
18336 $ac_func();
18337 #endif
18338
18339 ; return 0; }
18340 EOF
18341 if { (eval echo configure:18342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18342 rm -rf conftest*
18343 eval "ac_cv_func_$ac_func=yes"
18344 else
18345 echo "configure: failed program was:" >&5
18346 cat conftest.$ac_ext >&5
18347 rm -rf conftest*
18348 eval "ac_cv_func_$ac_func=no"
18349 fi
18350 rm -f conftest*
18351 fi
18352
18353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18354 echo "$ac_t""yes" 1>&6
18355 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18356 cat >> confdefs.h <<EOF
18357 #define $ac_tr_func 1
18358 EOF
18359
18360 else
18361 echo "$ac_t""no" 1>&6
18362 fi
18363 done
18364
18365 else
18366
18367 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
18368 echo "configure:18369: checking for _atan2l declaration" >&5
18369 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
18370 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
18371 echo $ac_n "(cached) $ac_c" 1>&6
18372 else
18373
18374
18375 ac_ext=C
18376 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18377 ac_cpp='$CXXCPP $CPPFLAGS'
18378 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18379 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18380 cross_compiling=$ac_cv_prog_cxx_cross
18381
18382 cat > conftest.$ac_ext <<EOF
18383 #line 18384 "configure"
18384 #include "confdefs.h"
18385 #include <math.h>
18386 int main() {
18387 _atan2l(0, 0);
18388 ; return 0; }
18389 EOF
18390 if { (eval echo configure:18391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18391 rm -rf conftest*
18392 glibcpp_cv_func__atan2l_use=yes
18393 else
18394 echo "configure: failed program was:" >&5
18395 cat conftest.$ac_ext >&5
18396 rm -rf conftest*
18397 glibcpp_cv_func__atan2l_use=no
18398 fi
18399 rm -f conftest*
18400 ac_ext=c
18401 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18402 ac_cpp='$CPP $CPPFLAGS'
18403 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18404 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18405 cross_compiling=$ac_cv_prog_cc_cross
18406
18407
18408 fi
18409
18410 fi
18411 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
18412
18413 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
18414 for ac_func in _atan2l
18415 do
18416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18417 echo "configure:18418: checking for $ac_func" >&5
18418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18419 echo $ac_n "(cached) $ac_c" 1>&6
18420 else
18421 cat > conftest.$ac_ext <<EOF
18422 #line 18423 "configure"
18423 #include "confdefs.h"
18424 /* System header to define __stub macros and hopefully few prototypes,
18425 which can conflict with char $ac_func(); below. */
18426 #include <assert.h>
18427 /* Override any gcc2 internal prototype to avoid an error. */
18428 /* We use char because int might match the return type of a gcc2
18429 builtin and then its argument prototype would still apply. */
18430 char $ac_func();
18431
18432 int main() {
18433
18434 /* The GNU C library defines this for functions which it implements
18435 to always fail with ENOSYS. Some functions are actually named
18436 something starting with __ and the normal name is an alias. */
18437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18438 choke me
18439 #else
18440 $ac_func();
18441 #endif
18442
18443 ; return 0; }
18444 EOF
18445 if { (eval echo configure:18446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18446 rm -rf conftest*
18447 eval "ac_cv_func_$ac_func=yes"
18448 else
18449 echo "configure: failed program was:" >&5
18450 cat conftest.$ac_ext >&5
18451 rm -rf conftest*
18452 eval "ac_cv_func_$ac_func=no"
18453 fi
18454 rm -f conftest*
18455 fi
18456
18457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18458 echo "$ac_t""yes" 1>&6
18459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18460 cat >> confdefs.h <<EOF
18461 #define $ac_tr_func 1
18462 EOF
18463
18464 else
18465 echo "$ac_t""no" 1>&6
18466 fi
18467 done
18468
18469 fi
18470 fi
18471
18472
18473
18474 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
18475 echo "configure:18476: checking for expl declaration" >&5
18476 if test x${glibcpp_cv_func_expl_use+set} != xset; then
18477 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
18478 echo $ac_n "(cached) $ac_c" 1>&6
18479 else
18480
18481
18482 ac_ext=C
18483 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18484 ac_cpp='$CXXCPP $CPPFLAGS'
18485 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18486 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18487 cross_compiling=$ac_cv_prog_cxx_cross
18488
18489 cat > conftest.$ac_ext <<EOF
18490 #line 18491 "configure"
18491 #include "confdefs.h"
18492 #include <math.h>
18493 #ifdef HAVE_IEEEFP_H
18494 #include <ieeefp.h>
18495 #endif
18496
18497 int main() {
18498 expl(0);
18499 ; return 0; }
18500 EOF
18501 if { (eval echo configure:18502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18502 rm -rf conftest*
18503 glibcpp_cv_func_expl_use=yes
18504 else
18505 echo "configure: failed program was:" >&5
18506 cat conftest.$ac_ext >&5
18507 rm -rf conftest*
18508 glibcpp_cv_func_expl_use=no
18509 fi
18510 rm -f conftest*
18511 ac_ext=c
18512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18513 ac_cpp='$CPP $CPPFLAGS'
18514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18515 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18516 cross_compiling=$ac_cv_prog_cc_cross
18517
18518
18519 fi
18520
18521 fi
18522 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
18523
18524 if test x$glibcpp_cv_func_expl_use = x"yes"; then
18525 for ac_func in expl
18526 do
18527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18528 echo "configure:18529: checking for $ac_func" >&5
18529 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18530 echo $ac_n "(cached) $ac_c" 1>&6
18531 else
18532 cat > conftest.$ac_ext <<EOF
18533 #line 18534 "configure"
18534 #include "confdefs.h"
18535 /* System header to define __stub macros and hopefully few prototypes,
18536 which can conflict with char $ac_func(); below. */
18537 #include <assert.h>
18538 /* Override any gcc2 internal prototype to avoid an error. */
18539 /* We use char because int might match the return type of a gcc2
18540 builtin and then its argument prototype would still apply. */
18541 char $ac_func();
18542
18543 int main() {
18544
18545 /* The GNU C library defines this for functions which it implements
18546 to always fail with ENOSYS. Some functions are actually named
18547 something starting with __ and the normal name is an alias. */
18548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18549 choke me
18550 #else
18551 $ac_func();
18552 #endif
18553
18554 ; return 0; }
18555 EOF
18556 if { (eval echo configure:18557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18557 rm -rf conftest*
18558 eval "ac_cv_func_$ac_func=yes"
18559 else
18560 echo "configure: failed program was:" >&5
18561 cat conftest.$ac_ext >&5
18562 rm -rf conftest*
18563 eval "ac_cv_func_$ac_func=no"
18564 fi
18565 rm -f conftest*
18566 fi
18567
18568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18569 echo "$ac_t""yes" 1>&6
18570 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18571 cat >> confdefs.h <<EOF
18572 #define $ac_tr_func 1
18573 EOF
18574
18575 else
18576 echo "$ac_t""no" 1>&6
18577 fi
18578 done
18579
18580 else
18581
18582 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
18583 echo "configure:18584: checking for _expl declaration" >&5
18584 if test x${glibcpp_cv_func__expl_use+set} != xset; then
18585 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
18586 echo $ac_n "(cached) $ac_c" 1>&6
18587 else
18588
18589
18590 ac_ext=C
18591 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18592 ac_cpp='$CXXCPP $CPPFLAGS'
18593 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18594 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18595 cross_compiling=$ac_cv_prog_cxx_cross
18596
18597 cat > conftest.$ac_ext <<EOF
18598 #line 18599 "configure"
18599 #include "confdefs.h"
18600 #include <math.h>
18601 #ifdef HAVE_IEEEFP_H
18602 #include <ieeefp.h>
18603 #endif
18604
18605 int main() {
18606 _expl(0);
18607 ; return 0; }
18608 EOF
18609 if { (eval echo configure:18610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18610 rm -rf conftest*
18611 glibcpp_cv_func__expl_use=yes
18612 else
18613 echo "configure: failed program was:" >&5
18614 cat conftest.$ac_ext >&5
18615 rm -rf conftest*
18616 glibcpp_cv_func__expl_use=no
18617 fi
18618 rm -f conftest*
18619 ac_ext=c
18620 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18621 ac_cpp='$CPP $CPPFLAGS'
18622 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18623 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18624 cross_compiling=$ac_cv_prog_cc_cross
18625
18626
18627 fi
18628
18629 fi
18630 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
18631
18632 if test x$glibcpp_cv_func__expl_use = x"yes"; then
18633 for ac_func in _expl
18634 do
18635 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18636 echo "configure:18637: checking for $ac_func" >&5
18637 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18638 echo $ac_n "(cached) $ac_c" 1>&6
18639 else
18640 cat > conftest.$ac_ext <<EOF
18641 #line 18642 "configure"
18642 #include "confdefs.h"
18643 /* System header to define __stub macros and hopefully few prototypes,
18644 which can conflict with char $ac_func(); below. */
18645 #include <assert.h>
18646 /* Override any gcc2 internal prototype to avoid an error. */
18647 /* We use char because int might match the return type of a gcc2
18648 builtin and then its argument prototype would still apply. */
18649 char $ac_func();
18650
18651 int main() {
18652
18653 /* The GNU C library defines this for functions which it implements
18654 to always fail with ENOSYS. Some functions are actually named
18655 something starting with __ and the normal name is an alias. */
18656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18657 choke me
18658 #else
18659 $ac_func();
18660 #endif
18661
18662 ; return 0; }
18663 EOF
18664 if { (eval echo configure:18665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18665 rm -rf conftest*
18666 eval "ac_cv_func_$ac_func=yes"
18667 else
18668 echo "configure: failed program was:" >&5
18669 cat conftest.$ac_ext >&5
18670 rm -rf conftest*
18671 eval "ac_cv_func_$ac_func=no"
18672 fi
18673 rm -f conftest*
18674 fi
18675
18676 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18677 echo "$ac_t""yes" 1>&6
18678 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18679 cat >> confdefs.h <<EOF
18680 #define $ac_tr_func 1
18681 EOF
18682
18683 else
18684 echo "$ac_t""no" 1>&6
18685 fi
18686 done
18687
18688 fi
18689 fi
18690
18691
18692
18693 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
18694 echo "configure:18695: checking for fabsl declaration" >&5
18695 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
18696 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
18697 echo $ac_n "(cached) $ac_c" 1>&6
18698 else
18699
18700
18701 ac_ext=C
18702 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18703 ac_cpp='$CXXCPP $CPPFLAGS'
18704 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18705 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18706 cross_compiling=$ac_cv_prog_cxx_cross
18707
18708 cat > conftest.$ac_ext <<EOF
18709 #line 18710 "configure"
18710 #include "confdefs.h"
18711 #include <math.h>
18712 #ifdef HAVE_IEEEFP_H
18713 #include <ieeefp.h>
18714 #endif
18715
18716 int main() {
18717 fabsl(0);
18718 ; return 0; }
18719 EOF
18720 if { (eval echo configure:18721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18721 rm -rf conftest*
18722 glibcpp_cv_func_fabsl_use=yes
18723 else
18724 echo "configure: failed program was:" >&5
18725 cat conftest.$ac_ext >&5
18726 rm -rf conftest*
18727 glibcpp_cv_func_fabsl_use=no
18728 fi
18729 rm -f conftest*
18730 ac_ext=c
18731 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18732 ac_cpp='$CPP $CPPFLAGS'
18733 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18734 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18735 cross_compiling=$ac_cv_prog_cc_cross
18736
18737
18738 fi
18739
18740 fi
18741 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
18742
18743 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
18744 for ac_func in fabsl
18745 do
18746 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18747 echo "configure:18748: checking for $ac_func" >&5
18748 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18749 echo $ac_n "(cached) $ac_c" 1>&6
18750 else
18751 cat > conftest.$ac_ext <<EOF
18752 #line 18753 "configure"
18753 #include "confdefs.h"
18754 /* System header to define __stub macros and hopefully few prototypes,
18755 which can conflict with char $ac_func(); below. */
18756 #include <assert.h>
18757 /* Override any gcc2 internal prototype to avoid an error. */
18758 /* We use char because int might match the return type of a gcc2
18759 builtin and then its argument prototype would still apply. */
18760 char $ac_func();
18761
18762 int main() {
18763
18764 /* The GNU C library defines this for functions which it implements
18765 to always fail with ENOSYS. Some functions are actually named
18766 something starting with __ and the normal name is an alias. */
18767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18768 choke me
18769 #else
18770 $ac_func();
18771 #endif
18772
18773 ; return 0; }
18774 EOF
18775 if { (eval echo configure:18776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18776 rm -rf conftest*
18777 eval "ac_cv_func_$ac_func=yes"
18778 else
18779 echo "configure: failed program was:" >&5
18780 cat conftest.$ac_ext >&5
18781 rm -rf conftest*
18782 eval "ac_cv_func_$ac_func=no"
18783 fi
18784 rm -f conftest*
18785 fi
18786
18787 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18788 echo "$ac_t""yes" 1>&6
18789 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18790 cat >> confdefs.h <<EOF
18791 #define $ac_tr_func 1
18792 EOF
18793
18794 else
18795 echo "$ac_t""no" 1>&6
18796 fi
18797 done
18798
18799 else
18800
18801 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
18802 echo "configure:18803: checking for _fabsl declaration" >&5
18803 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
18804 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
18805 echo $ac_n "(cached) $ac_c" 1>&6
18806 else
18807
18808
18809 ac_ext=C
18810 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18811 ac_cpp='$CXXCPP $CPPFLAGS'
18812 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18813 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18814 cross_compiling=$ac_cv_prog_cxx_cross
18815
18816 cat > conftest.$ac_ext <<EOF
18817 #line 18818 "configure"
18818 #include "confdefs.h"
18819 #include <math.h>
18820 #ifdef HAVE_IEEEFP_H
18821 #include <ieeefp.h>
18822 #endif
18823
18824 int main() {
18825 _fabsl(0);
18826 ; return 0; }
18827 EOF
18828 if { (eval echo configure:18829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18829 rm -rf conftest*
18830 glibcpp_cv_func__fabsl_use=yes
18831 else
18832 echo "configure: failed program was:" >&5
18833 cat conftest.$ac_ext >&5
18834 rm -rf conftest*
18835 glibcpp_cv_func__fabsl_use=no
18836 fi
18837 rm -f conftest*
18838 ac_ext=c
18839 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18840 ac_cpp='$CPP $CPPFLAGS'
18841 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18842 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18843 cross_compiling=$ac_cv_prog_cc_cross
18844
18845
18846 fi
18847
18848 fi
18849 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
18850
18851 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
18852 for ac_func in _fabsl
18853 do
18854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18855 echo "configure:18856: checking for $ac_func" >&5
18856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18857 echo $ac_n "(cached) $ac_c" 1>&6
18858 else
18859 cat > conftest.$ac_ext <<EOF
18860 #line 18861 "configure"
18861 #include "confdefs.h"
18862 /* System header to define __stub macros and hopefully few prototypes,
18863 which can conflict with char $ac_func(); below. */
18864 #include <assert.h>
18865 /* Override any gcc2 internal prototype to avoid an error. */
18866 /* We use char because int might match the return type of a gcc2
18867 builtin and then its argument prototype would still apply. */
18868 char $ac_func();
18869
18870 int main() {
18871
18872 /* The GNU C library defines this for functions which it implements
18873 to always fail with ENOSYS. Some functions are actually named
18874 something starting with __ and the normal name is an alias. */
18875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18876 choke me
18877 #else
18878 $ac_func();
18879 #endif
18880
18881 ; return 0; }
18882 EOF
18883 if { (eval echo configure:18884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18884 rm -rf conftest*
18885 eval "ac_cv_func_$ac_func=yes"
18886 else
18887 echo "configure: failed program was:" >&5
18888 cat conftest.$ac_ext >&5
18889 rm -rf conftest*
18890 eval "ac_cv_func_$ac_func=no"
18891 fi
18892 rm -f conftest*
18893 fi
18894
18895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18896 echo "$ac_t""yes" 1>&6
18897 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18898 cat >> confdefs.h <<EOF
18899 #define $ac_tr_func 1
18900 EOF
18901
18902 else
18903 echo "$ac_t""no" 1>&6
18904 fi
18905 done
18906
18907 fi
18908 fi
18909
18910
18911
18912 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
18913 echo "configure:18914: checking for fmodl declaration" >&5
18914 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
18915 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
18916 echo $ac_n "(cached) $ac_c" 1>&6
18917 else
18918
18919
18920 ac_ext=C
18921 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18922 ac_cpp='$CXXCPP $CPPFLAGS'
18923 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18924 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18925 cross_compiling=$ac_cv_prog_cxx_cross
18926
18927 cat > conftest.$ac_ext <<EOF
18928 #line 18929 "configure"
18929 #include "confdefs.h"
18930 #include <math.h>
18931 int main() {
18932 fmodl(0, 0);
18933 ; return 0; }
18934 EOF
18935 if { (eval echo configure:18936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18936 rm -rf conftest*
18937 glibcpp_cv_func_fmodl_use=yes
18938 else
18939 echo "configure: failed program was:" >&5
18940 cat conftest.$ac_ext >&5
18941 rm -rf conftest*
18942 glibcpp_cv_func_fmodl_use=no
18943 fi
18944 rm -f conftest*
18945 ac_ext=c
18946 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18947 ac_cpp='$CPP $CPPFLAGS'
18948 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18949 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18950 cross_compiling=$ac_cv_prog_cc_cross
18951
18952
18953 fi
18954
18955 fi
18956 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
18957
18958 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
18959 for ac_func in fmodl
18960 do
18961 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18962 echo "configure:18963: checking for $ac_func" >&5
18963 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18964 echo $ac_n "(cached) $ac_c" 1>&6
18965 else
18966 cat > conftest.$ac_ext <<EOF
18967 #line 18968 "configure"
18968 #include "confdefs.h"
18969 /* System header to define __stub macros and hopefully few prototypes,
18970 which can conflict with char $ac_func(); below. */
18971 #include <assert.h>
18972 /* Override any gcc2 internal prototype to avoid an error. */
18973 /* We use char because int might match the return type of a gcc2
18974 builtin and then its argument prototype would still apply. */
18975 char $ac_func();
18976
18977 int main() {
18978
18979 /* The GNU C library defines this for functions which it implements
18980 to always fail with ENOSYS. Some functions are actually named
18981 something starting with __ and the normal name is an alias. */
18982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18983 choke me
18984 #else
18985 $ac_func();
18986 #endif
18987
18988 ; return 0; }
18989 EOF
18990 if { (eval echo configure:18991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18991 rm -rf conftest*
18992 eval "ac_cv_func_$ac_func=yes"
18993 else
18994 echo "configure: failed program was:" >&5
18995 cat conftest.$ac_ext >&5
18996 rm -rf conftest*
18997 eval "ac_cv_func_$ac_func=no"
18998 fi
18999 rm -f conftest*
19000 fi
19001
19002 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19003 echo "$ac_t""yes" 1>&6
19004 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19005 cat >> confdefs.h <<EOF
19006 #define $ac_tr_func 1
19007 EOF
19008
19009 else
19010 echo "$ac_t""no" 1>&6
19011 fi
19012 done
19013
19014 else
19015
19016 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
19017 echo "configure:19018: checking for _fmodl declaration" >&5
19018 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
19019 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
19020 echo $ac_n "(cached) $ac_c" 1>&6
19021 else
19022
19023
19024 ac_ext=C
19025 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19026 ac_cpp='$CXXCPP $CPPFLAGS'
19027 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19028 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19029 cross_compiling=$ac_cv_prog_cxx_cross
19030
19031 cat > conftest.$ac_ext <<EOF
19032 #line 19033 "configure"
19033 #include "confdefs.h"
19034 #include <math.h>
19035 int main() {
19036 _fmodl(0, 0);
19037 ; return 0; }
19038 EOF
19039 if { (eval echo configure:19040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19040 rm -rf conftest*
19041 glibcpp_cv_func__fmodl_use=yes
19042 else
19043 echo "configure: failed program was:" >&5
19044 cat conftest.$ac_ext >&5
19045 rm -rf conftest*
19046 glibcpp_cv_func__fmodl_use=no
19047 fi
19048 rm -f conftest*
19049 ac_ext=c
19050 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19051 ac_cpp='$CPP $CPPFLAGS'
19052 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19053 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19054 cross_compiling=$ac_cv_prog_cc_cross
19055
19056
19057 fi
19058
19059 fi
19060 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
19061
19062 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
19063 for ac_func in _fmodl
19064 do
19065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19066 echo "configure:19067: checking for $ac_func" >&5
19067 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19068 echo $ac_n "(cached) $ac_c" 1>&6
19069 else
19070 cat > conftest.$ac_ext <<EOF
19071 #line 19072 "configure"
19072 #include "confdefs.h"
19073 /* System header to define __stub macros and hopefully few prototypes,
19074 which can conflict with char $ac_func(); below. */
19075 #include <assert.h>
19076 /* Override any gcc2 internal prototype to avoid an error. */
19077 /* We use char because int might match the return type of a gcc2
19078 builtin and then its argument prototype would still apply. */
19079 char $ac_func();
19080
19081 int main() {
19082
19083 /* The GNU C library defines this for functions which it implements
19084 to always fail with ENOSYS. Some functions are actually named
19085 something starting with __ and the normal name is an alias. */
19086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19087 choke me
19088 #else
19089 $ac_func();
19090 #endif
19091
19092 ; return 0; }
19093 EOF
19094 if { (eval echo configure:19095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19095 rm -rf conftest*
19096 eval "ac_cv_func_$ac_func=yes"
19097 else
19098 echo "configure: failed program was:" >&5
19099 cat conftest.$ac_ext >&5
19100 rm -rf conftest*
19101 eval "ac_cv_func_$ac_func=no"
19102 fi
19103 rm -f conftest*
19104 fi
19105
19106 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19107 echo "$ac_t""yes" 1>&6
19108 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19109 cat >> confdefs.h <<EOF
19110 #define $ac_tr_func 1
19111 EOF
19112
19113 else
19114 echo "$ac_t""no" 1>&6
19115 fi
19116 done
19117
19118 fi
19119 fi
19120
19121
19122
19123 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
19124 echo "configure:19125: checking for frexpl declaration" >&5
19125 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
19126 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
19127 echo $ac_n "(cached) $ac_c" 1>&6
19128 else
19129
19130
19131 ac_ext=C
19132 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19133 ac_cpp='$CXXCPP $CPPFLAGS'
19134 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19135 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19136 cross_compiling=$ac_cv_prog_cxx_cross
19137
19138 cat > conftest.$ac_ext <<EOF
19139 #line 19140 "configure"
19140 #include "confdefs.h"
19141 #include <math.h>
19142 int main() {
19143 frexpl(0, 0);
19144 ; return 0; }
19145 EOF
19146 if { (eval echo configure:19147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19147 rm -rf conftest*
19148 glibcpp_cv_func_frexpl_use=yes
19149 else
19150 echo "configure: failed program was:" >&5
19151 cat conftest.$ac_ext >&5
19152 rm -rf conftest*
19153 glibcpp_cv_func_frexpl_use=no
19154 fi
19155 rm -f conftest*
19156 ac_ext=c
19157 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19158 ac_cpp='$CPP $CPPFLAGS'
19159 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19160 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19161 cross_compiling=$ac_cv_prog_cc_cross
19162
19163
19164 fi
19165
19166 fi
19167 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
19168
19169 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
19170 for ac_func in frexpl
19171 do
19172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19173 echo "configure:19174: checking for $ac_func" >&5
19174 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19175 echo $ac_n "(cached) $ac_c" 1>&6
19176 else
19177 cat > conftest.$ac_ext <<EOF
19178 #line 19179 "configure"
19179 #include "confdefs.h"
19180 /* System header to define __stub macros and hopefully few prototypes,
19181 which can conflict with char $ac_func(); below. */
19182 #include <assert.h>
19183 /* Override any gcc2 internal prototype to avoid an error. */
19184 /* We use char because int might match the return type of a gcc2
19185 builtin and then its argument prototype would still apply. */
19186 char $ac_func();
19187
19188 int main() {
19189
19190 /* The GNU C library defines this for functions which it implements
19191 to always fail with ENOSYS. Some functions are actually named
19192 something starting with __ and the normal name is an alias. */
19193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19194 choke me
19195 #else
19196 $ac_func();
19197 #endif
19198
19199 ; return 0; }
19200 EOF
19201 if { (eval echo configure:19202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19202 rm -rf conftest*
19203 eval "ac_cv_func_$ac_func=yes"
19204 else
19205 echo "configure: failed program was:" >&5
19206 cat conftest.$ac_ext >&5
19207 rm -rf conftest*
19208 eval "ac_cv_func_$ac_func=no"
19209 fi
19210 rm -f conftest*
19211 fi
19212
19213 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19214 echo "$ac_t""yes" 1>&6
19215 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19216 cat >> confdefs.h <<EOF
19217 #define $ac_tr_func 1
19218 EOF
19219
19220 else
19221 echo "$ac_t""no" 1>&6
19222 fi
19223 done
19224
19225 else
19226
19227 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
19228 echo "configure:19229: checking for _frexpl declaration" >&5
19229 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
19230 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
19231 echo $ac_n "(cached) $ac_c" 1>&6
19232 else
19233
19234
19235 ac_ext=C
19236 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19237 ac_cpp='$CXXCPP $CPPFLAGS'
19238 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19239 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19240 cross_compiling=$ac_cv_prog_cxx_cross
19241
19242 cat > conftest.$ac_ext <<EOF
19243 #line 19244 "configure"
19244 #include "confdefs.h"
19245 #include <math.h>
19246 int main() {
19247 _frexpl(0, 0);
19248 ; return 0; }
19249 EOF
19250 if { (eval echo configure:19251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19251 rm -rf conftest*
19252 glibcpp_cv_func__frexpl_use=yes
19253 else
19254 echo "configure: failed program was:" >&5
19255 cat conftest.$ac_ext >&5
19256 rm -rf conftest*
19257 glibcpp_cv_func__frexpl_use=no
19258 fi
19259 rm -f conftest*
19260 ac_ext=c
19261 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19262 ac_cpp='$CPP $CPPFLAGS'
19263 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19264 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19265 cross_compiling=$ac_cv_prog_cc_cross
19266
19267
19268 fi
19269
19270 fi
19271 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
19272
19273 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
19274 for ac_func in _frexpl
19275 do
19276 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19277 echo "configure:19278: checking for $ac_func" >&5
19278 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19279 echo $ac_n "(cached) $ac_c" 1>&6
19280 else
19281 cat > conftest.$ac_ext <<EOF
19282 #line 19283 "configure"
19283 #include "confdefs.h"
19284 /* System header to define __stub macros and hopefully few prototypes,
19285 which can conflict with char $ac_func(); below. */
19286 #include <assert.h>
19287 /* Override any gcc2 internal prototype to avoid an error. */
19288 /* We use char because int might match the return type of a gcc2
19289 builtin and then its argument prototype would still apply. */
19290 char $ac_func();
19291
19292 int main() {
19293
19294 /* The GNU C library defines this for functions which it implements
19295 to always fail with ENOSYS. Some functions are actually named
19296 something starting with __ and the normal name is an alias. */
19297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19298 choke me
19299 #else
19300 $ac_func();
19301 #endif
19302
19303 ; return 0; }
19304 EOF
19305 if { (eval echo configure:19306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19306 rm -rf conftest*
19307 eval "ac_cv_func_$ac_func=yes"
19308 else
19309 echo "configure: failed program was:" >&5
19310 cat conftest.$ac_ext >&5
19311 rm -rf conftest*
19312 eval "ac_cv_func_$ac_func=no"
19313 fi
19314 rm -f conftest*
19315 fi
19316
19317 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19318 echo "$ac_t""yes" 1>&6
19319 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19320 cat >> confdefs.h <<EOF
19321 #define $ac_tr_func 1
19322 EOF
19323
19324 else
19325 echo "$ac_t""no" 1>&6
19326 fi
19327 done
19328
19329 fi
19330 fi
19331
19332
19333
19334 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
19335 echo "configure:19336: checking for hypotl declaration" >&5
19336 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
19337 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
19338 echo $ac_n "(cached) $ac_c" 1>&6
19339 else
19340
19341
19342 ac_ext=C
19343 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19344 ac_cpp='$CXXCPP $CPPFLAGS'
19345 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19346 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19347 cross_compiling=$ac_cv_prog_cxx_cross
19348
19349 cat > conftest.$ac_ext <<EOF
19350 #line 19351 "configure"
19351 #include "confdefs.h"
19352 #include <math.h>
19353 int main() {
19354 hypotl(0, 0);
19355 ; return 0; }
19356 EOF
19357 if { (eval echo configure:19358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19358 rm -rf conftest*
19359 glibcpp_cv_func_hypotl_use=yes
19360 else
19361 echo "configure: failed program was:" >&5
19362 cat conftest.$ac_ext >&5
19363 rm -rf conftest*
19364 glibcpp_cv_func_hypotl_use=no
19365 fi
19366 rm -f conftest*
19367 ac_ext=c
19368 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19369 ac_cpp='$CPP $CPPFLAGS'
19370 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19371 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19372 cross_compiling=$ac_cv_prog_cc_cross
19373
19374
19375 fi
19376
19377 fi
19378 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
19379
19380 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
19381 for ac_func in hypotl
19382 do
19383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19384 echo "configure:19385: checking for $ac_func" >&5
19385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19386 echo $ac_n "(cached) $ac_c" 1>&6
19387 else
19388 cat > conftest.$ac_ext <<EOF
19389 #line 19390 "configure"
19390 #include "confdefs.h"
19391 /* System header to define __stub macros and hopefully few prototypes,
19392 which can conflict with char $ac_func(); below. */
19393 #include <assert.h>
19394 /* Override any gcc2 internal prototype to avoid an error. */
19395 /* We use char because int might match the return type of a gcc2
19396 builtin and then its argument prototype would still apply. */
19397 char $ac_func();
19398
19399 int main() {
19400
19401 /* The GNU C library defines this for functions which it implements
19402 to always fail with ENOSYS. Some functions are actually named
19403 something starting with __ and the normal name is an alias. */
19404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19405 choke me
19406 #else
19407 $ac_func();
19408 #endif
19409
19410 ; return 0; }
19411 EOF
19412 if { (eval echo configure:19413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19413 rm -rf conftest*
19414 eval "ac_cv_func_$ac_func=yes"
19415 else
19416 echo "configure: failed program was:" >&5
19417 cat conftest.$ac_ext >&5
19418 rm -rf conftest*
19419 eval "ac_cv_func_$ac_func=no"
19420 fi
19421 rm -f conftest*
19422 fi
19423
19424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19425 echo "$ac_t""yes" 1>&6
19426 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19427 cat >> confdefs.h <<EOF
19428 #define $ac_tr_func 1
19429 EOF
19430
19431 else
19432 echo "$ac_t""no" 1>&6
19433 fi
19434 done
19435
19436 else
19437
19438 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
19439 echo "configure:19440: checking for _hypotl declaration" >&5
19440 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
19441 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
19442 echo $ac_n "(cached) $ac_c" 1>&6
19443 else
19444
19445
19446 ac_ext=C
19447 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19448 ac_cpp='$CXXCPP $CPPFLAGS'
19449 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19450 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19451 cross_compiling=$ac_cv_prog_cxx_cross
19452
19453 cat > conftest.$ac_ext <<EOF
19454 #line 19455 "configure"
19455 #include "confdefs.h"
19456 #include <math.h>
19457 int main() {
19458 _hypotl(0, 0);
19459 ; return 0; }
19460 EOF
19461 if { (eval echo configure:19462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19462 rm -rf conftest*
19463 glibcpp_cv_func__hypotl_use=yes
19464 else
19465 echo "configure: failed program was:" >&5
19466 cat conftest.$ac_ext >&5
19467 rm -rf conftest*
19468 glibcpp_cv_func__hypotl_use=no
19469 fi
19470 rm -f conftest*
19471 ac_ext=c
19472 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19473 ac_cpp='$CPP $CPPFLAGS'
19474 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19475 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19476 cross_compiling=$ac_cv_prog_cc_cross
19477
19478
19479 fi
19480
19481 fi
19482 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
19483
19484 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
19485 for ac_func in _hypotl
19486 do
19487 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19488 echo "configure:19489: checking for $ac_func" >&5
19489 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19490 echo $ac_n "(cached) $ac_c" 1>&6
19491 else
19492 cat > conftest.$ac_ext <<EOF
19493 #line 19494 "configure"
19494 #include "confdefs.h"
19495 /* System header to define __stub macros and hopefully few prototypes,
19496 which can conflict with char $ac_func(); below. */
19497 #include <assert.h>
19498 /* Override any gcc2 internal prototype to avoid an error. */
19499 /* We use char because int might match the return type of a gcc2
19500 builtin and then its argument prototype would still apply. */
19501 char $ac_func();
19502
19503 int main() {
19504
19505 /* The GNU C library defines this for functions which it implements
19506 to always fail with ENOSYS. Some functions are actually named
19507 something starting with __ and the normal name is an alias. */
19508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19509 choke me
19510 #else
19511 $ac_func();
19512 #endif
19513
19514 ; return 0; }
19515 EOF
19516 if { (eval echo configure:19517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19517 rm -rf conftest*
19518 eval "ac_cv_func_$ac_func=yes"
19519 else
19520 echo "configure: failed program was:" >&5
19521 cat conftest.$ac_ext >&5
19522 rm -rf conftest*
19523 eval "ac_cv_func_$ac_func=no"
19524 fi
19525 rm -f conftest*
19526 fi
19527
19528 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19529 echo "$ac_t""yes" 1>&6
19530 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19531 cat >> confdefs.h <<EOF
19532 #define $ac_tr_func 1
19533 EOF
19534
19535 else
19536 echo "$ac_t""no" 1>&6
19537 fi
19538 done
19539
19540 fi
19541 fi
19542
19543
19544
19545 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
19546 echo "configure:19547: checking for ldexpl declaration" >&5
19547 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
19548 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
19549 echo $ac_n "(cached) $ac_c" 1>&6
19550 else
19551
19552
19553 ac_ext=C
19554 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19555 ac_cpp='$CXXCPP $CPPFLAGS'
19556 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19557 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19558 cross_compiling=$ac_cv_prog_cxx_cross
19559
19560 cat > conftest.$ac_ext <<EOF
19561 #line 19562 "configure"
19562 #include "confdefs.h"
19563 #include <math.h>
19564 int main() {
19565 ldexpl(0, 0);
19566 ; return 0; }
19567 EOF
19568 if { (eval echo configure:19569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19569 rm -rf conftest*
19570 glibcpp_cv_func_ldexpl_use=yes
19571 else
19572 echo "configure: failed program was:" >&5
19573 cat conftest.$ac_ext >&5
19574 rm -rf conftest*
19575 glibcpp_cv_func_ldexpl_use=no
19576 fi
19577 rm -f conftest*
19578 ac_ext=c
19579 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19580 ac_cpp='$CPP $CPPFLAGS'
19581 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19582 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19583 cross_compiling=$ac_cv_prog_cc_cross
19584
19585
19586 fi
19587
19588 fi
19589 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
19590
19591 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
19592 for ac_func in ldexpl
19593 do
19594 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19595 echo "configure:19596: checking for $ac_func" >&5
19596 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19597 echo $ac_n "(cached) $ac_c" 1>&6
19598 else
19599 cat > conftest.$ac_ext <<EOF
19600 #line 19601 "configure"
19601 #include "confdefs.h"
19602 /* System header to define __stub macros and hopefully few prototypes,
19603 which can conflict with char $ac_func(); below. */
19604 #include <assert.h>
19605 /* Override any gcc2 internal prototype to avoid an error. */
19606 /* We use char because int might match the return type of a gcc2
19607 builtin and then its argument prototype would still apply. */
19608 char $ac_func();
19609
19610 int main() {
19611
19612 /* The GNU C library defines this for functions which it implements
19613 to always fail with ENOSYS. Some functions are actually named
19614 something starting with __ and the normal name is an alias. */
19615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19616 choke me
19617 #else
19618 $ac_func();
19619 #endif
19620
19621 ; return 0; }
19622 EOF
19623 if { (eval echo configure:19624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19624 rm -rf conftest*
19625 eval "ac_cv_func_$ac_func=yes"
19626 else
19627 echo "configure: failed program was:" >&5
19628 cat conftest.$ac_ext >&5
19629 rm -rf conftest*
19630 eval "ac_cv_func_$ac_func=no"
19631 fi
19632 rm -f conftest*
19633 fi
19634
19635 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19636 echo "$ac_t""yes" 1>&6
19637 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19638 cat >> confdefs.h <<EOF
19639 #define $ac_tr_func 1
19640 EOF
19641
19642 else
19643 echo "$ac_t""no" 1>&6
19644 fi
19645 done
19646
19647 else
19648
19649 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
19650 echo "configure:19651: checking for _ldexpl declaration" >&5
19651 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
19652 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
19653 echo $ac_n "(cached) $ac_c" 1>&6
19654 else
19655
19656
19657 ac_ext=C
19658 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19659 ac_cpp='$CXXCPP $CPPFLAGS'
19660 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19661 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19662 cross_compiling=$ac_cv_prog_cxx_cross
19663
19664 cat > conftest.$ac_ext <<EOF
19665 #line 19666 "configure"
19666 #include "confdefs.h"
19667 #include <math.h>
19668 int main() {
19669 _ldexpl(0, 0);
19670 ; return 0; }
19671 EOF
19672 if { (eval echo configure:19673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19673 rm -rf conftest*
19674 glibcpp_cv_func__ldexpl_use=yes
19675 else
19676 echo "configure: failed program was:" >&5
19677 cat conftest.$ac_ext >&5
19678 rm -rf conftest*
19679 glibcpp_cv_func__ldexpl_use=no
19680 fi
19681 rm -f conftest*
19682 ac_ext=c
19683 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19684 ac_cpp='$CPP $CPPFLAGS'
19685 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19686 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19687 cross_compiling=$ac_cv_prog_cc_cross
19688
19689
19690 fi
19691
19692 fi
19693 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
19694
19695 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
19696 for ac_func in _ldexpl
19697 do
19698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19699 echo "configure:19700: checking for $ac_func" >&5
19700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19701 echo $ac_n "(cached) $ac_c" 1>&6
19702 else
19703 cat > conftest.$ac_ext <<EOF
19704 #line 19705 "configure"
19705 #include "confdefs.h"
19706 /* System header to define __stub macros and hopefully few prototypes,
19707 which can conflict with char $ac_func(); below. */
19708 #include <assert.h>
19709 /* Override any gcc2 internal prototype to avoid an error. */
19710 /* We use char because int might match the return type of a gcc2
19711 builtin and then its argument prototype would still apply. */
19712 char $ac_func();
19713
19714 int main() {
19715
19716 /* The GNU C library defines this for functions which it implements
19717 to always fail with ENOSYS. Some functions are actually named
19718 something starting with __ and the normal name is an alias. */
19719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19720 choke me
19721 #else
19722 $ac_func();
19723 #endif
19724
19725 ; return 0; }
19726 EOF
19727 if { (eval echo configure:19728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19728 rm -rf conftest*
19729 eval "ac_cv_func_$ac_func=yes"
19730 else
19731 echo "configure: failed program was:" >&5
19732 cat conftest.$ac_ext >&5
19733 rm -rf conftest*
19734 eval "ac_cv_func_$ac_func=no"
19735 fi
19736 rm -f conftest*
19737 fi
19738
19739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19740 echo "$ac_t""yes" 1>&6
19741 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19742 cat >> confdefs.h <<EOF
19743 #define $ac_tr_func 1
19744 EOF
19745
19746 else
19747 echo "$ac_t""no" 1>&6
19748 fi
19749 done
19750
19751 fi
19752 fi
19753
19754
19755
19756 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
19757 echo "configure:19758: checking for logl declaration" >&5
19758 if test x${glibcpp_cv_func_logl_use+set} != xset; then
19759 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
19760 echo $ac_n "(cached) $ac_c" 1>&6
19761 else
19762
19763
19764 ac_ext=C
19765 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19766 ac_cpp='$CXXCPP $CPPFLAGS'
19767 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19768 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19769 cross_compiling=$ac_cv_prog_cxx_cross
19770
19771 cat > conftest.$ac_ext <<EOF
19772 #line 19773 "configure"
19773 #include "confdefs.h"
19774 #include <math.h>
19775 #ifdef HAVE_IEEEFP_H
19776 #include <ieeefp.h>
19777 #endif
19778
19779 int main() {
19780 logl(0);
19781 ; return 0; }
19782 EOF
19783 if { (eval echo configure:19784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19784 rm -rf conftest*
19785 glibcpp_cv_func_logl_use=yes
19786 else
19787 echo "configure: failed program was:" >&5
19788 cat conftest.$ac_ext >&5
19789 rm -rf conftest*
19790 glibcpp_cv_func_logl_use=no
19791 fi
19792 rm -f conftest*
19793 ac_ext=c
19794 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19795 ac_cpp='$CPP $CPPFLAGS'
19796 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19797 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19798 cross_compiling=$ac_cv_prog_cc_cross
19799
19800
19801 fi
19802
19803 fi
19804 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
19805
19806 if test x$glibcpp_cv_func_logl_use = x"yes"; then
19807 for ac_func in logl
19808 do
19809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19810 echo "configure:19811: checking for $ac_func" >&5
19811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19812 echo $ac_n "(cached) $ac_c" 1>&6
19813 else
19814 cat > conftest.$ac_ext <<EOF
19815 #line 19816 "configure"
19816 #include "confdefs.h"
19817 /* System header to define __stub macros and hopefully few prototypes,
19818 which can conflict with char $ac_func(); below. */
19819 #include <assert.h>
19820 /* Override any gcc2 internal prototype to avoid an error. */
19821 /* We use char because int might match the return type of a gcc2
19822 builtin and then its argument prototype would still apply. */
19823 char $ac_func();
19824
19825 int main() {
19826
19827 /* The GNU C library defines this for functions which it implements
19828 to always fail with ENOSYS. Some functions are actually named
19829 something starting with __ and the normal name is an alias. */
19830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19831 choke me
19832 #else
19833 $ac_func();
19834 #endif
19835
19836 ; return 0; }
19837 EOF
19838 if { (eval echo configure:19839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19839 rm -rf conftest*
19840 eval "ac_cv_func_$ac_func=yes"
19841 else
19842 echo "configure: failed program was:" >&5
19843 cat conftest.$ac_ext >&5
19844 rm -rf conftest*
19845 eval "ac_cv_func_$ac_func=no"
19846 fi
19847 rm -f conftest*
19848 fi
19849
19850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19851 echo "$ac_t""yes" 1>&6
19852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19853 cat >> confdefs.h <<EOF
19854 #define $ac_tr_func 1
19855 EOF
19856
19857 else
19858 echo "$ac_t""no" 1>&6
19859 fi
19860 done
19861
19862 else
19863
19864 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
19865 echo "configure:19866: checking for _logl declaration" >&5
19866 if test x${glibcpp_cv_func__logl_use+set} != xset; then
19867 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
19868 echo $ac_n "(cached) $ac_c" 1>&6
19869 else
19870
19871
19872 ac_ext=C
19873 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19874 ac_cpp='$CXXCPP $CPPFLAGS'
19875 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19876 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19877 cross_compiling=$ac_cv_prog_cxx_cross
19878
19879 cat > conftest.$ac_ext <<EOF
19880 #line 19881 "configure"
19881 #include "confdefs.h"
19882 #include <math.h>
19883 #ifdef HAVE_IEEEFP_H
19884 #include <ieeefp.h>
19885 #endif
19886
19887 int main() {
19888 _logl(0);
19889 ; return 0; }
19890 EOF
19891 if { (eval echo configure:19892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19892 rm -rf conftest*
19893 glibcpp_cv_func__logl_use=yes
19894 else
19895 echo "configure: failed program was:" >&5
19896 cat conftest.$ac_ext >&5
19897 rm -rf conftest*
19898 glibcpp_cv_func__logl_use=no
19899 fi
19900 rm -f conftest*
19901 ac_ext=c
19902 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19903 ac_cpp='$CPP $CPPFLAGS'
19904 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19905 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19906 cross_compiling=$ac_cv_prog_cc_cross
19907
19908
19909 fi
19910
19911 fi
19912 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
19913
19914 if test x$glibcpp_cv_func__logl_use = x"yes"; then
19915 for ac_func in _logl
19916 do
19917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19918 echo "configure:19919: checking for $ac_func" >&5
19919 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19920 echo $ac_n "(cached) $ac_c" 1>&6
19921 else
19922 cat > conftest.$ac_ext <<EOF
19923 #line 19924 "configure"
19924 #include "confdefs.h"
19925 /* System header to define __stub macros and hopefully few prototypes,
19926 which can conflict with char $ac_func(); below. */
19927 #include <assert.h>
19928 /* Override any gcc2 internal prototype to avoid an error. */
19929 /* We use char because int might match the return type of a gcc2
19930 builtin and then its argument prototype would still apply. */
19931 char $ac_func();
19932
19933 int main() {
19934
19935 /* The GNU C library defines this for functions which it implements
19936 to always fail with ENOSYS. Some functions are actually named
19937 something starting with __ and the normal name is an alias. */
19938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19939 choke me
19940 #else
19941 $ac_func();
19942 #endif
19943
19944 ; return 0; }
19945 EOF
19946 if { (eval echo configure:19947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19947 rm -rf conftest*
19948 eval "ac_cv_func_$ac_func=yes"
19949 else
19950 echo "configure: failed program was:" >&5
19951 cat conftest.$ac_ext >&5
19952 rm -rf conftest*
19953 eval "ac_cv_func_$ac_func=no"
19954 fi
19955 rm -f conftest*
19956 fi
19957
19958 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19959 echo "$ac_t""yes" 1>&6
19960 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19961 cat >> confdefs.h <<EOF
19962 #define $ac_tr_func 1
19963 EOF
19964
19965 else
19966 echo "$ac_t""no" 1>&6
19967 fi
19968 done
19969
19970 fi
19971 fi
19972
19973
19974
19975 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
19976 echo "configure:19977: checking for log10l declaration" >&5
19977 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
19978 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
19979 echo $ac_n "(cached) $ac_c" 1>&6
19980 else
19981
19982
19983 ac_ext=C
19984 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19985 ac_cpp='$CXXCPP $CPPFLAGS'
19986 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19987 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19988 cross_compiling=$ac_cv_prog_cxx_cross
19989
19990 cat > conftest.$ac_ext <<EOF
19991 #line 19992 "configure"
19992 #include "confdefs.h"
19993 #include <math.h>
19994 #ifdef HAVE_IEEEFP_H
19995 #include <ieeefp.h>
19996 #endif
19997
19998 int main() {
19999 log10l(0);
20000 ; return 0; }
20001 EOF
20002 if { (eval echo configure:20003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20003 rm -rf conftest*
20004 glibcpp_cv_func_log10l_use=yes
20005 else
20006 echo "configure: failed program was:" >&5
20007 cat conftest.$ac_ext >&5
20008 rm -rf conftest*
20009 glibcpp_cv_func_log10l_use=no
20010 fi
20011 rm -f conftest*
20012 ac_ext=c
20013 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20014 ac_cpp='$CPP $CPPFLAGS'
20015 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20016 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20017 cross_compiling=$ac_cv_prog_cc_cross
20018
20019
20020 fi
20021
20022 fi
20023 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
20024
20025 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
20026 for ac_func in log10l
20027 do
20028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20029 echo "configure:20030: checking for $ac_func" >&5
20030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20031 echo $ac_n "(cached) $ac_c" 1>&6
20032 else
20033 cat > conftest.$ac_ext <<EOF
20034 #line 20035 "configure"
20035 #include "confdefs.h"
20036 /* System header to define __stub macros and hopefully few prototypes,
20037 which can conflict with char $ac_func(); below. */
20038 #include <assert.h>
20039 /* Override any gcc2 internal prototype to avoid an error. */
20040 /* We use char because int might match the return type of a gcc2
20041 builtin and then its argument prototype would still apply. */
20042 char $ac_func();
20043
20044 int main() {
20045
20046 /* The GNU C library defines this for functions which it implements
20047 to always fail with ENOSYS. Some functions are actually named
20048 something starting with __ and the normal name is an alias. */
20049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20050 choke me
20051 #else
20052 $ac_func();
20053 #endif
20054
20055 ; return 0; }
20056 EOF
20057 if { (eval echo configure:20058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20058 rm -rf conftest*
20059 eval "ac_cv_func_$ac_func=yes"
20060 else
20061 echo "configure: failed program was:" >&5
20062 cat conftest.$ac_ext >&5
20063 rm -rf conftest*
20064 eval "ac_cv_func_$ac_func=no"
20065 fi
20066 rm -f conftest*
20067 fi
20068
20069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20070 echo "$ac_t""yes" 1>&6
20071 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20072 cat >> confdefs.h <<EOF
20073 #define $ac_tr_func 1
20074 EOF
20075
20076 else
20077 echo "$ac_t""no" 1>&6
20078 fi
20079 done
20080
20081 else
20082
20083 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
20084 echo "configure:20085: checking for _log10l declaration" >&5
20085 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
20086 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
20087 echo $ac_n "(cached) $ac_c" 1>&6
20088 else
20089
20090
20091 ac_ext=C
20092 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20093 ac_cpp='$CXXCPP $CPPFLAGS'
20094 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20095 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20096 cross_compiling=$ac_cv_prog_cxx_cross
20097
20098 cat > conftest.$ac_ext <<EOF
20099 #line 20100 "configure"
20100 #include "confdefs.h"
20101 #include <math.h>
20102 #ifdef HAVE_IEEEFP_H
20103 #include <ieeefp.h>
20104 #endif
20105
20106 int main() {
20107 _log10l(0);
20108 ; return 0; }
20109 EOF
20110 if { (eval echo configure:20111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20111 rm -rf conftest*
20112 glibcpp_cv_func__log10l_use=yes
20113 else
20114 echo "configure: failed program was:" >&5
20115 cat conftest.$ac_ext >&5
20116 rm -rf conftest*
20117 glibcpp_cv_func__log10l_use=no
20118 fi
20119 rm -f conftest*
20120 ac_ext=c
20121 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20122 ac_cpp='$CPP $CPPFLAGS'
20123 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20124 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20125 cross_compiling=$ac_cv_prog_cc_cross
20126
20127
20128 fi
20129
20130 fi
20131 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
20132
20133 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
20134 for ac_func in _log10l
20135 do
20136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20137 echo "configure:20138: checking for $ac_func" >&5
20138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20139 echo $ac_n "(cached) $ac_c" 1>&6
20140 else
20141 cat > conftest.$ac_ext <<EOF
20142 #line 20143 "configure"
20143 #include "confdefs.h"
20144 /* System header to define __stub macros and hopefully few prototypes,
20145 which can conflict with char $ac_func(); below. */
20146 #include <assert.h>
20147 /* Override any gcc2 internal prototype to avoid an error. */
20148 /* We use char because int might match the return type of a gcc2
20149 builtin and then its argument prototype would still apply. */
20150 char $ac_func();
20151
20152 int main() {
20153
20154 /* The GNU C library defines this for functions which it implements
20155 to always fail with ENOSYS. Some functions are actually named
20156 something starting with __ and the normal name is an alias. */
20157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20158 choke me
20159 #else
20160 $ac_func();
20161 #endif
20162
20163 ; return 0; }
20164 EOF
20165 if { (eval echo configure:20166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20166 rm -rf conftest*
20167 eval "ac_cv_func_$ac_func=yes"
20168 else
20169 echo "configure: failed program was:" >&5
20170 cat conftest.$ac_ext >&5
20171 rm -rf conftest*
20172 eval "ac_cv_func_$ac_func=no"
20173 fi
20174 rm -f conftest*
20175 fi
20176
20177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20178 echo "$ac_t""yes" 1>&6
20179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20180 cat >> confdefs.h <<EOF
20181 #define $ac_tr_func 1
20182 EOF
20183
20184 else
20185 echo "$ac_t""no" 1>&6
20186 fi
20187 done
20188
20189 fi
20190 fi
20191
20192
20193
20194 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
20195 echo "configure:20196: checking for modfl declaration" >&5
20196 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
20197 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
20198 echo $ac_n "(cached) $ac_c" 1>&6
20199 else
20200
20201
20202 ac_ext=C
20203 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20204 ac_cpp='$CXXCPP $CPPFLAGS'
20205 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20206 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20207 cross_compiling=$ac_cv_prog_cxx_cross
20208
20209 cat > conftest.$ac_ext <<EOF
20210 #line 20211 "configure"
20211 #include "confdefs.h"
20212 #include <math.h>
20213 int main() {
20214 modfl(0, 0);
20215 ; return 0; }
20216 EOF
20217 if { (eval echo configure:20218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20218 rm -rf conftest*
20219 glibcpp_cv_func_modfl_use=yes
20220 else
20221 echo "configure: failed program was:" >&5
20222 cat conftest.$ac_ext >&5
20223 rm -rf conftest*
20224 glibcpp_cv_func_modfl_use=no
20225 fi
20226 rm -f conftest*
20227 ac_ext=c
20228 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20229 ac_cpp='$CPP $CPPFLAGS'
20230 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20231 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20232 cross_compiling=$ac_cv_prog_cc_cross
20233
20234
20235 fi
20236
20237 fi
20238 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
20239
20240 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
20241 for ac_func in modfl
20242 do
20243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20244 echo "configure:20245: checking for $ac_func" >&5
20245 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20246 echo $ac_n "(cached) $ac_c" 1>&6
20247 else
20248 cat > conftest.$ac_ext <<EOF
20249 #line 20250 "configure"
20250 #include "confdefs.h"
20251 /* System header to define __stub macros and hopefully few prototypes,
20252 which can conflict with char $ac_func(); below. */
20253 #include <assert.h>
20254 /* Override any gcc2 internal prototype to avoid an error. */
20255 /* We use char because int might match the return type of a gcc2
20256 builtin and then its argument prototype would still apply. */
20257 char $ac_func();
20258
20259 int main() {
20260
20261 /* The GNU C library defines this for functions which it implements
20262 to always fail with ENOSYS. Some functions are actually named
20263 something starting with __ and the normal name is an alias. */
20264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20265 choke me
20266 #else
20267 $ac_func();
20268 #endif
20269
20270 ; return 0; }
20271 EOF
20272 if { (eval echo configure:20273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20273 rm -rf conftest*
20274 eval "ac_cv_func_$ac_func=yes"
20275 else
20276 echo "configure: failed program was:" >&5
20277 cat conftest.$ac_ext >&5
20278 rm -rf conftest*
20279 eval "ac_cv_func_$ac_func=no"
20280 fi
20281 rm -f conftest*
20282 fi
20283
20284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20285 echo "$ac_t""yes" 1>&6
20286 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20287 cat >> confdefs.h <<EOF
20288 #define $ac_tr_func 1
20289 EOF
20290
20291 else
20292 echo "$ac_t""no" 1>&6
20293 fi
20294 done
20295
20296 else
20297
20298 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
20299 echo "configure:20300: checking for _modfl declaration" >&5
20300 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
20301 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
20302 echo $ac_n "(cached) $ac_c" 1>&6
20303 else
20304
20305
20306 ac_ext=C
20307 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20308 ac_cpp='$CXXCPP $CPPFLAGS'
20309 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20310 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20311 cross_compiling=$ac_cv_prog_cxx_cross
20312
20313 cat > conftest.$ac_ext <<EOF
20314 #line 20315 "configure"
20315 #include "confdefs.h"
20316 #include <math.h>
20317 int main() {
20318 _modfl(0, 0);
20319 ; return 0; }
20320 EOF
20321 if { (eval echo configure:20322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20322 rm -rf conftest*
20323 glibcpp_cv_func__modfl_use=yes
20324 else
20325 echo "configure: failed program was:" >&5
20326 cat conftest.$ac_ext >&5
20327 rm -rf conftest*
20328 glibcpp_cv_func__modfl_use=no
20329 fi
20330 rm -f conftest*
20331 ac_ext=c
20332 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20333 ac_cpp='$CPP $CPPFLAGS'
20334 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20335 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20336 cross_compiling=$ac_cv_prog_cc_cross
20337
20338
20339 fi
20340
20341 fi
20342 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
20343
20344 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
20345 for ac_func in _modfl
20346 do
20347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20348 echo "configure:20349: checking for $ac_func" >&5
20349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20350 echo $ac_n "(cached) $ac_c" 1>&6
20351 else
20352 cat > conftest.$ac_ext <<EOF
20353 #line 20354 "configure"
20354 #include "confdefs.h"
20355 /* System header to define __stub macros and hopefully few prototypes,
20356 which can conflict with char $ac_func(); below. */
20357 #include <assert.h>
20358 /* Override any gcc2 internal prototype to avoid an error. */
20359 /* We use char because int might match the return type of a gcc2
20360 builtin and then its argument prototype would still apply. */
20361 char $ac_func();
20362
20363 int main() {
20364
20365 /* The GNU C library defines this for functions which it implements
20366 to always fail with ENOSYS. Some functions are actually named
20367 something starting with __ and the normal name is an alias. */
20368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20369 choke me
20370 #else
20371 $ac_func();
20372 #endif
20373
20374 ; return 0; }
20375 EOF
20376 if { (eval echo configure:20377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20377 rm -rf conftest*
20378 eval "ac_cv_func_$ac_func=yes"
20379 else
20380 echo "configure: failed program was:" >&5
20381 cat conftest.$ac_ext >&5
20382 rm -rf conftest*
20383 eval "ac_cv_func_$ac_func=no"
20384 fi
20385 rm -f conftest*
20386 fi
20387
20388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20389 echo "$ac_t""yes" 1>&6
20390 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20391 cat >> confdefs.h <<EOF
20392 #define $ac_tr_func 1
20393 EOF
20394
20395 else
20396 echo "$ac_t""no" 1>&6
20397 fi
20398 done
20399
20400 fi
20401 fi
20402
20403
20404
20405 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
20406 echo "configure:20407: checking for powl declaration" >&5
20407 if test x${glibcpp_cv_func_powl_use+set} != xset; then
20408 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
20409 echo $ac_n "(cached) $ac_c" 1>&6
20410 else
20411
20412
20413 ac_ext=C
20414 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20415 ac_cpp='$CXXCPP $CPPFLAGS'
20416 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20417 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20418 cross_compiling=$ac_cv_prog_cxx_cross
20419
20420 cat > conftest.$ac_ext <<EOF
20421 #line 20422 "configure"
20422 #include "confdefs.h"
20423 #include <math.h>
20424 int main() {
20425 powl(0, 0);
20426 ; return 0; }
20427 EOF
20428 if { (eval echo configure:20429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20429 rm -rf conftest*
20430 glibcpp_cv_func_powl_use=yes
20431 else
20432 echo "configure: failed program was:" >&5
20433 cat conftest.$ac_ext >&5
20434 rm -rf conftest*
20435 glibcpp_cv_func_powl_use=no
20436 fi
20437 rm -f conftest*
20438 ac_ext=c
20439 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20440 ac_cpp='$CPP $CPPFLAGS'
20441 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20442 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20443 cross_compiling=$ac_cv_prog_cc_cross
20444
20445
20446 fi
20447
20448 fi
20449 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
20450
20451 if test x$glibcpp_cv_func_powl_use = x"yes"; then
20452 for ac_func in powl
20453 do
20454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20455 echo "configure:20456: checking for $ac_func" >&5
20456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20457 echo $ac_n "(cached) $ac_c" 1>&6
20458 else
20459 cat > conftest.$ac_ext <<EOF
20460 #line 20461 "configure"
20461 #include "confdefs.h"
20462 /* System header to define __stub macros and hopefully few prototypes,
20463 which can conflict with char $ac_func(); below. */
20464 #include <assert.h>
20465 /* Override any gcc2 internal prototype to avoid an error. */
20466 /* We use char because int might match the return type of a gcc2
20467 builtin and then its argument prototype would still apply. */
20468 char $ac_func();
20469
20470 int main() {
20471
20472 /* The GNU C library defines this for functions which it implements
20473 to always fail with ENOSYS. Some functions are actually named
20474 something starting with __ and the normal name is an alias. */
20475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20476 choke me
20477 #else
20478 $ac_func();
20479 #endif
20480
20481 ; return 0; }
20482 EOF
20483 if { (eval echo configure:20484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20484 rm -rf conftest*
20485 eval "ac_cv_func_$ac_func=yes"
20486 else
20487 echo "configure: failed program was:" >&5
20488 cat conftest.$ac_ext >&5
20489 rm -rf conftest*
20490 eval "ac_cv_func_$ac_func=no"
20491 fi
20492 rm -f conftest*
20493 fi
20494
20495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20496 echo "$ac_t""yes" 1>&6
20497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20498 cat >> confdefs.h <<EOF
20499 #define $ac_tr_func 1
20500 EOF
20501
20502 else
20503 echo "$ac_t""no" 1>&6
20504 fi
20505 done
20506
20507 else
20508
20509 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
20510 echo "configure:20511: checking for _powl declaration" >&5
20511 if test x${glibcpp_cv_func__powl_use+set} != xset; then
20512 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
20513 echo $ac_n "(cached) $ac_c" 1>&6
20514 else
20515
20516
20517 ac_ext=C
20518 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20519 ac_cpp='$CXXCPP $CPPFLAGS'
20520 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20521 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20522 cross_compiling=$ac_cv_prog_cxx_cross
20523
20524 cat > conftest.$ac_ext <<EOF
20525 #line 20526 "configure"
20526 #include "confdefs.h"
20527 #include <math.h>
20528 int main() {
20529 _powl(0, 0);
20530 ; return 0; }
20531 EOF
20532 if { (eval echo configure:20533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20533 rm -rf conftest*
20534 glibcpp_cv_func__powl_use=yes
20535 else
20536 echo "configure: failed program was:" >&5
20537 cat conftest.$ac_ext >&5
20538 rm -rf conftest*
20539 glibcpp_cv_func__powl_use=no
20540 fi
20541 rm -f conftest*
20542 ac_ext=c
20543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20544 ac_cpp='$CPP $CPPFLAGS'
20545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20547 cross_compiling=$ac_cv_prog_cc_cross
20548
20549
20550 fi
20551
20552 fi
20553 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
20554
20555 if test x$glibcpp_cv_func__powl_use = x"yes"; then
20556 for ac_func in _powl
20557 do
20558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20559 echo "configure:20560: checking for $ac_func" >&5
20560 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20561 echo $ac_n "(cached) $ac_c" 1>&6
20562 else
20563 cat > conftest.$ac_ext <<EOF
20564 #line 20565 "configure"
20565 #include "confdefs.h"
20566 /* System header to define __stub macros and hopefully few prototypes,
20567 which can conflict with char $ac_func(); below. */
20568 #include <assert.h>
20569 /* Override any gcc2 internal prototype to avoid an error. */
20570 /* We use char because int might match the return type of a gcc2
20571 builtin and then its argument prototype would still apply. */
20572 char $ac_func();
20573
20574 int main() {
20575
20576 /* The GNU C library defines this for functions which it implements
20577 to always fail with ENOSYS. Some functions are actually named
20578 something starting with __ and the normal name is an alias. */
20579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20580 choke me
20581 #else
20582 $ac_func();
20583 #endif
20584
20585 ; return 0; }
20586 EOF
20587 if { (eval echo configure:20588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20588 rm -rf conftest*
20589 eval "ac_cv_func_$ac_func=yes"
20590 else
20591 echo "configure: failed program was:" >&5
20592 cat conftest.$ac_ext >&5
20593 rm -rf conftest*
20594 eval "ac_cv_func_$ac_func=no"
20595 fi
20596 rm -f conftest*
20597 fi
20598
20599 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20600 echo "$ac_t""yes" 1>&6
20601 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20602 cat >> confdefs.h <<EOF
20603 #define $ac_tr_func 1
20604 EOF
20605
20606 else
20607 echo "$ac_t""no" 1>&6
20608 fi
20609 done
20610
20611 fi
20612 fi
20613
20614
20615
20616 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
20617 echo "configure:20618: checking for sqrtl declaration" >&5
20618 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
20619 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
20620 echo $ac_n "(cached) $ac_c" 1>&6
20621 else
20622
20623
20624 ac_ext=C
20625 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20626 ac_cpp='$CXXCPP $CPPFLAGS'
20627 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20628 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20629 cross_compiling=$ac_cv_prog_cxx_cross
20630
20631 cat > conftest.$ac_ext <<EOF
20632 #line 20633 "configure"
20633 #include "confdefs.h"
20634 #include <math.h>
20635 #ifdef HAVE_IEEEFP_H
20636 #include <ieeefp.h>
20637 #endif
20638
20639 int main() {
20640 sqrtl(0);
20641 ; return 0; }
20642 EOF
20643 if { (eval echo configure:20644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20644 rm -rf conftest*
20645 glibcpp_cv_func_sqrtl_use=yes
20646 else
20647 echo "configure: failed program was:" >&5
20648 cat conftest.$ac_ext >&5
20649 rm -rf conftest*
20650 glibcpp_cv_func_sqrtl_use=no
20651 fi
20652 rm -f conftest*
20653 ac_ext=c
20654 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20655 ac_cpp='$CPP $CPPFLAGS'
20656 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20657 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20658 cross_compiling=$ac_cv_prog_cc_cross
20659
20660
20661 fi
20662
20663 fi
20664 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
20665
20666 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
20667 for ac_func in sqrtl
20668 do
20669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20670 echo "configure:20671: checking for $ac_func" >&5
20671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20672 echo $ac_n "(cached) $ac_c" 1>&6
20673 else
20674 cat > conftest.$ac_ext <<EOF
20675 #line 20676 "configure"
20676 #include "confdefs.h"
20677 /* System header to define __stub macros and hopefully few prototypes,
20678 which can conflict with char $ac_func(); below. */
20679 #include <assert.h>
20680 /* Override any gcc2 internal prototype to avoid an error. */
20681 /* We use char because int might match the return type of a gcc2
20682 builtin and then its argument prototype would still apply. */
20683 char $ac_func();
20684
20685 int main() {
20686
20687 /* The GNU C library defines this for functions which it implements
20688 to always fail with ENOSYS. Some functions are actually named
20689 something starting with __ and the normal name is an alias. */
20690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20691 choke me
20692 #else
20693 $ac_func();
20694 #endif
20695
20696 ; return 0; }
20697 EOF
20698 if { (eval echo configure:20699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20699 rm -rf conftest*
20700 eval "ac_cv_func_$ac_func=yes"
20701 else
20702 echo "configure: failed program was:" >&5
20703 cat conftest.$ac_ext >&5
20704 rm -rf conftest*
20705 eval "ac_cv_func_$ac_func=no"
20706 fi
20707 rm -f conftest*
20708 fi
20709
20710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20711 echo "$ac_t""yes" 1>&6
20712 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20713 cat >> confdefs.h <<EOF
20714 #define $ac_tr_func 1
20715 EOF
20716
20717 else
20718 echo "$ac_t""no" 1>&6
20719 fi
20720 done
20721
20722 else
20723
20724 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
20725 echo "configure:20726: checking for _sqrtl declaration" >&5
20726 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
20727 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
20728 echo $ac_n "(cached) $ac_c" 1>&6
20729 else
20730
20731
20732 ac_ext=C
20733 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20734 ac_cpp='$CXXCPP $CPPFLAGS'
20735 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20736 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20737 cross_compiling=$ac_cv_prog_cxx_cross
20738
20739 cat > conftest.$ac_ext <<EOF
20740 #line 20741 "configure"
20741 #include "confdefs.h"
20742 #include <math.h>
20743 #ifdef HAVE_IEEEFP_H
20744 #include <ieeefp.h>
20745 #endif
20746
20747 int main() {
20748 _sqrtl(0);
20749 ; return 0; }
20750 EOF
20751 if { (eval echo configure:20752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20752 rm -rf conftest*
20753 glibcpp_cv_func__sqrtl_use=yes
20754 else
20755 echo "configure: failed program was:" >&5
20756 cat conftest.$ac_ext >&5
20757 rm -rf conftest*
20758 glibcpp_cv_func__sqrtl_use=no
20759 fi
20760 rm -f conftest*
20761 ac_ext=c
20762 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20763 ac_cpp='$CPP $CPPFLAGS'
20764 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20765 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20766 cross_compiling=$ac_cv_prog_cc_cross
20767
20768
20769 fi
20770
20771 fi
20772 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
20773
20774 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
20775 for ac_func in _sqrtl
20776 do
20777 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20778 echo "configure:20779: checking for $ac_func" >&5
20779 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20780 echo $ac_n "(cached) $ac_c" 1>&6
20781 else
20782 cat > conftest.$ac_ext <<EOF
20783 #line 20784 "configure"
20784 #include "confdefs.h"
20785 /* System header to define __stub macros and hopefully few prototypes,
20786 which can conflict with char $ac_func(); below. */
20787 #include <assert.h>
20788 /* Override any gcc2 internal prototype to avoid an error. */
20789 /* We use char because int might match the return type of a gcc2
20790 builtin and then its argument prototype would still apply. */
20791 char $ac_func();
20792
20793 int main() {
20794
20795 /* The GNU C library defines this for functions which it implements
20796 to always fail with ENOSYS. Some functions are actually named
20797 something starting with __ and the normal name is an alias. */
20798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20799 choke me
20800 #else
20801 $ac_func();
20802 #endif
20803
20804 ; return 0; }
20805 EOF
20806 if { (eval echo configure:20807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20807 rm -rf conftest*
20808 eval "ac_cv_func_$ac_func=yes"
20809 else
20810 echo "configure: failed program was:" >&5
20811 cat conftest.$ac_ext >&5
20812 rm -rf conftest*
20813 eval "ac_cv_func_$ac_func=no"
20814 fi
20815 rm -f conftest*
20816 fi
20817
20818 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20819 echo "$ac_t""yes" 1>&6
20820 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20821 cat >> confdefs.h <<EOF
20822 #define $ac_tr_func 1
20823 EOF
20824
20825 else
20826 echo "$ac_t""no" 1>&6
20827 fi
20828 done
20829
20830 fi
20831 fi
20832
20833
20834
20835 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
20836 echo "configure:20837: checking for sincosl declaration" >&5
20837 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
20838 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
20839 echo $ac_n "(cached) $ac_c" 1>&6
20840 else
20841
20842
20843 ac_ext=C
20844 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20845 ac_cpp='$CXXCPP $CPPFLAGS'
20846 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20847 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20848 cross_compiling=$ac_cv_prog_cxx_cross
20849
20850 cat > conftest.$ac_ext <<EOF
20851 #line 20852 "configure"
20852 #include "confdefs.h"
20853 #include <math.h>
20854 int main() {
20855 sincosl(0, 0, 0);
20856 ; return 0; }
20857 EOF
20858 if { (eval echo configure:20859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20859 rm -rf conftest*
20860 glibcpp_cv_func_sincosl_use=yes
20861 else
20862 echo "configure: failed program was:" >&5
20863 cat conftest.$ac_ext >&5
20864 rm -rf conftest*
20865 glibcpp_cv_func_sincosl_use=no
20866 fi
20867 rm -f conftest*
20868 ac_ext=c
20869 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20870 ac_cpp='$CPP $CPPFLAGS'
20871 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20872 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20873 cross_compiling=$ac_cv_prog_cc_cross
20874
20875
20876 fi
20877
20878 fi
20879 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
20880
20881 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
20882 for ac_func in sincosl
20883 do
20884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20885 echo "configure:20886: checking for $ac_func" >&5
20886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20887 echo $ac_n "(cached) $ac_c" 1>&6
20888 else
20889 cat > conftest.$ac_ext <<EOF
20890 #line 20891 "configure"
20891 #include "confdefs.h"
20892 /* System header to define __stub macros and hopefully few prototypes,
20893 which can conflict with char $ac_func(); below. */
20894 #include <assert.h>
20895 /* Override any gcc2 internal prototype to avoid an error. */
20896 /* We use char because int might match the return type of a gcc2
20897 builtin and then its argument prototype would still apply. */
20898 char $ac_func();
20899
20900 int main() {
20901
20902 /* The GNU C library defines this for functions which it implements
20903 to always fail with ENOSYS. Some functions are actually named
20904 something starting with __ and the normal name is an alias. */
20905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20906 choke me
20907 #else
20908 $ac_func();
20909 #endif
20910
20911 ; return 0; }
20912 EOF
20913 if { (eval echo configure:20914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20914 rm -rf conftest*
20915 eval "ac_cv_func_$ac_func=yes"
20916 else
20917 echo "configure: failed program was:" >&5
20918 cat conftest.$ac_ext >&5
20919 rm -rf conftest*
20920 eval "ac_cv_func_$ac_func=no"
20921 fi
20922 rm -f conftest*
20923 fi
20924
20925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20926 echo "$ac_t""yes" 1>&6
20927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20928 cat >> confdefs.h <<EOF
20929 #define $ac_tr_func 1
20930 EOF
20931
20932 else
20933 echo "$ac_t""no" 1>&6
20934 fi
20935 done
20936
20937 else
20938
20939 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
20940 echo "configure:20941: checking for _sincosl declaration" >&5
20941 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
20942 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
20943 echo $ac_n "(cached) $ac_c" 1>&6
20944 else
20945
20946
20947 ac_ext=C
20948 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20949 ac_cpp='$CXXCPP $CPPFLAGS'
20950 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20951 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20952 cross_compiling=$ac_cv_prog_cxx_cross
20953
20954 cat > conftest.$ac_ext <<EOF
20955 #line 20956 "configure"
20956 #include "confdefs.h"
20957 #include <math.h>
20958 int main() {
20959 _sincosl(0, 0, 0);
20960 ; return 0; }
20961 EOF
20962 if { (eval echo configure:20963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20963 rm -rf conftest*
20964 glibcpp_cv_func__sincosl_use=yes
20965 else
20966 echo "configure: failed program was:" >&5
20967 cat conftest.$ac_ext >&5
20968 rm -rf conftest*
20969 glibcpp_cv_func__sincosl_use=no
20970 fi
20971 rm -f conftest*
20972 ac_ext=c
20973 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20974 ac_cpp='$CPP $CPPFLAGS'
20975 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20976 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20977 cross_compiling=$ac_cv_prog_cc_cross
20978
20979
20980 fi
20981
20982 fi
20983 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
20984
20985 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
20986 for ac_func in _sincosl
20987 do
20988 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20989 echo "configure:20990: checking for $ac_func" >&5
20990 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20991 echo $ac_n "(cached) $ac_c" 1>&6
20992 else
20993 cat > conftest.$ac_ext <<EOF
20994 #line 20995 "configure"
20995 #include "confdefs.h"
20996 /* System header to define __stub macros and hopefully few prototypes,
20997 which can conflict with char $ac_func(); below. */
20998 #include <assert.h>
20999 /* Override any gcc2 internal prototype to avoid an error. */
21000 /* We use char because int might match the return type of a gcc2
21001 builtin and then its argument prototype would still apply. */
21002 char $ac_func();
21003
21004 int main() {
21005
21006 /* The GNU C library defines this for functions which it implements
21007 to always fail with ENOSYS. Some functions are actually named
21008 something starting with __ and the normal name is an alias. */
21009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21010 choke me
21011 #else
21012 $ac_func();
21013 #endif
21014
21015 ; return 0; }
21016 EOF
21017 if { (eval echo configure:21018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21018 rm -rf conftest*
21019 eval "ac_cv_func_$ac_func=yes"
21020 else
21021 echo "configure: failed program was:" >&5
21022 cat conftest.$ac_ext >&5
21023 rm -rf conftest*
21024 eval "ac_cv_func_$ac_func=no"
21025 fi
21026 rm -f conftest*
21027 fi
21028
21029 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21030 echo "$ac_t""yes" 1>&6
21031 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21032 cat >> confdefs.h <<EOF
21033 #define $ac_tr_func 1
21034 EOF
21035
21036 else
21037 echo "$ac_t""no" 1>&6
21038 fi
21039 done
21040
21041 fi
21042 fi
21043
21044
21045
21046 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
21047 echo "configure:21048: checking for finitel declaration" >&5
21048 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
21049 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
21050 echo $ac_n "(cached) $ac_c" 1>&6
21051 else
21052
21053
21054 ac_ext=C
21055 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21056 ac_cpp='$CXXCPP $CPPFLAGS'
21057 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21058 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21059 cross_compiling=$ac_cv_prog_cxx_cross
21060
21061 cat > conftest.$ac_ext <<EOF
21062 #line 21063 "configure"
21063 #include "confdefs.h"
21064 #include <math.h>
21065 #ifdef HAVE_IEEEFP_H
21066 #include <ieeefp.h>
21067 #endif
21068
21069 int main() {
21070 finitel(0);
21071 ; return 0; }
21072 EOF
21073 if { (eval echo configure:21074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21074 rm -rf conftest*
21075 glibcpp_cv_func_finitel_use=yes
21076 else
21077 echo "configure: failed program was:" >&5
21078 cat conftest.$ac_ext >&5
21079 rm -rf conftest*
21080 glibcpp_cv_func_finitel_use=no
21081 fi
21082 rm -f conftest*
21083 ac_ext=c
21084 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21085 ac_cpp='$CPP $CPPFLAGS'
21086 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21087 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21088 cross_compiling=$ac_cv_prog_cc_cross
21089
21090
21091 fi
21092
21093 fi
21094 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
21095
21096 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
21097 for ac_func in finitel
21098 do
21099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21100 echo "configure:21101: checking for $ac_func" >&5
21101 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21102 echo $ac_n "(cached) $ac_c" 1>&6
21103 else
21104 cat > conftest.$ac_ext <<EOF
21105 #line 21106 "configure"
21106 #include "confdefs.h"
21107 /* System header to define __stub macros and hopefully few prototypes,
21108 which can conflict with char $ac_func(); below. */
21109 #include <assert.h>
21110 /* Override any gcc2 internal prototype to avoid an error. */
21111 /* We use char because int might match the return type of a gcc2
21112 builtin and then its argument prototype would still apply. */
21113 char $ac_func();
21114
21115 int main() {
21116
21117 /* The GNU C library defines this for functions which it implements
21118 to always fail with ENOSYS. Some functions are actually named
21119 something starting with __ and the normal name is an alias. */
21120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21121 choke me
21122 #else
21123 $ac_func();
21124 #endif
21125
21126 ; return 0; }
21127 EOF
21128 if { (eval echo configure:21129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21129 rm -rf conftest*
21130 eval "ac_cv_func_$ac_func=yes"
21131 else
21132 echo "configure: failed program was:" >&5
21133 cat conftest.$ac_ext >&5
21134 rm -rf conftest*
21135 eval "ac_cv_func_$ac_func=no"
21136 fi
21137 rm -f conftest*
21138 fi
21139
21140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21141 echo "$ac_t""yes" 1>&6
21142 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21143 cat >> confdefs.h <<EOF
21144 #define $ac_tr_func 1
21145 EOF
21146
21147 else
21148 echo "$ac_t""no" 1>&6
21149 fi
21150 done
21151
21152 else
21153
21154 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
21155 echo "configure:21156: checking for _finitel declaration" >&5
21156 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
21157 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
21158 echo $ac_n "(cached) $ac_c" 1>&6
21159 else
21160
21161
21162 ac_ext=C
21163 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21164 ac_cpp='$CXXCPP $CPPFLAGS'
21165 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21166 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21167 cross_compiling=$ac_cv_prog_cxx_cross
21168
21169 cat > conftest.$ac_ext <<EOF
21170 #line 21171 "configure"
21171 #include "confdefs.h"
21172 #include <math.h>
21173 #ifdef HAVE_IEEEFP_H
21174 #include <ieeefp.h>
21175 #endif
21176
21177 int main() {
21178 _finitel(0);
21179 ; return 0; }
21180 EOF
21181 if { (eval echo configure:21182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21182 rm -rf conftest*
21183 glibcpp_cv_func__finitel_use=yes
21184 else
21185 echo "configure: failed program was:" >&5
21186 cat conftest.$ac_ext >&5
21187 rm -rf conftest*
21188 glibcpp_cv_func__finitel_use=no
21189 fi
21190 rm -f conftest*
21191 ac_ext=c
21192 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21193 ac_cpp='$CPP $CPPFLAGS'
21194 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21195 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21196 cross_compiling=$ac_cv_prog_cc_cross
21197
21198
21199 fi
21200
21201 fi
21202 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
21203
21204 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
21205 for ac_func in _finitel
21206 do
21207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21208 echo "configure:21209: checking for $ac_func" >&5
21209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21210 echo $ac_n "(cached) $ac_c" 1>&6
21211 else
21212 cat > conftest.$ac_ext <<EOF
21213 #line 21214 "configure"
21214 #include "confdefs.h"
21215 /* System header to define __stub macros and hopefully few prototypes,
21216 which can conflict with char $ac_func(); below. */
21217 #include <assert.h>
21218 /* Override any gcc2 internal prototype to avoid an error. */
21219 /* We use char because int might match the return type of a gcc2
21220 builtin and then its argument prototype would still apply. */
21221 char $ac_func();
21222
21223 int main() {
21224
21225 /* The GNU C library defines this for functions which it implements
21226 to always fail with ENOSYS. Some functions are actually named
21227 something starting with __ and the normal name is an alias. */
21228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21229 choke me
21230 #else
21231 $ac_func();
21232 #endif
21233
21234 ; return 0; }
21235 EOF
21236 if { (eval echo configure:21237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21237 rm -rf conftest*
21238 eval "ac_cv_func_$ac_func=yes"
21239 else
21240 echo "configure: failed program was:" >&5
21241 cat conftest.$ac_ext >&5
21242 rm -rf conftest*
21243 eval "ac_cv_func_$ac_func=no"
21244 fi
21245 rm -f conftest*
21246 fi
21247
21248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21249 echo "$ac_t""yes" 1>&6
21250 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21251 cat >> confdefs.h <<EOF
21252 #define $ac_tr_func 1
21253 EOF
21254
21255 else
21256 echo "$ac_t""no" 1>&6
21257 fi
21258 done
21259
21260 fi
21261 fi
21262
21263
21264
21265
21266 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
21267 echo "configure:21268: checking for _float trig functions" >&5
21268 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
21269 echo $ac_n "(cached) $ac_c" 1>&6
21270 else
21271
21272
21273 ac_ext=C
21274 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21275 ac_cpp='$CXXCPP $CPPFLAGS'
21276 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21277 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21278 cross_compiling=$ac_cv_prog_cxx_cross
21279
21280 cat > conftest.$ac_ext <<EOF
21281 #line 21282 "configure"
21282 #include "confdefs.h"
21283 #include <math.h>
21284 int main() {
21285 `for x in _acosf _asinf _atanf \
21286 _cosf _sinf _tanf \
21287 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
21288 ; return 0; }
21289 EOF
21290 if { (eval echo configure:21291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21291 rm -rf conftest*
21292 glibcpp_cv_func__float_trig_use=yes
21293 else
21294 echo "configure: failed program was:" >&5
21295 cat conftest.$ac_ext >&5
21296 rm -rf conftest*
21297 glibcpp_cv_func__float_trig_use=no
21298 fi
21299 rm -f conftest*
21300 ac_ext=c
21301 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21302 ac_cpp='$CPP $CPPFLAGS'
21303 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21304 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21305 cross_compiling=$ac_cv_prog_cc_cross
21306
21307 fi
21308
21309 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
21310 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
21311 for ac_func in _acosf _asinf _atanf \
21312 _cosf _sinf _tanf \
21313 _coshf _sinhf _tanhf
21314 do
21315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21316 echo "configure:21317: checking for $ac_func" >&5
21317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21318 echo $ac_n "(cached) $ac_c" 1>&6
21319 else
21320 cat > conftest.$ac_ext <<EOF
21321 #line 21322 "configure"
21322 #include "confdefs.h"
21323 /* System header to define __stub macros and hopefully few prototypes,
21324 which can conflict with char $ac_func(); below. */
21325 #include <assert.h>
21326 /* Override any gcc2 internal prototype to avoid an error. */
21327 /* We use char because int might match the return type of a gcc2
21328 builtin and then its argument prototype would still apply. */
21329 char $ac_func();
21330
21331 int main() {
21332
21333 /* The GNU C library defines this for functions which it implements
21334 to always fail with ENOSYS. Some functions are actually named
21335 something starting with __ and the normal name is an alias. */
21336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21337 choke me
21338 #else
21339 $ac_func();
21340 #endif
21341
21342 ; return 0; }
21343 EOF
21344 if { (eval echo configure:21345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21345 rm -rf conftest*
21346 eval "ac_cv_func_$ac_func=yes"
21347 else
21348 echo "configure: failed program was:" >&5
21349 cat conftest.$ac_ext >&5
21350 rm -rf conftest*
21351 eval "ac_cv_func_$ac_func=no"
21352 fi
21353 rm -f conftest*
21354 fi
21355
21356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21357 echo "$ac_t""yes" 1>&6
21358 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21359 cat >> confdefs.h <<EOF
21360 #define $ac_tr_func 1
21361 EOF
21362
21363 else
21364 echo "$ac_t""no" 1>&6
21365 fi
21366 done
21367
21368 fi
21369
21370
21371 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
21372 echo "configure:21373: checking for _float round functions" >&5
21373 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
21374 echo $ac_n "(cached) $ac_c" 1>&6
21375 else
21376
21377
21378 ac_ext=C
21379 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21380 ac_cpp='$CXXCPP $CPPFLAGS'
21381 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21382 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21383 cross_compiling=$ac_cv_prog_cxx_cross
21384
21385 cat > conftest.$ac_ext <<EOF
21386 #line 21387 "configure"
21387 #include "confdefs.h"
21388 #include <math.h>
21389 int main() {
21390 `for x in _ceilf _floorf; do echo "$x (0);"; done`
21391 ; return 0; }
21392 EOF
21393 if { (eval echo configure:21394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21394 rm -rf conftest*
21395 glibcpp_cv_func__float_round_use=yes
21396 else
21397 echo "configure: failed program was:" >&5
21398 cat conftest.$ac_ext >&5
21399 rm -rf conftest*
21400 glibcpp_cv_func__float_round_use=no
21401 fi
21402 rm -f conftest*
21403 ac_ext=c
21404 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21405 ac_cpp='$CPP $CPPFLAGS'
21406 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21407 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21408 cross_compiling=$ac_cv_prog_cc_cross
21409
21410 fi
21411
21412 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
21413 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
21414 for ac_func in _ceilf _floorf
21415 do
21416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21417 echo "configure:21418: checking for $ac_func" >&5
21418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21419 echo $ac_n "(cached) $ac_c" 1>&6
21420 else
21421 cat > conftest.$ac_ext <<EOF
21422 #line 21423 "configure"
21423 #include "confdefs.h"
21424 /* System header to define __stub macros and hopefully few prototypes,
21425 which can conflict with char $ac_func(); below. */
21426 #include <assert.h>
21427 /* Override any gcc2 internal prototype to avoid an error. */
21428 /* We use char because int might match the return type of a gcc2
21429 builtin and then its argument prototype would still apply. */
21430 char $ac_func();
21431
21432 int main() {
21433
21434 /* The GNU C library defines this for functions which it implements
21435 to always fail with ENOSYS. Some functions are actually named
21436 something starting with __ and the normal name is an alias. */
21437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21438 choke me
21439 #else
21440 $ac_func();
21441 #endif
21442
21443 ; return 0; }
21444 EOF
21445 if { (eval echo configure:21446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21446 rm -rf conftest*
21447 eval "ac_cv_func_$ac_func=yes"
21448 else
21449 echo "configure: failed program was:" >&5
21450 cat conftest.$ac_ext >&5
21451 rm -rf conftest*
21452 eval "ac_cv_func_$ac_func=no"
21453 fi
21454 rm -f conftest*
21455 fi
21456
21457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21458 echo "$ac_t""yes" 1>&6
21459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21460 cat >> confdefs.h <<EOF
21461 #define $ac_tr_func 1
21462 EOF
21463
21464 else
21465 echo "$ac_t""no" 1>&6
21466 fi
21467 done
21468
21469 fi
21470
21471
21472
21473 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
21474 echo "configure:21475: checking for _long double trig functions" >&5
21475 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
21476 echo $ac_n "(cached) $ac_c" 1>&6
21477 else
21478
21479
21480 ac_ext=C
21481 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21482 ac_cpp='$CXXCPP $CPPFLAGS'
21483 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21484 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21485 cross_compiling=$ac_cv_prog_cxx_cross
21486
21487 cat > conftest.$ac_ext <<EOF
21488 #line 21489 "configure"
21489 #include "confdefs.h"
21490 #include <math.h>
21491 int main() {
21492 `for x in _acosl _asinl _atanl \
21493 _cosl _sinl _tanl \
21494 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
21495 ; return 0; }
21496 EOF
21497 if { (eval echo configure:21498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21498 rm -rf conftest*
21499 glibcpp_cv_func__long_double_trig_use=yes
21500 else
21501 echo "configure: failed program was:" >&5
21502 cat conftest.$ac_ext >&5
21503 rm -rf conftest*
21504 glibcpp_cv_func__long_double_trig_use=no
21505 fi
21506 rm -f conftest*
21507 ac_ext=c
21508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21509 ac_cpp='$CPP $CPPFLAGS'
21510 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21511 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21512 cross_compiling=$ac_cv_prog_cc_cross
21513
21514 fi
21515
21516 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
21517 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
21518 for ac_func in _acosl _asinl _atanl \
21519 _cosl _sinl _tanl \
21520 _coshl _sinhl _tanhl
21521 do
21522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21523 echo "configure:21524: checking for $ac_func" >&5
21524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21525 echo $ac_n "(cached) $ac_c" 1>&6
21526 else
21527 cat > conftest.$ac_ext <<EOF
21528 #line 21529 "configure"
21529 #include "confdefs.h"
21530 /* System header to define __stub macros and hopefully few prototypes,
21531 which can conflict with char $ac_func(); below. */
21532 #include <assert.h>
21533 /* Override any gcc2 internal prototype to avoid an error. */
21534 /* We use char because int might match the return type of a gcc2
21535 builtin and then its argument prototype would still apply. */
21536 char $ac_func();
21537
21538 int main() {
21539
21540 /* The GNU C library defines this for functions which it implements
21541 to always fail with ENOSYS. Some functions are actually named
21542 something starting with __ and the normal name is an alias. */
21543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21544 choke me
21545 #else
21546 $ac_func();
21547 #endif
21548
21549 ; return 0; }
21550 EOF
21551 if { (eval echo configure:21552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21552 rm -rf conftest*
21553 eval "ac_cv_func_$ac_func=yes"
21554 else
21555 echo "configure: failed program was:" >&5
21556 cat conftest.$ac_ext >&5
21557 rm -rf conftest*
21558 eval "ac_cv_func_$ac_func=no"
21559 fi
21560 rm -f conftest*
21561 fi
21562
21563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21564 echo "$ac_t""yes" 1>&6
21565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21566 cat >> confdefs.h <<EOF
21567 #define $ac_tr_func 1
21568 EOF
21569
21570 else
21571 echo "$ac_t""no" 1>&6
21572 fi
21573 done
21574
21575 fi
21576
21577
21578 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
21579 echo "configure:21580: checking for _long double round functions" >&5
21580 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
21581 echo $ac_n "(cached) $ac_c" 1>&6
21582 else
21583
21584
21585 ac_ext=C
21586 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21587 ac_cpp='$CXXCPP $CPPFLAGS'
21588 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21589 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21590 cross_compiling=$ac_cv_prog_cxx_cross
21591
21592 cat > conftest.$ac_ext <<EOF
21593 #line 21594 "configure"
21594 #include "confdefs.h"
21595 #include <math.h>
21596 int main() {
21597 `for x in _ceill _floorl; do echo "$x (0);"; done`
21598 ; return 0; }
21599 EOF
21600 if { (eval echo configure:21601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21601 rm -rf conftest*
21602 glibcpp_cv_func__long_double_round_use=yes
21603 else
21604 echo "configure: failed program was:" >&5
21605 cat conftest.$ac_ext >&5
21606 rm -rf conftest*
21607 glibcpp_cv_func__long_double_round_use=no
21608 fi
21609 rm -f conftest*
21610 ac_ext=c
21611 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21612 ac_cpp='$CPP $CPPFLAGS'
21613 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21614 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21615 cross_compiling=$ac_cv_prog_cc_cross
21616
21617 fi
21618
21619 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
21620 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
21621 for ac_func in _ceill _floorl
21622 do
21623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21624 echo "configure:21625: checking for $ac_func" >&5
21625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21626 echo $ac_n "(cached) $ac_c" 1>&6
21627 else
21628 cat > conftest.$ac_ext <<EOF
21629 #line 21630 "configure"
21630 #include "confdefs.h"
21631 /* System header to define __stub macros and hopefully few prototypes,
21632 which can conflict with char $ac_func(); below. */
21633 #include <assert.h>
21634 /* Override any gcc2 internal prototype to avoid an error. */
21635 /* We use char because int might match the return type of a gcc2
21636 builtin and then its argument prototype would still apply. */
21637 char $ac_func();
21638
21639 int main() {
21640
21641 /* The GNU C library defines this for functions which it implements
21642 to always fail with ENOSYS. Some functions are actually named
21643 something starting with __ and the normal name is an alias. */
21644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21645 choke me
21646 #else
21647 $ac_func();
21648 #endif
21649
21650 ; return 0; }
21651 EOF
21652 if { (eval echo configure:21653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21653 rm -rf conftest*
21654 eval "ac_cv_func_$ac_func=yes"
21655 else
21656 echo "configure: failed program was:" >&5
21657 cat conftest.$ac_ext >&5
21658 rm -rf conftest*
21659 eval "ac_cv_func_$ac_func=no"
21660 fi
21661 rm -f conftest*
21662 fi
21663
21664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21665 echo "$ac_t""yes" 1>&6
21666 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21667 cat >> confdefs.h <<EOF
21668 #define $ac_tr_func 1
21669 EOF
21670
21671 else
21672 echo "$ac_t""no" 1>&6
21673 fi
21674 done
21675
21676 fi
21677
21678
21679 LIBS="$ac_save_LIBS"
21680 CXXFLAGS="$ac_save_CXXFLAGS"
21681
21682
21683 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21684 echo "configure:21685: checking for main in -lm" >&5
21685 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21686 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21687 echo $ac_n "(cached) $ac_c" 1>&6
21688 else
21689 ac_save_LIBS="$LIBS"
21690 LIBS="-lm $LIBS"
21691 cat > conftest.$ac_ext <<EOF
21692 #line 21693 "configure"
21693 #include "confdefs.h"
21694
21695 int main() {
21696 main()
21697 ; return 0; }
21698 EOF
21699 if { (eval echo configure:21700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21700 rm -rf conftest*
21701 eval "ac_cv_lib_$ac_lib_var=yes"
21702 else
21703 echo "configure: failed program was:" >&5
21704 cat conftest.$ac_ext >&5
21705 rm -rf conftest*
21706 eval "ac_cv_lib_$ac_lib_var=no"
21707 fi
21708 rm -f conftest*
21709 LIBS="$ac_save_LIBS"
21710
21711 fi
21712 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21713 echo "$ac_t""yes" 1>&6
21714 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21715 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21716 cat >> confdefs.h <<EOF
21717 #define $ac_tr_lib 1
21718 EOF
21719
21720 LIBS="-lm $LIBS"
21721
21722 else
21723 echo "$ac_t""no" 1>&6
21724 fi
21725
21726 for ac_func in nan copysignf
21727 do
21728 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21729 echo "configure:21730: checking for $ac_func" >&5
21730 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21731 echo $ac_n "(cached) $ac_c" 1>&6
21732 else
21733 cat > conftest.$ac_ext <<EOF
21734 #line 21735 "configure"
21735 #include "confdefs.h"
21736 /* System header to define __stub macros and hopefully few prototypes,
21737 which can conflict with char $ac_func(); below. */
21738 #include <assert.h>
21739 /* Override any gcc2 internal prototype to avoid an error. */
21740 /* We use char because int might match the return type of a gcc2
21741 builtin and then its argument prototype would still apply. */
21742 char $ac_func();
21743
21744 int main() {
21745
21746 /* The GNU C library defines this for functions which it implements
21747 to always fail with ENOSYS. Some functions are actually named
21748 something starting with __ and the normal name is an alias. */
21749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21750 choke me
21751 #else
21752 $ac_func();
21753 #endif
21754
21755 ; return 0; }
21756 EOF
21757 if { (eval echo configure:21758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21758 rm -rf conftest*
21759 eval "ac_cv_func_$ac_func=yes"
21760 else
21761 echo "configure: failed program was:" >&5
21762 cat conftest.$ac_ext >&5
21763 rm -rf conftest*
21764 eval "ac_cv_func_$ac_func=no"
21765 fi
21766 rm -f conftest*
21767 fi
21768
21769 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21770 echo "$ac_t""yes" 1>&6
21771 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21772 cat >> confdefs.h <<EOF
21773 #define $ac_tr_func 1
21774 EOF
21775
21776 else
21777 echo "$ac_t""no" 1>&6
21778 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21779 fi
21780 done
21781
21782
21783 for ac_func in __signbit
21784 do
21785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21786 echo "configure:21787: checking for $ac_func" >&5
21787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21788 echo $ac_n "(cached) $ac_c" 1>&6
21789 else
21790 cat > conftest.$ac_ext <<EOF
21791 #line 21792 "configure"
21792 #include "confdefs.h"
21793 /* System header to define __stub macros and hopefully few prototypes,
21794 which can conflict with char $ac_func(); below. */
21795 #include <assert.h>
21796 /* Override any gcc2 internal prototype to avoid an error. */
21797 /* We use char because int might match the return type of a gcc2
21798 builtin and then its argument prototype would still apply. */
21799 char $ac_func();
21800
21801 int main() {
21802
21803 /* The GNU C library defines this for functions which it implements
21804 to always fail with ENOSYS. Some functions are actually named
21805 something starting with __ and the normal name is an alias. */
21806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21807 choke me
21808 #else
21809 $ac_func();
21810 #endif
21811
21812 ; return 0; }
21813 EOF
21814 if { (eval echo configure:21815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21815 rm -rf conftest*
21816 eval "ac_cv_func_$ac_func=yes"
21817 else
21818 echo "configure: failed program was:" >&5
21819 cat conftest.$ac_ext >&5
21820 rm -rf conftest*
21821 eval "ac_cv_func_$ac_func=no"
21822 fi
21823 rm -f conftest*
21824 fi
21825
21826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21827 echo "$ac_t""yes" 1>&6
21828 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21829 cat >> confdefs.h <<EOF
21830 #define $ac_tr_func 1
21831 EOF
21832
21833 else
21834 echo "$ac_t""no" 1>&6
21835 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
21836 fi
21837 done
21838
21839 for ac_func in __signbitf
21840 do
21841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21842 echo "configure:21843: checking for $ac_func" >&5
21843 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21844 echo $ac_n "(cached) $ac_c" 1>&6
21845 else
21846 cat > conftest.$ac_ext <<EOF
21847 #line 21848 "configure"
21848 #include "confdefs.h"
21849 /* System header to define __stub macros and hopefully few prototypes,
21850 which can conflict with char $ac_func(); below. */
21851 #include <assert.h>
21852 /* Override any gcc2 internal prototype to avoid an error. */
21853 /* We use char because int might match the return type of a gcc2
21854 builtin and then its argument prototype would still apply. */
21855 char $ac_func();
21856
21857 int main() {
21858
21859 /* The GNU C library defines this for functions which it implements
21860 to always fail with ENOSYS. Some functions are actually named
21861 something starting with __ and the normal name is an alias. */
21862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21863 choke me
21864 #else
21865 $ac_func();
21866 #endif
21867
21868 ; return 0; }
21869 EOF
21870 if { (eval echo configure:21871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21871 rm -rf conftest*
21872 eval "ac_cv_func_$ac_func=yes"
21873 else
21874 echo "configure: failed program was:" >&5
21875 cat conftest.$ac_ext >&5
21876 rm -rf conftest*
21877 eval "ac_cv_func_$ac_func=no"
21878 fi
21879 rm -f conftest*
21880 fi
21881
21882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21883 echo "$ac_t""yes" 1>&6
21884 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21885 cat >> confdefs.h <<EOF
21886 #define $ac_tr_func 1
21887 EOF
21888
21889 else
21890 echo "$ac_t""no" 1>&6
21891 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
21892 fi
21893 done
21894
21895
21896 if test x$ac_cv_func_copysignl = x"yes"; then
21897 for ac_func in __signbitl
21898 do
21899 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21900 echo "configure:21901: checking for $ac_func" >&5
21901 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21902 echo $ac_n "(cached) $ac_c" 1>&6
21903 else
21904 cat > conftest.$ac_ext <<EOF
21905 #line 21906 "configure"
21906 #include "confdefs.h"
21907 /* System header to define __stub macros and hopefully few prototypes,
21908 which can conflict with char $ac_func(); below. */
21909 #include <assert.h>
21910 /* Override any gcc2 internal prototype to avoid an error. */
21911 /* We use char because int might match the return type of a gcc2
21912 builtin and then its argument prototype would still apply. */
21913 char $ac_func();
21914
21915 int main() {
21916
21917 /* The GNU C library defines this for functions which it implements
21918 to always fail with ENOSYS. Some functions are actually named
21919 something starting with __ and the normal name is an alias. */
21920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21921 choke me
21922 #else
21923 $ac_func();
21924 #endif
21925
21926 ; return 0; }
21927 EOF
21928 if { (eval echo configure:21929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21929 rm -rf conftest*
21930 eval "ac_cv_func_$ac_func=yes"
21931 else
21932 echo "configure: failed program was:" >&5
21933 cat conftest.$ac_ext >&5
21934 rm -rf conftest*
21935 eval "ac_cv_func_$ac_func=no"
21936 fi
21937 rm -f conftest*
21938 fi
21939
21940 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21941 echo "$ac_t""yes" 1>&6
21942 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21943 cat >> confdefs.h <<EOF
21944 #define $ac_tr_func 1
21945 EOF
21946
21947 else
21948 echo "$ac_t""no" 1>&6
21949 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
21950 fi
21951 done
21952
21953 fi
21954
21955 if test -n "$LIBMATHOBJS"; then
21956 need_libmath=yes
21957 fi
21958
21959
21960
21961 if test "$need_libmath" = yes; then
21962 GLIBCPP_BUILD_LIBMATH_TRUE=
21963 GLIBCPP_BUILD_LIBMATH_FALSE='#'
21964 else
21965 GLIBCPP_BUILD_LIBMATH_TRUE='#'
21966 GLIBCPP_BUILD_LIBMATH_FALSE=
21967 fi
21968
21969
21970 enable_wchar_t=no
21971
21972 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
21973 echo "configure:21974: checking for mbstate_t" >&5
21974 cat > conftest.$ac_ext <<EOF
21975 #line 21976 "configure"
21976 #include "confdefs.h"
21977 #include <wchar.h>
21978 int main() {
21979 mbstate_t teststate;
21980 ; return 0; }
21981 EOF
21982 if { (eval echo configure:21983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21983 rm -rf conftest*
21984 have_mbstate_t=yes
21985 else
21986 echo "configure: failed program was:" >&5
21987 cat conftest.$ac_ext >&5
21988 rm -rf conftest*
21989 have_mbstate_t=no
21990 fi
21991 rm -f conftest*
21992 echo "$ac_t""$have_mbstate_t" 1>&6
21993 if test x"$have_mbstate_t" = xyes; then
21994 cat >> confdefs.h <<\EOF
21995 #define HAVE_MBSTATE_T 1
21996 EOF
21997
21998 fi
21999
22000 for ac_hdr in wchar.h
22001 do
22002 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22003 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22004 echo "configure:22005: checking for $ac_hdr" >&5
22005 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22006 echo $ac_n "(cached) $ac_c" 1>&6
22007 else
22008 cat > conftest.$ac_ext <<EOF
22009 #line 22010 "configure"
22010 #include "confdefs.h"
22011 #include <$ac_hdr>
22012 EOF
22013 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22014 { (eval echo configure:22015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22015 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22016 if test -z "$ac_err"; then
22017 rm -rf conftest*
22018 eval "ac_cv_header_$ac_safe=yes"
22019 else
22020 echo "$ac_err" >&5
22021 echo "configure: failed program was:" >&5
22022 cat conftest.$ac_ext >&5
22023 rm -rf conftest*
22024 eval "ac_cv_header_$ac_safe=no"
22025 fi
22026 rm -f conftest*
22027 fi
22028 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22029 echo "$ac_t""yes" 1>&6
22030 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22031 cat >> confdefs.h <<EOF
22032 #define $ac_tr_hdr 1
22033 EOF
22034 ac_has_wchar_h=yes
22035 else
22036 echo "$ac_t""no" 1>&6
22037 ac_has_wchar_h=no
22038 fi
22039 done
22040
22041 for ac_hdr in wctype.h
22042 do
22043 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22044 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22045 echo "configure:22046: checking for $ac_hdr" >&5
22046 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22047 echo $ac_n "(cached) $ac_c" 1>&6
22048 else
22049 cat > conftest.$ac_ext <<EOF
22050 #line 22051 "configure"
22051 #include "confdefs.h"
22052 #include <$ac_hdr>
22053 EOF
22054 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22055 { (eval echo configure:22056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22056 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22057 if test -z "$ac_err"; then
22058 rm -rf conftest*
22059 eval "ac_cv_header_$ac_safe=yes"
22060 else
22061 echo "$ac_err" >&5
22062 echo "configure: failed program was:" >&5
22063 cat conftest.$ac_ext >&5
22064 rm -rf conftest*
22065 eval "ac_cv_header_$ac_safe=no"
22066 fi
22067 rm -f conftest*
22068 fi
22069 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22070 echo "$ac_t""yes" 1>&6
22071 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22072 cat >> confdefs.h <<EOF
22073 #define $ac_tr_hdr 1
22074 EOF
22075 ac_has_wctype_h=yes
22076 else
22077 echo "$ac_t""no" 1>&6
22078 ac_has_wctype_h=no
22079 fi
22080 done
22081
22082
22083 if test x"$ac_has_wchar_h" = xyes &&
22084 test x"$ac_has_wctype_h" = xyes &&
22085 test x"$enable_c_mbchar" != xno; then
22086
22087 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
22088 echo "configure:22089: checking for WCHAR_MIN and WCHAR_MAX" >&5
22089 cat > conftest.$ac_ext <<EOF
22090 #line 22091 "configure"
22091 #include "confdefs.h"
22092 #include <wchar.h>
22093 int main() {
22094 int i = WCHAR_MIN; int j = WCHAR_MAX;
22095 ; return 0; }
22096 EOF
22097 if { (eval echo configure:22098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22098 rm -rf conftest*
22099 has_wchar_minmax=yes
22100 else
22101 echo "configure: failed program was:" >&5
22102 cat conftest.$ac_ext >&5
22103 rm -rf conftest*
22104 has_wchar_minmax=no
22105 fi
22106 rm -f conftest*
22107 echo "$ac_t""$has_wchar_minmax" 1>&6
22108
22109 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
22110 echo "configure:22111: checking for WEOF" >&5
22111 cat > conftest.$ac_ext <<EOF
22112 #line 22113 "configure"
22113 #include "confdefs.h"
22114
22115 #include <wchar.h>
22116 #include <stddef.h>
22117 int main() {
22118 wint_t i = WEOF;
22119 ; return 0; }
22120 EOF
22121 if { (eval echo configure:22122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22122 rm -rf conftest*
22123 has_weof=yes
22124 else
22125 echo "configure: failed program was:" >&5
22126 cat conftest.$ac_ext >&5
22127 rm -rf conftest*
22128 has_weof=no
22129 fi
22130 rm -f conftest*
22131 echo "$ac_t""$has_weof" 1>&6
22132
22133 ac_wfuncs=yes
22134 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
22135 do
22136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22137 echo "configure:22138: checking for $ac_func" >&5
22138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22139 echo $ac_n "(cached) $ac_c" 1>&6
22140 else
22141 cat > conftest.$ac_ext <<EOF
22142 #line 22143 "configure"
22143 #include "confdefs.h"
22144 /* System header to define __stub macros and hopefully few prototypes,
22145 which can conflict with char $ac_func(); below. */
22146 #include <assert.h>
22147 /* Override any gcc2 internal prototype to avoid an error. */
22148 /* We use char because int might match the return type of a gcc2
22149 builtin and then its argument prototype would still apply. */
22150 char $ac_func();
22151
22152 int main() {
22153
22154 /* The GNU C library defines this for functions which it implements
22155 to always fail with ENOSYS. Some functions are actually named
22156 something starting with __ and the normal name is an alias. */
22157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22158 choke me
22159 #else
22160 $ac_func();
22161 #endif
22162
22163 ; return 0; }
22164 EOF
22165 if { (eval echo configure:22166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22166 rm -rf conftest*
22167 eval "ac_cv_func_$ac_func=yes"
22168 else
22169 echo "configure: failed program was:" >&5
22170 cat conftest.$ac_ext >&5
22171 rm -rf conftest*
22172 eval "ac_cv_func_$ac_func=no"
22173 fi
22174 rm -f conftest*
22175 fi
22176
22177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22178 echo "$ac_t""yes" 1>&6
22179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22180 cat >> confdefs.h <<EOF
22181 #define $ac_tr_func 1
22182 EOF
22183
22184 else
22185 echo "$ac_t""no" 1>&6
22186 \
22187 ac_wfuncs=no
22188 fi
22189 done
22190
22191
22192 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
22193 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
22194 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
22195 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
22196 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
22197 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
22198 do
22199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22200 echo "configure:22201: checking for $ac_func" >&5
22201 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22202 echo $ac_n "(cached) $ac_c" 1>&6
22203 else
22204 cat > conftest.$ac_ext <<EOF
22205 #line 22206 "configure"
22206 #include "confdefs.h"
22207 /* System header to define __stub macros and hopefully few prototypes,
22208 which can conflict with char $ac_func(); below. */
22209 #include <assert.h>
22210 /* Override any gcc2 internal prototype to avoid an error. */
22211 /* We use char because int might match the return type of a gcc2
22212 builtin and then its argument prototype would still apply. */
22213 char $ac_func();
22214
22215 int main() {
22216
22217 /* The GNU C library defines this for functions which it implements
22218 to always fail with ENOSYS. Some functions are actually named
22219 something starting with __ and the normal name is an alias. */
22220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22221 choke me
22222 #else
22223 $ac_func();
22224 #endif
22225
22226 ; return 0; }
22227 EOF
22228 if { (eval echo configure:22229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22229 rm -rf conftest*
22230 eval "ac_cv_func_$ac_func=yes"
22231 else
22232 echo "configure: failed program was:" >&5
22233 cat conftest.$ac_ext >&5
22234 rm -rf conftest*
22235 eval "ac_cv_func_$ac_func=no"
22236 fi
22237 rm -f conftest*
22238 fi
22239
22240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22241 echo "$ac_t""yes" 1>&6
22242 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22243 cat >> confdefs.h <<EOF
22244 #define $ac_tr_func 1
22245 EOF
22246
22247 else
22248 echo "$ac_t""no" 1>&6
22249 \
22250 ac_wfuncs=no
22251 fi
22252 done
22253
22254
22255 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22256 echo "configure:22257: checking for ISO C99 wchar_t support" >&5
22257 if test x"$has_weof" = xyes &&
22258 test x"$has_wchar_minmax" = xyes &&
22259 test x"$ac_wfuncs" = xyes; then
22260 ac_isoC99_wchar_t=yes
22261 else
22262 ac_isoC99_wchar_t=no
22263 fi
22264 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22265
22266 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22267 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22268 echo "configure:22269: checking for iconv.h" >&5
22269 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22270 echo $ac_n "(cached) $ac_c" 1>&6
22271 else
22272 cat > conftest.$ac_ext <<EOF
22273 #line 22274 "configure"
22274 #include "confdefs.h"
22275 #include <iconv.h>
22276 EOF
22277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22278 { (eval echo configure:22279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22280 if test -z "$ac_err"; then
22281 rm -rf conftest*
22282 eval "ac_cv_header_$ac_safe=yes"
22283 else
22284 echo "$ac_err" >&5
22285 echo "configure: failed program was:" >&5
22286 cat conftest.$ac_ext >&5
22287 rm -rf conftest*
22288 eval "ac_cv_header_$ac_safe=no"
22289 fi
22290 rm -f conftest*
22291 fi
22292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22293 echo "$ac_t""yes" 1>&6
22294 ac_has_iconv_h=yes
22295 else
22296 echo "$ac_t""no" 1>&6
22297 ac_has_iconv_h=no
22298 fi
22299
22300 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22301 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22302 echo "configure:22303: checking for langinfo.h" >&5
22303 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22304 echo $ac_n "(cached) $ac_c" 1>&6
22305 else
22306 cat > conftest.$ac_ext <<EOF
22307 #line 22308 "configure"
22308 #include "confdefs.h"
22309 #include <langinfo.h>
22310 EOF
22311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22312 { (eval echo configure:22313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22314 if test -z "$ac_err"; then
22315 rm -rf conftest*
22316 eval "ac_cv_header_$ac_safe=yes"
22317 else
22318 echo "$ac_err" >&5
22319 echo "configure: failed program was:" >&5
22320 cat conftest.$ac_ext >&5
22321 rm -rf conftest*
22322 eval "ac_cv_header_$ac_safe=no"
22323 fi
22324 rm -f conftest*
22325 fi
22326 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22327 echo "$ac_t""yes" 1>&6
22328 ac_has_langinfo_h=yes
22329 else
22330 echo "$ac_t""no" 1>&6
22331 ac_has_langinfo_h=no
22332 fi
22333
22334
22335 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22336 echo "configure:22337: checking for iconv in -liconv" >&5
22337 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22338 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22339 echo $ac_n "(cached) $ac_c" 1>&6
22340 else
22341 ac_save_LIBS="$LIBS"
22342 LIBS="-liconv $LIBS"
22343 cat > conftest.$ac_ext <<EOF
22344 #line 22345 "configure"
22345 #include "confdefs.h"
22346 /* Override any gcc2 internal prototype to avoid an error. */
22347 /* We use char because int might match the return type of a gcc2
22348 builtin and then its argument prototype would still apply. */
22349 char iconv();
22350
22351 int main() {
22352 iconv()
22353 ; return 0; }
22354 EOF
22355 if { (eval echo configure:22356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22356 rm -rf conftest*
22357 eval "ac_cv_lib_$ac_lib_var=yes"
22358 else
22359 echo "configure: failed program was:" >&5
22360 cat conftest.$ac_ext >&5
22361 rm -rf conftest*
22362 eval "ac_cv_lib_$ac_lib_var=no"
22363 fi
22364 rm -f conftest*
22365 LIBS="$ac_save_LIBS"
22366
22367 fi
22368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22369 echo "$ac_t""yes" 1>&6
22370 libiconv="-liconv"
22371 else
22372 echo "$ac_t""no" 1>&6
22373 fi
22374
22375 ac_save_LIBS="$LIBS"
22376 LIBS="$LIBS $libiconv"
22377
22378 for ac_func in iconv_open iconv_close iconv nl_langinfo
22379 do
22380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22381 echo "configure:22382: checking for $ac_func" >&5
22382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22383 echo $ac_n "(cached) $ac_c" 1>&6
22384 else
22385 cat > conftest.$ac_ext <<EOF
22386 #line 22387 "configure"
22387 #include "confdefs.h"
22388 /* System header to define __stub macros and hopefully few prototypes,
22389 which can conflict with char $ac_func(); below. */
22390 #include <assert.h>
22391 /* Override any gcc2 internal prototype to avoid an error. */
22392 /* We use char because int might match the return type of a gcc2
22393 builtin and then its argument prototype would still apply. */
22394 char $ac_func();
22395
22396 int main() {
22397
22398 /* The GNU C library defines this for functions which it implements
22399 to always fail with ENOSYS. Some functions are actually named
22400 something starting with __ and the normal name is an alias. */
22401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22402 choke me
22403 #else
22404 $ac_func();
22405 #endif
22406
22407 ; return 0; }
22408 EOF
22409 if { (eval echo configure:22410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22410 rm -rf conftest*
22411 eval "ac_cv_func_$ac_func=yes"
22412 else
22413 echo "configure: failed program was:" >&5
22414 cat conftest.$ac_ext >&5
22415 rm -rf conftest*
22416 eval "ac_cv_func_$ac_func=no"
22417 fi
22418 rm -f conftest*
22419 fi
22420
22421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22422 echo "$ac_t""yes" 1>&6
22423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22424 cat >> confdefs.h <<EOF
22425 #define $ac_tr_func 1
22426 EOF
22427 \
22428 ac_XPG2funcs=yes
22429 else
22430 echo "$ac_t""no" 1>&6
22431 ac_XPG2funcs=no
22432 fi
22433 done
22434
22435
22436 LIBS="$ac_save_LIBS"
22437
22438 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22439 echo "configure:22440: checking for XPG2 wchar_t support" >&5
22440 if test x"$ac_has_iconv_h" = xyes &&
22441 test x"$ac_has_langinfo_h" = xyes &&
22442 test x"$ac_XPG2funcs" = xyes; then
22443 ac_XPG2_wchar_t=yes
22444 else
22445 ac_XPG2_wchar_t=no
22446 fi
22447 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22448
22449 if test x"$ac_isoC99_wchar_t" = xyes &&
22450 test x"$ac_XPG2_wchar_t" = xyes; then
22451 cat >> confdefs.h <<\EOF
22452 #define _GLIBCPP_USE_WCHAR_T 1
22453 EOF
22454
22455 enable_wchar_t=yes
22456 fi
22457 fi
22458 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22459 echo "configure:22460: checking for enabled wchar_t specializations" >&5
22460 echo "$ac_t""$enable_wchar_t" 1>&6
22461
22462
22463 if test "$enable_wchar_t" = yes; then
22464 GLIBCPP_TEST_WCHAR_T_TRUE=
22465 GLIBCPP_TEST_WCHAR_T_FALSE='#'
22466 else
22467 GLIBCPP_TEST_WCHAR_T_TRUE='#'
22468 GLIBCPP_TEST_WCHAR_T_FALSE=
22469 fi
22470
22471
22472 ac_test_CXXFLAGS="${CXXFLAGS+set}"
22473 ac_save_CXXFLAGS="$CXXFLAGS"
22474 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22475
22476
22477 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22478 echo "configure:22479: checking for strtold declaration" >&5
22479 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
22480 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
22481 echo $ac_n "(cached) $ac_c" 1>&6
22482 else
22483
22484
22485 ac_ext=C
22486 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22487 ac_cpp='$CXXCPP $CPPFLAGS'
22488 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22489 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22490 cross_compiling=$ac_cv_prog_cxx_cross
22491
22492 cat > conftest.$ac_ext <<EOF
22493 #line 22494 "configure"
22494 #include "confdefs.h"
22495 #include <stdlib.h>
22496 int main() {
22497 strtold(0, 0);
22498 ; return 0; }
22499 EOF
22500 if { (eval echo configure:22501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22501 rm -rf conftest*
22502 glibcpp_cv_func_strtold_use=yes
22503 else
22504 echo "configure: failed program was:" >&5
22505 cat conftest.$ac_ext >&5
22506 rm -rf conftest*
22507 glibcpp_cv_func_strtold_use=no
22508 fi
22509 rm -f conftest*
22510 ac_ext=c
22511 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22512 ac_cpp='$CPP $CPPFLAGS'
22513 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22514 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22515 cross_compiling=$ac_cv_prog_cc_cross
22516
22517
22518 fi
22519
22520 fi
22521 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
22522 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
22523 for ac_func in strtold
22524 do
22525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22526 echo "configure:22527: checking for $ac_func" >&5
22527 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22528 echo $ac_n "(cached) $ac_c" 1>&6
22529 else
22530 cat > conftest.$ac_ext <<EOF
22531 #line 22532 "configure"
22532 #include "confdefs.h"
22533 /* System header to define __stub macros and hopefully few prototypes,
22534 which can conflict with char $ac_func(); below. */
22535 #include <assert.h>
22536 /* Override any gcc2 internal prototype to avoid an error. */
22537 /* We use char because int might match the return type of a gcc2
22538 builtin and then its argument prototype would still apply. */
22539 char $ac_func();
22540
22541 int main() {
22542
22543 /* The GNU C library defines this for functions which it implements
22544 to always fail with ENOSYS. Some functions are actually named
22545 something starting with __ and the normal name is an alias. */
22546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22547 choke me
22548 #else
22549 $ac_func();
22550 #endif
22551
22552 ; return 0; }
22553 EOF
22554 if { (eval echo configure:22555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22555 rm -rf conftest*
22556 eval "ac_cv_func_$ac_func=yes"
22557 else
22558 echo "configure: failed program was:" >&5
22559 cat conftest.$ac_ext >&5
22560 rm -rf conftest*
22561 eval "ac_cv_func_$ac_func=no"
22562 fi
22563 rm -f conftest*
22564 fi
22565
22566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22567 echo "$ac_t""yes" 1>&6
22568 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22569 cat >> confdefs.h <<EOF
22570 #define $ac_tr_func 1
22571 EOF
22572
22573 else
22574 echo "$ac_t""no" 1>&6
22575 fi
22576 done
22577
22578 fi
22579
22580
22581 echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22582 echo "configure:22583: checking for strtof declaration" >&5
22583 if test x${glibcpp_cv_func_strtof_use+set} != xset; then
22584 if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
22585 echo $ac_n "(cached) $ac_c" 1>&6
22586 else
22587
22588
22589 ac_ext=C
22590 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22591 ac_cpp='$CXXCPP $CPPFLAGS'
22592 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22593 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22594 cross_compiling=$ac_cv_prog_cxx_cross
22595
22596 cat > conftest.$ac_ext <<EOF
22597 #line 22598 "configure"
22598 #include "confdefs.h"
22599 #include <stdlib.h>
22600 int main() {
22601 strtof(0, 0);
22602 ; return 0; }
22603 EOF
22604 if { (eval echo configure:22605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22605 rm -rf conftest*
22606 glibcpp_cv_func_strtof_use=yes
22607 else
22608 echo "configure: failed program was:" >&5
22609 cat conftest.$ac_ext >&5
22610 rm -rf conftest*
22611 glibcpp_cv_func_strtof_use=no
22612 fi
22613 rm -f conftest*
22614 ac_ext=c
22615 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22616 ac_cpp='$CPP $CPPFLAGS'
22617 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22618 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22619 cross_compiling=$ac_cv_prog_cc_cross
22620
22621
22622 fi
22623
22624 fi
22625 echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
22626 if test x$glibcpp_cv_func_strtof_use = x"yes"; then
22627 for ac_func in strtof
22628 do
22629 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22630 echo "configure:22631: checking for $ac_func" >&5
22631 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22632 echo $ac_n "(cached) $ac_c" 1>&6
22633 else
22634 cat > conftest.$ac_ext <<EOF
22635 #line 22636 "configure"
22636 #include "confdefs.h"
22637 /* System header to define __stub macros and hopefully few prototypes,
22638 which can conflict with char $ac_func(); below. */
22639 #include <assert.h>
22640 /* Override any gcc2 internal prototype to avoid an error. */
22641 /* We use char because int might match the return type of a gcc2
22642 builtin and then its argument prototype would still apply. */
22643 char $ac_func();
22644
22645 int main() {
22646
22647 /* The GNU C library defines this for functions which it implements
22648 to always fail with ENOSYS. Some functions are actually named
22649 something starting with __ and the normal name is an alias. */
22650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22651 choke me
22652 #else
22653 $ac_func();
22654 #endif
22655
22656 ; return 0; }
22657 EOF
22658 if { (eval echo configure:22659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22659 rm -rf conftest*
22660 eval "ac_cv_func_$ac_func=yes"
22661 else
22662 echo "configure: failed program was:" >&5
22663 cat conftest.$ac_ext >&5
22664 rm -rf conftest*
22665 eval "ac_cv_func_$ac_func=no"
22666 fi
22667 rm -f conftest*
22668 fi
22669
22670 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22671 echo "$ac_t""yes" 1>&6
22672 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22673 cat >> confdefs.h <<EOF
22674 #define $ac_tr_func 1
22675 EOF
22676
22677 else
22678 echo "$ac_t""no" 1>&6
22679 fi
22680 done
22681
22682 fi
22683
22684 for ac_func in drand48
22685 do
22686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22687 echo "configure:22688: checking for $ac_func" >&5
22688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22689 echo $ac_n "(cached) $ac_c" 1>&6
22690 else
22691 cat > conftest.$ac_ext <<EOF
22692 #line 22693 "configure"
22693 #include "confdefs.h"
22694 /* System header to define __stub macros and hopefully few prototypes,
22695 which can conflict with char $ac_func(); below. */
22696 #include <assert.h>
22697 /* Override any gcc2 internal prototype to avoid an error. */
22698 /* We use char because int might match the return type of a gcc2
22699 builtin and then its argument prototype would still apply. */
22700 char $ac_func();
22701
22702 int main() {
22703
22704 /* The GNU C library defines this for functions which it implements
22705 to always fail with ENOSYS. Some functions are actually named
22706 something starting with __ and the normal name is an alias. */
22707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22708 choke me
22709 #else
22710 $ac_func();
22711 #endif
22712
22713 ; return 0; }
22714 EOF
22715 if { (eval echo configure:22716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22716 rm -rf conftest*
22717 eval "ac_cv_func_$ac_func=yes"
22718 else
22719 echo "configure: failed program was:" >&5
22720 cat conftest.$ac_ext >&5
22721 rm -rf conftest*
22722 eval "ac_cv_func_$ac_func=no"
22723 fi
22724 rm -f conftest*
22725 fi
22726
22727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22728 echo "$ac_t""yes" 1>&6
22729 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22730 cat >> confdefs.h <<EOF
22731 #define $ac_tr_func 1
22732 EOF
22733
22734 else
22735 echo "$ac_t""no" 1>&6
22736 fi
22737 done
22738
22739
22740 CXXFLAGS="$ac_save_CXXFLAGS"
22741
22742
22743 # For showmanyc_helper().
22744 for ac_hdr in sys/ioctl.h sys/filio.h
22745 do
22746 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22747 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22748 echo "configure:22749: checking for $ac_hdr" >&5
22749 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22750 echo $ac_n "(cached) $ac_c" 1>&6
22751 else
22752 cat > conftest.$ac_ext <<EOF
22753 #line 22754 "configure"
22754 #include "confdefs.h"
22755 #include <$ac_hdr>
22756 EOF
22757 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22758 { (eval echo configure:22759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22759 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22760 if test -z "$ac_err"; then
22761 rm -rf conftest*
22762 eval "ac_cv_header_$ac_safe=yes"
22763 else
22764 echo "$ac_err" >&5
22765 echo "configure: failed program was:" >&5
22766 cat conftest.$ac_ext >&5
22767 rm -rf conftest*
22768 eval "ac_cv_header_$ac_safe=no"
22769 fi
22770 rm -f conftest*
22771 fi
22772 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22773 echo "$ac_t""yes" 1>&6
22774 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22775 cat >> confdefs.h <<EOF
22776 #define $ac_tr_hdr 1
22777 EOF
22778
22779 else
22780 echo "$ac_t""no" 1>&6
22781 fi
22782 done
22783
22784
22785 if eval "test \"`echo '$''{'glibcpp_cv_POLL'+set}'`\" = set"; then
22786 echo $ac_n "(cached) $ac_c" 1>&6
22787 else
22788
22789 cat > conftest.$ac_ext <<EOF
22790 #line 22791 "configure"
22791 #include "confdefs.h"
22792 #include <poll.h>
22793 int main() {
22794 struct pollfd pfd[1]; pfd[0].events = POLLIN; poll(pfd, 1, 0);
22795 ; return 0; }
22796 EOF
22797 if { (eval echo configure:22798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22798 rm -rf conftest*
22799 glibcpp_cv_POLL=yes
22800 else
22801 echo "configure: failed program was:" >&5
22802 cat conftest.$ac_ext >&5
22803 rm -rf conftest*
22804 glibcpp_cv_POLL=no
22805 fi
22806 rm -f conftest*
22807
22808 fi
22809
22810 if test x$glibcpp_cv_POLL = xyes; then
22811 cat >> confdefs.h <<\EOF
22812 #define HAVE_POLL 1
22813 EOF
22814
22815 fi
22816
22817
22818 if eval "test \"`echo '$''{'glibcpp_cv_S_ISREG'+set}'`\" = set"; then
22819 echo $ac_n "(cached) $ac_c" 1>&6
22820 else
22821
22822 cat > conftest.$ac_ext <<EOF
22823 #line 22824 "configure"
22824 #include "confdefs.h"
22825 #include <sys/stat.h>
22826 int main() {
22827 struct stat buffer; fstat(0, &buffer); S_ISREG(buffer.st_mode);
22828 ; return 0; }
22829 EOF
22830 if { (eval echo configure:22831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22831 rm -rf conftest*
22832 glibcpp_cv_S_ISREG=yes
22833 else
22834 echo "configure: failed program was:" >&5
22835 cat conftest.$ac_ext >&5
22836 rm -rf conftest*
22837 glibcpp_cv_S_ISREG=no
22838 fi
22839 rm -f conftest*
22840
22841 fi
22842
22843 if eval "test \"`echo '$''{'glibcpp_cv_S_IFREG'+set}'`\" = set"; then
22844 echo $ac_n "(cached) $ac_c" 1>&6
22845 else
22846
22847 cat > conftest.$ac_ext <<EOF
22848 #line 22849 "configure"
22849 #include "confdefs.h"
22850 #include <sys/stat.h>
22851 int main() {
22852 struct stat buffer; fstat(0, &buffer); S_IFREG & buffer.st_mode;
22853 ; return 0; }
22854 EOF
22855 if { (eval echo configure:22856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22856 rm -rf conftest*
22857 glibcpp_cv_S_IFREG=yes
22858 else
22859 echo "configure: failed program was:" >&5
22860 cat conftest.$ac_ext >&5
22861 rm -rf conftest*
22862 glibcpp_cv_S_IFREG=no
22863 fi
22864 rm -f conftest*
22865
22866 fi
22867
22868 if test x$glibcpp_cv_S_ISREG = xyes; then
22869 cat >> confdefs.h <<\EOF
22870 #define HAVE_S_ISREG 1
22871 EOF
22872
22873 elif test x$glibcpp_cv_S_IFREG = xyes; then
22874 cat >> confdefs.h <<\EOF
22875 #define HAVE_S_IFREG 1
22876 EOF
22877
22878 fi
22879
22880
22881
22882 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
22883 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
22884 echo "configure:22885: checking for locale.h" >&5
22885 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22886 echo $ac_n "(cached) $ac_c" 1>&6
22887 else
22888 cat > conftest.$ac_ext <<EOF
22889 #line 22890 "configure"
22890 #include "confdefs.h"
22891 #include <locale.h>
22892 EOF
22893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22894 { (eval echo configure:22895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22896 if test -z "$ac_err"; then
22897 rm -rf conftest*
22898 eval "ac_cv_header_$ac_safe=yes"
22899 else
22900 echo "$ac_err" >&5
22901 echo "configure: failed program was:" >&5
22902 cat conftest.$ac_ext >&5
22903 rm -rf conftest*
22904 eval "ac_cv_header_$ac_safe=no"
22905 fi
22906 rm -f conftest*
22907 fi
22908 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22909 echo "$ac_t""yes" 1>&6
22910
22911 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
22912 echo "configure:22913: checking for LC_MESSAGES" >&5
22913 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
22914 echo $ac_n "(cached) $ac_c" 1>&6
22915 else
22916 cat > conftest.$ac_ext <<EOF
22917 #line 22918 "configure"
22918 #include "confdefs.h"
22919 #include <locale.h>
22920 int main() {
22921 return LC_MESSAGES
22922 ; return 0; }
22923 EOF
22924 if { (eval echo configure:22925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22925 rm -rf conftest*
22926 ac_cv_val_LC_MESSAGES=yes
22927 else
22928 echo "configure: failed program was:" >&5
22929 cat conftest.$ac_ext >&5
22930 rm -rf conftest*
22931 ac_cv_val_LC_MESSAGES=no
22932 fi
22933 rm -f conftest*
22934 fi
22935
22936 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
22937 if test $ac_cv_val_LC_MESSAGES = yes; then
22938 cat >> confdefs.h <<\EOF
22939 #define HAVE_LC_MESSAGES 1
22940 EOF
22941
22942 fi
22943
22944 else
22945 echo "$ac_t""no" 1>&6
22946 fi
22947
22948
22949
22950 cat > conftest.$ac_ext <<EOF
22951 #line 22952 "configure"
22952 #include "confdefs.h"
22953
22954 #include <setjmp.h>
22955
22956 int main() {
22957 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
22958 ; return 0; }
22959 EOF
22960 if { (eval echo configure:22961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22961 rm -rf conftest*
22962 cat >> confdefs.h <<\EOF
22963 #define HAVE_SIGSETJMP 1
22964 EOF
22965
22966
22967 else
22968 echo "configure: failed program was:" >&5
22969 cat conftest.$ac_ext >&5
22970 fi
22971 rm -f conftest*
22972
22973 for ac_hdr in unistd.h
22974 do
22975 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22976 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22977 echo "configure:22978: checking for $ac_hdr" >&5
22978 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22979 echo $ac_n "(cached) $ac_c" 1>&6
22980 else
22981 cat > conftest.$ac_ext <<EOF
22982 #line 22983 "configure"
22983 #include "confdefs.h"
22984 #include <$ac_hdr>
22985 EOF
22986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22987 { (eval echo configure:22988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22988 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22989 if test -z "$ac_err"; then
22990 rm -rf conftest*
22991 eval "ac_cv_header_$ac_safe=yes"
22992 else
22993 echo "$ac_err" >&5
22994 echo "configure: failed program was:" >&5
22995 cat conftest.$ac_ext >&5
22996 rm -rf conftest*
22997 eval "ac_cv_header_$ac_safe=no"
22998 fi
22999 rm -f conftest*
23000 fi
23001 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23002 echo "$ac_t""yes" 1>&6
23003 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23004 cat >> confdefs.h <<EOF
23005 #define $ac_tr_hdr 1
23006 EOF
23007
23008 else
23009 echo "$ac_t""no" 1>&6
23010 fi
23011 done
23012
23013 for ac_func in getpagesize
23014 do
23015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23016 echo "configure:23017: checking for $ac_func" >&5
23017 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23018 echo $ac_n "(cached) $ac_c" 1>&6
23019 else
23020 cat > conftest.$ac_ext <<EOF
23021 #line 23022 "configure"
23022 #include "confdefs.h"
23023 /* System header to define __stub macros and hopefully few prototypes,
23024 which can conflict with char $ac_func(); below. */
23025 #include <assert.h>
23026 /* Override any gcc2 internal prototype to avoid an error. */
23027 /* We use char because int might match the return type of a gcc2
23028 builtin and then its argument prototype would still apply. */
23029 char $ac_func();
23030
23031 int main() {
23032
23033 /* The GNU C library defines this for functions which it implements
23034 to always fail with ENOSYS. Some functions are actually named
23035 something starting with __ and the normal name is an alias. */
23036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23037 choke me
23038 #else
23039 $ac_func();
23040 #endif
23041
23042 ; return 0; }
23043 EOF
23044 if { (eval echo configure:23045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23045 rm -rf conftest*
23046 eval "ac_cv_func_$ac_func=yes"
23047 else
23048 echo "configure: failed program was:" >&5
23049 cat conftest.$ac_ext >&5
23050 rm -rf conftest*
23051 eval "ac_cv_func_$ac_func=no"
23052 fi
23053 rm -f conftest*
23054 fi
23055
23056 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23057 echo "$ac_t""yes" 1>&6
23058 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23059 cat >> confdefs.h <<EOF
23060 #define $ac_tr_func 1
23061 EOF
23062
23063 else
23064 echo "$ac_t""no" 1>&6
23065 fi
23066 done
23067
23068 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
23069 echo "configure:23070: checking for working mmap" >&5
23070 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
23071 echo $ac_n "(cached) $ac_c" 1>&6
23072 else
23073 if test "$cross_compiling" = yes; then
23074 ac_cv_func_mmap_fixed_mapped=no
23075 else
23076 cat > conftest.$ac_ext <<EOF
23077 #line 23078 "configure"
23078 #include "confdefs.h"
23079
23080 /* Thanks to Mike Haertel and Jim Avera for this test.
23081 Here is a matrix of mmap possibilities:
23082 mmap private not fixed
23083 mmap private fixed at somewhere currently unmapped
23084 mmap private fixed at somewhere already mapped
23085 mmap shared not fixed
23086 mmap shared fixed at somewhere currently unmapped
23087 mmap shared fixed at somewhere already mapped
23088 For private mappings, we should verify that changes cannot be read()
23089 back from the file, nor mmap's back from the file at a different
23090 address. (There have been systems where private was not correctly
23091 implemented like the infamous i386 svr4.0, and systems where the
23092 VM page cache was not coherent with the filesystem buffer cache
23093 like early versions of FreeBSD and possibly contemporary NetBSD.)
23094 For shared mappings, we should conversely verify that changes get
23095 propogated back to all the places they're supposed to be.
23096
23097 Grep wants private fixed already mapped.
23098 The main things grep needs to know about mmap are:
23099 * does it exist and is it safe to write into the mmap'd area
23100 * how to use it (BSD variants) */
23101 #include <sys/types.h>
23102 #include <fcntl.h>
23103 #include <sys/mman.h>
23104
23105 /* This mess was copied from the GNU getpagesize.h. */
23106 #ifndef HAVE_GETPAGESIZE
23107 # ifdef HAVE_UNISTD_H
23108 # include <unistd.h>
23109 # endif
23110
23111 /* Assume that all systems that can run configure have sys/param.h. */
23112 # ifndef HAVE_SYS_PARAM_H
23113 # define HAVE_SYS_PARAM_H 1
23114 # endif
23115
23116 # ifdef _SC_PAGESIZE
23117 # define getpagesize() sysconf(_SC_PAGESIZE)
23118 # else /* no _SC_PAGESIZE */
23119 # ifdef HAVE_SYS_PARAM_H
23120 # include <sys/param.h>
23121 # ifdef EXEC_PAGESIZE
23122 # define getpagesize() EXEC_PAGESIZE
23123 # else /* no EXEC_PAGESIZE */
23124 # ifdef NBPG
23125 # define getpagesize() NBPG * CLSIZE
23126 # ifndef CLSIZE
23127 # define CLSIZE 1
23128 # endif /* no CLSIZE */
23129 # else /* no NBPG */
23130 # ifdef NBPC
23131 # define getpagesize() NBPC
23132 # else /* no NBPC */
23133 # ifdef PAGESIZE
23134 # define getpagesize() PAGESIZE
23135 # endif /* PAGESIZE */
23136 # endif /* no NBPC */
23137 # endif /* no NBPG */
23138 # endif /* no EXEC_PAGESIZE */
23139 # else /* no HAVE_SYS_PARAM_H */
23140 # define getpagesize() 8192 /* punt totally */
23141 # endif /* no HAVE_SYS_PARAM_H */
23142 # endif /* no _SC_PAGESIZE */
23143
23144 #endif /* no HAVE_GETPAGESIZE */
23145
23146 #ifdef __cplusplus
23147 extern "C" { void *malloc(unsigned); }
23148 #else
23149 char *malloc();
23150 #endif
23151
23152 int
23153 main()
23154 {
23155 char *data, *data2, *data3;
23156 int i, pagesize;
23157 int fd;
23158
23159 pagesize = getpagesize();
23160
23161 /*
23162 * First, make a file with some known garbage in it.
23163 */
23164 data = malloc(pagesize);
23165 if (!data)
23166 exit(1);
23167 for (i = 0; i < pagesize; ++i)
23168 *(data + i) = rand();
23169 umask(0);
23170 fd = creat("conftestmmap", 0600);
23171 if (fd < 0)
23172 exit(1);
23173 if (write(fd, data, pagesize) != pagesize)
23174 exit(1);
23175 close(fd);
23176
23177 /*
23178 * Next, try to mmap the file at a fixed address which
23179 * already has something else allocated at it. If we can,
23180 * also make sure that we see the same garbage.
23181 */
23182 fd = open("conftestmmap", O_RDWR);
23183 if (fd < 0)
23184 exit(1);
23185 data2 = malloc(2 * pagesize);
23186 if (!data2)
23187 exit(1);
23188 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
23189 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
23190 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23191 exit(1);
23192 for (i = 0; i < pagesize; ++i)
23193 if (*(data + i) != *(data2 + i))
23194 exit(1);
23195
23196 /*
23197 * Finally, make sure that changes to the mapped area
23198 * do not percolate back to the file as seen by read().
23199 * (This is a bug on some variants of i386 svr4.0.)
23200 */
23201 for (i = 0; i < pagesize; ++i)
23202 *(data2 + i) = *(data2 + i) + 1;
23203 data3 = malloc(pagesize);
23204 if (!data3)
23205 exit(1);
23206 if (read(fd, data3, pagesize) != pagesize)
23207 exit(1);
23208 for (i = 0; i < pagesize; ++i)
23209 if (*(data + i) != *(data3 + i))
23210 exit(1);
23211 close(fd);
23212 unlink("conftestmmap");
23213 exit(0);
23214 }
23215
23216 EOF
23217 if { (eval echo configure:23218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23218 then
23219 ac_cv_func_mmap_fixed_mapped=yes
23220 else
23221 echo "configure: failed program was:" >&5
23222 cat conftest.$ac_ext >&5
23223 rm -fr conftest*
23224 ac_cv_func_mmap_fixed_mapped=no
23225 fi
23226 rm -fr conftest*
23227 fi
23228
23229 fi
23230
23231 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
23232 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23233 cat >> confdefs.h <<\EOF
23234 #define HAVE_MMAP 1
23235 EOF
23236
23237 fi
23238
23239
23240 # Establish limits on memory usage during 'make check'
23241
23242
23243 setrlimit_have_headers=yes
23244 for ac_hdr in unistd.h sys/time.h sys/resource.h
23245 do
23246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23248 echo "configure:23249: checking for $ac_hdr" >&5
23249 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23250 echo $ac_n "(cached) $ac_c" 1>&6
23251 else
23252 cat > conftest.$ac_ext <<EOF
23253 #line 23254 "configure"
23254 #include "confdefs.h"
23255 #include <$ac_hdr>
23256 EOF
23257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23258 { (eval echo configure:23259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23260 if test -z "$ac_err"; then
23261 rm -rf conftest*
23262 eval "ac_cv_header_$ac_safe=yes"
23263 else
23264 echo "$ac_err" >&5
23265 echo "configure: failed program was:" >&5
23266 cat conftest.$ac_ext >&5
23267 rm -rf conftest*
23268 eval "ac_cv_header_$ac_safe=no"
23269 fi
23270 rm -f conftest*
23271 fi
23272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23273 echo "$ac_t""yes" 1>&6
23274 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23275 cat >> confdefs.h <<EOF
23276 #define $ac_tr_hdr 1
23277 EOF
23278
23279 else
23280 echo "$ac_t""no" 1>&6
23281 setrlimit_have_headers=no
23282 fi
23283 done
23284
23285 # If don't have the headers, then we can't run the tests now, and we
23286 # won't be seeing any of these during testsuite compilation.
23287 if test $setrlimit_have_headers = yes; then
23288 # Can't do these in a loop, else the resulting syntax is wrong.
23289
23290 cat > conftest.$ac_ext <<EOF
23291 #line 23292 "configure"
23292 #include "confdefs.h"
23293 #include <unistd.h>
23294 #include <sys/time.h>
23295 #include <sys/resource.h>
23296
23297 int main() {
23298 int f = RLIMIT_DATA ;
23299 ; return 0; }
23300 EOF
23301 if { (eval echo configure:23302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23302 rm -rf conftest*
23303 glibcpp_mresult=1
23304 else
23305 echo "configure: failed program was:" >&5
23306 cat conftest.$ac_ext >&5
23307 rm -rf conftest*
23308 glibcpp_mresult=0
23309 fi
23310 rm -f conftest*
23311 cat >> confdefs.h <<EOF
23312 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
23313 EOF
23314
23315
23316
23317 cat > conftest.$ac_ext <<EOF
23318 #line 23319 "configure"
23319 #include "confdefs.h"
23320 #include <unistd.h>
23321 #include <sys/time.h>
23322 #include <sys/resource.h>
23323
23324 int main() {
23325 int f = RLIMIT_RSS ;
23326 ; return 0; }
23327 EOF
23328 if { (eval echo configure:23329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23329 rm -rf conftest*
23330 glibcpp_mresult=1
23331 else
23332 echo "configure: failed program was:" >&5
23333 cat conftest.$ac_ext >&5
23334 rm -rf conftest*
23335 glibcpp_mresult=0
23336 fi
23337 rm -f conftest*
23338 cat >> confdefs.h <<EOF
23339 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
23340 EOF
23341
23342
23343
23344 cat > conftest.$ac_ext <<EOF
23345 #line 23346 "configure"
23346 #include "confdefs.h"
23347 #include <unistd.h>
23348 #include <sys/time.h>
23349 #include <sys/resource.h>
23350
23351 int main() {
23352 int f = RLIMIT_VMEM ;
23353 ; return 0; }
23354 EOF
23355 if { (eval echo configure:23356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23356 rm -rf conftest*
23357 glibcpp_mresult=1
23358 else
23359 echo "configure: failed program was:" >&5
23360 cat conftest.$ac_ext >&5
23361 rm -rf conftest*
23362 glibcpp_mresult=0
23363 fi
23364 rm -f conftest*
23365 cat >> confdefs.h <<EOF
23366 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
23367 EOF
23368
23369
23370
23371 cat > conftest.$ac_ext <<EOF
23372 #line 23373 "configure"
23373 #include "confdefs.h"
23374 #include <unistd.h>
23375 #include <sys/time.h>
23376 #include <sys/resource.h>
23377
23378 int main() {
23379 int f = RLIMIT_AS ;
23380 ; return 0; }
23381 EOF
23382 if { (eval echo configure:23383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23383 rm -rf conftest*
23384 glibcpp_mresult=1
23385 else
23386 echo "configure: failed program was:" >&5
23387 cat conftest.$ac_ext >&5
23388 rm -rf conftest*
23389 glibcpp_mresult=0
23390 fi
23391 rm -f conftest*
23392 cat >> confdefs.h <<EOF
23393 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
23394 EOF
23395
23396
23397
23398 # Check for rlimit, setrlimit.
23399 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23400 echo $ac_n "(cached) $ac_c" 1>&6
23401 else
23402
23403 cat > conftest.$ac_ext <<EOF
23404 #line 23405 "configure"
23405 #include "confdefs.h"
23406 #include <unistd.h>
23407 #include <sys/time.h>
23408 #include <sys/resource.h>
23409
23410 int main() {
23411 struct rlimit r; setrlimit(0, &r);
23412 ; return 0; }
23413 EOF
23414 if { (eval echo configure:23415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23415 rm -rf conftest*
23416 ac_setrlimit=yes
23417 else
23418 echo "configure: failed program was:" >&5
23419 cat conftest.$ac_ext >&5
23420 rm -rf conftest*
23421 ac_setrlimit=no
23422 fi
23423 rm -f conftest*
23424
23425 fi
23426
23427 fi
23428
23429 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23430 echo "configure:23431: checking for testsuite memory limit support" >&5
23431 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23432 ac_mem_limits=yes
23433 cat >> confdefs.h <<\EOF
23434 #define _GLIBCPP_MEM_LIMITS 1
23435 EOF
23436
23437 else
23438 ac_mem_limits=no
23439 fi
23440 echo "$ac_t""$ac_mem_limits" 1>&6
23441
23442
23443 # Look for setenv, so that extended locale tests can be performed.
23444
23445 echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23446 echo "configure:23447: checking for setenv declaration" >&5
23447 if test x${glibcpp_cv_func_setenv_use+set} != xset; then
23448 if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
23449 echo $ac_n "(cached) $ac_c" 1>&6
23450 else
23451
23452
23453 ac_ext=C
23454 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23455 ac_cpp='$CXXCPP $CPPFLAGS'
23456 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23457 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23458 cross_compiling=$ac_cv_prog_cxx_cross
23459
23460 cat > conftest.$ac_ext <<EOF
23461 #line 23462 "configure"
23462 #include "confdefs.h"
23463 #include <stdlib.h>
23464 int main() {
23465 setenv(0, 0, 0);
23466 ; return 0; }
23467 EOF
23468 if { (eval echo configure:23469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23469 rm -rf conftest*
23470 glibcpp_cv_func_setenv_use=yes
23471 else
23472 echo "configure: failed program was:" >&5
23473 cat conftest.$ac_ext >&5
23474 rm -rf conftest*
23475 glibcpp_cv_func_setenv_use=no
23476 fi
23477 rm -f conftest*
23478 ac_ext=c
23479 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23480 ac_cpp='$CPP $CPPFLAGS'
23481 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23482 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23483 cross_compiling=$ac_cv_prog_cc_cross
23484
23485
23486 fi
23487
23488 fi
23489 echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
23490 if test x$glibcpp_cv_func_setenv_use = x"yes"; then
23491 for ac_func in setenv
23492 do
23493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23494 echo "configure:23495: checking for $ac_func" >&5
23495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23496 echo $ac_n "(cached) $ac_c" 1>&6
23497 else
23498 cat > conftest.$ac_ext <<EOF
23499 #line 23500 "configure"
23500 #include "confdefs.h"
23501 /* System header to define __stub macros and hopefully few prototypes,
23502 which can conflict with char $ac_func(); below. */
23503 #include <assert.h>
23504 /* Override any gcc2 internal prototype to avoid an error. */
23505 /* We use char because int might match the return type of a gcc2
23506 builtin and then its argument prototype would still apply. */
23507 char $ac_func();
23508
23509 int main() {
23510
23511 /* The GNU C library defines this for functions which it implements
23512 to always fail with ENOSYS. Some functions are actually named
23513 something starting with __ and the normal name is an alias. */
23514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23515 choke me
23516 #else
23517 $ac_func();
23518 #endif
23519
23520 ; return 0; }
23521 EOF
23522 if { (eval echo configure:23523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23523 rm -rf conftest*
23524 eval "ac_cv_func_$ac_func=yes"
23525 else
23526 echo "configure: failed program was:" >&5
23527 cat conftest.$ac_ext >&5
23528 rm -rf conftest*
23529 eval "ac_cv_func_$ac_func=no"
23530 fi
23531 rm -f conftest*
23532 fi
23533
23534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23535 echo "$ac_t""yes" 1>&6
23536 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23537 cat >> confdefs.h <<EOF
23538 #define $ac_tr_func 1
23539 EOF
23540
23541 else
23542 echo "$ac_t""no" 1>&6
23543 fi
23544 done
23545
23546 fi
23547
23548
23549 # Export file names for ABI checking.
23550 baseline_file="${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}/baseline_symbols.txt"
23551
23552
23553 case "$target" in
23554 *-*-cygwin* ) enable_abi_check=no ;;
23555 * ) enable_abi_check=yes ;;
23556 esac
23557
23558 # Don't do ABI checking unless native.
23559
23560
23561 if test x"$build" = x"$host" && test -z "$with_cross_host" \
23562 && test "$enable_abi_check" = yes ; then
23563 GLIBCPP_BUILD_ABI_CHECK_TRUE=
23564 GLIBCPP_BUILD_ABI_CHECK_FALSE='#'
23565 else
23566 GLIBCPP_BUILD_ABI_CHECK_TRUE='#'
23567 GLIBCPP_BUILD_ABI_CHECK_FALSE=
23568 fi
23569
23570 fi
23571
23572 # This depends on the possibly-skipped linker test above.
23573 # Check whether --enable-symvers or --disable-symvers was given.
23574 if test "${enable_symvers+set}" = set; then
23575 enableval="$enable_symvers"
23576 case "$enableval" in
23577 yes) enable_symvers=yes ;;
23578 no) enable_symvers=no ;;
23579 # other names here, just as sanity checks
23580 #gnu|sun|etcetera) enable_symvers=$enableval ;;
23581 gnu) enable_symvers=$enableval ;;
23582 *) { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23583 esac
23584 else
23585 enable_symvers=yes
23586 fi
23587
23588 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
23589 # don't know enough about $LD to do tricks...
23590 if test x$enable_shared = xno ||
23591 test "x$LD" = x ||
23592 test x$glibcpp_gnu_ld_version = x; then
23593 enable_symvers=no
23594 fi
23595
23596 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23597 if test $enable_symvers != no; then
23598 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23599 echo "configure:23600: checking for shared libgcc" >&5
23600 ac_save_CFLAGS="$CFLAGS"
23601 CFLAGS=' -lgcc_s'
23602 cat > conftest.$ac_ext <<EOF
23603 #line 23604 "configure"
23604 #include "confdefs.h"
23605
23606 int main() {
23607 return 0
23608 ; return 0; }
23609 EOF
23610 if { (eval echo configure:23611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23611 rm -rf conftest*
23612 glibcpp_shared_libgcc=yes
23613 else
23614 echo "configure: failed program was:" >&5
23615 cat conftest.$ac_ext >&5
23616 rm -rf conftest*
23617 glibcpp_shared_libgcc=no
23618 fi
23619 rm -f conftest*
23620 CFLAGS="$ac_save_CFLAGS"
23621 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
23622 fi
23623
23624 # For GNU ld, we need at least this version. It's 2.12 in the same format
23625 # as the tested-for version. See GLIBCPP_CHECK_LINKER_FEATURES for more.
23626 glibcpp_min_gnu_ld_version=21200
23627
23628 # Check to see if unspecified "yes" value can win, given results
23629 # above.
23630 if test $enable_symvers = yes ; then
23631 if test $with_gnu_ld = yes &&
23632 test $glibcpp_shared_libgcc = yes ;
23633 then
23634 if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
23635 enable_symvers=gnu
23636 else
23637 ac_test_CFLAGS="${CFLAGS+set}"
23638 ac_save_CFLAGS="$CFLAGS"
23639 CFLAGS='-shared -Wl,--version-script,conftest.map'
23640 enable_symvers=no
23641
23642 echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
23643
23644 cat > conftest.$ac_ext <<EOF
23645 #line 23646 "configure"
23646 #include "confdefs.h"
23647 int foo;
23648 int main() {
23649
23650 ; return 0; }
23651 EOF
23652 if { (eval echo configure:23653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23653 rm -rf conftest*
23654 enable_symvers=gnu
23655 else
23656 echo "configure: failed program was:" >&5
23657 cat conftest.$ac_ext >&5
23658 fi
23659 rm -f conftest*
23660 if test "$ac_test_CFLAGS" = set; then
23661 CFLAGS="$ac_save_CFLAGS"
23662 else
23663 # this is the suspicious part
23664 CFLAGS=''
23665 fi
23666 rm -f conftest.map
23667 fi
23668 else
23669 # just fail for now
23670 enable_symvers=no
23671 fi
23672 fi
23673
23674 case $enable_symvers in
23675 no)
23676 SYMVER_MAP=config/linker-map.dummy
23677 ;;
23678 gnu)
23679 SYMVER_MAP=config/linker-map.gnu
23680 cat >> confdefs.h <<\EOF
23681 #define _GLIBCPP_SYMVER 1
23682 EOF
23683
23684 ;;
23685 esac
23686
23687
23688
23689
23690 if test $enable_symvers != no; then
23691 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
23692 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
23693 else
23694 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
23695 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
23696 fi
23697 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23698 echo "configure:23699: checking versioning on shared library symbols" >&5
23699 echo "$ac_t""$enable_symvers" 1>&6
23700
23701
23702 # Propagate the target-specific source directories through the build chain.
23703 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH
23704 # uses it, and it only gets used in this file.)
23705 OS_INC_SRCDIR=config/${os_include_dir}
23706 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23707
23708
23709
23710 # Set up cross-compile flags
23711
23712
23713 if test "$CANADIAN" = yes; then
23714 CANADIAN_TRUE=
23715 CANADIAN_FALSE='#'
23716 else
23717 CANADIAN_TRUE='#'
23718 CANADIAN_FALSE=
23719 fi
23720
23721 cat > confcache <<\EOF
23722 # This file is a shell script that caches the results of configure
23723 # tests run on this system so they can be shared between configure
23724 # scripts and configure runs. It is not useful on other systems.
23725 # If it contains results you don't want to keep, you may remove or edit it.
23726 #
23727 # By default, configure uses ./config.cache as the cache file,
23728 # creating it if it does not exist already. You can give configure
23729 # the --cache-file=FILE option to use a different cache file; that is
23730 # what configure does when it calls configure scripts in
23731 # subdirectories, so they share the cache.
23732 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23733 # config.status only pays attention to the cache file if you give it the
23734 # --recheck option to rerun configure.
23735 #
23736 EOF
23737 # The following way of writing the cache mishandles newlines in values,
23738 # but we know of no workaround that is simple, portable, and efficient.
23739 # So, don't put newlines in cache variables' values.
23740 # Ultrix sh set writes to stderr and can't be redirected directly,
23741 # and sets the high bit in the cache file unless we assign to the vars.
23742 (set) 2>&1 |
23743 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23744 *ac_space=\ *)
23745 # `set' does not quote correctly, so add quotes (double-quote substitution
23746 # turns \\\\ into \\, and sed turns \\ into \).
23747 sed -n \
23748 -e "s/'/'\\\\''/g" \
23749 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23750 ;;
23751 *)
23752 # `set' quotes correctly as required by POSIX, so do not add quotes.
23753 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23754 ;;
23755 esac >> confcache
23756 if cmp -s $cache_file confcache; then
23757 :
23758 else
23759 if test -w $cache_file; then
23760 echo "updating cache $cache_file"
23761 cat confcache > $cache_file
23762 else
23763 echo "not updating unwritable cache $cache_file"
23764 fi
23765 fi
23766 rm -f confcache
23767
23768
23769 if test "${multilib}" = "yes"; then
23770 multilib_arg="--enable-multilib"
23771 else
23772 multilib_arg=
23773 fi
23774
23775 # Export all the install information
23776
23777 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
23778 # exported correctly in GLIBCPP_CONFIGURE.
23779 glibcpp_toolexecdir=no
23780 glibcpp_toolexeclibdir=no
23781 glibcpp_prefixdir=${prefix}
23782
23783 # Process the option --with-gxx-include-dir=<path to include-files directory>
23784 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
23785 echo "configure:23786: checking for --with-gxx-include-dir" >&5
23786 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
23787 if test "${with_gxx_include_dir+set}" = set; then
23788 withval="$with_gxx_include_dir"
23789 case "${withval}" in
23790 yes)
23791 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
23792 gxx_include_dir=no
23793 ;;
23794 no)
23795 gxx_include_dir=no
23796 ;;
23797 *)
23798 gxx_include_dir=${withval}
23799 ;;
23800 esac
23801 else
23802 gxx_include_dir=no
23803 fi
23804
23805 echo "$ac_t""$gxx_include_dir" 1>&6
23806
23807 # Process the option "--enable-version-specific-runtime-libs"
23808 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
23809 echo "configure:23810: checking for --enable-version-specific-runtime-libs" >&5
23810 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23811 if test "${enable_version_specific_runtime_libs+set}" = set; then
23812 enableval="$enable_version_specific_runtime_libs"
23813 case "$enableval" in
23814 yes) version_specific_libs=yes ;;
23815 no) version_specific_libs=no ;;
23816 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
23817 esac
23818 else
23819 version_specific_libs=no
23820 fi
23821 # Option set, now we can test it.
23822 echo "$ac_t""$version_specific_libs" 1>&6
23823
23824 # Default case for install directory for include files.
23825 if test $version_specific_libs = no && test $gxx_include_dir = no; then
23826 gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
23827 fi
23828
23829 # Version-specific runtime libs processing.
23830 if test $version_specific_libs = yes; then
23831 # Need the gcc compiler version to know where to install libraries
23832 # and header files if --enable-version-specific-runtime-libs option
23833 # is selected.
23834 if test x"$gxx_include_dir" = x"no"; then
23835 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
23836 fi
23837 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23838 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
23839 fi
23840
23841 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
23842 # Install a library built with a cross compiler in tooldir, not libdir.
23843 if test x"$glibcpp_toolexecdir" = x"no"; then
23844 if test -n "$with_cross_host" &&
23845 test x"$with_cross_host" != x"no"; then
23846 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
23847 glibcpp_toolexeclibdir='$(toolexecdir)/lib'
23848 else
23849 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23850 glibcpp_toolexeclibdir='$(libdir)'
23851 fi
23852 multi_os_directory=`$CC -print-multi-os-directory`
23853 case $multi_os_directory in
23854 .) ;; # Avoid trailing /.
23855 *) glibcpp_toolexeclibdir=$glibcpp_toolexeclibdir/$multi_os_directory ;;
23856 esac
23857 fi
23858
23859 echo $ac_n "checking for install location""... $ac_c" 1>&6
23860 echo "configure:23861: checking for install location" >&5
23861 echo "$ac_t""$gxx_include_dir" 1>&6
23862
23863
23864
23865
23866
23867
23868
23869 # Export all the include and flag information to Makefiles.
23870
23871 # Root level of the build directory include sources.
23872 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
23873
23874 # Passed down for canadian crosses.
23875 if test x"$CANADIAN" = xyes; then
23876 TOPLEVEL_INCLUDES='-I$(includedir)'
23877 fi
23878
23879 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
23880
23881 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
23882
23883 if test x"$need_libio" = xyes; then
23884 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
23885
23886 fi
23887
23888 # Now, export this to all the little Makefiles....
23889
23890
23891
23892
23893
23894
23895 # Optimization flags that are probably a good idea for thrill-seekers. Just
23896 # uncomment the lines below and make, everything else is ready to go...
23897 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
23898 OPTIMIZE_CXXFLAGS=
23899
23900
23901 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
23902
23903
23904
23905 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
23906 grep "enable shared" > /dev/null; then
23907 LIBSUPCXX_PICFLAGS=-prefer-pic
23908 else
23909 LIBSUPCXX_PICFLAGS=
23910 fi
23911
23912
23913 # Generate the various Makefiles, include files, and scripts.
23914 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
23915 # and libsupc++/Makefile.am so that multilib installs will end up
23916 # installed in the correct place. To work around this not being passed
23917 # down from config-ml.in -> top_srcdir/Makefile.am ->
23918 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
23919 trap '' 1 2 15
23920 cat > confcache <<\EOF
23921 # This file is a shell script that caches the results of configure
23922 # tests run on this system so they can be shared between configure
23923 # scripts and configure runs. It is not useful on other systems.
23924 # If it contains results you don't want to keep, you may remove or edit it.
23925 #
23926 # By default, configure uses ./config.cache as the cache file,
23927 # creating it if it does not exist already. You can give configure
23928 # the --cache-file=FILE option to use a different cache file; that is
23929 # what configure does when it calls configure scripts in
23930 # subdirectories, so they share the cache.
23931 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23932 # config.status only pays attention to the cache file if you give it the
23933 # --recheck option to rerun configure.
23934 #
23935 EOF
23936 # The following way of writing the cache mishandles newlines in values,
23937 # but we know of no workaround that is simple, portable, and efficient.
23938 # So, don't put newlines in cache variables' values.
23939 # Ultrix sh set writes to stderr and can't be redirected directly,
23940 # and sets the high bit in the cache file unless we assign to the vars.
23941 (set) 2>&1 |
23942 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23943 *ac_space=\ *)
23944 # `set' does not quote correctly, so add quotes (double-quote substitution
23945 # turns \\\\ into \\, and sed turns \\ into \).
23946 sed -n \
23947 -e "s/'/'\\\\''/g" \
23948 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23949 ;;
23950 *)
23951 # `set' quotes correctly as required by POSIX, so do not add quotes.
23952 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23953 ;;
23954 esac >> confcache
23955 if cmp -s $cache_file confcache; then
23956 :
23957 else
23958 if test -w $cache_file; then
23959 echo "updating cache $cache_file"
23960 cat confcache > $cache_file
23961 else
23962 echo "not updating unwritable cache $cache_file"
23963 fi
23964 fi
23965 rm -f confcache
23966
23967 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23968
23969 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23970 # Let make expand exec_prefix.
23971 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23972
23973 # Any assignment to VPATH causes Sun make to only execute
23974 # the first set of double-colon rules, so remove it if not needed.
23975 # If there is a colon in the path, we need to keep it.
23976 if test "x$srcdir" = x.; then
23977 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23978 fi
23979
23980 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23981
23982 DEFS=-DHAVE_CONFIG_H
23983
23984 # Without the "./", some shells look in PATH for config.status.
23985 : ${CONFIG_STATUS=./config.status}
23986
23987 echo creating $CONFIG_STATUS
23988 rm -f $CONFIG_STATUS
23989 cat > $CONFIG_STATUS <<EOF
23990 #! /bin/sh
23991 # Generated automatically by configure.
23992 # Run this file to recreate the current configuration.
23993 # This directory was configured as follows,
23994 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23995 #
23996 # $0 $ac_configure_args
23997 #
23998 # Compiler output produced by configure, useful for debugging
23999 # configure, is in ./config.log if it exists.
24000
24001 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
24002 for ac_option
24003 do
24004 case "\$ac_option" in
24005 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24006 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
24007 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
24008 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
24009 echo "$CONFIG_STATUS generated by autoconf version 2.13"
24010 exit 0 ;;
24011 -help | --help | --hel | --he | --h)
24012 echo "\$ac_cs_usage"; exit 0 ;;
24013 *) echo "\$ac_cs_usage"; exit 1 ;;
24014 esac
24015 done
24016
24017 ac_given_srcdir=$srcdir
24018 ac_given_INSTALL="$INSTALL"
24019
24020 trap 'rm -fr `echo "Makefile \
24021 include/Makefile src/Makefile \
24022 libmath/Makefile libio/Makefile libsupc++/Makefile \
24023 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24024 EOF
24025 cat >> $CONFIG_STATUS <<EOF
24026
24027 # Protect against being on the right side of a sed subst in config.status.
24028 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24029 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24030 $ac_vpsub
24031 $extrasub
24032 s%@SHELL@%$SHELL%g
24033 s%@CFLAGS@%$CFLAGS%g
24034 s%@CPPFLAGS@%$CPPFLAGS%g
24035 s%@CXXFLAGS@%$CXXFLAGS%g
24036 s%@FFLAGS@%$FFLAGS%g
24037 s%@DEFS@%$DEFS%g
24038 s%@LDFLAGS@%$LDFLAGS%g
24039 s%@LIBS@%$LIBS%g
24040 s%@exec_prefix@%$exec_prefix%g
24041 s%@prefix@%$prefix%g
24042 s%@program_transform_name@%$program_transform_name%g
24043 s%@bindir@%$bindir%g
24044 s%@sbindir@%$sbindir%g
24045 s%@libexecdir@%$libexecdir%g
24046 s%@datadir@%$datadir%g
24047 s%@sysconfdir@%$sysconfdir%g
24048 s%@sharedstatedir@%$sharedstatedir%g
24049 s%@localstatedir@%$localstatedir%g
24050 s%@libdir@%$libdir%g
24051 s%@includedir@%$includedir%g
24052 s%@oldincludedir@%$oldincludedir%g
24053 s%@infodir@%$infodir%g
24054 s%@mandir@%$mandir%g
24055 s%@PACKAGE@%$PACKAGE%g
24056 s%@libtool_VERSION@%$libtool_VERSION%g
24057 s%@toplevel_srcdir@%$toplevel_srcdir%g
24058 s%@host@%$host%g
24059 s%@host_alias@%$host_alias%g
24060 s%@host_cpu@%$host_cpu%g
24061 s%@host_vendor@%$host_vendor%g
24062 s%@host_os@%$host_os%g
24063 s%@target@%$target%g
24064 s%@target_alias@%$target_alias%g
24065 s%@target_cpu@%$target_cpu%g
24066 s%@target_vendor@%$target_vendor%g
24067 s%@target_os@%$target_os%g
24068 s%@build@%$build%g
24069 s%@build_alias@%$build_alias%g
24070 s%@build_cpu@%$build_cpu%g
24071 s%@build_vendor@%$build_vendor%g
24072 s%@build_os@%$build_os%g
24073 s%@glibcpp_builddir@%$glibcpp_builddir%g
24074 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
24075 s%@AWK@%$AWK%g
24076 s%@LN_S@%$LN_S%g
24077 s%@glibcpp_basedir@%$glibcpp_basedir%g
24078 s%@CC@%$CC%g
24079 s%@glibcpp_CXX@%$glibcpp_CXX%g
24080 s%@AS@%$AS%g
24081 s%@AR@%$AR%g
24082 s%@RANLIB@%$RANLIB%g
24083 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24084 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24085 s%@INSTALL_DATA@%$INSTALL_DATA%g
24086 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
24087 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
24088 s%@MAINT@%$MAINT%g
24089 s%@EXEEXT@%$EXEEXT%g
24090 s%@VERSION@%$VERSION%g
24091 s%@ACLOCAL@%$ACLOCAL%g
24092 s%@AUTOCONF@%$AUTOCONF%g
24093 s%@AUTOMAKE@%$AUTOMAKE%g
24094 s%@AUTOHEADER@%$AUTOHEADER%g
24095 s%@MAKEINFO@%$MAKEINFO%g
24096 s%@SET_MAKE@%$SET_MAKE%g
24097 s%@OBJEXT@%$OBJEXT%g
24098 s%@STRIP@%$STRIP%g
24099 s%@LIBTOOL@%$LIBTOOL%g
24100 s%@CXXCPP@%$CXXCPP%g
24101 s%@enable_shared@%$enable_shared%g
24102 s%@enable_static@%$enable_static%g
24103 s%@ifGNUmake@%$ifGNUmake%g
24104 s%@CPP@%$CPP%g
24105 s%@CSTDIO_H@%$CSTDIO_H%g
24106 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
24107 s%@BASIC_FILE_CC@%$BASIC_FILE_CC%g
24108 s%@CCODECVT_C@%$CCODECVT_C%g
24109 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
24110 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
24111 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
24112 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
24113 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
24114 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
24115 s%@libio_la@%$libio_la%g
24116 s%@check_msgfmt@%$check_msgfmt%g
24117 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
24118 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
24119 s%@glibcpp_localedir@%$glibcpp_localedir%g
24120 s%@USE_NLS@%$USE_NLS%g
24121 s%@CLOCALE_H@%$CLOCALE_H%g
24122 s%@CCODECVT_H@%$CCODECVT_H%g
24123 s%@CMESSAGES_H@%$CMESSAGES_H%g
24124 s%@CCODECVT_CC@%$CCODECVT_CC%g
24125 s%@CCOLLATE_CC@%$CCOLLATE_CC%g
24126 s%@CCTYPE_CC@%$CCTYPE_CC%g
24127 s%@CMESSAGES_CC@%$CMESSAGES_CC%g
24128 s%@CMONEY_CC@%$CMONEY_CC%g
24129 s%@CNUMERIC_CC@%$CNUMERIC_CC%g
24130 s%@CTIME_H@%$CTIME_H%g
24131 s%@CTIME_CC@%$CTIME_CC%g
24132 s%@CLOCALE_CC@%$CLOCALE_CC%g
24133 s%@CLOCALE_INTERNAL_H@%$CLOCALE_INTERNAL_H%g
24134 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
24135 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
24136 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
24137 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
24138 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
24139 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
24140 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
24141 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
24142 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
24143 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
24144 s%@GLIBCPP_BUILD_DEBUG_TRUE@%$GLIBCPP_BUILD_DEBUG_TRUE%g
24145 s%@GLIBCPP_BUILD_DEBUG_FALSE@%$GLIBCPP_BUILD_DEBUG_FALSE%g
24146 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
24147 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
24148 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
24149 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
24150 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
24151 s%@GLIBCPP_BUILD_LIBMATH_TRUE@%$GLIBCPP_BUILD_LIBMATH_TRUE%g
24152 s%@GLIBCPP_BUILD_LIBMATH_FALSE@%$GLIBCPP_BUILD_LIBMATH_FALSE%g
24153 s%@GLIBCPP_TEST_WCHAR_T_TRUE@%$GLIBCPP_TEST_WCHAR_T_TRUE%g
24154 s%@GLIBCPP_TEST_WCHAR_T_FALSE@%$GLIBCPP_TEST_WCHAR_T_FALSE%g
24155 s%@WERROR@%$WERROR%g
24156 s%@baseline_file@%$baseline_file%g
24157 s%@GLIBCPP_BUILD_ABI_CHECK_TRUE@%$GLIBCPP_BUILD_ABI_CHECK_TRUE%g
24158 s%@GLIBCPP_BUILD_ABI_CHECK_FALSE@%$GLIBCPP_BUILD_ABI_CHECK_FALSE%g
24159 s%@SYMVER_MAP@%$SYMVER_MAP%g
24160 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
24161 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
24162 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
24163 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
24164 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
24165 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
24166 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
24167 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
24168 s%@gxx_include_dir@%$gxx_include_dir%g
24169 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
24170 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
24171 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
24172 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
24173 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
24174 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
24175 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
24176 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
24177 s%@WARN_FLAGS@%$WARN_FLAGS%g
24178 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
24179
24180 CEOF
24181 EOF
24182
24183 cat >> $CONFIG_STATUS <<\EOF
24184
24185 # Split the substitutions into bite-sized pieces for seds with
24186 # small command number limits, like on Digital OSF/1 and HP-UX.
24187 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24188 ac_file=1 # Number of current file.
24189 ac_beg=1 # First line for current file.
24190 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24191 ac_more_lines=:
24192 ac_sed_cmds=""
24193 while $ac_more_lines; do
24194 if test $ac_beg -gt 1; then
24195 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24196 else
24197 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24198 fi
24199 if test ! -s conftest.s$ac_file; then
24200 ac_more_lines=false
24201 rm -f conftest.s$ac_file
24202 else
24203 if test -z "$ac_sed_cmds"; then
24204 ac_sed_cmds="sed -f conftest.s$ac_file"
24205 else
24206 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24207 fi
24208 ac_file=`expr $ac_file + 1`
24209 ac_beg=$ac_end
24210 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24211 fi
24212 done
24213 if test -z "$ac_sed_cmds"; then
24214 ac_sed_cmds=cat
24215 fi
24216 EOF
24217
24218 cat >> $CONFIG_STATUS <<EOF
24219
24220 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
24221 include/Makefile src/Makefile \
24222 libmath/Makefile libio/Makefile libsupc++/Makefile \
24223 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
24224 EOF
24225 cat >> $CONFIG_STATUS <<\EOF
24226 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24227 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24228 case "$ac_file" in
24229 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24230 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24231 *) ac_file_in="${ac_file}.in" ;;
24232 esac
24233
24234 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24235
24236 # Remove last slash and all that follows it. Not all systems have dirname.
24237 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24238 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24239 # The file is in a subdirectory.
24240 test ! -d "$ac_dir" && mkdir "$ac_dir"
24241 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24242 # A "../" for each directory in $ac_dir_suffix.
24243 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24244 else
24245 ac_dir_suffix= ac_dots=
24246 fi
24247
24248 case "$ac_given_srcdir" in
24249 .) srcdir=.
24250 if test -z "$ac_dots"; then top_srcdir=.
24251 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24252 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24253 *) # Relative path.
24254 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24255 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24256 esac
24257
24258 case "$ac_given_INSTALL" in
24259 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24260 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24261 esac
24262
24263 echo creating "$ac_file"
24264 rm -f "$ac_file"
24265 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24266 case "$ac_file" in
24267 *Makefile*) ac_comsub="1i\\
24268 # $configure_input" ;;
24269 *) ac_comsub= ;;
24270 esac
24271
24272 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24273 sed -e "$ac_comsub
24274 s%@configure_input@%$configure_input%g
24275 s%@srcdir@%$srcdir%g
24276 s%@top_srcdir@%$top_srcdir%g
24277 s%@INSTALL@%$INSTALL%g
24278 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24279 fi; done
24280 rm -f conftest.s*
24281
24282 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24283 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24284 #
24285 # ac_d sets the value in "#define NAME VALUE" lines.
24286 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24287 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24288 ac_dC='\3'
24289 ac_dD='%g'
24290 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24291 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24292 ac_uB='\([ ]\)%\1#\2define\3'
24293 ac_uC=' '
24294 ac_uD='\4%g'
24295 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24296 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24297 ac_eB='$%\1#\2define\3'
24298 ac_eC=' '
24299 ac_eD='%g'
24300
24301 if test "${CONFIG_HEADERS+set}" != set; then
24302 EOF
24303 cat >> $CONFIG_STATUS <<EOF
24304 CONFIG_HEADERS="config.h"
24305 EOF
24306 cat >> $CONFIG_STATUS <<\EOF
24307 fi
24308 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24309 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24310 case "$ac_file" in
24311 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24312 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24313 *) ac_file_in="${ac_file}.in" ;;
24314 esac
24315
24316 echo creating $ac_file
24317
24318 rm -f conftest.frag conftest.in conftest.out
24319 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24320 cat $ac_file_inputs > conftest.in
24321
24322 EOF
24323
24324 # Transform confdefs.h into a sed script conftest.vals that substitutes
24325 # the proper values into config.h.in to produce config.h. And first:
24326 # Protect against being on the right side of a sed subst in config.status.
24327 # Protect against being in an unquoted here document in config.status.
24328 rm -f conftest.vals
24329 cat > conftest.hdr <<\EOF
24330 s/[\\&%]/\\&/g
24331 s%[\\$`]%\\&%g
24332 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24333 s%ac_d%ac_u%gp
24334 s%ac_u%ac_e%gp
24335 EOF
24336 sed -n -f conftest.hdr confdefs.h > conftest.vals
24337 rm -f conftest.hdr
24338
24339 # This sed command replaces #undef with comments. This is necessary, for
24340 # example, in the case of _POSIX_SOURCE, which is predefined and required
24341 # on some systems where configure will not decide to define it.
24342 cat >> conftest.vals <<\EOF
24343 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24344 EOF
24345
24346 # Break up conftest.vals because some shells have a limit on
24347 # the size of here documents, and old seds have small limits too.
24348
24349 rm -f conftest.tail
24350 while :
24351 do
24352 ac_lines=`grep -c . conftest.vals`
24353 # grep -c gives empty output for an empty file on some AIX systems.
24354 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24355 # Write a limited-size here document to conftest.frag.
24356 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24357 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24358 echo 'CEOF
24359 sed -f conftest.frag conftest.in > conftest.out
24360 rm -f conftest.in
24361 mv conftest.out conftest.in
24362 ' >> $CONFIG_STATUS
24363 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24364 rm -f conftest.vals
24365 mv conftest.tail conftest.vals
24366 done
24367 rm -f conftest.vals
24368
24369 cat >> $CONFIG_STATUS <<\EOF
24370 rm -f conftest.frag conftest.h
24371 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24372 cat conftest.in >> conftest.h
24373 rm -f conftest.in
24374 if cmp -s $ac_file conftest.h 2>/dev/null; then
24375 echo "$ac_file is unchanged"
24376 rm -f conftest.h
24377 else
24378 # Remove last slash and all that follows it. Not all systems have dirname.
24379 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24380 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24381 # The file is in a subdirectory.
24382 test ! -d "$ac_dir" && mkdir "$ac_dir"
24383 fi
24384 rm -f $ac_file
24385 mv conftest.h $ac_file
24386 fi
24387 fi; done
24388
24389 EOF
24390 cat >> $CONFIG_STATUS <<EOF
24391
24392 srcdir=${srcdir}
24393 host=${host}
24394 target=${target}
24395 with_target_subdir=${with_target_subdir}
24396 with_build_subdir=${with_build_subdir}
24397 with_multisubdir=${with_multisubdir}
24398 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24399 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24400 glibcpp_basedir=${glibcpp_basedir}
24401 CC="${CC}"
24402 CXX="${CXX}"
24403 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
24404
24405 EOF
24406 cat >> $CONFIG_STATUS <<\EOF
24407 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24408 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24409 if test -n "$CONFIG_FILES"; then
24410 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
24411 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24412 # Ony modify Makefiles that are just being created.
24413 case " $CONFIG_FILES" in
24414 *" Makefile"*)
24415 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
24416 ;;
24417 esac
24418 case $CONFIG_FILES in
24419 *src/Makefile*)
24420 grep '^MULTISUBDIR =' Makefile >> src/Makefile
24421 ;;
24422 esac
24423 case $CONFIG_FILES in
24424 *libsupc++/Makefile*)
24425 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24426 ;;
24427 esac
24428 fi
24429 fi
24430 chmod +x mkcheck
24431 chmod +x testsuite_flags
24432 exit 0
24433 EOF
24434 chmod +x $CONFIG_STATUS
24435 rm -fr confdefs* $ac_clean_files
24436 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24437
24438
24439
24440 # Sanity checking & User-visible messages.
24441 # Checks down here, otherwise they get scrolled off before
24442 # the user will notice.
24443
24444 # Trying to get more people to read documentation. Possibly remove
24445 # check and warn all the time. There is no "informational" AC_MSG_
24446 # macro, so these are going to be printed even when --quiet/--silent
24447 # is given.
24448 if test ! -f stamp-sanity-warned; then
24449 touch stamp-sanity-warned
24450 echo ""
24451 echo "Please make certain that you read the installation information here:"
24452 echo " faster => ${srcdir}/docs/html/install.html"
24453 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24454 echo ""
24455 echo "and the configuration information here:"
24456 echo " faster => ${srcdir}/docs/html/configopts.html"
24457 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24458 echo ""
24459 echo "before proceeding with ${_cv_gnu_make_command}."
24460 echo ""
24461 fi